1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7524],{38945:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/partner-terms",function(){return r(66290)}])},66290:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var a=r(37876),o=r(36589),i=r(35967),n=r(92387),l=r(18847),s=r.n(l);r(14232);var u=r(99934);let c=s()(()=>Promise.all([r.e(5082),r.e(1944),r.e(5644)]).then(r.bind(r,56792)).then(e=>e.LegalPolicyPage),{loadableGenerated:{webpack:()=>[56792]}}),d=(0,i.YK)({title:{id:"misc.PartnerTermsPage.title",defaultMessage:"General Terms and Conditions for OfferUp Partner Programs"}});function p(){let e=(0,n.A)();return(0,a.jsx)(c,{title:e.formatMessage(d.title),journeyBannerPath:"/partner-terms",docType:o.mKM.PartnerTerms})}p.getInitialProps=async e=>{await e.apolloClient.query({query:o.oI6,variables:{docType:o.mKM.PartnerTerms}})};let h=(0,u.Jo)(p)},70919:()=>{},91794:()=>{},99934:(e,t,r)=>{"use strict";r.d(t,{nU:()=>K,sE:()=>M,Jo:()=>N});var a=r(37876);r(14232);var o=r(868),i=r(36049),n=r(36589),l=r(91040),s=r(93606),u=r(45978),c=r(3853),d=r(46725),p=r(18610),h=r(98122),y=r(6793),g=r(8455),C=r(70919),m=r.n(C),f=r(11945),w=r(19790);let v=async e=>{if(!e.req?.jwtToken)return null;try{let t=await e.apolloClient.query({query:n.BE3,context:{headers:{Authorization:`Bearer ${e.req.jwtToken}`}}});return e.authUser=t?.data.me?(0,w.o)(t.data.me):void 0,e.authUser}catch(e){d.v.error(e)}return null},q=async(e,t)=>((0,g.f)()&&await v(e),t.getInitialProps(e));var P=r(9215),x=r(91794),S=r.n(x),k=r(23666),A=r(68779);let T=async()=>{let{statsigForwardProxyUrl:e,environment:t}=A.O.experimentation,r={environment:{tier:t},initTimeoutMs:3e3,...e&&{apiForDownloadConfigSpecs:e,fallbackToStatsigAPI:!0}};try{await S().initialize(k.A.statsigAPIKey,r)}catch(t){throw d.v.error({error:t,statsigForwardProxyUrl:e},"Statsig SDK initialization failed"),t}};var E=r(15229),b=r(8759);let I=async(e,t)=>{let{statsigForwardProxyUrl:r,statsigSDKKey:a}=A.O.experimentation;await T();let o=(0,f.h)(t,e.authUser?.id,e.req.DX,e.res.locals[y.AB]),i=m().getClientInitializeResponse(o,a,{hash:"djb2"});return i||d.v.error({statsigForwardProxyUrl:r},"Statsig getClientInitializeResponse returned empty response"),i},_=async e=>{let t=e.appProps.location?.zipCode;try{return await e.apolloClient.query({query:n.u5U,variables:{input:{zipcode:t},excludeL3:!(0,b.DX)(e.query.cid,e.query.slug)}})}catch(e){d.v.error(e)}return null},D=async e=>{try{return(await e.apolloClient.query({query:n.Y5R,variables:{input:{deviceId:e.req.DX},...(0,E.L)(e.appProps.location)},context:{headers:{"user-agent":e.req.useragent.source}}})).data.userContext.userContext}catch(e){d.v.error(e)}return null},U=async e=>{try{let t=await e.apolloClient.query({query:P.GetVideoAuthTokensDocument}),{expirationTime:r}=t.data.getVideoAuthTokens;t.data?.getVideoAuthTokens?.sessionCookies?.forEach(t=>{var a;let o,i,n,l;a=e.res,o=t.indexOf("="),i=t.slice(0,o),n=t.slice(o+1),l=new Date(r).getTime()-Date.now(),a.cookie(i,n,{httpOnly:!0,secure:!0,maxAge:l,sameSite:"none",domain:k.A.cookieSubDomain})})}catch(e){d.v.error(e)}},O=async(e,t=!1)=>{if(!e.res)return{};let[r,a]=await Promise.all([_(e),D(e),U(e),!t?v(e):Promise.resolve({})]);try{let t=await I(e,a);return{categories:r,statsigValues:t,statsigUserContext:a??void 0}}catch(e){d.v.error(e)}return{categories:r}},z=e=>!!e&&(!!e.city||!!e.zipCode||!!e.latitude&&!!e.longitude),j=e=>{e.res?.cookie(p.dX,"1",{maxAge:3e5,sameSite:"lax",secure:!0})},F=async e=>{let t=(0,h.$)(e.req?.cookies[p.FW]);if(z(t))return t;let r=e.req?.ipAddress;if(!r||e.req?.cookies[p.dX])return null;try{let{data:{data:t}}=await l.A.get(`${k.A.locationUrl}/internal/locationv2/location`,{params:{ip:r},timeout:3e3}),a={city:t?.city,state:t?.state,zipCode:t?.zipCode,longitude:t?.lon,latitude:t?.lat,source:"ip"};if(!z(a))return j(e),null;return e.res.cookie(p.FW,JSON.stringify(a),{maxAge:864e5,sameSite:"lax",secure:!0}),a}catch(t){return d.v.error("Error fetching location from ip",{error:t,middleware:"location"}),j(e),null}},K=async e=>{let t=await F(e),r={colorMode:e.res?.locals.colorMode,location:t,isWebview:e.res?.locals.isWebview,isFTUE:e.req?.isFTUE,userAgent:e.req?.useragent,authenticatedViaToken:!!e.req?.jwtToken||!!e.req?.refreshToken||!!e.apolloClient?.cache.readQuery({query:n.BE3}),deviceId:e.req?.DX,sessionId:e.res?.locals[y.AB],secGpc:e.req?.headers["sec-gpc"]};return e.appProps=r,r},M=e=>{let t=(0,s.fq)({context:e});return e.apolloClient=t,t};function N(e){let t=t=>(0,a.jsx)(e,{...t});return t.getInitialProps=async t=>{let r,a;M(t);let n=(0,g.f)(),l=await K(t),s={};try{let o=[];return n&&o.push(O(t,!!e.getInitialProps)),e.getInitialProps&&o.push(q(t,e)),(await Promise.allSettled(o)).forEac
1h((e,t)=>{if("rejected"===e.status)throw e.reason;n&&0===t?(r=JSON.stringify(e.value.statsigValues),a=JSON.stringify(e.value.statsigUserContext)):s=e.value}),s?.notFound&&t.res&&(t.res.statusCode=404),{...s,appProps:l,httpStatusCode:t.res?.statusCode,initialApolloState:t.apolloClient.cache.extract(),apolloClient:t.apolloClient,initializeStatsigValues:r,initializeStatsigUserContext:a}}catch(y){d.v.error(y);let e=y instanceof o.K?y:new o.K({errorMessage:String(y)}),n=e.graphQLErrors?.find(e=>(0,u.Kg)(e.extensions)),p=n?.extensions;if(p)return{...s,appProps:l,initialApolloState:t.apolloClient.cache.extract(),apolloClient:t.apolloClient,vpnBlockError:(0,u.bt)(p.exception?.originalError?.error),initializeStatsigValues:r,initializeStatsigUserContext:a};let h=(e=>{let{message:t,httpStatusCode:r,...a}=(0,i.b)(e);return(0,c.DF)({message:t||e.message||"An unexpected error occurred",httpStatusCode:r||500,...a})})(e);return t.res&&(t.res.statusCode=h.httpStatusCode,404===h.httpStatusCode&&(s={...s,notFound:!0})),{...s,appProps:l,initialApolloState:t.apolloClient.cache.extract(),httpStatusCode:h.httpStatusCode,apolloClient:t.apolloClient,error:h,initializeStatsigValues:r,initializeStatsigUserContext:a}}},t.getLayout=e.getLayout,t}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=38945)),_N_E=e.O()}]);
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.