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]="29293f69-45f8-42e9-82d2-f58f597af624",e._sentryDebugIdIdentifier="sentry-dbid-29293f69-45f8-42e9-82d2-f58f597af624")}catch(e){}}(),(self.webpackChunk_dogstrust_dt_web_publisher=self.webpackChunk_dogstrust_dt_web_publisher||[]).push([[8154],{71789:function(e,t,n){n.d(t,{p:function(){return c}});var a=n(37821),o=n(43531),r=n(96540);const l=()=>Promise.all([n.e(8897),n.e(3767)]).then(n.bind(n,73767)).then(({DotLottieReact:e})=>({default:e})),c=({className:e,...t})=>{const n=(0,a.e)(l),c=(0,o.A)("ClientSideDotLottie-module--animation--b316e",e),i=r.createElement("canvas",{className:c,width:t.width,height:t.height,style:t.style});return n?r.createElement(r.Suspense,{fallback:i},r.createElement(n,Object.assign({},t,{className:c}))):i}},13214:function(e,t,n){n.d(t,{Y:function(){return i}});var a=n(13105),o=n(43531),r=n(96540);const l=(e=300)=>{const{0:t,1:n}=(0,r.useState)([]),{0:a,1:o}=(0,r.useState)(!1),l=(0,r.useRef)(null),c=(0,r.useRef)(null),i=(0,r.useRef)(0),s=(0,r.useCallback)(t=>{const a=t.trim();l.current&&clearTimeout(l.current),c.current&&c.current.abort(),i.current+=1;const r=i.current;if(a.length<2)return n([]),void o(!1);n([]),o(!0),l.current=setTimeout(async()=>{const e=new AbortController;c.current=e;try{const t=e=>!Number.isNaN(Number.parseInt(e,10)),o=a.length>=2&&!t(a[0])&&(t(a[1])||t(a[2])),l=null!=="/"?"/":"",c=o?`${l}postcodes/?q=${encodeURIComponent(a)}`:`${l}places/?q=${encodeURIComponent(a)}`,s=await fetch(c,{signal:e.signal}).then(e=>e.json());if(e.signal.aborted||i.current!==r)return;const d=o?s.result.map(e=>({address:[e.outcode,e.incode].filter(Boolean).join(" "),latitude:e.latitude,longitude:e.longitude})):s.result.map(e=>({address:[e.name_1,e.county_unitary,e.outcode].filter(Boolean).join(", "),latitude:e.latitude,longitude:e.longitude}));n((e=>{const t=new Set,n=[];for(const a of e)t.has(a.address)||(t.add(a.address),n.push(a));return n})(d))}catch(t){if(t instanceof DOMException&&"AbortError"===t.name)return;i.current===r&&n([])}finally{e.signal.aborted||i.current!==r||o(!1)}},e)},[e]);return(0,r.useEffect)(()=>()=>{l.current&&clearTimeout(l.current),c.current&&c.current.abort()},[]),{placePredictions:t,isLoading:a,getPlacePredictions:s}};var c=n(96540);const i=({id:e,name:t,label:n,placeholder:i,userLocation:s,onConfirmUserLocation:d,onClearUserLocation:u,hideLabel:m=!1,required:g=!1,errorMessage:h,className:f,variant:p="default"})=>{var S;const b=(0,r.useId)(),v=null!=e?e:b,{0:E,1:y}=(0,r.useState)(null!==(S=null==s?void 0:s.address)&&void 0!==S?S:""),{placePredictions:w,getPlacePredictions:C}=l(),{0:N,1:D}=(0,r.useState)([]);(0,r.useEffect)(()=>{var e;y(null!==(e=null==s?void 0:s.address)&&void 0!==e?e:"")},[s]),(0,r.useEffect)(()=>{D(w.map(e=>e.address))},[w]);const L=(0,r.useRef)(E);L.current=E;const k=(0,r.useCallback)(e=>{y(e),e.length<2&&D([]),e!==L.current&&(e.length>=2?C(e):0===e.length&&L.current.length>0&&u())},[C,u]),I=(0,r.useCallback)(e=>{const t=w.find(t=>t.address===e);t&&(d(t),y(e),D([]))},[d,w]),_=(0,r.useCallback)(()=>{navigator.geolocation.getCurrentPosition(async e=>{const{latitude:t,longitude:n}=e.coords;try{const e=null!=="/"?"/":"",a=await fetch(`${e}postcodes?lon=${n}&lat=${t}`).then(e=>e.json());if(a.result[0]){const e={address:a.result[0].postcode,latitude:a.result[0].latitude,longitude:a.result[0].longitude};y(e.address),D([]),d(e)}}catch{}})},[d]);return c.createElement("div",{className:(0,o.$)("LocationInput-module--locationInputWrapper--28b41",f)},c.createElement(a.h,{id:v,name:t,label:n,value:E,onChange:k,onSuggestionSelect:I,suggestions:N,placeholder:i,iconLeft:"location",iconRight:"gps",ariaIconRightLabel:"Use current location",onIconRightClick:_,hideLabel:m,required:g,errorMessage:h,variant:p}))}},81527:function(e,t,n){n.d(t,{X:function(){return d}});var a=n(43293),o=n(97815),r=n(75385),l=n(43531),c=n(68056),i="Qu
1ickLinksList-module--link--3d449",s=n(96540);const d=({items:e,activeUrl:t,className:n})=>s.createElement("ul",{className:(0,l.$)("QuickLinksList-module--list--6df7a",n)},e.map(e=>{var n,d;const u=t===e.url,m=s.createElement(s.Fragment,null,e.iconName?s.createElement(a.I,{name:e.iconName,size:80,className:"QuickLinksList-module--icon--40c61"}):s.createElement(r.Y,{src:null!==(n=e.imgSrc)&&void 0!==n?n:"",alt:null!==(d=e.imgAlt)&&void 0!==d?d:"",dimensions:"80x80",width:80,height:80}),s.createElement("span",{className:"QuickLinksList-module--title--78d9c"},e.title));return s.createElement("li",{key:e.onClick?e.title:e.url,className:"QuickLinksList-module--item--d692a"},u?s.createElement("span",{className:(0,l.$)(i,"QuickLinksList-module--active--e785f"),"aria-current":"page"},m):e.onClick?s.createElement("button",{type:"button",className:i,"aria-label":e.title,onClick:()=>{var t;(0,c.d)({event:"button_navigation",button_clicked:e.title,button_url:e.url,button_location:"undefined"!=typeof window?window.location.href:""}),null===(t=e.onClick)||void 0===t||t.call(e)}},m):s.createElement(o.N,{to:e.url,className:i,ariaLabel:e.title,onClick:()=>{(0,c.d)({event:"button_navigation",button_clicked:e.title,button_url:e.url,button_location:"undefined"!=typeof window?window.location.href:""})}},m))}))},27215:function(e,t,n){n.d(t,{e:function(){return i}});var a=n(96540),o=n(68056),r=n(11306);let l=!1,c=[];const i=({youtubeId:e,title:t,aspectRatio:n="16/9",poster:i="hqdefault"})=>{const{0:s,1:d}=(0,a.useState)(!1),u=(0,a.useRef)(null),m=(0,a.useRef)(null),g=(0,a.useRef)(!1),h=(0,a.useRef)({}),f=(0,a.useRef)(null),p=`https://i.ytimg.com/vi/${e}/${i}.jpg`;(0,a.useEffect)(()=>()=>{f.current&&clearInterval(f.current)},[]);const S=(0,a.useCallback)(n=>{h.current[n]||((0,o.d)({event:"video_progress",videoId:e,videoTitle:t,videoProgress:`${n}%`}),h.current[n]=!0)},[e,t]),b=(0,a.useCallback)(()=>{u.current&&(m.current=new window.YT.Player(u.current,{events:{onStateChange:n=>{n.data===window.YT.PlayerState.PLAYING&&(g.current||((0,o.d)({event:"video_start",videoId:e,videoTitle:t,videoProgress:""}),g.current=!0),f.current||(f.current=setInterval(()=>{if(m.current){const e=m.current.getCurrentTime(),t=m.current.getDuration();if(t>0){const n=e/t*100;n>=10&&n<25?S(10):n>=25&&n<50?S(25):n>=50&&n<75?S(50):n>=75&&n<100&&S(75)}}},1e3))),n.data===window.YT.PlayerState.ENDED&&((0,o.d)({event:"video_complete",videoId:e,videoTitle:t,videoProgress:"100%"}),f.current&&(clearInterval(f.current),f.current=null))}}}))},[e,t,S]);(0,a.useEffect)(()=>{s&&(e=>{var t;if(null!==(t=window.YT)&&void 0!==t&&t.ready)return void window.YT.ready(e);if(c.push(e),l)return;l=!0;const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{null==n||n();const e=c;c=[],e.forEach(e=>{e()})};const a=document.createElement("script");a.src="https://www.youtube.com/iframe_api";const o=document.getElementsByTagName("script")[0];null!=o&&o.parentNode?o.parentNode.insertBefore(a,o):document.head.appendChild(a)})(b)},[s,b]);const v=(0,a.useCallback)(()=>{d(!0)},[]);return a.createElement("div",{className:"YouTubeLite-module--container--f274b",style:{aspectRatio:n}},s?a.createElement("iframe",{ref:u,src:`https://www.youtube.com/embed/${e}?autoplay=1&enablejsapi=1&origin=${encodeURIComponent((0,r.FB)())}`,title:t,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"YouTubeLite-module--iframe--cd947"}):a.createElement(a.Fragment,null,a.createElement("img",{src:p,alt:t,className:"YouTubeLite-module--thumbnail--ea5f3",loading:"lazy"}),a.createElement("button",{type:"button",className:"YouTubeLite-module--playButton--2fba2",onClick:v,"aria-label":`Play: ${t}`},a.createElement("svg",{viewBox:"0 0 68 48",className:"YouTubeLite-module--playIcon--27bc9","aria-hidden":"true"},a.createElement("path",{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z"}),a.createElement("path",{d:"M 45,24 27,14 27,34",fill:"white"})))))}},90179:function(e,t,n){n.d(t,{DogSearch:function(){return E}});var a=n(2927),o=n(52379),r=n(43531),l=n(64810),c=n(96540),i=n(14898),s=n(46851),d=n(54807),u=n(60694),m=n(22176),g=n(62198),h=n(60878),f=n(79362),p="DogSearch-module--filterOption--b49c4",S="DogSearch-module--filterOptionHomepage--50eef",b="DogSearch-module--filterOptionStacked--00e02 DogSearch-module--filterOption--b49c4";const v=s.e.map(e=>({label:e.county,value:e.county})),E=({stackInputs:e=!1,isHomepage:t=!1})=>{const{resultsCount:n,selectedBreeds:E,selectedCounty:y="",searchListingsUrl:w,dogApiLoading:C,onChangeFilterView:N,onUpdateSelectedCounty:D}=(0,c.useContext)(d.O),L=C?"Loading...":`Show ${n} dog(s)`;return c.createElement("div",{className:(0,r.$)("DogSearch-module--dogSearch--0b6ba",t&&"DogSearch-module--dogSearchHomepage--db15e DogSearch-module--dogSearch--0b6ba")},c.createElement(m.t,{loading:C}),c.createElement("div",{className:"DogSearch-module--header--51617"},t&&c.createElement("img",{src:i.A,alt:"","aria-hidden":"true",className:"DogSearch-module--dogWithFrisbee--ab795"}),c.createElement("h2",{className:(0,r.$)("DogSearch-module--title--84f7a",t&&"DogSearch-module--titleHomepage--97e56 DogSearch-module--title--84f7a")},"Find dogs to adopt")),c.createElement("div",{className:e?"DogSearch-module--filterOptionsStacked--dbbdb DogSearch-module--filterOptions--4788d":"DogSearch-module--filterOptions--4788d"},c.createElement("div",{className:(0,r.$)(e?b:p,t&&S)},c.createElement(o.l,{id:"county",name:"county",label:"County",options:v,value:y,onChange:e=>{const t=s.e.find(t=>t.county===e);t&&(null==D||D(t.county,"All Counties"===e?[]:t.centres))}})),c.createElement("div",{className:(0,r.$)(e?b:p,t&&S)},c.createElement(u.I,{selectedBreeds:E,onChangeFilterView:N})),c.createElement(a.$,{className:(0,r.$)("DogSearch-module--showDogsButton--c3683",t&&"DogSearch-module--showDogsButtonHomepage--977cd DogSearch-module--showDogsButton--c3683"),fullWidth:!0,loading:C,onClick:()=>{(0,f.N)({event:"rehoming_search",rehoming_breed:E.toString(),rehoming_county:y}),(0,l.oo)(w)},disabled:C||0===n},L)),c.createElement(g.T,{onChangeFilterView:N}),c.createElement(h.Z,{region:"ie",isListingPage:!1===t}))}},60694:function(e,t,n){n.d(t,{I:function(){return c}});var a=n(96540),o=n(43293),r="DogSearchBreedSelector-module--addBreedsIcon--60d25",l="DogSearchBreedSelector-module--breedText--17c1f";const c=({selectedBreeds:e,onChangeFilterView:t})=>a.createElement(a.Fragment,null,a.createElement("span",{className:"DogSearchBreedSelector-module--label--1411b"},"Breed"),a.createElement("button",{type:"button",className:"DogSearchBreedSelector-module--breedOrLocationSelector--867fa",onClick:()=>t("Breeds"),"aria-label":e.length>0?`${e.length} breeds selected â change breeds`:"Select breeds to filter by"},e.length>0?a.createElement(a.Fragment,null,a.createElement("div",{className:l},a.createElement("div",null,"Breeds selected"),a.createElement("div",{className:"DogSearchBreedSelector-module--breedSelectedCount--f3b54"},e.length)),a.createElement("div",{className:r},"+")):a.createElement(a.Fragment,null,a.createElement("div",{className:l},"Any"),a.createElement("div",{className:r},a.createElement(o.I,{name:"plus",size:20})))))},22176:function(e,t,n){n.d(t,{t:function(){return l}});var a=n(56043),o=n(43531),r=n(96540);const l=({loading:e})=>r.createElement("div",{className:(0,o.$)("DogSearchLoadingOverlay-module--loadingOverlay--c0a39",e&&"DogSearchLoadingOverlay-module--loadingOverlayVisible--7d661 DogSearchLoadingOverlay-module--loadingOverlay--c0a39"),"aria-hidden":"true"},r.createElement("div",{className:"DogSearchLoadingOverlay-module--loadingBackgroun
1d--d9f38"}),r.createElement("div",{className:"DogSearchLoadingOverlay-module--loadingIcon--1b5a6"},r.createElement(a.Ip,{loading:e,scale:1.5})))},62198:function(e,t,n){n.d(t,{T:function(){return o}});var a=n(96540);const o=({onChangeFilterView:e})=>a.createElement("button",{type:"button",className:"DogSearchViewMoreButton-module--viewMore--87785 _tools--anchorStyles--93c73",onClick:()=>e("Any"),onKeyDown:t=>"Enter"===t.key&&e("Any")},"View more filters")},79362:function(e,t,n){n.d(t,["N",0,e=>{"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({...e}))}])},35561:function(e,t,n){n.d(t,{DogSearch:function(){return b},A:function(){return v}});var a=n(2927),o=n(13214),r=n(43531),l=n(64810),c=n(96540),i=n(14898),s=n(6609),d=n(60694),u=n(22176),m=n(62198),g=n(60878),h=n(79362),f="DogSearch-module--filterOption--0a13d",p="DogSearch-module--filterOptionHomepage--58901",S="DogSearch-module--filterOptionStacked--9d190 DogSearch-module--filterOption--0a13d";const b=({stackInputs:e=!1,isHomepage:t=!1})=>{const{currentDistance:n,resultsCount:b,selectedBreeds:v,searchListingsUrl:E,dogApiLoading:y,userLocation:w,onChangeFilterView:C,onUpdateLocation:N}=(0,c.useContext)(s.g),D=y?"Loading...":`Show ${b} dog(s)`;return c.createElement("div",{className:(0,r.$)("DogSearch-module--dogSearch--5b3c4",t&&"DogSearch-module--dogSearchHomepage--a0ae3 DogSearch-module--dogSearch--5b3c4")},c.createElement(u.t,{loading:y}),c.createElement("div",{className:"DogSearch-module--header--da1ee"},t&&c.createElement("img",{src:i.A,alt:"","aria-hidden":"true",className:"DogSearch-module--dogWithFrisbee--47385"}),c.createElement("h2",{className:(0,r.$)("DogSearch-module--title--70676",t&&"DogSearch-module--titleHomepage--08707 DogSearch-module--title--70676")},"Find dogs to adopt")),c.createElement("div",{className:e?"DogSearch-module--filterOptionsStacked--d368b DogSearch-module--filterOptions--292ac":"DogSearch-module--filterOptions--292ac"},c.createElement("div",{className:(0,r.$)(e?S:f,t&&p)},c.createElement(o.Y,{name:"postcode",label:"Set your location",placeholder:"All of UK",userLocation:null!=w?w:void 0,onClearUserLocation:()=>N(null,1e3),onConfirmUserLocation:e=>N(e,n>150?150:n)})),c.createElement("div",{className:(0,r.$)(e?S:f,t&&p)},c.createElement(d.I,{selectedBreeds:v,onChangeFilterView:C})),c.createElement(a.$,{className:(0,r.$)("DogSearch-module--showDogsButton--fb44c",t&&"DogSearch-module--showDogsButtonHomepage--13d35 DogSearch-module--showDogsButton--fb44c"),fullWidth:!0,loading:y,onClick:()=>{(0,h.N)({event:"rehoming_search",rehoming_breed:v.toString()}),(0,l.oo)(E)},disabled:y||0===b},D)),c.createElement(m.T,{onChangeFilterView:C}),c.createElement(g.Z,{region:"uk",isListingPage:!1===t}))};var v=b},74656:function(e,t,n){n.d(t,{d:function(){return s}});var a=n(23839),o=n(27371),r=n(98302),l=n(43531),c=n(41822),i=n(96540);const s=({title:e,bodyHtmlText:t,items:n,link:s,themeOverride:d,isSuccessStories:u=!1,forceFlatCards:m=!1,isSubComponent:g=!1,variant:h="",jumpLinksTitle:f,isThreeColLayout:p=!1,className:S})=>{if(null==n||!n.length)return null;const b=g?r.$:r.R;return i.createElement(b,{sectionName:`SectionStandardSignPostCards${h}`,sectionColour:null!=d?d:c.g.BISCUIT_300,className:S},i.createElement("section",{className:"SectionStandardSignPostCards-module--signpostCards--ad8dd"},e&&i.createElement("header",{className:"SectionStandardSignPostCards-module--header--70f9d"},i.createElement("h2",f?{"data-jumplinkstitle":f}:{},e)),t&&i.createElement("div",{className:"SectionStandardSignPostCards-module--bodyText--83643 SectionStandardSignPostCards-module--header--70f9d",dangerouslySetInnerHTML:{__html:t}}),i.createElement("div",{className:p?"SectionStandardSignPostCards-module--cardSectionGrid--7ab1e":"SectionStandardSignPostCards-module--cardSection--feee7"},n.map((e,t)=>{var n,a;return i.createElement(o.L,Object.assign({},e,{key:null!==(n=e.buttonUrl)&&void 0!==n?n:e.title,isRTE:null!==(a=e.isRTE)&&void 0!==a&&a,isSuccessStory:u,className:(0,l.A)("SectionStandardSignPostCards-module--card--7c5ec"),forceSquare:p}))})),(null==s?void 0:s.uri)&&s.title&&i.createElement("footer",{className:"SectionStandardSignPostCards-module--buttonWrapper--6e92f"},i.createElement(a.v,{href:s.uri,variant:"secondary",fullWidth:!0},s.title))))}},68703:function(e,t,n){n.d(t,["y",0,e=>e?e.replace(/<script\s+src="https:\/\/cdnjs\.cloudflare\.com\/ajax\/libs\/iframe-resizer\/[\d.]+\/iframeResizer\.min\.js"><\/script>/g,"").replace(/iFrameResize\(\s*\{[^}]*\}\s*,\s*'[^']*'\s*\)\s*;?/g,"if(typeof iFrameResize==='function'){iFrameResize({ log: false }, '#dt-donation-widget');}").replace(/var iframe = document\.getElementById\('dt-donation-widget'\)\.contentWindow;/g,"var iframe = document.getElementById('dt-donation-widget')?.contentWindow;\n\t\t\tif(!iframe) {return;}"):""])},14898:function(e,t,n){t.A=n.p+"static/dog-frisbee-517ca1da7f4a74b7320cd6a92e969450.svg"}}]);
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.