PageSourceSearch

https://www.ordnancesurvey.co.uk/_siL0TA_ae4582a6-3f28-45f7-b404-1…/guidePageTemplate.232434d38c2ca7480372.mjs

js ordnancesurvey.co.uk collected 2026-09-24 08:38:29 UTC 15,981 bytes, 172 lines download raw bytes

1"use strict";(()=>{(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[63662],{69807(R,l,t){t.d(l,{A:()=>C});var e=t(66220),d=t(98975),E=t(48065),y=t(46746);function C({title:r,subtitle:h,subtitleWeight:v,headingColour:w,headingPrimaryColour:m,subtitleColour:c,subtitlePrimaryColour:k,anchorId:u}){return e.createElement("div",null,e.createElement(d.default,{id:u||(0,E.d)(r),level:1,colour:w,primaryColour:m},r),h!=null&&e.createElement(y.A,{subtitleWeight:v,colour:c,primaryColour:k},h))}},8429(R,l,t){var e=t(59207);const d=e.A;t.d(l,["A",0,d])},59207(R,l,t){t.d(l,{A:()=>a});var e=t(66220),d=t(10677),E=t.n(d),y=t(43861),C=t(14522),r=t(98975),h=t(89838),v=t(85849),w=t(21512),m=t(56133),c=t(20379),k=t(46746),u=t(36840),p=t(49078);const M=100,N=({type:o,className:L,content:n,imageNext:f,icon:A,link:s,title:x,headingLevel:D=3,date:Q,cta:P,hasVideoIcon:j,external:ne})=>{if(typeof s?.uri!="string")return console.info("LinkCard missing uri ",x),null;const ae=()=>{s?.uri&&s?.uri.indexOf("#")>-1&&window.scrollTo(0,0)};let S;return f?.imageNextProps.src?S="image":A&&(S="icon"),e.createElement($,{className:E()(L,"os-linkCard","card"),$mediaToRender:S},S&&e.createElement(e.Fragment,null,e.createElement("div",{className:"card-image","aria-hidden":!0},e.createElement(T,{className:"image is-4by3",$mediaToRender:S},S==="image"&&f&&e.createElement(v.F1,{aspectRatio:"16/9"},e.createElement(m.F,{...f.imageNextProps,loader:(0,w.c)(f),sizes:"(min-width: 1408px) 430px, (min-width: 1216px) 366px, (min-width: 1024px) 302px, 100vw"})),S==="icon"&&A&&e.createElement(O,{...A,width:M,height:M})),j&&e.createElement(F,null,e.createElement(h.A,{name:"play-circle",size:"medium"})))),e.createElement(U,{$mediaToRender:S},e.createElement(W,{uri:s.uri,onClick:ae,openInNewWindow:ne},e.createElement(r.default,{level:D},x)),n&&e.createElement(B,null,n),(Q||o)&&e.createElement("div",null,Q&&e.createElement(K,{dateTime:Q.dateTime},Q.label),o&&e.createElement(C.A,{tags:[{id:"type",label:o.toTitleCase()}]})),P&&e.createElement(z,{text:P.label,uri:s.uri,level:P.level,"aria-hidden":!0,tabIndex:-1,fullWidth:!0})))},O=(0,u.I4)(h.A)`
2  margin: var(--osds-spacing-2xl);
3`,$=u.I4.div`
4  /* Ensure icon link cards take up full column width. */
5  position: relative;
6  display: flex;
7  flex-direction: column;
8  width: 100%;
9  border: var(--osweb-border-width-2xs) var(--osweb-border-style)
10    var(--osds-colour-neutral-1-30);
11  border-bottom: var(--osweb-border-width-s) var(--osweb-border-style)
12    var(--osds-colour-neutral-1-30);
13  background: white;
14  &:hover,
15  &:focus {
16    border-bottom: var(--osweb-border-width-s) var(--osweb-border-style)
17      var(--osds-colour-link-default);
18  }
19  &:focus-within {
20    // Apply focus style to linkcard
21    ${p.u5}
22    border-bottom: var(--osweb-border-width-s) var(--osweb-border-style)
23      var(--osds-colour-link-default);
24  }
25
26  // Ensure images smaller than their container display width are stretched to fit.
27  > .card-image > figure > img {
28    width: 100%;
29    height: auto;
30  }
31`,W=(0,u.I4)(c.A)`
32  &:after {
33    content: '';
34    position: absolute;
35    top: 0;
36    right: 0;
37    bottom: 0;
38    left: 0;
39    z-index: 10;
40  }
41`,T=u.I4.figure`
42  ${o=>o.$mediaToRender==="icon"?`
43  display: flex;
44  align-items: center;
45  justify-content: center;
46  `:""}
47`,B=(0,u.I4)(k.A)`
48  margin-bottom: 0;
49  font-weight: normal;
50  font-size: 18px;
51`,U=u.I4.div`
52  flex-grow: 1;
53  display: flex;
54  flex-direction: column;
55  row-gap: 24px;
56  padding: 24px;
57  padding-right: 60px;
58  ${o=>o.$mediaToRender==="icon"?"padding-top: 0;":""}
59  color: var(--osds-colour-neutral-1-90);
60`,K=u.I4.time`
61  margin-block-start: auto;
62`,z=(0,u.I4)(y.A)`
63  margin-top: auto;
64  z-index: 10;
65  cursor: pointer;
66`,F=u.I4.div`
67  position: absolute;
68  bottom: 0;
69  margin: 0;
70  display: flex;
71  align-items: center;
72  padding: var(--osds-spacing-m);
73  color: var(--osds-colour-neutral-1-80);
74  background-color: var(--osds-colour-neutral-1);
75  svg {
76    color: var(--osds-colour-neutral-1-80);
77  }
78`,J=N;var I=t(74920),V=t(85538),G=t(74506);const X=({imageNext:o,title:L,headingLevel:n=3,link:f,content:A,cta:s,hasVideoIcon:x,className:D})=>e.createElement(Y,{className:D},o&&e.createElement(Z,null,e.createElement(v.F1,{aspectRatio:o.aspectRatio},e.createElement(m.F,{...o.imageNextProps,loader:(0,w.c)(o),sizes:"(min-width: 1408px) 432px, (min-width: 1216px) 368px, (min-width: 1024px) 304px, 100vw"})),x&&e.createElement(_,null,e.createElement(G.default,{...V.O1}))),e.createElement(q,null,e.createElement(ee,{level:n},e.createElement(oe,{uri:f?.uri}
78,L)),A&&e.createElement("p",null,A),s&&f&&e.createElement(te,{text:s.label,uri:f.uri,level:s.level,"aria-hidden":!0,tabIndex:-1,fullWidth:!0}))),Y=I.styled.article.withConfig({displayName:"linkCardCampaigncomponent__WrapperStyled",componentId:"sc-1kfqga9-0"})(["display:flex;flex-direction:column;position:relative;width:100%;box-sizing:border-box;overflow:hidden;background:white;transition:transform 0.15s ease-in-out,box-shadow 0.15s ease-in-out;&:hover,&:focus,&:focus-within{","}&:focus-within{","}"],p.u5,p.u5),Z=I.styled.div.withConfig({displayName:"linkCardCampaigncomponent__ImageContainerStyled",componentId:"sc-1kfqga9-1"})(["position:relative;"]),_=I.styled.div.withConfig({displayName:"linkCardCampaigncomponent__PlayStyled",componentId:"sc-1kfqga9-2"})(["position:absolute;bottom:0;margin:0;display:flex;align-items:center;padding:var(--osds-spacing-m);color:var(--osds-colour-neutral-1-80);background-color:var(--osds-colour-neutral-1);svg{color:var(--osds-colour-neutral-1-80);}"]),q=I.styled.div.withConfig({displayName:"linkCardCampaigncomponent__ContentContainerStyled",componentId:"sc-1kfqga9-3"})(["display:flex;flex-direction:column;row-gap:var(--osds-spacing-2xl);padding:var(--osweb-card-padding);flex-grow:1;"]),ee=(0,I.styled)(r.default).withConfig({displayName:"linkCardCampaigncomponent__HeadingStyled",componentId:"sc-1kfqga9-4"})(["&:not(:last-child){margin-bottom:0;}"]),oe=(0,I.styled)(c.A).withConfig({displayName:"linkCardCampaigncomponent__LinkStyled",componentId:"sc-1kfqga9-5"})(["color:var(--osds-colour-neutral-1-90);&:hover,&:focus,&:visited{color:var(--osds-colour-neutral-1-90);}&:focus-within{outline:none !important;box-shadow:none !important;}&::after{content:'';top:0;right:0;bottom:0;left:0;position:absolute;}"]),te=(0,I.styled)(y.A).withConfig({displayName:"linkCardCampaigncomponent__LinkButtonStyled",componentId:"sc-1kfqga9-6"})(["margin-top:auto;z-index:0;cursor:pointer;"]),g=X,a=o=>
78o?.layout==="campaign"?e.createElement(g,{...o}):e.createElement(J,{...o})},65580(R,l,t){var e=t(66220),d=t(74920),E=t(98975),y=t(16640),C=t(8429),r=t(55998),h=t(46746),v=t(85491);const w=({title:u,subtitle:p,description:M,linkCards:N,headingLevel:O=2,className:$,styleLevel:W=O,columns:T=4})=>(O=(0,y.q)(O),!N||typeof N==null?null:e.createElement("div",{className:$},e.createElement(E.default,{styleLevel:W,level:O},u),p&&e.createElement(h.A,null,p),M&&e.createElement(r.A,{dangerousHtmlText:M}),e.createElement(c,{$columns:T,"data-columns":T},N.map(B=>{const U={...B,headingLevel:O+1};return e.createElement(m,{key:B.id},e.createElement(C.A,{...U}))})))),m=d.styled.li.withConfig({displayName:"linkCardBlockcomponent__LinkCardColumn",componentId:"sc-16ufq4j-0"})(["display:flex;"]),c=d.styled.ul.withConfig({displayName:"linkCardBlockcomponent__LinkCardGrid",componentId:"sc-16ufq4j-1"})(["display:grid;gap:var(--osds-spacing-2xl);grid-template-columns:1fr;@media ","{grid-template-columns:repeat(1,1fr);}",""],v.A.tablet,u=>u.theme.main.sidebar?(0,d.css)`
79          @media ${v.A.widescreen} {
80            grid-template-columns: repeat(${u.$columns}, 1fr);
81          }
82        `:(0,d.css)`
83          @media ${v.A.desktop} {
84            grid-template-columns: repeat(${u.$columns}, 1fr);
85          }
86        `),k=w;t.d(l,["A",0,k])},45184(R,l,t){var e=t(66220),d=t(74920);const E=({number:r="1",size:h="small"})=>e.createElement(y,{size:h},r),y=d.styled.span.withConfig({displayName:"qAndACirclecomponent__SpanCircle",componentId:"sc-voyx49-0"})(["background-color:var(--osds-colour-neutral-1-30);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:var(--osds-spacing-3xs);height:",";width:",";text-align:center;padding-bottom:",";"],r=>r.size==="small"?"30px":"50px",r=>r.size==="small"?"30px":"50px",r=>r.size==="large"?"var(--osds-spacing-5xs)":"0"),C=E;t.d(l,["A",0,C])},29841(R,l,t){t.r(l),t.d(l,{default:()=>te});var e=t(66220),d=t(89466),E=t(45985),y=t(69807),C=t(65580),r=t(17890),h=t(10677),v=t.n(h),w=t(77598),m=t(51354),c=t(84117),k=t(98975),u=t(15803),p=t(36840),M=t(12372),N=t(45184);const O=({qAndAs:i,guideMenuTitle:g})=>{const b=i.flatMap(n=>n.subQuestionAndAnswers?[n,...n.subQuestionAndAnswers]:[n]);let a;for(const n of b)n.intersectionObserverEntry?.isIntersecting&&(a==null||a.intersectionObserverEntry&&a.intersectionObserverEntry.intersectionRatio<n.intersectionObserverEntry.intersectionRatio)&&(a=n);if(a==null&&b.length>0){const n=b.filter(f=>f.intersectionObserverEntry&&f.intersectionObserverEntry.boundingClientRect.top<0);a=n.length>0?n[n.length-1]:i[0]}const[o,L]=(0,e.useState)("");return e.createElement("nav",{"aria-label":g||"In this guide",role:"navigation"},e.createElement(U,{qAndAs:b,guideMenuTitle:g}),e.createElement(k.default,{level:2,className:"menu-label",id:"qanda-navigation-heading"},g??"In this guide"),e.createElement(W,{className:"menu-list",role:"list","aria-labelledby":"qanda-navigation-heading"},i.map(n=>{if((0,M.A)(n?.subQuestionAndAnswers)){const f=()=>{L(n.anchor)},A=o===n.anchor;return e.createElement(r.bL,{type:"single",collapsible:!0,asChild:!0,key:n.anchor,value:o,onValueChange:L},e.createElement(r.q7,{value:n.anchor,asChild:!0},e.createElement(B,{role:"listitem"},e.createElement(F,{asChild:!0},e.createElement("div",null,e.createElement(T,{anchor:n.anchor,question:n.question,number:n.number,onClick:f,className:v()({currentlyViewing:n===a||n.subQuestionAndAnswers?.find(s=>s===a)}),"aria-current":n===a||n.subQuestionAndAnswers?.find(s=>s===a)?"true":"false"}),e.createElement(z,{title:A?c.xg.qAndA.close:c.xg.qAndA.open,"aria-expanded":A,"aria-controls":`sub-questions-${n.anchor}`,"data-testid":"accordion-trigger"},e.createElement(u.default,{style:{color:"var(--osweb-icon-colour)"},"aria-hidden":!0})))),e.createElement(r.UC,{id:`sub-questions-${n.anchor}`,role:"region","aria-labelledby":`question-${n.anchor}`},e.createElement(W,{role:"list"},n.subQuestionAndAnswers?.map(s=>e.createElement("li",{key:s.anchor,role:"listitem"}
86,e.createElement(T,{isSubQAndA:!0,anchor:s.anchor,question:s.question,number:s.number,className:v()({currentlyViewing:s===a}),"aria-current":s===a?"true":"false"}))))))))}else return e.createElement(B,{key:n.anchor,role:"listitem"},e.createElement(T,{anchor:n.anchor,question:n.question,number:n.number,className:v()({currentlyViewing:n===a}),"aria-current":n===a?"true":"false","aria-describedby":n.number?`question-${n.number}`:void 0}))})))};function $({className:i,anchor:g,question:b,number:a,onClick:o}){return e.createElement("a",{href:"#"+g,className:i,onClick:o,"data-testid":"qanda-link"},a&&e.createElement(N.A,{number:a,size:"small"}),b)}const W=p.I4.ol`
87  list-style-type: none;
88`,T=(0,p.I4)($)`
89  border-left: var(--osweb-border-width-s) solid transparent;
90  color: var(--osds-colour-link-default);
91  &.currentlyViewing {
92    border-left: var(--osweb-border-width-s) solid
93      var(--osds-colour-link-default);
94  }
95  ${i=>i.isSubQAndA?"padding-left: var(--osds-spacing-3xl) !important;":null}
96`,B=p.I4.li`
97  border-bottom: var(--osweb-border-width-2xs) solid
98    var(--osds-colour-neutral-1-10);
99
100  &:last-child {
101    border-bottom: none;
102  }
103
104  a {
105    color: var(--osds-colour-link-default);
106    padding: var(--osds-spacing-m);
107    display: inline-flex;
108    flex-grow: 1;
109  }
110
111  a:hover {
112    color: var(--osds-colour-link-default);
113    border-left: var(--osweb-border-width-s) solid
114      var(--osds-colour-link-default);
115  }
116  &.active a {
117    border-left: var(--osweb-border-width-s) solid
118      var(--osds-colour-neutral-1-50);
119  }
120`;function U({qAndAs:i}){const b=i.flatMap(o=>o.subQuestionAndAnswers?[o,...o.subQuestionAndAnswers]:[o]).filter(o=>o.question&&o.answer),a=[...new Set(b)];return a.filter(o=>typeof o.question=="string"&&typeof o.answer=="string"),e.createElement(w.mg,{script:[(0,m.b0)({"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.map(o=>({"@type":"Question",name:o.question,acceptedAnswer:{"@type":"Answer",text:o.answer?.replace(/<[^>]+>/g,"")}}))})]})}const K=O,z=(0,p.I4)(r.l9)`
121  appearance: none;
122  border: none;
123  background: none;
124  cursor: pointer;
125  min-width: var(--osds-spacing-7xl);
126  margin-left: var(--osds-spacing-3xs);
127  &[data-state='open'] > svg {
128    transform: rotate(180deg);
129  }
130`,F=(0,p.I4)(r.Y9)`
131  display: flex;
132  justify-content: space-between;
133`,H=K;var J=t(34927),I=t(85491),V=t(61224);const G=({mappedEntry:{pageTitles:i,meta:g,composer:b,breadcrumbs:a,guideMenuTitle:o}})=>{const L=[],[n,f]=(0,e.useState)({});(0,e.useEffect)(()=>{f({})},[b]);const A=(x,D)=>({...x,onIntersectionChange:(Q,P)=>f(j=>({...j,[D]:P})),intersectionObserverEntry:n[D]}),s={composer:b.composer.map((x,D)=>{if(x.fieldName==="questionAnswer"){const Q=x.value,P=A(Q,D);return P.subQuestionAndAnswers&&(P.subQuestionAndAnswers=P.subQuestionAndAnswers.map((j,ne)=>A(j,D+"."+ne))),L.push(P),{id:x.id,fieldName:x.fieldName,value:P}}else return x})};return e.createElement(V.A,{pageType:"guidePageTheme",meta:g,breadcrumbs:a},e.createElement(E.A,null,e.createElement(y.A,{...i})),e.createElement(q,null,e.createElement(H,{qAndAs:L,guideMenuTitle:o})),e.createElement("div",{className:"container"},e.createElement(Z,null,e.createElement("div",null,e.createElement(d.A,{...s,componentHookFn:X})),e.createElement(_,{"data-testid":"qanda"},e.createElement(ee,null,e.createElement(H,{qAndAs:L,guideMenuTitle:o}))))))};function X(i,g){return i.fieldName==="callToAction"&&i.value.featured?e.createElement(Y,{tint:i.value.tint},g):i.fieldName==="questionAnswer"?(g=(0,e.cloneElement)(g,{enableOffset:!0}),g):i.fieldName==="linkCards"?e.createElement(C.A,{columns:3,...i.value}):g}const Y=p.I4.div`
134  position: relative;
135
136  @media ${I.A.desktop} {
137    &&::before {
138      content: '';
139      position: absolute;
140      left: -250%;
141      bottom: 0;
142      height: 100%;
143      width: 500%;
144      background: ${i=>J.u9[i.tint??"White"]};
145    }
146  }
147`,Z=p.I4.div`
148  display: flex;
149  gap: var(--osds-spacing-10xl);
150
151  > :first-child {
152    flex: 3;
153  }
154  > :last-child {
155    flex: 1;
156  }
157`,_=p.I4.aside`
158  // Don't display the aside on mobiles
159  display: none;
160
161  @media ${I.A.desktop} {
162    display: block;
163  }
164`,q=(0,p.I4)(E.A)`
165  // Don't display the (duplicated) mobile menu on desktops as it appears on the side >
166  @media ${I.A.desktop} {
167    display: none;
168  }
169`,ee=(0,p.I4)(E.A)`
170  position: sticky;
171  top: var(--osweb-sticky-aside-top-spacing);
172`,te=G},51354(R,l,t){var e;e={value:!0},e=e=l.b0=void 0;var d=t(60499);Object.defineProperty(l,"b0",{enumerable:!0,get:function(){return d.helmetJsonLdPro
172p}}),e={enumerable:!0,get:function(){return d.JsonLd}},e={enumerable:!0,get:function(){return d.jsonLdScriptProps}}},60499(R,l,t){Object.defineProperty(l,"__esModule",{value:!0}),l.JsonLd=d,l.jsonLdScriptProps=E,l.helmetJsonLdProp=y;const e=t(66220);function d(m){return e.createElement("script",{...E(m.item,m)})}function E(m,c={}){return{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(m,v,c.space)}}}function y(m,c={}){return{type:"application/ld+json",innerHTML:JSON.stringify(m,v,c.space)}}const C=Object.freeze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"}),r=new RegExp(`[${Object.keys(C).join("")}]`,"g"),h=m=>C[m],v=(m,c)=>{switch(typeof c){case"object":return c===null?void 0:c;case"number":case"boolean":case"bigint":return c;case"string":return c.replace(r,h);default:{return}}};function w(m){}}}]);})();

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.