1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3404],{24022:(e,n,o)=>{o.d(n,{Z:()=>p});var t,i,r=o(43e3),a=o(73464),l=o(66995),s=o(60072),c=l.Ay.div.withConfig({displayName:"BlockContainer__Container",componentId:"sc-u6hw3r-0"})(["background:",";"," width:100%;",""],function(e){return e.backgroundColor||"transparent"},function(e){return e.textColor?"color: ".concat(e.textColor,";"):""},function(e){return e.overflowHidden&&"overflow: hidden;"}),d=l.Ay.div.withConfig({displayName:"BlockContainer__Wrapper",componentId:"sc-u6hw3r-1"})(["padding:0 1rem;margin:0 auto;max-width:1288px !important;"," ",""],(0,a.C9)("md")(t||(t=(0,r.A)(["\n padding: 0 2rem;\n "]))),(0,a.C9)("xl")(i||(i=(0,r.A)(["\n ","\n "])),function(e){if(e.isFeatureProducts)return"\n padding-left: 116px;\n max-width: 1450px !important;\n "})),p=function(e){var n=e.children,o=e.className,t=e.overflowHidden,i=e.isFeatureProducts,r=e.backgroundColor,a=e.textColor,l=e.id;return(0,s.jsx)(c,{id:l,className:"block-container-wrapper",backgroundColor:r,textColor:a,overflowHidden:void 0!==t&&t,children:(0,s.jsx)(d,{className:o,isFeatureProducts:i,children:n||(0,s.jsx)("div",{})})})}},41539:(e,n,o)=>{o.d(n,{Dk:()=>i});var t=o(12429),i=function(e,n){var o,i;return(null==e||null==(o=e.social_shares)?void 0:o.enable_social_shares)?null==e||null==(i=e.social_shares)||null==(i=i.social_shares_items)?void 0:i.map(function(e){var o,i;return(0,t.A)({},null==e?void 0:e.filter_key,r({icon:null==e?void 0:e.icon,url:{href:null==e||null==(o=e.action_link)?void 0:o.href,linktype:"external",text:null==e||null==(i=e.action_link)?void 0:i.title},header:null==e?void 0:e.title,email:(null==e?void 0:e.filter_key)==="email"?{subject:null==e?void 0:e.email_subject,metaTitle:null==n?void 0:n.meta_title,metaDescription:null==n?void 0:n.meta_description}:void 0}))}):[]},r=function(e){return{icon:e.icon,url:{value:{href:e.url.href,text:e.url.text,linktype:e.url.linktype,url:e.url.href}},header:{value:e.header||""},toolTip:{value:e.toolTip||""},email:e.email}}},63404:(e,n,o)=>{o.r(n),o.d(n,{InsurancePromotions:()=>eM});var t,i,r,a,l,s,c,d,p,u,m=o(3632),h=o(91462),x=o(14936),g=o(56189),f=o(78453),y=o(13026),w=o.n(y),C=o(43597),b=o.n(C),_=o(60004),v=o(12429),A=o(36720),j=o(91672),k=o(84010),I=o(23488),T=o(51714),N=o(50926),P=o(41539),z=o(47505),S=o(43e3),L=o(73464),O=o(23452),M=o(66995),D=(0,M.i7)(["from{transform:scale(0.75,0.5625);}to{transform:scale(1,1);}"]),W=(0,M.i7)(["from{opacity:0;}to{opacity:1;}"]),q=M.Ay.div.withConfig({displayName:"PromotionCardstyle__Wrapper",componentId:"sc-113ss53-0"})(["max-width:100%;flex-basis:100%;flex-grow:0;opacity:0;transform:scale(0.75,0.5625);transition:opacity 1250ms cubic-bezier(0.4,0,0.2,1),transform 833ms cubic-bezier(0.4,0,0.2,1);animation:"," 833ms cubic-bezier(0.4,0,0.2,1) forwards,"," 1250ms cubic-bezier(0.4,0,0.2,1) forwards;"],D,W),E=M.Ay.div.withConfig({displayName:"PromotionCardstyle__Container",componentId:"sc-113ss53-1"})(["border-radius:16px;padding:24px;background-color:",";"],g.w.white),F=M.Ay.div.withConfig({displayName:"PromotionCardstyle__Main",componentId:"sc-113ss53-2"})(["display:flex;flex-direction:column;gap:24px;",""],(0,L.C9)("md")(t||(t=(0,S.A)(["\n flex-direction: row;\n "])))),H=M.Ay.img.withConfig({displayName:"PromotionCardstyle__Thumbnail",componentId:"sc-113ss53-3"})(["user-drag:none;user-select:none;border-radius:16px;object-fit:cover;width:100%;height:248px;",""],(0,L.C9)("md")(i||(i=(0,S.A)(["\n width: 312px;\n "])))),G=M.Ay.div.withConfig({displayName:"PromotionCardstyle__ContentArea",componentId:"sc-113ss53-4"})(["display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;width:100%;padding-top:",";",""],function(e){return e.label?"32px":"0"},(0,L.C9)("md")(r||(r=(0,S.A)(["\n width: calc(100% - 434px);\n padding-top: 0;\n "])))),B=M.Ay.div.withConfig({displayName:"PromotionCardstyle__Content",componentId:"sc-113ss53-5"})(["display:flex;flex-flow:column wrap;"]),R=M.Ay.div.withConfig({displayName:"PromotionCardstyle__PromotionType",componentId:"sc-113ss53-6"})(["display:flex;flex-flow:column wrap;"]),U=M.Ay.div.withConfig({displayName:"PromotionCardstyle__InsuranceCategory",componentId:"sc-113ss53-7"})(["font-size:14px;font-weight:450;line-height:18px;color:",";"],g.w.greyDarkest),$=M.Ay.div.withConfig({displayName:"PromotionCardstyle__ProductTitle",componentId:"sc-113ss53-8"})(["font-size:20px;font-weight:500;line-height:30px;color:",";"],g.w.darkGreen),V=M.Ay.div.withConfig({displayName:"PromotionCardstyle__PromotionContent",componentId:"sc-113ss53-9"})(["display:flex;align-items:center;gap:4px;margin:12px 0 24px 0;",""],(0,L.C9)("md")(a||(a=(0,S.A)(["\n margin-bottom: 0;\n "])))),Z=M.Ay.div.withConfig({displayName:"PromotionCardstyle__HighlightText",componentId:"sc-113ss53-10"})(["font-size:16px;font-weight:450;line-height:24px;padding-top:4px;color:",";span{font-size:31px;font-weight:700;line-height:38.75px;color:",";display:block;}h4{font-size:49px;font-weight:700;line-height:61.25px;display:inline-block;margin:0;color:",";}",""],g.w.darkGreen,g.w.orange,g.w.orange,(0,L.C9)("md")(l||(l=(0,S.A)(["\n span {\n display: inline;\n }\n "])))),J=(0,M.Ay)(O.r).withConfig({displayName:"PromotionCardstyle__TagIcon",componentId:"sc-113ss53-11"})(["user-drag:none;user-select:none;"]),K=M.Ay.div.withConfig({displayName:"PromotionCardstyle__PromotionDescription",componentId:"sc-113ss53-12"})(["font-size:16px;font-weight:450;line-height:24px;p{margin-bottom:4px !important;}a{color:",";}color:",";"],g.w.orange,g.w.darkGreen),Q=M.Ay.div.withConfig({displayName:"PromotionCardstyle__PromotionCodeWrapper",componentId:"sc-113ss53-13"})(["display:flex;flex-direction:row;gap:4px;align-items:center;margin-bottom:16px;"]),X=M.Ay.div.withConfig({displayName:"PromotionCardstyle__PromotionCodeTitle",componentId:"sc-113ss53-14"})(["font-size:14px;font-weight:450;line-height:21px;color:",";"],g.w.darkGreen),Y=M.Ay.div.withConfig({displayName:"PromotionCardstyle__PromotionCode",componentId:"sc-113ss53-15"})(["font-size:16px;font-weight:700;line-height:20px;color:",";"],g.w.orange),ee=M.Ay.div.withConfig({displayName:"PromotionCardstyle__ButtonGroup",componentId:"sc-113ss53-16"})(["display:flex;flex-direction:column;gap:16px;width:100%;button{width:100%;}",""],(0,L.C9)("md")(s||(s=(0,S.A)(["\n flex-direction: row;\n "])))),en=M.Ay.div.withConfig({displayName:"PromotionCardstyle__ThumbnailWrapper",componentId:"sc-113ss53-17"})(["position:relative;flex-shrink:0;"]),eo=M.Ay.div.withConfig({displayName:"PromotionCardstyle__CountdownWrapper",componentId:"sc-113ss53-18"})(["position:absolute;top:-8px;left:-8px;z-index:1;border-radius:8px;border:1px solid ",";background:",";padding:8px;display:flex;flex-direction:row;gap:4px;align-items:center;"],g.w.grey,g.w.white),et=M.Ay.div.withConfig({displayName:"PromotionCardstyle__CountdownTitle",componentId:"sc-113ss53-19"})(["font-size:14px;font-weight:700;line-height:18px;color:",";"],g.w.darkGreen),ei=M.Ay.span.withConfig({displayName:"PromotionCardstyle__Timer",componentId:"sc-113ss53-20"})(["font-size:14px;font-weight:700;line-height:18px;color:",";"],g.w.darkGreen),er=M.Ay.div.withConfig({displayName:"PromotionCardstyle__LabelPosition",componentId:"sc-113ss53-21"})(["position:absolute;
1left:24px;top:294px;display:flex;flex-direction:row;gap:16px;height:auto;",""],(0,L.C9)("md")(c||(c=(0,S.A)(["\n top: 24px;\n right: 64px;\n left: unset;\n "])))),ea=M.Ay.div.withConfig({displayName:"PromotionCardstyle__TopRight",componentId:"sc-113ss53-22"})(["position:absolute;right:24px;top:294px;display:flex;flex-direction:row;gap:16px;height:auto;",""],(0,L.C9)("md")(d||(d=(0,S.A)(["\n top: 24px;\n "])))),el=M.Ay.div.withConfig({displayName:"PromotionCardstyle__LabelWrapper",componentId:"sc-113ss53-23"})(["display:inline-flex;padding:4px 12px;justify-content:flex-end;align-items:center;gap:10px;border-radius:4px;background-color:",";"],g.w.orange),es=M.Ay.div.withConfig({displayName:"PromotionCardstyle__LabelTitle",componentId:"sc-113ss53-24"})(["font-size:14px;font-weight:700;line-height:17.5px;color:",";"],g.w.white),ec=M.Ay.div.withConfig({displayName:"PromotionCardstyle__DialogContentWrapper",componentId:"sc-113ss53-25"})(["a{color:",";}img{max-width:100%;border-radius:8px;}"],g.w.orange),ed=M.Ay.div.withConfig({displayName:"PromotionCardstyle__SocialShareWrapper",componentId:"sc-113ss53-26"})(["width:24px;height:24px;> span{width:24px;height:24px;padding:0;}"]),ep=o(60072);function eu(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,t)}return o}function em(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?eu(Object(o),!0).forEach(function(n){(0,v.A)(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):eu(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var eh=function(e){return(0,ep.jsxs)("svg",em(em({},e),{},{children:[(0,ep.jsx)("path",{d:"M8.028 14.23a5.767 5.767 0 0 1-5.76-5.76 5.767 5.767 0 0 1 5.76-5.76 5.767 5.767 0 0 1 5.76 5.76 5.769 5.769 0 0 1-5.76 5.76zm0-10.24c-2.47 0-4.48 2.01-4.48 4.48 0 2.471 2.01 4.48 4.48 4.48 2.47 0 4.48-2.009 4.48-4.48 0-2.47-2.01-4.48-4.48-4.48z",fill:"#E87722"}),(0,ep.jsx)("path",{d:"M9.782 10.771L7.538 9.398a.315.315 0 0 1-.153-.272V5.593a.32.32 0 0 1 .32-.32c.531 0 .96.43.96.96V8.59l1.238.758a.957.957 0 0 1 .317 1.318.318.318 0 0 1-.438.106zM2.427 4.607L2 4.127a.316.316 0 0 1 .029-.45l2.253-1.994a.316.316 0 0 1 .45.028l.426.48a.317.317 0 0 1-.028.452L2.878 4.636a.322.322 0 0 1-.451-.029zM13.12 4.634L10.867 2.64a.322.322 0 0 1-.029-.451l.426-.48a.322.322 0 0 1 .451-.029l2.253 1.994c.131.118.144.32.029.451l-.426.48a.322.322 0 0 1-.451.029z",fill:"#E87722"})]}))};eh.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var ex=_.memo(function(e){var n=e.promotionTime,o=e.promotionTimeTitle,t=e.onRemoveItem,i=e.index,r=(0,_.useState)({days:void 0,hours:void 0,minutes:void 0,seconds:void 0}),a=r[0],l=r[1],s=(0,_.useState)(!1),c=s[0],d=s[1];return(0,_.useEffect)(function(){if(n){var e=window.setInterval(function(){var o=b()(n).diff(b()());if(o<0){d(!0),t(i),window.clearInterval(e);return}var r=b().duration(o,"milliseconds");l({days:Math.floor(r.asDays()),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds()})},1e3);return function(){return window.clearInterval(e)}}},[n,t]),(0,ep.jsx)(_.Fragment,{children:!c&&(0,ep.jsxs)(eo,{children:[(0,ep.jsx)(eh,{}),o&&(0,ep.jsx)(et,{children:o}),(0,ep.jsxs)(ei,{className:"promotion-countdown",children:[!!a.days&&"".concat(a.days,"d - "),a.hours?"".concat(a.hours<10?"0".concat(a.hours):a.hours,"h : "):"00h : ",a.minutes?"".concat(a.minutes<10?"0".concat(a.minutes):a.minutes,"m : "):"00m : ",a.seconds?"".concat(a.seconds<10?"0".concat(a.seconds):a.seconds,"s"):"00s"]})]})})}),eg=_.memo(function(e){var n=e.content,o=e.setPopupOpen,t=(0,_.useContext)(I.A);return(0,ep.jsx)(j.l,{open:!0,lg:8,maxWidth:"lg",disableBackdropClick:!0,transitionDuration:500,onClose:function(){o(!1)},children:(0,ep.jsx)(ec,{children:(0,ep.jsx)("div",{dangerouslySetInnerHTML:{__html:f.Ay.sanitize((0,N.wW)(n,t),{ADD_ATTR:["target"]})}})})})}),ef=_.memo(function(e){var n=e.productTitle,o=e.sharedUrl,t=e.gaLabel,i=(0,_.useContext)(I.A),r=null==i?void 0:i.siteSettings,a=(0,_.useMemo)(function(){return(0,P.Dk)(r,i.seo)},[r,i.seo]);return(0,ep.jsx)(k.T,{sharedItemName:n,shareOptions:a,disablePortal:!1,bgColor:"white",tabIndex:"0",transparent:!0,sharedUrl:o,gaLabelName:t})});let ey=_.memo(function(e){var n,o=w()(e,"data",{}),t=o.uid,i=o.promotionTime,r=o.promotionTimeTitle,a=o.thumbnailImage,l=o.label,s=o.labelTitle,c=o.socialShare,d=o.insuranceCategory,p=o.productTitle,u=o.tagIcon,m=o.highlightText,h=o.description,g=o.popupContent,y=o.promoCodeTitle,C=o.promoCode,b=o.button,v=e.handleSort,j=e.handleFilter,k=e.index,P=(0,_.useContext)(I.A),S=(0,_.useState)(!1),L=S[0],O=S[1],M=(0,_.useCallback)(function(e){e.preventDefault(),O(!0)},[]);return(0,_.useEffect)(function(){var e=document.querySelectorAll("#".concat(t,"-description-").concat(k,' a[href*="[popup]"]'));return e.forEach(function(e){e.addEventListener("click",M)}),function(){e.forEach(function(e){e.removeEventListener("click",M)})}},[v,j,M,k,t]),(0,ep.jsxs)(q,{id:"".concat(e.id),children:[(0,ep.jsx)(E,{children:(0,ep.jsxs)(F,{children:[(0,ep.jsxs)(en,{children:[(0,ep.jsx)(ex,{promotionTime:i,promotionTimeTitle:r,onRemoveItem:e.onRemoveItem,index:k}),(0,ep.jsx)(H,{src:a.url,alt:a.description})]}),(0,ep.jsxs)(G,{label:l,children:[(0,ep.jsxs)(B,{children:[(0,ep.jsxs)(R,{children:[(0,ep.jsx)(U,{children:d}),(0,ep.jsx)($,{children:p})]}),(0,ep.jsxs)(V,{children:[(0,ep.jsx)(J,{icon:u,width:"50px",height:"50px"}),(0,ep.jsx)(Z,{dangerouslySetInnerHTML:{__html:f.Ay.sanitize((0,N.wW)(m,P))}})]}),(0,ep.jsx)(K,{id:"".concat(t,"-description-").concat(k),dangerouslySetInnerHTML:{__html:f.Ay.sanitize((0,N.wW)(h,P))}}),(0,ep.jsxs)(Q,{children:[(0,ep.jsx)(X,{children:y}),(0,ep.jsx)(Y,{children:C})]})]}),(0,ep.jsx)(ee,{children:b.map(function(e,n){return(0,ep.jsx)("a",{href:(0,N.FT)(e.url,P),target:e.openNewTab?"_blank":"_self",rel:"noreferrer",children:(0,ep.jsx)(A.$,{color:"white",onClick:function(){T.Ay.buttonClick({buttonTitle:e.gaLabel||e.title,de
1stinationUrl:e.url,componentName:"InsurancePromotionsCard"}),T.Ay.navigation({event_action:T.v3.button_click,button_title:e.gaLabel||e.title,destination_url:e.url,componentName:"InsurancePromotionsCard"})},children:e.title},n)})})})]}),(0,ep.jsx)(er,{children:l&&(0,ep.jsx)(el,{children:(0,ep.jsx)(es,{children:s})})}),(0,ep.jsx)(ea,{children:c&&(0,ep.jsx)(ed,{children:(0,ep.jsx)(ef,{productTitle:p,sharedUrl:"".concat((0,z.UC)((null==(n=(0,x.zk)())||null==(n=n.location)?void 0:n.toString())||""),"%23").concat(e.id),gaLabel:w()(b,"[0].gaLabel","")})})})]})}),g&&L&&(0,ep.jsx)("div",{children:(0,ep.jsx)(eg,{content:g,setPopupOpen:O})})]})});var ew=o(65440),eC=o(24022),eb=M.Ay.div.withConfig({displayName:"indexstyle__Wrapper",componentId:"sc-y5hqcl-0"})(["padding:32px 0 64px 0;background-color:",";"],function(e){return e.backgroundColor}),e_=(0,M.Ay)(eC.Z).withConfig({displayName:"indexstyle__StyledBlockContainer",componentId:"sc-y5hqcl-1"})(["background-color:transparent;"]),ev=M.Ay.div.withConfig({displayName:"indexstyle__ActionHeaderWrapper",componentId:"sc-y5hqcl-2"})(["display:flex;justify-content:space-between;margin-bottom:40px;flex-direction:column-reverse;gap:16px;align-items:flex-start;",""],(0,L.C9)("md")(p||(p=(0,S.A)(["\n flex-direction: row;\n align-items: center;\n gap: 0;\n "])))),eA=M.Ay.div.withConfig({displayName:"indexstyle__FilterWrapper",componentId:"sc-y5hqcl-3"})(["display:flex;align-items:stretch;flex-direction:row;flex-wrap:wrap;gap:8px;"]),ej=M.Ay.div.withConfig({displayName:"indexstyle__FilterButton",componentId:"sc-y5hqcl-4"})(["display:inline-block;padding:6px 12px;cursor:pointer;color:",";background-color:transparent;font-style:normal;font-weight:700;line-height:20px;border-radius:4px;min-height:unset;min-width:unset;border:2px solid ",";text-align:center;user-select:none;:hover{color:",";background-color:",";box-shadow:0px 2px 4px rgba(0,0,0,0.2);}transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,-webkit-box-shadow 0.15s ease-in-out;"],g.w.orange,g.w.orange,g.w.white,g.w.orange),ek=(0,M.Ay)(ej).withConfig({displayName:"indexstyle__SelectedFilterButton",componentId:"sc-y5hqcl-5"})(["background-color:",";color:",";"],g.w.orange,g.w.white),eI=M.Ay.div.withConfig({displayName:"indexstyle__SortWrapper",componentId:"sc-y5hqcl-6"})(["display:flex;align-items:baseline;gap:4px;padding:5px 12px;cursor:pointer;border:2px solid ",";border-radius:4px;:hover{background-color:rgba(232,119,34,0.2);border-radius:4px;}",""],g.w.orange,(0,L.C9)("md")(u||(u=(0,S.A)(["\n border: none;\n border-radius: 0;\n padding: 5px 4px;\n "])))),eT=(0,M.Ay)(ew.A).withConfig({displayName:"indexstyle__StyledMenu",componentId:"sc-y5hqcl-7"})([".MuiMenu-paper{box-shadow:0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12);}.MuiMenu-list{padding:8px 0;}.MuiListItem-root:hover{color:",";background-color:",";}"],g.w.white,g.w.orange);(0,M.Ay)(h.A).withConfig({displayName:"indexstyle__StyledMenuItem",componentId:"sc-y5hqcl-8"})(["",""],function(e){return e.active&&(0,M.AH)([".MuiListItem-root{color:",";background-color:",";}"],g.w.white,g.w.orange)});var eN=(0,M.Ay)(O.r).withConfig({displayName:"indexstyle__SortIcon",componentId:"sc-y5hqcl-9"})(["color:",";"],g.w.orange),eP=M.Ay.div.withConfig({displayName:"indexstyle__SortTitle",componentId:"sc-y5hqcl-10"})(["font-size:16px;font-weight:400;line-height:24px;color:",";"],g.w.darkGreen),ez=M.Ay.div.withConfig({displayName:"indexstyle__Description",componentId:"sc-y5hqcl-11"})(["font-size:16px;font-weight:450;line-height:24px;color:",";span{font-size:16px;font-weight:700;line-height:24px;}margin-bottom:12px;"],g.w.darkGreen),eS=M.Ay.div.withConfig({displayName:"indexstyle__PromotionCardWrapper",componentId:"sc-y5hqcl-12"})(["display:flex;flex-direction:column;gap:16px;"]),eL=function(e,n){return e?e.replace(/\{\{number\}\}/g,function(e){return"{{number}}"===e?"<span>".concat(n,"</span>"):e}):""},eO=function(e){var n,o=null==e||null==(n=e.data)||null==(n=n.reference)?void 0:n[0];return o?{backgroundColor:w()(o,"background_color",g.w.grey50),sortIcon:(0,x.$h)(w()(o,"sort_icon","")),sortTitle:w()(o,"sort_title",""),sortOptions:w()(o,"sort_options",[]).map(function(e){var n;return{value:e.value,title:(n=e.title)?n.replace(/_/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()}):""}}),description:w()(o,"description",""),promotionCardList:w()(o,"promotion_card_list",[]).map(function(e){var n;return{uid:w()(e,"uid",""),promotionTime:w()(e,"promotion_time",""),promotionTimeTitle:w()(e,"promotion_time_title",""),thumbnailImage:{url:(0,x.$h)(w()(e,"thumbnail_image.url","")),description:w()(e,"thumbnail_image.description","")},label:w()(e,"label",!1),labelTitle:w()(e,"label_title",""),socialShare:w()(e,"social_share",!0),insuranceCategory:w()(e,"insurance_category.[0].title",""),productTitle:w()(e,"product_title",""),tagIcon:(0,x.$h)(w()(e,"tag_icon","")),highlightText:(n=w()(e,"highlight_text",""))?n.replace(/[<>\\]|[\[\]]/g,function(e){return({"<":"<span>",">":"</span>","[":"<h4>","]":"</h4>","\\":"<br/>"})[e]||e}):"",description:w()(e,"description",""),popupContent:w()(e,"pop_up_content",""),promoCodeTitle:w()(e,"promo_code_title",""),promoCode:w()(e,"promo_code",""),button:w()(e,"button",[]).map(function(e){return{title:w()(e,"title",""),gaLabel:w()(e,"ga_label",""),url:w()(e,"url",""),openNewTab:w()(e,"open_new_tab",!1)}})}}).filter(function(e){return b()(e.promotionTime).isAfter(b()())})}
1:{backgroundColor:"",sortIcon:"",sortTitle:"",sortOptions:[],description:"",promotionCardList:[]}},eM=function(e){var n=eO(e),o=n.backgroundColor,t=n.sortIcon,i=n.sortTitle,r=n.sortOptions,a=n.description,l=n.promotionCardList,s=(0,_.useState)(null),c=s[0],d=s[1],p=(0,_.useMemo)(function(){return l.reduce(function(e,n){return n.insuranceCategory&&!e.includes(n.insuranceCategory)&&e.push(n.insuranceCategory),e},[])},[l]),u=(0,_.useState)(l),x=u[0],g=u[1],y=(0,_.useState)(eL(a,x.length)),w=y[0],C=y[1],v=(0,_.useState)([]),A=v[0],j=v[1],k=(0,_.useState)(!1),I=k[0],T=k[1],N=(0,_.useCallback)(function(e){var n=(0,m.A)(l);n[e].uid="",g(n),C(eL(a,n.filter(function(e){return e.uid}).length))},[]),P=(0,_.useCallback)(function(e){e.preventDefault();var n=e.target.innerText,o=A.includes(n)?A.filter(function(e){return e!==n}):[].concat((0,m.A)(A),[n]);if(j(o),0===o.length){g(l),C(eL(a,l.length));return}var t=l.filter(function(e){return o.includes(e.insuranceCategory)});g(t),C(eL(a,t.length))},[A,x]),z=(0,_.useCallback)(function(e){d(e.currentTarget)},[]),S=(0,_.useCallback)(function(){d(null)},[]),L=(0,_.useCallback)(function(){I?(g((0,m.A)(l)),j([]),T(!1)):(g(x.sort(function(e,n){return b()(e.promotionTime).diff(b()(n.promotionTime))})),T(!0)),S()},[I,x]),O=(0,_.useCallback)(function(e){return A.includes(e)},[A]);return(0,ep.jsx)(eb,{backgroundColor:o,children:(0,ep.jsxs)(e_,{children:[(0,ep.jsxs)(ev,{children:[(0,ep.jsx)(eA,{children:p.map(function(e,n){return e&&O(e)?(0,ep.jsx)(ek,{onClick:function(e){return P(e)},children:e},"filter-insurance-category-".concat(n)):e&&!O(e)?(0,ep.jsx)(ej,{onClick:function(e){return P(e)},children:e},"filter-insurance-category-".concat(n)):void 0})}),(0,ep.jsxs)(eI,{onClick:function(e){return z(e)},children:[(0,ep.jsx)(eN,{icon:t,width:"24px",height:"24px"}),(0,ep.jsx)(eP,{children:i})]}),(0,ep.jsx)(eT,{id:"promotion-sort-menu",onClose:S,anchorEl:c,open:!!c,anchorOrigin:{vertical:-42,horizontal:"right"},transformOrigin:{vertical:-42,horizontal:"right"},children:r.map(function(e,n){return(0,ep.jsx)(h.A,{onClick:L,children:e.title},"sort-option-".concat(n))})})]}),(0,ep.jsx)(ez,{dangerouslySetInnerHTML:{__html:f.Ay.sanitize(w)}}),(0,ep.jsx)(eS,{children:x.map(function(e,n){if(e.uid)return(0,ep.jsx)(ey,{id:"".concat(e.uid,"-promotion-card-").concat(n),data:e,onRemoveItem:function(){N(n)},index:n,handleSort:L,handleFilter:P},"".concat(e.uid,"-promotion-card-").concat(n))})})]})})}},84010:(e,n,o)=>{o.d(n,{T:()=>r});var t=o(38754),i=o(2182);o(60004),o(90324),o(10087),o(13026),o(43724),o(84033),o(6836),o(16471),o(14770);var r=(0,i.w)(t.S)}}]); 2//# sourceMappingURL=3404.4b8321774d3a0732.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.