PageSourceSearch

https://www.allbirds.com/cdn/shop/t/4159/assets/footer.js

js allbirds.com collected 2026-10-02 02:16:18 UTC 2,435 bytes, 1 lines download raw bytes

1import{c as I,o as k,r as n,m as L}from"./vue.esm-bundler.js";import{n as A}from"./analytics-data.js";import{u as b}from"./use-safe-navigation.js";import{G as O}from"./geofencing2.js";import{M as u,G as T,H as h,a as y,A as w,C as _,w as P,I as c,J as p}from"./wunderkind-api.js";import{e as F}from"./ScrollTrigger.js";import{b as R,p as U}from"./iterable.js";import{b as G}from"./validator.js";import{u as K}from"./use-modal.js";import{u as $}from"./use-viewport-size.js";import{B as D}from"./base-section.js";import"./use-scroll-lock.js";import"./cookies.js";import"./_commonjsHelpers.js";const i="footer";class H extends D{constructor(){super(`[data-section-type="${i}"]`)}init(C){const r=C.container,E=r.querySelectorAll(`[data-${i}-menu]`);if(!r){F("[Allbirds section] - Footer - init - Container not found",{},new Error("Container not found"));return}I({name:"FooterSection",setup(){const{executeSafeNavigation:m}=b(),t=n({}),{closeModal:g,isModalOpen:M,modalStates:S,openModal:v}=K(),{isMobile:d}=$(),s=n(""),f=n(!1),l=n(!1),N=L(()=>Object.values(O).map(e=>({label:e.id,value:e.url})));return k(()=>{E.forEach(e=>{const o=e.getAttribute(`data-${i}-menu`);o&&(t.value[o]=!1)}),A({sectionName:i})}),{closeModal:g,emailProvided:f,emailValue:s,geoFencingOptions:N,handleComunicationLinkClick:async(e,o,a)=>{e.includes(p.OPEN_CHAT_KEYWORD)?(c({footerLinkCategory:a,footerLinkName:o}),window?.Gladly?.show()):await m({callbacks:[()=>(c({footerLinkCategory:a,footerLinkName:o}),Promise.resolve())],openInNewTab:!1,urlToNavigate:e})},handleCountryChange:e=>{window.location.href=e.target.value},handleSignUpClick:()=>{const e=s.value.trim(),o=u.PLACEMENT.FOOTER,a=R({email:e,isMobile:d.value,placementSource:o});if(e==""||!G(e)){l.value=!0;return}T(e,h()),y({additionalTraits:w({subscriptionSource:o,subscriptionStatus:!0}),email:e}),_({messageMedium:u.MEDIUM.EMAIL,messageType:u.TYPE.ALL,optInStatus:!0,placement:o}),U(a),P({email:e}),s.value="",f.value=!0,l.value=!1},handleSocialIconClick:async(e,o,a)=>{await m({callbacks:[()=>(c({footerLinkCategory:e,footerLinkName:`${p.SOCIAL_MEDIA_LINKS_TRACKING_NAME_PREFIX}${a}`}),Promise.resolve())],openInNewTab:!0,urlToNavigate:o})},isMenuOpen:e=>t.value[e]===!0,isMobile:d,isModalOpen:M,menuStates:t,modalStates:S,openModal:v,showInvalidEmailMessage:l,toggleMenu:e=>{typeof t.value[e]<"u"&&(t.value[e]=!t.value[e])}}}}).mount(r)}}document.addEventListener("DOMContentLoaded",()=>{new H});

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.