PageSourceSearch

https://app.keshtyaar.com/_next/static/chunks/app/%5Blocale%5D/(dashboard)/layout-0ba700164cf0e31e.js

js keshtyaar.com collected 2026-10-10 01:34:17 UTC 33,533 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7506],{1006:(e,t,s)=>{"use strict";s.d(t,{BottomTabBar:()=>d});var a=s(54568),r=s(33971),n=s(16434),i=s(36644),o=s(64318),l=s(9167);function d(){let e=(0,r.c)(),t=(0,n.Ym)(),s=(0,i.a8)(),d=`https://community.keshtyaar.com/${t}/community`;return(0,a.jsxs)("nav",{className:"flex shrink-0 items-stretch border-t border-border bg-card lg:hidden",children:[l.T.map(({href:t,labelKey:r,icon:n,exact:l})=>{let d=l?s===t:s.startsWith(t);return(0,a.jsxs)(i.N_,{href:t,"aria-current":d?"page":void 0,className:(0,o.cn)("flex flex-1 flex-col items-center gap-0.5 py-2 text-[11px] font-medium",d?"text-primary":"text-muted-foreground"),children:[(0,a.jsx)(n,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"truncate",children:e(r)})]},t)}),(0,a.jsxs)("a",{href:d,className:"flex flex-1 flex-col items-center gap-0.5 py-2 text-[11px] font-medium text-muted-foreground",children:[(0,a.jsx)(l.c.icon,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"truncate",children:e(l.c.labelKey)})]})]})}},1602:(e,t,s)=>{"use strict";s.d(t,{NotificationStreamProvider:()=>o});var a=s(54568),r=s(7620),n=s(68728),i=s(33202);function o({children:e}){let t,s,l,d,c;return t=(0,n.useQueryClient)(),s=(0,i.C)(e=>e.workspaceId),l=(0,r.useRef)(null),d=(0,r.useRef)(null),c=(0,r.useRef)(1e3),(0,r.useEffect)(()=>{if(s)return function a(){e();let r=new EventSource("/api/v2/notifications/stream");l.current=r,r.onmessage=e=>{try{let a=JSON.parse(e.data);if("connected"===a.type){c.current=1e3;return}"new_notification"===a.type&&(t.invalidateQueries({queryKey:["notifications",s]}),t.invalidateQueries({queryKey:["notifications-unread-count",s]}))}catch{}},r.onerror=()=>{r.close(),l.current=null;let e=c.current;c.current=Math.min(2*e,3e4),d.current=setTimeout(()=>{a()},e)}}(),e;function e(){d.current&&(clearTimeout(d.current),d.current=null),l.current&&(l.current.close(),l.current=null)}},[s,t]),(0,a.jsx)(a.Fragment,{children:e})}},9167:(e,t,s)=>{"use strict";s.d(t,{T:()=>d,c:()=>c});var a=s(30824),r=s(50014),n=s(96770),i=s(97836),o=s(21048),l=s(96553);let d=[{href:"/dashboard",labelKey:"nav.chat",icon:a.A,exact:!0},{href:"/fields",labelKey:"nav.fields",icon:r.A,exact:!1},{href:"/tasks",labelKey:"nav.tasks",icon:n.A,exact:!1},{href:"/imagery",labelKey:"nav.imagery",icon:i.A,exact:!1},{href:"/workspace",labelKey:"nav.workspace",icon:o.A,exact:!1}],c={labelKey:"nav.community",icon:l.A}},21345:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>m,Es:()=>x,L3:()=>f,c7:()=>h,lG:()=>l,rr:()=>p,zM:()=>d});var a=s(54568);s(7620);var r=s(36645),n=s(34703),i=s(64318),o=s(28465);function l({...e}){return(0,a.jsx)(n.bL,{"data-slot":"dialog",...e})}function d({...e}){return(0,a.jsx)(n.l9,{"data-slot":"dialog-trigger",...e})}function c({...e}){return(0,a.jsx)(n.ZL,{"data-slot":"dialog-portal",...e})}function u({className:e,...t}){return(0,a.jsx)(n.hJ,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function m({className:e,children:t,showCloseButton:s=!0,...o}){return(0,a.jsxs)(c,{"data-slot":"dialog-portal",children:[(0,a.jsx)(u,{}),(0,a.jsxs)(n.UC,{"data-slot":"dialog-content",className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",e),...o,children:[t,s&&(0,a.jsxs)(n.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,a.jsx)(r.A,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function h({className:e,...t}){return(0,a.jsx)("div",{"data-slot":"dialog-header",className:(0,i.cn)("flex flex-col gap-2 text-center sm:text-left",e),...t})}function x({className:e,showCloseButton:t=!1,children:s,...r}){return(0,a.jsxs)("div",{"data-slot":"dialog-footer",className:(0,i.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...r,children:[s,t&&(0,a.jsx)(n.bm,{asChild:!0,children:(0,a.jsx)(o.$,{variant:"outline",children:"Close"})})]})}function f({className:e,...t}){return(0,a.jsx)(n.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg leading-none font-semibold",e),...t})}function p({className:e,...t}){return(0,a.jsx)(n.VY,{"data-slot":"dialog-description",className:(0,i.cn)("text-muted-foreground text-sm",e),...t})}},22697:(e,t,s)=>{"use strict";s.d(t,{ProfileCompletionBanner:()=>c});var a=s(54568),r=s(7620),n=s(33971),i=s(95030),o=s(36644),l=s(28465),d=s(36645);function c(){let e=(0,n.c)("profile"),{data:t}=(0,i.xc)(),[s,c]=(0,r.useState)(!1);return s||!t||t.first_name&&t.username?null:(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-border bg-muted/50 px-4 py-2",children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:e("completeProfile")}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.$,{variant:"outline",size:"sm",asChild:!0,children:(0,a.jsx)(o.N_,{href:"/profile",children:e("completeProfileAction")})}),(0,a.jsx)("button",{type:"button",onClick:()=>c(!0),className:"text-muted-foreground hover:text-foreground",children:(0,a.jsx)(d.A,{className:"h-4 w-4"})})]})]})}},23623:(e,t,s)=>{"use strict";s.d(t,{p:()=>n});var a=s(54568);s(7620);var r=s(64318);function n({className:e,type:t,...s}){return(0,a.jsx)("input",{type:t,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...s})}},24845:(e,t,s)=>{"use strict";s.d(t,{h:()=>r});let a={owner:"owner",admin:"admin",member:"member",viewer:"viewer"};function r(e){return e?.isSystemRole&&a[e.name]?a[e.name]:null}},29056:(e,t,s)=>{"use strict";s.d(t,{AM:()=>i,Wv:()=>o,hl:()=>l});var a=s(54568);s(7620);var r=s(26486),n=s(64318);function i({...e}){return(0,a.jsx)(r.bL,{"data-slot":"popover",...e})}function o({...e}){return(0,a.jsx)(r.l9,{"data-slot":"popover-trigger",...e})}function l({className:e,align:t="center",sideOffset:s=4,...i}){return(0,a.jsx)(r.ZL,{children:(0,a.jsx)(r.UC,{"data-slot":"popover-content",align:t,sideOffset:s,className:(0,n.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...i})})}},29649:(e,t,s)=>{Promise.resolve().then(s.bind(s,93733)),Promise.resolve().then(s.bind(s,1006)),Promise.resolve().then(s.bind(s,58143)),Promise.resolve().then(s.bind(s,95378)),Promise.resolve().then(s.bind(s,22697)),Promise.resolve().then(s.bind(s,1602)),Promise.resolve().then(s.bind(s,47933)),Promise.resolve().then(s.bind(s,63650)),Promise.resolve().then(s.bind(s,61346)),Promise.resolve().then(s.bind(s,38162)),Promise.resolve().then(s.bind(s,41145))},38162:(e,t,s)=>{"use strict";s.d(t,{AuthSessionProvider:()=>n});var a=s(54568),r=s(62796);function n({children:e}){return(0,a.jsx)(r.CP,{children:e})}},47933:(e,t,s)=>{"use strict";s.d(t,{PostHogIdentify:()=>d});var a=s(7620),r=s(62796),n=s(16434),i=s(79016),o=s(33202),l=s(95030);function d(){let{data:e,status:t}=(0,r.wV)(),s=(0,o.C)(e=>e.workspaceId),d=(0,n.Ym)(),{data:c}=(0,l.Q4)(s);return(0,a.useEffect)(()=>{let a=(0,i.d)();a&&("authenticated"===t&&e?.user&&(a.identify(e.user.id,{phone:e.user.phone,firstName:e.user.firstName,lastName:e.user.lastName,locale:d,plan:c?.current?.id??null}),a.register({workspace_id:s})),"unauthenticated"===t&&a.reset())},[t,e,s,d,c]),null}},58143:(e,t,s)=>{"use strict";s.d(t,{UnifiedHeader:()=>el});var a=s(54568),r=s(7620),n=s(82175),i=s(33971),o=s(62796),l=s(33202),d=s(95030),c=s(36644),u=s(24845),m=s(64318),h=s(23623),x=s(87814),f=s(29056),p=s(56113),g=s(36882),v=s(9901),j=s(56242),b=s(42038),N=s(30774),w=s(27213),y=s(30861),k=s(40414),C=s(35198),S=s(70452),_=s(92622),A=s(34309),$=s(46548),z=s(67447),E=s(37270),P=s(66888);let I=[p.A,g.A,v.A,j.A,b.A,N.A,w.A,y.A];function W(e){let t=0;for(let s=0;s<e.length;s++)t=(t<<5)-t+e.charCodeAt(s)|0;return{icon:I[Math.abs(t)%I.length]}}function K(){let e=(0,i.c)("workspace"),t=(0,i.c)("workspace.switcher"),{workspace:s,setWorkspace:n}=(0,l.C)(),{data:o}=(0,d.CH)(),[p,g]=(0,r.useState)(!1),[v,j]=(0,r.useState)("");(0,r.useEffect)(()=>{if(!o?.length)return;let e=l.C.getState().workspaceId,t=(e?o.find(t=>t.id===e):null)??o[0];t&&n(t)},[o,n]);let b=(o?.length??0)>=3,N=o?.filter(e=>!v||e.name.toLowerCase().includes(v.toLowerCase())),w=s?.id?W(s.id):null,y=w?.icon;return(0,a.jsxs)(f.AM,{open:p,onOpenChange:g,children:[(0,a.jsx)(f.Wv,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",className:(0,m.cn)("group flex w-full items-center gap-2.5 rounded-lg px-2.5 py-2 text-start transition-colors","hover:bg-accent hover:text-accent-foreground"),children:[w&&y&&(0,a.jsx)("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-primary text-primary-foreground",children:(0,a.jsx)(y,{className:"h-3.5 w-3.5",strokeWidth:2})}),(0,a.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:s?.name??e("title")}),(0,a.jsx)(_.A,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground/60 transition-transform group-hover:text-muted-foreground"})]})}),(0,a.jsxs)(f.hl,{className:"w-72 p-0",align:"start",sideOffset:8,children:[(0,a.jsx)("div",{className:"px-3 pt-3 pb-1.5",children:(0,a.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:t("title")})}),b&&(0,a.jsx)("div",{className:"px-2 pb-1",children:(0,a.jsx)(h.p,{placeholder:t("search"),value:v,onChange:e=>j(e.target.value),className:"h-8 border-none bg-muted/50 text-sm shadow-none focus-visible:ring-0",autoFocus:!0})}),(0,a.jsx)("div",{className:"max-h-64 overflow-y-auto px-1.5 py-1",children:N?.map(t=>{var r,i;let o,l=t.id===s?.id,d=W(t.id).icon,c=(r=t.role,r?.isSystemRole&&r?.name==="owner"?k.A:r?.permissions?.manage_workspace?C.A:S.A);return(0,a.jsxs)("button",{type:"button",onClick:()=>!l&&void(n(t),g(!1),j(""),P.oR.success(e("hub.switchedTo",{name:t.name}))),className:(0,m.cn)("group/item flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-start transition-all",l?"bg-primary/[0.06]":"hover:bg-muted/60"),children:[(0,a.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary text-primary-foreground transition-transform group-hover/item:scale-[1.03]",children:(0,a.jsx)(d,{className:"h-4 w-4",strokeWidth:1.75})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"truncate text-sm font-medium",children:t.name}),l&&(0,a.jsx)(A.A,{className:"h-3 w-3 shrink-0 text-primary"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[11px] text-muted-foreground",children:[(0,a.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,a.jsx)(c,{className:"h-2.5 w-2.5"}),(i=t.role,(o=(0,u.h)(i))?e(o):i?.name??"")]}),t.plan&&(0,a.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,a.jsx)($.A,{className:"h-2.5 w-2.5"}),t.plan.name]})]})]})]},t.id)})}),(0,a.jsx)(x.w,{className:"opacity-60"}),(0,a.jsxs)("div",{className:"p-1.5",children:[(0,a.jsxs)(c.N_,{href:"/workspace",onClick:()=>g(!1),className:"flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-sm text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground",children:[(0,a.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted/60",children:(0,a.jsx)(z.A,{className:"h-3.5 w-3.5"})}),t("createNew")]}),(0,a.jsxs)(c.N_,{href:"/workspace/settings",onClick:()=>g(!1),className:"flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-sm text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground",children:[(0,a.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted/60",children:(0,a.jsx)(E.A,{className:"h-3.5 w-3.5"})}),t("settings")]})]})]})]})}var L=s(16434),Q=s(91127),T=s(73266),O=s(28465);function q(){let e=(0,i.c)("locale"),t=(0,L.Ym)(),s=(0,c.rd)(),r=(0,c.a8)();return(0,a.jsxs)(T.rI,{children:[(0,a.jsx)(T.ty,{asChild:!0,children:(0,a.jsx)(O.$,{variant:"ghost",size:"sm",className:"text-xs",children:e(t)})}),(0,a.jsx)(T.SQ,{align:"end",children:Q.DT.locales.map(n=>(0,a.jsx)(T._2,{onClick:()=>{s.replace(r,{locale:n})},className:n===t?"font-bold":"",children:e(n)},n))})]})}var M=s(87547),R=s(39182),U=s(73599),D=s(62693);function F(){let{mode:e,mounted:t,cycleMode:s}=(0,D.e)();return t?(0,a.jsxs)("button",{onClick:s,className:"relative rounded-lg border border-border p-2 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors","aria-label":`Theme: ${e}`,title:"auto"===e?"Auto (clock)":"dark"===e?"Dark":"Light",children:["light"===e&&(0,a.jsx)(M.A,{className:"h-4 w-4"}),"dark"===e&&(0,a.jsx)(R.A,{className:"h-4 w-4"}),"auto"===e&&(0,a.jsx)(U.A,{className:"h-4 w-4 text-primary"})]}):(0,a.jsx)("button",{className:"relative rounded-lg border border-border p-2 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors","aria-label":"Toggle theme",children:(0,a.jsx)(M.A,{className:"h-4 w-4"})})}var Y=s(77542),H=s(60594),B=s(65587),J=s.n(B);function G(){let e=(0,i.c)("notifications"),t=(0,l.C)(e=>
1e.workspaceId),{data:s,isLoading:r}=(0,d.E$)(t),n=(0,d.R2)(t??""),o=s?.pages?.flatMap(e=>e.result)??[];return(0,a.jsxs)("div",{className:"max-h-96 w-80 overflow-hidden overflow-y-auto",children:[(0,a.jsx)("div",{className:"px-4 py-3 text-sm font-semibold",children:e("title")}),(0,a.jsx)(x.w,{}),r?(0,a.jsx)("div",{className:"px-4 py-6 text-center text-sm text-muted-foreground",children:"..."}):0===o.length?(0,a.jsx)("div",{className:"px-4 py-6 text-center text-sm text-muted-foreground",children:e("empty")}):(0,a.jsxs)(a.Fragment,{children:[o.slice(0,10).map(e=>(0,a.jsx)(H.r,{notification:e,onMarkSeen:e=>n.mutate(e)},e.id)),(0,a.jsx)(x.w,{}),(0,a.jsx)(J(),{href:"/notifications",className:"block px-4 py-2.5 text-center text-sm text-primary hover:bg-muted/50",children:e("viewAll")})]})]})}function V(){let e=(0,l.C)(e=>e.workspaceId),{data:t}=(0,d.J9)(e),s=t?.count??0,[n,i]=(0,r.useState)(!1);return(0,a.jsxs)(f.AM,{open:n,onOpenChange:i,children:[(0,a.jsx)(f.Wv,{asChild:!0,children:(0,a.jsxs)(O.$,{variant:"ghost",size:"sm",className:`relative active:scale-95 ${n?"bg-accent":""}`,children:[(0,a.jsx)(Y.A,{className:"h-4 w-4"}),s>0&&(0,a.jsx)("span",{className:"absolute -end-0.5 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-1 text-[10px] font-bold text-destructive-foreground",children:s>99?"99+":s})]})}),(0,a.jsx)(f.hl,{className:"p-0",align:"end",sideOffset:8,children:(0,a.jsx)(G,{})})]})}var Z=s(21345),X=s(21444),ee=s(63650);function et({externalOpen:e,onExternalOpenChange:t}){let s=(0,i.c)("changelog"),{justUpdated:n,clearJustUpdated:o}=(0,ee.Q)(),l=(0,L.Ym)(),[d,c]=(0,r.useState)([]),[u,m]=(0,r.useState)(!1),[h,x]=(0,r.useState)(!1),f=n||(e??!1),p="0.0.0",g=(0,r.useCallback)(async()=>{m(!0),x(!1);try{let e=await fetch(`/changelogs/${l}.json?t=${Date.now()}`);if(!e.ok)throw Error("fetch failed");let t=await e.json();c(t)}catch{x(!0)}finally{m(!1)}},[l]);(0,r.useEffect)(()=>{f&&0===d.length&&!u&&g()},[f,d.length,u,g]);let v=e=>{e||(n&&o(),t?.(!1))};return(0,a.jsx)(Z.lG,{open:f,onOpenChange:v,children:(0,a.jsxs)(Z.Cf,{className:"max-h-[80vh] overflow-y-auto sm:max-w-md",children:[(0,a.jsxs)(Z.c7,{children:[(0,a.jsx)(Z.L3,{children:s("title")}),(0,a.jsx)(Z.rr,{children:p?s("version",{version:p}):""})]}),(0,a.jsxs)("div",{className:"py-2",children:[u&&(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(X.E,{className:"h-4 w-full"}),(0,a.jsx)(X.E,{className:"h-4 w-3/4"}),(0,a.jsx)(X.E,{className:"h-4 w-5/6"})]}),h&&(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("p",{className:"mb-3 text-sm text-muted-foreground",children:s("error")}),(0,a.jsx)(O.$,{variant:"outline",size:"sm",onClick:g,children:s("close")})]}),!u&&!h&&d.length>0&&(0,a.jsx)("div",{className:"space-y-6",children:d.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-2 flex items-baseline gap-2",children:[(0,a.jsxs)("span",{className:"text-sm font-semibold text-foreground",children:["v",e.version]}),e.published_at&&(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:new Date(e.published_at).toLocaleDateString(l,{year:"numeric",month:"short",day:"numeric"})})]}),e.body?(0,a.jsx)("div",{className:"changelog-content space-y-2 text-sm leading-relaxed",children:function(e){let t=e.replace(/^##\s+\[[\d.]+\]\([^)]*\).*$/m,"").replace(/^##?\s+v?[\d.]+\s*$/m,"").replace(/\s*\(\[[\da-f]+\]\([^)]*\)\)/g,"").split("\n"),s=[],r=[],n=0,i=()=>{r.length>0&&(s.push((0,a.jsx)("ul",{className:"list-disc space-y-1 ps-5",children:r.map((e,t)=>(0,a.jsx)("li",{children:es(e)},t))},n++)),r=[])};for(let e of t){let t=e.trim();if(!t){i();continue}t.startsWith("### ")?(i(),s.push((0,a.jsx)("h4",{className:"font-semibold text-foreground",children:es(t.slice(4))},n++))):t.startsWith("## ")?(i(),s.push((0,a.jsx)("h3",{className:"text-base font-semibold text-foreground",children:es(t.slice(3))},n++))):t.startsWith("# ")?(i(),s.push((0,a.jsx)("h3",{className:"text-base font-semibold text-foreground",children:es(t.slice(2))},n++))):t.startsWith("- ")||t.startsWith("* ")?r.push(t.slice(2)):(i(),s.push((0,a.jsx)("p",{className:"text-muted-foreground",children:es(t)},n++)))}return i(),s}(e.body)}):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:s("updated",{version:e.version})})]}
1,e.version))}),!u&&!h&&0===d.length&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:s("updated",{version:p})})]}),(0,a.jsx)(Z.Es,{children:(0,a.jsx)(O.$,{onClick:()=>v(!1),className:"w-full sm:w-auto",children:s("close")})})]})})}function es(e){let t=[],s=e,r=0;for(;s.length>0;){let e=s.match(/\*\*(.+?)\*\*/),n=s.match(/\[([^\]]+)\]\(([^)]+)\)/),i=e?.index??1/0,o=n?.index??1/0;if(i===1/0&&o===1/0){t.push(s);break}if(i<=o&&e)t.push(s.slice(0,i)),t.push((0,a.jsx)("strong",{children:e[1]},r++)),s=s.slice(i+e[0].length);else if(n){t.push(s.slice(0,o));let e=n[2];e.startsWith("/")?t.push((0,a.jsx)(c.N_,{href:e,className:"font-semibold text-primary underline-offset-2 hover:underline",children:n[1]},r++)):t.push((0,a.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:n[1]},r++)),s=s.slice(o+n[0].length)}}return 1===t.length?t[0]:t}var ea=s(54522),er=s(78920);function en({delayDuration:e=0,...t}){return(0,a.jsx)(er.Kq,{"data-slot":"tooltip-provider",delayDuration:e,...t})}var ei=s(24930),eo=s(45869);function el(){let e=(0,i.c)(),{sidebarOpen:t,setSidebarOpen:s,toggleSidebar:u}=(0,l.C)(),{data:m}=(0,d.xc)(),{data:h}=(0,d.vT)(),[x,f]=(0,r.useState)(0),[p,g]=(0,r.useState)(!1),v=(0,r.useRef)(m?.picture);(0,r.useEffect)(()=>{m?.picture&&void 0!==v.current&&f(e=>e+1),v.current=m?.picture},[m]);let j=m?.first_name&&m?.last_name?`${m.first_name} ${m.last_name}`:m?.username||m?.phone||"";return(0,a.jsxs)(en,{delayDuration:0,children:[(0,a.jsxs)("header",{className:"flex h-14 shrink-0 items-center gap-2 border-b border-border bg-card px-2 sm:px-4",children:[(0,a.jsx)(O.$,{variant:"ghost",size:"sm",className:"shrink-0 active:scale-95 lg:hidden",onClick:u,children:(0,a.jsx)("span",{className:"text-xl",children:"☰"})}),(0,a.jsx)(c.N_,{href:"/dashboard",className:"shrink-0 p-1",children:(0,a.jsx)(n.default,{src:"/logo-icon.svg",alt:"Keshtyaar",width:28,height:28,className:"rounded-lg"})}),(0,a.jsx)("div",{className:"hidden min-w-0 max-w-56 lg:block",children:(0,a.jsx)(K,{})}),(0,a.jsx)("div",{className:"min-w-0 flex-1"}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-1 sm:gap-2",children:[(0,a.jsx)(O.$,{variant:"ghost",size:"sm",asChild:!0,className:"gap-1.5 px-2 active:scale-95",children:(0,a.jsxs)(c.N_,{href:"/wallet",children:[(0,a.jsx)(ei.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"text-sm font-medium tabular-nums",children:h?.balance??0})]})}),(0,a.jsx)(V,{}),(0,a.jsx)(F,{}),(0,a.jsx)(q,{}),(0,a.jsxs)(T.rI,{children:[(0,a.jsx)(T.ty,{asChild:!0,children:(0,a.jsxs)(O.$,{variant:"ghost",size:"sm",className:"gap-2 rounded-full px-2 active:scale-95",children:[m?.picture?(0,a.jsx)("img",{src:`/api/v2/users/avatar?size=thumb&t=${x}`,alt:e("nav.profile"),className:"h-8 w-8 rounded-full object-cover"},x):(0,a.jsx)(eo.A,{className:"h-6 w-6 text-muted-foreground",strokeWidth:1.5}),j&&(0,a.jsx)("span",{className:"hidden max-w-32 truncate text-sm font-medium sm:inline",children:j})]})}),(0,a.jsxs)(T.SQ,{align:"end",children:[(0,a.jsx)(T._2,{asChild:!0,children:(0,a.jsx)(c.N_,{href:"/profile",children:e("nav.profile")})}),(0,a.jsx)(T._2,{asChild:!0,children:(0,a.jsx)(c.N_,{href:"/profile",children:e("nav.settings")})}),(0,a.jsx)(T._2,{onClick:()=>(0,o.CI)({callbackUrl:"/auth/login"}),className:"text-destructive",children:e("auth.logout")})]})]})]})]}),(0,a.jsx)(ea.cj,{open:t,onOpenChange:s,children:(0,a.jsxs)(ea.h,{side:"right",className:"flex w-64 flex-col p-0",children:[(0,a.jsx)(ea.Fm,{className:"flex h-14 shrink-0 items-center border-b border-border px-2",children:(0,a.jsxs)(ea.qp,{className:"flex w-full items-center gap-1",children:[(0,a.jsx)(c.N_,{href:"/dashboard",className:"shrink-0 p-1",onClick:()=>s(!1),children:(0,a.jsx)(n.default,{src:"/logo-icon.svg",alt:"Keshtyaar",width:28,height:28,className:"rounded-lg"})}),(0,a.jsx)("div",{className:"min-w-0 flex-1",children:(0,a.jsx)(K,{})})]})}),(0,a.jsx)("div",{className:"border-t border-border px-4 py-3",children:(0,a.jsxs)("button",{type:"button",onClick:()=>g(!0),className:"text-xs text-muted-foreground transition-colors hover:text-foreground",children:["v","0.0.0"]})})]})}),(0,a.jsx)(et,{externalOpen:p,onExternalOpenChange:g})]})}},60594:(e,t,s)=>{"use strict";s.d(t,{r:()=>o});var a=s(54568),r=s(16434),n=s(33971),i=s(5359);function o({notification:e,onMarkSeen:t}){let s,l=(0,r.Ym)(),d=(0,n.c)("notifications"),c=!e.seen_at,u=[e.actorFirstName,e.actorLastName].filter(
1Boolean).join(" ")||d("unknownActor"),m=e.eventType??e.type,h=m.replace(/\./g,"_"),x=e.metadata;if("task.commented"===m&&x.isMention)s=d("events.task_commented_mention",{taskName:String(x.taskName??"")});else if("task.statusChanged"===m){let e=String(x.newStatus??""),t=d.has(`taskStatus.${e}`)?d(`taskStatus.${e}`):e;s=d("events.task_statusChanged",{taskName:String(x.taskName??""),newStatus:t})}else s=d.has(`events.${h}`)?d(`events.${h}`,{actor:u,taskName:String(x.taskName??""),daysLeft:String(x.daysLeft??""),count:String(x.count??"")}):d("events.default");return(0,a.jsxs)("button",{className:`flex w-full items-start gap-3 px-4 py-3 text-start transition-colors hover:bg-muted/50 ${c?"bg-primary/5":""}`,onClick:()=>{c&&t(String(e.id))},children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"text-sm leading-relaxed",children:s}),(0,a.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:(0,i.fw)(e.created_at,["fa","en","ar","ru"].includes(l)?l:"en")})]}),c&&(0,a.jsx)("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-primary"})]})}},61346:(e,t,s)=>{"use strict";s.d(t,{QueryProvider:()=>x});var a=s(54568),r=s(53171),n=s(43430),i=s(57927),o=s(68728),l=s(7620),d=s(33971),c=s(66888),u=s(95030);let m={current:e=>e};function h(){let e=e=>{e instanceof u.qQ&&c.oR.error(m.current("forbidden"))};return new r.E({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1,retry:(e,t)=>!(t instanceof u.qQ)&&"unauthorized"!==t.message&&e<3},mutations:{retry:!1}},queryCache:new n.$({onError:e}),mutationCache:new i.q({onError:e})})}function x({children:e}){let t=(0,d.c)("errors");(0,l.useEffect)(()=>{m.current=t});let[s]=(0,l.useState)(h);return(0,a.jsx)(o.QueryClientProvider,{client:s,children:e})}},62693:(e,t,s)=>{"use strict";s.d(t,{ThemeModeProvider:()=>l,e:()=>d});var a=s(54568),r=s(7620),n=s(79227);let i="theme-mode",o=(0,r.createContext)(null);function l({children:e}){let{setTheme:t}=(0,n.D)(),[s,d]=(0,r.useState)("light"),[c,u]=(0,r.useState)(!1),m=(0,r.useCallback)(e=>{let s;t("auto"===e?(s=new Date().getHours())>=6&&s<19?"light":"dark":e)},[t]);(0,r.useEffect)(()=>{let e,t,s=(e=document.cookie.match(RegExp(`(?:^|; )${i}=([^;]*)`)),"light"===(t=e?.[1])||"dark"===t||"auto"===t?t:null);s&&(d(s),m(s)),u(!0)},[m]),(0,r.useEffect)(()=>{if("auto"!==s)return;let e=setInterval(()=>m("auto"),6e4);return()=>clearInterval(e)},[s,m]);let h=(0,r.useCallback)(()=>{let e,t="light"===s?"dark":"dark"===s?"auto":"light";d(t),e=".keshtyaar.com",document.cookie=`${i}=; path=/; max-age=0`,document.cookie=`${i}=${t}; path=/; max-age=31536000; samesite=lax`+(e?`; domain=${e}`:""),m(t)},[s,m]);return(0,a.jsx)(o.Provider,{value:{mode:s,mounted:c,cycleMode:h},children:e})}function d(){let e=(0,r.useContext)(o);if(!e)throw Error("useThemeMode must be used within a ThemeModeProvider");return e}},63650:(e,t,s)=>{"use strict";s.d(t,{PwaProvider:()=>c,Q:()=>d});var a=s(54568),r=s(7620),n=s(6330);let i="keshtyaar:justUpdated",o="keshtyaar:applyingUpdate",l=(0,r.createContext)({hasUpdate:!1,justUpdated:!1,clearJustUpdated:()=>{},applyUpdate:()=>{}});function d(){return(0,r.useContext)(l)}function c({children:e}){let[t,s]=(0,r.useState)(!1),[d,u]=(0,r.useState)(()=>"true"===localStorage.getItem(i)&&(localStorage.removeItem(i),!0));(0,r.useEffect)(()=>{if(!("serviceWorker"in navigator))return;(async()=>{let e=await navigator.serviceWorker.getRegistration();if(!e)return;let t=localStorage.getItem(o),a=null!==t&&Date.now()-parseInt(t,10)<15e3;a||localStorage.removeItem(o),e.waiting&&!a&&(s(!0),(0,n.lM)()),e.addEventListener("updatefound",()=>{let t=e.installing;t&&t.addEventListener("statechange",()=>{"installed"===t.state&&navigator.serviceWorker.controller&&(s(!0),(0,n.lM)())})})})();let e=setInterval(async()=>{let e=await navigator.serviceWorker.getRegistration();e?.update()},6e4);return()=>clearInterval(e)},[]);let m=(0,r.useCallback)(async()=>{s(!1),(0,n.FX)(),localStorage.setItem(i,"true"),localStorage.setItem(o,Date.now().toString());let e=await navigator.serviceWorker.getRegistration();e?.waiting?(navigator.serviceWorker.addEventListener("controllerchange",()=>{window.location.reload()},{once:!0}),e.waiting.postMessage({type:"SKIP_WAITING"}),setTimeout(()=>{window.location.reload()},3e3)):window.location.reload()},[]),h=(0,r.useCallback)(()=>{u(!1)},[]);return(0,a.jsx)(l.Provider,{value:{hasUpdate:t,justUpdated:d,clearJustUpdated:h,applyUpdate:m},children:e})}},73266:(e,t,s)=>{"use strict";s.d(t,{SQ:()=>d,_2:()=>c,hO:()=>u,rI:()=>o,ty:()=>l});var a=s(54568);s(7620);var r=s(34309),n=s(45492),i=s(64318);function o({...e}){return(0,a.jsx)(n.bL,{"data-slot":"dropdown-menu",...e})}function l({...e}){return(0,a.jsx)(n.l9,{"data-slot":"dropdown-menu-trigger",...e})}function d({className:e,sideOffset:t=4,...s}){return(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{"data-slot":"dropdown-menu-content",sideOffset:t,className:(0,i.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...s})})}function c({className:e,inset:t,variant:s="default",...r}){return(0,a.jsx)(n.q7,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":s,className:(0,i.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function u({className:e,children:t,checked:s,...o}){return(0,a.jsxs)(n.H_,{"data-slot":"dropdown-menu-checkbox-item",className:(0,i.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:s,...o,children:[(0,a.jsx)("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(r.A,{className:"size-4"})})}),t]})}},87814:(e,t,s)=>{"use strict";s.d(t,{w:()=>i});var a=s(54568);s(7620);var r=s(54092),n=s(64318);function i({className:e,orientation:t="horizontal",decorative:s=!0,...o}){return(0,a.jsx)(r.b,{"data-slot":"separator",decorative:s,orientation:t,className:(0,n.cn)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...o})}},93733:(e,t,s)=>{"use strict";s.d(t,{AppSidebar:()=>h});var a=s(54568),r=s(33971),n=s(16434),i=s(36644),o=s(33202),l=s(64318),d=s(70134),c=s(9167),u=s(90466),m=s(63742);function h(){let e=(0,r.c)(),t=(0,n.Ym)(),s=(0,i.a8)(),h=(0,o.C)(e=>e.sidebarCollapsed),x=(0,o.C)(e=>e.toggleSidebarCollapsed),f=`https://community.keshtyaar.com/${t}/community`;return(0,a.jsxs)("aside",{className:(0,l.cn)("hidden shrink-0 flex-col border-e border-border bg-card lg:flex",h?"w-16":"w-64"),children:[(0,a.jsxs)("nav",{className:"flex flex-col gap-1 p-2",children:[c.T.map(({href:t,labelKey:r,icon:n,exact:o})=>{let d=o?s===t:s.startsWith(t);return(0,a.jsxs)(i.N_,{href:t,"aria-current":d?"page":void 0,"aria-label":e(r),className:(0,l.cn)("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors border-s-2",d?"border-primary bg-primary/10 text-foreground":"border-transparent text-muted-foreground hover:bg-primary/5 hover:text-foreground"),children:[(0,a.jsx)(n,{className:"h-4 w-4 shrink-0"}),!h&&(0,a.jsx)("span",{className:"truncate",children:e(r)})]},t)}),(0,a.jsxs)("a",{href:f,"aria-label":e(c.c.labelKey),className:"flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:bg-primary/5 hover:text-foreground",children:[(0,a.jsx)(c.c.icon,{className:"h-4 w-4 shrink-0"}),!h&&(0,a.jsx)("span",{className:"truncate",children:e(c.c.labelKey)})]})]}),!h&&(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto border-t border-border",children:(0,a.jsx)(d.b,{})}),h&&(0,a.jsx)("div",{className:"min-h-0 flex-1"}),(0,a.jsx)("button",{type:"button",title:h?e("nav.expand"):e("nav.collapse"),onClick:x,className:"flex items-center justify-center border-t border-border p-3 text-muted-foreground hover:text-foreground",children:h?(0,a.jsx)(u.A,{className:"h-4 w-4"}):(0,a.jsx)(m.A,{className:"h-4 w-4"})})]})}},95378:(e,t,s)=>{"use strict";s.d(t,{PaymentSuccessInvalidator:()=>o});var a=s(7620),r=s(79748),n=s(68728),i=s(33202);function o(){let e=(0,r.useSearchParams)(),t=(0,n.useQueryClient)(),s=(0,r.useRouter)(),o=(0,r.usePathname)(),l=(0,i.C)(e=>
1e.workspaceId);return(0,a.useEffect)(()=>{if("success"!==e.get("payment"))return;t.invalidateQueries({queryKey:["workspaces"]}),t.invalidateQueries({queryKey:["workspace-plan",l]}),t.invalidateQueries({queryKey:["subscription",l]}),t.invalidateQueries({queryKey:["user-billing"]}),t.invalidateQueries({queryKey:["wallet"]});let a=new URLSearchParams(e.toString());a.delete("payment");let r=a.toString();s.replace(r?`${o}?${r}`:o,{scroll:!1})},[e,t,s,o,l]),null}}},e=>{e.O(0,[5732,3249,6434,3357,3408,2957,9035,4854,609,6888,4189,5343,5459,9702,5604,9803,5030,5226,587,135,7358],()=>e(e.s=29649)),_N_E=e.O()}]);

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.