1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cb6595ce-b9cb-45c3-9cfe-250b08be3339",e._sentryDebugIdIdentifier="sentry-dbid-cb6595ce-b9cb-45c3-9cfe-250b08be3339")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4489],{81066:function(e,t,i){i.r(t),i.d(t,{BaseModalEmbed:function(){return p},EmbedModal:function(){return g}});var a=i(27573),n=i(7653),d=i(65123),l=i(87590),o=i.n(l),s=i(96),r=i(8794),c=i(78399),m=c.default.div.withConfig({componentId:"sc-d980f54d-0"})(["",""],e=>{let{theme:{space:t,color:i,radius:a}}=e;return(0,c.css)([".body{display:flex;flex-direction:column;justify-content:center;align-items:center;align-self:stretch;padding:"," 0px;gap:",";&.amp{padding-bottom:6px;}.code-section{width:100%;.input-box{direction:ltr;background:",";border:0.66px solid ",";border-radius:",";min-height:70px;padding:10px;word-break:break-all;}.copy-input{.input-wrapper{> textarea{line-height:2;font-weight:300;font-variation-settings:'wght' 300;font-size:0.93em;color:",";}}}}}.list-item{display:flex;justify-content:flex-start;align-items:center;align-self:stretch;gap:8px;height:40px;padding:"," 0px;&.start-time{justify-content:space-between;}}"],t.sm,t.md,i.background[0],i.background[10],a.md,i.background[60],t.xs)});let u=c.default.div.withConfig({componentId:"sc-d980f54d-1"})(["",""],e=>{let{theme:{space:t,color:i},$width:a,$imageSrc:n}=e;return(0,c.css)(["align-self:stretch;width:","px;height:100%;background-repeat:no-repeat;background-position:center;background-size:cover;background-color:",";background-image:url('","');.header{display:flex;flex-direction:row;justify-content:space-between;padding:",";align-items:center;align-self:stretch;background:linear-gradient( 180deg,rgba(0,0,0,0.7) 16.13%,rgba(0,0,0,0.5) 44.52%,rgba(0,0,0,0.3) 72.48%,rgba(0,0,0,0) 100% );color:",";&.timerOnly{justify-content:flex-end;}.head{display:flex;justify-content:flex-end;align-items:center;gap:17.71px;}.timer{display:flex;padding:6.64px 13.28px;justify-content:center;align-items:center;gap:11.07px;border-radius:55.35px;background:rgba(0,0,0,0.3);}}"],a,i.background.light10,n,t.md,i.natural.white.white)}),p=e=>{var t,i;let{showModal:l,onClose:o,customUid:c,poster:p,width:g=550}=e,{t:y}=(0,d.$G)(),b=(0,s.UOt)(),h=(0,s.nuJ)(),f=c||b,{ssVideoData:x,csVideoData:v}=(0,s.GY_)(f),j=(null==x?void 0:null===(t=x.data)||void 0===t?void 0:t.has_iframe_ad)||(null==v?void 0:null===(i=v.data)||void 0===i?void 0:i.has_iframe_ad),k={startVideoTime:!1,displayPlayer:!1,mutePlayer:!1,autoPlay:!1,endRecom:!1},w=(0,n.useMemo)(()=>{var e,t,i;return(null===(i=window)||void 0===i?void 0:null===(t=i.player)||void 0===t?void 0:null===(e=t.video)||void 0===e?void 0:e.currentTime)||0},[l]),C=(0,n.useMemo)(()=>
1(0,s.MHC)(11),[]),[N,E]=(0,n.useState)("script"),[S,_]=(0,n.useState)(""),[P,T]=(0,n.useState)(""),[I,R]=(0,n.useState)((0,s.g9Y)(w)),[V,z]=(0,n.useState)(k),M=(e,t)=>{z({...V,[e]:t})},F=e=>t=>{"string"!=typeof t&&"boolean"!=typeof t&&M(e,t.target.checked)},O=()=>{o(),E("script"),_((0,s.v6u)(String(f),(0,s.MHC)(11))),M("startVideoTime",!1),R((0,s.g9Y)(w))},D=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,s.vQq)(e?P:S),h()};(0,n.useEffect)(()=>{let e=(0,s.FqC)(I);if("iframe"===N){_((0,s.Z5Q)(String(f),V.displayPlayer,e.toString(),V.startVideoTime,V.mutePlayer,V.autoPlay,V.endRecom,j));return}if("amp"===N){T((0,s.wkA)()),_((0,s.URy)(String(f))),R((0,s.g9Y)(w));return}I&&_((0,s.v6u)(String(f),C,V.displayPlayer,e.toString(),V.startVideoTime,V.mutePlayer,V.autoPlay,V.endRecom))},[V,N,P,I]),(0,n.useEffect)(()=>{R((0,s.g9Y)(w))},[w]),(0,n.useEffect)(()=>{"amp"===N&&z(k)},[N]);let J=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"list-item",children:(0,a.jsx)(r.Jg,{className:"display-video",name:"display_video",color:"info",onChange:F("displayPlayer"),items:[{id:"displayVideo",text:y("single:modalEmbed.DisplayVideoTitleAndplayerIcons"),checked:V.displayPlayer}]})}),(0,a.jsx)("div",{className:"list-item",children:(0,a.jsx)(r.Jg,{className:"mute-player",name:"mute_Player",color:"info",onChange:F("mutePlayer"),items:[{id:"mutePlayer",text:y("single:modalEmbed.mutePlayer"),checked:V.mutePlayer}]})}),(0,a.jsx)("div",{className:"list-item",children:(0,a.jsx)(r.Jg,{name:"end_recomendation",color:"info",onChange:F("endRecom"),items:[{id:"endRecom",text:y("single:modalEmbed.endRecomEmbed"),checked:V.endRecom}]})}),(0,a.jsxs)("div",{className:"list-item start-time",children:[(0,a.jsx)(r.Jg,{className:"start-time",name:"start-time",color:"info",onChange:F("startVideoTime"),items:[{id:"startTime",text:y("single:modalEmbed.startTheVideoFrom"),checked:V.startVideoTime}]}),(0,a.jsx)(r.MG,{hours:!1,className:"start-video-time",time:I,onChange:e=>R(e)})]})]}),Y=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"code-section",id:"amp-code-section",children:(0,a.jsx)(r.N7,{id:"amp-code",className:"copy-input",name:"amp-code",value:P,readOnly:!0,disabled:!0})}),(0,a.jsx)(r.zx,{buttonType:"neutral",buttonStyle:"primary",text:y("single:modalEmbed.copyCode"),iconStart:"Copy",onClick:()=>D(!0),fullWidth:!0})]}),(0,a.jsx)("div",{className:"code-section",id:"normal-code-section",children:(0,a.jsx)(r.N7,{id:"normal-code",className:"copy-input",name:"normal-code",value:S,readOnly:!0,disabled:!0})}),e&&(0,a.jsx)(r.zx,{buttonType:"neutral",buttonStyle:"primary",text:y("single:modalEmbed.copyCode"),iconStart:"Copy",onClick:()=>D(),fullWidth:!0})]})},q=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:(0,s.dhh)("body",{amp:"amp"===N}),children:Y("amp"===N)}),"amp"!==N&&J()]});return(0,a.jsx)(r.u_,{className:"embed-modal",show:l,onClose:O,title:y("single:modalEmbed.embedSettings"),...(null==p?void 0:p.src)&&{newCutsomColumn:{className:"poster",content:(0,a.jsx)(u,{$width:(null==p?void 0:p.width)||832,$imageSrc:null==p?void 0:p.src,children:(0,a.jsxs)("div",{className:(0,s.dhh)("header",{timerOnly:!V.displayPlayer}),children:[V.displayPlayer&&(0,a.jsxs)("div",{className:"head",children:[(null==p?void 0:p.avatar)&&(0,a.jsx)(r.qE,{id:"poster-avatar",size:"xl",image:null==p?void 0:p.avatar}),(null==p?void 0:p.title)&&(0,a.jsx)(r.ZT.Heading,{size:"h2",children:null==p?void 0:p.title})]}),(null==p?void 0:p.duration)&&(0,a.jsx)("div",{className:"timer",children:(0,a.jsx)(r.ZT.Label,{size:"1",children:p.duration})})]})})}},width:g+((null==p?void 0:p.src)&&((null==p?void 0:p.width)||832)||0),buttonConfirm:"amp"!==N?{text:y("single:modalEmbed.copyCode"),iconStart:"Copy",onClick:()=>D(),buttonType:"neutral",buttonStyle:"primary"}:void 0,buttonCancel:{text:y("single:endRecomCancel"),onClick:O},children:(0,a.jsx)(m,{children:(0,a.jsx)(r.OK,{activeTabItem:0,type:"vitrin",size:"sm",tabs:[{key:"tab_script",title:y("single:modalEmbed.codeScript"),content:q()},{key:"tab_iframe",title:y("single:modalEmbed.codeIframe"),content:q()},{key:"tab_amp",title:y("single:modalEmbed.codeAmp"),content:q()}],onTabClick:e=>{void 0!==e&&E({0:"script",1:"iframe",2:"amp"}[e])}})})})},g=(0,n.memo)(p,(e,t)=>o()(e,t))}}]);
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.