1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1415],{31415:function(e,t,l){l.r(t),l.d(t,{NudgeModal:function(){return NudgeModal}});var n=l(85893),a=l(44124),s=l(52824),r=l(32714),o=l(61941),i=l(15600),c=l(85060),d=l(49472),w=l(57890),m=l(70776),u=l(95072),p=l(79401),x=l(67294),h=l(57632),N=l(83538),g=l(35211);let NudgeModal=e=>{var t;let{heading:l,body:f,campaignId:k,campaignName:C,ctaHref:j,ctaLabel:v,disclaimer:_,icon:b}=e,{dismissNudge:y,isOpen:I}=(0,N.H)(null!==(t=null!=k?k:C)&&void 0!==t?t:l),E=(0,x.useRef)((0,h.Z)()),{ref:L,inView:T}=(0,g.n)(I),D=[...k?[{key:"campaignID",value:k}]:[],...C?[{key:"campaignName",value:C}]:[]],handleClickTracking=()=>{let e=(0,p.p)(j)?"INTERNALLINK":"EXTERNALLINK";(0,w.j)({properties:{actionOutcome:e,correlationId:E.current,customDimensions:[{key:"linkUrl",value:j},...D],product:{location:"NUDGE_MODAL",name:l,position:0,productId:E.current,text:v}},type:"ProductClicked"})},handleCloseTracking=()=>{(0,w.j)({properties:{actionOutcome:"CLOSE",correlationId:E.current,webElement:{elementType:"MODAL",location:"NUDGE_MODAL",name:l,position:"0",text:"X"}},type:"ElementClicked"})};(0,x.useEffect)(()=>{T&&I&&(0,w.j)({properties:{customDimensions:[{key:"linkUrl",value:j},...D],product:{location:"NUDGE_MODAL",name:l,position:0,productId:E.current,text:v},viewCorrelationId:E.current},type:"ProductViewed"})},[T,I]);let M={airlines:{Component:a.F,className:"tw-h-[74px] tw-w-[139px]"},cards:{Component:s.U,className:"tw-h-[64px] tw-w-[116px]"},cruise:{Component:r.A,className:"tw-h-[72px] tw-w-[110px]"},hotel:{Component:o.Z,className:"tw-h-[59px] tw-w-[90px]"},none:{},travel:{Component:c.z,className:"tw-h-[64px] tw-w-[98px]"}},{Component:A,className:O}=M[null!=b?b:"none"];return I?(0,n.jsxs)("div",{className:"tw-fixed tw-bottom-0 tw-right-0 tw-z-tooltip tw-w-full tw-overflow-hidden tw-rounded-t-2xl tw-bg-white tw-shadow-lg md:tw-max-w-[26rem] md:tw-rounded-2xl",id:"nudge-modal",ref:L,children:[(0,n.jsxs)("div",{className:"tw-relative tw-bg-teal-3",children:[(0,n.jsx)(i.F,{}),(0,n.jsx)("div",{className:"tw-absolute tw-right-0 tw-top-0 tw-z-10 tw-mr-2 tw-mt-1 tw-scale-50",children:(0,n.jsx)(u.Z,{hexColor:"#ffffff",onClick:()=>{y(),handleCloseTracking()},srText:"Close"})})]}),(0,n.jsxs)("div",{className:"tw-max-w-4/5 tw-p-6 tw-pb-0",children:[(0,n.jsx)("h3",{className:"tw-heading-6 tw-text-teal-4",dangerouslySetInnerHTML:{__html:l}}),(0,n.jsx)("p",{className:"tw-text-md-regular tw-mt-2 tw-text-teal-4",dangerouslySetInnerHTML:{__html:f}}),(0,n.jsxs)("div",{className:"tw-mt-6 tw-flex tw-items-center tw-gap-x-4",children:[(0,n.jsx)("a",{className:"tw-btn tw-btn-small tw-btn-secondary",href:j,onClick:()=>handleClickTracking(),...(0,p.p)(j)?{}:{rel:"noreferrer nofollow",target:"_blank"},children:v}),_?(0,n.jsx)("div",{className:"tw-text-sm-regular",dangerouslySetInnerHTML:{__html:(0,d.Z)(_)}}):null]})]}),(0,n.jsx)("div",{"aria-hidden":!A,className:A?"tw-flex tw-justify-end":"tw-h-6",children:A?(0,n.jsx)(A,{className:O}):null}),(0,n.jsx)(m.Y,{customId:"nudge-modal-".concat(l.replace(/[^a-zA-Z]/g,"")),isVisible:I})]}):null}}}]);
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.