PageSourceSearch

https://app.kurrant.ai/_next/static/chunks/pages/pipeline-5adeba60b356fd96.js

js kurrant.ai collected 2026-10-05 13:45:23 UTC 14,856 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2231],{8810:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipeline",function(){return s(48989)}])},48989:function(e,r,s){"use strict";s.r(r),s.d(r,{default:function(){return E}});var l=s(85893),t=s(67294),n=s(9008),i=s.n(n),a=s(73026),d=s(81081),c=s(34482),o=s(7101),x=s(79973),u=s(72216),m=()=>(0,l.jsx)("div",{className:"w-full bg-gray-50",children:(0,l.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 mb-8 animate-pulse",children:[(0,l.jsx)("div",{className:"w-6 h-6 bg-gray-200 rounded"}),(0,l.jsx)("div",{className:"h-8 bg-gray-200 rounded w-48"})]}),(0,l.jsx)("div",{className:"flex gap-6 overflow-x-auto pb-6",children:[...Array(6)].map((e,r)=>(0,l.jsxs)("div",{className:"flex-shrink-0 w-80 animate-pulse",children:[(0,l.jsx)("div",{className:"bg-white rounded-t-lg border border-gray-200 p-4 mb-2",children:(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"w-4 h-4 bg-gray-200 rounded"}),(0,l.jsx)("div",{className:"w-3 h-3 bg-gray-200 rounded-full"}),(0,l.jsx)("div",{className:"h-5 bg-gray-200 rounded w-20"}),(0,l.jsx)("div",{className:"ml-auto w-6 h-6 bg-gray-200 rounded"})]})}),(0,l.jsx)("div",{className:"bg-gray-50 rounded-b-lg border-l border-r border-b border-gray-200 min-h-96 p-3 space-y-3",children:[...Array([3,2,4,1,3,2][r]||2)].map((e,r)=>(0,l.jsxs)("div",{className:"bg-white rounded-lg p-4 shadow-sm border border-gray-200",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 mb-3",children:[(0,l.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-lg"}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),(0,l.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]})]}),(0,l.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/3"})]},r))})]},r))})]})}),p=s(41664),h=s.n(p),g=s(67421),j=e=>{let{error:r,onRetry:s}=e,{t}=(0,g.$G)();return(0,l.jsx)("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:(0,l.jsxs)("div",{className:"bg-white rounded-2xl border border-gray-200 p-8 max-w-md w-full mx-4 text-center",children:[(0,l.jsx)("div",{className:"text-red-500 text-4xl mb-4",children:"⚠️"}),(0,l.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:t("pipeline.error.title")}),(0,l.jsx)("p",{className:"text-gray-600 mb-6",children:r}),(0,l.jsxs)("div",{className:"flex gap-4 justify-center",children:[(0,l.jsx)("button",{onClick:s,className:"btn-primary",children:t("pipeline.error.retry")}),(0,l.jsx)(h(),{href:"/dashboard",className:"btn-secondary",children:t("pipeline.error.back_to_dashboard")})]})]})})},f=e=>{let{onUpgrade:r}=e,{t:s}=(0,g.$G)();return(0,l.jsx)("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:(0,l.jsxs)("div",{className:"bg-white rounded-2xl border border-gray-200 p-8 max-w-lg w-full mx-4 text-center",children:[(0,l.jsx)("div",{className:"mx-auto w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mb-6",children:(0,l.jsx)("svg",{className:"w-8 h-8 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),(0,l.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:s("pipeline.free_tier.title")}),(0,l.jsxs)("p",{className:"text-gray-600 mb-8 leading-relaxed",children:[s("pipeline.free_tier.description_before")," ",(0,l.jsx)("button",{onClick:r,className:"text-kurrant-purple hover:text-kurrant-purple-dark font-medium underline",children:s("pipeline.free_tier.upgrade_link")})," ",s("pipeline.free_tier.description_after")]}),(0,l.jsxs)("div",{className:"bg-gray-50 rounded-lg p-6 mb-6",children:[(0,l.jsx)("h3",{className:"font-semibold text-gray-900 mb-3",children:s("pipeline.free_tier.features_title")}),(0,l.jsxs)("ul",{className:"text-sm text-gray-600 space-y-2 text-left",children:[(0,l.jsxs)("li",{className:"flex items-center",children:[(0,l.jsx)("svg",{className:"w-4 h-4 text-green-500 mr-3",fill:"
1currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),s("pipeline.free_tier.feature_dnd")]}),(0,l.jsxs)("li",{className:"flex items-center",children:[(0,l.jsx)("svg",{className:"w-4 h-4 text-green-500 mr-3",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),s("pipeline.free_tier.feature_team")]}),(0,l.jsxs)("li",{className:"flex items-center",children:[(0,l.jsx)("svg",{className:"w-4 h-4 text-green-500 mr-3",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),s("pipeline.free_tier.feature_tracking")]}),(0,l.jsxs)("li",{className:"flex items-center",children:[(0,l.jsx)("svg",{className:"w-4 h-4 text-green-500 mr-3",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),s("pipeline.free_tier.feature_custom")]})]})]}),(0,l.jsx)("button",{onClick:r,className:"btn-primary w-full",children:s("pipeline.free_tier.upgrade_button")})]})})},b=s(60887),v=s(45587),N=s(20567),y=s(14932),w=s(24285),_=s(19113),k=s(15922),C=e=>{var r;let{card:s,index:t,columnId:n}=e,i="".concat(n,"-").concat(t),{t:a}=(0,g.$G)(),{attributes:d,listeners:c,setNodeRef:o,transform:x,transition:u,isDragging:m}=(0,v.nB)({id:i}),p={transform:w.ux.Transform.toString(x),transition:u};return(0,l.jsxs)("div",(0,y._)((0,N._)({ref:o,style:p},d,c),{className:"\n        bg-white rounded-lg border border-gray-200 p-4 shadow-sm\n        transition-all duration-200 cursor-move\n        ".concat(m?"shadow-lg ring-2 ring-kurrant-purple ring-opacity-50 opacity-50":"hover:shadow-md","\n      "),children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 mb-3",children:[(0,l.jsx)("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center overflow-hidden rounded-xl bg-slate-100",children:(0,l.jsx)(_.Z,{logoUrl:null!==(r=s.logo_url)&&void 0!==r?r:void 0,alt:"".concat(s.organization_name," logo"),className:"h-full w-full"})}),(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)(h(),{href:(0,k.r7)({id:s.organization_id,permalink:s.permalink}),className:"block font-medium text-gray-900 hover:text-kurrant-purple transition-colors duration-200 text-sm leading-tight",onClick:e=>e.stopPropagation(),children:(0,l.jsx)("span",{className:"line-clamp-2",children:s.organization_name})})})]}),(0,l.jsxs)("div",{className:"border-t border-gray-100 pt-2",children:[(0,l.jsx)("p",{className:"text-xs text-gray-500 truncate",children:a("pipeline.card.owner",{name:s.user_name})}),(0,l.jsx)("p",{className:"text-xs text-gray-400 mt-1",children:new Date(s.created_at).toLocaleDateString()})]})]}))},L=e=>{let{columnId:r,cards:s,color:t,isCollapsed:n,onToggle:i}=e,{t:a}=(0,g.$G)(),d=a("pipeline.status.".concat(r)),{setNodeRef:c,isOver:o}=(0,b.Zj)({id:r}),x=s.map((e,s)=>"".concat(r,"-").concat(s));return(0,l.jsxs)("div",{className:"flex-shrink-0 w-80",children:[(0,l.jsx)("div",{className:"bg-white rounded-t-lg border border-gray-200 p-4 cursor-pointer hover:bg-gray-50 transition-colors",onClick:i,children:(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("button",{className:"p-0.5 hover:bg-gray-100 rounded transition-colors",children:n?(0,l.jsx)("svg",{className:"w-4 h-4 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}):(0,l.jsx)("svg",{className:"w-4 h-4 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}),(0,l.jsx)("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:t}}),(0,l.jsx)("h2",{className:"font-semibold text-gray-900",style:{color:t},children:d}),(0,l.jsx)("div",{className:"ml-auto",children:(0,l.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium text-white rounded-full",style:{backgroundColor:t},children:s.length})})]})}),!n&&(0,l.jsx)("div",{ref:c,className:"\n            min-h-96 bg-gray-50 rounded-b-lg border-l border-r border-b border-gray-200 p-3\n            transition-colors duration-200\n            ".concat(o?"bg-blue-50 border-blue-300":"","\n          "),children:(0,l.jsx)(v.Fo,{items:x,strategy:v.qw,children:(0,l.jsxs)("div",{className:"space-y-3",children:[s.map((e,s)=>(0,l.jsx)(C,{card:e,index:s,columnId:r},e.id)),0===s.length&&(0,l.jsxs)("div",{className:"text-center py-12",children:[(0,l.jsx)("div",{className:"text-gray-400 mb-2",children:(0,l.jsx)("svg",{className:"w-8 h-8 mx-auto",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"})})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:a("pipeline.column.empty")})]})]})})}),n&&(0,l.jsx)("div",{className:"bg-gray-50 rounded-b-lg border-l border-r border-b border-gray-200 p-2",children:(0,l.jsx)("div",{className:"text-center text-sm text-gray-500",children:a(1===s.length?"pipeline.column.count_one":"pipeline.column.count_other",{count:s.length})})})]})},B=e=>{let{totalCompanies:r,columnCounts:s,suppressTitleBlock:t}=e,{t:n}=(0,g.$G)();return t?null:(0,l.jsx)("div",{className:"mb-8",children:(0,l.jsxs)("div",{className:"mb-4 flex items-center gap-3",children:[(0,l.jsx)("div",{className:"rounded-lg bg-kurrant-purple p-2",children:(0,l.jsx)("svg",{className:"h-6 w-6 text-white",f
1ill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"text-3xl font-bold text-gray-900",children:n("pipeline.header.title")}),(0,l.jsx)("p",{className:"text-gray-600",children:0===r?n("pipeline.header.subtitle_empty"):n("pipeline.header.subtitle",{count:r})})]})]})})},M=()=>{let{columns:e,collapsedColumns:r,updateCardStatus:s,toggleColumn:n}=(0,c.an)(),i=(0,b.Dy)((0,b.VT)(b.we,{activationConstraint:{distance:8}})),[a,d]=t.useState(null),o=Object.values(e).reduce((e,r)=>e+r.length,0),x=Object.entries(e).reduce((e,r)=>{let[s,l]=r;return e[s]=l.length,e},{});return(0,l.jsx)("div",{className:"min-h-screen bg-gray-50",children:(0,l.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8 py-8",children:[(0,l.jsx)(B,{totalCompanies:o,columnCounts:x,suppressTitleBlock:!0}),(0,l.jsxs)(b.LB,{sensors:i,onDragStart:r=>{var s;let{active:l}=r,[t,n]=l.id.toString().split("-");d(null===(s=e[t])||void 0===s?void 0:s[parseInt(n)])},onDragEnd:r=>{let{active:l,over:t}=r;if(d(null),!t)return;let n=l.id.toString(),i=t.id.toString(),[a,o]=n.split("-"),[x,u]=i.includes("-")?i.split("-"):[i,"0"];if(!c.s_.includes(a)||!c.s_.includes(x)){console.error("Invalid pipeline status:",a,"or",x);return}let m=parseInt(o),p="end"===u?e[x].length:parseInt(u);if(a===x&&m===p)return;let h=e[a][m];if(!h){console.error("Card not found at specified index");return}s(h.id,a,x,m,p)},children:[(0,l.jsx)("div",{className:"flex gap-6 overflow-x-auto pb-6",children:c.s_.map(s=>(0,l.jsx)(L,{columnId:s,cards:e[s]||[],color:c.wW[s],isCollapsed:r[s]||!1,onToggle:()=>n(s)},s))}),(0,l.jsx)(b.y9,{children:a?(0,l.jsx)("div",{className:"transform rotate-3 opacity-90",children:(0,l.jsx)(C,{card:a,index:0,columnId:a.status})}):null})]})]})})},E=()=>{let{t:e}=(0,g.$G)(),{user:r,loading:s,hasAccess:n,isFreeTier:p}=(0,o.k)(),{openBillingPortal:h}=(0,x.useBillingPortal)(),b=(0,u.MI)(),{columns:v,loading:N,error:y,fetchPipelineData:w,setUser:_,reset:k}=(0,c.an)(),C=(0,t.useMemo)(()=>Object.values(v).reduce((e,r)=>e+r.length,0),[v]);(0,t.useEffect)(()=>{r&&_(r)},[r,_]),(0,t.useEffect)(()=>{n&&w()},[n,w]),(0,t.useEffect)(()=>{0!==b&&n&&w()},[b,n,w]),(0,t.useEffect)(()=>()=>k(),[k]);let L=s||n&&N,B=(0,l.jsx)(d.sd,{children:e("pipeline.header.title")}),E=0===C?e("pipeline.header.subtitle_empty"):e("pipeline.header.subtitle",{count:C});return(0,l.jsx)(a.Z,{user:r,headerTitle:B,headerSubtitle:E,children:L?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i(),{children:[(0,l.jsx)("title",{children:e("pipeline.page_title")}),(0,l.jsx)("meta",{name:"description",content:e("pipeline.page_description")})]}),(0,l.jsx)(m,{})]}):p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i(),{children:[(0,l.jsx)("title",{children:e("pipeline.upgrade_required_title")}),(0,l.jsx)("meta",{name:"description",content:e("pipeline.upgrade_required_description")})]}),(0,l.jsx)(f,{onUpgrade:h})]}):!n||y?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i(),{children:[(0,l.jsx)("title",{children:e("pipeline.error_page_title")}),(0,l.jsx)("meta",{name:"description",content:e("pipeline.error_page_description")})]}),(0,l.jsx)(j,{error:y||e("pipeline.access_denied"),onRetry:w})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i(),{children:[(0,l.jsx)("title",{children:e("pipeline.page_title")}),(0,l.jsx)("meta",{name:"description",content:e("pipeline.page_description")})]}),(0,l.jsx)(M,{})]})})}},73026:function(e,r,s){"use strict";var l=s(20567),t=s(85893);s(67294);var n=s(31616);r.Z=e=>(0,t.jsx)(n.Z,(0,l._)({},e))},7101:function(e,r,s){"use strict";s.d(r,{k:function(){return t}});var l=s(67294);let t=()=>{let[e,r]=(0,l.useState)(null),[t,n]=(0,l.useState)(!0);(0,l.useEffect)(()=>{(async()=>{try{let{currentUser:e}=await Promise.resolve().then(s.bind(s,31533)),l=await e();r(l)}catch(e){console.error("Failed to fetch user data:",e),r(null)}finally{n(!1)}})()},[]);let i=async()=>{try{let{useBillingPortal:e}=await Promise.resolve().then(s.bind(s,79973));console.log("Open billing portal for upgrade")}catch(e){console.error("Failed to open billing portal:",e)}},a=(null==e?void 0:e.role)==="free_tier";return{user:e,loading:t,hasAccess:null!==e&&!a,isFreeTier:a,openUpgrade:i}}}},function(e){e.O(0,[5865,6342,3492,4619,4097,8111,2982,1628,977,7060,1616,2888,9774,179],function(){return e(e.s=8810)}),_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.