PageSourceSearch

https://app.leadgenerated.com/appBundle/SuggestionListing-CM3rUIe_.js

js leadgenerated.com collected 2026-10-05 19:22:03 UTC 47,155 bytes, 9 lines download raw bytes

1import{q as nt,aY as se,A as N,B as ie,m as at,h as te,Z as re,aZ as H,F as ge,d as gt,X as ut,i as ct,a_ as oe,n as ae,V as G,L as dt,o as pt,a$ as mt,j as vt,x as _t,u as ft,b0 as Be,l as Ne,aa as le,ab as yt,y as ht,b1 as kt,G as xt,H as $t,I as bt,J as Ft}from"./main-DLm1YG0W.js";import"./vue-datepicker-CHBD5wm3.js";import"./sweetalert2-i0D1jcg2.js";import{a1 as ne,w as lt,E as u,c as d,b as h,h as x,A as p,H as P,z as k,m as it,p as rt,q as D,D as b,F as C,r as O,g as m,s as f,aQ as Ct,j as ot,aR as Ee,f as v,aj as Ke,al as wt,y as Tt,k as It,e as St}from"./vue-CIUkp1da.js";import{_ as Ge}from"./StatusCell--H4gBTui.js";import"./moment-BAtM24Ew.js";import"./jsPDF-B_AxsNEJ.js";import"./sentry-pz5kdcDh.js";import"./axios-BOeqtr82.js";import"./elementPlus-CmKUPNNQ.js";import"./lodash-Bi9X4yzk.js";import"./momentTimezone-BKNAwBBr.js";import"./libphonenumberJs-2sOZ5POC.js";import"./vuedraggable-D50EXxXc.js";import"./icons-DqvSViCQ.js";import"./pusher-oMvsCdtd.js";const jt={class:"optionsList"},Lt={key:0,class:"cursor-pointer flex gap-2 items-center"},Pt=["href"],qt={__name:"RowActions",props:{suggestion:{type:Object,required:!0}},emits:["reloadListing","reloadListingWithAPI","onView"],setup(r,{emit:e}){const c=se(),g=D(!1),o=D(!1),t=r,l=e,n=ne("toast");lt(o,I=>{});const s=D(!1),i=D(!1);function $(){l("onView",t.suggestion),g.value=!1}async function w(){s.value=!0;try{await c.acceptSuggestions([t.suggestion.id]),g.value=!1,l("reloadListingWithAPI"),s.value=!1,n.fire({icon:"success",text:"Suggestion accepted."})}catch(I){s.value=!1,te.handleError(I)}}async function T(){try{i.value=!0,await c.rejectSuggestions([t.suggestion.id]),i.value=!1,l("reloadListingWithAPI"),g.value=!1,n.fire({icon:"success",text:"Suggestion rejected."})}catch(I){i.value=!1,te.handleError(I)}}return(I,F)=>(u(),d("div",{class:rt(["hidden group-hover:flex active:flex",{active:g.value}])},[h(at,it({distance:6,skidding:-25},I.$attrs,{shown:g.value,"onUpdate:shown":F[0]||(F[0]=L=>g.value=L)}),{default:x(({shown:L})=>[h(ie,{active:L,color:"gradientHover",size:"xs",class:"text-xs"},{default:x(()=>[F[1]||(F[1]=P("More ",-1)),h(N,{class:"pl-2",icon:"faCaretDown"})]),_:1},8,["active"])]),popper:x(()=>[p("ul",jt,[p("li",{class:"cursor-pointer flex gap-2 items-center",onClick:$},[h(N,{icon:"reply",class:"w-4 h-4"}),F[2]||(F[2]=P("View ",-1))]),r.suggestion.location&&r.suggestion.location.map_url?(u(),d("li",Lt,[p("a",{href:r.suggestion.location.map_url,target:"_blank",class:"flex gap-2 items-center"},[h(N,{icon:"viewOnGoogle",class:"w-4 h-4"}),F[3]||(F[3]=P("View On Google ",-1))],8,Pt)])):k("",!0),p("li",{class:"cursor-pointer flex gap-2 items-center",onClick:T},[h(N,{icon:"close",class:"w-4 h-4"}),F[4]||(F[4]=P("Reject ",-1))]),p("li",{class:"cursor-pointer flex gap-2 items-center",onClick:w},[h(N,{icon:"checkedInCircleSmall",class:"w-4 h-4"}),F[5]||(F[5]=P("Accept ",-1))])])]),_:1},16,["shown"])],2))}},Dt=nt(qt,[["__scopeId","data-v-86439430"]]),At={class:"text-secondary flex gap-4"},Vt={class:"border w-1/2"},Rt={class:"px-4 py-3 text-secondary-dark bg-[#F4F4F4] border-b border-accent-borderLight"},Ht={class:"divide-y max-h-[400px] overflow-auto"},Ut={key:1,class:"px-4 py-3"},Ot={class:"border w-1/2"},Mt={class:"px-4 py-3 text-secondary-dark bg-[#F4F4F4] border-b border-accent-borderLight"},Bt={class:"divide-y max-h-[400px] overflow-auto"},Nt={key:1,class:"px-4 py-3"},M={__name:"CompareSuggestions",props:{currentFieldTitle:{required:!0},suggestedFieldTitle:{required:!0},currentFieldItems:{default:null},suggestedFieldItems:{default:null}},setup(r){return(e,c)=>(u(),d("div",At,[p("div",Vt,[p("div",Rt,b(r.currentFieldTitle),1),p("div",Ht,[typeof r.currentFieldItems=="object"?(u(!0),d(C,{key:0},O(r.currentFieldItems,g=>(u(),d("div",{class:"px-4 py-3",key:g},b(g),1))),128)):(u(),d("div",Ut,b(r.currentFieldItems),1))])]),p("div",Ot,[p("div",Mt,b(r.suggestedFieldTitle),1),p("div",Bt,[typeof r.suggestedFieldItems=="object"?(u(!0),d(C,{key:0},O(r.suggestedFieldItems,g=>(u(),d("div",{class:"px-4 py-3",key:g},b(g),1))),128)):(u(),d("div",Nt,b(r.suggestedFieldItems),1))])])]))}},Et={class:"flex flex-col gap-5"},Kt={__name:"CompareCategoriesSuggestions",props:{suggestion:{required:!0}},setup(r){return(e,c)=>{var g,o,t,l,n,s,i,$;return u(),d("div",Et,[h(M,{currentFieldTitle:"Current Primary Category",suggestedFieldTitle:"Suggested Primary Category",currentFieldItems:((o=(g=r.suggestion)==null?void 0:g.current_value)==null?void 0:o.primaryCategory)||null,suggestedFieldItems:((l=(t=r.suggestion)==null?void 0:t.suggested_value)==null?void 0:l.primaryCategory)||null},null,8,["currentFieldItems","suggestedFieldItems"]),h(M,{currentFieldTitle:"Current Additional Categories",suggestedFieldTitle:"Suggested Additional Categories",currentFieldItems:((s=(n=r.suggestion)==null?void 0:n.current_value)==null?void 0:s.additionalCategories)||null,suggestedFieldItems:(($=(i=r.
1suggestion)==null?void 0:i.suggested_value)==null?void 0:$.additionalCategories)||null},null,8,["currentFieldItems","suggestedFieldItems"])])}}},Gt={__name:"ComparelatlngSuggestions",props:{suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var o,t,l,n,s;return(o=e.suggestion)!=null&&o.current_value?[`Latitude: ${(l=(t=e.suggestion)==null?void 0:t.current_value)==null?void 0:l.latitude}`,`Longitude: ${(s=(n=e.suggestion)==null?void 0:n.current_value)==null?void 0:s.longitude}`]:null}),g=f(()=>{var o,t,l,n,s;return(o=e.suggestion)!=null&&o.suggested_value?[`Latitude: ${(l=(t=e.suggestion)==null?void 0:t.suggested_value)==null?void 0:l.latitude}`,`Longitude: ${(s=(n=e.suggestion)==null?void 0:n.suggested_value)==null?void 0:s.longitude}`]:null});return(o,t)=>(u(),m(M,{currentFieldTitle:"Current latlng",suggestedFieldTitle:"Suggested latlng",currentFieldItems:c.value,suggestedFieldItems:g.value},null,8,["currentFieldItems","suggestedFieldItems"]))}},Wt={class:"flex flex-col gap-5"},zt={__name:"ComparePhoneNumbersSuggestions",props:{suggestion:{required:!0}},setup(r){return(e,c)=>{var g,o,t,l,n,s,i,$;return u(),d("div",Wt,[h(M,{currentFieldTitle:"Current Primary Phone",suggestedFieldTitle:"Suggested Primary Phone",currentFieldItems:((o=(g=r.suggestion)==null?void 0:g.current_value)==null?void 0:o.primaryPhone)||null,suggestedFieldItems:((l=(t=r.suggestion)==null?void 0:t.suggested_value)==null?void 0:l.primaryPhone)||null},null,8,["currentFieldItems","suggestedFieldItems"]),h(M,{currentFieldTitle:"Current Additional Phones",suggestedFieldTitle:"Suggested Additional Phones",currentFieldItems:((s=(n=r.suggestion)==null?void 0:n.current_value)==null?void 0:s.additionalPhones)||null,suggestedFieldItems:(($=(i=r.suggestion)==null?void 0:i.suggested_value)==null?void 0:$.additionalPhones)||null},null,8,["currentFieldItems","suggestedFieldItems"])])}}},Yt={__name:"CompareRegularHoursSuggestions",props:{suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var t,l,n;return(t=e.suggestion)!=null&&t.current_value?(n=(l=e.suggestion)==null?void 0:l.current_value)==null?void 0:n.periods.map(s=>`${re(s.openDay)} ${H(s.openTime.hours+":"+(s.openTime.minutes==null?"00":s.openTime.minutes))} to ${H(s.closeTime.hours+":"+(s.closeTime.minutes==null?"00":s.closeTime.minutes))}`):null}),g=f(()=>{var t,l,n;return(t=e.suggestion)!=null&&t.suggested_value?(n=(l=e.suggestion)==null?void 0:l.suggested_value)==null?void 0:n.periods.map(s=>`${re(s.openDay)} ${H(s.openTime.hours+":"+(s.openTime.minutes==null?"00":s.openTime.minutes))} to ${H(s.closeTime.hours+":"+(s.closeTime.minutes==null?"00":s.closeTime.minutes))}`):null});return(o,t)=>(u(),m(M,{currentFieldTitle:"Current Regular Hours",suggestedFieldTitle:"Suggested Regular Hours",currentFieldItems:c.value,suggestedFieldItems:g.value},null,8,["currentFieldItems","suggestedFieldItems"]))}},Zt={__name:"CompareServiceAreaSuggestions",props:{suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var o,t,l;return(o=e.suggestion)!=null&&o.current_value?[(t=e.suggestion)==null?void 0:t.current_value.businessType,...((l=e.suggestion)==null?void 0:l.current_value.places.placeInfos.map(n=>n.placeName))||[]]:null}),g=f(()=>{var o,t,l;return(o=e.suggestion)!=null&&o.suggested_value?[(t=e.suggestion)==null?void 0:t.suggested_value.businessType,...((l=e.suggestion)==null?void 0:l.suggested_value.places.placeInfos.map(n=>n.placeName))||[]]:null});return(o,t)=>(u(),m(M,{currentFieldTitle:"Current Service Area",suggestedFieldTitle:"Suggested Service Area",currentFieldItems:c.value,suggestedFieldItems:g.value},null,8,["currentFieldItems","suggestedFieldItems"]))}},Jt={__name:"CompareSpecialHoursSuggestions",props:{suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var t,l,n;return(t=e.suggestion)!=null&&t.current_value?(n=(l=e.suggestion)==null?void 0:l.current_value)==null?void 0:n.specialHourPeriods.map(s=>`${s.startDate?("0"+s.startDate.month).slice(-2)+"/"+("0"+s.startDate.day).slice(-2)+"/"+s.startDate.year:""} ${s.openTime?H(s.openTime.hours+":"+(s.openTime.minutes==null?"00":s.openTime.minutes)):""} to ${s.endDate?s.endDate.month+"/"+s.endDate.day+"/"+s.endDate.year:""} ${s.closeTime?H(s.closeTime.hours+":"+(s.closeTime.minutes==null?"00":s.closeTime.minutes)):""}`):null}),g=f(()=>{var t,l,n;return(t=e.suggestion)!=null&&t.suggested_value?(n=(l=e.suggestion)==null?void 0:l.suggested_value)==null?void 0:n.specialHourPeriods.map(s=>`${s.startDate?("0"+s.startDate.month).slice(-2)+"/"+("0"+s.startDate.day).slice(-2)+"/"+s.startDate.year:""} ${s.openTime?H(s.openTime.hours+":"+(s.openTime.minutes==null?"00":s.openTime.minutes)):""} to ${s.endDate?s.endDate.month+"/"+s.endDate.day+"/"+s.endDate.year:""} ${s.closeTime?H(s.closeTime.hours+":"+(s.closeTime.minutes==null?"00":s.closeTime.minutes)):""}`):null});return(o,t)=>(u(),m(M,{currentFieldTitle:"Current Special Hours",suggestedFieldTitle:"Suggested Special Hours",currentFieldItems:c.value,suggestedFieldItems:g.value},null,8,["currentFieldItems","suggestedFieldItems"]))}},Qt={__name:"CompareStorefrontAddressSuggestions",props:{suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var o,t,l,n,s,i,$,w,T;return(o=e.suggestion)!=null&&o.current_value?[`${(l=(t=e.suggestion)==null?void 0:t.current_value)==null?void 0:l.addressLines.join(", ")}, ${((s=(n=e.suggestion)==null?void 0:n.current_value)==null?void 0:s.locality)||""} ${(($=(i=e.suggestion)==null?void 0:i.current_value)==null?void 0:$.postalCode)||""}, ${((T=(w=e.suggestion)==null?void 0:w.current_value)==null?void 0:T.regionCode)||""}`]:null}),g=f(()=>{var o,t,l,n,s,i,$,w,T;return(o=e.suggestion)!=null&&o.suggested_value?[`${(l=(t=e.suggestion)==null?void 0:t.suggested_value)==null?void 0:l.addressLines.join(", ")}, ${((s=(n=e.suggestion)==null?void 0:n.suggested_value)==null?void 0:s.locality)||""} ${(($=(i=e.suggestion)==null?void 0:i.suggested_value)==null?void 0:$.postalCode)||""}, ${((T=(w=e.suggestion)==null?void 0:w.suggested_value)==null?void 0:T.regionCode)||""}`]:null});return(o,t)=>(u(),m(M,{currentFieldTitle:"Current Storefront Address",suggestedFieldTitle:"Suggested Storefront Address",currentFieldItems:c.value,suggestedFieldItems:g.value},null,8,["currentFieldItems","suggestedFieldItems"]))}},Xt={__name:"CompareTitleSuggestions",props:{suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var o,t;return(o=e.suggestion)!=null&&o.current_value?[(t=e.suggestion)==null?void 0:t.current_value]:null}),g=f(()=>{var o,t;return(o=e.suggestion)!=null&&o.suggested_value?[(t=e.suggestion)==null?void 0:t.suggested_value]:null});return(o,t)=>(u(),m(M,{currentFieldTitle:"Current Title",suggestedFieldTitle:"Suggested Title",currentFieldItems:c.value,suggestedFieldItems:g.value},null,8,["currentFieldItems","suggestedFieldItems"]))}},es={__name:"ComparewebsiteUriSuggestions",props:{suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var o,t;return(o=e.suggestion)!=null&&o.current_value?[(t=e.suggestion)==null?void 0:t.current_value]:null}),g=f(()=>{var o,t;return(o=e.suggestion)!=null&&o.suggested_value?[(t=e.suggestion)==null?void 0:t.suggested_value]:null});return(o,t)=>(u(),m(M,{currentFieldTitle:"Current Title",suggestedFieldTitle:"Suggested Title",currentFieldItems:c.value,suggestedFieldItems:g.value},null,8,["currentFieldItems","suggestedFieldItems"]))}},ts={class:"text-xs font-semibold text-secondary px-7.5 py-5 flex gap-5 items-center"},ss={key:1,class:"flex-grow"},ns={class:"truncate"},us={class:"truncate text-xs text-primary-extraDark-100"},ls={class:"text-primary-extraDark-100 flex items-center"},is={class:"flex justify-between border-t pt-2 mt-2"},rs={class:"text-accent-oceanGreenDark"},os={class:"text-accent-oceanGreenDark"},as={class:"px-7.5 py-5 border-t"},gs={class:"flex gap-5 justify-end py-10"},cs={__name:"SuggestionRightDrawer",props:Ee({suggestion:{required:!0}},{show:{type:Boolean,default:!1},showModifiers:{}}),emits:Ee(["reloadListing"],["update:show"]),setup(r,{emit:e}){const c=se(),g=ne("toast"),o=D(!1),t=D(!1),l=r,n=e,s=Ct(r,"show"),i=f(()=>oe.find(j=>j.value==l.suggestion.field_mask)),$=f(()=>i.value.label),w=f(()=>`Current ${$.value}`),T=f(()=>Object.hasOwn(l.suggestion.current_value,i.value.objectKey)?l.suggestion.current_value[i.value.objectKey]:null),I=f(()=>`Suggested ${$.value}`),F=f(()=>Object.hasOwn(l.suggestion.suggested_value,i.value.objectKey)?l.suggestion.suggested_value[i.value.objectKey]:null);async function L(){t.value=!0;try{await c.acceptSuggestions([l.suggestion.id]),s.value=!1,n("reloadListing"),t.value=!1,g.fire({icon:"success",text:"Suggestion accepted."})}catch(j){t.value=!1,te.handleError(j)}}async function q(){try{o.value=!0,await c.acceptSuggestions([l.suggestion.id]),o.value=!1,n("reloadListing"),s.value=!1,g.fire({icon:"success",text:"Suggestion rejected."})}catch(j){o.value=!1,te.handleError(j)}}return(j,_)=>r.suggestion?(u(),m(ct,{key:0,bodyClass:"w-[760px]",show:s.value,"onUpdate:show":_[1]||(_[1]=A=>s.value=A),heading:$.value,subHeading:"You can accept or reject your suggestions from below.",hideOnClickOutside:!0},{default:x(()=>[p("div",ts,[r.suggestion.location?(u(),m(ge,{key:0,color:"white",class:"flex-shrink-0 !p-0.5 !w-28 !h-28",src:r.suggestion.location.image,initials:r.suggestion.location.location_name_initials},null,8,["src","initials"])):k("",!0),r.suggestion.location?(u(),d("div",ss,[p("span",ns,b(r.suggestion.location.location_name),1),p("div",us,b(r.suggestion.location.address),1),p("div",ls,[_[2]||(_[2]=P(" Review Count: ",-1)),_[3]||(_[3]=p("span",{class:"text-accent-oceanGreenDark pr-5 pl-1"},"12",-1)),h(gt,{rating:parseFloat(r.suggestion.location.ave_review_rating||0)},null,8,["rating"])]),p("div",is,[p("div",null,[_[4]||(_[4]=P(" Field: ",-1)),p("span",rs,b($.value),1)]),p("div",null,[_[5]||
1(_[5]=P(" Date: ",-1)),p("span",os,[r.suggestion.created_at?(u(),m(ut,{key:0,date:r.suggestion.created_at},null,8,["date"])):k("",!0)])])])])):k("",!0)]),p("div",as,[["serviceItems"].includes(r.suggestion.field_mask)?(u(),m(M,ot(it({key:0},{currentFieldTitle:w.value,suggestedFieldTitle:I.value,currentFieldItems:T.value,suggestedFieldItems:F.value})),null,16)):k("",!0),r.suggestion.field_mask=="categories"?(u(),m(Kt,{key:1,suggestion:r.suggestion},null,8,["suggestion"])):k("",!0),r.suggestion.field_mask=="latlng"?(u(),m(Gt,{key:2,suggestion:r.suggestion},null,8,["suggestion"])):k("",!0),r.suggestion.field_mask=="phoneNumbers"?(u(),m(zt,{key:3,suggestion:r.suggestion},null,8,["suggestion"])):k("",!0),r.suggestion.field_mask=="regularHours"?(u(),m(Yt,{key:4,suggestion:r.suggestion},null,8,["suggestion"])):k("",!0),r.suggestion.field_mask=="serviceArea"?(u(),m(Zt,{key:5,suggestion:r.suggestion},null,8,["suggestion"])):k("",!0),r.suggestion.field_mask=="specialHours"?(u(),m(Jt,{key:6,suggestion:r.suggestion},null,8,["suggestion"])):k("",!0),r.suggestion.field_mask=="storefrontAddress"?(u(),m(Qt,{key:7,suggestion:r.suggestion},null,8,["suggestion"])):k("",!0),r.suggestion.field_mask=="title"?(u(),m(Xt,{key:8,suggestion:r.suggestion},null,8,["suggestion"])):k("",!0),r.suggestion.field_mask=="websiteUri"?(u(),m(es,{key:9,suggestion:r.suggestion},null,8,["suggestion"])):k("",!0),p("div",gs,[h(ie,{color:"gradient",onClick:_[0]||(_[0]=A=>s.value=!1),disabled:o.value||t.value,icon:"close"},{default:x(()=>[..._[6]||(_[6]=[p("span",null,"Cancel",-1)])]),_:1},8,["disabled"]),r.suggestion.status==0?(u(),m(ie,{key:0,color:"gradient",onClick:q,loading:o.value,loadingText:"Reject",icon:"close"},{default:x(()=>[..._[7]||(_[7]=[P(" Reject ",-1)])]),_:1},8,["loading"])):k("",!0),r.suggestion.status==0?(u(),m(ie,{key:1,color:"gradient",onClick:L,loading:t.value,loadingText:"Accept",icon:"checkedInCircleSmall"},{default:x(()=>[..._[8]||(_[8]=[P(" Accept ",-1)])]),_:1},8,["loading"])):k("",!0)])])]),_:1},8,["show","heading"])):k("",!0)}},ds={__name:"LockBulkAction",props:{suggestions:{required:!0}},emits:["reloadListing"],setup(r,{emit:e}){const c=se(),g=ne("toast"),o=r,t=e,l=D(!1);async function n(){l.value=!0;try{await c.lockLocation(o.suggestions.map(s=>{var i;return((i=s==null?void 0:s.location)==null?void 0:i.id)||null})),g.fire({icon:"success",title:"All selected suggestion locations locked"}),t("reloadListing")}catch(s){te.handleError(s)}l.value=!1}return(s,i)=>(u(),d("div",{class:"px-5 text-sm text-primary-extraDark-300 flex items-center gap-2 cursor-pointer",onClick:n},[l.value?(u(),m(ae,{key:0,type:"2"})):(u(),m(N,{key:1,icon:"lock"})),i[0]||(i[0]=P(" Lock ",-1))]))}},ps={__name:"UnLockBulkAction",props:{suggestions:{required:!0}},emits:["reloadListing"],setup(r,{emit:e}){const c=se(),g=ne("toast"),o=r,t=e,l=D(!1);async function n(){l.value=!0;try{await c.unlockLocation(o.suggestions.map(s=>{var i;return((i=s==null?void 0:s.location)==null?void 0:i.id)||null})),g.fire({icon:"success",title:"All selected suggestion locations unlocked"}),t("reloadListing")}catch(s){te.handleError(s)}l.value=!1}return(s,i)=>(u(),d("div",{class:"px-5 text-sm text-primary-extraDark-300 flex items-center gap-2 cursor-pointer",onClick:n},[l.value?(u(),m(ae,{key:0,type:"2"})):(u(),m(N,{key:1,icon:"unlock"})),i[0]||(i[0]=P(" Unlock ",-1))]))}},ms={__name:"AcceptBulkAction",props:{suggestions:{required:!0}},emits:["reloadListing"],setup(r,{emit:e}){const c=se(),g=ne("toast"),o=r,t=e,l=D(!1);async function n(){l.value=!0;try{await c.acceptSuggestions(o.suggestions.map(s=>s.id)),g.fire({icon:"success",title:"All Suggestions are accepted"}),t("reloadListing")}catch(s){te.handleError(s)}l.value=!1}return(s,i)=>(u(),d("div",{class:"px-5 text-sm text-primary-extraDark-300 flex items-center gap-2 cursor-pointer",onClick:n},[l.value?(u(),m(ae,{key:0,type:"2"})):(u(),m(N,{key:1,icon:"checkedInCircleSmall"})),i[0]||(i[0]=P(" Accept ",-1))]))}},vs={__name:"RejectBulkAction",props:{suggestions:{required:!0}},emits:["reloadListing"],setup(r,{emit:e}){const c=se(),g=ne("toast"),o=r,t=e,l=D(!1);async function n(){l.value=!0;try{await c.rejectSuggestions(o.suggestions.map(s=>s.id)),g.fire({icon:"success",title:"All Suggestions are rejected"}),t("reloadListing")}catch(s){te.handleError(s)}l.value=!1}return(s,i)=>(u(),d("div",{class:"px-5 text-sm text-primary-extraDark-300 flex items-center gap-2 cursor-pointer",onClick:n}
1,[l.value?(u(),m(ae,{key:0,type:"2"})):(u(),m(N,{key:1,icon:"close"})),i[0]||(i[0]=P(" Reject ",-1))]))}},_s={key:0},fs={class:"truncate"},ys={class:"text-sm text-white max-w-96 flex flex-col gap-1"},We={__name:"ValueCell",props:{type:{type:String,required:!0},suggestion:{required:!0}},setup(r){const e=r,c=f(()=>oe.find(l=>l.value==e.suggestion.field_mask)),g=f(()=>e.suggestion.suggested_value&&Object.hasOwn(e.suggestion.suggested_value,c.value.objectKey)?e.suggestion.suggested_value[c.value.objectKey]:null),o=f(()=>!e.suggestion.current_value||!c.value?null:Object.hasOwn(e.suggestion.current_value,c.value.objectKey)?e.suggestion.current_value[c.value.objectKey]:null),t=f(()=>{if(e.type=="current"){if(!o.value)return null;switch(e.suggestion.field_mask){case"categories":break;default:return{label:o.value.join(", "),value:o.value}}}else if(e.type=="suggestion"){if(!g.value)return null;switch(e.suggestion.field_mask){case"categories":return;default:return{label:g.value.join(", "),value:g.value}}}return null});return(l,n)=>t.value?(u(),d("div",_s,[h(v(G),{class:"truncate flex gap-2 items-center",distance:"12",placement:"right"},{popper:x(()=>[p("div",ys,[typeof t.value.value=="object"?(u(!0),d(C,{key:0},O(t.value.value,s=>(u(),d("div",{key:s},b(s),1))),128)):(u(),d(C,{key:1},[],64))])]),default:x(()=>[p("div",fs,b(t.value.label),1)]),_:1})])):k("",!0)}},hs={key:0},ks={class:"truncate"},xs={class:"text-sm text-white max-w-96 flex flex-col gap-1"},ze={__name:"LatlngValueCell",props:{type:{type:String,required:!0},suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var g,o,t,l,n,s,i,$,w,T,I,F,L,q,j,_,A,V;return e.type=="current"?(g=e.suggestion)!=null&&g.current_value?{label:`Latitude:
2${(t=(o=e.suggestion)==null?void 0:o.current_value)==null?void 0:t.latitude}, Longitude:
3${(n=(l=e.suggestion)==null?void 0:l.current_value)==null?void 0:n.longitude}`,value:[`Latitude:
4${(i=(s=e.suggestion)==null?void 0:s.current_value)==null?void 0:i.latitude}`,`Longitude:
5${(w=($=e.suggestion)==null?void 0:$.current_value)==null?void 0:w.longitude}`]}:null:e.type=="suggestion"&&(T=e.suggestion)!=null&&T.suggested_value?{label:`Latitude:
6${(F=(I=e.suggestion)==null?void 0:I.suggested_value)==null?void 0:F.latitude}, Longitude:
7${(q=(L=e.suggestion)==null?void 0:L.suggested_value)==null?void 0:q.longitude}`,value:[`Latitude:
8${(_=(j=e.suggestion)==null?void 0:j.suggested_value)==null?void 0:_.latitude}`,`Longitude:
9${(V=(A=e.suggestion)==null?void 0:A.suggested_value)==null?void 0:V.longitude}`]}:null});return(g,o)=>c.value?(u(),d("div",hs,[h(v(G),{class:"truncate flex gap-2 items-center",distance:"12",placement:"right"},{popper:x(()=>[p("div",xs,[typeof c.value.value=="object"?(u(!0),d(C,{key:0},O(c.value.value,t=>(u(),d("div",{key:t},b(t),1))),128)):(u(),d(C,{key:1},[],64))])]),default:x(()=>[p("div",ks,b(c.value.label),1)]),_:1})])):k("",!0)}},$s={key:0},bs={class:"truncate"},Fs={class:"text-sm text-white max-w-96 flex flex-col gap-1"},Cs=["innerHTML"],Ye={__name:"PhoneNumbersValueCell",props:{type:{type:String,required:!0},suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var g,o,t,l,n,s,i,$,w,T,I,F,L,q,j,_,A,V,U,E,B,S,y,K,a,R,W,z,Y,Z,J,Q,X,ee;return e.type=="current"?(g=e.suggestion)!=null&&g.current_value?{label:`${(t=(o=e.suggestion)==null?void 0:o.current_value)!=null&&t.primaryPhone?`Primary Phone: ${(n=(l=e.suggestion)==null?void 0:l.current_value)==null?void 0:n.primaryPhone}`:""} ${(i=(s=e.suggestion)==null?void 0:s.current_value)!=null&&i.additionalPhones?`Additional Phones: ${(w=($=e.suggestion)==null?void 0:$.current_value)==null?void 0:w.additionalPhones.join(", ")}`:""}`,value:[(I=(T=e.suggestion)==null?void 0:T.current_value)!=null&&I.primaryPhone?`Primary Phone: <br>${(L=(F=e.suggestion)==null?void 0:F.current_value)==null?void 0:L.primaryPhone}`:null,(j=(q=e.suggestion)==null?void 0:q.current_value)!=null&&j.additionalPhones?`Additional Phones: <br>${(A=(_=e.suggestion)==null?void 0:_.current_value)==null?void 0:A.additionalPhones.join("<br>")}`:""]}:null:e.type=="suggestion"&&(V=e.suggestion)!=null&&V.suggested_value?{label:`${(E=(U=e.suggestion)==null?void 0:U.suggested_value)!=null&&E.primaryPhone?`Primary Phone: ${(S=(B=e.suggestion)==null?void 0:B.suggested_value)==null?void 0:S.primaryPhone}`:""} ${(K=(y=e.suggestion)==null?void 0:y.suggested_value)!=null&&K.additionalPhones?`Additional Phones: ${(R=(a=e.suggestion)==null?void 0:a.suggested_value)==null?void 0:R.additionalPhones.join(", ")}`:""}`,value:[(z=(W=e.suggestion)==null?void 0:W.suggested_value)!=null&&z.primaryPhone?`Primary Phone: <br>${(Z=(Y=e.suggestion)==null?void 0:Y.suggested_value)==null?void 0:Z.primaryPhone}`:null,(Q=(J=e.suggestion)==null?void 0:J.suggested_value)!=null&&Q.additionalPhones?`Additional Phones: <br>${(ee=(X=e.suggestion)==null?void 0:X.suggested_value)==null?void 0:ee.additionalPhones.join("<br>")}`:""]}:null});return(g,o)=>c.value?(u(),d("div",$s,[h(v(G),{class:"truncate flex gap-2 items-center",distance:"12",placement:"right"},{popper:x(()=>[p("div",Fs,[typeof c.value.value=="object"?(u(!0),d(C,{key:0},O(c.value.value,t=>(u(),d("div",{key:t,innerHTML:t},null,8,Cs))),128)):(u(),d(C,{key:1},[],64))])]),default:x(()=>[p("div",bs,b(c.value.label),1)]),_:1})])):k("",!0)}},ws={key:0},Ts={class:"truncate"},Is={class:"text-sm text-white max-w-96 flex flex-col gap-1"},Ss=["innerHTML"],Ze={__name:"CategoriesValueCell",props:{type:{type:String,required:!0},suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var g,o,t,l,n,s,i,$,w,T,I,F,L,q,j,_,A,V,U,E,B,S,y,K,a,R,W,z,Y,Z,J,Q,X,ee,ue,ce,de,pe,me,ve,_e,fe,ye,he,ke,xe,$e,be,Fe,Ce,we,Te,Ie,Se,je,Le,Pe,qe,De,Ae,Ve,Re,He,Ue,Oe,Me;return e.type=="current"?(g=e.suggestion)!=null&&g.current_value?{label:`${(t=(o=e.suggestion)==null?void 0:o.current_value)!=null&&t.primaryCategory?`Primary Category: ${typeof((n=(l=e.suggestion)==null?void 0:l.current_value)==null?void 0:n.primaryCategory)=="object"?(i=(s=e.suggestion)==null?void 0:s.current_value)==null?void 0:i.primaryCategory.join("<br>"):(w=($=e.suggestion)==null?void 0:$.current_value)==null?void 0:w.primaryCategory}`:""} ${(I=(T=e.suggestion)==null?void 0:T.current_value)!=null&&I.additionalCategories?`Additional Categories: ${typeof((L=(F=e.suggestion)==null?void 0:F.current_value)==null?void 0:L.additionalCategories)=="object"?(j=(q=e.suggestion)==null?void 0:q.current_value)==null?void 0:j.additionalCategories.join("<br>"):(A=(_=e.suggestion)==null?void 0:_.current_value)==null?void 0:A.additionalCategories}`:""}`,value:[(U=(V=e.suggestion)==null?void 0:V.current_value)!=null&&U.primaryCategory?`Primary Category: <br>
9${typeof((B=(E=e.suggestion)==null?void 0:E.current_value)==null?void 0:B.primaryCategory)=="object"?(y=(S=e.suggestion)==null?void 0:S.current_value)==null?void 0:y.primaryCategory.join("<br>"):(a=(K=e.suggestion)==null?void 0:K.current_value)==null?void 0:a.primaryCategory}`:null,(W=(R=e.suggestion)==null?void 0:R.current_value)!=null&&W.additionalCategories?`Additional Categories: <br>${typeof((Y=(z=e.suggestion)==null?void 0:z.current_value)==null?void 0:Y.additionalCategories)=="object"?(J=(Z=e.suggestion)==null?void 0:Z.current_value)==null?void 0:J.additionalCategories.join("<br>"):(X=(Q=e.suggestion)==null?void 0:Q.current_value)==null?void 0:X.additionalCategories}`:""]}:null:e.type=="suggestion"&&(ee=e.suggestion)!=null&&ee.suggested_value?{label:`${(ce=(ue=e.suggestion)==null?void 0:ue.suggested_value)!=null&&ce.primaryCategory?`Primary Category: ${typeof((pe=(de=e.suggestion)==null?void 0:de.suggested_value)==null?void 0:pe.primaryCategory)=="object"?(ve=(me=e.suggestion)==null?void 0:me.suggested_value)==null?void 0:ve.primaryCategory.join("<br>"):(fe=(_e=e.suggestion)==null?void 0:_e.suggested_value)==null?void 0:fe.primaryCategory}`:""} ${(he=(ye=e.suggestion)==null?void 0:ye.suggested_value)!=null&&he.additionalCategories?`Additional Categories: ${typeof((xe=(ke=e.suggestion)==null?void 0:ke.suggested_value)==null?void 0:xe.additionalCategories)=="object"?(be=($e=e.suggestion)==null?void 0:$e.suggested_value)==null?void 0:be.additionalCategories.join("<br>"):(Ce=(Fe=e.suggestion)==null?void 0:Fe.suggested_value)==null?void 0:Ce.additionalCategories}`:""}`,value:[(Te=(we=e.suggestion)==null?void 0:we.suggested_value)!=null&&Te.primaryCategory?`Primary Category: <br>${typeof((Se=(Ie=e.suggestion)==null?void 0:Ie.suggested_value)==null?void 0:Se.primaryCategory)=="object"?(Le=(je=e.suggestion)==null?void 0:je.suggested_value)==null?void 0:Le.primaryCategory.join("<br>"):(qe=(Pe=e.suggestion)==null?void 0:Pe.suggested_value)==null?void 0:qe.primaryCategory}`:null,(Ae=(De=e.suggestion)==null?void 0:De.suggested_value)!=null&&Ae.additionalCategories?`Additional Categories: <br>${typeof((Re=(Ve=e.suggestion)==null?void 0:Ve.suggested_value)==null?void 0:Re.additionalCategories)=="object"?(Ue=(He=e.suggestion)==null?void 0:He.suggested_value)==null?void 0:Ue.additionalCategories.join("<br>"):(Me=(Oe=e.suggestion)==null?void 0:Oe.suggested_value)==null?void 0:Me.additionalCategories}`:""]}:null});return(g,o)=>c.value?(u(),d("div",ws,[h(v(G),{class:"truncate flex gap-2 items-center",distance:"12",placement:"right"},{popper:x(()=>[p("div",Is,[typeof c.value.value=="object"?(u(!0),d(C,{key:0},O(c.value.value,t=>(u(),d("div",{key:t,innerHTML:t},null,8,Ss))),128)):(u(),d(C,{key:1},[],64))])]),default:x(()=>[p("div",Ts,b(c.value.label),1)]),_:1})])):k("",!0)}},js={key:0},Ls={class:"truncate"},Ps={class:"text-sm text-white max-w-96 flex flex-col gap-1"},Je={__name:"RegularHoursValueCell",props:{type:{type:String,required:!0},suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var t,l;return e.type=="current"?(t=e.suggestion)!=null&&t.current_value?{label:g.value.join(", "),value:g.value}:null:e.type=="suggestion"&&(l=e.suggestion)!=null&&l.suggested_value?{label:o.value.join(", "),value:o.value}:null}),g=f(()=>{var l,n,s;return(l=e.suggestion)!=null&&l.current_value?(s=(n=e.suggestion)==null?void 0:n.current_value)==null?void 0:s.periods.map(i=>`${re(i.openDay)} ${H(i.openTime.hours+":"+(i.openTime.minutes==null?"00":i.openTime.minutes))} to ${H(i.closeTime.hours+":"+(i.closeTime.minutes==null?"00":i.closeTime.minutes))}`):null}),o=f(()=>{var l,n,s;return(l=e.suggestion)!=null&&l.suggested_value?(s=(n=e.suggestion)==null?void 0:n.suggested_value)==null?void 0:s.periods.map(i=>`${re(i.openDay)} ${H(i.openTime.hours+":"+(i.openTime.minutes==null?"00":i.openTime.minutes))} to ${H(i.closeTime.hours+":"+(i.closeTime.minutes==null?"00":i.closeTime.minutes))}`):null});return(t,l)=>c.value?(u(),d("div",js,[h(v(G),{class:"truncate flex gap-2 items-center",distance:"12",placement:"right"},{popper:x(()=>[p("div",Ps,[typeof c.value.value=="object"?(u(!0),d(C,{key:0},O(c.value.value,n=>(u(),d("div",{key:n}
9,b(n),1))),128)):(u(),d(C,{key:1},[],64))])]),default:x(()=>[p("div",Ls,b(c.value.label),1)]),_:1})])):k("",!0)}},qs={key:0},Ds={class:"truncate"},As={class:"text-sm text-white max-w-96 flex flex-col gap-1"},Qe={__name:"ServiceAreaValueCell",props:{type:{type:String,required:!0},suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var t,l;return e.type=="current"?(t=e.suggestion)!=null&&t.current_value?{label:g.value.join(", "),value:g.value}:null:e.type=="suggestion"&&(l=e.suggestion)!=null&&l.suggested_value?{label:o.value.join(", "),value:o.value}:null}),g=f(()=>{var t,l,n;return(t=e.suggestion)!=null&&t.current_value?[(l=e.suggestion)==null?void 0:l.current_value.businessType,...((n=e.suggestion)==null?void 0:n.current_value.places.placeInfos.map(s=>s.placeName))||[]]:null}),o=f(()=>{var t,l,n;return(t=e.suggestion)!=null&&t.suggested_value?[(l=e.suggestion)==null?void 0:l.suggested_value.businessType,...((n=e.suggestion)==null?void 0:n.suggested_value.places.placeInfos.map(s=>s.placeName))||[]]:null});return(t,l)=>c.value?(u(),d("div",qs,[h(v(G),{class:"truncate flex gap-2 items-center",distance:"12",placement:"right"},{popper:x(()=>[p("div",As,[typeof c.value.value=="object"?(u(!0),d(C,{key:0},O(c.value.value,n=>(u(),d("div",{key:n},b(n),1))),128)):(u(),d(C,{key:1},[],64))])]),default:x(()=>[p("div",Ds,b(c.value.label),1)]),_:1})])):k("",!0)}},Vs={key:0},Rs={class:"truncate"},Hs={class:"text-sm text-white max-w-96 flex flex-col gap-1"},Xe={__name:"SpecialHoursValueCell",props:{type:{type:String,required:!0},suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var t,l;return e.type=="current"?(t=e.suggestion)!=null&&t.current_value?{label:g.value.join(", "),value:g.value}:null:e.type=="suggestion"&&(l=e.suggestion)!=null&&l.suggested_value?{label:o.value.join(", "),value:o.value}:null}),g=f(()=>{var l,n,s;return(l=e.suggestion)!=null&&l.current_value?(s=(n=e.suggestion)==null?void 0:n.current_value)==null?void 0:s.specialHourPeriods.map(i=>`${i.startDate?("0"+i.startDate.month).slice(-2)+"/"+("0"+i.startDate.day).slice(-2)+"/"+i.startDate.year:""} ${i.openTime?H(i.openTime.hours+":"+(i.openTime.minutes==null?"00":i.openTime.minutes)):""} to ${i.endDate?i.endDate.month+"/"+i.endDate.day+"/"+i.endDate.year:""} ${i.closeTime?H(i.closeTime.hours+":"+(i.closeTime.minutes==null?"00":i.closeTime.minutes)):""}`):null}),o=f(()=>{var l,n,s;return(l=e.suggestion)!=null&&l.suggested_value?(s=(n=e.suggestion)==null?void 0:n.suggested_value)==null?void 0:s.specialHourPeriods.map(i=>`${i.startDate?("0"+i.startDate.month).slice(-2)+"/"+("0"+i.startDate.day).slice(-2)+"/"+i.startDate.year:""} ${i.openTime?H(i.openTime.hours+":"+(i.openTime.minutes==null?"00":i.openTime.minutes)):""} to ${i.endDate?i.endDate.month+"/"+i.endDate.day+"/"+i.endDate.year:""} ${i.closeTime?H(i.closeTime.hours+":"+(i.closeTime.minutes==null?"00":i.closeTime.minutes)):""}`):null});return(t,l)=>c.value?(u(),d("div",Vs,[h(v(G),{class:"truncate flex gap-2 items-center",distance:"12",placement:"right"},{popper:x(()=>[p("div",Hs,[typeof c.value.value=="object"?(u(!0),d(C,{key:0},O(c.value.value,n=>(u(),d("div",{key:n},b(n),1))),128)):(u(),d(C,{key:1},[],64))])]),default:x(()=>[p("div",Rs,b(c.value.label),1)]),_:1})])):k("",!0)}},Us={key:0},Os={class:"truncate"},Ms={class:"text-sm text-white max-w-96 flex flex-col gap-1"},et={__name:"StorefrontAddressValueCell",props:{type:{type:String,required:!0},suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var g,o,t,l,n,s,i,$,w,T,I,F,L,q,j,_,A,V,U,E,B,S,y,K,a,R,W,z,Y,Z,J,Q,X,ee,ue;return e.type=="current"?(g=e.suggestion)!=null&&g.current_value?{label:`${(t=(o=e.suggestion)==null?void 0:o.current_value)==null?void 0:t.addressLines.join(", ")} ${((n=(l=e.suggestion)==null?void 0:l.current_value)==null?void 0:n.locality)||""} ${((i=(s=e.suggestion)==null?void 0:s.current_value)==null?void 0:i.postalCode)||""} ${((w=($=e.suggestion)==null?void 0:$.current_value)==null?void 0:w.regionCode)||""}`,value:[...((I=(T=e.suggestion)==null?void 0:T.current_value)==null?void 0:I.addressLines)||[],`${((L=(F=e.suggestion)==null?void 0:F.current_value)==null?void 0:L.locality)||""}`,`${((j=(q=e.suggestion)==null?void 0:q.current_value)==null?void 0:j.postalCode)||""} ${((A=(_=e.suggestion)==null?void 0:_.current_value)==null?void 0:A.regionCode)||""}`]}
9:null:e.type=="suggestion"?(console.log((V=e.suggestion)==null?void 0:V.suggested_value),(U=e.suggestion)!=null&&U.suggested_value?{label:`${(B=(E=e.suggestion)==null?void 0:E.suggested_value)==null?void 0:B.addressLines.join(", ")} ${((y=(S=e.suggestion)==null?void 0:S.suggested_value)==null?void 0:y.locality)||""} ${((a=(K=e.suggestion)==null?void 0:K.suggested_value)==null?void 0:a.postalCode)||""} ${((W=(R=e.suggestion)==null?void 0:R.suggested_value)==null?void 0:W.regionCode)||""}`,value:[...((Y=(z=e.suggestion)==null?void 0:z.suggested_value)==null?void 0:Y.addressLines)||[],`${((J=(Z=e.suggestion)==null?void 0:Z.suggested_value)==null?void 0:J.locality)||""}`,`${((X=(Q=e.suggestion)==null?void 0:Q.suggested_value)==null?void 0:X.postalCode)||""} ${((ue=(ee=e.suggestion)==null?void 0:ee.suggested_value)==null?void 0:ue.regionCode)||""}`]}:null):null});return(g,o)=>c.value?(u(),d("div",Us,[h(v(G),{class:"truncate flex gap-2 items-center",distance:"12",placement:"right"},{popper:x(()=>[p("div",Ms,[typeof c.value.value=="object"?(u(!0),d(C,{key:0},O(c.value.value,t=>(u(),d("div",{key:t},b(t),1))),128)):(u(),d(C,{key:1},[],64))])]),default:x(()=>[p("div",Os,b(c.value.label),1)]),_:1})])):k("",!0)}},Bs={key:0},Ns={class:"truncate"},Es={class:"text-sm text-white max-w-96 flex flex-col gap-1"},tt={__name:"TitleValueCell",props:{type:{type:String,required:!0},suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var g,o,t,l,n,s;return e.type=="current"?(g=e.suggestion)!=null&&g.current_value?{label:(o=e.suggestion)==null?void 0:o.current_value,value:[(t=e.suggestion)==null?void 0:t.current_value]}:null:e.type=="suggestion"&&(l=e.suggestion)!=null&&l.suggested_value?{label:(n=e.suggestion)==null?void 0:n.suggested_value,value:[(s=e.suggestion)==null?void 0:s.suggested_value]}:null});return(g,o)=>c.value?(u(),d("div",Bs,[h(v(G),{class:"truncate flex gap-2 items-center",distance:"12",placement:"right"},{popper:x(()=>[p("div",Es,[typeof c.value.value=="object"?(u(!0),d(C,{key:0},O(c.value.value,t=>(u(),d("div",{key:t},b(t),1))),128)):(u(),d(C,{key:1},[],64))])]),default:x(()=>[p("div",Ns,b(c.value.label),1)]),_:1})])):k("",!0)}},Ks={key:0},Gs={class:"truncate"},Ws={class:"text-sm text-white max-w-96 flex flex-col gap-1"},st={__name:"WebsiteUriValueCell",props:{type:{type:String,required:!0},suggestion:{required:!0}},setup(r){const e=r,c=f(()=>{var g,o,t,l,n,s;return e.type=="current"?(g=e.suggestion)!=null&&g.current_value?{label:(o=e.suggestion)==null?void 0:o.current_value,value:[(t=e.suggestion)==null?void 0:t.current_value]}:null:e.type=="suggestion"&&(l=e.suggestion)!=null&&l.suggested_value?{label:(n=e.suggestion)==null?void 0:n.suggested_value,value:[(s=e.suggestion)==null?void 0:s.suggested_value]}:null});return(g,o)=>c.value?(u(),d("div",Ks,[h(v(G),{class:"truncate flex gap-2 items-center",distance:"12",placement:"right"},{popper:x(()=>[p("div",Ws,[typeof c.value.value=="object"?(u(!0),d(C,{key:0},O(c.value.value,t=>(u(),d("div",{key:t},b(t),1))),128)):(u(),d(C,{key:1},[],64))])]),default:x(()=>[p("div",Gs,b(c.value.label),1)]),_:1})])):k("",!0)}},zs={class:"flex flex-wrap justify-between items-center py-2 gap-2 sm:gap-0 max-sm:justify-start"},Ys={class:"flex flex-wrap gap-2 items-center"},Zs=["onClick"],Js={class:"flex items-center"},Qs={class:"flex justify-between items-center py-2 px-2 bg-white border border-[#dddddd] border-b-0"},Xs={class:"flex gap-5 items-center"},en={class:"flex items-center gap-2 text-sm text-primary-extraDark-300"},tn={class:"flex items-center divide-x-2"},sn={class:"flex gap-2 items-center justify-between"},nn={class:"flex justify-between items-center gap-1"},un={class:"truncate flex items-center justify-between"},ln={key:0,class:"flex items-center gap-2 truncate cursor-pointer"},rn={class:"truncate max-w-40"},on={class:"flex"},an={class:"flex justify-between items-center gap-1"},gn={class:"flex items-center gap-2 truncate"},cn={class:"truncate"},dn={key:10,class:"font-semibold text-accent-redDark"},pn={key:0},mn={__name:"SuggestionListing",props:{view:{type:Object,required:!0},viewEdited:{type:Boolean,default:!1},columns:{type:Array,required:!0},updateView:{type:Function},pageUrlParamsFilter:{type:Array,default:()=>[],required:!1}},setup(r){const e=dt.select({google_locations:["id","location_name"]}).orderBy("location_name"),c=pt.select({lead_sources:["id","name"]}).orderBy("name"),g=r,o=new mt().include("location"),t=f(()=>g.pageUrlParamsFilter.map(S=>S.key)),l=f(()=>Ne.orderBy(Be(),["filter"],["asc"]).filter(y=>!t.value.includes(y.filterHash))),n=se(),s=vt(),{selectedLocationId:i,isSwitchingCompany:$}=_t(s),w=ft(),T=D(),I=D(),F=D(),L=D(),q=D(!1),j=D(null);g.view&&V();const _=D([]);function A(S){let y="group";switch(S.reply_status){case"deleted":y+=" raw-suspended";break}return y}function V(){n.init({tableModel:o,view:g.view,tableColumns:g.columns,tableDefaultFilters:Be(),quickFiltersWithRefs:{google_location_id:{type:"options",ref:T},field_mask:{type:"options",ref:I},company_id:{type:"options",ref:F},lock_changes:{type:"options",ref:L}},tableDefaultColumn:"field_mask",disableLocalData:g.pageUrlParamsFilter.length>0,modelFilter:"google_location_id",pageUrlParamsFilter:g.pageUrlParamsFilter})}function U(){V(),E()}function E(){_.value=[]}function B(S){q.value=!0,console.log("suggestion",S),j.value=S}return lt(i,(S,y)=>{$.value||Ne.isEqual(Ke(S),Ke(y))||(S?w.push({name:"Location-Suggestions",params:{id:S.id||S}}):w.push({name:"GMB-Suggestions"}))}),(S,y)=>{const K=wt("VMenu");return u(),d("div",null,[p("div",zs,[p("div",Ys,[t.value.includes("google_location_id")?k("",!0):(u(),m(le,{placeholder:"Location",multiple:"",searchable:"",apiModel:v(e),labelKey:"location_name",valueKey:"id",modelValue:v(n).quickFilter.google_location_id,"onUpdate:modelValue":y[0]||(y[0]=a=>v(n).quickFilter.google_location_id=a),ref_key:"quickFilterLocations",ref:T,key:"google_location_id_suggestions"},null,8,["apiModel","modelValue"])),t.value.includes("company_id")?k("",!0):(u(),m(le,{placeholder:"Company",multiple:"",searchable:"",apiModel:v(c),labelKey:"name",valueKey:"id",modelValue:v(n).quickFilter.company_id,"onUpdate:modelValue":y[1]||(y[1]=a=>v(n).quickFilter.company_id=a),ref_key:"quickFilterCompany",ref:F,key:"c
9ompany_id_suggestions"},null,8,["apiModel","modelValue"])),t.value.includes("lock_changes")?k("",!0):(u(),m(le,{placeholder:"Profile Lock",multiple:"",searchable:"",options:[{label:"Locked",value:1},{label:"Unlocked",value:0}],modelValue:v(n).quickFilter.lock_changes,"onUpdate:modelValue":y[2]||(y[2]=a=>v(n).quickFilter.lock_changes=a),ref_key:"quickFilterLockChanges",ref:L,key:"lock_changes_suggestions"},null,8,["modelValue"])),t.value.includes("field_mask")?k("",!0):(u(),m(le,{placeholder:"Field",multiple:"",searchable:"",options:v(oe),modelValue:v(n).quickFilter.field_mask,"onUpdate:modelValue":y[3]||(y[3]=a=>v(n).quickFilter.field_mask=a),ref_key:"quickFilterField",ref:I,key:"field_mask_suggestions"},null,8,["options","modelValue"])),h(yt,{tableFilters:v(n).filters,"onUpdate:tableFilters":y[4]||(y[4]=a=>v(n).filters=a),allFiltersWithConditionsAndValues:l.value,onRemoveFilter:v(n).removeFilter},{filterTrigger:x(({toggleFilters:a})=>[p("div",{onClick:a,class:rt(["px-4 py-1.5 cursor-pointer flex items-center text-secondary font-semibold active:bg-accent-active-blue rounded text-xs",[{active:v(n).filters.length>0}]])},[h(N,{icon:"filter_1",class:"pr-3"}),y[10]||(y[10]=P(" Advanced Search ",-1)),v(n).filters.length>0?(u(),d(C,{key:0},[P(" ("+b(v(n).totalFilters)+") ",1)],64)):k("",!0)],10,Zs)]),_:1},8,["tableFilters","allFiltersWithConditionsAndValues","onRemoveFilter"]),v(n).filters.length>0?(u(),d("div",{key:4,onClick:y[5]||(y[5]=a=>v(n).resetFilters()),class:"flex gap-2 items-center text-secondary font-semibold text-xs cursor-pointer group/icon px-4 py-1.5 rounded hover:bg-accent-active-blue"},[h(ht,{icon:"close"}),y[11]||(y[11]=P(" Clear All Filters ",-1))])):k("",!0)]),p("div",Js,[Tt(S.$slots,"saveButton",ot(It({viewsPayload:v(n).viewsPayload})),void 0,!0)])]),(u(),m(Ft,{"items-selected":_.value,"onUpdate:itemsSelected":y[7]||(y[7]=a=>_.value=a),columns:v(n).columns,onUpdateColumns:v(n).onUpdateColumns,items:v(n).tableRows,loading:v(n).loading,"server-items-length":v(n).serverOptions.total||0,serverOptions:v(n).serverOptions,"onUpdate:serverOptions":y[8]||(y[8]=a=>v(n).serverOptions=a),fixedHeader:"",footerClass:"!py-2",bodyRowClassName:A,draggableColumns:!0,key:v(n).tableKey},St({tableTopSection:x(()=>[p("div",Qs,[p("div",Xs,[h($t,{inputClass:"!p-2 !pl-10 !h-8 text-sm",iconPosition:"prepend",iconBordered:!1,clearable:!0,placeholder:"Search",icon:"search",modelValue:v(n).tableSearch,"onUpdate:modelValue":y[6]||(y[6]=a=>v(n).tableSearch=a)},null,8,["modelValue"]),_.value&&_.value.length>0?(u(),d(C,{key:0},[p("div",en,[P(b(_.value.length)+" Rows Selected ",1),h(N,{icon:"arrowThinRightGray"})]),p("div",tn,[h(ds,{suggestions:_.value,onReloadListing:U},null,8,["suggestions"]),h(ps,{suggestions:_.value,onReloadListing:U},null,8,["suggestions"]),h(ms,{suggestions:_.value,onReloadListing:U},null,8,["suggestions"]),h(vs,{suggestions:_.value,onReloadListing:U},null,8,["suggestions"])])],64)):k("",!0)]),h(bt)])]),"item-field_mask":x(a=>[p("div",sn,[h(Ge,{class:"text-secondary font-semibold underline",status:v(oe).find(R=>R.value==a.field_mask),onClick:R=>B(a)},null,8,["status","onClick"]),h(Dt,{suggestion:a,onOnView:B,onReloadListingWithAPI:V,onReloadListing:v(n).reRenderTable},null,8,["suggestion","onReloadListing"])])]),"item-location.name":x(a=>[p("div",nn,[h(K,{distance:0,placement:"right-start",triggers:["hover"],delay:300},{popper:x(()=>[p("div",on,[h(xt,{itemData:a.location},null,8,["itemData"])])]),default:x(()=>[p("div",un,[a.location?(u(),d("div",ln,[a.location?(u(),m(ge,{key:0,color:"oceanGreen",class:"flex-shrink-0 !p-0.5 !w-9 !h-9",src:a.location.image,initials:a.location.location_name_initials},null,8,["src","initials"])):k("",!0),p("div",rn,b(a.location.location_name),1)])):k("",!0)])]),_:2},1024)])]),"item-name":x(a=>[p("div",an,[p("div",gn,[a.user_image?(u(),m(ge,{key:0,color:"white",class:"flex-shrink-0 !p-0.5 !w-10 !h-10",src:a.user_image},null,8,["src"])):k("",!0),p("span",cn,b(a.name),1)])])]),"item-current_value":x(a=>[a.field_mask=="latlng"?(u(),m(ze,{key:0,type:"current",suggestion:a},null,8,["suggestion"])):a.field_mask=="phoneNumbers"?(u(),m(Ye,{key:1,type:"current",suggestion:a},null,8,["suggestion"])):a.field_mask=="categories"?(u(),m(Ze,{key:2,type:"current",suggestion:a},null,8,["suggestion"])):a.field_mask=="regularHours"?(u(),m(Je,{key:3,type:"current",suggestion:a},null,8,["suggestion"])):a.field_mask=="serviceArea"?(u(),m(Qe,{key:4,type:"current",suggestion:a},null,8,["suggestion"])):a.field_mask=="specialHours"?(u(),m(Xe,{key:5,type:"current",suggestion:a},null,8,["suggestion"])):a.field_mask=="storefrontAddress"?(u(),m(et,{key:6,type:"current",suggestion:a},null,8,["suggestion"])):a.field_mask=="title"?(u(),m(tt,{key:7,type:"current",suggestion:a},null,8,["suggestion"])):a.field_mask=="websiteUri"?(u(),m(st,{key:8,type:"current",suggestion:a},null,8,["suggestion"])):(u(),m(We,{key:9,type:"current",suggestion:a},null,8,["suggestion"]))]),"item-suggested_value":x(a=>
9[a.field_mask=="latlng"?(u(),m(ze,{key:0,type:"suggestion",suggestion:a},null,8,["suggestion"])):a.field_mask=="phoneNumbers"?(u(),m(Ye,{key:1,type:"suggestion",suggestion:a},null,8,["suggestion"])):a.field_mask=="categories"?(u(),m(Ze,{key:2,type:"suggestion",suggestion:a},null,8,["suggestion"])):a.field_mask=="regularHours"?(u(),m(Je,{key:3,type:"suggestion",suggestion:a},null,8,["suggestion"])):a.field_mask=="serviceArea"?(u(),m(Qe,{key:4,type:"suggestion",suggestion:a},null,8,["suggestion"])):a.field_mask=="specialHours"?(u(),m(Xe,{key:5,type:"suggestion",suggestion:a},null,8,["suggestion"])):a.field_mask=="storefrontAddress"?(u(),m(et,{key:6,type:"suggestion",suggestion:a},null,8,["suggestion"])):a.field_mask=="title"?(u(),m(tt,{key:7,type:"suggestion",suggestion:a},null,8,["suggestion"])):a.field_mask=="websiteUri"?(u(),m(st,{key:8,type:"suggestion",suggestion:a},null,8,["suggestion"])):(u(),m(We,{key:9,type:"suggestion",suggestion:a},null,8,["suggestion"])),a.suggested_value?k("",!0):(u(),d("div",dn,"Removed"))]),"item-status":x(a=>[h(Ge,{status:v(kt).find(R=>R.value==a.status)},null,8,["status"])]),"item-profile_lock":x(a=>[a.location?(u(),d("div",pn,b(a.location.lock_changes==1?"Locked":"Unlocked"),1)):k("",!0)]),_:2},[O(["created_at"],a=>({name:`item-${a}`,fn:x(R=>[R[a]?(u(),m(ut,{key:0,date:R[a]},null,8,["date"])):(u(),d(C,{key:1},[P(" - ")],64))])}))]),1032,["items-selected","columns","onUpdateColumns","items","loading","server-items-length","serverOptions"])),h(cs,{show:q.value,"onUpdate:show":y[9]||(y[9]=a=>q.value=a),suggestion:j.value,onReloadListing:V},null,8,["show","suggestion"])])}}},Ln=nt(mn,[["__scopeId","data-v-9dfaab47"]]);export{Ln 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.