1import{o,c as n,a as e,_ as $,g as B,h as c,b as i,u as l,i as H,t as s,F as _,j as b,n as m,d as x,e as Z,k as V,f as k}from"./app-DVhk9hEg.js";import{Y as A,G as D,V as L}from"./dialog-B1KZN6xf.js";import{h as y,S as E}from"./transition-CLaDrR5O.js";import{r as N}from"./XMarkIcon-B221X_Ru.js";/* empty css */import"./keyboard-BzxerdJT.js";function O(t,d){return o(),n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"})])}function j(t,d){return o(),n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function S(t,d){return o(),n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"})])}function I(t,d){return o(),n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"})])}function F(t,d){return o(),n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function z(t,d){return o(),n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 8.25h15m-16.5 7.5h15m-1.8-13.5-3.9 19.5m-2.1-19.5-3.9 19.5"})])}function G(t,d){return o(),n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})])}function T(t,d){return o(),n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 6h.008v.008H6V6Z"})])}const Y={class:"fixed inset-0 overflow-hidden"},J={class:"absolute inset-0 overflow-hidden"},U={class:"pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-6 sm:pl-10"},q={class:"flex h-[76px] shrink-0 items-center justify-between border-b border-slate-100 bg-white px-6"},K={class:"flex-1 overflow-y-auto bg-white px-5 py-6 sm:px-6"},P={key:0,class:"space-y-6"}
1,Q={class:"relative overflow-hidden rounded-xl border border-[#E8E3FF] bg-gradient-to-br from-[#F1EEFF] via-[#F7F5FF] to-[#EFECFF] px-5 py-5"},R={class:"relative flex items-center gap-4"},W={class:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-white text-[#5B4CF6] shadow-sm ring-1 ring-[#DDD8FF]"},X={class:"min-w-0"},ee={class:"mt-1 text-[22px] font-semibold leading-6 tracking-[-0.02em] text-slate-900"},te={key:0},se={class:"mb-3 flex items-center justify-between"},oe={class:"text-[16px] font-semibold text-slate-900"},ne={class:"rounded-full bg-slate-100 px-2.5 py-1 text-xs font-medium text-slate-500"},le={class:"overflow-hidden rounded-xl border border-slate-200 bg-white"},ae={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-slate-50 text-slate-400 ring-1 ring-slate-100"},re={class:"min-w-0 flex-1"},ie={class:"text-xs font-medium text-slate-400"},de={class:"mt-1 break-words text-sm font-medium leading-5 text-slate-800"},ce={key:1},he={class:"overflow-hidden rounded-xl border border-slate-200"},ue={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-slate-50 text-slate-400"},me={class:"min-w-0"},xe={class:"text-xs font-medium text-slate-400"},fe={class:"mt-1 break-words text-sm font-medium text-slate-800"},pe={key:2,class:"overflow-hidden rounded-xl border border-slate-200"},ve={class:"flex items-center gap-3"},we={class:"flex h-8 w-8 items-center justify-center rounded-lg bg-slate-50 text-slate-500"},ge={class:"text-sm font-semibold text-slate-800"},_e={class:"mt-0.5 text-xs text-slate-400"},be={class:"border-t border-slate-100 bg-slate-50/50 px-4 py-4"},ke={class:"space-y-4"},ye={class:"flex items-start gap-3"},je={class:"text-xs text-slate-400"},Fe={class:"mt-1 text-sm font-medium text-slate-800"},Ce={class:"flex items-start gap-3"},Me={class:"min-w-0"},$e={class:"text-xs text-slate-400"},Be=["href"],He={class:"flex items-start gap-3"},Ze={class:"text-xs text-slate-400"},Ve={class:"overflow-hidden rounded-xl border border-slate-200"},Ae={class:"flex items-center justify-between gap-4 px-4 py-3.5"},De={class:"flex items-center gap-3"},Le={class:"text-sm font-medium text-slate-800"},Ee={key:0,class:"flex items-center justify-between gap-4 border-t border-slate-100 px-4 py-3.5"},Ne={class:"flex items-center gap-3"},Oe={class:"text-sm font-medium text-slate-800"},Se={class:"flex items-center justify-between gap-4 border-t border-slate-100 px-4 py-3.5"},Ie={class:"flex items-center gap-3"},ze={class:"text-sm text-slate-500"},Ge={class:"text-right text-sm font-medium text-slate-800"},Te={key:1,class:"flex h-full items-center justify-center text-sm text-slate-400"},Ye={__name:"LeadInfo",props:{lead:{type:Object,default:null}},emits:["close"],setup(t,{emit:d}){const C=d,v=k(!0),h=k(!1),w=()=>{v.value=!1,C("close",!0),document.body.classList.remove("overflow-hidden")},M=()=>{h.value=!h.value},g=a=>a==null||a===""?"â":typeof a=="object"?JSON.stringify(a):a;return(a,r)=>(o(),B(l(E),{as:"template",show:v.value},{default:c(()=>[i(l(A),{class:"relative z-50",onClose:w},{default:c(()=>[i(l(y),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:c(()=>[...r[0]||(r[0]=[e("div",{class:"fixed inset-0 bg-slate-950/20 backdrop-blur-[2px]"},null,-1)])]),_:1}),e("div",Y,[e("div",J,[e("div",U,[i(l(y),{as:"template",enter:"transform transition ease-in-out duration-400","enter-from":"translate-x-full","enter-to":"translate-x-0",leave:"transform transition ease-in-out duration-300","leave-from":"translate-x-0","leave-to":"translate-x-full"},{default:c(()=>[i(l(D),{class:"pointer-events-auto flex h-full w-screen max-w-[560px] flex-col bg-white shadow-2xl"},{default:c(()=>[e("div",q,[i(l(L),{class:"text-[20px] font-semibold tracking-[-0.02em] text-slate-900"},{default:c(()=>[H(s(a.$page.props.translations.messages.info),1)]),_:1}),e("button",{type:"button",onClick:w,class:"flex h-9 w-9 items-center justify-center rounded-xl border border-slate-200 bg-white text-slate-500 transition hover:bg-slate-50 hover:text-slate-900 focus:outline-none"},[i(l(N),{class:"h-5 w-5","aria-hidden":"true"}
1)])]),e("div",K,[t.lead?(o(),n("div",P,[e("div",Q,[r[2]||(r[2]=e("div",{class:"pointer-events-none absolute -right-10 -top-10 h-28 w-28 rounded-full bg-[#6D5DFB]/10 blur-2xl"},null,-1)),e("div",R,[e("div",W,[i(l(F),{class:"h-6 w-6"})]),e("div",X,[r[1]||(r[1]=e("p",{class:"text-xs font-medium text-slate-500"}," ID обÑÑÐ²Ð»ÐµÐ½Ð¸Ñ ",-1)),e("p",ee,s(t.lead.id),1)])])]),t.lead.fields&&Object.keys(t.lead.fields).length?(o(),n("section",te,[e("div",se,[e("h3",oe,s(a.$page.props.translations.messages.fields),1),e("span",ne,s(Object.keys(t.lead.fields).length),1)]),e("div",le,[(o(!0),n(_,null,b(t.lead.fields,(f,u,p)=>(o(),n("div",{key:u,class:m(["group flex gap-4 px-4 py-3.5 transition hover:bg-slate-50/70",{"border-t border-slate-100":p!==0}])},[e("div",ae,[i(l(F),{class:"h-4 w-4"})]),e("div",re,[e("p",ie,s(u),1),e("p",de,s(g(f)),1)])],2))),128))])])):x("",!0),t.lead.utm&&Object.keys(t.lead.utm).length?(o(),n("section",ce,[r[3]||(r[3]=e("h3",{class:"mb-3 text-[16px] font-semibold text-slate-900"}," UTM ",-1)),e("div",he,[(o(!0),n(_,null,b(t.lead.utm,(f,u,p)=>(o(),n("div",{key:u,class:m(["flex items-start gap-4 px-4 py-3.5",{"border-t border-slate-100":p!==0}])},[e("div",ue,[i(l(T),{class:"h-4 w-4"})]),e("div",me,[e("p",xe,s(u),1),e("p",fe,s(g(f)),1)])],2))),128))])])):x("",!0),t.lead.output_history?(o(),n("section",pe,[e("button",{type:"button",onClick:M,class:"flex w-full items-center justify-between px-4 py-4 text-left transition hover:bg-slate-50"},[e("div",ve,[e("div",we,[i(l(j),{class:"h-4 w-4"})]),e("div",null,[e("p",ge,s(a.$page.props.translations.messages.sending_history),1),e("p",_e,s(h.value?a.$page.props.translations.messages.collapse:a.$page.props.translations.messages.expand),1)])]),(o(),n("svg",{class:m(["h-5 w-5 text-slate-400 transition-transform",{"rotate-180":h.value}]),viewBox:"0 0 20 20",fill:"currentColor"},[...r[4]||(r[4]=[e("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.51a.75.75 0 01-1.08 0l-4.25-4.51a.75.75 0 01.02-1.06z","clip-rule":"evenodd"},null,-1)])],2))]),Z(e("div",be,[e("div",ke,[e("div",ye,[i(l(j),{class:"mt-0.5 h-4 w-4 shrink-0 text-slate-400"}),e("div",null,[e("p",je,s(a.$page.props.translations.messages.time),1),e("p",Fe,s(t.lead.output_history.time),1)])]),e("div",Ce,[i(l(G),{class:"mt-0.5 h-4 w-4 shrink-0 text-slate-400"}),e("div",Me,[e("p",$e,s(a.$page.props.translations.messages.url_webhook),1),e("a",{href:t.lead.output_history.webhook_url,target:"_blank",class:"mt-1 block break-all text-sm font-medium text-[#5B4CF6] hover:underline"},s(t.lead.output_history.webhook_url),9,Be)])]),e("div",He,[i(l(S),{class:"mt-0.5 h-4 w-4 shrink-0 text-slate-400"}),e("div",null,[e("p",Ze,s(a.$page.props.translations.messages.code_answer),1),e("span",{class:m(["mt-1 inline-flex rounded-full px-2.5 py-1 text-xs font-semibold",t.lead.output_history.response_code===200?"bg-emerald-50 text-emerald-600":"bg-red-50 text-red-600"])},s(t.lead.output_history.response_code),3)])])])],512),[[V,h.value]])])):x("",!0),e("section",Ve,[r[7]||(r[7]=e("div",{class:"border-b border-slate-100 px-4 py-4"},[e("h3",{class:"text-[16px] font-semibold text-slate-900"}," СиÑÑÐµÐ¼Ð½Ð°Ñ Ð¸Ð½ÑоÑмаÑÐ¸Ñ ")],-1)),e("div",null,[e("div",Ae,[e("div",De,[i(l(z),{class:"h-4 w-4 text-slate-400"}),r[5]||(r[5]=e("span",{class:"text-sm text-slate-500"}," utm ",-1))]),e("span",Le,s(t.lead.utm_id||"â"),1)]),t.lead.input_count?(o(),n("div",Ee,[e("div",Ne,[i(l(I),{class:"h-4 w-4 text-slate-400"}),r[6]||(r[6]=e("span",{class:"text-sm text-slate-500"}," ÐолиÑеÑÑво оÑпÑавок ",-1))]),e("span",Oe,s(t.lead.input_count),1)])):x("",!0),e("div",Se,[e("div",Ie,[i(l(O),{class:"h-4 w-4 text-slate-400"}),e("span",ze,s(a.$page.props.translations.messages.created_date),1)]),e("span",Ge,s(t.lead.created_at),1)])])])])):(o(),n("div",Te," ÐÐµÑ Ð´Ð°Ð½Ð½ÑÑ
"))])]),_:1})]),_:1})])])])]),_:1})]),_:1},8,["show"]))}},Re=$(Ye,[["__scopeId","data-v-3abb33e8"]]);export{Re as default};
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.