initial commit

This commit is contained in:
Thomas
2024-05-05 19:02:45 +02:00
commit 365e7d79bf
867 changed files with 465505 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[8092],{28092:(e,t,a)=>{a.r(t),a.d(t,{default:()=>k});var s=a(50959),d=a(42240),n=(a(86277),a(69736)),i=a(16601),l=a(23128),r=a(68989),o=a(84231),c=a(11317),h=a(85648),u=a(60046),v=a(24071),x=a(18982),b=a(19934),g=a(19930);const m="hfqIVj1Uq2_MEUCyMms_",_="eZiwIWjLcgezw4G4FF4U";var f=a(11527);const w="40px",p=({leavebehinds:e})=>{let t;return 1===e.length&&(t=(0,f.jsx)(n.x,{variant:"bodySmallBold",semanticColor:"textBase",children:e[0].advertiser})),2===e.length&&(t=h.ag.get("podcast-ads.recent_ads_just_two",(0,f.jsx)(n.x,{variant:"bodySmallBold",semanticColor:"textBase",children:e[0].advertiser}),(0,f.jsx)(n.x,{variant:"bodySmallBold",semanticColor:"textBase",children:e[1].advertiser}))),e.length>2&&(t=h.ag.get("podcast-ads.recent_ads_more_than_two",(0,f.jsx)(n.x,{variant:"bodySmallBold",semanticColor:"textBase",children:e[0].advertiser}),(0,f.jsx)(n.x,{variant:"bodySmallBold",semanticColor:"textBase",children:e[1].advertiser}))),(0,f.jsxs)(n.x,{variant:"bodySmall",semanticColor:"textSubdued","data-testid":"show-leavebehinds-text",children:[h.ag.get("podcast-ads.recent_ads_from"),t]})},j=({leavebehinds:e,uri:t,surface:a})=>{const d=(0,v.s4)();if((0,s.useEffect)((()=>{t&&e.length>0&&d.send((0,o.a)({leavebehind_request_id:e[0].requestId,event:"event_viewed",event_reason:`viewed_on_${(0,x.OO)(a).toLowerCase()}`,surface:(0,x.OO)(a),uri:t}))}),[d,e,t,a]),0===e.length)return null;const r=(0,c.EC)(t)?.id,j=1===e.length?e[0].clickthroughUrl:(0,b.D)(r),C=g.Jw,B=e.length>C,k=e.length-(C-1),I=e.slice(0,B?C-1:C);return(0,f.jsx)(u.default,{to:j,pathname:e.length>1?j:void 0,state:{uri:t},className:_,onClick:()=>d.send((0,o.a)({leavebehind_request_id:e[0].requestId,event:"event_clicked",event_reason:"cta_see_all",surface:(0,x.OO)(a),uri:t})),"data-testid":"show-leavebehinds-container",children:(0,f.jsx)(i.w,{layout:"wide",variant:"tinted",size:"xl",id:"show-leavebehinds",title:(0,f.jsxs)("div",{className:m,"data-testid":"show-leavebehinds-logos-container",children:[I.map((e=>(0,f.jsx)(l.d,{"data-testid":"show-leavebehind-image",src:e.displayImage.src,alt:e.displayImage.alt,imageHeight:w,imageWidth:w},e.adId))),B?(0,f.jsx)(y,{"data-testid":"show-leavebehinds-more-count-indicator",variant:"tinted",minBlockSize:w,borderRadius:"4px",padding:"6px",children:(0,f.jsx)(n.x,{variant:"bodyMedium","data-testid":"show-leavebehinds-more-count-indicator-text",children:h.ag.get("podcast-ads.show_more_indicator",k)})}):null]}),body:(0,f.jsx)(p,{leavebehinds:e})})})};var y=(0,d.ZP)(r.x).withConfig({displayName:"LeavebehindsPreview___StyledBox",componentId:"sc-f5rbik-0"})({backgroundColor:"#121212",width:"40px",display:"flex",alignItems:"center",justifyContent:"center"}),C=a(45883);const B=x.Tg.SHOW_PAGE;function k({uri:e}){const{data:t,error:a,getLeavebehinds:d}=(0,C.Z)({surface:B,uri:e});(0,s.useEffect)((()=>{d()}),[d]);const n=(0,s.useMemo)((()=>t?(0,g.D7)(t,e):[]),[t?.requestId]);return a||t?.leavebehindAds&&t?.leavebehindAds?.length<1?null:(0,f.jsx)(j,{leavebehinds:n,uri:e,surface:B})}}}]);
//# sourceMappingURL=8092.js.map