PageSourceSearch

https://squatwolf.com/_next/static/chunks/1929-16b416d25208919b.js

js squatwolf.com collected 2026-10-02 04:30:38 UTC 8,593 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1929],{34469:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(95155);function a(e){return(0,o.jsx)("svg",{...e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M20 30.56L3 16.96V12H7V15.04L20 25.44L33 15.04V12H37V16.96L20 30.56Z",fill:"currentColor"})})}},36304:(e,t,r)=>{r.d(t,{E:()=>a});var o=r(30926);let a=(0,o.createServerReference)("7f1b203a6f25bb434b14b55c397838c79a3620d260",o.callServer,void 0,o.findSourceMapURL,"syncExternalId")},40823:(e,t,r)=>{r.d(t,{H_:()=>f,pR:()=>u,r_:()=>s,B2:()=>c,o2:()=>d});var o=r(25016),a=r(30926);let i=(0,a.createServerReference)("7fe174fbc7e3c1af6d439a4eb302f654304c33917a",a.callServer,void 0,a.findSourceMapURL,"generateAuthToken"),n="https://sdk.loyaltylion.net",l="2023-11";async function s(){let e="95aa375c861aa42fd80261344d73f005";if(!e)throw Error("LoyaltyLion is not configured.");try{let t=await fetch("".concat(n,"/sdk/").concat(l,"/config/").concat(e));if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));return await t.json()}catch(e){throw console.error("Error fetching LoyaltyLion config:",e),e}}async function c(e){let t="95aa375c861aa42fd80261344d73f005";if(!t)throw Error("LoyaltyLion token is not configured.");if(!e.id||!e.email)throw Error("Customer ID and email are required for authentication");try{let r=await y((0,o.dP)(e.id),e.email,e.name),a=await fetch("".concat(n,"/sdk/init?site_token=").concat(t,"&cid=").concat((0,o.dP)(e.id),"&auth_packet=").concat(r),{method:"POST"});if(!a.ok)throw Error("HTTP error! status: ".concat(a.status));return await a.json()}catch(e){console.error("Error authenticating LoyaltyLion customer:",e)}}async function d(e,t){let r="95aa375c861aa42fd80261344d73f005";if(!r)throw Error("LoyaltyLion is not configured.");try{var o,a;let i=await y(t.id,t.email,t.name),s=await fetch("".concat(n,"/customers/rewards/claim"),{method:"POST",headers:{accept:"*/*","content-type":"application/json","x-auth-packet":i,"x-sdk-version":l,"x-site-token":r,Referer:(null==(a=window)||null==(o=a.location)?void 0:o.origin)||"https://squatwolf.com/"},body:JSON.stringify({attribution:"redemption_notification",reward_id:e})});if(!s.ok){let e=await s.json();throw Error(e.message||"Failed to redeem points")}return await s.json()}catch(e){console.error("Error authenticating LoyaltyLion customer:",e)}}async function u(e,t){let r="95aa375c861aa42fd80261344d73f005";if(!r)throw Error("LoyaltyLion is not configured.");try{var o,a;let i=await y(t.id,t.email,t.name),s=await fetch("".concat(n,"/customers/activities"),{method:"POST",headers:{accept:"*/*","content-type":"application/json","x-auth-packet":i,"x-sdk-version":l,"x-site-token":r,Referer:(null==(a=window)||null==(o=a.location)?void 0:o.origin)||"https://squatwolf.com/"},body:JSON.stringify({name:e,properties:{username:"squatwolf"}})});if(!s.ok){let e=await s.json();throw Error(e.message||"Failed to redeem points")}return await s.json()}catch(e){console.error("Error authenticating LoyaltyLion customer:",e)}}async function f(e,t){let r="95aa375c861aa42fd80261344d73f005";if(!r)throw Error("LoyaltyLion is not configured.");try{var o,a;let i=await y(t.id,t.email,t.name),s=await fetch("".concat(n,"/customers/update/birthday"),{method:"POST",headers:{accept:"*/*","content-type":"application/json","x-auth-packet":i,"x-sdk-version":l,"x-site-token":r,Referer:(null==(a=window)||null==(o=a.location)?void 0:o.origin)||"https://squatwolf.com/"},body:JSON.stringify({birthday:e})});if(!s.ok){let e=await s.json();throw Error(e.message||"Failed to redeem points")}return await s.json()}catch(e){console.error("Error authenticating LoyaltyLion customer:",e)}}let y=async(e,t,r)=>{let o=new Date().toISOString(),a=await i(e,o,t);return btoa(JSON.stringify({email:t,id:e,name:r,date:o,mac:a}))}},41961:(e,t,r)=>{r.d(t,{CG:()=>n,wN:()=>i,T6:()=>l});let o={QUICK_ADD:"QUICK_ADD",WISHLIST_TOGGLE:"WISHLIST_TOGGLE",NAVIGATION:"NAVIGATION"},a=e=>{void 0!=window.ReactNativeWebView&&void 0!=window.ReactNativeWebView.postMessage&&window.ReactNativeWebView.postMessage(e)},i=e=>{a(JSON.stringify({type:o.QUICK_ADD,payload:e}))},n=e=>{a(JSON.stringify({type:o.NAVIGATION,payload:{url:e}}))},l=e=>{a(JSON.stringify({type:o.WISHLIST_TOGGLE,payload:e}))}},71346:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(95155);function a(e){return(0,o.jsxs)("svg",{className:"h-5 w-5 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,o.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,o.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}},71693:(e,t,r)=>{r.r(t),r.d(t,{LocalizedLinkWithTracking:()=>w,default:()=>y});var o=r(95155),a=r(88579),i=r(91392),n=r(81912),l=r(99138),s=r(41961),c=r(52619),d=r.n(c);let u=["/products/","/pages/","/collections/"],f=e=>{let{href:t,children:r,...a}=e,{validateLocale:i,isWebView:n}=(0,l.useLocale)();if(!t)return(0,o.jsx)(o.Fragment,{children:r});let c=t.startsWith("https")?t:"".concat(i()).concat(t.startsWith("/")?t:"/".concat(t));return n&&u.some(e=>c.includes(e))?(0,o.jsx)("div",{...a,onClick:()=>(0,s.CG)(c),children:r}):(0,o.jsx)(d(),{href:c,...a,children:r})},y=f,w=e=>{let{event_type:t,selected_interaction:r,...l}=e,{externalId:s}=(0,a.x)();return(0,o.jsx)(f,{...l,onClick:e=>{switch(t){case n.Ru.categoryClicked:(0,i.Uy)(r,s);break;case n.Ru.footerClicked:(0,i.$_)(r,s);break;case n.Ru.navigationClicked:(0,i.KG)(r,s);break;case n.Ru.joinedPackVip:(0,i.yv)(s);break;case n.Ru.bannerClicked:(0,i.yy)(r,s);break;default:console.warn("Unhandled event type: ".concat(t))}}})}},74958:(e,t,r)=>{r.d(t,{LoyaltyProvider:()=>s,O:()=>c});var o=r(95155),a=r(12115),i=r(88579),n=r(40823);let l=(0,a.createContext)({data:{tier:null,nextTier:null,points:0,loyaltyTiers:[],loyaltyTierBenefits:[],rewards:[],remainingPoints:0},customer:null,config:null,loading:!1,refresh:()=>{}}),s=e=>{let{children:t}=e,{userProfile:r}=(0,i.x)(),[s,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(null),[f,y]=(0,a.useState)(null),[w,h]=(0,a.useState)({tier:null,nextTier:null,points:0,loyaltyTiers:[],rules:[],loyaltyTierBenefits:[],rewards:[],remainingPoints:0}),p=async()=>{c(!0);try{var e,t,o,a,i,l,s;let c=await (0,n.r_)(),d=await (0,n.B2)(r);y(null==c?void 0:c.program),u(null==d?void 0:d.customer);
1let f=(null==d||null==(e=d.customer)?void 0:e.loyaltyTierMembership.loyaltyTierId)||0,w=(null==c||null==(t=c.program)?void 0:t.loyaltyTiers)||[],p=(null==c?void 0:c.program.loyaltyTierBenefits)||[],m=null!=(s=null==d||null==(o=d.customer)?void 0:o.pointsApproved)?s:0,v=null==w?void 0:w.find(e=>e.id==f),g=null==w?void 0:w.find(e=>e.position==v.position+1),k=null==p?void 0:p.filter(e=>e.loyaltyTierIds.includes(v.id)).map(e=>{let{content:t}=e;return t}),L=((null==c||null==(a=c.program)?void 0:a.rules)||[]).filter(e=>e.configurations.some(e=>e.tierId===f));h({tier:v,points:m,loyaltyTiers:w,loyaltyTierBenefits:p,rewards:k,nextTier:g,rules:L,remainingPoints:(null==g||null==(i=g.bounds)?void 0:i.lower)?(null==g||null==(l=g.bounds)?void 0:l.lower)-m:0})}catch(e){console.error(e)}finally{c(!1)}};(0,a.useEffect)(()=>(r&&p(),()=>{c(!1),y(null),u(null)}),[r]);let m=(0,a.useMemo)(()=>({loading:s,config:f,customer:d,data:w,refresh:p}),[r,f,s]);return(0,o.jsx)(l.Provider,{value:m,children:t})},c=()=>{let e=(0,a.useContext)(l);if(!e)throw Error("useProfile must be used within a ProfileProvider");return e}},88579:(e,t,r)=>{r.d(t,{ProfileProvider:()=>c,x:()=>d});var o=r(95155),a=r(39441),i=r(36304),n=r(91392),l=r(12115);let s=(0,l.createContext)({userProfile:null,addresses:[],updateProfile:()=>{},updateAddresses:()=>{},preLogout:()=>{},isDrawerOpen:!1,openDrawer:()=>{},closeDrawer:()=>{},externalId:"",setExternalId:()=>{}}),c=e=>{let{user:t=null,initialExternalId:r,children:c}=e,[d,u]=(0,l.useState)(t),[f,y]=(0,l.useState)([]),[w,h]=(0,l.useState)(r),[p,m]=(0,l.useState)(!1),v=e=>{u({...d,...e})},g=()=>{localStorage.removeItem(a.LOCAL_STORAGE_DATA_KEYS.wishlist),(0,n.ri)(d),u(null),y([])},k=()=>m(!0),L=()=>m(!1),x=async()=>{try{let e=await (0,i.E)(w,d);h(e)}catch(e){}};(0,l.useEffect)(()=>{x()},[]);let S=(0,l.useMemo)(()=>({userProfile:d,addresses:f,updateProfile:v,updateAddresses:y,preLogout:g,isDrawerOpen:p,openDrawer:k,closeDrawer:L,externalId:w,setExternalId:h}),[d,f,p,w]);return(0,o.jsx)(s.Provider,{value:S,children:c})},d=()=>{let e=(0,l.useContext)(s);if(!e)throw Error("useProfile must be used within a ProfileProvider");return e}}}]);

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.