PageSourceSearch

https://chatpilots.ai/static/js/5040.7dd4a537.chunk.js

js chatpilots.ai collected 2026-10-05 13:04:45 UTC 30,325 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkPump=self.webpackChunkPump||[]).push([[5040],{5040(a,e,n){n.r(e),n.d(e,{default:()=>j});var r=n(22555),t=n(65043),c=n(27867),l=n(25133),o=n(6867),i=n(48445),p=n(67196),s=n(70579);const{TextArea:d}=c.Input,{Option:m}=c.Select,g=[{key:"active",label:"\ud83d\udccb Aktif Programlar"},{key:"all",label:"\ud83d\uddc2\ufe0f T\xfcm Programlar"},{key:"share",label:"\ud83d\udcf1 Dan\u0131\u015fan Sayfas\u0131"}],x={diyet:"Diyet listesi",egzersiz:"Egzersiz program\u0131",odev:"Seans \xf6devi"},u={diyetisyen:{icon:"\ud83e\udd57",title:"Diyet & Program",main:"diyet",sub:"Diyet listesi, \xf6l\xe7\xfcm hedefi ve seans \xf6devi \u2014 dan\u0131\u015fan\u0131n seanstan sonra elinde kalan \u015fey."},fizyoterapi:{icon:"\ud83e\uddd8",title:"Egzersiz Program\u0131",main:"egzersiz",sub:"Ev egzersiz program\u0131, set/tekrar ve seans \xf6devi \u2014 dan\u0131\u015fan\u0131n seanstan sonra elinde kalan \u015fey."},psikolog:{icon:"\ud83e\udde0",title:"Seans \xd6devleri",main:"odev",sub:"Seans \xf6devi, g\xfcnl\xfck kay\u0131t ve takip plan\u0131 \u2014 dan\u0131\u015fan\u0131n seanstan sonra elinde kalan \u015fey."}},b={diyet:"cr-b-g",egzersiz:"cr-b-b",odev:"cr-b-y"},h={aktif:"Aktif",tamamlandi:"Tamamland\u0131",iptal:"\u0130ptal"},k={diyet:["Sabah","Ara \xf6\u011f\xfcn","\xd6\u011fle","\u0130kindi","Ak\u015fam","Gece"],egzersiz:["G\xfcn 1","G\xfcn 2","G\xfcn 3","Her g\xfcn"],odev:["Bu hafta","G\xfcnl\xfck","Seans \xf6ncesi"]},f=a=>a?String(a).slice(0,10).split("-").reverse().join("."):"\u2014",v={group_label:"",name:"",detail:"",dose:"",frequency:""},y={patient_name:"",patient_phone:"",kind:"diyet",title:"",goal:"",start_date:"",end_date:"",clinical_note:"",items:[(0,r.A)({},v)]},j=()=>{(0,i.Yh)({panelKey:"care"});const a=(()=>{try{const a=new URLSearchParams(window.location.search).get("tab");return g.some(e=>e.key===a)?a:"active"}catch(a){return"active"}})(),e=o.A.care,[n,j]=(0,t.useState)(a),[w,z]=(0,t.useState)(!1),[N,A]=(0,t.useState)([]),[_,S]=(0,t.useState)(0),[C,D]=(0,t.useState)(null),[K,P]=(0,t.useState)(!1),[I,T]=(0,t.useState)(y),E=(0,t.useCallback)(async a=>{z(!0);try{const n=await l.Ay.get("".concat(e.programs).concat(a?"?filter=all":""));A(n.data&&n.data.data||[]),S(n.data&&n.data.expiring||0)}catch(n){A([])}z(!1)},[e.programs]),G=(0,t.useCallback)(async()=>{try{const a=await l.Ay.get(o.A.aiCopilot.workspaceSummary),e=a.data&&a.data.data&&a.data.data.booking;D(e&&e.slug||null)}catch(a){D(null)}},[]);(0,t.useEffect)(()=>{E("all"===a),G()},[]);const[L,Y]=(0,t.useState)(""),M=u[L]||{icon:"\ud83d\udccb",title:"Seans Program\u0131",main:"diyet",sub:"Diyet listesi, egzersiz program\u0131, seans \xf6devi \u2014 dan\u0131\u015fan\u0131n seanstan sonra elinde kalan \u015fey."};(0,t.useEffect)(()=>{l.Ay.get(o.A.aiCopilot.setupStatus).then(a=>{const e=a.data&&(a.data.data||a.data)||{};e&&e.vertical&&Y(String(e.vertical))}).catch(()=>{})},[]);const O=(0,t.useMemo)(()=>({active:N.filter(a=>"aktif"===a.status).length,byKind:{diyet:N.filter(a=>"diyet"===a.kind).length,egzersiz:N.filter(a=>"egzersiz"===a.kind).length,odev:N.filter(a=>"odev"===a.kind).length},other:N.filter(a=>a.kind!==M.main).length,expiring:_}),[N,_,M]),R=(a,e)=>{const n=I.items.slice();n[a]=(0,r.A)((0,r.A)({},n[a]),e),T((0,r.A)((0,r.A)({},I),{},{items:n}))},U=String(l.y0||"").replace(/\/+$/,"");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("style",{children:(0,p.Y)("cr","#639922")+p.N+"\n.cp-panel .cr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}\n.cp-panel .cr-p{background:var(--cp-surface);border:1px solid var(--cp-border);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:7px}\n.cp-panel .cr-p.expired{border-color:rgba(239,159,39,.5)}\n.cp-panel .cr-ptop{display:flex;justify-content:space-between;align-items:baseline;gap:10px}\n.cp-panel .cr-pn{font-size:14px;font-weight:800;color:var(--cp-title)}\n.cp-panel .cr-pt{font-size:12.5px;color:var(--cp-text2);font-weight:600}\n.cp-panel .cr-pm{font-size:11px;color:var(--cp-faint);display:flex;gap:7px;flex-wrap:wrap}\n.cp-panel .cr-goal{font-size:11.5px;color:var(--cp-text2);background:rgba(99,153,34,.1);border-radius:8px;padding:6px 10px;line-height:1.5}\n.cp-panel .cr-items{font-size:11.5px;color:var(--cp-muted);line-height:1.6;max-height:112px;overflow:auto}\n.cp-panel .cr-items b{color:#a3e635;font-weight:700}\n.cp-panel .cr-code{font-family:ui-monospace,Menlo,monospace;font-size:13px;font-weight:800;color:#a3e635;letter-spacing:.12em}\n.cp-panel .cr-pacts{display:flex;gap:4px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.05);padding-top:8px;margin-top:2px}\n.cp-panel .cr-hint{font-size:11.5px;color:var(--cp-muted);line-height:1.6;background:rgba(148,163,184,.06);border:1px solid rgba(148,163,184,.12);border-radius:10px;padding:9px 12px;margin-bottom:12px}\n.cp-panel .cr-hint b{color:var(--cp-text2)}\n.cp-panel .cr-share{display:flex;flex-direction:column;gap:10px;max-width:560px}\n.cp-dark-modal .cr-row{display:grid;grid-template-columns:112px minmax(0,1fr) 108px 96px 20px;gap:6px;align-items:center;margin-bottom:6px}\n.cp-dark-modal .cr-rowhd{display:grid;grid-template-columns:112px minmax(0,1fr) 108px 96px 20px;gap:6px;font-size:10.5px;color:var(--cp-faint);font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}\n@media(max-width:640px){\n  .cp-dark-modal .cr-row{grid-template-columns:1fr 1fr;}\n  .cp-dark-modal .cr-rowhd{display:none}\n}\n.cp-dark-modal .cr-info{background:var(--cp-surface);border-radius:10px;padding:10px 13px;font-size:11.5px;color:var(--cp-muted);line-height:1.65}\n.cp-dark-modal .cr-info b{color:var(--cp-text)}\n.cp-dark-modal .cr-private{background:rgba(226,75,74,.08);border:1px solid rgba(226,75,74,.25);border-radius:10px;padding:9px 12px;font-size:11.5px;color:var(--cp-danger);line-height:1.6}\n"}),(0,s.jsxs)("div",{className:"cp-panel",children:[(0,s.jsxs)("div",{className:"cp-in",children:[(0,s.jsxs)("div",{className:"cr-hdr",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h1",{className:"cr-title",children:[M.icon," ",M.title]}),(0,s.jsxs)("p",{className:"cr-sub",children:[M.sub.replace(" \u2014 dan\u0131\u015fan\u0131n seanstan sonra elinde kalan \u015fey.","")," \u2014 dan\u0131\u015fan\u0131n seanstan sonra ",(0,s.jsx)("b",{children:"elinde kalan \u015fey"}
1),". Komutla da yaz\u0131l\u0131r. Klinik not ayr\u0131 aland\u0131r, dan\u0131\u015fan sayfas\u0131nda g\xf6r\xfcnmez."]})]}),(0,s.jsx)("button",{className:"cr-btn cr-btn-p",onClick:()=>{T(y),P(!0)},children:"+ Program Yaz"})]}),(0,s.jsxs)("div",{className:"cr-kpis",children:[(0,s.jsxs)("div",{className:"cr-kpi",children:[(0,s.jsx)("span",{className:"cr-kpi-l",children:"Aktif program"}),(0,s.jsx)("span",{className:"cr-kpi-v",children:O.active||"\u2014"})]}),(0,s.jsxs)("div",{className:"cr-kpi",children:[(0,s.jsx)("span",{className:"cr-kpi-l",children:x[M.main]}),(0,s.jsx)("span",{className:"cr-kpi-v",children:O.byKind[M.main]||"\u2014"})]}),(0,s.jsxs)("div",{className:"cr-kpi",children:[(0,s.jsx)("span",{className:"cr-kpi-l",children:"Di\u011fer program"}),(0,s.jsx)("span",{className:"cr-kpi-v",children:O.other||"\u2014"})]}),(0,s.jsxs)("div",{className:"cr-kpi",children:[(0,s.jsx)("span",{className:"cr-kpi-l",children:"S\xfcresi dolan"}),(0,s.jsx)("span",{className:"cr-kpi-v ".concat(O.expiring?"cr-warn":""),children:O.expiring||"\u2014"})]})]}),(0,s.jsx)("div",{className:"cr-tabs",children:g.map(a=>(0,s.jsx)("button",{className:"cr-tab ".concat(n===a.key?"cr-tab-on":""),onClick:()=>{j(a.key),"share"!==a.key&&E("all"===a.key)},children:a.label},a.key))}),("active"===n||"all"===n)&&(0,s.jsxs)("div",{className:"cr-card",children:[(0,s.jsxs)("div",{className:"cr-card-hd",children:[(0,s.jsxs)("span",{className:"cr-card-t",children:["all"===n?"T\xfcm programlar":"Aktif programlar"," (",N.length,")",_?(0,s.jsxs)("em",{className:"cr-warn",children:[" \xb7 ",_," s\xfcresi dolmu\u015f"]}):null]}),(0,s.jsx)("button",{className:"cr-btn",onClick:()=>E("all"===n),children:"Yenile"})]}),(0,s.jsxs)("div",{className:"cr-hint",children:["Her program\u0131n ",(0,s.jsx)("b",{children:"6 haneli kodu"})," var; dan\u0131\u015fan \u201cprogram\u0131m\u201d sayfas\u0131ndan o kodla program\u0131n\u0131 g\xf6r\xfcr.",(0,s.jsx)("b",{children:" Klinik not dan\u0131\u015fana gitmez"})," \u2014 uzman\u0131n kendi de\u011ferlendirmesi ayr\u0131 alandad\u0131r."]}),N.length?(0,s.jsx)("div",{className:"cr-grid",children:N.map(a=>(0,s.jsxs)("div",{className:"cr-p".concat(a.expired?" expired":""),children:[(0,s.jsxs)("div",{className:"cr-ptop",children:[(0,s.jsx)("span",{className:"cr-pn",children:a.patient_name}),(0,s.jsx)("span",{className:"cr-badge ".concat(b[a.kind]||"cr-b-gr"),children:x[a.kind]||a.kind})]}),(0,s.jsx)("div",{className:"cr-pt",children:a.title}),(0,s.jsxs)("div",{className:"cr-pm",children:[(0,s.jsxs)("span",{children:[f(a.start_date),a.end_date?" \u2013 ".concat(f(a.end_date)):""]}),(0,s.jsxs)("span",{children:["\xb7 ",(a.items||[]).length," sat\u0131r"]}),"aktif"!==a.status?(0,s.jsxs)("span",{children:["\xb7 ",h[a.status]]}):null,a.expired?(0,s.jsx)("span",{className:"cr-warn",children:"\xb7 S\xdcRES\u0130 DOLDU"}):null]}),a.goal?(0,s.jsxs)("div",{className:"cr-goal",children:[(0,s.jsx)("b",{children:"Hedef:"})," ",a.goal]}):null,(0,s.jsxs)("div",{className:"cr-items",children:[(a.items||[]).slice(0,6).map(a=>(0,s.jsxs)("div",{children:[a.group_label?(0,s.jsxs)("b",{children:[a.group_label,": "]}):null,a.name,a.dose?" \u2014 ".concat(a.dose):"",a.frequency?" (".concat(a.frequency,")"):""]},a.id)),(a.items||[]).length>6?(0,s.jsxs)("div",{children:["\u2026 +",a.items.length-6," sat\u0131r"]}):null]}),(0,s.jsxs)("div",{className:"cr-pm",children:["Dan\u0131\u015fan kodu: ",(0,s.jsx)("span",{className:"cr-code",children:a.share_code||"\u2014"})]}),(0,s.jsxs)("div",{className:"cr-pacts",children:[(0,s.jsx)("button",{className:"cr-lnk",onClick:()=>(a=>{T({id:a.id,patient_name:a.patient_name,patient_phone:a.patient_phone||"",kind:a.kind,title:a.title,goal:a.goal||"",start_date:a.start_date?String(a.start_date).slice(0,10):"",end_date:a.end_date?String(a.end_date).slice(0,10):"",clinical_note:a.clinical_note||"",items:(a.items||[]).length?a.items.map(a=>({group_label:a.group_label||"",name:a.name,detail:a.detail||"",dose:a.dose||"",frequency:a.frequency||""})):[(0,r.A)({},v)]}),P(!0)})(a),children:"D\xfczenle"}),"aktif"===a.status?(0,s.jsx)("button",{className:"cr-lnk cr-ok",onClick:()=>(async(a,r)=>{try{await l.Ay.post(e.status,{id:a.id,status:r}),c.message.success("".concat(h[r]," i\u015faretlendi")),E("all"===n)}catch(t){c.message.error("G\xfcncellenemedi")}})(a,"tamamlandi"),children:"Tamamland\u0131"}):null,(0,s.jsx)("button",{className:"cr-lnk",onClick:()=>{try{navigator.clipboard.writeText("".concat(U,"/programim/").concat(C||"","\nProgram kodun: ").concat(a.share_code||"")),c.message.success("Adres ve kod kopyaland\u0131 \u2014 dan\u0131\u015fana g\xf6nderebilirsin")}catch(e){c.message.warning("Kopyalanamad\u0131")}},children:"Dan\u0131\u015fana g\xf6nder"}),(0,s.jsx)("button",{className:"cr-lnk cr-del",onClick:async()=>{await l.Ay.post(e.remove,{id:a.id}),E("all"===n)},children:"Sil"})]})]},a.id))}):(0,s.jsx)("div",{className:"cr-empty",children:w?"Y\xfckleniyor\u2026":"Program yok. \u201cAy\u015fe'ye diyet listesi yaz: sabah 2 dilim ekmek 1 yumurta, \xf6\u011fle \u0131zgara tavuk ve salata\u201d komutu da buraya yazar."})]}),"share"===n&&(0,s.jsxs)("div",{className:"cr-card",children:[(0,s.jsx)("div",{className:"cr-card-hd",children:(0,s.jsx)("span",{className:"cr-card-t",children:"Dan\u0131\u015fan sayfas\u0131 \u2014 \u201cprogram\u0131m\u201d"})}),(0,s.jsxs)("div",{className:"cr-hint",children:["Dan\u0131\u015fan bu adresi a\xe7ar, seansta verdi\u011fin ",(0,s.jsx)("b",{children:"6 haneli kodu"}
1)," ve ad\u0131n\u0131 girer, program\u0131n\u0131 g\xf6r\xfcr. Program g\xfcncellenince sayfa da g\xfcncellenir \u2014 WhatsApp'a foto\u011fraf g\xf6ndermeye gerek kalmaz.",(0,s.jsx)("b",{children:" Klinik notlar bu sayfada g\xf6r\xfcnmez."})]}),C?(0,s.jsxs)("div",{className:"cr-share",children:[(0,s.jsx)(c.Input,{readOnly:!0,value:"".concat(U,"/programim/").concat(C)}),(0,s.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,s.jsx)("a",{className:"cr-btn cr-btn-p",href:"".concat(U,"/programim/").concat(C),target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:"Sayfay\u0131 a\xe7"}),(0,s.jsx)("button",{className:"cr-btn",onClick:()=>{try{navigator.clipboard.writeText("".concat(U,"/programim/").concat(C)),c.message.success("Kopyaland\u0131")}catch(a){c.message.warning("Kopyalanamad\u0131")}},children:"Adresi kopyala"})]})]}):(0,s.jsx)("div",{className:"cr-empty",children:"\u0130\u015fletme adresin (slug) belirlenmemi\u015f. Kurulum sayfas\u0131ndan belirleyince dan\u0131\u015fan sayfan burada \xe7\u0131kar."})]})]}),(0,s.jsx)(c.Modal,{wrapClassName:"cp-dark-modal",title:I.id?"Program\u0131 D\xfczenle":"Program Yaz",visible:K,onCancel:()=>P(!1),onOk:async()=>{if(!I.patient_name.trim()||!I.title.trim())return void c.message.warning("Dan\u0131\u015fan ve program ad\u0131 gerekli");const a=I.items.filter(a=>a.name.trim());if(a.length)try{const t=await l.Ay.post(e.upsert,(0,r.A)((0,r.A)({},I),{},{items:a}));c.message.success("Program kaydedildi \xb7 dan\u0131\u015fan kodu ".concat(t.data&&t.data.share_code||"")),P(!1),T(y),E("all"===n)}catch(t){c.message.error(t&&t.response&&t.response.data&&t.response.data.message||"Kaydedilemedi")}else c.message.warning("En az bir program sat\u0131r\u0131 gerekli")},okText:"Kaydet",cancelText:"Vazge\xe7",width:860,children:(0,s.jsxs)("div",{className:"cp-form",children:[(0,s.jsxs)("label",{children:["Dan\u0131\u015fan",(0,s.jsx)(c.Input,{value:I.patient_name,onChange:a=>T((0,r.A)((0,r.A)({},I),{},{patient_name:a.target.value})),autoFocus:!0})]}),(0,s.jsxs)("label",{children:["Telefon",(0,s.jsx)(c.Input,{value:I.patient_phone,onChange:a=>T((0,r.A)((0,r.A)({},I),{},{patient_phone:a.target.value}))})]}),(0,s.jsxs)("label",{children:["Program t\xfcr\xfc",(0,s.jsx)(c.Select,{value:I.kind,onChange:a=>T((0,r.A)((0,r.A)({},I),{},{kind:a})),style:{width:"100%"},children:Object.keys(x).map(a=>(0,s.jsx)(m,{value:a,children:x[a]},a))})]}),(0,s.jsxs)("label",{children:["Program ad\u0131",(0,s.jsx)(c.Input,{value:I.title,onChange:a=>T((0,r.A)((0,r.A)({},I),{},{title:a.target.value})),placeholder:"A\u011fustos diyet listesi / Omuz rehabilitasyon"})]}),(0,s.jsxs)("label",{className:"cp-full",children:["Hedef",(0,s.jsx)(c.Input,{value:I.goal,onChange:a=>T((0,r.A)((0,r.A)({},I),{},{goal:a.target.value})),placeholder:"3 ayda 8 kilo \xb7 omuz hareket a\xe7\u0131kl\u0131\u011f\u0131 160\xb0"})]}),(0,s.jsxs)("label",{children:["Ba\u015flang\u0131\xe7",(0,s.jsx)(c.Input,{type:"date",value:I.start_date,onChange:a=>T((0,r.A)((0,r.A)({},I),{},{start_date:a.target.value}))})]}),(0,s.jsxs)("label",{children:["Biti\u015f",(0,s.jsx)(c.Input,{type:"date",value:I.end_date,onChange:a=>T((0,r.A)((0,r.A)({},I),{},{end_date:a.target.value}))})]}),(0,s.jsxs)("div",{className:"cp-full",children:[(0,s.jsxs)("div",{className:"cr-rowhd",children:[(0,s.jsx)("span",{children:"diyet"===I.kind?"\xd6\u011f\xfcn":"Grup"}),(0,s.jsx)("span",{children:"Ne yap\u0131lacak"}),(0,s.jsx)("span",{children:"Miktar / set"}),(0,s.jsx)("span",{children:"S\u0131kl\u0131k"}),(0,s.jsx)("span",{})]}),I.items.map((a,e)=>(0,s.jsxs)("div",{className:"cr-row",children:[(0,s.jsx)(c.Select,{size:"small",value:a.group_label||void 0,placeholder:"\u2014",allowClear:!0,onChange:a=>R(e,{group_label:a||""}),children:(k[I.kind]||[]).map(a=>(0,s.jsx)(m,{value:a,children:a},a))}),(0,s.jsx)(c.Input,{size:"small",value:a.name,placeholder:"diyet"===I.kind?"2 dilim tam bu\u011fday ekme\u011fi":"egzersiz"===I.kind?"Omuz fleksiyon":"G\xfcnl\xfck duygu kayd\u0131",onChange:a=>R(e,{name:a.target.value})}),(0,s.jsx)(c.Input,{size:"small",value:a.dose,placeholder:"egzersiz"===I.kind?"3 set \xd7 12":"1 porsiyon",onChange:a=>R(e,{dose:a.target.value})}),(0,s.jsx)(c.Input,{size:"small",value:a.frequency,placeholder:"her g\xfcn",onChange:a=>R(e,{frequency:a.target.value})}),I.items.length>1?(0,s.jsx)("button",{className:"cr-lnk cr-del",onClick:()=>T((0,r.A)((0,r.A)({},I),{},{items:I.items.filter((a,n)=>n!==e)})),children:"\xd7"}):(0,s.jsx)("span",{})]},e)),(0,s.jsx)("button",{className:"cr-btn",style:{marginTop:6},onClick:()=>T((0,r.A)((0,r.A)({},I),{},{items:I.items.concat([(0,r.A)({},v)])})),children:"+ Sat\u0131r"})]}),(0,s.jsxs)("label",{className:"cp-full",children:["Klinik not \u2014 YALNIZ SEN G\xd6R\xdcRS\xdcN",(0,s.jsx)(d,{rows:2,value:I.clinical_note,onChange:a=>T((0,r.A)((0,r.A)({},I),{},{clinical_note:a.target.value})),placeholder:"Kendi de\u011ferlendirmen; dan\u0131\u015fan sayfas\u0131nda G\xd6R\xdcNMEZ"})]}),(0,s.jsxs)("div",{className:"cr-private cp-full",children:["Dan\u0131\u015fana gidecek y\xf6nergeleri ",(0,s.jsx)("b",{children:"sat\u0131rlara"}),", kendi de\u011ferlendirmeni ",(0,s.jsx)("b",{children:"klinik not"})," alan\u0131na yaz. Klinik not dan\u0131\u015fan sayfas\u0131nda hi\xe7bir ko\u015fulda g\xf6sterilmez."]})]})})]})]})}},48445(a,e,n){n.d(e,{Yh:()=>p,_H:()=>s,_q:()=>d});var r=n(22555),t=n(65043),c=n(25133),l=n(6867);const o={panel:null,isLocked:!1,isPreview:!1,message:""},i=a=>(0,r.A)((0,r.A)({},o),{},{panel:a||null}),p=function(){let{panelKey:a,employeeKey:e,fallbackPanel:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[o,p]=(0,t.useState)([]),[s,d]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let a=!0;return c.Ay.get(l.A.personas.employeeRegistry).then(e=>{if(!a)return;const n=e&&e.data&&e.data.data||{};p(Array.isArray(n.assignments)?n.assignments:[]),d(!0)}).catch(()=>{a&&(p([]),d(!0))}),()=>{a=!1}},[]),(0,t.useMemo)(()=>{const t=n||o.find(n=>a&&n.panel_key===a||e&&n.employee_key===e)||null;return(0,r.A)((0,r.A)({},i(t)),{},{loaded:s})},[o,e,n,s,a])},s=()=>{},d=i},67196(a,e,n){function r(a,e){const n=e||"#8b5cf6";return"\n/* \xdcstte geri \xe7ubu\u011fu var (routes/index.js PanelBackBar); negatif \xfcst bo\u015fluk\n   verilirse panel \xe7ubu\u011fun ALTINA kay\u0131p ba\u015fl\u0131kla \xe7ak\u0131\u015f\u0131yor. */\n/* UYGULAMA KABU\u011eU DA KOYU OLMALI. .cp-panel yaln\u0131z kendi kutusunu boyar; \xfcst\xfcndeki\n   ant-layout sarmalay\u0131c\u0131s\u0131n\u0131n padding'i boyanmadan kal\u0131nca panelin \xdcST\xdcNDE beyaz bir\n   \u015ferit g\xf6r\xfcn\xfcyordu (kullan\u0131c\u0131 bildirdi). Rota listesi tutmak yerine sayfada .cp-panel\n   VARSA kabu\u011fu 
1koyula\u015ft\u0131r\u0131yoruz \u2014 yeni panel eklendi\u011finde kendili\u011finden \xe7al\u0131\u015f\u0131r. */\nbody:has(.cp-panel) .gx-app-layout,\nbody:has(.cp-panel) .gx-app-layout > .ant-layout,\nbody:has(.cp-panel) .gx-layout-content,\nbody:has(.cp-panel) .gx-main-content-wrapper{background:var(--cp-bg)}\nbody:has(.cp-panel) .gx-layout-content{min-height:100vh}\n\n/* KENAR TA\u015eMASI. \"margin:0 -32px\" bu kabu\u011fun 32px yan bo\u015flu\u011fu OLDU\u011eU varsay\u0131m\u0131yla\n   yaz\u0131lm\u0131\u015ft\u0131; panel sayfalar\u0131nda (routes/index.js) kabuk padding'i 0 veriliyor.\n   Sonu\xe7 (canl\u0131 \xf6l\xe7\xfcm, /vet): panel 248px'ten ba\u015fl\u0131yor \u2014 solda 32px sidebar'\u0131n\n   ALTINDA kal\u0131yor (\"Re\xe7ete\u2026\" yaz\u0131s\u0131n\u0131n ilk harfi kesiliyordu), sa\u011fda 26px\n   ta\u015f\u0131yordu. T\xfcm st\xfcdyo panelleri (salon, vet, di\u015f, estetik, cafe, otel\u2026) ayn\u0131\n   CSS'i kulland\u0131\u011f\u0131 i\xe7in hepsinde vard\u0131. */\n.cp-panel{position:relative;min-height:100vh;background:var(--cp-bg);color:var(--cp-text);font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;margin:0;padding:6px 24px 48px}\n.cp-panel::before{content:'';position:fixed;inset:0;background:radial-gradient(ellipse at 30% 20%,rgba(139,92,246,.07) 0%,transparent 50%),radial-gradient(ellipse at 70% 80%,rgba(59,130,246,.05) 0%,transparent 50%);z-index:0;pointer-events:none}\n.cp-panel>*{position:relative;z-index:1}\n.cp-panel *{box-sizing:border-box}\n.cp-panel button,.cp-panel input,.cp-panel select,.cp-panel textarea{font-family:inherit}\n.cp-panel .cp-in{max-width:1440px;margin:0 auto}\n\n/* ba\u015fl\u0131k */\n.cp-panel .".concat(a,"-hdr{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}\n.cp-panel .").concat(a,"-title{font-size:23px;font-weight:800;margin:0 0 5px;color:var(--cp-title);letter-spacing:-.02em}\n.cp-panel .").concat(a,"-sub{margin:0;color:var(--cp-muted);font-size:13px;line-height:1.6;max-width:64ch}\n\n/* KPI */\n.cp-panel .").concat(a,"-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:20px}\n.cp-panel .").concat(a,"-kpi{background:var(--cp-surface);border:1px solid var(--cp-border);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:6px;transition:border-color .15s}\n.cp-panel .").concat(a,"-kpi:hover{border-color:rgba(139,92,246,.4)}\n.cp-panel .").concat(a,"-kpi-l{font-size:11.5px;color:var(--cp-muted);letter-spacing:.01em}\n.cp-panel .").concat(a,"-kpi-v{font-size:20px;font-weight:800;color:var(--cp-title);line-height:1.15}\n.cp-panel .").concat(a,"-warn{color:#efaa27}\n.cp-panel .").concat(a,"-danger{color:#e24b4a}\n\n/* sekmeler */\n.cp-panel .").concat(a,"-tabs{display:flex;align-items:center;gap:8px;margin-bottom:16px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}\n.cp-panel .").concat(a,"-tabs::-webkit-scrollbar{display:none}\n.cp-panel .").concat(a,"-tab{flex:0 0 auto;border:1px solid var(--cp-border);background:var(--cp-surface);border-radius:999px;padding:8px 15px;font-size:12.5px;font-weight:600;color:#b8c4d8;cursor:pointer;transition:all .15s;white-space:nowrap}\n.cp-panel .").concat(a,"-tab:hover{border-color:").concat(n,";color:var(--cp-title)}\n.cp-panel .").concat(a,"-tab-on{background:").concat(n,";border-color:").concat(n,";color:#fff}\n\n/* kart */\n.cp-panel .").concat(a,"-card{background:var(--cp-surface);border:1px solid var(--cp-border);border-radius:16px;padding:18px;margin-bottom:16px}\n.cp-panel .").concat(a,"-card-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}\n.cp-panel .").concat(a,"-card-t{font-size:13.5px;font-weight:600;color:var(--cp-text2)}\n.cp-panel .").concat(a,"-empty{padding:38px 16px;text-align:center;color:var(--cp-muted);font-size:13px;line-height:1.8}\n.cp-panel .").concat(a,"-note{background:rgba(239,159,39,.09);border:1px solid rgba(239,159,39,.3);color:#efaa27;border-radius:10px;padding:10px 13px;font-size:12.5px;margin-bottom:12px}\n\n/* buton */\n.cp-panel .").concat(a,"-btn{border:1px solid var(--cp-border);background:var(--cp-surface);border-radius:10px;padding:8px 15px;font-size:12.5px;font-weight:600;color:var(--cp-text2);cursor:pointer;transition:all .15s;white-space:nowrap}\n.cp-panel .").concat(a,"-btn:hover{border-color:rgba(139,92,246,.5);color:var(--cp-title)}\n.cp-panel .").concat(a,"-btn-p{background:").concat(n,";border-color:").concat(n,";color:#fff}\n.cp-panel .").concat(a,"-btn-p:hover{filter:brightness(1.12);border-color:").concat(n,";color:#fff}\n.cp-panel .").concat(a,"-btn-s{padding:6px 11px;font-size:11.5px}\n.cp-panel .").concat(a,"-btn-x{padding:6px 11px;font-size:11.5px;color:#e24b4a;border-color:rgba(226,75,74,.3)}\n.cp-panel .").concat(a,"-btn-x:hover{border-color:#e24b4a;color:#e24b4a}\n\n/* rozet */\n.cp-panel .").concat(a,"-badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10.5px;font-weight:700;white-space:nowrap;letter-spacing:.02em}\n.cp-panel .").concat(a,"-b-g{background:rgba(45,190,125,.14);color:#2dbe7d}\n.cp-panel .").concat(a,"-b-y{background:rgba(239,159,39,.14);color:#efaa27}\n.cp-panel .").concat(a,"-b-r{background:rgba(226,75,74,.14);color:#e24b4a}\n.cp-panel .").concat(a,"-b-b{background:rgba(96,165,250,.14);color:var(--cp-info)}\n.cp-panel .").concat(a,"-b-gr{background:rgba(148,163,184,.12);color:var(--cp-muted)}\n\n/* tablo \u2014 sayfa DE\u011e\u0130L, kutu kayar */\n.cp-panel .").concat(a,"-tblwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -4px;padding:0 4px}\n.cp-panel .").concat(a,"-tbl{width:100%;border-collapse:collapse;font-size:12.5px;min-width:620px}\n.cp-panel .").concat(a,"-tbl th{text-align:left;padding:9px 10px;font-size:10.5px;font-weight:700;color:var(--cp-muted);text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--cp-border);white-space:nowrap}\n.cp-panel .").concat(a,"-tbl td{padding:11px 10px;border-bottom:1px solid rgba(30,41,59,.6);color:var(--cp-text2);vertical-align:top}\n.cp-panel .").concat(a,"-tbl tbody tr:hover td{background:rgba(139,92,246,.05)}\n.cp-panel .").concat(a,"-tbl b{color:var(--cp-title);font-weight:600}\n.cp-panel .").concat(a,"-tot td{background:rgba(139,92,246,.07);font-weight:700;color:var(--cp-title)}\n.cp-panel .").concat(a,"-row-danger td{background:rgba(226,75,74,.07)}\n.cp-panel .").concat(a,"-w{max-width:240px;white-space:normal}\n\n/* sat\u0131r i\xe7i ba\u011flant\u0131 */\n.cp-panel .").concat(a,"-lnk{border:none;background:none;color:var(--cp-muted);font-size:11.5px;font-weight:600;cursor:pointer;padding:0 6px}\n.cp-panel .").concat(a,"-lnk:hover{color:var(--cp-title);text-decoration:underline}\n.cp-panel .").concat(a,"-ok{color:#2dbe7d} .cp-panel .").concat(a,"-del{color:#e24b4a}\n.cp-panel .").concat(a,"-actcell{white-space:nowrap}\n\n/* antd alanlar\u0131 koyu tema */\n.cp-panel .ant-input,.cp-panel .ant-input-affix-wrapper,.cp-panel .ant-select-selector,.cp-panel .ant-input-number{background:var(--cp-surface2) !important;border-color:#1e293b !important;color:var(--cp-text) !important;border-radius:9px !important}\n.cp-panel .ant-input::placeholder,.cp-panel .ant-select-selection-
1placeholder{color:var(--cp-faint) !important}\n.cp-panel .ant-select-selection-item{color:var(--cp-text) !important}\n.cp-panel .ant-input-search .ant-input-group-addon,.cp-panel .ant-input-group-addon{background:var(--cp-surface2) !important;border-color:#1e293b !important}\n.cp-panel .ant-btn{background:var(--cp-surface);border-color:#1e293b;color:var(--cp-text2)}\n.cp-panel .ant-input-affix-wrapper:hover,.cp-panel .ant-input:hover,.cp-panel .ant-select:hover .ant-select-selector{border-color:rgba(139,92,246,.5) !important}\n.cp-panel .anticon{color:var(--cp-muted)}\n\n@media(max-width:900px){\n  .cp-panel{margin:0 -16px;padding:4px 14px 40px}\n  .cp-panel .").concat(a,"-title{font-size:19px}\n  .cp-panel .").concat(a,"-kpis{grid-template-columns:1fr 1fr;gap:9px}\n  .cp-panel .").concat(a,"-kpi{padding:11px 12px;border-radius:12px}\n  .cp-panel .").concat(a,"-kpi-v{font-size:16px}\n  .cp-panel .").concat(a,"-card{padding:14px 12px;border-radius:13px}\n  .cp-panel .").concat(a,"-card-hd{gap:9px}\n  .cp-panel .").concat(a,"-card-hd .ant-input-affix-wrapper,.cp-panel .").concat(a,"-card-hd .ant-input-search{width:100% !important;max-width:none !important}\n  .cp-panel .").concat(a,"-btn{width:auto}\n}\n@media(max-width:520px){\n  .cp-panel .").concat(a,"-kpis{grid-template-columns:1fr 1fr}\n  .cp-panel .").concat(a,"-hdr{flex-direction:column;align-items:stretch}\n  .cp-panel .").concat(a,"-card-hd{flex-direction:column;align-items:stretch}\n  .cp-panel .").concat(a,"-card-hd>*{width:100%}\n  .cp-panel .").concat(a,"-btn-p{text-align:center}\n}\n")}n.d(e,{N:()=>t,Y:()=>r});const t='\n.cp-dark-modal .ant-modal-content{background:var(--cp-elevated);border:1px solid rgba(139,92,246,.18);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.6);overflow:hidden}\n.cp-dark-modal .ant-modal-header{background:var(--cp-elevated);border-bottom:1px solid rgba(255,255,255,.07);padding:16px 22px}\n.cp-dark-modal .ant-modal-title{color:var(--cp-title);font-weight:700;font-size:15.5px}\n.cp-dark-modal .ant-modal-body{padding:18px 22px;color:var(--cp-text2)}\n.cp-dark-modal .ant-modal-footer{background:var(--cp-elevated);border-top:1px solid rgba(255,255,255,.07);padding:12px 22px}\n.cp-dark-modal .ant-modal-close-x{color:var(--cp-muted)}\n.cp-dark-modal .ant-modal-confirm-title,.cp-dark-modal .ant-modal-confirm-content{color:var(--cp-text)}\n.cp-dark-modal .ant-input,.cp-dark-modal .ant-input-affix-wrapper,.cp-dark-modal .ant-select-selector,.cp-dark-modal textarea.ant-input{background:var(--cp-surface2) !important;border-color:#1e293b !important;color:var(--cp-text) !important;border-radius:9px !important}\n.cp-dark-modal .ant-input::placeholder,.cp-dark-modal textarea.ant-input::placeholder,.cp-dark-modal .ant-select-selection-placeholder{color:var(--cp-faint) !important}\n.cp-dark-modal .ant-select-selection-item{color:var(--cp-text) !important}\n.cp-dark-modal .ant-btn{background:var(--cp-surface);border-color:#1e293b;color:var(--cp-text2);border-radius:9px}\n.cp-dark-modal .ant-btn:hover{border-color:rgba(139,92,246,.5);color:var(--cp-title)}\n.cp-dark-modal .ant-btn-primary{background:#8b5cf6;border-color:#8b5cf6;color:#fff}\n.cp-dark-modal .ant-btn-primary:hover{filter:brightness(1.12);background:#8b5cf6;border-color:#8b5cf6;color:#fff}\n.cp-dark-modal .cp-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}\n.cp-dark-modal .cp-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:var(--cp-muted)}\n.cp-dark-modal .cp-form .cp-full{grid-column:1 / -1}\n.cp-dark-modal .cp-hint{font-size:11.5px;color:var(--cp-muted);background:rgba(139,92,246,.07);border:1px solid rgba(139,92,246,.18);border-radius:10px;padding:10px 12px;font-weight:400;line-height:1.6}\n.cp-dark-modal input[type="date"]{color-scheme:dark}\n/* koyu tema a\xe7\u0131l\u0131r listeler */\n.ant-select-dropdown{background:var(--cp-elevated) !important;border:1px solid rgba(139,92,246,.18)}\n.ant-select-dropdown .ant-select-item{color:var(--cp-text2)}\n.ant-select-dropdown .ant-select-item-option-active,.ant-select-dropdown .ant-select-item-option-selected{background:rgba(139,92,246,.16) !important;color:var(--cp-title)}\n@media(max-width:520px){\n  .cp-dark-modal .ant-modal{max-width:96vw;margin:8px auto}\n  .cp-dark-modal .cp-form{grid-template-columns:1fr}\n  .cp-dark-modal .ant-modal-body{padding:14px 16px}\n}\n'}}]);
2//# sourceMappingURL=5040.7dd4a537.chunk.js.map

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.