1import{g as w,h as G,c as S,j as s}from"./vendor-DbsMbOVk-1789482017689.js";import{z as Q,cs as d,j as Z,F as J,U as u,ct as O,d3 as K,d4 as X,cZ as Y,ac as a,ad as c,ah as t,k as o}from"./main-DrgE7FAP.js";import{N as f}from"./NotificationVideo-DluWTE6A-1789482018415.js";import{u as n}from"./useNotificationHandlers-ld3ZEMjW-1789482018415.js";import{A as i}from"./AnimatedCounter-Vb_4pUQF-1789482018399.js";import"./crypto-js-CJJSxndp-1789482017351.js";import"./lodash-ByDCjXp0-1789482017690.js";import"./framer-motion-D1KBGWJk-1789482017653.js";import"./shield-js-npm-CZORHk4v-1789482017809.js";import"./pako-CFLZ4Bv7-1789482017761.js";import"./useShowMyProfileUntilUnmount-DAp-p5xG-1789482018408.js";const m=2,ee=303*m,se=154*m,re=472*m,le=240*m,Ce=({notification:e,skipReadNotificationCall:P})=>{var y,N,k,C,U,T,_,g,L,B,A,v,D,M,R,V,I,E,$;const{t:z}=w(),{handleAcceptButtonClick:b,handleCloseButtonClick:F}=n(e,P),x=G({query:`(min-width: ${o.isDesktop}px)`}),p=(N=(y=e==null?void 0:e.style)==null?void 0:y.externalVideoUrl)==null?void 0:N[x?"desktop":"mobile"],h=(C=(k=e==null?void 0:e.style)==null?void 0:k.internalVideoUrl)==null?void 0:C[x?"desktop":"mobile"],j=r=>{var l,H;if(!(p||h||!((l=e==null?void 0:e.style)!=null&&l.bannerResourceLocation)))return s.jsx("div",{className:"mb-3",children:s.jsx("img",{className:"modal-terms__banner",src:`${a.CDN_IMAGE_API}${c(r==="desktop"?re:ee,r==="desktop"?le:se)}${t.NOTIFICATIONS_MODULE}/${(H=e==null?void 0:e.style)==null?void 0:H.bannerResourceLocation}`})})},W=((U=e.button)==null?void 0:U.buttonUrl)||!Q(e.buttons),q=S("mt-4 mb-2",e!=null&&e.buttons&&((T=e.buttons)==null?void 0:T.length)==1||(_=e==null?void 0:e.button)!=null&&_.buttonUrl&&!(e!=null&&e.buttons)?"d-flex-center":"modal-terms__actions");return s.jsxs(d,{visible:!0,className:"modal-terms",children:[s.jsx(d.Close,{closeText:z(Z.OffersTab.closeBtn),closeAction:F}),s.jsxs(d.Body,{className:"modal-terms-scrollbars",children:[e!=null&&e.header||(g=e==null?void 0:e.style)!=null&&g.iconResourceLocation?s.jsxs(J.AC,{className:"mb-2",children:[((L=e==null?void 0:e.style)==null?void 0:L.iconResourceLocation)&&s.jsx(u.SVGCDN,{className:"modal-terms__title-icon",icon:(B=e==null?void 0:e.style)==null?void 0:B.iconResourceLocation}),(e==null?void 0:e.header)&&s.jsx(O.Title,{hasAccent:!0,text:e.header})]}):null,(e==null?void 0:e.subheader)&&s.jsx(O.Title,{className:"mt-2 mb-3",text:e.subheader}),s.jsx(K,{children:j("mobile")}),s.jsx(X,{children:j("desktop")}),((A=e==null?void 0:e.style)==null?void 0:A.counterTime)&&s.jsx(i,{expire:(v=e==null?void 0:e.style)==null?void 0:v.counterExpire,text:(D=e==null?void 0:e.style)==null?void 0:D.counterLabel,date:(M=e==null?void 0:e.style)==null?void 0:M.counterTime,counterLabelColor:(R=e==null?void 0:e.style)==null?void 0:R.counterLabelColor}),s.jsx("div",{className:"modal-terms__text",children:s.jsx(Y,{html:(e==null?void 0:e.message)||"",options:{trim:!0}})}),s.jsx(f,{className:"modal-terms__video",hasVideoCover:(V=e==null?void 0:e.style)==null?void 0:V.hasVideoCover,externalVideoUrl:p,internalVideoUrl:h,bannerResourceLocation:(I=e==null?void 0:e.style)==null?void 0:I.bannerResourceLocation}),W&&s.jsxs("div",{className:q,children:[!e.buttons&&((E=e.button)==null?void 0:E.buttonUrl)&&s.jsx(u.Button,{size:"lg",onClick:()=>{var r;return b((r=e.button)==null?void 0:r.buttonUrl)},text:($=e.button)==null?void 0:$.buttonText}),e.buttons&&e.buttons.map((r,l)=>s.jsx(u.Button,{style:{background:r.backgroundButton,color:r.buttonTextColor},size:"lg",onClick:()=>b(r.buttonUrl),text:r.buttonText},l))]})]})]})};export{Ce as default};
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.