import{ao as e,bT as b,o as u,bg as l,p as g,E as a,W as c,dI as j,r as d,d7 as f,aq as r,b5 as p,bb as V,du as w,v as N,dJ as A,de as L}from"./app-k0jcl5PQ.js";import{V as k}from"./BhYYYlpK.chunk.js";const O="_video_x45yw_1",P="_button_x45yw_5",T="_content_x45yw_9",_="_partialHighlight_x45yw_14",o={video:O,button:P,content:T,partialHighlight:_};function H(){return e.jsx("div",{className:`w-100 ${o.partialHighlight}`,children:e.jsxs("div",{className:"row gx-3 h-100",children:[e.jsx("div",{className:"col-lg-3 col-sm-5 col-12 align-self-start",children:e.jsx("div",{className:`rounded-3 ${o.video} partial-loading-background`})}),e.jsxs("div",{className:"col-lg-9 col-sm-7 col-12 d-flex flex-column justify-content-between",children:[e.jsx("div",{className:`${o.content} rounded-3 overflow-hidden mt-lg-0 mt-2 partial-loading-background`}),e.jsxs("div",{children:[e.jsx("div",{className:`${o.button} rounded-3 partial-loading-background me-2 d-inline-block`}),e.jsx("div",{className:`${o.button} rounded-3 partial-loading-background me-2 d-inline-block`})]})]})]})})}function U(i){return i.appLink?e.jsx(k,{video:i.video,commonVideoProps:i.commonVideoProps,appLink:i.appLink,analyticsOptions:{...i.analyticsOptions,location:i.locationContext},imageOptions:{size:b.Medium},type:"static",size:"sm",hideDuration:!0,hideRating:!0,hideBottomBar:!0,alwaysShowIcon:!0}):e.jsx("a",{href:i.redirectUrl,target:"_blank",onClick:()=>{var n;u.logUserAction({videoId:(n=i.video)==null?void 0:n.id},{...i.analyticsOptions,location:i.locationContext})},children:e.jsx(k,{video:i.video,imageOptions:{size:b.Medium},type:"cosmetic",size:"sm",hideDuration:!0,hideRating:!0,hideBottomBar:!0})})}const m="shared.videoHighlight",D={actionType:d.Click,descriptor:A.DismissWidget,entity:a.Widget,eventVersion:l.V1,location:g.VideoHighlight,workflowPhase:c.Complete},h={actionType:d.Click,descriptor:j.ViewOriginalVideo,workflowPhase:c.Complete,entity:a.Thumbnail,location:g.VideoHighlight,eventVersion:l.V1},I={actionType:d.Click,location:g.VideoHighlight,entity:a.AppLink,workflowPhase:c.Complete,descriptor:j.OpenInClickView,eventVersion:l.V1},$={actionType:d.Click,descriptor:L.SeeMore,workflowPhase:c.Complete,entity:a.AppLink,eventVersion:l.V1};function S(i){var x,v;if(!i.video)return e.jsx(e.Fragment,{});function n(){var t;u.logUserAction({videoId:(t=i.video)==null?void 0:t.id},D),i.onDismiss()}function s(t,y,C={}){u.logUserAction(C,y),typeof t=="string"?w.PageLoad(t,!0):N.trigger(t)}return i.video?e.jsxs("div",{className:`position-relative p-3 rounded-3 ${i.bgColorClassName??""}`,children:[e.jsxs("div",{className:"row gx-3",children:[e.jsx("div",{className:"col-lg-3 col-sm-5 col-12 align-self-start",children:e.jsx(U,{video:i.video,analyticsOptions:h,appLink:i.appLink,redirectUrl:i.redirectUrl,commonVideoProps:i.commonVideoProps,locationContext:i.locationContext})}),e.jsxs("div",{className:"col-lg-9 col-sm-7 col-12 d-flex flex-column justify-content-between",children:[e.jsxs("div",{className:"overflow-hidden mt-lg-0 mt-2",children:[e.jsx(f,{children:e.jsx("span",{onClick:()=>s(i.sharedPlaylistAppLink??i.redirectPlaylistUrl,I),className:"cursor-pointer",children:i.subtitle})}),e.jsx("div",{className:"h5 mb-0 clamp-1 d-block",children:e.jsx("span",{onClick:()=>s(i.appLink??i.redirectUrl,h),className:"cursor-pointer",children:(x=i.video)==null?void 0:x.name})}),e.jsx("div",{className:"mt-1 mb-2",children:((v=i.video)==null?void 0:v.description)??i.description})]}),e.jsxs("div",{children:[e.jsx("button",{className:"btn btn-dark me-2",onClick:()=>{var t;return s(i.appLink??i.redirectUrl,h,{videoId:(t=i.video)==null?void 0:t.id})},children:e.jsx(r,{namespace:m,phrase:"watch"})}),e.jsx("button",{className:"btn btn-outline-dark me-2",onClick:()=>s(i.supportArticle,{...$,location:i.locationContext},{url:i.supportArticle}),children:e.jsx(r,{namespace:m,phrase:"learnMore"})}),e.jsx("div",{className:"btn btn-outline-dark d-sm-none",onClick:n,children:e.jsx(r,{namespace:m,phrase:"dismiss"})})]})]})]}),e.jsx("div",{className:"position-absolute top-0 end-0 p-2 d-sm-inline d-none",children:e.jsx(p,{svg:V,onClick:n})})]}):e.jsx("div",{className:`position-relative p-3 rounded-3 ${i.bgColorClassName??""}`,children:e.jsx(H,{})})}export{S as V};
//# sourceMappingURL=BwdPieA0.chunk.js.map
