PageSourceSearch

https://www.mytutor.co.uk/_next/static/chunks/pages/tutors/secure/…/dbs/birth-location-c1af9738308d000d.js

js mytutor.co.uk collected 2026-10-02 03:17:29 UTC 7,006 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ce4e1a0f-5788-4b1a-b53e-01f714c34d24",e._sentryDebugIdIdentifier="sentry-dbid-ce4e1a0f-5788-4b1a-b53e-01f714c34d24")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4235],{17425:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tutors/secure/onboarding/dbs/birth-location",function(){return n(35877)}])},21040:(e,t,n)=>{"use strict";var r=n(29563);t.A=void 0;var i=r(n(73231)),a=n(37876);t.A=(0,i.default)((0,a.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},21289:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(18153),i=n(21040),a=n(70496),o=n(48230),s=n.n(o),d=n(38470);let l=e=>{let{onContinue:t,onBack:n,backUrl:o,nextUrl:l,continueButtonText:u="Continue",continueButtonTextSmall:h="Continue"}=e,c=!l&&!t;return(0,r.FD)(d.F,{children:[(n||o)&&(0,r.Y)(a.A,{variant:"text",LinkComponent:s(),href:o,onClick:n,startIcon:(0,r.Y)(i.A,{}),"data-cy":"dbs-page-shell-back-button",children:"Back"}),(0,r.Y)(a.A,{disabled:c,onClick:t,LinkComponent:s(),href:l,"data-cy":"dbs-page-shell-continue-button",sx:{display:{xs:"none",sm:"inline-block",lineHeight:"inherit"}},children:u}),(0,r.Y)(a.A,{disabled:c,onClick:t,LinkComponent:s(),href:l,"data-cy":"dbs-page-shell-continue-small-button",sx:{display:{sm:"none",lineHeight:"inherit"}},children:h})]})}},35877:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>v,default:()=>y});var r=n(18153),i=n(10871),a=n(17527),o=n(36960),s=n(5067),d=n(89099),l=n(88992),u=n(27092),h=n(23273),c=n(19639),p=n(39242),b=n(72311),m=n(81516),x=n(50438),g=n(52562),f=n(77923),A=n(21289),v=!0;function y(e){let{countries:t,willoProps:n}=e;return(0,r.FD)(r.FK,{children:[(0,r.Y)(o.a,{backgroundShapes:[a.R.HEXAGON_RED,a.R.TRIANGLE]}),(0,r.Y)(m.A,{maxWidth:"sm",sx:{marginTop:{xs:"88px",md:"max(88px, 18VH)"},mb:3},children:(0,r.Y)(i.A,{justifyContent:"space-around",children:(0,r.Y)(s.A,{variant:"h2",children:"Where were you born?"})})}),(0,r.Y)(C,{countries:t,willoProps:n})]})}let C=e=>{let{countries:t,willoProps:n}=e,a=(0,d.useRouter)(),{updateDbsData:o,dbsData:s}=(0,f.Mh)(),{control:v,handleSubmit:y,formState:{isValid:C}}=(0,l.mN)({defaultValues:{birthTown:null==s?void 0:s.birthTown,birthCountry:null==s?void 0:s.birthCountry},mode:"onChange"}),k=(e,t)=>{o(e,t)},w=C?y(()=>{let e=(null==n?void 0:n.idCheckOnWillo)?"".concat(g.L1.APPLICATION_CURRENT_ADDRESS):"".concat(g.L1.APPLICATION_CHILD_BARRED_DECLARATION);a.push(e)}):void 0;return(0,r.FD)(r.FK,{children:[(0,r.Y)(m.A,{maxWidth:"sm",children:(0,r.FD)(i.A,{spacing:3,sx:{"& .MuiTextField-root":{maxWidth:"100%",width:"100%"}},children:[(0,r.Y)(l.xI,{name:"birthTown",control:v,rules:{required:"Town of Birth is required",pattern:{value:/^[a-zA-Z0-9-'\s]{1,50}$/,message:"Town of Birth must have a maximum of 50 characters and contain only letters, numbers, spaces, dashes and apostrophes"}},render:e=>{let{field:t,fieldState:{error:n}}=e;return(0,r.Y)(b.A,{"data-cy":"birthTown",helperText:n?n.message:null,error:!!n,onChange:e=>{t.onChange(e.target.value),k("birthTown",e.target.value)},value:t.value,label:"Town you were born in (as on your passport)",sx:{width:"100%! important"}})}}),(0,r.Y)(l.xI,{name:"birthCountry",rules:{required:"Country of Birth is required"},control:v,render:e=>{let{field:n,fieldState:{error:i}}=e;return(0,r.FD)(u.A,{fullWidth:!0,disabled:!t,children:[(0,r.Y)(h.A,{id:"dbs-birth-country-select-label",children:"Country you were born in"}),(0,r.Y)(p.A,{"data-cy":"birthCountry",error:!!i,value:n.value,onChange:e=>{n.onChange(e.target.value),k("birthCountry",e.target.value)},sx:{".MuiSelect-select":{width:"100%!important",backgroundColor:"white !important"}},children:t&&Object.keys(t).map(e=>(0,r.Y)(c.A,{value:t[e],children:t[e]},e))}),!!(null==i?void 0:i.message)&&(0,r.Y)(x.A,{children:i.message})]})}})]})}),(0,r.Y)(A._,{backUrl:"".concat(g.L1.MOTHER_MAIDEN_NAME),onContinue:w})]})}},38470:(e,t,n)=>{"use strict";n.d(t,{F:()=>d});var r=n(18153),i=n(78581),a=n(73020),o=n(81516),s=n(9129);let d=e=>{let{children:t}=e;return(0,r.Y)(i.A,{position:"fixed",color:"default",elevation:0,sx:{top:"auto",bottom:0,backgroundColor:"secondary.lighter",height:{xs:"80px",md:"72px"}},children:(0,r.Y)(a.A,{sx:{height:{xs:"80px",md:"72px"},padding:"0!important"},children:(0,r.Y)(o.A,{maxWidth:"lg",sx:{padding:"0!important"},children:(0,r.Y)(s.Ay,{container:!0,justifyContent:"space-around",alignItems:"center",sx:{padding:{xs:"0",md:"0 34px"}},children:t})})})})}},81516:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});
1var r=n(40670),i=n(44501),a=n(14232),o=n(69241),s=n(45879),d=n(4697),l=n(93725),u=n(2407),h=n(14379),c=n(14248),p=n(37876);let b=["className","component","disableGutters","fixed","maxWidth","classes"],m=(0,c.A)(),x=(0,h.A)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${(0,l.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),g=e=>(0,u.A)({props:e,name:"MuiContainer",defaultTheme:m});var f=n(825),A=n(75855),v=n(43714);let y=function(e={}){let{createStyledComponent:t=x,useThemeProps:n=g,componentName:u="MuiContainer"}=e,h=t(({theme:e,ownerState:t})=>(0,i.A)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:`${r}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>(0,i.A)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}));return a.forwardRef(function(e,t){let a=n(e),{className:c,component:m="div",disableGutters:x=!1,fixed:g=!1,maxWidth:f="lg"}=a,A=(0,r.A)(a,b),v=(0,i.A)({},a,{component:m,disableGutters:x,fixed:g,maxWidth:f}),y=((e,t)=>{let{classes:n,fixed:r,disableGutters:i,maxWidth:a}=e,o={root:["root",a&&`maxWidth${(0,l.A)(String(a))}`,r&&"fixed",i&&"disableGutters"]};return(0,d.A)(o,e=>(0,s.Ay)(t,e),n)})(v,u);return(0,p.jsx)(h,(0,i.A)({as:m,ownerState:v,className:(0,o.A)(y.root,c),ref:t},A))})}({createStyledComponent:(0,A.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,f.A)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,v.b)({props:e,name:"MuiContainer"})})}},e=>{e.O(0,[871,8992,636,6593,8792],()=>e(e.s=17425)),_N_E=e.O()}]);
2//# sourceMappingURL=birth-location-c1af9738308d000d.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.