1import{E as a,c as l,A as o,b as g,D as i,y as r2,p as t2,C as h2,s as k,g as f,h as n,H as v,z as p,F as D,r as a2,f as m,al as _2,e as C2,M as Q,B as X,q as c2}from"./vue-CIUkp1da.js";import{q as i2,A as E,F as g2,ca as v2,x as f2,d as n2,bp as B,ax as Y,bo as q,d4 as x2,H as b2,I as m2,J as y2,d5 as l2}from"./main-DLm1YG0W.js";import{u as w2}from"./HeatmapShareDetails-DXbo8ZHI.js";import{_ as p2,G as e2}from"./LoadingComponent-BiWd8R-x.js";import"./jsPDF-B_AxsNEJ.js";import"./sweetalert2-i0D1jcg2.js";import"./sentry-pz5kdcDh.js";import"./axios-BOeqtr82.js";import"./elementPlus-CmKUPNNQ.js";import"./lodash-Bi9X4yzk.js";import"./momentTimezone-BKNAwBBr.js";import"./moment-BAtM24Ew.js";import"./vue-datepicker-CHBD5wm3.js";import"./libphonenumberJs-2sOZ5POC.js";import"./vuedraggable-D50EXxXc.js";import"./icons-DqvSViCQ.js";import"./pusher-oMvsCdtd.js";const k2={class:"flex items-center gap-2"},D2={class:"text-secondary-darker font-semibold"},$2={class:"space-y-0.5 w-full"},P2={key:1,class:"animate-pulse space-y-2"},B2={__name:"StatisticsCard",props:{type:{type:String,required:!0,validator(t){return["heat_map_scan_details","target_gmb","best_average_score","highest_top_3_so_lv"].includes(t)}},companyAvatar:{default:null},bodyClass:{default:null},loading:{type:Boolean,default:!1}},setup(t){const T=k(()=>new URL("data:image/svg+xml,%3csvg%20width='109'%20height='150'%20viewBox='0%200%20109%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20opacity='0.05'%20d='M105.971%20155.327L87.9018%20114.351M119.539%2081.1736C113.801%2096.0014%20102.409%20107.943%2087.867%20114.37C73.3253%20120.798%2056.8257%20121.186%2041.9979%20115.449C27.1702%20109.712%2015.2289%2098.3188%208.80108%2083.7771C2.37322%2069.2354%201.98531%2052.7358%207.72268%2037.908C13.4601%2023.0803%2024.8527%2011.139%2039.3945%204.71119C53.9362%20-1.71667%2070.4358%20-2.10459%2085.2635%203.63279C100.091%209.37016%20112.033%2020.7628%20118.46%2035.3046C124.888%2049.8463%20125.276%2066.3459%20119.539%2081.1736Z'%20stroke='%23B4AE10'%20stroke-width='6'%20stroke-linecap='round'/%3e%3c/svg%3e",import.meta.url).href),L=k(()=>new URL("data:image/svg+xml,%3csvg%20width='81'%20height='150'%20viewBox='0%200%2081%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20opacity='0.05'%20d='M7.34889%2042.6222C-0.680695%2059.3994%20-2.18974%2078.5618%203.11473%2096.3892C8.4192%20114.216%2020.1587%20129.437%2036.0542%20139.095C51.9497%20148.754%2070.8669%20152.161%2089.1335%20148.656C107.4%20145.151%20123.712%20134.983%20134.904%20120.127C146.095%20105.271%20151.368%2086.7869%20149.697%2068.2623C148.026%2049.7377%20139.531%2032.4949%20125.862%2019.8813C112.193%207.26771%2094.3239%200.183331%2075.725%200.00350883C57.1262%20-0.176314%2039.1239%206.56126%2025.2134%2018.9082L7.57671%201.27153C6.74707%200.456237%205.62889%200.00179842%204.46571%200.00720775C3.30255%200.0126171%202.18866%200.477436%201.36665%201.30041C0.544647%202.12339%200.081131%203.23784%200.0770874%204.40102C0.0730438%205.56419%200.528809%206.68184%201.34508%207.5105L71.8917%2078.0572C72.3002%2078.4718%2072.7867%2078.8015%2073.3232%2079.0272C73.8597%2079.2529%2074.4355%2079.3701%2075.0176%2079.3721C75.5996%2079.3741%2076.1763%2079.2609%2076.7143%2079.0389C77.2524%2078.817%2077.7411%2078.4907%2078.1525%2078.0789C78.5638%2077.6671%2078.8895%2077.1779%2079.1108%2076.6396C79.3321%2076.1013%2079.4447%2075.5245%2079.442%2074.9425C79.4393%2074.3604%2079.3214%2073.7847%2079.095%2073.2485C78.8687%2072.7122%2078.5385%2072.2261%2078.1233%2071.8182L56.5258%2050.2133C62.1529%2046.0055%2069.0474%2043.8438%2076.0696%2044.0853C83.0918%2044.3268%2089.8215%2046.9572%2095.1462%2051.5416C100.471%2056.126%20104.072%2062.3901%20105.354%2069.2984C106.637%2076.2068%20105.524%2083.3459%20102.199%2089.5359C98.8739%2095.7259%2093.5366%20100.596%2087.0688%20103.342C80.6011%20106.087%2073.3901%20106.544%2066.6277%20104.636C59.8653%20102.728%2053.9564%2098.5695%2049.8775%2092.8482C45.7986%2087.127%2043.7939%2080.1853%2044.1948%2073.1703C44.2611%2072.0009%2043.8601%2070.8531%2043.0801%2069.9794C42.3001%2069.1057%2041.2049%2068.5776%2040.0355%2068.5113C38.8661%2068.445%2037.7183%2068.846%2036.8446%2069.626C35.9708%2070.4061%2035.4428%2071.5012%2035.3765%2072.6706C34.8475%2081.7449%2037.4497%2090.7257%2042.7481%2098.1114C48.0466%20105.497%2055.72%20110.84%2064.4853%20113.247C73.2506%20115.653%2082.5764%20114.978%2090.9033%20111.333C99.2303%20107.688%20106.054%20101.295%20110.232%2093.2231C114.411%2085.1508%20115.692%2075.8887%20113.86%2066.9855C112.029%2058.0822%20107.197%2050.0774%20100.171%2044.3097C93.1461%2038.5421%2084.3536%2035.3611%2075.2641%2035.2987C66.1746%2035.2363%2057.3393%2038.2963%2050.2354%2043.967L31.467%2025.1913C43.7985%2014.4384%2059.681%208.64343%2076.0397%208.92813C92.3984%209.21282%20108.07%2015.557%20120.02%2026.7323C131.969%2037.9077%20139.348%2053.1194%20140.726%2069.4224C142.105%2085.7254%20137.386%20101.96%20127.482%20114.983C117.578%20128.007%20103.195%20136.892%2087.1163%20139.92C71.0377%20142.947%2054.4076%20139.902%2040.4456%20131.372
1C26.4836%20122.843%2016.1829%20109.436%2011.5377%2093.7484C6.89243%2078.0605%208.23308%2061.207%2015.3001%2046.4508C15.5515%2045.9287%2015.6976%2045.3622%2015.73%2044.7837C15.7625%2044.2051%2015.6807%2043.6259%2015.4893%2043.0789C15.2979%2042.532%2015.0006%2042.0281%2014.6145%2041.5961C14.2283%2041.164%2013.7609%2040.8123%2013.2388%2040.5609C12.7167%2040.3095%2012.1502%2040.1634%2011.5717%2040.1309C10.9931%2040.0985%2010.4139%2040.1803%209.86694%2040.3717C9.32001%2040.5631%208.81615%2040.8603%208.38409%2041.2465C7.95206%2041.6326%207.60028%2042.1001%207.34889%2042.6222Z'%20fill='url(%23paint0_linear_293_8472)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_293_8472'%20x1='112.5'%20y1='14.0625'%20x2='28.125'%20y2='135.938'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2397C72F'/%3e%3cstop%20offset='1'%20stop-color='%231CA2CC'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",import.meta.url).href),J=k(()=>new URL("data:image/svg+xml,%3csvg%20width='103'%20height='149'%20viewBox='0%200%20103%20149'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20opacity='0.05'%20d='M40.7666%20148.947C36.5111%20148.792%2032.466%20147.686%2028.6312%20145.629C24.7964%20143.577%2021.1688%20140.572%2017.7484%20136.613C12.1632%20130.249%207.8088%20122.423%204.68528%20113.134C1.56176%20103.846%200%2094.1981%200%2084.1909C0%2072.523%202.16791%2061.5708%206.50372%2051.3343C10.8334%2041.0978%2016.7897%2032.1843%2024.3727%2024.5936C31.9558%2017.003%2040.8222%2011.008%2050.9721%206.60849C61.1344%202.20283%2071.977%200%2083.5%200C95.023%200%20105.866%202.20903%20116.028%206.62708C126.184%2011.0513%20135.02%2017.0464%20142.535%2024.6122C150.056%2032.1781%20156.012%2041.0699%20160.403%2051.2879C164.801%2061.4872%20167%2072.3991%20167%2084.0236C167%2094.0494%20165.392%20103.685%20162.176%20112.93C158.972%20122.175%20154.524%20130.122%20148.834%20136.771C145.222%20140.873%20141.523%20143.928%20137.738%20145.935C133.959%20147.943%20129.951%20148.947%20125.714%20148.947C123.524%20148.947%20121.397%20148.686%20119.331%20148.166C117.259%20147.652%20115.187%20146.877%20113.115%20145.842L100.126%20139.336C97.5589%20138.047%2094.8436%20137.081%2091.9799%20136.436C89.1223%20135.792%2086.2369%20135.469%2083.3237%20135.469C80.293%20135.469%2077.3736%20135.792%2074.5655%20136.436C71.7698%20137.081%2069.1442%20138.044%2066.6887%20139.327L53.8853%20145.833C51.6587%20147.029%2049.5031%20147.884%2047.4187%20148.398C45.3281%20148.919%2043.1107%20149.102%2040.7666%20148.947ZM41.0542%20139.652C42.4458%20139.652%2043.8777%20139.497%2045.3498%20139.187C46.8218%20138.878%2048.2506%20138.335%2049.6361%20137.561L62.625%20131.055C65.8722%20129.35%2069.237%20128.111%2072.7192%20127.337C76.2015%20126.562%2079.7178%20126.175%2083.2681%20126.175C86.8245%20126.175%2090.381%20126.562%2093.9375%20127.337C97.494%20128.111%20100.896%20129.35%20104.143%20131.055L117.364%20137.561C118.756%20138.335%20120.147%20138.878%20121.539%20139.187C122.931%20139.497%20124.322%20139.652%20125.714%20139.652C128.652%20139.652%20131.466%20138.878%20134.157%20137.328C136.841%20135.779%20139.501%20133.456%20142.136%20130.357C147.084%20124.471%20150.919%20117.422%20153.64%20109.212C156.361%20101.002%20157.722%2092.5003%20157.722%2083.7076C157.722%2062.9495%20150.532%2045.3579%20136.151%2030.9326C121.771%2016.5073%20104.22%209.29465%2083.5%209.29465C62.7796%209.29465%2045.2292%2016.5755%2030.8486%2031.1371C16.4681%2045.6987%209.27778%2063.3585%209.27778%2084.1166C9.27778%2092.9465%2010.7375%20101.544%2013.6569%20109.909C16.5763%20118.274%2020.5286%20125.323%2025.5139%20131.055C28.1426%20134.153%2030.694%20136.362%2033.1681%20137.682C35.6421%20139.001%2038.2708%20139.658%2041.0542%20139.652ZM83.5%2097.5938C87.4152%2097.5938%2090.7119%2096.2492%2093.3901%2093.5599C96.0745%2090.8769%2097.4167%2087.5742%2097.4167%2083.6518C97.4167%2082.2886%2097.2126%2080.9595%2096.8043%2079.6644C96.3899%2078.3632%2095.8333%2077.1549%2095.1343%2076.0395L112.261%2053.8532C114.519%2055.9847%20116.498%2058.4138%20118.199%2061.1402C119.887%2063.8666%20121.298%2066.782%20122.43%2069.8864H132.171C129.14%2058.7577%20123.138%2049.7511%20114.163%2042.8669C105.188%2035.9765%2094.9673%2032.5313%2083.5%2032.5313C72.0327%2032.5313%2061.7745%2035.9827%2052.7256%2042.8855C43.6705%2049.8007%2037.6461%2058.8041%2034.6525%2069.8957H44.2086C47.2084%2061.4128%2052.3298%2054.6153%2059.5726%2049.5033C66.8155%2044.385%2074.7913%2041.8259%2083.5%2041.8259C87.44%2041.8259%2091.1913%2042.3836%2094.7539%2043.4989C98.3228%2044.6267%20101.725%2046.1913%20104.959%2048.1927L87.7863%2070.4813C87.1183%2070.2396%2086.4039%2
1070.0537%2085.6432%2069.9236C84.8824%2069.7811%2084.168%2069.7098%2083.5%2069.7098C79.5848%2069.7098%2076.2881%2071.0545%2073.6099%2073.7437C70.9255%2076.4268%2069.5833%2079.7295%2069.5833%2083.6518C69.5833%2087.5742%2070.9255%2090.8769%2073.6099%2093.5599C76.2881%2096.2492%2079.5848%2097.5938%2083.5%2097.5938Z'%20fill='%23CB3434'/%3e%3c/svg%3e",import.meta.url).href),K=k(()=>new URL("data:image/svg+xml,%3csvg%20width='76'%20height='150'%20viewBox='0%200%2076%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20opacity='0.05'%20d='M39.4737%20150C39.4737%20141.625%2042.8007%20133.593%2048.7229%20127.67C54.6451%20121.748%2062.6774%20118.421%2071.0526%20118.421V110.526C61.9527%20110.528%2053.1317%20107.386%2046.0823%20101.631C39.033%2095.8768%2034.1884%2087.8634%2032.3684%2078.9474H23.6842C17.4028%2078.9474%2011.3786%2076.4521%206.93695%2072.0104C2.49529%2067.5688%200%2061.5446%200%2055.2632V15.7895H15.7895C21.8684%2015.7895%2027.3947%2018.0789%2031.5789%2021.7895V0H118.421V21.7895C122.605%2018.0789%20128.132%2015.7895%20134.211%2015.7895H150V55.2632C150%2061.5446%20147.505%2067.5688%20143.063%2072.0104C138.621%2076.4521%20132.597%2078.9474%20126.316%2078.9474H117.632C115.812%2087.8634%20110.967%2095.8768%20103.918%20101.631C96.8683%20107.386%2088.0473%20110.528%2078.9474%20110.526V118.421C87.3226%20118.421%2095.3549%20121.748%20101.277%20127.67C107.199%20133.593%20110.526%20141.625%20110.526%20150H39.4737ZM78.9474%20126.316H71.0526C60.7105%20126.316%2051.9474%20132.868%2048.7105%20142.105H101.289C99.6662%20137.479%2096.6428%20133.473%2092.6391%20130.644C88.6354%20127.814%2083.85%20126.302%2078.9474%20126.316ZM110.526%207.89474H39.4737V71.0526C39.4737%2079.4279%2042.8007%2087.4601%2048.7229%2093.3823C54.6451%2099.3045%2062.6774%20102.632%2071.0526%20102.632H78.9474C87.3226%20102.632%2095.3549%2099.3045%20101.277%2093.3823C107.199%2087.4601%20110.526%2079.4279%20110.526%2071.0526V7.89474ZM142.105%2055.2632V23.6842H134.211C130.023%2023.6842%20126.007%2025.3477%20123.046%2028.3088C120.085%2031.2699%20118.421%2035.2861%20118.421%2039.4737V71.0526H126.316C130.503%2071.0526%20134.52%2069.3891%20137.481%2066.428C140.442%2063.4669%20142.105%2059.4508%20142.105%2055.2632ZM7.89474%2055.2632C7.89474%2059.4508%209.55826%2063.4669%2012.5194%2066.428C15.4805%2069.3891%2019.4966%2071.0526%2023.6842%2071.0526H31.5789V39.4737C31.5789%2035.2861%2029.9154%2031.2699%2026.9543%2028.3088C23.9932%2025.3477%2019.9771%2023.6842%2015.7895%2023.6842H7.89474V55.2632Z'%20fill='%23BB3C3C'/%3e%3c/svg%3e",import.meta.url).href),F=t,y=k(()=>{switch(F.type){case"heat_map_scan_details":return{bgImage:T.value,icon:"searchWithPin",title:"Heat Map Scan Details"};case"target_gmb":return{bgImage:L.value,icon:"target",title:"Target GMB"};case"best_average_score":return{bgImage:J.value,icon:"scoreRed",title:"Best Average Score"};case"highest_top_3_so_lv":return{bgImage:K.value,icon:"cupRed",title:"Highest Top 3% (SoLV)"};default:return null}});return(u,S)=>(a(),l("div",{class:t2(["card flex-grow",[t.type]]),style:h2({backgroundImage:`url(${y.value.bgImage})`})},[o("div",k2,[g(E,{icon:y.value.icon},null,8,["icon"]),o("span",D2,i(y.value.title),1)]),o("div",{class:t2(["flex gap-2.5 pt-[13px] w-full",t.bodyClass])},[g(g2,{src:t.companyAvatar,color:"white",class:"flex-shrink-0"},null,8,["src"]),o("div",$2,[t.loading?(a(),l("div",P2,[...S[0]||(S[0]=[o("div",{class:"h-4 bg-accent-border rounded"},null,-1),o("div",{class:"h-3 bg-accent-border rounded"},null,-1),o("div",{class:"h-3 bg-accent-border rounded w-4/5"},null,-1),o("div",{class:"h-3 bg-accent-border rounded w-3/5"},null,-1)])])):r2(u.$slots,"default",{key:0},void 0,!0)])],2)],6))}},d2=i2(B2,[["__scopeId","data-v-a9ecb10c"]]),F2={class:"flex gap-7"},S2={class:"text-sm text-secondary-darker font-semibold"},G2={class:"text-xs text-secondary-darker font-normal"},T2={class:"grid grid-cols-2 justify-between gap-1 items-center"},L2={key:0,class:"flex gap-1 items-center text-xs"},I2={key:1,class:"font-poppins"},A2={class:"font-semibold"},V2={class:"pl-1 text-accent-oceanGreenLight"},H2={key:1,class:"text-xs text-secondary-darker font-semibold flex"},M2={class:"pl-1 text-accent-oceanGreenLight"},R2={class:"text-sm text-secondary-darker font-semibold"},j2={class:"text-xs text-secondary-darker font-normal"},W2={class:"grid grid-cols-2 justify-between gap-1 items-center"},N2={key:0,class:"flex gap-1 items-center text-xs"},U2={key:1,class:"font-poppins"},Z2={class:"font-semibold"},z2={class:"pl-1 text-accent-oceanGreenLight"},O2={class:"text-accent-oceanGreenLigh text-xs pl-3"},q2={key:1,class:"text-xs text-secondary-darker font-semibold flex"},E2={class:"pl-1 text-accent-oceanGreenLight"},J2={__name:"tableStatisticsCards",props:{cardType:{type:String,default:null},itemData:{type:Object}},setup(t){const T=k(()=>new URL("/appBundle/img/dummy-img-1-CUx3iH0r.png",import.meta.url).href),L=v2(),{loading:J,heatmapDetails:K,loadingCompetitors:F,bestAverageScoreCompetitor:y}=f2(L),u=t,S=k(()=>{var _,w,b,c,r,C,e,s;const x=[];return u.itemData!==null&&((_=u.itemData)==null?void 0:_.average)!==null&&x.push({label:"Avg Ranking",value:`${parseFloat(parseFloat(((w=u.itemData)==null?void 0:w.average)||20).toFixed(2))} ${B((b=u.itemData)==null?void 0:b.average_position)}`}),(((c=u.itemData)==null?void 0:c.top_3_position)||null)!==null&&x.push({label:"Top 3% (SoLV)",value:`${(r=u.itemData)!=null&&r.top_3_points?(((C=u.itemData)==null?void 0:C.top_3_points)/((e=u.itemData)==null?void 0:e.total_points)*100).toFixed(2):"0.00"}% ${B((s=u.itemData)==null?void 0:s.top_3_position)}`}),x}),o2=k(()=>{var x,_,w,b,c,r;return[{label:"Avg Ranking",value:`${parseFloat(parseFloat(((x=u.itemData)==null?void 0:x.average)||20).toFixed(2))} ${B((_=u.itemData)==null?void 0:_.average_position)}`},{label:"Top 3% (SoLV)",value:`${(w=u.itemData)!=null&&w.top_3_points?(((b=u.itemData)==null?void 0:b.top_3_points)/((c=u.itemData)==null?void 0:c.total_points)*100).toFixed(2):"0.00"}% ${B((r=u.itemData)==null?void 0:r.top_3_position)}`}]});return(x,_)=>{var w,b,c,r,C,e,s,h,d,$;
1return a(),l("div",F2,[t.cardType==="avg"?(a(),f(d2,{key:0,type:"best_average_score",companyAvatar:(b=(w=t.itemData)==null?void 0:w.place)!=null&&b.thumbnail_url?(r=(c=t.itemData)==null?void 0:c.place)==null?void 0:r.thumbnail_url:(e=(C=m(y))==null?void 0:C.place)==null?void 0:e.thumbnail_url,class:"w-[550px]",loading:m(F)},{default:n(()=>{var P,I,A,V,H,M,R,j,W,N,U,Z,z,O;return[o("div",S2,i((I=(P=t.itemData)==null?void 0:P.place)!=null&&I.name?(V=(A=t.itemData)==null?void 0:A.place)==null?void 0:V.name:""),1),o("p",G2,[r2(x.$slots,"subDescription",{},void 0,!0)]),o("div",T2,[t.itemData&&((H=t.itemData)!=null&&H.place)?(a(),l("div",L2,[v(i((M=t.itemData)==null?void 0:M.place.ave_review_rating)+" ",1),(R=t.itemData)!=null&&R.place.ave_review_rating?(a(),f(n2,{key:0,rating:parseFloat(((j=t.itemData)==null?void 0:j.place.ave_review_rating)||0)},null,8,["rating"])):p("",!0),(W=t.itemData)!=null&&W.place.review_count?(a(),l("span",I2,"("+i((N=t.itemData)==null?void 0:N.place.review_count)+")",1)):p("",!0)])):p("",!0),(a(!0),l(D,null,a2(S.value,(G,s2)=>(a(),l("div",{class:"text-xs text-secondary-darker font-semibold flex",key:`best_average_score-${s2}`},[o("span",A2,i(G.label),1),_[0]||(_[0]=v(": ",-1)),o("span",V2,i(G.value),1)]))),128)),(Z=(U=t.itemData)==null?void 0:U.place)!=null&&Z.main_category?(a(),l("div",H2,[_[1]||(_[1]=v(" Category: ",-1)),o("span",M2,i((O=(z=t.itemData)==null?void 0:z.place)==null?void 0:O.main_category),1)])):p("",!0)])]}),_:3},8,["companyAvatar","loading"])):p("",!0),t.cardType==="top3"?(a(),f(d2,{key:1,type:"highest_top_3_so_lv",companyAvatar:(h=(s=t.itemData)==null?void 0:s.place)!=null&&h.thumbnail_url?($=(d=t.itemData)==null?void 0:d.place)==null?void 0:$.thumbnail_url:T.value,class:"w-[550px]"},{default:n(()=>{var P,I,A,V,H,M,R,j,W,N,U,Z,z,O;return[o("div",R2,i((I=(P=t.itemData)==null?void 0:P.place)!=null&&I.name?(V=(A=t.itemData)==null?void 0:A.place)==null?void 0:V.name:""),1),o("div",j2,[r2(x.$slots,"subDescription",{},void 0,!0)]),o("div",W2,[t.itemData&&((H=t.itemData)!=null&&H.place)?(a(),l("div",N2,[v(i((M=t.itemData)==null?void 0:M.place.ave_review_rating)+" ",1),(R=t.itemData)!=null&&R.place.ave_review_rating?(a(),f(n2,{key:0,rating:parseFloat(((j=t.itemData)==null?void 0:j.place.ave_review_rating)||0)},null,8,["rating"])):p("",!0),(W=t.itemData)!=null&&W.place.review_count?(a(),l("span",U2,"("+i((N=t.itemData)==null?void 0:N.place.review_count)+")",1)):p("",!0)])):p("",!0),(a(!0),l(D,null,a2(o2.value,(G,s2)=>(a(),l("div",{class:"text-xs text-secondary-darker font-semibold flex",key:`highest_top_3_so_lv-${s2}`},[o("span",Z2,i(G.label),1),_[2]||(_[2]=v(": ",-1)),o("span",z2,i(G.value),1),o("span",O2,i(G.status),1)]))),128)),(Z=(U=t.itemData)==null?void 0:U.place)!=null&&Z.main_category?(a(),l("div",q2,[_[3]||(_[3]=v(" Category: ",-1)),o("span",E2,i((O=(z=t.itemData)==null?void 0:z.place)==null?void 0:O.main_category),1)])):p("",!0)])]}),_:3},8,["companyAvatar"])):p("",!0)])}}},u2=i2(J2,[["__scopeId","data-v-17460c7d"]]),K2=[{text:"Location",value:"place.name",fixed:!0,visible:!0,sortable:!0,draggable:!1,order:0,width:350,tooltip:"Location Name"},{text:"Avg Rank",value:"average",visible:!0,sortable:!0,draggable:!0,width:140,tooltip:"The average rank of the Google Business Profile (GBP) across all grid points."},{text:"Avg Rank Pos.",value:"average_position",visible:!0,sortable:!0,draggable:!0,width:130,tooltip:"Relative rank based on the best average score among all GBP listings that appeared at least once in this heat map search."},{text:"Top 3%",value:"top_3_points",visible:!0,width:130,sortable:!0,tooltip:"The percentage of times the GBP ranked in the top three search positions."},{text:"Top 3 Position",value:"top_3_position",visible:!0,width:150,sortable:!0,tooltip:"Relative rank based on the highest top 3% score among all GBP listings that appeared at least once in this heat map search."},{text:"Market Share",value:"market_share",visible:!0,width:150,sortable:!0,tooltip:"Percentage calculated by comparing the GBPâs top three ranking frequency to that of the top competitor."},{text:"Primary Category",value:"place.main_category",visible:!0,width:150,sortable:!0,tooltip:"The main category assigned to the GBP."},{text:"Sub Category",value:"place.related_categories",visible:!0,width:150,sortable:!0,tooltip:"The secondary category assigned to the GBP."},{text:"Found In",value:"found_in",visible:!0,width:150,sortable:!0,tooltip:"The percentage of grid points where the GBP appeared within the top 20 positions, out of all grid points."},{text:"Review",value:"place.ave_review_rating",visible:!0,width:150,sortable:!0,tooltip:"Total number of reviews for the GBP"},{text:"Review Count",value:"place.review_count",visible:!0,width:150,sortable:!0,tooltip:"The GBPâs average review rating."},{text:"Photos Count",value:"photos_count",visible:!0,width:150,sortable:!0,tooltip:"The total number of photos on the GBP."},{text:"Website.",value:"place.website_url",visible:!0,width:130,sortable:!1,tooltip:"The website URL linked to the GBP, if available."},{text:"Map URL",value:"place.map_url",visible:!0,width:120,sortable:!1,tooltip:"The link to the GBPâs map listing on Google."},{text:"Address",value:"address",visible:!0,width:150,sortable:!1,tooltip:"The GBPâs address, if available."},{text:"Northwest",value:"north_west",visible:!0,width:150,sortable:!0,tooltip:"Average rating for the GBP in the Northwest 25% of grid points."},{text:"Northeast",value:"north_east",visible:!0,width:150,sortable:!0,tooltip:"Average rating for the GBP in the Northeast 25% of grid points."},{text:"Southwest",value:"south_west",visible:!0,width:150,sortable:!0,tooltip:"Average rating for the GBP in the Southwest 25% of grid points."},{text:"Southeast",value:"south_east",visible:!0,width:150,sortable:!0,tooltip:"Average rating for the GBP in the Southeast 25% of grid points."}],Q2={class:"!bg-white"},X2={class:"flex justify-between items-center py-2 px-2 bg-white border border-[#dddddd] border-b-0 lg:border-t-0 border-r"},Y2={class:"flex gap-5 items-center"},e0={class:"flex items-center"},t0={key:0,class:"xl:mr-7.5 lg:2.5 hidden xl:flex"},a0={class:"flex w-full items-center justify-start cursor-pointer"},o0=["href"],s0=["href"],l0=["onClick"],r0={class:"flex items-center gap-2 truncate"},n0={class:"truncate w-44 text-sm underline font-semibold block"},i0={key:0,class:"px-3 pt-3 pb-1 max-w-sm"}
1,c0={key:0,class:"text-sm font-semibold text-black mb-1"},p0={key:1,class:"text-xs text-gray-600 line-clamp-4 mb-2"},d0={class:"flex"},u0={class:"flex"},h0={class:"flex"},g0={class:"flex items-center justify-start w-full"},v0={key:0,class:"w-32 truncate"},_0={key:1},C0={key:0,class:"flex items-center justify-start"},f0={class:"text-ellipsis truncate w-44"},x0={key:1},b0={key:0,class:"truncate text-ellipsis flex items-center justify-start"},m0={class:"truncate w-40"},y0={key:0,class:"flex items-center gap-2"},w0={class:"w-5 text-center"},k0={key:0,class:"flex items-center gap-2"},D0={key:1},$0={class:"flex items-center gap-2"},P0={key:1},B0={class:"truncate"},F0={class:"text-secondary-darker"},S0={class:"flex items-center justify-start w-full text-start"},G0={class:"flex items-center justify-start w-full text-start"},T0={class:"flex items-center justify-start w-full"},L0={key:0},I0={__name:"HeatMapCompetitor",props:{colPosition:{type:String,default:"left"},preview:{type:String,default:null},competitorData:{type:Array,default:null},competitorPlaceName:{type:[String,Object],default:""},loading:{type:Boolean,default:!1}},emits:["toggleColumn"],setup(t,{emit:T}){const L=v2(),J=w2(),K=T,F=t,y=c2(""),u=c2(null),S=k(()=>"px-2 lg:pr-0 !block sm:!flex"),o2=k(()=>{const c=F.competitorData;return y.value?c==null?void 0:c.filter(r=>r.place.name.toLowerCase().includes(y.value.toLowerCase())):c==null?void 0:c.sort((r,C)=>r.average-C.average)}),x=c=>{var r,C;return((r=c==null?void 0:c.place)==null?void 0:r.id)===((C=F.competitorPlaceName)==null?void 0:C.id)?"active group relative":"group relative"},_=c=>{K("toggleColumn",c)},w=c=>{F.preview==="share"?J.getCompetitorsPoints(c):L.getCompetitorsPoints(c)},b=(c,r,C)=>{{const e=Math.abs(parseInt(parseInt(c)/5)-1);return{bg:l2[l2.length-e==20?19:l2.length-e],text:e<12?"#fff":"#000"}}};return(c,r)=>{const C=_2("VMenu");return a(),l("div",Q2,[g(y2,{bodyRowClassName:x,bodyItemClassName:"!overflow-visible",columns:m(K2),items:o2.value||[],fixedHeader:!0,draggableColumns:!0,footerClass:S.value,rowsPerPage:25,loading:t.loading},C2({tableTopSection:n(()=>[o("div",X2,[o("div",Y2,[g(b2,{inputClass:"!p-2 !pl-10 !h-8 text-sm w-40 2xl:!w-52 3xl:!w-72",iconPosition:"prepend",iconBordered:!1,clearable:!0,placeholder:"Search",icon:"search",modelValue:y.value,"onUpdate:modelValue":r[0]||(r[0]=e=>y.value=e)},null,8,["modelValue"])]),o("div",e0,[t.colPosition!=="top"?(a(),l("div",t0,[g(e2,{type:"button",color:"gradient",colPosition:t.colPosition==="top"?"active":"",size:"sm",icon:t.colPosition==="top"?"topIconWhite":"topIcon",hoverIcon:t.colPosition==="top"?"topIconWhite":"",class:"rounded-r-none my-0 mr-0 ml-0 border-0 px-[1px] py-[1px]",colorGradientWrapperClass:"rounded-r-none",onClick:r[1]||(r[1]=X(e=>_("top"),["prevent"]))},null,8,["colPosition","icon","hoverIcon"]),g(e2,{type:"button",color:"gradient",colPosition:t.colPosition==="left"?"active":"",size:"sm",icon:t.colPosition==="left"?"leftColumnWhite":"leftColumn",hoverIcon:t.colPosition==="left"?"leftColumnWhite":"",class:"rounded-none my-0 mr-0 border-0 px-[1px] py-[1px] ml-[-1px]",colorGradientWrapperClass:"rounded-none",onClick:r[2]||(r[2]=X(e=>_("left"),["prevent"]))},null,8,["colPosition","icon","hoverIcon"]),g(e2,{type:"button",size:"sm",icon:t.colPosition==="center"?"centerColumnWhite":"centerColumn",color:"gradient",hoverIcon:t.colPosition==="center"?"centerColumnWhite":"",colPosition:t.colPosition==="center"?"active":"",class:"rounded-none my-0 mr-0 border-0 px-[1px] py-[1px] ml-[-1px]",colorGradientWrapperClass:"rounded-none",onClick:r[3]||(r[3]=X(e=>_("center"),["prevent"]))},null,8,["icon","hoverIcon","colPosition"]),g(e2,{type:"button",size:"sm",icon:t.colPosition==="right"?"rightColumnWhite":"rightColumn",color:"gradient",hoverIcon:t.colPosition==="right"?"rightColumnWhite":"",colPosition:t.colPosition==="right"?"active":"",class:"rounded-l-none border-0 my-0 mr-0 px-[1px] py-[1px] ml-[-1px]",colorGradientWrapperClass:"rounded-l-none",onClick:r[4]||(r[4]=X(e=>_("right"),["prevent"]))},null,8,["icon","hoverIcon","colPosition"])])):p("",!0),g(m2)])])]),"item-place.website_url":n(e=>{var s;return[o("a",{class:"flex items-center justify-center",href:(s=e==null?void 0:e.place)==null?void 0:s.website_url,target:"_blank"},[g(E,{icon:"websiteUrl1"})],8,o0)]}),"item-place.map_url":n(e=>{var s;return[o("a",{class:"flex items-center justify-center",href:(s=e==null?void 0:e.place)==null?void 0:s.map_url,target:"_blank"},[g(E,{icon:"googleMapUrl"})],8,s0)]}),"item-place.name":n(e=>{var s,h;return[e.place?(a(),l("div",{key:0,class:t2(["truncate text-ellipsis flex items-center justify-start cursor-pointer overflow-[inherit]",{"text-[#1CA2CC]":((s=e==null?void 0:e.place)==null?void 0:s.id)===((h=t.competitorPlaceName)==null?void 0:h.id)}]),onClick:d=>w(e)},[o("div",r0,[e.place?(a(),f(g2,{key:0,color:"oceanGreen",class:"flex-shrink-0 !p-0.5 !w-9 !h-9",src:e.place.thumbnail_url},null,8,["src"])):p("",!0),g(C,{distance:2,placement:"right-start",triggers:["hover"],delay:300},{popper:n(()=>{var d,$;return[(d=e.place)!=null&&d.title||($=e.place)!=null&&$.description?(a(),l("div",i0,[e.place.title?(a(),l("p",c0,i(e.place.title),
11)):p("",!0),e.place.description?(a(),l("p",p0,i(e.place.description),1)):p("",!0)])):p("",!0),o("div",d0,[g(x2,{itemData:e,isOnHoverCompetitor:!0},null,8,["itemData"])])]}),default:n(()=>{var d;return[o("span",n0,i((d=e==null?void 0:e.place)==null?void 0:d.name),1)]}),_:2},1024),m(B)(e==null?void 0:e.average_position)==="1st"?(a(),f(C,{key:1,distance:6,placement:"right-start"},{popper:n(()=>[o("div",u0,[g(u2,{itemData:e,class:"bg-white shadow-lg rounded-lg z-10 overflow-[inherit]",cardType:"avg"},{subDescription:n(()=>[...r[5]||(r[5]=[v(" This location had the best average ranking position for this particular heat map search. ",-1)])]),_:1},8,["itemData"])])]),default:n(()=>[g(p2,{labelType:"avg",label:"Avg",ref_key:"statusBadge",ref:u},null,512)]),_:2},1024)):p("",!0),m(B)(e==null?void 0:e.top_3_position)==="1st"?(a(),f(C,{key:2,distance:6,placement:"right-start"},{popper:n(()=>[o("div",h0,[g(u2,{itemData:e,class:"bg-white shadow-lg rounded-lg z-10 overflow-[inherit]",cardType:"top3"},{subDescription:n(()=>[r[6]||(r[6]=v(" This location appeared in one of the top 3 ranking positions ",-1)),o("strong",{class:"font-semibold text-secondary min-w-[65px] h-[23px] max-w-fit rounded text-[12px] min-w-fit px-1.5 h-[20px] mr-1",style:h2({backgroundColor:parseFloat(e.top_3_points/e.total_points*100).toFixed(2)!=null?b(parseFloat(e.top_3_points/e.total_points*100).toFixed(2),"percentage","desc").bg:null,color:parseFloat(e.top_3_points/e.total_points*100).toFixed(2)!=null?b(parseFloat(e.top_3_points/e.total_points*100).toFixed(2),"percentage","desc").text:null})},i(parseFloat(e.top_3_points/e.total_points*100).toFixed(2))+"% ",5),r[7]||(r[7]=v(" of the time, which was more than any other location for this particular heat map search ",-1))]),_:2},1032,["itemData"])])]),default:n(()=>[g(p2,{labelType:"top3",label:"Top 3",ref_key:"statusBadge",ref:u},null,512)]),_:2},1024)):p("",!0)])],10,l0)):p("",!0)]}),"item-average":n(e=>[o("div",g0,[(e==null?void 0:e.average)!==null?(a(),f(q,{key:0,value:parseFloat(parseFloat((e==null?void 0:e.average)||20).toFixed(2))},null,8,["value"])):(a(),l(D,{key:1},[v(" - ")],64))])]),"item-top_3_points":n(e=>[g(q,{valueType:"percentage",valueOrder:"desc",value:parseFloat(parseFloat(e.top_3_points/e.total_points*100).toFixed(2))},{default:n(()=>[v(i(e.top_3_points?parseFloat(e.top_3_points/e.total_points*100).toFixed(2):"0.00")+"% ",1)]),_:2},1032,["value"])]),"item-place.main_category":n(e=>{var s,h,d;return[(s=e==null?void 0:e.place)!=null&&s.main_category?Q((a(),l("p",v0,[v(i(e.place.main_category),1)])),[[m(Y),{content:(h=e==null?void 0:e.place)!=null&&h.main_category?`<div class='text-sm text-white max-w-96'>${(d=e==null?void 0:e.place)==null?void 0:d.main_category}</div>`:null,distance:12,html:!0}]]):(a(),l("span",_0,"-"))]}),"item-place.related_categories":n(e=>{var s,h,d,$,P;return[((h=(s=e==null?void 0:e.place)==null?void 0:s.related_categories)==null?void 0:h.length)>0?Q((a(),l("div",C0,[o("span",f0,i((d=e==null?void 0:e.place)==null?void 0:d.related_categories.join(", ")),1)])),[[m(Y),{content:($=e==null?void 0:e.place)!=null&&$.related_categories?`<div class='text-sm text-white max-w-96'>${(P=e==null?void 0:e.place)==null?void 0:P.related_categories}</div>`:null,distance:12,html:!0}]]):(a(),l("span",x0,"-"))]}),"item-address":n(e=>{var s,h,d;return[e.place?Q((a(),l("div",b0,[o("span",m0,i((s=e==null?void 0:e.place)==null?void 0:s.address),1)])),[[m(Y),{content:(h=e==null?void 0:e.place)!=null&&h.address?`<div class='text-sm text-white max-w-96'>${(d=e==null?void 0:e.place)==null?void 0:d.address}</div>`:null,distance:12,html:!0}]]):p("",!0)]}),"item-place.ave_review_rating":n(e=>{var s,h,d;return[e!=null&&e.place?(a(),l("div",y0,[o("span",w0,i((s=e==null?void 0:e.place)==null?void 0:s.ave_review_rating),1),(h=e==null?void 0:e.place)!=null&&h.ave_review_rating?(a(),f(n2,{key:0,rating:parseFloat((d=e==null?void 0:e.place)==null?void 0:d.ave_review_rating)},null,8,["rating"])):p("",!0)])):p("",!0)]}),"item-place.review_count":n(e=>{var s,h;return[e!=null&&e.place?(a(),l("div",k0,[(s=e==null?void 0:e.place)!=null&&s.review_count?(a(),l(D,{key:0},[g(E,{icon:"starsCount"}),o("span",null,i((h=e==null?void 0:e.place)==null?void 0:h.review_count)+" Reviews ",1)],64)):(a(),l("span",D0,"-"))])):p("",!0)]}),"item-photos_count":n(e=>[o("div",$0,[e!=null&&e.photos_count?(a(),l(D,{key:0},[g(E,{icon:"photoIcon"}),o("span",null,i(e==null?void 0:e.photos_count),1)],64)):(a(),l("span",P0,"-"))])]),"item-found_in":n(e=>[o("div",B0,[o("div",null,[v(i(`${e.top_20_points}/${e.total_points}`)+" points, ",1),o("span",F0,i(parseFloat(e.top_20_points*100/e.total_points).toFixed(2))+"% ",1)])])]),"item-average_position":n(e=>[o("div",S0,[e!=null&&e.average_position?(a(),f(q,{key:0,value:parseInt(e.average_position)},{default:n(()=>[v(i(m(B)(e.average_position)),1)]),_:2},1032,["value"])):(a(),l(D,{key:1},[v(" - ")],64))])]),"item-top_3_position":n(e=>[o("div",G0,[e!=null&&e.top_3_position?(a(),f(q,{key:0,value:parseInt(e.top_3_position),color:"white"},{default:n(()=>[v(i(m(B)(e.top_3_position)),1)]),_:2},1032,["value"])):(a(),l(D,{key:1},[v(" - ")],64))])]),"item-market_share":n(e=>[o("div",T0,[(e==null?void 0:e.market_share)!==null?(a(),f(q,{key:0,class:"!max-w-[60px]",valueType:"percentage",valueOrder:"desc",value:parseFloat(parseFloat(e.market_share||0).toFixed(2))},{default:n(()=>[v(i(parseFloat(e.market_share).toFixed(2))+"% ",1)]),_:2},1032,["value"])):(a(),l(D,{key:1},[v(" - ")],64))])]),_:2},[a2(["place.website_url","place.place_url","status","market_share","top_3_percentage","average"],e=>({name:`header-${e}`,fn:n(s=>[Q((a(),l("div",a0,[o("span",{class:t2({"-mr-[18px]":s.sortable})},i(s.text),3)])),[[m(Y),{content:`<div class='text-sm text-white max-w-96'>${s.tooltip||s.text}</div>`,distance:12,html:!0}]])])})),a2(["north_west","north_east","south_west","south_east"],e=>({name:`item-${e}`,fn:n(s=>[s[e]?(a(),l("div",L0,i(parseFloat(s[e]).toFixed(2)),1)):(a(),l(D,{key:1},[v(" - ")],64))])}))]),1032,["columns","items","footerClass","loading"])])}}},X0=i2(I0,[["__scopeId","data-v-9c5408e8"]]);export{X0 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.