PageSourceSearch

https://www.hunkemoller.co.uk/mobify/bundle/1081/components-moments-carousel.js

js hunkemoller.co.uk collected 2026-09-25 04:24:33 UTC 14,667 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1754],{1559(e,t,r){r.d(t,{B:()=>j});var n=r(10939),c=r(18801),o=r(44258),s=r(36287),a=r(77810),i=r(92839),l=r(14154),d=r(27774),u=r(64922);const m=["carouselRefObj","children","scale","disableAt"],p=["transition","borderRadius"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const O=Math.round(1/3*100+1)/100;function j(e){const t=(0,o.c)(26);let r,n,b,j,h;if(t[0]!==e){var g=e;({carouselRefObj:r,children:n,scale:j,disableAt:h}=g),b=(0,c.A)(g,m),t[0]=e,t[1]=r,t[2]=n,t[3]=b,t[4]=j,t[5]=h}else r=t[1],n=t[2],b=t[3],j=t[4],h=t[5];const y=void 0===j?1:j,v=void 0===h?"l":h,P=(0,a.useRef)(null),[w,_]=(0,a.useState)(!1),[x,N]=(0,a.useState)("center");let D;t[6]!==v?(D={base:!1,[v]:!0},t[6]=v,t[7]=D):D=t[7];const S=(0,i.A)(D),A=(0,l.o)("CssCarouselSlideScaled");let k,C,E,z;if(t[8]!==r||t[9]!==S?(k=()=>{const e=P.current;if(S||!e||!r.current)return;const t=new IntersectionObserver((e=>{const[t]=e;_(t.intersectionRatio>O);const r=t.rootBounds;if(r){const e=t.boundingClientRect.left+t.boundingClientRect.width/2-(r.left+r.width/2);N(e<-1?"start":e>1?"end":"center")}}),{root:r.current,threshold:[0,O]});return t.observe(e),()=>t.disconnect()},C=[r,S],t[8]=r,t[9]=S,t[10]=k,t[11]=C):(k=t[10],C=t[11]),(0,a.useEffect)(k,C),t[12]!==b){const{transition:e,borderRadius:r}=b;E=r,z=(0,c.A)(b,p),t[12]=b,t[13]=E,t[14]=z}else E=t[13],z=t[14];const R=w?1:y,I=(1-R)/2*100,$=`translateX(${w||"center"===x?"0%":"start"===x?`${I}%`:`-${I}%`}) scale(${R})`;let L,B,H;return t[15]!==v||t[16]!==$?(L={base:$,[v]:"none"},t[15]=v,t[16]=$,t[17]=L):L=t[17],t[18]!==E||t[19]!==n||t[20]!==A.content||t[21]!==L?(B=(0,u.jsx)(s.az,f(f({className:"scaled-slide-content"},A.content),{},{transform:L,borderRadius:E,children:n})),t[18]=E,t[19]=n,t[20]=A.content,t[21]=L,t[22]=B):B=t[22],t[23]!==z||t[24]!==B?(H=(0,u.jsx)(d.l,f(f({"data-testid":"scaled-slide-view",ref:P},z),{},{children:B})),t[23]=z,t[24]=B,t[25]=H):H=t[25],H}},44271(e,t,r){r.d(t,{S:()=>y});var n=r(64180),c=r(10939),o=r(18801),s=r(44258),a=r(36287),i=r(14154),l=r(51689),d=r(96012),u=r(64922);const m=["children","className"],p=["children","className"],b=["src","alt","sizes","className","pictureClassName","htmlWidth","htmlHeight"],f=["className"],O=["children","className"];function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){(0,c.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e){const t=(0,s.c)(9);let r,n,c;if(t[0]!==e){var l=e;({children:r,className:n}=l),c=(0,o.A)(l,m),t[0]=e,t[1]=r,t[2]=n,t[3]=c}else r=t[1],n=t[2],c=t[3];const d=(0,i.o)("ImageCard"),p=n?`image-card ${n}`:"image-card";let b;return t[4]!==r||t[5]!==c||t[6]!==p||t[7]!==d.root?(b=(0,u.jsx)(a.az,h(h(h({className:p,"data-testid":"image-card"},d.root),c),{},{children:r})),t[4]=r,t[5]=c,t[6]=p,t[7]=d.root,t[8]=b):b=t[8],b}const y=(0,n.A)(g,{Root:g,Link:function(e){const t=(0,s.c)(9);let r,n,c;if(t[0]!==e){var a=e;({children:r,className:n}=a),c=(0,o.A)(a,p),t[0]=e,t[1]=r,t[2]=n,t[3]=c}else r=t[1],n=t[2],c=t[3];const l=(0,i.o)("ImageCard"),m=n?`image-card_link ${n}`:"image-card_link";let b;return t[4]!==r||t[5]!==m||t[6]!==c||t[7]!==l.link?(b=(0,u.jsx)(d.N,h(h(h({className:m},l.link),c),{},{children:r})),t[4]=r,t[5]=m,t[6]=c,t[7]=l.link,t[8]=b):b=t[8],b},Image:function(e){const t=(0,s.c)(24);let r,n,c,a,d,m,p,f;if(t[0]!==e){var O=e;({src:f,alt:r,sizes:p,className:n,pictureClassName:d,htmlWidth:a,htmlHeight:c}=O),m=(0,o.A)(O,b),t[0]=e,t[1]=r,t[2]=n,t[3]=c,t[4]=a,t[5]=d,t[6]=m,t[7]=p,t[8]=f}else r=t[1],n=t[2],c=t[3],a=t[4],d=t[5],m=t[6],p=t[7],f=t[8];const j=(0,i.o)("ImageCard"),g=n?`image-card_image ${n}`:"image-card_image",y=d?`image-card_picture ${d}`:"image-card_picture";let v,P,w;return t[9]!==y||t[10]!==j.picture?(v=h({className:y},j.picture),t[9]=y,t[10]=j.picture,t[11]=v):v=t[11],t[12]!==m||t[13]!==j.image?(P=h(h({},j.image),m),t[12]=m,t[13]=j.image,t[14]=P):P=t[14],t[15]!==r||t[16
1]!==c||t[17]!==a||t[18]!==g||t[19]!==p||t[20]!==f||t[21]!==v||t[22]!==P?(w=(0,u.jsx)(l.d,{mobileImgUrl:f,desktopImgUrl:f,mobileSizes:p,alt:r,isLazy:!0,className:g,htmlWidth:a,htmlHeight:c,stylesPicture:v,styles:P}),t[15]=r,t[16]=c,t[17]=a,t[18]=g,t[19]=p,t[20]=f,t[21]=v,t[22]=P,t[23]=w):w=t[23],w},Shader:function(e){const t=(0,s.c)(7);let r,n;if(t[0]!==e){var c=e;({className:r}=c),n=(0,o.A)(c,f),t[0]=e,t[1]=r,t[2]=n}else r=t[1],n=t[2];const l=(0,i.o)("ImageCard"),d=r?`image-card_shader ${r}`:"image-card_shader";let m;return t[3]!==n||t[4]!==d||t[5]!==l.shader?(m=(0,u.jsx)(a.az,h(h({className:d},l.shader),n)),t[3]=n,t[4]=d,t[5]=l.shader,t[6]=m):m=t[6],m},Content:function(e){const t=(0,s.c)(9);let r,n,c;if(t[0]!==e){var l=e;({children:r,className:n}=l),c=(0,o.A)(l,O),t[0]=e,t[1]=r,t[2]=n,t[3]=c}else r=t[1],n=t[2],c=t[3];const d=(0,i.o)("ImageCard"),m=n?`image-card_content ${n}`:"image-card_content";let p;return t[4]!==r||t[5]!==m||t[6]!==c||t[7]!==d.content?(p=(0,u.jsx)(a.az,h(h(h({className:m},d.content),c),{},{children:r})),t[4]=r,t[5]=m,t[6]=c,t[7]=d.content,t[8]=p):p=t[8],p}})},11755(e,t,r){r.r(t),r.d(t,{MomentsCarousel:()=>x});var n=r(10939),c=r(44258),o=r(77810),s=r(14154),a=r(44413),i=r(1559),l=r(18801),d=r(40133),u=r(38340),m=r(36287),p=r(44271),b=r(32034);const f={base:"320px",s:"290px",m:"300px",l:"300px",xl:"360px"};var O=r(64922);const j=["moment","subtitle","cta_url","cta_text","image"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e){var t,r,n;const o=(0,c.c)(34),a=(0,s.o)("MomentCard");let i,h,y,v,P,w;if(o[0]!==e){var _=e;({moment:v,subtitle:w,cta_url:h,cta_text:i,image:y}=_),P=(0,l.A)(_,j),o[0]=e,o[1]=i,o[2]=h,o[3]=y,o[4]=v,o[5]=P,o[6]=w}else i=o[1],h=o[2],y=o[3],v=o[4],P=o[5],w=o[6];const x=(null===(t=h)||void 0===t?void 0:t.href)??"",N=i,D=null===(r=y)||void 0===r?void 0:r.url,S=(null===(n=y)||void 0===n?void 0:n.title)??"";let A,k,C,E,z,R,I,$;return o[7]!==D||o[8]!==S?(A=(0,O.jsx)(p.S.Image,{className:"moment-card_image",pictureClassName:"moment-card_picture",src:D,alt:S,htmlWidth:320,htmlHeight:480,sizes:f}),o[7]=D,o[8]=S,o[9]=A):A=o[9],o[10]===Symbol.for("react.memo_cache_sentinel")?(k=(0,O.jsx)(p.S.Shader,{className:"moment-card_shader"}),o[10]=k):k=o[10],o[11]!==a.subtitle||o[12]!==w?(C=w&&(0,O.jsx)(d.E,g(g({as:"p",className:"moment-card_subtitle"},a.subtitle),{},{children:w})),o[11]=a.subtitle,o[12]=w,o[13]=C):C=o[13],o[14]!==v||o[15]!==a.moment?(E=(0,O.jsx)(u.D,g(g({as:"h3",className:"moment-card_moment"},a.moment),{},{children:v})),o[14]=v,o[15]=a.moment,o[16]=E):E=o[16],o[17]!==N||o[18]!==a.action?(z=N&&(0,O.jsx)(b.Y,g(g({as:"span",role:"presentation",className:"moment-card_action",tabIndex:-1},a.action),{},{children:N})),o[17]=N,o[18]=a.action,o[19]=z):z=o[19],o[20]!==a.content||o[21]!==C||o[22]!==E||o[23]!==z?(R=(0,O.jsx)(p.S.Content,{className:"moment-card_content",children:(0,O.jsxs)(m.az,g(g({},a.content),{},{children:[C,E,z]}))}),o[20]=a.content,o[21]=C,o[22]=E,o[23]=z,o[24]=R):R=o[24],o[25]!==x||o[26]!==a.link||o[27]!==A||o[28]!==R?(I=(0,O.jsxs)(p.S.Link,g(g({to:x,className:"moment-card_link","data-testid":"moment-card-link"},a.link),{},{children:[A,k,R]})),o[25]=x,o[26]=a.link,o[27]=A,o[28]=R,o[29]=I):I=o[29],o[30]!==P||o[31]!==a.wrapper||o[32]!==I?($=(0,O.jsx)(p.S.Root,g(g(g({className:"moment-card","data-testid":"moment-card"},a.wrapper),P),{},{children:I})),o[30]=P,o[31]=a.wrapper,o[32]=I,o[33]=$):$=o[33],$}var v=r(31880),P=r(61566);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?w(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e){const t=(0,c.c)(27),{carousel:r,subtitle:n,title:l,galleryId:d}=e,u=void 0===d?P.RT:d,m=(0,s.o)("MomentsCarousel"),p=(0,o.useRef)(null);let b;t[0]!==r?(b=null==r?void 0:r.filter(D).map(N),t[0]=r,t[1]=b):b=t[1];const f=b;if(null==f||!f.length)return null;const j=`${u}__heading`;let h,g,w;t[2]!==n?(h=n&&(0,O.jsx)(v.d8.Subtitle,{as:"p",children:n}),t[2]=n,t[3]=h):h=t[3],t[4]!==l?(g=l&&(0,O.jsx)(v.d8.Title,{children:l}),t[4]=l,t[5]=g):g=t[5],t[6]!==m.header||t[7]!==j||t[8]!==h||t[9]!==g?(w=(0,O.jsxs)(v.d8.Header,_(_({className:j},m.header),{},{children:[h,g]})),t[6]=m.header,t[7]=j,t[8]=h,t[9]=g,t[10]=w):w=t[10];const x=`${u}__carousel`;let S,A,k,C,E;return t[11]!==m.slide?(S=e=>{const{item:t,slideProps:r}=e;return(0,O.jsx)(i.B,_(_(_({},m.slide),{},{scale:P.ct,disableAt:P.p0,carouselRefObj:p},r),{},{"data-component":"components",children:(0,O.jsx)(y,_({},t))}))},t[11]=m.slide,t[12]=S):S=t[12],t[13]===Symbol.for("react.memo_cache_sentinel")?(A={variant:"paged"},t[13]=A):A=t[13],t[14]!==u||t[15]!==f||t[16]!==S?(k=(0,O.jsx)(a.M,{slides:f,carouselRefObj:p,renderItem:S,theme:A,galleryId:u,options:P.y9}),t[14]=u,t[15]=f,t[16]=S,t[17]=k):k=t[17],t[18]!==m.carousel||t[19]!==k||t[20]!==x?(C=(0,O.jsx)(v.d8.Body,_(_({className:x},m.carousel),{},{children:k})),t[18]=m.carousel,t[19]=k,t[20]=x,t[21]=C):C=t[21],t[22]!==u||t[23]!==m.wrapper||t[24]!==C||t[25]!==w?(E=(0,O.jsxs)(v.d8,_(_({className:u,"data-testid":u},m.wrapper),{},{children:[w,C]})),t[22]=u,t[23]=m.wrapper,t[24]=C,t[25]=w,t[26]=E):E=t[26],E}function N(e){return{moment:e.moment,subtitle:e.subtitle,cta_url:e.cta_url,cta_text:e.cta_text,image:e.image}}function D(e){var t;return Boolean(null==e?void 0:e.title)&&Boolean(null==e?void 0:e.moment)&&Boolean(null==e||null===(t=e.image)||void 0===t?void 0:t.url)}},32034(e,t,r){r.d(t,{Y:()=>j});var n=r(10939),c=r(18801),o=r(44258),s=r(36287),a=r(38855),i=r(3393),l=r(14154),d=r(64922);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e){const t=(0,o.c)(9),{size:r,iconPosition:n,icon:c}=e,a="start"===n||"end"===n?"start"===n?"iconStart":"iconEnd":void 0;let i;t[0]!==r||t[1]!==a?(i={size:r,variant:a},t[0]=r,t[1]=a,t[2]=i):i=t[2];const u=(0,l.o)("TextLink",i);if(!c||"start"!==n&&"end"!==n)return null;let p,b;return t[3]!==c||t[4]!==u.icon?(p=(0,d.jsx)(c,m(m({},u.icon),{},{"aria-hidden":"true",focusable:"false"})),t[3]=c,t[4]=u.icon,t[5]=p):p=t[5],t[6]!==u.iconWrapper||t[7]!==p?(b=(0,d.jsx)(s.az,m(m({},u.iconWrapper),{},{children:p})),t[6]=u.iconWrapper,t[7]=p,t[8]=b):b=t[8],b}const b=["iconPosition","onClick","icon","size","children","as"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const j=(0,a.R)(((e,t)=>{const r=(0,o.c)(33);let n,a,u,m,f,j,h;if(r[0]!==e){var g=e;({iconPosition:f,onClick:u,icon:a,size:j,children:n,as:h}=g),m=(0,c.A)(g,b),r[0]=e,r[1]=n,r[2]=a,r[3]=u,r[4]=m,r[5]=f,r[6]=j,r[7]=h}else n=r[1],a=r[2],u=r[3],m=r[4],f=r[5],j=r[6],h=r[7];const y=void 0===f?"start":f,v=void 0===j?"md":j,P=void 0===h?"button":h,w="start"===y||"end"===y?"start"===y?"iconStart":"iconEnd":void 0;let _;r[8]!==v||r[9]!==w?(_={size:v,variant:w},r[8]=v,r[9]=w,r[10]=_):_=r[10];const x=(0,l.o)("TextLink",_),N=e.disabled?-1:0;let D;r[11]!==u||r[12]!==e.disabled?(D=t=>{var r;if(e.disabled)return t.preventDefault(),void t.stopPropagation();null===(r=u)||void 0===r||r(t)},r[11]=u,r[12]=e.disabled,r[13]=D):D=r[13];const S=e.role??("button"===P?void 0:"button"),A="button"===P?"button":void 0;let k,C,E;return r[14]!==a||r[15]!==y||r[16]!==v?(k=(0,d.jsx)(p,{size:v,icon:a,iconPosition:y}),r[14]=a,r[15]=y,r[16]=v,r[17]=k):k=r[17],r[18]!==n||r[19]!==x.label?(C=(0,d.jsx)(i.B.span,O(O({},x.label),{},{children:n})),r[18]=n,r[19]=x.label,r[20]=C):C=r[20],r[21]!==P||r[22]!==e.disabled||r[23]!==t||r[24]!==m||r[25]!==x.container||r[26]!==N||r[27]!==D||r[28]!==S||r[29]!==A||r[30]!==k||r[31]!==C?(E=(0,d.jsxs)(s.az,O(O(O({ref:t,as:P},x.container),{},{tabIndex:N,"aria-disabled":e.disabled,onClick:D,role:S,type:A},m),{},{children:[k,C]})),r[21]=P,r[22]=e.disabled,r[23]=t,r[24]=m,r[25]=x.container,r[26]=N,r[27]=D,r[28]=S,r[29]=A,r[30]=k,r[31]=C,r[32]=E):E=r[32],E}))}}]);

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.