PageSourceSearch

https://ofisler.net/_next/static/chunks/2119.586289fff55c0122.js

js ofisler.net collected 2026-10-02 01:06:22 UTC 4,336 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2119],{2119:(e,r,a)=>{a.r(r),a.d(r,{KanbanBoard:()=>o});var t=a(56870),l=a(10502),s=a(22537);let n=(0,a(32446).A)("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);var i=a(27795),d=a(74083);let c=[{key:"new",label:"Yeni",dot:"bg-blue-500",badge:"bg-blue-50 text-blue-700 ring-blue-100",bar:"bg-blue-400"},{key:"contacted",label:"İletişimde",dot:"bg-amber-500",badge:"bg-amber-50 text-amber-700 ring-amber-100",bar:"bg-amber-400"},{key:"qualified",label:"Nitelikli",dot:"bg-violet-500",badge:"bg-violet-50 text-violet-700 ring-violet-100",bar:"bg-violet-400"},{key:"won",label:"Kazanıldı",dot:"bg-emerald-500",badge:"bg-emerald-50 text-emerald-700 ring-emerald-100",bar:"bg-emerald-400"},{key:"lost",label:"Kaybedildi",dot:"bg-red-500",badge:"bg-red-50 text-red-700 ring-red-100",bar:"bg-red-400"}];function o(e){let{leads:r}=e,[a,o]=(0,l.useState)(r),[b,u]=(0,l.useState)(null),[x,m]=(0,l.useState)(null),[,g]=(0,l.useTransition)(),[v,p]=(0,l.useState)(null),f=(0,i.useRouter)();return(0,t.jsxs)("div",{children:[v&&(0,t.jsx)("div",{className:"mb-3 rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-700",children:v}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-5",children:c.map(e=>{let r=a.filter(r=>r.status===e.key),l=x===e.key&&null!=b;return(0,t.jsxs)("div",{onDragOver:r=>{r.preventDefault(),x!==e.key&&m(e.key)},onDragLeave:r=>{r.currentTarget.contains(r.relatedTarget)||m(r=>r===e.key?null:r)},onDrop:()=>{null!=b&&function(e,r){let t=a.find(r=>r.id===e);if(!t||t.status===r)return;let l=t.status;o(a=>a.map(a=>a.id===e?{...a,status:r}:a)),g(async()=>{let a=await (0,d.W)({id:e,status:r});a.ok?(p(null),f.refresh()):(p(a.error),o(r=>r.map(r=>r.id===e?{...r,status:l}:r)))})}(b,e.key),u(null),m(null)},className:"flex min-h-[8rem] flex-col rounded-2xl border bg-[var(--av2-surface)]/40 p-2.5 transition ".concat(l?"border-[var(--av2-accent,#059669)] ring-2 ring-[var(--av2-accent,#059669)]
1/30 bg-[var(--av2-surface)]/70":"border-[var(--av2-border)]"),children:[(0,t.jsxs)("div",{className:"mb-2.5 flex items-center gap-1.5 px-0.5",children:[(0,t.jsx)("span",{className:"size-2 rounded-full ".concat(e.dot)}),(0,t.jsx)("span",{className:"text-xs font-semibold text-[var(--av2-text)]",children:e.label}),(0,t.jsx)("span",{className:"ml-auto rounded-full px-1.5 py-0.5 text-[10px] font-medium ring-1 ".concat(e.badge),children:r.length})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[r.map(r=>{var a;return(0,t.jsxs)("div",{draggable:!0,onDragStart:()=>u(r.id),onDragEnd:()=>{u(null),m(null)},className:"group relative flex cursor-grab items-stretch gap-2 overflow-hidden rounded-xl border border-[var(--av2-border)] bg-[var(--av2-surface)] p-2.5 pl-2 text-xs shadow-sm transition hover:-translate-y-0.5 hover:shadow-md active:cursor-grabbing ".concat(b===r.id?"opacity-50 ring-2 ring-[var(--av2-accent,#059669)]/40":""),children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 w-1 ".concat(e.bar)}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,t.jsx)("div",{className:"truncate font-semibold text-[var(--av2-text)]",children:null!=(a=r.name)?a:"İsimsiz"}),r.phone&&(0,t.jsxs)("div",{className:"mt-0.5 flex items-center gap-1 text-[var(--av2-text-muted)]",children:[(0,t.jsx)(s.A,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:r.phone})]}),(0,t.jsx)("div",{className:"mt-1 truncate text-[10px] font-medium text-[var(--av2-accent,#059669)]",children:r.officeName})]}),(0,t.jsx)(n,{className:"size-3.5 shrink-0 self-center text-[var(--av2-border)] opacity-0 transition group-hover:opacity-100"})]},r.id)}),0===r.length&&(0,t.jsx)("div",{className:"flex h-16 items-center justify-center rounded-lg border border-dashed border-[var(--av2-border)] text-[10px] text-[var(--av2-text-muted)]",children:"Boş"})]})]},e.key)})}),(0,t.jsx)("p",{className:"mt-3 text-xs text-[var(--av2-text-muted)]",children:"Kartı s\xfcr\xfckleyip bir s\xfctuna bırakarak durumu değiştirin."})]})}}}]);

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.