1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[67141],{392077:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.PageEntity_v3_0_0=void 0;class n{constructor(t){this.pageName=t}toJSON(){return{page_name:this.pageName}}}e.PageEntity_v3_0_0=n},925293:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.UiComponentEntity_v2_0_0=void 0;class n{constructor(t=null,e,n=null){this.uiComponentLabel=t,this.uiComponentName=e,this.uiComponentPosition=n}toJSON(){return{ui_component_label:this.uiComponentLabel,ui_component_name:this.uiComponentName,ui_component_position:this.uiComponentPosition}}}e.UiComponentEntity_v2_0_0=n},299736:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserInteractionEvent_v4_0_0=void 0;class n{constructor(t,e,n,r){this.actionType=t,this.interactionType=e,this.target=n,this.uiElementType=r}toJSON(){return{action_type:this.actionType,interaction_type:this.interactionType,target:this.target,ui_element_type:this.uiElementType}}}e.UserInteractionEvent_v4_0_0=n},705230:function(t,e,n){e.b=void 0;let r=n(635257),o=n(855451),i=n(135893),a=n(773688),c=n(299736),l=n(392077),u=n(925293);class s{static uiComponent(t){let e=new u.UiComponentEntity_v2_0_0(t.uiComponentLabel,"Instagram",t.uiComponentPosition);return new o.JanusSchema("iglu:com.hellofresh/ui_component/jsonschema/2-0-0",e.toJSON())}static janusEvent(t){let e=this.event(),n=this.page(),o=t.uiComponent,i=this.specification(),a=this.specificationVersion();return new r.JanusEvent(e,[i,a].concat([n].concat(o?[o]:[])))}static specification(){let t=new i.EventSpecificationEntity("10c958f2-247d-46ee-b824-237836efae1b","LandingPage_Select_SocialMediaPlatform_Carousel_Click","fd8120dc-8f7c-47a8-9174-60f10a5f805d","Universal",null);return new o.JanusSchema("iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-3",t.toJSON())}static specificationVersion(){let t=new a.EventSpecificationVersionEntity(0);return new o.JanusSchema("iglu:com.hellofresh/event_specification_version/jsonschema/1-0-0",t.toJSON())}static event(){let t=new c.UserInteractionEvent_v4_0_0("Click","Select","SocialMediaPlatform","Carousel");return new o.JanusSchema("iglu:com.hellofresh/user_interaction/jsonschema/4-0-0",t.toJSON())}static page(){let t=new l.PageEntity_v3_0_0("LandingPage");return new o.JanusSchema("iglu:com.hellofresh/page/jsonschema/3-0-0",t.toJSON())}}e.b=s},203794:function(t,e,n){n.d(e,{E8:function(){return a},h9:function(){return c}});var r=n(26730),o={US:"$",CA:"$",GB:"\xa3",UK:"\xa3",AU:"$",NZ:"$",DE:"â¬",AT:"â¬",BE:"â¬",NL:"â¬",FR:"â¬",LU:"â¬",CH:"CHF",SE:"kr",DK:"kr",NO:"kr",IT:"â¬",JP:"\xa5",IE:"â¬",ES:"â¬",AO:"$",CF:"$",CG:"$",CK:"$",ER:"$",FJ:"$",GN:"\xa3",KN:"$",MR:"$",YE:"$",GQ:"â¬",TO:"â¬",TT:"â¬",TV:"kr",TK:"kr",TZ:"â¬"},i={US:"USD",CA:"CAD",GB:"GBP",UK:"GBP",AU:"AUD",NZ:"NZD",DE:"EUR",AT:"EUR",BE:"EUR",NL:"EUR",FR:"EUR",LU:"EUR",CH:"CHF",SE:"SEK",DK:"DKK",NO:"NOK",IT:"EUR",JP:"JPY",IE:"EUR",ES:"EUR",AO:"AUD",CF:"CAD",CG:"USD",CK:"CAD",ER:"USD",FJ:"USD",GN:"GBP",KN:"USD",MR:"USD",YE:"AUD",GQ:"EUR",TO:"EUR",TT:"EUR",TV:"SEK",TK:"DKK",TZ:"EUR"},a=function(t){return i[(t||"").toUpperCase()]||""},c=function(t,e,n,i,c){if(e)return"".concat(t).concat(e?"%":o[(n||"").toUpperCase()]||"");var l=a(n);return n===r.Z.JP&&(c=null),new Intl.NumberFormat(i,{style:"currency",currency:l,minimumFractionDigits:c>-1?c:t%1==0?0:2,maximumFractionDigits:2}).format(t)}},274309:function(t,e,n){n.d(e,{Ww:function(){return v},X6:function(){return g},mO:function(){return C},Bf:function(){return b},IP:function(){return m},Mq:function(){return y}});var r=n(203794),o=n(285804),i=n.n(o),a=n(235935),c=n.n(a),l="gaEventTrigger",u="gaEventTrigger_EE",s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"freebie_mlp_v1"===t.split("|")[1]},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"raf_lp"===t.split("|")[1]},f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"raf_lp11"===t.split("|")[1]},h=function(t,e){var n=e.utm_source;return f(t)&&"share"===n},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toLowerCase().includes("about|faq")},v=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(h(t,r)){var u=i()(Date.now()),v=c()(Date.now());return{event:l,gaEventCategory:"RAF",gaEventAction:"ClickRedeemDiscount",gaEventLabel:"Helloshare|".concat(e,"|").concat(r.c,"|").concat(u,"-W").concat(v),event_name:"RAF_RedeemDiscountClick",brand:n,tribe:"Conversions",screen:"RAF"}}return s(t)?{event:l,gaEventCategory:"RedeemFreebie",gaEventAction:"ClickViewOurPlans",gaEventLabel:e,gaEventNonInteraction:!1}:d(t)||f(t)?{event:l,gaEventCategory:"CeleryLP",gaEventAction:"ClickGetMyFreeMeal",gaEventLabel:e,gaEventNonInteraction:!1}:p(t)?{event:l,gaEventAction:"CTA",event_name:"Navigation_PageCTAclick",
1screen:"Landing Page",brand:n,tribe:"Conversions Journey",user_action:e,gaEventLabel:e,gaEventCategory:"navigation",gaEventNonInteraction:!1}:{event:l,Campaign:"LandingPageCTA-".concat(t,"-").concat(e),event_name:"Navigation_PageCTAclick",screen:"Landing Page",brand:n,tribe:"Conversions Journey",user_action:o||"LP_getStarted",gaEventCategory:"navigation",gaEventAction:"CTA",gaEventLabel:o||"LP_getStarted",gaEventNonInteraction:!1,sectionType:a||""}},g=function(t){var e,n,r=t.category,o=t.action,i=t.label,a=t.nonInteraction,c=t.fowardToWebView,u=t.eventName,s=void 0===u?"":u,d=t.userAction,f=void 0===d?"":d,h=t.position,p=void 0===h?"":h,v=t.brand,g=void 0===v?"":v,m=t.tribe,y=void 0===m?"":m,b=t.screen,C=void 0===b?"":b,E=t.elementId,w=void 0===E?"":E,S=t.preferencesSelected,x=void 0===S?"":S,_=t.faqCategory,O=void 0===_?"":_,P=t.numberOfPeople,j=void 0===P?"":P,A=(e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({event:l},s&&{event_name:s},f&&{user_action:f},p&&{position:p},g&&{brand:g},y&&{tribe:y},C&&{screen:C},w&&{elementId:w},x&&{preferences_selected:x},O&&{faq_category:O},j&&{n_people:j}),n=n={gaEventCategory:r,gaEventAction:o,gaEventLabel:i,gaEventNonInteraction:void 0!==a&&a},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e);if(void 0!==c&&c){var Z=new CustomEvent("webForwardedAnalyticsEvents",{detail:A});document.dispatchEvent(Z)}return A},m=function(t){var e=t.ctaUrl,n=t.action,r=t.label;if(e.includes("plan-recommendations"))return g({category:"funnel",action:n,label:void 0===r?"":r,nonInteraction:!1})},y=function(t){var e=t.couponCode,n=t.product,o=t.productFamilyHandle,i=t.action,a=t.mealsPreset,c=void 0===a?"":a;if(n&&0!==Object.keys(n).length)return{event:u,gaEventCategory:"funnel",gaEventAction:i,gaEventLabel:"".concat(null==n?void 0:n.handle,"|").concat(c||"none","|").concat(e?"with-coupon":"no-coupon"),ecommerce:{click:{actionField:{currencyCode:(0,r.E8)(null==n?void 0:n.country)},products:[{name:null==n?void 0:n.name,id:null==n?void 0:n.handle,price:null==n?void 0:n.price,brand:"Hellofresh",category:o,variant:c||"none",coupon:e}]}}}},b=function(t){return g({category:"funnel",action:"multiplePreferenceSelect",label:null==t?void 0:t.join("|"),eventName:"SelectPlan_MultiplePreferenceSelect",brand:"HelloFresh",tribe:"Conversions",screen:"Plans",preferencesSelected:null==t?void 0:t.join(",")})},C=function(t){var e=t.couponCode,n=t.product,o=t.productFamilyHandle,i=t.mealsPreset,a=void 0===i?"":i,c=t.isMultiPreferences,l=void 0!==c&&c,s=t.multiPreferences,d=void 0===s?"":s;if(n&&0!==Object.keys(n).length)return{event:u,gaEventCategory:"funnel",gaEventAction:"go to cart",gaEventLabel:"".concat(null==n?void 0:n.handle,"|").concat(l?d||"none":a||"none","|").concat(e?"with-coupon":"no-coupon"),ecommerce:{currencyCode:(0,r.E8)(null==n?void 0:n.country),add:{products:[{name:null==n?void 0:n.name,id:null==n?void 0:n.handle,price:null==n?void 0:n.price,brand:"Hellofresh",category:o,variant:l?d||"none":a||"none",coupon:e,quantity:1}]}}}}},267141:function(t,e,n){n.r(e),n.d(e,{Carousel:function(){return F},default:function(){return B}});var r=n(687800),o=n(827378),i=n(268481),a=n(887824),c=n(768587),l=n(60074),u=n(705230),s=n(52130),d=function(){var t=(0,s.L3)().trackJanusEvent;return{trackSocialMediaCarouselClick:(0,o.useCallback)(function(e){var n=e.label,r=e.position;try{var o=u.b.uiComponent({uiComponentLabel:n,uiComponentPosition:r});t(u.b.janusEvent({uiComponent:o}))}catch(t){(0,l.Tb)(t,{tags:{event:"LandingPage_Select_SocialMediaPlatform_Carousel_Click",component:"useSocialMediaCarouselClickSnowplowEvent"}})}},[t])}},f={maxWidth:1140,transitionDuration:"300ms"},h={itemWidth:340,itemHeight:340},p={postShuffle:function(t){return{label:t,eventName:"Landing_Carrousel_
1Click",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",category:"instagramSection",action:"nextPost"}},instaSectionViewed:{eventName:"Landing_Carrousel_View",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",category:"navigation",action:"scroll",label:"instagramPosts"}},v=n(318066),g=n(277425),m=n(822897),y=n(553911),b=function(t){var e=t.width,n=t.height,o=t.captionVisibility,i=t.item,a=t.opacity;return(0,r.BX)(c.xu,{opacity:void 0===a?1:a,"data-test-id":"instagram-carousel-item",children:[(0,r.BX)(c.xu,{width:e,height:n,position:"relative",children:[(0,r.BX)(c.xu,{borderTopLeftRadius:"global.sm",borderTopRightRadius:"global.sm",background:"linear-gradient(180deg, #242424 0%, rgba(36, 36, 36, 0) 100%)",display:"flex",position:"absolute",zIndex:1,width:e,alignItems:"center",padding:"global.sm-1",children:[(0,r.tZ)(v.ZP,{height:48,width:48,src:(0,g.Z)(i.iconImage||"https://cdn.hellofresh.com/au/cms/contentful/instaicons/fallbackInstagramAccountImage.png",m.b.website),alt:""}),(0,r.tZ)(c.xv,{marginLeft:"global.sm-2",color:"global.white",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-word",strong:!0,children:i.account})]}),i.accountImageUrl&&(0,r.tZ)(v.ZP,{width:e,height:n,style:{borderRadius:"5px"},src:(0,g.Z)(i.accountImageUrl,m.b.website),alt:""})]}),(0,r.BX)(c.xu,{py:["global.sm-2","global.sm-2","global.md-1"],__dangerouslySetCustomCSS:{visibility:o},children:[(0,r.tZ)(c.xv,{type:"body-sm-regular",children:(0,r.tZ)(y.Z,{copy:i.text,hasMarkdown:!0})}),i.translated&&(0,r.tZ)(c.xu,{my:"global.xxs",children:(0,r.tZ)(c.xv,{type:"body-xs-bold",children:(0,r.tZ)(y.Z,{copy:i.translated,hasMarkdown:!0})})})]})]})},C=n(274309);function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,e)||x(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||x(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){if(t){if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}}var _=function(t){var e=t.items,n=function(){!K&&(D||I(!0),$(!0),Z.current&&0===U&&_?(Z.current.style.transitionDuration="0ms",L(_.length-2)):(L(U-1),Z.current&&B<0&&U-1==0&&(Z.current.style.transform="translateX(".concat(Math.abs(B),"px)"))))},l=function(){!K&&(D||I(!0),$(!0),Z.current&&(_&&B<0&&U===_.length-2?(Z.current.style.transitionDuration="0ms",L(0),$(!1)):(B<0&&!K&&"0ms"===Z.current.style.transitionDuration&&(Z.current.style.transitionDuration=f.transitionDuration),L(U+1))))},u=function(){var t=document.documentElement.clientWidth||window.innerWidth;y(t<f.maxWidth?t:f.maxWidth)},s=function(){if(Z.current&&_&&U===_.length-2&&(Z.current.style.transitionDuration="0ms",L(0)),K&&$(!1),D){var t=_[U+1];if(null==t?void 0:t.text){var e=t.text.slice(0,25);h((0,C.X6)(p.postShuffle(e))),v({label:e,position:U+1})}}},h=(0,a.Z)().push,v=d().trackSocialMediaCarouselClick,g=w((0,o.useState)(0),2),m=g[0],y=g[1],E="mobile"===(0,i.Sj)(),x=w((0,o.useState)([]),2),_=x[0],O=x[1],P=w((0,o.useState)(0),2),j=P[0],A=P[1],Z=(0,o.useRef)(null),k=w((0,o.useState)(!1),2),D=k[0],I=k[1],T=w((0,o.useState)(0),2),U=T[0],L=T[1],N=w((0,o.useState)(0),2),M=N[0],R=N[1],F=w((0,o.useState)(0),2),B=F[0],J=F[1],X=w((0,o.useState)(!1),2),K=X[0],$=X[1],H=m&&(E&&Math.floor(.7*m)||!E&&Math.floor(.4*m))||0,G=H&&Math.floor(1.15*H)||0;return(0,o.useEffect)(function(){var t=S(e).concat(S(e)),n=t.slice(t.length-1)[0],r=t.slice(0,1)[0];return t.push(r),t.unshift(n),O(t),window.addEventListener("resize",u),function(){window.removeEventListener("resize",u)}},[]),(0,o.useEffect)(function(){Z.current&&"0ms"===Z.current.style.transitionDuration&&(0===U&&(B<0?Z.current.style.transform="translateX(".concat(Math.abs(B),"px)"):Z.current.style.transitionDuration=f.transitionDuration),_&&U===_.length-2&&(Z.current.style.transitionDuration=f.transitionDuration,L(_.length-3)))},[U,Z.current,B]),(0,o.useEffect)(function(){u()},[e]),(0,o.useEffect)(function(){var t;if(null==Z?void 0:null===(t=Z.current)||void 0===t?void 0:t.children.length){var e=Z.current.children[0].getBoundingClientRect().width;R(e);var n=e-(Z.current.getBoundingClientRect().width-e)/2;J(n),n<0&&(Z.current.style.transform="translateX(".concat(Math.abs(n),"px)"))}},[m]),(0,r.BX)(c.xu,{overflow:"hidden",position:"relative",maxWidth:"1144px",minHeight:"433px",width:"100%","data-test-id":"instagram-section-carousel-devices",children:[(0,r.tZ)(c.xu,{role:"presentation","data-test-id":"leftSideDiv",height:["260px","360px"],width:"".concat((m-M)/2-3,"px"),position:"absolute",zIndex:"999",left:"0",onTouchEnd:function(){return n()},onClick:function(){return n()}}),(0,r.tZ)(c.xu,{role:"presentation","data-test-id":"rightSideDiv",height:["260px","360px"],width:"".concat((m-M)/2-3,"px"),position:"absolute",zIndex:"999",right:"0",onTouchEnd:function(){return l()},onClick:function(){return l()}}),(0,r.tZ)(c.xu,{width:"100%",display:"inline-flex",transform:"translateX(-".concat(B+M*U,"px)"),transitionDuration:"300ms",onTransitionEnd:function(){return s()},role:"list",ref:function(t){t&&(Z.current=t)},children:null==_?void 0:_.map(function(t,e){var o=U+1===e?"visible":"hidden";return(0,r.tZ)(c.xu,{py:"global.sm-1",px:["global.xxs","global.sm-1"],"data-test-id":"
1carousel-list-items","data-test-visibility":o,role:"listitem",onTouchStart:function(t){A(t.changedTouches[0].screenX)},onTouchEnd:function(t){var e=t.changedTouches[0].screenX;j<e&&n(),j>e&&l(),A(0)},children:(0,r.tZ)(b,{captionVisibility:o,opacity:"visible"===o?1:.4,item:t,width:H,height:G})},e)})})]})},O=n(723740),P=n(988402),j=function(t){var e=t.onClick;return(0,r.BX)(c.xu,{position:"absolute",width:"100%",zIndex:1,display:"flex",alignItems:"center",justifyContent:"space-between",height:"100%",children:[(0,r.tZ)(c.xu,{margin:"global.md-1",mb:"global.xxl",children:(0,r.tZ)(c.hU.Secondary,{"data-test-id":"instagram-left-chevron",icon:(0,r.tZ)(O.default,{}),onClick:function(t){return e(t,-1)},"aria-label":"scroll left"})}),(0,r.tZ)(c.xu,{margin:"global.md-1",mb:"global.xxl",children:(0,r.tZ)(c.hU.Secondary,{"data-test-id":"instagram-right-chevron",icon:(0,r.tZ)(P.default,{}),onClick:function(t){return e(t,1)},"aria-label":"scroll right"})})]})};function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,e)||D(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||D(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){if(t){if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(t,e)}}var I=function(t){var e=t.items,n=function(){var t=(m+e.length-1)%e.length;u(_[t],t),y(t)},i=function(){var t=(m+1)%e.length;u(_[t],t),y(t)},l=function(t){v.current&&v.current.scroll({left:0===t||1===t?0:w*t-1.107*w,behavior:"smooth"})},u=function(t,e){if(null==t?void 0:t.text){var n=t.text.slice(0,25);s((0,C.X6)(p.postShuffle(n))),f({label:n,position:e+1})}},s=(0,a.Z)().push,f=d().trackSocialMediaCarouselClick,v=(0,o.useRef)(null),g=Z((0,o.useState)(0),2),m=g[0],y=g[1],E=Z((0,o.useState)(0),2),w=E[0],S=E[1],x=Z((0,o.useState)([]),2),_=x[0],O=x[1];return(0,o.useEffect)(function(){e.length>4?O(k(e.slice(e.length-2)).concat(k(e.slice(0,e.length-2)))):O(e)},[e]),(0,o.useEffect)(function(){l(m)},[m]),(0,o.useEffect)(function(){v.current&&_.length>4?y(2):y(1)},[v.current,_]),(0,o.useEffect)(function(){var t,e,n;(null==v?void 0:null===(e=v.current)||void 0===e?void 0:null===(t=e.children)||void 0===t?void 0:t.length)&&S(null===(n=v.current)||void 0===n?void 0:n.children[1].getBoundingClientRect().width)},[v.current]),(0,r.tZ)(c.xu,{display:"flex",minHeight:["489px","489px","508px"],"data-test-id":"instagram-section-carousel-desktop",justifyContent:"center",width:"100%",children:(0,r.BX)(c.xu,{display:"flex",position:"relative",maxWidth:"1300px",width:"100%",justifyContent:"center",children:[(0,r.tZ)(j,{onClick:function(t,e){v.current&&(1===e?i():n())}}),(0,r.tZ)(c.xu,{width:"100%",maxWidth:"1144px",display:"inline-flex",overflow:"scroll",ref:v,role:"list",__dangerouslySetCustomCSS:{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},children:null==_?void 0:_.map(function(t,e){var n,o;return(0,r.tZ)(c.xu,(n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}
1({"data-test-id":"carousel-list-items",role:"button",tabIndex:0,onClick:function(){return y(e)},onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),y(e))},p:"global.sm-1"},0===e&&{pl:"global.none"},e===_.length-1&&{pr:"global.none"}),o=o={children:(0,r.tZ)(b,{opacity:e===m?1:.4,captionVisibility:m===e?"visible":"hidden",item:t,width:h.itemWidth,height:h.itemHeight})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n})(Object(o)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))}),n),e)})})]})})},T=function(t){var e=t.style;return(0,r.tZ)("svg",{style:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.tZ)("path",{d:"M12 0C8.74 0 8.332 0.015 7.053 0.072C5.775 0.132 4.905 0.333 4.14 0.63C3.33906 0.93102 2.61374 1.40376 2.015 2.015C1.40297 2.6131 0.930114 3.3386 0.63 4.14C0.333 4.905 0.13 5.775 0.072 7.053C0.012 8.333 0 8.741 0 12C0 15.26 0.015 15.668 0.072 16.947C0.132 18.225 0.333 19.097 0.63 19.86C0.936 20.649 1.347 21.32 2.015 21.985C2.6131 22.597 3.3386 23.0699 4.14 23.37C4.905 23.667 5.775 23.87 7.053 23.928C8.333 23.988 8.741 24 12 24C15.26 24 15.668 23.985 16.947 23.928C18.225 23.868 19.097 23.667 19.86 23.37C20.6609 23.069 21.3863 22.5962 21.985 21.985C22.597 21.3869 23.0699 20.6614 23.37 19.86C23.667 19.095 23.87 18.225 23.928 16.947C23.988 15.667 24 15.259 24 12C24 8.74 23.985 8.332 23.928 7.053C23.868 5.775 23.667 4.903 23.37 4.14C23.069 3.33906 22.5962 2.61374 21.985 2.015C21.3869 1.40297 20.6614 0.930114 19.86 0.63C19.095 0.333 18.225 0.13 16.947 0.072C15.667 0.012 15.259 0 12 0ZM12 2.16C15.204 2.16 15.585 2.175 16.85 2.232C18.02 2.286 18.654 2.481 19.077 2.646C19.638 2.864 20.037 3.123 20.457 3.543C20.877 3.963 21.137 4.362 21.354 4.923C21.519 5.346 21.714 5.981 21.768 7.151C21.825 8.416 21.838 8.796 21.838 12C21.838 15.204 21.823 15.585 21.763 16.85C21.703 18.02 21.508 18.654 21.343 19.077C21.1472 19.5971 20.8401 20.0681 20.443 20.457C20.023 20.877 19.618 21.137 19.063 21.354C18.643 21.519 17.999 21.714 16.828 21.768C15.554 21.825 15.178 21.838 11.968 21.838C8.758 21.838 8.383 21.823 7.108 21.763C5.938 21.703 5.294 21.508 4.874 21.343C4.304 21.119 3.914 20.863 3.494 20.443C3.074 20.023 2.804 19.618 2.594 19.063C2.429 18.643 2.234 17.999 2.174 16.828C2.128 15.568 2.114 15.178 2.114 11.983C2.114 8.789 2.128 8.398 2.174 7.123C2.234 5.953 2.429 5.309 2.594 4.888C2.804 4.318 3.074 3.928 3.494 3.508C3.914 3.088 4.304 2.818 4.874 2.608C5.294 2.443 5.924 2.248 7.094 2.188C8.368 2.143 8.744 2.128 11.954 2.128L12 2.16ZM12 5.838C11.1908 5.838 10.3895 5.99739 9.6419 6.30705C8.8943 6.61672 8.215 7.07061 7.64281 7.64281C7.07061 8.215 6.61672 8.8943 6.30705 9.6419C5.99738 10.3895 5.838 11.1908 5.838 12C5.838 12.8092 5.99738 13.6105 6.30705 14.3581C6.61672 15.1057 7.07061 15.785 7.64281 16.3572C8.215 16.9294 8.8943 17.3833 9.6419 17.6929C10.3895 18.0026 11.1908 18.162 12 18.162C13.6343 18.162 15.2016 17.5128 16.3572 16.3572C17.5128 15.2016 18.162 13.6343 18.162 12C18.162 10.3657 17.5128 8.79841 16.3572 7.64281C15.2016 6.48721 13.6343 5.838 12 5.838ZM12 16C10.9391 16 9.92172 15.5786 9.17157 14.8284C8.42143 14.0783 8 13.0609 8 12C8 10.9391 8.42143 9.92172 9.17157 9.17157C9.92172 8.42143 10.9391 8 12 8C13.0609 8 14.0783 8.42143 14.8284 9.17157C15.5786 9.92172 16 10.9391 16 12C16 13.0609 15.5786 14.0783 14.8284 14.8284C14.0783 15.5786 13.0609 16 12 16ZM19.845 5.595C19.845 5.7841 19.8078 5.97136 19.7354 6.14606C19.663 6.32077 19.5569 6.47952 19.4232 6.61323C19.2895 6.74695 19.1308 6.85302 18.9561 6.92539C18.7814 6.99775 18.5941 7.035 18.405 7.035C18.2159 7.035 18.0286 6.99775 17.8539 6.92539C17.6792 6.85302 17.5205 6.74695 17.3868 6.61323C17.253 6.47952 17.147 6.32077 17.0746 6.14606C17.0022 5.97136 16.965 5.7841 16.965 5.595C16.965 5.21309 17.1167 4.84682 17.3868 4.57677C17.6568 4.30671 18.0231 4.155 18.405 4.155C18.7869 4.155 19.1532 4.30671 19.4232 4.57677C19.6933 4.84682 19.845 5.21309 19.845 5.595Z",fill:"#D1414B"})})},U=n(40412),L=n.n(U),N=n(82581);function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}var F=function(t){var e,n=(0,a.Z)().push,l=(0,N.$)().trackFreshFromGramImpression,u="desktop"===(0,i.Sj)(),s=function(t){if(Array.isArray(t))return t}(e=(0,o.useState)(!1))||function(t,e){var n,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(e,2)||function(t,e){if(t){if("string"==typeof t)return M(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(t,2)}}
1(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=s[0],f=s[1];return(0,r.BX)(c.xu,{"data-test-id":"instagram-section-carousel",children:[(0,r.tZ)(c.xu,{children:(0,r.tZ)(L(),{onChange:function(t){!d&&t&&(n((0,C.X6)(p.instaSectionViewed)),l(),f(!0))},children:(0,r.BX)(c.xu,{py:"global.md-2",px:"global.md-1",textAlign:"center",children:[(0,r.BX)(c.xu,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",children:[t.showInstagramIcon&&(0,r.tZ)(T,{style:{width:"24px",height:"24px",margin:"-".concat(u?1:4,"px 8px")}}),(0,r.tZ)(c.xv,{as:"h2",children:(0,r.tZ)(y.Z,{copy:t.title||"",hasMarkdown:!0,config:{ALLOWED_TAGS:["br","i","b"]}})})]}),(0,r.tZ)(c.xu,{p:"global.xs",children:(0,r.tZ)(c.xv,{type:"body-sm-regular",children:(0,r.tZ)(y.Z,{copy:t.description,hasMarkdown:!0})})})]})})}),u?(0,r.tZ)(I,R({},t)):(0,r.tZ)(_,R({},t))]})},B=F}}]);
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.