PageSourceSearch

https://www.locaweb.com.br/js/dist/client/js/BestChoiceTab.BNhlVmNn.js

js locaweb.com.br collected 2026-09-24 08:29:14 UTC 7,979 bytes, 1 lines download raw bytes

1import{_ as e,a as t}from"./LwCol.D8jTUlyD.js";import{u as s,_ as o,a}from"./useTabKeyboardEvents.DiHBMFh3.js";import{_ as i}from"./LwImage.MRAnV2mc.js";import{_ as l}from"./LwIcon.B48p3iyk.js";import{n as c}from"./utils.DTXvaIaA.js";import{f as r}from"./composables.3GJq0EjP.js";import{useGtm as n}from"./gtm.DoQTHg1l.js";import{u as m}from"./vue-i18n.JXoF2nW6.js";import{f as d,g as p,p as b,l as u}from"./icons.DCWlBTEe.js";import{ac as v,a2 as g,c as w,ad as j,b as h,w as _,m as f,a as y,o as k,t as x,C as T,U as C,P as D,_ as I,R as S,H as V,$ as K,F as L,V as H,ai as O,u as P,ae as R,S as z,r as G}from"./vue-runtime.DCaFIewr.js";import"./vueuse.DGxCA-w2.js";import"./icons-arrows.CGYZWikx.js";import"./constants.i2VH62mr.js";import"./gtm-index.js.R4i0B2cE.js";import"./gtm-components-index.SUkBIt1P.js";import"./gtm-components-header.CjF7r3Ju.js";import"./gtm-components-footer.fb08l7vc.js";import"./gtm-components-fichas.B0aOZBxA.js";import"./gtm-views-index.Deb_zLQh.js";import"./gtm-views-home.DBIEoMiH.js";import"./gtm-views-hosting.DHZzm4zF.js";import"./gtm-views-emailProfissional.D0g7Btcm.js";import"./gtm-views-fichas.qcZiXiEW.js";import"./gtm-views-registroDominio.BfmUF8N7.js";import"./gtm-views-hospedagem-dedicada.AXXfjc_p.js";import"./gtm-views-registroDeDominioGratis.CDKPdRgv.js";import"./gtm-views-cloudSimulator.pHGJTVRr.js";import"./gtm-views-smtpLocaweb.cET-LKrN.js";import"./js-cookie.Ch5AnFJE.js";import"./configuration.C8rG5JZw.js";import"./locales-pt-br-components.CO_BaTpI.js";import"./locales-pt-br-views-index.js.BYLCq0bt.js";import"./locales-pt-br-views-home.DgKgNTAv.js";import"./locales-pt-br-views-hosting.V5m6ONjX.js";import"./locales-pt-br-views-hospedagemWordpress.DrnLYMnM.js";import"./locales-pt-br-views-hospedagem-lovable.smjs-RXV.js";import"./locales-pt-br-views-servidor-vps.csk-IcWT.js";import"./locales-pt-br-views-email-profissional.DJyoR0eb.js";import"./locales-pt-br-views-locaweb-cloud.C64RVmhz.js";import"./store-products.Bl-ZPoZg.js";import"./locales-pt-br-views-email.DsnOGNfU.js";import"./locales-pt-br-views-fichas.CHc3axed.js";import"./locales-pt-br-views-domain-register.z4DFro2G.js";import"./locales-pt-br-views-n8n.C2btudqR.js";import"./locales-pt-br-views-email-marketing-locaweb.CLbwCLew.js";import"./locales-pt-br-views-smtp-locaweb.BR5na9Q6.js";import"./locales-pt-br-views-hospedagem-dedicada.C_Edcn8F.js";import"./locales-pt-br-views-criador-sites-ia.BQLfq-Si.js";import"./locales-pt-br-views-openclaw.CmhC9Hml.js";import"./locales-pt-br-views-registro-de-dominio-gratis.Dwp_Y68L.js";import"./locales-pt-br-views-cloud-simulator.Dyy17Zzb.js";import"./locales-pt-br-views-tdc.88-THT3b.js";import"./locales-pt-br-views-ia-conference.D622gQ_v.js";import"./locales-pt-br-products.ClDa9DG5.js";import"./axios.BdCnz3GV.js";const $={class:"lw-best-choice-tab","data-testid":"home-best-choice-section"},q={class:"lw-container"},A={class:"lw-best-choice-tab__header pb-2xl md:pb-5xl"},E={class:"lw-best-choice-tab__subtitle",id:"best-choice-tab-subtitle"},M={class:"lw-best-choice-tab__tab","aria-labelledby":"best-choice-tab-title best-choice-tab-subtitle"},U=["id","aria-selected","aria-controls","data-testid","onClick"],W={class:"lw-best-choice-tab__container"},B=["id"],F={class:"lw-best-choice-tab__image relative"},J=["srcset"],N=["srcset"],Q={key:0,class:"lw-best-choice-tab__image__description"},X={__name:"BestChoiceTab",props:v({tagTitle:{type:String,default:"h2"}},{modelValue:{default:0},modelModifiers:{}}),emits:["update:modelValue"],setup(v){P((e=>({"0f82a5f4":ue.value,"3d2615ec":ge.value,"466dcffe":ve.value})));const{events:X}=r("views.home.bestChoice"),Y=n(),{tm:Z}=m(),ee=Z("views.home.bestChoice"),te={objectsHeadphoneOutline:g(u),localizationPinOutline:g(b),financeCircleDollarSignOutline:g(p),placesStoreOutline:g(d)},se=ee.tabs.map((e=>({...e,icon:te[e.icon]||null}))),oe=w((()=>se.map(((e,t)=>({...e,ga:{category:X.category,label:"".concat(X.label).concat(c(e.title)||"tab-".concat(t+1)),action:X.action}}))))),ae=j(v,"modelValue"),ie={size:0,items:se},{totalTabs:le,handleSelectTab:ce,getTabId:re,currentTabId:ne,id:me,slideDirection:de}=s({baseId:"best-choice-tab",modelValue:ae,props:ie}),{handleKeyDown:pe,handleTabActivatorKeyDown:be}=a({totalTabs:le,modelValue:ae,onTabSelect:ce,baseId:ne}),ue=w((()=>{var e;const t=(null==(e=se[ae.value])?void 0:e.color)||"0, 0, 0";return"rgba(".concat(t,", 1)")})),ve=w((()=>{var e;const t=(null==(e=se[ae.value])?void 0:e.color)||"0, 0, 0";return"linear-gradient(0deg, rgba(".concat(t,", 0.8) 0%, rgba(").concat(t,", 0) 100%)")})),ge=h("0px"),we=_(ae,(()=>{var e,t,s,o,a;
1ge.value="".concat(null==(e=document.querySelector(".lw-best-choice-tab__tabcontent"))?void 0:e.offsetHeight,"px"),(null==(t=oe.value[ae.value])?void 0:t.ga)&&(null==Y?void 0:Y.enabled)&&Y.trackEvent({event:"tagger",eventLabel:null==(s=oe.value[ae.value])?void 0:s.ga.label,eventCategory:null==(o=oe.value[ae.value])?void 0:o.ga.category,eventAction:null==(a=oe.value[ae.value])?void 0:a.ga.action,noninteraction:!1})}));return f((()=>{we()})),(s,a)=>(k(),y("section",$,[x("div",q,[T(t,null,{default:C((()=>[T(e,{cols:"12",md:"5"},{default:C((()=>[x("div",A,[(k(),D(K(v.tagTitle),{class:"lw-best-choice-tab__title",id:"best-choice-tab-title"},{default:C((()=>[I(S(V(ee).title),1)])),_:1})),x("p",E,S(V(ee).subtitle),1)])])),_:1}),T(e,{cols:"12"},{default:C((()=>[x("div",M,[T(o,{modelValue:ae.value,role:"tablist",showIndicator:"",onKeydown:V(pe)},{default:C((()=>[(k(!0),y(L,null,H(V(le),(e=>{var t,o;return k(),y("button",{onKeydown:a[0]||(a[0]=R(((...e)=>V(be)&&V(be)(...e)),["tab"])),id:"lw-best-choice-".concat(V(me),"-activeTab-").concat(e),class:"lw-best-choice-tab__tablist-item",role:"tab",type:"button","aria-selected":e===ae.value+1,key:e,"aria-controls":V(re)(e),"data-testid":"home-best-choice-tab-button-".concat(e),onClick:t=>V(ce)(e)},[(null==(t=V(se)[e-1])?void 0:t.icon)?(k(),D(l,{key:0,class:"block md:inline-block",icon:null==(o=V(se)[e-1])?void 0:o.icon},null,8,["icon"])):z("",!0),G(s.$slots,"label-".concat(e),{},(()=>{var t;return[I(S(null==(t=V(se)[e-1])?void 0:t.title),1)]}))],40,U)})),128))])),_:3},8,["modelValue","onKeydown"]),x("div",W,[T(O,{name:"right"===V(de)?"slide-right":"slide-left"},{default:C((()=>[(k(!0),y(L,null,H(V(le),(o=>(k(),y(L,{key:o},[o===ae.value+1?(k(),y("div",{key:0,class:"lw-best-choice-tab__tabcontent",id:V(re)(o),role:"tabpanel",tabindex:"-1"},[G(s.$slots,"tab-".concat(o),{},(()=>[T(t,null,{default:C((()=>[T(e,{cols:"12",sm:"3"},{default:C((()=>{var e;return[x("dl",null,[(k(!0),y(L,null,H(null==(e=V(se)[o-1])?void 0:e.content,((e,t)=>(k(),y("div",{key:t}
1,[x("dt",null,S(e.title),1),x("dd",null,S(e.description),1)])))),128))])]})),_:2},1024),T(e,{cols:"12",sm:"9",class:"lw-best-choice-tab__image-col relative"},{default:C((()=>{var e,t,s,a,l,c,r,n;return[x("div",F,[T(i,{src:null==(e=V(se)[o-1])?void 0:e.image.desktop,alt:null==(t=V(se)[o-1])?void 0:t.imageDescription,aspectRatio:"16/9",width:"120",height:"68",class:"lw-best-choice-tab__image__content",lazy:""},{sources:C((()=>{var e,t,s,a;return[(null==(e=V(se)[o-1])?void 0:e.image.tablet)?(k(),y("source",{key:0,srcset:null==(t=V(se)[o-1])?void 0:t.image.tablet,media:"(max-width: 1024px)"},null,8,J)):z("",!0),(null==(s=V(se)[o-1])?void 0:s.image.mobile)?(k(),y("source",{key:1,srcset:null==(a=V(se)[o-1])?void 0:a.image.mobile,media:"(max-width: 768px)"},null,8,N)):z("",!0)]})),_:2},1032,["src","alt"]),(null==(s=V(se)[o-1])?void 0:s.imageDescription)?(k(),y("div",Q,[(null==(a=V(se)[o-1])?void 0:a.selo)&&(null==(l=V(se)[o-1])?void 0:l.selo.desktop)?(k(),D(i,{key:0,src:null==(c=V(se)[o-1])?void 0:c.selo.desktop,alt:null==(r=V(se)[o-1])?void 0:r.selo.alt,aspectRatio:"16/9",class:"lw-best-choice-tab__image__selo"},null,8,["src","alt"])):z("",!0),I(" "+S(null==(n=V(se)[o-1])?void 0:n.imageDescription),1)])):z("",!0)])]})),_:2},1024)])),_:2},1024)]))],8,B)):z("",!0)],64)))),128))])),_:3},8,["name"])])])])),_:3})])),_:3})])]))}};export{X 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.