PageSourceSearch

https://bikebook.co.uk/_next/static/chunks/pages/partner-portal/[partner]-ec2a802923e025d9.js

js bikebook.co.uk collected 2026-09-24 09:51:25 UTC 12,924 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2104b16f-35ab-4a59-9be3-7e43656b393f",e._sentryDebugIdIdentifier="sentry-dbid-2104b16f-35ab-4a59-9be3-7e43656b393f")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1700],{9171:(e,n,t)=>{"use strict";t.d(n,{IG:()=>l,KZ:()=>s,kB:()=>a,tm:()=>o}),t(68093);var r=t(1950),i=t.n(r);function s(e){return i()(e).format((Number.isInteger(e),"\xa30,0.00"))}function l(e){return i()(e/100).format("0.0%")}function a(e,n){return i()(e).format(n)}function o(e){return i()(e).format("0.0 b")}},15086:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var r=t(6029),i=t(35197),s=t(6688);t(55729);let l=e=>{let{title:n,icon:t,actions:l,breakAtPx:a=960,sx:o={}}=e;return(0,r.jsxs)(i.A,{sx:{width:"100%",minHeight:"48px",borderBottom:"1px solid rgb(232, 234, 237)",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",columnGap:1,rowGap:.5,py:"6px",background:"white",position:"sticky",top:0,zIndex:1e3,px:{xs:2,sm:3},...null!=a&&{["@media (max-width: ".concat(a,"px)")]:{}},...o},children:["string"==typeof n?(0,r.jsxs)(s.A,{variant:"h6",sx:{fontWeight:"700",display:"flex",justifyContent:"flex-start",gap:1,alignItems:"center"},children:[t&&t,n]}):(0,r.jsxs)(i.A,{sx:{display:"flex",alignSelf:"stretch",alignItems:"center",gap:1},children:[t&&t,n]}),(0,r.jsx)(i.A,{sx:{py:"2px",display:"flex",gap:1,flexWrap:"wrap","& button":{textWrap:"nowrap"},["@media (max-width: ".concat(a,"px)")]:{}},children:l&&l})]})}},16136:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>z});var r=t(6029),i=t(75155),s=t(55729),l=t(81278),a=t(69672),o=t(89783),c=t(46232),d=t(6688),h=t(72091),u=t(37031),m=t(63860),x=t(24291),p=t(62739),b=t(69276),j=t(43613),f=t(45401),A=t(16558),y=t(71486),v=t(15086),g=t(85288),_=t(65220),w=t(67035),S=t(80803),k=t(9171);let I=[7,14,21,30],C=e=>"number"==typeof e?e:0;function z(){var e;let n,t,f,z,N,O,E,W,P,T,D,R,K,X,q,F,G,H,L,M,U,Z,Q,V,Y,$,ee,en,et,er,ei,es,el,ea,eo,ec,ed,eh,eu,em,ex,ep,eb,ej,ef,eA,ey,ev,eg,e_,ew,eS,ek=(0,i.c)(110),eI=(0,l.useRouter)(),{isLoaded:eC,isSignedIn:ez}=(0,a.d)(),{partner:eJ}=eI.query;ek[0]!==eJ?(t=null!=(n=(0,g.Kn)(eJ))?n:(0,w.A)(null!=eJ?eJ:"Partner"),f=(0,g.tQ)(n),ek[0]=eJ,ek[1]=n,ek[2]=t,ek[3]=f):(n=ek[1],t=ek[2],f=ek[3]);let eB=f,eN=eJ?g.kW[(0,w.A)(eJ)]:void 0,eO=!!eJ&&!eN,[eE,eW]=(0,s.useState)(null),[eP,eT]=(0,s.useState)(null),[eD,eR]=(0,s.useState)(null),[eK,eX]=(0,s.useState)(null),[eq,eF]=(0,s.use
1State)(null),[eG,eH]=(0,s.useState)(null),[eL,eM]=(0,s.useState)(null);ek[4]===Symbol.for("react.memo_cache_sentinel")?(z={},ek[4]=z):z=ek[4];let[eU,eZ]=(0,s.useState)(z),[eQ,eV]=(0,s.useState)(7);ek[5]!==eC||ek[6]!==ez||ek[7]!==n||ek[8]!==eI.isReady?(N=()=>{eI.isReady&&eC&&ez&&(0,_.X3)(n?{type:n}:void 0).then(e=>{var n,t,r,i;let s=null!=(n=null==e?void 0:e.data)?n:{};eW(C(s.totalJobs)),eT(C(s.totalBusinesses)),eR(C(s.jobsLast7Days)),eX(C(s.jobsThisMonth)),eF(C(s.openJobs)),eH(C(null!=(t=s.supportBookedJobs)?t:s.internalBookedJobs)),eM(C(null!=(r=s.supportOpenInvoiceOutstandingAmount)?r:s.internalOpenInvoiceOutstandingAmount)),eZ(null==(i=s.agedJobs)||"object"!=typeof i?{}:Object.entries(i).reduce((e,n)=>{let[t,r]=n,i=Number(t);return I.includes(i)&&"number"==typeof r&&(e[i]=r),e},{}))}).catch(()=>{eW(0),eT(0),eR(0),eX(0),eF(0),eH(0),eM(0),eZ({})})},O=[eC,ez,n,eI.isReady],ek[5]=eC,ek[6]=ez,ek[7]=n,ek[8]=eI.isReady,ek[9]=N,ek[10]=O):(N=ek[9],O=ek[10]),(0,s.useEffect)(N,O),ek[11]!==eQ||ek[12]!==eJ||ek[13]!==eI?(E=e=>{eI.push({pathname:"/partner-portal/".concat(eJ,"/jobs"),query:{widgetOnly:"false",...e?{view:e}:{},..."aged"===e?{agedDays:eQ}:{}}})},ek[11]=eQ,ek[12]=eJ,ek[13]=eI,ek[14]=E):E=ek[14];let eY=E,e$="patterned-background";(null==eJ?void 0:eJ.toLowerCase())==="ribble"&&(e$="patterned-background-ribble");let e0="Partner Portal | ".concat((0,w.A)(null!=eJ?eJ:""));ek[15]!==e0?(W=e0.trim(),ek[15]=e0,ek[16]=W):W=ek[16];let e1=e$,e2="".concat((0,w.A)(eJ)," Home");ek[17]===Symbol.for("react.memo_cache_sentinel")?(P=(0,r.jsx)(A.t,{size:20}),ek[17]=P):P=ek[17],ek[18]===Symbol.for("react.memo_cache_sentinel")?(T=(0,r.jsx)(y.J,{size:16}),ek[18]=T):T=ek[18],ek[19]!==eJ||ek[20]!==eI?(D=(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(c.A,{size:"small",variant:"contained",color:"tertiary",startIcon:T,onClick:()=>{eI.push("/partner-portal/".concat(eJ,"/book-now"))},children:"Make Booking"})}),ek[19]=eJ,ek[20]=eI,ek[21]=D):D=ek[21],ek[22]!==D||ek[23]!==e2?(R=(0,r.jsx)(v.A,{title:e2,icon:P,actions:D}),ek[22]=D,ek[23]=e2,ek[24]=R):R=ek[24],ek[25]===Symbol.for("react.memo_cache_sentinel")?(K={py:3,pb:2},ek[25]=K):K=ek[25],ek[26]===Symbol.for("react.memo_cache_sentinel")?(X=(0,r.jsx)(d.A,{variant:"h4",sx:{mb:1},children:"Dashboard"}),ek[26]=X):X=ek[26],ek[27]!==eJ?(q=(0,w.A)(eJ),ek[27]=eJ,ek[28]=q):q=ek[28],ek[29]!==q?(F=(0,r.jsxs)(h.A,{sx:K,children:[X,(0,r.jsxs)(d.A,{variant:"body2",children:["Welcome to the partner portal for ",q,". You can view your jobs, businesses, and more."]})]}),ek[29]=q,ek[30]=F):F=ek[30],ek[31]!==eN?(G=!!eN&&(0,r.jsx)("img",{src:eN.logoUrl,height:eN.height,width:eN.width,style:{marginLeft:8,objectFit:"cover"},alt:"".concat(eN.displayName," logo")}),ek[31]=eN,ek[32]=G):G=ek[32],ek[33]!==F||ek[34]!==G?(H=(0,r.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[F,G]}),ek[33]=F,ek[34]=G,ek[35]=H):H=ek[35],ek[36]!==eO||ek[37]!==eJ?(L=eO&&(0,r.jsxs)(S.A,{alertKey:"unknown-partner-".concat(eJ),severity:"warning",sx:{mb:2},children:['Unknown partner "',eJ,'". Showing generic view.']}),ek[36]=eO,ek[37]=eJ,ek[38]=L):L=ek[38],ek[39]===Symbol.for("react.memo_cache_sentinel")?(M={mt:0},ek[39]=M):M=ek[39],ek[40]===Symbol.for("react.memo_cache_sentinel")?(U={xs:12,md:6},ek[40]=U):U=ek[40],ek[41]!==eY?(Z=()=>eY(),ek[41]=eY,ek[42]=Z):Z=ek[42],ek[43]===Symbol.for("react.memo_cache_sentinel")?(Q={cursor:"pointer",height:"100%"},ek[43]=Q):Q=ek[43],ek[44]===Symbol.for("react.memo_cache_sentinel")?(V=(0,r.jsx)(d.A,{variant:"overline",children:"Total Jobs"}),ek[44]=V):V=ek[44];let e3=null!=eE?eE:"-";ek[45]!==e3?(Y=(0,r.jsxs)(u.A,{children:[V,(0,r.jsx)(d.A,{variant:"h4",children:e3})]}),ek[45]=e3,ek[46]=Y):Y=ek[46],ek[47]!==Z||ek[48]!==Y?($=(0,r.jsx)(m.A,{size:U,children:(0,r.jsx)(x.A,{variant:"outlined",onClick:Z,sx:Q,children:Y})}),ek[47]=Z,ek[48]=Y,ek[49]=$):$=ek[49],ek[50]!==eD||ek[51]!==t||ek[52]!==eB||ek[53]!==eL?(ee=eB?(0,r.jsx)(m.A,{size:{xs:12,md:6},children:(0,r.jsx)(x.A,{variant:"outlined",sx:{height:"100%"},children:(0,r.jsxs)(u.A,{children:[(0,r.jsx)(d.A,{variant:"overline",children:"Open Invoice Value"}),(0,r.jsx)(d.A,{variant:"h4",children:null==eL?"-":"\xa3".concat((0,k.KZ)(eL))}),(0,r.jsxs)(d.A,{variant:"caption",color:"text.secondary",children:[t," support open jobs"]})]})})}):(0,r.jsx)(m.A,{size:{xs:12,md:6},children:(0,r.jsx)(x.A,{variant:"outlined",sx:{height:"100%"},children:(0,r.jsxs)(u.A,{children:[(0,r.jsx)(d.A,{variant:"overline",children:"Jobs in the last 7 days"}),(0,r.jsx)(d.A,{variant:"h4",children:null!=eD?eD:"-"})]})})}),ek[50]=eD,ek[51]=t,ek[52]=eB,ek[53]=eL,ek[54]=ee):ee=ek[54],ek[55]===Symbol.for("react.memo_cache_sentinel")?(en={xs:12,md:6},ek[55]=en):en=ek[55],ek[56]===Symbol.for("react.memo_cache_sentinel")?(et={height:"100%"},ek[56]=et):et=ek[56],ek[57]===Symbol.for("react.memo_cache_sentinel")?(er=(0,r.jsx)(d.A,{variant:"overline",children:"Total Connected Businesses"}),ek[57]=er):er=ek[57];let e6=null!=eP?eP:"-";ek[58]!==e6?(ei=(0,r.jsx)(m.A,{size:en,children:(0,r.jsx)(x.A,{variant:"outlined",sx:et,children:(0,r.jsxs)(u.A,{children:[er,(0,r.jsx)(d.A,{variant:"h4",children:e6})]})})}),ek[58]=e6,ek[59]=ei):ei=ek[59],ek[60]===Symbol.for("react.memo_cache_sentinel")?(es={xs:12,md:6},ek[60]=es):es=ek[60],ek[61]!==eY?(el=()=>eY("open"),ek[61]=eY,ek[62]=el):el=ek[62],ek[63]===Symbol.for("react.memo_cache_sentinel")?(ea={curs
1or:"pointer",height:"100%"},ek[63]=ea):ea=ek[63],ek[64]===Symbol.for("react.memo_cache_sentinel")?(eo=(0,r.jsx)(d.A,{variant:"overline",children:"Open Jobs"}),ek[64]=eo):eo=ek[64];let e5=null!=eq?eq:"-";ek[65]!==e5?(ec=(0,r.jsxs)(u.A,{children:[eo,(0,r.jsx)(d.A,{variant:"h4",children:e5})]}),ek[65]=e5,ek[66]=ec):ec=ek[66],ek[67]!==el||ek[68]!==ec?(ed=(0,r.jsx)(m.A,{size:es,children:(0,r.jsx)(x.A,{variant:"outlined",onClick:el,sx:ea,children:ec})}),ek[67]=el,ek[68]=ec,ek[69]=ed):ed=ek[69],ek[70]!==eK||ek[71]!==eY||ek[72]!==t||ek[73]!==eG||ek[74]!==eB?(eh=eB?(0,r.jsx)(m.A,{size:{xs:12,md:6},children:(0,r.jsx)(x.A,{variant:"outlined",onClick:()=>eY("internal"),sx:{cursor:"pointer",height:"100%"},children:(0,r.jsxs)(u.A,{children:[(0,r.jsxs)(d.A,{variant:"overline",children:[t," Support Bookings"]}),(0,r.jsx)(d.A,{variant:"h4",children:null!=eG?eG:"-"})]})})}):(0,r.jsx)(m.A,{size:{xs:12,md:6},children:(0,r.jsx)(x.A,{variant:"outlined",sx:{height:"100%"},children:(0,r.jsxs)(u.A,{children:[(0,r.jsx)(d.A,{variant:"overline",children:"Jobs this month"}),(0,r.jsx)(d.A,{variant:"h4",children:null!=eK?eK:"-"})]})})}),ek[70]=eK,ek[71]=eY,ek[72]=t,ek[73]=eG,ek[74]=eB,ek[75]=eh):eh=ek[75],ek[76]===Symbol.for("react.memo_cache_sentinel")?(eu={xs:12,md:6},ek[76]=eu):eu=ek[76],ek[77]!==eY?(em=()=>eY("aged"),ek[77]=eY,ek[78]=em):em=ek[78],ek[79]===Symbol.for("react.memo_cache_sentinel")?(ex={cursor:"pointer",height:"100%"},ek[79]=ex):ex=ek[79],ek[80]===Symbol.for("react.memo_cache_sentinel")?(ep=(0,r.jsx)(d.A,{variant:"overline",children:"Aged Jobs"}),ek[80]=ep):ep=ek[80],ek[81]===Symbol.for("react.memo_cache_sentinel")?(eb={minWidth:100},ek[81]=eb):eb=ek[81],ek[82]===Symbol.for("react.memo_cache_sentinel")?(ej=e=>{let n=Number(e.target.value);I.includes(n)&&eV(n)},ef=I.map(J),ek[82]=ej,ek[83]=ef):(ej=ek[82],ef=ek[83]),ek[84]!==eQ?(eA=(0,r.jsxs)(h.A,{direction:"row",spacing:1,alignItems:"center",justifyContent:"space-between",children:[ep,(0,r.jsx)(p.A,{size:"small",onClick:B,sx:eb,children:(0,r.jsx)(b.A,{value:eQ,onChange:ej,children:ef})})]}),ek[84]=eQ,ek[85]=eA):eA=ek[85];let e4=null!=(e=null==eU?void 0:eU[eQ])?e:"-";return ek[86]!==e4?(ey=(0,r.jsx)(d.A,{variant:"h4",children:e4}),ek[86]=e4,ek[87]=ey):ey=ek[87],ek[88]!==eA||ek[89]!==ey?(ev=(0,r.jsxs)(u.A,{children:[eA,ey]}),ek[88]=eA,ek[89]=ey,ek[90]=ev):ev=ek[90],ek[91]!==em||ek[92]!==ev?(eg=(0,r.jsx)(m.A,{size:eu,children:(0,r.jsx)(x.A,{variant:"outlined",onClick:em,sx:ex,children:ev})}),ek[91]=em,ek[92]=ev,ek[93]=eg):eg=ek[93],ek[94]!==$||ek[95]!==ee||ek[96]!==ei||ek[97]!==ed||ek[98]!==eh||ek[99]!==eg?(e_=(0,r.jsxs)(m.A,{container:!0,spacing:2,sx:M,children:[$,ee,ei,ed,eh,eg]}),ek[94]=$,ek[95]=ee,ek[96]=ei,ek[97]=ed,ek[98]=eh,ek[99]=eg,ek[100]=e_):e_=ek[100],ek[101]!==H||ek[102]!==L||ek[103]!==e_?(ew=(0,r.jsxs)(j.A,{maxWidth:"lg",children:[H,L,e_]}),ek[101]=H,ek[102]=L,ek[103]=e_,ek[104]=ew):ew=ek[104],ek[105]!==e$||ek[106]!==R||ek[107]!==ew||ek[108]!==W?(eS=(0,r.jsxs)(o.A,{title:W,className:e1,children:[R,ew]}),ek[105]=e$,ek[106]=R,ek[107]=ew,ek[108]=W,ek[109]=eS):eS=ek[109],eS}function J(e){return(0,r.jsxs)(f.A,{value:e,children:[e,"+ days"]},e)}function B(e){return e.stopPropagation()}},33806:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/partner-portal/[partner]",function(){return t(16136)}])},80803:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var r=t(6029),i=t(75155),s=t(95344),l=t(22350),a=t(29040);t(55729);var o=t(32195);let c=e=>{let n,t,c,d,h,u,m,x,p,b,j,f,A,y,v,g,_,w=(0,i.c)(35);w[0]!==e?({alertKey:c,severity:m,children:d,variant:b,sx:x,preventClose:u,additionalActions:t,wrapper:n,wrapperProps:p,...h}=e,w[0]=e,w[1]=n,w[2]=t,w[3]=c,w[4]=d,w[5]=h,w[6]=u,w[7]=m,w[8]=x,w[9]=p,w[10]=b):(n=w[1],t=w[2],c=w[3],d=w[4],h=w[5],u=w[6],m=w[7],x=w[8],p=w[9],b=w[10]),w[11]!==x?(j=void 0===x?{}:x,w[11]=x,w[12]=j):j=w[12];let S=j;w[13]!==p?(f=void 0===p?{}:p,w[13]=p,w[14]=f):f=w[14];let k=f,[I,C]=(0,o.A)("ha_"+c,!0);if(void 0===c)throw Error("key is required for HidableAlert");if(!I)return null;let z=t&&t;w[15]!==u||w[16]!==C?(A=!u&&(0,r.jsx)(s.A,{color:"primary",size:"small",onClick:()=>{C(!1)},children:(0,r.jsx)(a.X,{})}),w[15]=u,w[16]=C,w[17]=A):A=w[17],w[18]!==z||w[19]!==A?(y=(0,r.jsxs)(r.Fragment,{children:[z,A]}
1),w[18]=z,w[19]=A,w[20]=y):y=w[20],w[21]===Symbol.for("react.memo_cache_sentinel")?(v={whiteSpace:"nowrap"},w[21]=v):v=w[21],w[22]!==S?(g={"& .MuiButtonBase-root":v,...S},w[22]=S,w[23]=g):g=w[23],w[24]!==d||w[25]!==h||w[26]!==m||w[27]!==y||w[28]!==g||w[29]!==b?(_=(0,r.jsx)(l.A,{severity:m,variant:b,action:y,sx:g,...h,children:d}),w[24]=d,w[25]=h,w[26]=m,w[27]=y,w[28]=g,w[29]=b,w[30]=_):_=w[30];let J=_;if(n){let e;return w[31]!==n||w[32]!==J||w[33]!==k?(e=(0,r.jsx)(n,{...k,children:J}),w[31]=n,w[32]=J,w[33]=k,w[34]=e):e=w[34],e}return J}}},e=>{e.O(0,[1474,4033,6593,636,8792],()=>e(e.s=33806)),_N_E=e.O()}]);
2//# sourceMappingURL=[partner]-ec2a802923e025d9.js.map

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.