PageSourceSearch

https://cdn-dashboard.biscred.com/rc-373/build/assets/StartSearch-DO1A1rxK.js

js biscred.com collected 2026-10-01 13:58:18 UTC 19,232 bytes, 1 lines download raw bytes

1import{l as W,e as D,m as F,b as U,X as ee,a as T,h as te}from"./app-AsY-L5Ba.js";import{F as se}from"./FeatureFlagMixin-CwOh2JOr.js";import{S as ae,Q as re}from"./SearchSummaryQueryParams-CtY-vWQS.js";import{S as oe,e as ne,h as V,Q as R,r as ie,B as H,d as le}from"./EnterpriseFeatureModal-BqM0ywGh.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{J as b,v as l,B as m,E as e,C as r,q as d,p as k,G as h,N as g,r as w,k as B,w as q,a5 as ce,l as ue,D as v,I as P,K as de,ae as j,Q as me,F as x,H as O,S as M,O as K,P as pe,a as ye,o as fe}from"./vendor-BGNTgfwa.js";import{r as he}from"./ExclamationTriangleIcon-uS4cAXnR.js";import{r as ve}from"./InformationCircleIcon-Cl9iW-vj.js";import"./analytics-HljD2eR7.js";/* empty css            */import"./MaintenanceBanner-DdW4KUFA.js";import"./EchoNotificationMixin-Dvt0vDZP.js";import"./useEventLogger-vGyTzm5p.js";import"./InputGroup-B7tCBSZ6.js";import"./PlusIcon-oRHGbURX.js";import"./ChevronDownIcon-B2v2L_xo.js";import"./ChevronUpIcon-Ds-eWhMg.js";import"./SearchService-C91IPrTk.js";import"./BaseInput-DAkIC6Yq.js";import"./form-4u-_BBfh.js";import"./NotifyMixin-CztXa5DC.js";import"./Badge-D3jgYO5N.js";import"./SelectInput-BnnJbla_.js";import"./debounce-mHz5XMnx.js";import"./isSymbol-cQtET1I9.js";import"./BrandLogo-CqstKVyN.js";const ge={components:{Link:W,LoadingSpinner:oe},computed:{...F({companyCountLoading:t=>t.company.loadingCountSummary,contactCountLoading:t=>t.contact.loadingCountSummary,buildingCountLoading:t=>t.building.loadingCountSummary,companyCountSummary:t=>t.company.countSummary,contactCountSummary:t=>t.contact.countSummary,buildingCountSummary:t=>t.building.countSummary}),...D({searchBase64Query:"query/searchBase64Query",paramsCount:"query/paramsCount"}),isAnyCountLoading(){return this.companyCountLoading||this.contactCountLoading||this.buildingCountLoading}}},be={class:"search-summary-counters divide-border border-border bg-card flex items-center justify-around divide-x rounded-sm border text-xs"},_e={key:1,class:"counter-value w-full text-xl font-bold"},xe={key:1,class:"counter-value text-xl font-bold"},Se={key:1,class:"counter-value text-xl font-bold"};function Ce(t,s,u,f,i,n){const c=b("LoadingSpinner"),p=b("Link");return l(),m("div",be,[e("div",{class:g(["company-counter group flex min-w-0 flex-1 flex-col items-center justify-center rounded-l px-2 text-center transition-all",{"hover:bg-success hover:text-success-foreground":t.paramsCount>0}])},[r(p,{"data-cy":"company-count-link",class:g(["h-full w-full p-2",{"pointer-events-none":t.paramsCount===0||n.isAnyCountLoading}]),href:t.route("search_companies",{query:t.searchBase64Query})},{default:d(()=>[t.companyCountLoading?(l(),k(c,{key:0,size:"size-6 m-auto",class:"mt-1","hide-text":!0})):(l(),m("div",_e,h(t.companyCountSummary.toLocaleString("en-US")||"0"),1)),s[0]||(s[0]=e("div",{class:"mt-0.5"},"Companies",-1))]),_:1},8,["class","href"])],2),e("div",{class:g(["contact-counter group flex min-w-0 flex-1 flex-col items-center justify-center px-2 text-center transition-all",{"hover:bg-success hover:text-success-foreground":t.paramsCount>0}])},[r(p,{class:g(["h-full w-full p-2",{"pointer-events-none":t.paramsCount===0||n.isAnyCountLoading}]),href:t.route("search_contacts",{query:t.searchBase64Query})},{default:d(()=>[t.contactCountLoading?(l(),k(c,{key:0,size:"size-6 m-auto",class:"mt-1","hide-text":!0})):(l(),m("div",xe,h(t.contactCountSummary.toLocaleString("en-US")||"0"),1)),s[1]||(s[1]=e("div",{class:"mt-0.5"},"People",-1))]),_:1},8,["class","href"])],2),e("div",{class:g(["building-counter group flex min-w-0 flex-1 flex-col items-center justify-center rounded-r px-2 text-center transition-all",{"hover:bg-success hover:text-success-foreground":t.paramsCount>0}])},[r(p,{class:g(["h-full w-full p-2",{"pointer-events-none":t.paramsCount===0||n.isAnyCountLoading}]),href:t.route("search_buildings",{query:t.searchBase64Query})},{default:d(()=>[t.buildingCountLoading?(l(),k(c,{key:0,size:"size-6 m-auto",class:"mt-1","hide-text":!0})):(l(),m("div",Se,h(t.buildingCountSummary.toLocaleString("en-US")||"0"),1)),s[2]||(s[2]=e("div",{class:"mt-0.5"},"Buildings",-1))]),_:1},8,["class","href"])],2)])}const we=N(ge,[["render",Ce]]),ke={components:{MagnifyingGlassIcon:ne}},Ee={class:"flex items-center justify-center w-48 h-48 mx-auto bg-muted rounded-full"};function $e(t,s,u,f,i,n){const c=b("MagnifyingGlassIcon");return l(),m("div",null,[e("div",Ee,[r(c,{class:"w-16 h-16 mx-auto text-muted-foreground"})]),s[0]||(s[0]=e("div",{class:"px-12 mt-4 text-center"},[e("h4",{class:"mb-2 font-bold"}," Applied Criteria "),e("p",{class:"text-sm"}," Great data is just a search away! Enter criteria from the left and see how it dynamically shapes your results instantly! ")],-1))])}const Le=N(ke,[["render",$e]]),Oe={class:"fixed inset-0 z-50 overflow-y-auto"},Ie={class:"flex min-h-screen items-center justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0"},Ae={class:"mb-6 flex items-center justify-between"}
1,Qe={class:"flex items-center"},Te={class:"from-primary to-primary/90 mr-4 inline-flex h-12 w-12 items-center justify-center rounded-full bg-gradient-to-br"},Be={class:"relative"},qe={class:"relative"},Pe=["disabled","onKeydown"],je={key:0,class:"my-2 flex flex-col items-end"},Me={key:0,class:"from-brand-green-200 to-brand-green-100 border-brand-green-300 my-2 rounded-lg border bg-gradient-to-r p-3"},ze={class:"flex items-center justify-center"},Re={class:"text-foreground text-xs font-thin italic"},Ne={key:0,class:"my-2 rounded-lg border border-red-200 bg-red-50 p-4 text-red-800 dark:border-red-500 dark:bg-red-200 dark:text-red-900"},Ge={class:"flex items-center"},Ve={class:"text-xs"},We={key:0},De={class:"space-y-1"},Fe=["onClick","disabled"],Ue={class:"border-border bg-muted mt-4 flex items-start space-x-2 rounded-lg border p-2"},z=10,S=500,He={__name:"NaturalQueryParser",props:{isOpen:{type:Boolean,default:!1}},emits:["close","success"],setup(t,{emit:s}){const u=t,f=s,i=w(""),n=w(!1),c=w(""),p=w(""),E=w(null),_=U(),I=B(()=>_.getters["query/canSearch"]),$=["Find CEOs at multifamily companies in California with email addresses","Show me directors at construction companies in Texas","Get contacts with LinkedIn profiles in New York office buildings","Find executives at healthcare companies, exclude downloaded contacts"],A=["Analyzing your query...","Mapping to search criteria...","Almost ready..."];let C=null;const Y=()=>{let a=0;p.value=A[0],C=setInterval(()=>{a=Math.min(a+1,A.length-1),p.value=A[a]},1500)},X=()=>{C&&(clearInterval(C),C=null)},J=a=>{n.value||(i.value=a)},L=()=>{n.value||(f("close"),i.value="",c.value="")},Z=B(()=>{const a=i.value.trim();return a.length>=z&&a.length<=S}),G=B(()=>Z.value&&!n.value),Q=async()=>{if(G.value){n.value=!0,c.value="",Y();try{const{data:a}=await ye.post(route("natural-query.parse"),{query:i.value.trim()});if(["include","exclude","options"].forEach(y=>{a.parsed[y]&&Array.isArray(a.parsed[y])&&a.parsed[y].length===0&&(a.parsed[y]={})}),a.error||Object.keys(a.parsed.include||{}).length===0&&Object.keys(a.parsed.exclude||{}).length===0&&Object.keys(a.parsed.options||{}).length===0)throw new Error("We were unable to parse your query, please try again. If the problem persists, please contact support.");await _.dispatch("search/resetSearch"),await _.commit("query/SET_QUERY_PARAMS",a.parsed),f("success",a.parsed),I.value?(_.dispatch("contact/countSummary"),_.dispatch("company/countSummary"),_.dispatch("building/countSummary"),i.value=""):c.value="We were unable to parse your query, please try again. If the problem persists, please contact support."}catch(a){c.value=a.response?.data?.error||a.message||"We were unable to parse your query, please try again. If the problem persists, please contact support."}finally{n.value=!1,X()}}};return q(()=>u.isOpen,a=>{a&&ce(()=>{E.value?.focus()})}),q(i,a=>{c.value&&a.trim()!==""&&(c.value="")}),q(()=>u.isOpen,a=>{const o=y=>{y.key==="Escape"&&L()};a?document.addEventListener("keydown",o):document.removeEventListener("keydown",o)}),ue(()=>{C&&clearInterval(C)}),(a,o)=>(l(),k(v(le),{as:"template",show:t.isOpen},{default:d(()=>[e("div",Oe,[e("div",Ie,[r(v(V),{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:d(()=>[e("div",{class:"fixed inset-0 bg-black/75 transition-opacity","aria-hidden":"true",onClick:L})]),_:1}),o[8]||(o[8]=e("span",{class:"hidden sm:inline-block sm:h-screen sm:align-middle","aria-hidden":"true"},null,-1)),r(v(V),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:d(()=>[e("div",{class:"bg-card relative z-10 my-8 inline-block w-full max-w-2xl transform overflow-hidden rounded-sm p-6 text-left align-middle shadow-xl transition-all",onClick:o[1]||(o[1]=P(()=>{},["stop"]))},[e("div",Ae,[e("div",Qe,[e("div",Te,[r(v(R),{class:"text-primary-foreground size-6"})]),o[2]||(o[2]=e("div",null,[e("h2",{class:"text-xl font-bold"},"AI Powered Query Builder")],-1))]),e("button",{onClick:L,class:"text-muted-foreground hover:bg-muted hover:text-foreground rounded-lg p-2 transition-colors duration-150"},[r(v(ie),{class:"size-5"})])]),e("div",Be,[o[3]||(o[3]=e("label",{for:"query-input",class:"mb-2 block text-sm"}," What can we help you find? ",-1)),e("div",qe,[de(e("textarea",{id:"query-input",ref_key:"queryInput",ref:E,"onUpdate:modelValue":o[0]||(o[0]=y=>i.value=y),disabled:n.value,class:g(["h-22",{"border-red-300":i.value.length>S}]),placeholder:"e.g., Find me CEOs at multifamily companies in California with email addresses...",onKeydown:[j(P(Q,["meta"]),["enter"]),j(P(Q,["ctrl"]),["enter"]),j(L,["esc"])]},null,42,Pe),[[me,i.value]]),e("div",{class:g(["absolute right-3 bottom-1 text-xs italic",{"text-red-500":i.value.length>S,"text-gray-500":i.value.length<=S}])},h(i.value.length<z?`Must be atleast ${z} characters`:"")+" "+h(i.value.length>S?`Must be less than ${S} characters`:"")+" ("+h(i.value.length)+"/"+h(S)+") ",3)])]),n.value?O("",!0):(l(),m("div",je,[r(H,{onClick:Q,disabled:!G.value},{default:d(()=>[r(v(R),{class:"mr-2 size-5"}),o[4]||(o[4]=x(" Parse Query ",-1))]),_:1},8,["disabled"])])),r(M,{"enter-active-class":"transition-all duration-300 ease-out","enter-from-class":"opacity-0 transform scale-95","enter-to-class":"opacity-100 transform scale-100","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 transform scale-100","leave-to-class":"opacity-0 transform scale-95"},{default:d(()=>[n.value?(l(),m("div",Me,[o[5]||(o[5]=e("div",{class:"mb-1 flex items-center justify-center space-x-1"}
1,[e("div",{class:"bg-foreground/75 h-1.5 w-1.5 animate-bounce rounded-full",style:{"animation-delay":"0ms"}}),e("div",{class:"bg-foreground/75 h-1.5 w-1.5 animate-bounce rounded-full",style:{"animation-delay":"150ms"}}),e("div",{class:"bg-foreground/75 h-1.5 w-1.5 animate-bounce rounded-full",style:{"animation-delay":"300ms"}})],-1)),e("div",ze,[e("p",Re,h(p.value),1)])])):O("",!0)]),_:1}),r(M,{"enter-active-class":"transition-all duration-300 ease-out","enter-from-class":"opacity-0 transform translate-y-2","enter-to-class":"opacity-100 transform translate-y-0","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 transform translate-y-0","leave-to-class":"opacity-0 transform translate-y-2"},{default:d(()=>[c.value?(l(),m("div",Ne,[e("div",Ge,[r(v(he),{class:"mr-2 size-5"}),e("p",Ve,h(c.value),1)])])):O("",!0)]),_:1}),r(M,{"enter-active-class":"transition-all duration-300 ease-out delay-100","enter-from-class":"opacity-0 transform translate-y-2","enter-to-class":"opacity-100 transform translate-y-0","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 transform translate-y-0","leave-to-class":"opacity-0 transform translate-y-2"},{default:d(()=>[n.value?O("",!0):(l(),m("div",We,[o[6]||(o[6]=e("h3",{class:"my-2 text-sm font-medium"},"Give these examples a try:",-1)),e("ul",De,[(l(),m(K,null,pe($,y=>e("li",{key:y,onClick:bt=>J(y),disabled:n.value,class:"hover:text-brand-green-300 dark:hover:text-brand-green-200 inline-block cursor-pointer text-xs italic transition-colors disabled:cursor-not-allowed disabled:opacity-50"},h(y),9,Fe)),64))])]))]),_:1}),e("div",Ue,[r(v(ve),{class:"size-4 flex-shrink-0"}),o[7]||(o[7]=e("div",{class:"text-xs font-thin"},[e("p",{class:"mb-1 font-medium"},"AI-Powered Parsing"),e("p",{class:"leading-relaxed"}," Our AI does its best to understand your query, but occasionally may misinterpret complex requests. Please review the generated search criteria before proceeding. ")],-1))])])]),_:1})])])]),_:1},8,["show"]))}},Ke={class:"relative inline-block"},Ye={__name:"NaturalQueryParserButton",props:{buttonText:{type:String,default:"AI Powered Query Builder"}},emits:["success"],setup(t,{emit:s}){const u=s,f=w(!1),i=()=>{f.value=!0},n=()=>{f.value=!1},c=p=>{u("success",p),n()};return(p,E)=>(l(),m("div",null,[e("div",Ke,[r(H,{onClick:i,"data-cy":"ai-query-button"},{default:d(()=>[r(v(R),{class:"mr-2 size-5"}),x(" "+h(t.buttonText),1)]),_:1}),e("span",{class:g(["bg-brand-green-300 border-brand-green-400 absolute -top-2 -right-6 rounded-full border px-1.5 py-0.5 text-[11px] leading-none font-medium text-white",{"animate-wiggle":!f.value}])}," Beta ",2)]),r(He,{"is-open":f.value,onClose:n,onSuccess:c},null,8,["is-open"])]))}},Xe=[{name:"All Criteria",value:"all"},{name:"Company Criteria",value:"company"},{name:"People Criteria",value:"contact"},{name:"Building Criteria",value:"building"}],Je={components:{QueryInputs:re,SearchSummaryQueryParams:ae,Link:W,SearchSummaryCounters:we,SearchSummaryIntro:Le,NaturalQueryParserButton:Ye},data(){return{criteriaSearchTabs:Xe,mode:"criteria-search"}},computed:{...D({searchBase64Query:"query/searchBase64Query",paramsCount:"query/paramsCount"}),...F({selectedCriteriaMode:t=>t.search.selected_criteria_mode,companyCountLoading:t=>t.company.loadingCountSummary,contactCountLoading:t=>t.contact.loadingCountSummary,buildingCountLoading:t=>t.building.loadingCountSummary}),isAnyCountLoading(){return this.companyCountLoading||this.contactCountLoading||this.buildingCountLoading}},methods:{async resetQueryParams(){const t=ee(this.$store.getters["query/queryParamsDisplay"]);if(this.$store.dispatch("search/resetSearch"),this.$store.commit("preview/TOGGLE_PREVIEW_OFF"),this.$store.commit("preview/RESET_PREVIEW_TARGET"),this.$store.commit("preview/SET_PREVIEW_SELECTED_VIEW",null),t.companies.company_property_count||t.companies.company_indexed_employment_size)return document?.querySelectorAll(".min-max-slider-reset")?.forEach(u=>u.click());this.$store.dispatch("contact/countSummary"),this.$store.dispatch("company/countSummary"),this.$store.dispatch("building/countSummary")}
1,switchCriteriaMode(t){this.$store.commit("search/SET_SEARCH_CRITERIA_MODE",t)}}},Ze={class:"flex min-h-0 flex-1 overflow-hidden"},et={class:"flex w-full"},tt={class:"flex h-full min-w-0 flex-1 flex-col overflow-hidden"},st={class:"min-h-0 flex-1 overflow-y-auto p-4"},at={class:"bg-muted mb-6 rounded-sm border p-4"},rt={class:"flex items-start space-x-4"},ot={class:"flex-1"},nt={class:"mt-3 flex w-full justify-start"},it={class:"search-summary border-l-border bg-muted block shrink-0 rounded-r border-l"},lt={class:"relative flex h-full flex-col",style:{width:"450px"}},ct={class:"bg-muted shrink-0 px-4 py-2 pt-4"},ut={class:"min-h-0 flex-1 overflow-y-auto"},dt={class:"h-full px-4"},mt={class:"border-border grid grid-cols-1 gap-2 border-t px-4 py-4"},pt=["aria-disabled"];function yt(t,s,u,f,i,n){const c=b("NaturalQueryParserButton"),p=b("QueryInputs"),E=b("SearchSummaryCounters"),_=b("SearchSummaryQueryParams"),I=b("SearchSummaryIntro"),$=b("Link");return l(),m("div",Ze,[e("main",et,[e("section",tt,[e("div",st,[e("div",at,[e("div",rt,[e("div",ot,[s[0]||(s[0]=e("h3",{class:"text-foreground text-sm font-medium"}," Try Our New AI Powered Query Builder ",-1)),s[1]||(s[1]=e("p",{class:"text-foreground mt-1 text-xs font-thin"}," Skip the manual criteria selection! Describe what you're looking for in plain English and let our AI attempt to build the perfect search criteria for you. ",-1)),e("div",nt,[r(c)])])])]),r(p,{"search-type":t.selectedCriteriaMode,"search-summary":!0},null,8,["search-type"])])]),e("div",it,[e("div",lt,[e("div",ct,[r(E)]),e("div",ut,[e("div",dt,[t.paramsCount>0?(l(),k(_,{key:0,class:"h-auto py-2","search-summary":!0})):(l(),k(I,{key:1,class:"pt-8"}))])]),e("div",mt,[e("span",{class:g(["bg-success divide-success-foreground/20 text-success-foreground grid grid-cols-3 divide-x rounded-sm transition-all",{"bg-success/75 pointer-events-none":t.paramsCount===0||n.isAnyCountLoading}]),"aria-disabled":t.paramsCount===0||n.isAnyCountLoading},[r($,{"data-cy":"search-companies-link",href:t.route("search_companies",{query:t.searchBase64Query}),class:"hover:bg-success/90 relative rounded-l p-3 text-center transition-all"},{default:d(()=>[...s[2]||(s[2]=[x(" Search ",-1),e("br",null,null,-1),x(" Companies ",-1)])]),_:1},8,["href"]),r($,{"data-cy":"search-people-link",href:t.route("search_contacts",{query:t.searchBase64Query}),class:"hover:bg-success/90 relative p-3 text-center transition-all"},{default:d(()=>[...s[3]||(s[3]=[x(" Search ",-1),e("br",null,null,-1),x(" People ",-1)])]),_:1},8,["href"]),r($,{"data-cy":"search-buildings-link",href:t.route("search_buildings",{query:t.searchBase64Query}),class:"hover:bg-success/90 relative rounded-r p-3 text-center transition-all"},{default:d(()=>[...s[4]||(s[4]=[x(" Search ",-1),e("br",null,null,-1),x(" Buildings ",-1)])]),_:1},8,["href"])],10,pt)])])])])])}const ft=N(Je,[["render",yt]]),ht={class:"flex h-full flex-col overflow-hidden p-4"},vt={class:"bg-card m-auto flex h-[calc(100vh-97px)] w-full flex-col rounded-sm border shadow-lg transition-all duration-200"},gt={class:"flex h-full flex-col overflow-hidden"},Ft={__name:"StartSearch",props:{industryOptions:{type:[Array,Object],default:()=>[]},locationOptions:{type:[Array,Object],default:()=>[]},jobClassificationOptions:{type:[Array,Object],default:()=>[]},assetClassOptions:{type:[Array,Object],default:()=>[]},functionalAreaOptions:{type:[Array,Object],default:()=>[]}},setup(t){const s=t,u=U();return T().props,fe(async()=>{u.commit("preview/RESET_PREVIEW_TARGET"),u.commit("preview/TOGGLE_PREVIEW_OFF"),u.commit("preview/SET_PREVIEW_SELECTED_VIEW",null),u.commit("lists/RESET_SELECTED"),u.commit("search/SET_SEARCH_OPTIONS",{locationOptions:s.locationOptions,industryOptions:s.industryOptions,jobClassificationOptions:s.jobClassificationOptions,assetClassOptions:s.assetClassOptions,functionalAreaOptions:s.functionalAreaOptions,revenueOptions:T().props.revenueOptions,companySizeOptions:T().props.companySizeOptions})}),(f,i)=>(l(),m(K,null,[r(v(te),{title:"Biscred Search"}),r(se,{class:"relative"},{content:d(()=>[e("div",ht,[e("div",vt,[e("div",gt,[r(ft)])])])]),_:1})],64))}};export{Ft 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.