PageSourceSearch

https://www.britstops.com/_next/static/chunks/4904-d39f51b0562e51f9.js

js britstops.com collected 2026-10-02 06:18:15 UTC 10,269 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var r in a)a.hasOwnProperty(r)&&(e[r]=a[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:britstops-web":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="309f37e6-b735-43e9-a37f-b302c54cb514",e._sentryDebugIdIdentifier="sentry-dbid-309f37e6-b735-43e9-a37f-b302c54cb514")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4904],{49858:(e,t,a)=>{var r=a(60567);e.exports=function(e){return r(e).toUpperCase()}},68920:(e,t,a)=>{"use strict";a.d(t,{s:()=>v,z:()=>x});var r=a(6029),i=a(55729),n=a(18231),o=a(9590),s=a(44517),l=a(25923),d=a(32768),u=a(34650),c=a(75329),p=a(95816),b=a.n(p),g=a(79613),m=a(56139),h=a(57126),y=a(59587),f=a(34942);function w({children:e,titleFade:t,hideCenteredPageTitleWeb:a,titleAlign:i="center"}){let{styles:l}=(0,g.I)(C);return"web"!==n.A.OS||a?(0,r.jsx)(o.A.View,{style:[l.compactTitleContainer,{opacity:t}],children:e}):(0,r.jsx)(s.A,{style:[l.compactTitleContainer,{alignItems:i}],children:e})}let x=({title:e,scrollAnimated:t=!1,transparent:a=!1,navigateBack:n,actionButtons:p,pageTitleStyle:m,pageTitleDataSet:x,backButtonStyle:k,backButtonDataSet:I,actionsContainerStyle:j,style:A,minimized:_,hideCenteredPageTitleWeb:B,titleAlign:S="center",dataSet:D,hideBottomBorder:T=!1,testID:O="page-header-back-button",closeIcon:P=!1,backgroundColor:M})=>{let{styles:R,theme:V,ids:z}=(0,g.I)(C),{top:U}=(0,c.Or)(),{titleShowing:W}=(0,h.a3)(),[L]=(0,i.useState)(new o.A.Value(+!!_));(0,i.useEffect)(()=>{_||(W?o.A.timing(L,{toValue:1,duration:200,useNativeDriver:!0,easing:l.A.sin}).start():o.A.timing(L,{toValue:0,duration:50,useNativeDriver:!0,easing:l.A.sin}).start())},[_,L,W]);let N=(0,i.useMemo)(()=>M||V.colors.transparent,[M,V.colors.transparent]);return(0,r.jsx)(s.A,{style:{backgroundColor:W?V.colors.background:N,width:"100%",paddingTop:U,zIndex:1},children:(0,r.jsxs)(o.A.View,{style:[R.container,A,!T&&{backgroundColor:W?V.colors.background:N,borderBottomColor:W?V.colors.base75:V.colors.background,borderBottomWidth:+!!W}],dataSet:D,children:[(0,r.jsxs)(s.A,{style:[R.navRow,{marginHorizontal:16}],children:[(0,r.jsx)(s.A,{style:[R.backButtonContainer,k],dataSet:I,children:n?(0,r.jsx)(d.A,{onPress:()=>n(),style:[R.backButton,a&&!W?R.buttonShadow:{}],testID:O,dataSet:{media:z.backButton},accessibilityRole:"button",accessibilityLabel:P?"Close":"Go back",children:P?(0,r.jsx)(y.U,{height:24}):(0,r.jsx)(f.Z,{height:24})}):void 0}),(0,r.jsx)(w,{titleFade:L,hideCenteredPageTitleWeb:B,titleAlign:S,children:(0,r.jsx)(u.A,{style:[R.pageTitleCompact,m],numberOfLines:1,ellipsizeMode:"tail",children:e})}),(0,r.jsx)(s.A,{style:[R.actionsContainer,j],children:p&&p.map((e,t)=>{if(b()(e)||e.hideActionButtonOnScroll&&W)return;let i=!!e.buttonOverrideStyle;return e.buttonOverride?(0,r.jsx)(s.A,{style:[i?{}:R.actionButton,t!==p.length-1?{marginRight:12}:{},i||!a||W?{}:R.buttonShadow,e.buttonOverrideStyle,e.style],dataSet:e.dataSet,testID:e.testID,children:e.buttonOverride},`actionButton-${t}`):(0,r.jsx)(d.A,{onPress:()=>e.onPress?.(),style:[R.actionButton,t!==p.length-1?{marginRight:12}:{},a&&!W?R.buttonShadow:{},e.style],dataSet:e.dataSet,testID:e.testID,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel,children:e.icon},`actionButton-${t}`)})})]}),t||_?void 0:(0,r.jsx)(v,{title:e,style:[{paddingTop:10},m],dataSet:x})]})})},v=({title:e,style:t,testID:a,dataSet:i})=>{let{styles:n}=(0,g.I)(C);return(0,r.jsx)(u.A,{style:[n.pageTitle,t],testID:a,dataSet:i,children:e})},C=({breakpoints:e,colors:t,typography:a})=>({container:{paddingBottom:10,minHeight:50},navRow:{flexDirection:"row",marginTop:8},backButtonContainer:{flexShrink:0,flexBasis:88,justifyContent:"center"},backButton:{width:32,height:32,marginLeft:0,marginBottom:0,justifyContent:"center",alignItems:"center",borderRadius:16,backgroundColor:t.background,[(0,m.B)(["min","width",e.
1narrow])]:{backgroundColor:t.base50}},buttonShadow:{shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffset:{width:0,height:1},shadowOpacity:.8,shadowRadius:3,elevation:5},actionsContainer:{flexDirection:"row",justifyContent:"flex-end",flexShrink:0,flexBasis:88,alignItems:"center"},actionButton:{width:32,height:32,justifyContent:"center",alignItems:"center",borderRadius:16,backgroundColor:t.background},pageTitle:{...a.titleMedium,color:t.neutral900,letterSpacing:-.02,marginTop:11},compactTitleContainer:{flex:1,overflow:"hidden",alignItems:"center",justifyContent:"center",paddingHorizontal:8,flexGrow:1},pageTitleCompact:{...a.mediumBold,color:t.neutral900,lineHeight:32}})},81086:(e,t,a)=>{"use strict";a.d(t,{o:()=>w});var r=a(6029),i=a(55729),n=a(44517),o=a(49858),s=a.n(o),l=a(71024);let d=a.n(l)()(()=>Promise.all([a.e(1922),a.e(9755),a.e(867)]).then(a.bind(a,70867)),{loadableGenerated:{webpack:()=>[70867]},ssr:!1});var u=a(16797),c=a(79613);let p="Country";var b=a(93128),g=a(88894),m=a(70612),h=a(56139),y=a(41088),f=a(15791);let w=({formProps:e,showAddress2:t})=>{let{styles:a,ids:o}=(0,c.I)(x),{product:l}=(0,b.Us)(),h=l===g.Yt.britstops,[w,v]=(0,i.useState)([{label:"",value:""},...Object.keys(m.Kx).map(e=>({label:e,value:(0,m.aC)(e)}))]),C=(0,i.useCallback)(t=>{try{let a=t.features[0];e.setValue("address",a.properties.address_line1),e.setValue("address2",a.properties.address_line2),e.setValue("country",s()(a.properties.country_code)),e.setValue("city",a.properties.address_level2),!h&&(e.setValue("state",a.properties.region_code),w.find(e=>e.label===a.properties.region)||v([...w,{label:a.properties.region,value:a.properties.region_code}])),e.setValue("zip",a.properties.postcode),e.trigger()}catch(e){console.error(e)}},[e,h,w]),k=(0,i.useMemo)(()=>[{label:"",value:""},...Object.values((0,m.jo)(l)).map(e=>({label:e,value:(0,m.Cd)(e)}))],[l]);return(0,r.jsxs)(n.A,{children:[(0,r.jsxs)(n.A,{children:[(0,r.jsx)(d,{accessToken:u.o.MAPBOX_API_TOKEN??"",onRetrieve:C,children:(0,r.jsx)(y.k,{label:"Address",name:"address",autoComplete:"postal-address",onChangeText:()=>e.trigger("address"),textContentType:"streetAddressLine1",testID:"update-address-input",styleOverrideWrapper:[a.input]})}),(h||t)&&(0,r.jsx)(y.k,{label:"Address Line 2 (optional)",name:"address2",textContentType:"streetAddressLine2",testID:"update-address-2-input",styleOverrideWrapper:[a.input]})]}),(0,r.jsxs)(n.A,{style:a.content,dataSet:{media:o.content},children:[(0,r.jsx)(y.k,{name:"city",label:"Town or City",testID:"update-city-input",styleOverrideWrapper:[a.input],dataSet:{media:o.city}}),!h&&(0,r.jsx)(f.g,{label:"State/Province",name:"state",styleOverrideWrapper:[a.input],styleOverrideWrapperDataset:{media:o.state},options:w,testID:"update-state-input",editable:!1}),(0,r.jsx)(y.k,{name:"zip",label:"Postal Code",testID:"update-zip-input",styleOverrideWrapper:[a.input,h?{marginRight:8}:{marginLeft:8}],dataSet:{media:o.zip}}),h&&(0,r.jsx)(f.g,{label:p,name:"country",styleOverrideWrapper:a.input,options:k,testID:"update-country-input",editable:!1})]}),!h&&(0,r.jsx)(f.g,{label:p,name:"country",options:k,testID:"update-country-input",editable:!1,styleOverrideWrapper:a.input})]})},x=({breakpoints:e})=>({input:{marginVertical:8,flex:1},zip:{[(0,h.B)(["max","width",e.narrow])]:{width:"100%",marginLeft:0}},state:{flex:1.6,marginHorizontal:8,[(0,h.B)(["max","width",e.narrow])]:{width:"100%"}},city:{[(0,h.B)(["max","width",e.narrow])]:{width:"100%"},[(0,h.B)(["min","width",e.narrow])]:{flex:1.6,marginRight:8}},content:{[(0,h.B)(["min","width",e.narrow])]:{flex:1,flexDirection:"row"}}})},87969:(e,t,a)=>{"use strict";a.d(t,{I7:()=>d,jo:()=>l});var r=a(52942),i=a(12482),n=a(12097),o=a(72582),s=a(96541);let l={all:["userProfiles"],detail:e=>[...l.all,"detail",e]};function d(e){let t;return(0,i.I)((t=e??void 0,(0,o.jQ)({queryKey:l.detail(t),queryFn:null!=t?()=>s.Mv.getUserProfile(t):r.hT,staleTime:n.To})))}},92040:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(79613);let i=()=>{let{theme:e}=(0,r.I)();return{container:{backgroundColor:e.colors.background},row:{display:"flex",flexDirection:"row"},column:{display:"flex",flexDirection:"column"},section:{backgroundColor:e.colors.background,paddingHorizontal:20,paddingVertical:32},header:{flex:1,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{color:e.colors.neutral900,...e.typography.titleXSmall},subTitle:{...e.typography.mediumBold,marginBottom:8},headerButton:{borderRadius:e.borderRadius.medium,backgroundColor:e.colors.base50,height:32,paddingHorizontal:12,paddingVertical:6}}}},96541:(e,t,a)=>{"use strict";a.d(t,{Mv:()=>s});var r=a(32),i=a.n(r),n=a(26590),o=a(63873);let s={getUserProfile:async function(e){let t={url:`/api/v2/user/${e}/profile`,method:"get"};return(await i()(await (0,o.qp)(t))).data.data},updateUserContactInfo:async function(e){let t={url:`/api/v2/user/${e.userId}/profile`,method:"put",data:{phone_number:e.phoneNumber,email:e.email}};return(await i()(await (0,o.qp)(t))).data.data},updateUserPassword:async function(e){let t={url:"/api/v2/update-password",method:"put",data:{password:e.password}};await i()(await (0,o.qp)(t))},updateUserProfileInfo:async function(e){let t={url:`/api/v2/user/${e.userId}/profile`,method:"put",data:{phone_number:e.phoneNumber,email:e.email,contactProfile:{first_name:e.firstName,last_name:e.lastName,...e}}};return(await i()(await (0,o.qp)(t))).data.data},updateUserProfilePic:async function(e){let t=(0,n.$W)(e,"profile_pic");t.append("_method","PUT");let a={url:`/api/v2/user/${e.userId}/profile`,method:"post",headers:{"Content-Type":"multipart/form-data"},data:t};return(await i()(await (0,o.qp)(a))).data.data},removeUserProfilePic:async function(e){let t={url:`/api/v2/user/${e}/profile/profile-pic`,method:"delete"};await i()(await (0,o.qp)(t))},updateUserProfileBioInfo:async function(e){let t={url:`/api/v2/user/${e.userId}/profile`,method:"put",data:{username:e.displayName,age_range:e?.age_range,about_me:e?.about_me,email:e?.email}};return(await i()(await (0,o.qp)(t))).data.data}}}}]);

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.