PageSourceSearch

https://www.dogstrust.ie/f0edd8329884e88cd2ae5e6b0d9b9ad81987fc6e-5d80102545f1ee7a5ab4.js

js dogstrust.ie collected 2026-10-02 04:38:17 UTC 9,125 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]="208cdb29-8f24-49bd-aa77-77f4213e1597",e._sentryDebugIdIdentifier="sentry-dbid-208cdb29-8f24-49bd-aa77-77f4213e1597")}catch(e){}}(),(self.webpackChunk_dogstrust_dt_web_publisher_ie=self.webpackChunk_dogstrust_dt_web_publisher_ie||[]).push([[1992],{1091:function(e,t,n){n.d(t,{g:function(){return h}});var r=n(4506),a=n(3777),i=n(3839),o=n(121),s=n(3870),l=n(5048),c=n(1822),d=n(6185),u=n(6540),m=n(9381),f=n(6461);const v=e=>u.createElement(s.T,{key:e.id,id:e.id,dog:e,name:e.name,breed:(0,d.yY)(e),gender:e.gender,dob:e.dob,size:e.size,centreName:e.centreName,media:e.media,url:e.url,isReserved:e.isReserved,isUnderdog:e.isUnderdog}),h=({title:e,htmlIntro:t,currentDogId:n,maxItems:s,jumpLinksTitle:d,sectionName:h,searchVariables:y,queryParams:b,items:g,sectionColour:p=c.g.RED_SETTER,ctaLabel:S="Meet our dogs",ctaHref:P,ctaVariant:_="primary",carouselAriaLabel:C,containerThemeColour:D,titleColor:E="var(--c-sunshine-yellow)",textColor:w="var(--c-white)",className:I})=>{const k=!g||g.length<s,{data:N}=(0,a.I)(f.v,{client:m.O,fetchPolicy:"cache-first",skip:"undefined"==typeof window||!k,variables:{page:0,sort:"NEW",centres:[],...y}}),T=(0,u.useMemo)(()=>{var e,t;const a=null!==(e=null==N||null===(t=N.results)||void 0===t?void 0:t.results)&&void 0!==e?e:[];let i=(0,r.A)(null!=g?g:[]);if(i.length<s&&a.length>0){const e=new Set(i.map(e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.toString()})),t=a.filter(t=>{var r,a;return!e.has(null===(r=t.id)||void 0===r?void 0:r.toString())&&(null===(a=t.id)||void 0===a?void 0:a.toString())!==n});i=[].concat((0,r.A)(i),(0,r.A)(t))}else 0===i.length&&(i=a.filter(e=>{var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())!==n}));return i.slice(0,s).sort(e=>{var t,n,r;return null!==(t=e.media)&&void 0!==t&&null!==(n=t.images)&&void 0!==n&&null!==(r=n[0])&&void 0!==r&&r.src?-1:0})},[N,g,n,s]),L=(0,u.useMemo)(()=>T.map(v),[T]),R=null!=P?P:`/rehoming/dogs?${new URLSearchParams(Object.entries(b).reduce((e,[t,n])=>(e[t]=Array.isArray(n)?n.join(","):n,e),{})).toString()}`;return u.createElement(l.R,{sectionName:h,sectionColour:p,className:I},u.createElement("div",{className:"SectionDynamicDogBase-module--inner--7de40",style:{...E&&{"--_title-color":E},...w&&{"--_text-color":w}}},u.createElement("header",{className:"SectionDynamicDogBase-module--header--2f324"},u.createElement("h2",Object.assign({className:"SectionDynamicDogBase-module--title--ef6ce"},d?{"data-jumplinkstitle":d}:{}),e)),t&&u.createElement("div",{className:"SectionDynamicDogBase-module--introText--78e59",dangerouslySetInnerHTML:{__html:t}}),u.createElement("div",{className:"SectionDynamicDogBase-module--carouselContainer--473b5"},u.createElement(o.F,{className:"SectionDynamicDogBase-module--carousel--09c15",slides:L,ariaLabel:null!=C?C:`${e} dog carousel`,announcementText:(e,t)=>
1`Dog ${e+1} of ${t}`,arrowsOnly:!0,paginationAlign:"right",noBackground:!0,ctaNode:u.createElement(i.v,{href:R,variant:_},S),containerThemeColour:D}))))}},2394:function(e,t,n){n.d(t,{d:function(){return c}});var r=n(3839),a=n(4934),i=n(5048),o=n(3531),s=n(1822),l=n(6540);const c=({title:e,bodyHtmlText:t,items:n,link:c,themeOverride:d,isSuccessStories:u=!1,forceFlatCards:m=!1,isSubComponent:f=!1,variant:v="",jumpLinksTitle:h,isThreeColLayout:y=!1,className:b})=>{if(null==n||!n.length)return null;const g=f?i.$:i.R;return l.createElement(g,{sectionName:`SectionStandardSignPostCards${v}`,sectionColour:null!=d?d:s.g.BISCUIT_300,className:b},l.createElement("section",{className:"SectionStandardSignPostCards-module--signpostCards--ad8dd"},e&&l.createElement("header",{className:"SectionStandardSignPostCards-module--header--70f9d"},l.createElement("h2",h?{"data-jumplinkstitle":h}:{},e)),t&&l.createElement("div",{className:"SectionStandardSignPostCards-module--bodyText--83643 SectionStandardSignPostCards-module--header--70f9d",dangerouslySetInnerHTML:{__html:t}}),l.createElement("div",{className:y?"SectionStandardSignPostCards-module--cardSectionGrid--7ab1e":"SectionStandardSignPostCards-module--cardSection--feee7"},n.map((e,t)=>{var n,r;return l.createElement(a.L,Object.assign({},e,{key:null!==(n=e.buttonUrl)&&void 0!==n?n:e.title,isRTE:null!==(r=e.isRTE)&&void 0!==r&&r,isSuccessStory:u,className:(0,o.A)("SectionStandardSignPostCards-module--card--7c5ec"),forceSquare:y}))})),(null==c?void 0:c.uri)&&c.title&&l.createElement("footer",{className:"SectionStandardSignPostCards-module--buttonWrapper--6e92f"},l.createElement(r.v,{href:c.uri,variant:"secondary",fullWidth:!0},c.title))))}},3777:function(e,t,n){n.d(t,{I:function(){return N}});var r,a=n(62),i=n(6540),o=n(7274),s=n(7678),l=n(7363),c=1,d={};function u(e){return e in d&&(delete d[e],!0)}var m=function(e){var t=c++;return d[t]=!0,r||(r=Promise.resolve()),r.then(function(){return u(t)&&e()}),t},f=function(e){u(e)},v={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=v.delegate;return((null==n?void 0:n.setImmediate)||m).apply(void 0,(0,s.fX)([],(0,s.zs)(e)))},clearImmediate:function(e){var t=v.delegate;return((null==t?void 0:t.clearImmediate)||f)(e)},delegate:void 0},h=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return(0,s.C6)(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=v.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){var a;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i=t.actions;null!=n&&(null===(a=i[i.length-1])||void 0===a?void 0:a.id)!==n&&(v.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(l.R),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,s.C6)(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(n(2112).q),b=new y(h),g=n(8468),p=n(9081),S=n(2314),P=n(9582);const _=Symbol.for("apollo.skipToken"),C=Symbol.for("apollo.hook.wrappers");var D=n(1676);var E=n(1868),w=n(7566),I=n(4777);const k=Symbol(),N=function(e,...[t]){return function(e,t,n){const r=[n.queryManager,e.startsWith("use")?i.useContext((0,D.l)()):void 0];let a=t;for(const i of r){const t=i?.[C]?.[e];t&&(a=t(a))}return a}("useQuery",T,(0,w.m)("object"==typeof t?t.client:void 0))(e,t)};function T(e,t={}){const n=(0,w.m)("object"==typeof t?t.client:void 0),{ssr:r}="object"==typeof t?t:{},s=function(e,t,n){return(0,E.k)(()=>{if(t===_){const t={...(0,p.l)(n,{query:e,fetchPolicy:"standby"}),[S._K]:!0};return t[L]=!0,t}const r=(0,p.l)(n,{...t,query:e});return t.skip&&(r.initialFetchPolicy=t.initialFetchPolicy||t.fetchPolicy,r.fetchPolicy="standby"),r},[e,t,n])}(e,t,n.defaultOptions.watchQuery);function l(t){const r=n.watchQuery(s);return{client:n,query:e,observable:r,resultData:{current:r.getCurrentResult(),previousData:t?.resultData.current.data,variables:r.variables}}}let[c,d]=i.useState(l);n===c.client&&e===c.query||d(c=l(c));const{observable:u,resultData:m}=c;!function(e,t){e.fetchPolicy||(e.fetchPolicy=t.options.initialFetchPolicy)}
1(s,u),function(e,t,n){if(t[k]&&!(0,a.L)(t[k],n)){t[k][L]&&!n.initialFetchPolicy&&(n.initialFetchPolicy=n.fetchPolicy),!function(e,t){return e.query!==t.query||!(0,a.L)(e.variables,t.variables)||e.fetchPolicy!==t.fetchPolicy&&("standby"===t.fetchPolicy||"standby"===e.fetchPolicy)}(t[k],n)?t.applyOptions(n):t.reobserve(n);const r=t.getCurrentResult();(0,a.L)(r.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=r,e.variables=t.variables}t[k]=n}(m,u,s);const f=function(e,t,n){const r=e.options.fetchPolicy;return(0,I.r)(i.useCallback(n=>{const r=e.pipe((0,o.Q)(b)).subscribe(r=>{const i=t.current;(0,a.L)(i,r)&&(0,a.L)(t.variables,e.variables)||(t.variables=e.variables,i.data&&!(0,a.L)(i.data,r.data)&&(t.previousData=i.data),t.current=r,n())});return()=>{setTimeout(()=>r.unsubscribe())}},[e,t]),()=>t.current,()=>"standby"!==r&&!1===n||"no-cache"===r?N.ssrDisabledResult:t.current)}(u,m,r),v=i.useMemo(()=>({refetch:u.refetch.bind(u),fetchMore:u.fetchMore.bind(u),updateQuery:u.updateQuery.bind(u),startPolling:u.startPolling.bind(u),stopPolling:u.stopPolling.bind(u),subscribeToMore:u.subscribeToMore.bind(u)}),[u]),h=m.previousData;return i.useMemo(()=>{const{partial:e,...t}=f;return{...t,client:n,observable:u,variables:u.variables,previousData:h,...v}},[f,n,u,h,v])}const L=Symbol();N.ssrDisabledResult=(0,P.G)({loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:g.p.loading,partial:!0})}}]);
2//# sourceMappingURL=f0edd8329884e88cd2ae5e6b0d9b9ad81987fc6e-5d80102545f1ee7a5ab4.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.