PageSourceSearch

https://auth.useblake.ai/_next/static/chunks/82671.ef7edaac8cfbd26a.js

js useblake.ai collected 2026-10-05 14:07:45 UTC 11,047 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="af54f5ef-c401-40dd-a2ba-c9b7056f66dc",e._sentryDebugIdIdentifier="sentry-dbid-af54f5ef-c401-40dd-a2ba-c9b7056f66dc")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82671],{13813:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(54860).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},82671:(e,t,a)=>{a.r(t),a.d(t,{AutoFillPreviewModal:()=>z});var n=a(37725),s=a(51060),r=a(79496),i=a(58177),l=a(13813),c=a(11307),d=a(16696),o=a(4329),x=a(37628),h=a(81330),g=a(98364),m=a(52928),y=a(84019);let p={type:"spring",damping:28,stiffness:380},b={duration:.15,ease:"easeOut"},u={new:{border:"border-l-2 border-emerald-500",badge:"bg-emerald-100 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-400"},overwritten:{border:"border-l-2 border-amber-500",badge:"bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-400"},replaced:{border:"border-l-2 border-blue-500",badge:"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-400"},unchanged:{border:"",badge:"bg-zinc-100 dark:bg-zinc-800 text-zinc-500 dark:text-zinc-400"}},f={new:"changeNew",overwritten:"changeOverwritten",replaced:"changeReplaced",unchanged:"changeUnchanged"};function k(e,t){return`${e}:${t}`}function j({checked:e,indeterminate:t,onChange:a,disabled:s}){return(0,n.jsxs)("button",{type:"button",onClick:a,disabled:s,className:`shrink-0 w-4 h-4 rounded border transition-colors flex items-center justify-center ${e||t?"bg-zinc-900 dark:bg-white border-zinc-900 dark:border-white":"border-zinc-300 dark:border-zinc-600 hover:border-zinc-400 dark:hover:border-zinc-500"} ${s?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:[e&&(0,n.jsx)(i.A,{className:"w-3 h-3 text-white dark:text-zinc-900",strokeWidth:3}),t&&!e&&(0,n.jsx)(l.A,{className:"w-3 h-3 text-white dark:text-zinc-900",strokeWidth:3})]})}function N({value:e,muted:t}){let a=t?"text-sm text-gray-400 dark:text-gray-500 line-through":"text-sm text-gray-700 dark:text-gray-300";if(null==e)return null;if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return(0,n.jsx)("p",{className:`${a} mt-0.5`,children:String(e)});if(Array.isArray(e))return 0===e.length?null:"object"==typeof e[0]&&null!==e[0]?(0,n.jsx)("ul",{className:"mt-1 space-y-0.5",children:e.map((e,s)=>{let r=e.name??e.title??e.statement??e.label??e.text??e.client_name??e.company_name??e.description??e.objection??"",i=function(e){let t=new Set(["name","title","statement","label","text","client_name","company_name","objection"]);for(let[a,n]of Object.entries(e))if(!t.has(a)){if("string"==typeof n&&n.trim())return n;if("number"==typeof n||"boolean"==typeof n)return String(n)}return""}(e);return(0,n.jsxs)("li",{className:`${a} flex gap-1`,children:[(0,n.jsx)("span",{className:"shrink-0 text-zinc-300 dark:text-zinc-600",children:"•"}),(0,n.jsxs)("span",{children:[r&&(0,n.jsx)("span",{className:t?"":"font-medium text-zinc-700 dark:text-zinc-300",children:r}),r&&i&&(0,n.jsx)("span",{className:"mx-1 text-zinc-300 dark:text-zinc-600",children:"-"}),i&&(0,n.jsx)("span",{children:i}),!r&&!i&&(0,n.jsx)("span",{children:(0,y.g)(e)})]})]},s)})}):e.length<=3?(0,n.jsx)("p",{className:`${a} mt-0.5`,children:e.join(", ")}):(0,n.jsx)("ul",{className:"mt-1 space-y-0.5",children:e.map((e,t)=>(0,n.jsxs)("li",{className:`${a} flex gap-1`,children:[(0,n.jsx)("span",{className:"shrink-0 text-zinc-300 dark:text-zinc-600",children:"•"}),(0,n.jsx)("span",{children:String(e)})]},t))});if("object"==typeof e){let t=Object.entries(e).filter(([,e])=>null!=e&&""!==e);return 0===t.length?null:(0,n.jsx)("div",{className:"mt-0.5 space-y-0.5",children:t.map(([e,t])=>(0,n.jsxs)("p",{className:a,children:[(0,n.jsxs)("span",{className:"text-zinc-400 dark:text-zinc-500",children:[e,":"]})," ","string"==typeof t?t:String(t)]},e))})}return(0,n.jsx)("p",{className:`${a} mt-0.5`,children:String(e)})}function w({field:e,sectionKey:t,selected:a,onToggle:s,changeLabel:r}){let i=u[e.changeType];return"unchanged"===e.changeType?null:(0,n.jsx)("div",{className:`${i.border} pl-3 py-2 ${!a?"opacity-40":""} transition-opacity`,children:(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)("div",{className:"pt-0.5",children:(0,n.jsx)(j,{checked:a,onChange:()=>s(k(t,e.key))})}),(0,n.jsx)("span",{className:`shrink-0 text-xs font-medium px-2 py-0.5 rounded ${i.badge}`,children:r}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:e.label}),("overwritten"===e.changeType||"replaced"===e.changeType)&&(0,n.jsx)(N,{value:e.currentValue,muted:!0}
1),(0,n.jsx)(N,{value:e.newValue})]})]})})}function v({section:e,selection:t,onToggleField:a,onToggleSection:s,getChangeLabel:r,fieldUnchangedLabel:i}){let[l,d]=(0,o.useState)(!1),x=e.fields.filter(e=>"unchanged"!==e.changeType),h=e.fields.filter(e=>"unchanged"===e.changeType),m=x.filter(a=>t.has(k(e.sectionKey,a.key))).length,p=m===x.length;return 0===e.fields.length?null:(0,n.jsxs)("div",{className:"border border-zinc-200 dark:border-zinc-800 rounded-lg overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 bg-zinc-50 dark:bg-zinc-900/50",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[x.length>0&&(0,n.jsx)(j,{checked:p,indeterminate:m>0&&!p,onChange:()=>s(e.sectionKey,x)}),(0,n.jsx)("h4",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:e.sectionTitle})]}),x.length>0&&(0,n.jsxs)("span",{className:"text-xs font-medium px-2 py-0.5 rounded bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400",children:[m,"/",x.length]})]}),x.length>0&&(0,n.jsx)("div",{className:"divide-y divide-zinc-100 dark:divide-zinc-800/50 px-2 py-1",children:x.map(s=>(0,n.jsx)(w,{field:s,sectionKey:e.sectionKey,selected:t.has(k(e.sectionKey,s.key)),onToggle:a,changeLabel:r(s.changeType)},s.key))}),h.length>0&&(0,n.jsxs)("div",{className:"border-t border-gray-100 dark:border-gray-800/50",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>d(!l),className:"w-full flex items-center gap-1.5 px-4 py-2 text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:[(0,n.jsx)(c.A,{className:`size-3.5 transition-transform ${l?"rotate-180":""}`}),i(h.length)]}),(0,n.jsx)(g.F,{open:l,duration:150,children:(0,n.jsx)("div",{className:"px-4 pb-3 space-y-1.5",children:h.map(e=>(0,n.jsxs)("div",{className:"flex items-start gap-3 text-sm",children:[(0,n.jsx)("span",{className:"shrink-0 text-gray-500 dark:text-gray-400 min-w-[140px]",children:e.label}),(0,n.jsx)("span",{className:"font-medium text-gray-900 dark:text-white",children:(0,y.g)(e.currentValue)})]},e.key))})})]})]})}function z({diff:e,onConfirm:t,onCancel:a,isPending:i,focusSectionKeys:l}){let c=(0,d.c)("discovery.companyProfile.preview"),g=(0,d.c)("common"),y=(0,o.useCallback)(e=>!l||l.has(e),[l]),u=(0,o.useMemo)(()=>{let t=new Set;for(let a of e.sections)if(y(a.sectionKey))for(let e of a.fields)"unchanged"!==e.changeType&&t.add(k(a.sectionKey,e.key));return t},[e,y]),[N,w]=(0,o.useState)(()=>new Set(u)),C=N.size,S=C===u.size,$=C>0&&!S,T=(0,o.useCallback)(e=>{w(t=>{let a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a})},[]),A=(0,o.useCallback)((e,t)=>{w(a=>{let n=new Set(a),s=t.map(t=>k(e,t.key)),r=s.every(e=>n.has(e));for(let e of s)r?n.delete(e):n.add(e);return n})},[]),K=(0,o.useCallback)(()=>{S?w(new Set):w(new Set(u))},[S,u]),_=e.sections.filter(e=>e.hasChanges&&y(e.sectionKey)),D=e.sections.filter(e=>!e.hasChanges&&e.fields.length>0&&y(e.sectionKey)),F=(0,o.useCallback)(e=>{let t=f[e];return t?c(t):e},[c]),I=(0,o.useCallback)(e=>c("fieldUnchanged",{count:e}),[c]);return"u"<typeof document?null:(0,x.createPortal)((0,n.jsx)(s.N,{children:(0,n.jsx)(r.P.div,{className:"fixed inset-0 z-80 flex items-center justify-center bg-black/30 dark:bg-black/50 p-2 sm:p-4",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},children:(0,n.jsxs)(r.P.div,{className:"bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-xl w-full max-w-2xl shadow-2xl overflow-hidden flex flex-col max-h-[90vh] sm:max-h-[80vh]",initial:{opacity:0,scale:.95,y:8},animate:{opacity:1,scale:1,y:0,transition:p},exit:{opacity:0,scale:.95,y:8,transition:b},children:[(0,n.jsxs)("div",{className:"px-5 pt-4 pb-3 border-b border-gray-100 dark:border-gray-800 shrink-0",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:e.hasAnyChanges?c("hasChanges"):c("noChanges")}),e.hasAnyChanges?(0,n.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,n.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:c("selectedCount",{selected:C,total:u.size})}),(0,n.jsxs)("div",{role:"button",tabIndex:0,onClick:K,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),K())},className:"flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors cursor-pointer select-none",children:[(0,n.jsx)(j,{checked:S,indeterminate:$,onChange:K}),S?c("selectNone"):c("selectAll")]})]}):(0,n.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:c("profileComplete")})]}),(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto p-4 space-y-3",children:[_.map(e=>(0,n.jsx)(v,{section:e,selection:N,onToggleField:T,onToggleSection:A,getChangeLabel:F,fieldUnchangedLabel:I},e.sectionKey)),D.length>0&&(0,n.jsxs)("div",{className:"pt-2",children:[(0,n.jsx)("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-2",children:c("unchangedSections")}),D.map(e=>(0,n.jsx)(v,{section:e,selection:N,onToggleField:T,onToggleSection:A,getChangeLabel:F,fieldUnchangedLabel:I},e.sectionKey))]})]}),(0,n.jsxs)("div",{className:"px-5 py-2.5 border-t border-gray-100 dark:border-gray-800 flex items-center justify-end gap-2 shrink-0",children:[(0,n.jsx)(h.$,{type:"button",variant:"outline",size:"sm",onClick:a,disabled:i,children:g("cancel")}),e.hasAnyChanges?(0,n.jsx)(h.$,{type:"button",size:"sm",onClick:()=>t(N),disabled:i||0===C,children:i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.y,{className:"size-3.5"}),c("applying")]}):0===C?c("selectChanges"):c("applyChanges",{count:C})}):(0,n.jsx)(h.$,{type:"button",size:"sm",onClick:a,children:g("close")})]})]})})}),document.body)}},98364:(e,t,a)=>{a.d(t,{F:()=>r});var n=a(37725),s=a(50593);function r({open:e,children:t,className:a,duration:i=200}){return(0,n.jsx)("div",{className:(0,s.cn)("grid motion-safe:transition-[grid-template-rows,opacity] ease-[cubic-bezier(0.32,0.72,0,1)]",e?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),style:{transitionDuration:`${i}ms`},"aria-hidden":!e,children:(0,n.jsx)("div",{className:(0,s.cn)("overflow-hidden",a),children:t})})}}}]);

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.