try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a4663b2c-84cf-46b4-adfa-77e1eb629992",e._sentryDebugIdIdentifier="sentry-dbid-a4663b2c-84cf-46b4-adfa-77e1eb629992")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5063],{47929:function(e,t,r){"use strict";var n=r(23765);t.Z=e=>{let t={from_source:e.from_source||"/",initial_view:e.initial_view||"join",slideshow_id:e.slideshow_id,slideshow_key:e.slideshow_key,device_id:"",download:e.isDownload,show_download_behavior_tag:e.showDownloadBehaviorTag,content_gate:e.isContentGate,ad_free:e.isAdFree,incentivized:e.incentivized,original_file:e.isDownload&&e.originalFile},r=new FormData;for(let[e,n]of Object.entries(t))n&&r.append(e,n);(0,n.Z)().then(e=>fetch("/scribd/authorize",{credentials:"same-origin",headers:{"X-CSRF-Token":e},method:"POST",body:r}).then(e=>e.json()).then(e=>{let t=[];for(let[r,n]of Object.entries(e.params))n&&t.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`);let r=t.join("&"),n=`${e.url}?${r}`;window.location.href=n}))}},23765:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let n=null,i=!1,s=async()=>i?n:(i=!0,n=await fetch("/csrf_token",{credentials:"same-origin",method:"GET"}));async function o(){let e=document.querySelector('meta[name="csrf-token"]');if(e)return e.getAttribute("content");let t=await s();if(i=!1,!t.ok)throw Error(`csrf token http error: ${n.status}`);return(await t.json()).csrf_token}},91454:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(85893),i=r(90512),s=r(57627),o=r(26810),a=r(61197),l=r(44895),c=r.n(l);let d=["color-purple","color-green","color-teal","color-yellow"],u=e=>{if(!e)return"";let t=e.trim().split(" ");if(t.length<2)return"";let r=t.reduce((e,r,n)=>(0!==n&&n!==t.length-1||/^[\p{L}]/u.test(r)&&(e=`${e}${r.charAt(0).toUpperCase()}`),e),"");return 2!==r.length?"":r};var m=({className:e="",name:t="",size:r="medium",src:l=null,...m})=>{let _=(0,a.Z)(),h=_?u(t):t.charAt(0).toUpperCase(),p=!l&&!h,f=!l&&h,x=Math.floor(Math.random()*d.length),w=_&&!l?c()[d[x]]:"",v=(0,i.Z)(c().root,w,c()[`size-${r}`],[c()[r]],e,{[c().initials]:f});return(0,n.jsxs)("div",{className:v,...m,children:[p&&(0,n.jsx)(s.C,{name:"user-circle",size:"small"===r?16:24,role:"img","aria-label":t||"user"}),f&&(0,n.jsx)(o.Z,{weight:"medium",children:h}),l&&(0,n.jsx)("img",{className:c().image,src:l,alt:t?`${t}, profile picture`:"",decoding:"sync"})]})}},69588:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(85893),i=r(67294),s=r(60157),o=r(90512);let a=Object.freeze({error:"error",info:"info",success:"success",warning:"warning"}),l=Object.freeze({aboveHeader:"aboveHeader",belowHeader:"belowHeader"});var c=r(49412),d=r.n(c);let u=(0,s.Z)(()=>r.e(4587).then(r.bind(r,94587)),{ssr:!1});var m=({children:e,appearance:t=a.info,duration:r=5e3,position:s=l.belowHeader,visible:c=!1,onTimeout:m=()=>null})=>{let[_,h]=(0,i.useState)(null);(0,i.useEffect)(()=>h(document.getElementById("banner-root")),[]),(0,i.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>m(),r||5e3);return()=>clearTimeout(e)},[c]);let p=(0,o.Z)(d().root,d()[t],d()[s],{[d().visible]:c});return(0,n.jsx)(u,{node:_,children:(0,n.jsx)("div",{className:p,id:"j-downloading-alert",children:e})})}},34922:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(85893),i=r(67294),s=r(90512),o=r(11310);let a=Object.freeze({primary:"primary",secondary:"secondary",tertiary:"tertiary"}),l=Object.freeze({contained:"contained",outlined:"outlined",newOutlined:"newOutlined",text:"text"}),c=Object.freeze({large:"large",regular:"regular",medium:"medium",small:"small",xsmall:"xsmall"});var d=r(11411),u=r.n(d),m=(0,i.forwardRef)(({children:e,className:t="",variant:r=a.primary,appearance:i=l.contained,size:d=c.medium,fullWidth:m=!1,icon:_=null,iconBefore:h=null,iconAfter:p=null,disabled:f=!1,loading:x=!1,active:w=!1,testId:v="button",onClick:g,stopPropagation:j=!1,...y},b)=>{let Z=(0,s.Z)(u().root,u()[r],u()[i],u()[d],{[u().disabled]:f,[u().fullWidth]:m,[u().icon]:_,[u().loading]:x,[u().active]:w},t);return(0,n.jsxs)("button",{ref:b,type:"button",className:Z,"data-testid":v,disabled:f,onClick:e=>{j&&e.stopPropagation(),g&&g(e)},...y,children:[_&&_,!_&&(0,n.jsxs)("span",{children:[h,e,p]}),x&&(0,n.jsx)(o.Z,{className:u().spinner})]})})},67075:function(e,t,r){"use strict";var n=r(34922);t.ZP=n.Z},99645:function(e,t,r){"use strict";var n=r(85893),i=r(41664),s=r.n(i),o=r(90512),a=r(28282),l=r.n(a);t.Z=({name:e,login:t,className:r,...i})=>{let a=(0,o.Z)(l().root,r,"slideshow-author","ellipsis");return(0,n.jsx)(s(),{href:`/${t}`,className:a,"data-testid":"slideshow-author","data-cy":"slideshow-author",...i,children:e})}},42136:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(85893),i=r(67294),s=r(90512),o=r(89416),a=r(9658),l=r(95577),c=e=>{let{index:t,section:r,score:n,slideshowId:s,sourceName:c,modulePosition:d,moduleType:u,category:m}=e,_=(0,o.Z)("recommendation_impression_tracking"),h=(0,i.useCallback)(()=>({index:t,module_position:d,module_type:u,platform:(0,l.X)(),rec_id:s,score:n,section:r??"frame",source:c,module_category:m}),[e]),p=(0,i.useCallback)(()=>{if(!_)return;let e=h();(0,a.Kz)("rv",e)},[_,h]),f=(0,i.useCallback)(()=>{if(!_)return;let e=h();(0,a.Kz)("rc",e)},[_,h]),x=(0,i.useCallback)(()=>{if(!_)return;let e=h();(0,a.Kz)("rrc",e)},[_,h]);return(0,i.useMemo)(()=>({logViewEvent:p,logClickEvent:f,logRightClickEvent:x}),[p,f,x])},d=r(62727),u=r(31135),m=r.n(u);let _=e=>e.replaceAll(/&(?:(?:(?:width|height)=\d+)|(?:fit=[^&]+?))(?=&|$)/g,"").replaceAll(/\?(?:(?:(?:width|height)=\d+)|(?:fit=[^&]+?))(&|$)/g,"?").replace(/[?&]+$/,""),h=(e,t)=>{let r=_(e),n=r.includes("?")?"&":"?";return`${r}${n}${t}`};var p=({index:e=0,parentNode:t=null,className:r="",aspectRatio:o="16 / 9",src:a,fill:l=!0,width:c,onInView:u=()=>{}})=>{let _=(0,d.Z)(u),p=h(a,`width=${2*c}&fit=bounds`);(0,i.useEffect)(()=>{if(!t||"function"!=typeof IntersectionObserver)return;let e=new IntersectionObserver((e,t)=>{let r=e[0];r.isIntersecting&&r.intersectionRatio>=.5&&(_(),r.target.querySelectorAll("div.slideshow-thumbnail > div").forEach(e=>{e.style.backgroundImage=`url(${p})`}),t.disconnect())},{threshold:[0,.5]});return e.observe(t),()=>{e.disconnect()}},[t]);let f=(0,s.Z)(m().thumb,m().blur,m().cover),x=(0,s.Z)(m().thumb,{[m().cover]:l,[m().contain]:!l}),w=(0,s.Z)("slideshow-thumbnail",m().root,r);return(0,n.jsxs)("div",{className:w,style:{aspectRatio:o,"--index":e},"data-testid":"card-thumbnail",children:[(0,n.jsx)("div",{className:f}),(0,n.jsx)("div",{className:x})]})},f=r(6125),x=r.n(f),w=r(11163),v=r(41664),g=r.n(v),j=r(77906),y=r(46121),b=r.n(y),Z=({href:e,slideshow:t,screenReaderText:r,onClick:i})=>{let{query:s}=(0,w.useRouter)(),o=t.displayTitle||t.title,a=e||t.url||t.canonicalUrl;return(0,n.jsx)(g(),{className:b().root,"data-cy":"slideshow-card-link","data-testid":"slideshow-card-link",href:(0,j.g$)(a,s),onClick:i,"aria-label":r||o})};let C=(0,i.forwardRef)(({children:e,className:t,aspectRatio:r="16 / 9",href:o,index:a=0,moduleCategory:l=null,modulePosition:d=0,moduleSection:u="",moduleType:m="",slideshow:_,screenReaderText:h,thumbnail:f,thumbnailWidth:w=280,thumbnailHeight:v=158,track:g=!0,onClick:j=()=>{},onInView:y=()=>{},onContextMenu:b=()=>{},...C},S)=>{let{logClickEvent:k,logRightClickEvent:N,logViewEvent:E}=c({index:a,score:_.score,slideshowId:_.slideshowId,sourceName:_.sourceName?.toLowerCase()??"",category:l,modulePosition:d,moduleType:m,section:u}),[I,T]=(0,i.useState)(null),$=(0,i.useCallback)(e=>{null!==e&&("function"==typeof S?S(e):S&&(S.current=e),T(e))},[]),L=f||_.thumbnail||_.thumbnailUrl,R="presentation"===_.type,P=(0,s.Z)(t,x().root,"slideshow-card"),D=(0,s.Z)(x().content,"slideshow-card-content");return(0,n.jsxs)("div",{ref:$,className:P,onContextMenu:function(e){g&&N(e),b(e)},...C,onClick:function(e){g&&k(e),j(e)},children:[(0,n.jsx)(Z,{href:o,slideshow:_,screenReaderText:h}),(0,n.jsx)(p,{aspectRatio:r,index:a,parentNode:I,className:x().thumb,src:L,fill:R,width:w,height:v,onInView:function(){g&&E(),y()}}),(0,n.jsx)("div",{className:D,children:e})]})});var S=(0,i.memo)(C)},16645:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(85893),i=r(67294),s=r(61798),o=r(90512),a=r(26810),l=r(99645),c=r(19781),d=r(95343),u=({count:e})=>{let{t}=(0,s.$G)("common"),r=(0,d.R$)(e);return(0,n.jsxs)(a.Z,{size:"small",children:[r," ",t("slideshow_card.view",{count:parseInt(e)})]})},m=()=>(0,n.jsx)(a.Z,{children:"•"}),_=r(79805),h=r.n(_);let p=e=>e||0===e,f=({views:e,slides:t,type:r,author:o,onAuthorClick:c})=>{let{t:d}=(0,s.$G)("common"),_=[];return o&&_.push((0,n.jsx)(l.Z,{onClick:c,name:o.name,login:o.login})),p(t)&&_.push((0,n.jsx)(a.Z,{size:"small",children:d("document"===r||"infographic"===r?"slideshow_card.pages_count":"slideshow_card.slides_count",{count:t})})),p(e)&&_.push((0,n.jsx)(u,{count:e})),(0,n.jsx)(n.Fragment,{children:_.map((e,t)=>(0,n.jsxs)(i.Fragment,{children:[t>0&&(0,n.jsx)(m,{}),e]},t))})};var x=({className:e,...t})=>(0,n.jsx)("div",{className:(0,o.Z)("slideshow-stats",h().root,e),children:(0,n.jsx)(c.Z,{fallback:(0,n.jsx)(n.Fragment,{children:"\xa0"}),children:(0,n.jsx)(f,{...t})})})},72536:function(e,t,r){"use strict";var n=r(85893),i=r(90512),s=r(26810),o=r(50761),a=r.n(o);t.Z=({children:e,className:t,lineClamp:r=2})=>{let o=(0,i.Z)("slideshow-title",a().root,t,"ellipsis");return(0,n.jsx)(s.Z,{size:"large",weight:"medium",className:o,style:{WebkitLineClamp:r},"data-cy":"slideshow-title",children:e})}},27846:function(e,t,r){"use strict";var n=r(85893),i=r(90512),s=r(6733),o=r(97061),a=r(25173),l=r.n(a);t.Z=({customStyles:e={},label:t,disabled:r=!1,id:a,value:c,disabledExplanation:d,onChange:u=()=>{}})=>(0,n.jsxs)("div",{className:(0,i.Z)(l().wrapper,e.checkboxWrapper),children:[(0,n.jsx)("input",{type:"checkbox",id:a,"data-testid":"input",disabled:r,checked:c,className:l().input,onChange:()=>u(!c)}),(0,n.jsx)(s.Z,{className:(0,i.Z)(l().label,e.checkboxLabel),id:a,weight:"regular",children:t}),r&&d&&(0,n.jsx)(o.Z,{icon:"info",explanation:d})]})},87339:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var n=r(85893),i=r(72428),s=r(59774),o=r(2548),a=r.n(o),l=r(6733),c=r(37707),d=r(62276),u=r(18518),m=r(67294),_=r(61798),h=r(57627),p=r(26810),f=r(51398),x=r.n(f),w=r(97061),v=r(4234),g=r.n(v),j=r(27846),y=r(60434);let b={dropdown:({className:e="",id:t,defaultValue:r,label:o,required:d,footerText:u,error:m="",testId:_,value:h="",options:p=[],onChange:f=()=>{}})=>p?.length===0?null:(0,n.jsxs)("div",{className:`${a().container} ${e}`,"data-testid":"dropdown-component",children:[(0,n.jsx)(l.Z,{id:`${t}-label`,required:d,color:m?"error":"secondary",children:o}),(0,n.jsx)("select",{id:t,"data-testid":_||"select","aria-label":o,value:h||r,className:`${a().select} ${m?a().error:""}`,onChange:e=>f(e.target.value),children:p.map(e=>(0,n.jsx)("option",{"data-testid":"dropdown-option",value:e.value,disabled:e.disabled,children:e.label},e.value))}),(0,n.jsx)(c.Z,{required:d,hasError:m===s.S.required}),u&&(0,n.jsx)(i.Z,{color:"secondary","data-testid":"footer-text",children:u})]}),input:d.Z,number:d.Z,textarea:u.Z,taginput:({className:e="",id:t,label:r,value:o=[],required:a,footerText:d,tagSuggestions:u=[],limit:f=20,error:w="",onChange:v=()=>{}})=>{let g=(0,m.useRef)(null),[j,y]=(0,m.useState)(0),b=new Map;o.forEach(e=>b.set(e,!0));let Z=o.length>=f,[C,S]=(0,m.useState)(""),[k,N]=(0,m.useState)(!1),E=C.length?u.filter(e=>e.includes(C)&&!b.get(e)).slice(0,5):[],I=e=>{v([...o,e])},T=e=>{v(o.filter(t=>t!==e))},$=e=>{S(""),I(e),g.current.focus()},L=()=>{if(N(!1),!C)return;let e=C.trim();o.find(t=>t===e)||(I(e),S(""))},{t:R}=(0,_.$G)("uploads");return(0,n.jsxs)("div",{className:`${x().container} ${e}`,"data-testid":"taginput-component",children:[(0,n.jsx)(l.Z,{id:t,required:a,color:w?"error":"secondary",children:r}),(0,n.jsx)("div",{className:`${x().inputContainer} ${w?x().error:""}`,"data-testid":"tag-input-container",children:(0,n.jsxs)("div",{"data-testid":"tag-container",className:x().tagContainer,children:[o.map(e=>(0,n.jsxs)("span",{"data-testid":"tag",className:x().tag,children:[(0,n.jsx)(p.Z,{size:"small",weight:"medium",children:e}),(0,n.jsx)("button",{type:"button","aria-label":"close tag",className:x().closeTag,"data-testid":`close-${e.toLowerCase()}`,onClick:()=>T(e),children:(0,n.jsx)(h.C,{name:"close",size:18})})]},e)),o.length{y(0),e.target.value?(e.target.value.length>=30?N(!0):k&&N(!1),S(e.target.value.substring(0,30))):S("")},onKeyDown:e=>{E.length>0?("Enter"===e.key&&(e.stopPropagation(),e.preventDefault(),$(E[j])),"ArrowDown"===e.key&&j0&&(e.stopPropagation(),e.preventDefault(),y(j-1))):"Enter"===e.key&&(e.stopPropagation(),e.preventDefault(),L())},className:x().input,onBlur:()=>{L()}})]})}),E.length>0&&(0,n.jsx)("div",{className:x().autocompleteContainer,children:(0,n.jsx)("div",{"data-testid":"autocomplete",className:x().autocomplete,children:E.map((e,t)=>(0,n.jsx)("span",{role:"button",tabIndex:0,className:`${x().suggestion} ${t===j?x().focusedSuggestion:""}`,"data-testid":"suggestion",onMouseDown:()=>$(e),children:e},e))})}),(0,n.jsx)(c.Z,{required:a,hasError:w===s.S.required}),d&&!Z&&(0,n.jsx)(i.Z,{color:"secondary","data-testid":"footer-text",children:d}),Z&&(0,n.jsxs)("div",{className:x().errorText,children:[(0,n.jsx)(h.C,{name:"alert-triangle",size:12}),(0,n.jsx)(i.Z,{"data-testid":"error",children:R("form.tags.tag_limit",{limit:f})})]}),k&&!Z&&(0,n.jsxs)("div",{className:x().errorText,children:[(0,n.jsx)(h.C,{name:"alert-triangle",size:12}),(0,n.jsx)(i.Z,{"data-testid":"error",children:R("form.tags.character_limit",{limit:30})})]})]})},selector:({className:e="",options:t=[],value:r="",label:i,id:o,readOnly:a=!1,required:d,error:u="",explanation:m,onChange:_=()=>{}})=>{if(0===t.length)return null;let h=(e,t)=>{e.stopPropagation(),e.preventDefault(),_(t)};return(0,n.jsxs)("div",{className:`${g().container} ${e}`,"data-testid":"container",children:[(0,n.jsx)(l.Z,{id:o,required:d,color:u?"error":"secondary",children:i}),(0,n.jsxs)("div",{className:g().selectorContainer,children:[(0,n.jsx)("div",{className:g().selector,"data-testid":"selector",children:t.map(e=>(0,n.jsx)("button",{type:"button","data-testid":e.key,"data-cy":e.key,className:`${e.key===r?g().selected:""}`,disabled:a,onClick:t=>h(t,e.key),children:(0,n.jsx)("span",{className:g().text,children:e.label})},e.key))}),m&&(0,n.jsx)(w.Z,{className:g().icon,explanation:m,icon:"info"})]}),(0,n.jsx)(c.Z,{required:d,hasError:u===s.S.required})]})},checkbox:j.Z,password:d.Z,radio:y.Z};var Z=({className:e="",values:t,id:r,errors:i,fields:s,onChange:o=()=>{}})=>{let a=s[r];if(!a)return null;let c=t.get(r),d=i.get(r),{required:u,disabled:m,label:_,type:h,hidden:p}=a,f=b[h];return p?null:"radio"===a.type?(0,n.jsxs)("div",{className:e,children:[(0,n.jsx)(l.Z,{className:"label",id:r,required:u,color:d?"error":"secondary",children:_}),a.options.map(e=>(0,n.jsx)(f,{className:"radio-label",checked:c===e.key,label:e.label,value:e.key,name:r,onChange:e=>o(r,e)},e.key))]}):(0,n.jsx)(f,{...a,id:r,value:c,error:d,label:_,required:u,disabled:m,className:e,onChange:e=>o(r,e)})}},22864:function(e,t,r){"use strict";var n=r(85893),i=r(67294),s=r(90512),o=r(67075),a=r(87339),l=r(59774),c=r(11106),d=r.n(c);let u={dropdown:"",input:"",textarea:"",taginput:[],selector:"",checkbox:!1},m=e=>{let t=new Map;return e.forEach(e=>{let r=void 0!==e.defaultValue?e.defaultValue:u[e.type];t.set(e.id,r)}),t},_=e=>{let t=new Map;return e.forEach(e=>{t.set(e.id,"")}),t},h=(e,t,r)=>{let n=!t.get(e.id)||0===t.get(e.id).length,i=!e.minLength||t.get(e.id)?.length>=e.minLength;if(e.required&&(n||!i))return r.set(e.id,l.S.required),!0},p=(e,t)=>{let r=new Map,n=!0;return e.forEach(e=>{h(e,t,r)&&(n=!1)}),[n,r]};t.Z=({fields:e={},renderFooter:t=({onSubmit:e})=>(0,n.jsx)(o.ZP,{onClick:e,children:"Submit"}),renderFields:r=()=>null,onSubmit:l=()=>{},className:c})=>{let u=(0,i.useRef)(null),h=Object.keys(e).map(t=>({...e[t],id:t})),[f,x]=(0,i.useState)(m(h)),[w,v]=(0,i.useState)(_(h)),[g,j]=(0,i.useState)(!1),y=(e,t)=>{let r=new Map(f);r.set(e,t),x(r);let n=new Map(w);n.set(e,""),v(n)},b=(e,t)=>{let r=e.filter(e=>e.trim);if(r.length){let e=new Map(t);return r.forEach(r=>{let n=t.get(r.id)?.trim();e.set(r.id,n)}),x(e),e}return t},Z=async e=>{e.preventDefault(),e.stopPropagation();let t=b(h,f),[r,n]=p(h,t);r?(j(!0),await l(t,j)):(v(n),u.current&&u.current.scrollIntoView&&u.current.scrollIntoView())};return(0,n.jsxs)("form",{onSubmit:Z,className:(0,s.Z)(d().root,c),ref:u,children:[h.map(t=>!t.skipRendering&&(0,i.createElement)(a.Z,{...t,key:t.id,values:f,errors:w,onChange:y,fields:e,readOnly:t.readOnly})),r({values:f,errors:w,onChange:y,fields:e}),t({onSubmit:Z,isSubmitting:g,values:f})]})}},62276:function(e,t,r){"use strict";var n=r(85893),i=r(90512),s=r(72428),o=r(6733),a=r(37707),l=r(26810),c=r(59774),d=r(4926),u=r.n(d);let m=({value:e,count:t,maxLength:r})=>{let i=r?e.length===t:e.length{}})=>{let y=_&&!v;return(0,n.jsxs)("div",{className:`${u().container} ${h}`,"data-testid":"input-component",children:[(0,n.jsx)(o.Z,{id:t,required:d,color:_?"error":"secondary",children:r}),(0,n.jsx)("input",{id:t,type:p||"text","data-testid":"input","data-cy":f,required:d,disabled:x,placeholder:g,value:s,className:`${u().input} ${_?u().error:""}`,onChange:t=>{let r=t.target.value;r.length{let m=(0,s.Z)()?l.large:l.medium,_=l[c]||m,h=(0,i.Z)(a().label,r&&`text-${r}`,o&&`weight-${o}`,[a()[_]],t);return(0,n.jsxs)("label",{htmlFor:d,"data-testid":"label",className:h,children:[e,u&&"*"]})}},37707:function(e,t,r){"use strict";var n=r(85893),i=r(61798),s=r(90512),o=r(57627),a=r(99134),l=r.n(a);t.Z=({required:e,hasError:t,customText:r})=>{let{t:a}=(0,i.$G)("common"),c=(0,s.Z)(l().required,{[l().error]:t});return e?(0,n.jsxs)("span",{className:c,"data-testid":"required-label","aria-label":a("form.required"),children:[t&&(0,n.jsx)(o.C,{name:"info-filled",size:16}),"*",r||a("form.required")]}):null}},18518:function(e,t,r){"use strict";var n=r(85893),i=r(90512),s=r(6733),o=r(37707),a=r(59774),l=r(2437),c=r.n(l),d=r(72428);t.Z=({className:e="",customStyles:t={},id:r,label:l,characterLimit:u,required:m,error:_="",testId:h,value:p="",onChange:f=()=>{}})=>(0,n.jsxs)("div",{className:`${c().container} ${e}`,"data-testid":h||"textarea-component",children:[(0,n.jsx)(s.Z,{id:r,required:m,color:_?"error":"secondary",children:l}),(0,n.jsx)("textarea",{id:r,"data-testid":"textarea",value:p,className:(0,i.Z)(c().textarea,{[t.textarea]:!!t,[c().error]:_}),onChange:e=>{let t=e.target.value;t.length{let{t:a}=(0,s.$G)("uploads"),[c,d]=(0,i.useState)(!1);function u(){d(e=>!e)}return(0,n.jsxs)("div",{className:l().container,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[(0,n.jsx)(o.C,{role:"tooltip",name:e,"aria-label":a("form.explanation"),className:r,onClick:u,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),u())}}),c&&(0,n.jsxs)("div",{className:l().explanation,children:[(0,n.jsx)("span",{className:l().arrow}),t]})]})}},28929:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(85893),i=r(67294),s=r(90512),o=r(98137),a=r(25437),l=r(82238),c=r.n(l);let d=Object.freeze({small:"small",medium:"medium",large:"large",xlarge:"xlarge"}),u=({children:e,className:t="",isOpen:r=!1,placeBottomOnMobile:a=!1,showCloseButton:l=!0,canClickAway:u=!0,size:m=null,onClose:_=()=>{},...h})=>{let p=(0,i.useId)(),f=(0,i.useRef)(null);function x(){f.current.close(),_()}(0,i.useEffect)(()=>{let e=f.current.open;r&&!e&&f.current.showModal(),!r&&e&&f.current.close()},[r]),(0,i.useEffect)(()=>{let e=f.current,t=e=>{("DIALOG"===e.target.nodeName||e.target.id===p)&&u&&x()};return e.addEventListener("click",t),()=>e.removeEventListener("click",t)},[p]);let w=(0,s.Z)(c().root,t,{[c().bottomPlacement]:a,[c()[d[m]]]:!!m});return(0,n.jsx)("dialog",{className:w,id:p,ref:f,...h,onCancel:_,children:(0,n.jsxs)("div",{className:c().wrapper,children:[e,l?(0,n.jsx)(o.Z,{"data-cy":"modal-close-button",onClick:x}):null]})})};u.Title=({children:e,className:t,...r})=>{let i=(0,s.Z)("modal-title",c().title,t);return(0,n.jsx)(a.Z,{size:"xxsmall",as:"h2",className:i,...r,children:e})},u.Content=({children:e,className:t=""})=>{let r=(0,s.Z)("modal-content",c().content,t);return(0,n.jsx)("div",{className:r,children:e})},u.Actions=({children:e,className:t=""})=>{let r=(0,s.Z)(c().actions,t);return(0,n.jsx)("div",{className:r,children:e})};var m=u},93014:function(e,t,r){"use strict";var n=r(28929);t.ZP=n.Z},63002:function(e,t,r){"use strict";var n=r(85893),i=r(90512),s=r(88685),o=r.n(s);t.Z=({children:e,className:t})=>(0,n.jsx)("span",{className:(0,i.Z)("accent-bubble",o().root,t),children:e})},48708:function(e,t,r){"use strict";var n=r(85893),i=r(67294),s=r(41664),o=r.n(s),a=r(90512),l=r(57627),c=r(6042),d=r(75515),u=r.n(d);t.Z=i.memo(({children:e,href:t,isSelected:r=!1,value:s="",onClick:d=()=>{},...m})=>{let _=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>{_.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},100);return()=>{e&&clearTimeout(e)}},[r]);let h=(0,c.Z)(["Enter"," "],()=>d(s)),p=s.toLocaleLowerCase(),f=`category/${p}`,x="foryou"===p,w=(0,a.Z)(u().root,{[u().selected]:r});return(0,n.jsxs)(o(),{ref:_,href:t,className:w,onClick:()=>d(s),onKeyDown:h,prefetch:!1,...m,children:[x?null:(0,n.jsx)(l.C,{className:u().icon,name:f}),e]})})},60434:function(e,t,r){"use strict";var n=r(85893),i=r(67294),s=r(90512),o=r(61514),a=r.n(o);let l=Object.freeze({default:"default",large:"large"}),c=(0,i.forwardRef)(({className:e="",checked:t=!1,name:r,label:i,value:o,rtl:c=!1,size:d=l.default,onChange:u,...m},_)=>{let h=(0,s.Z)(a().root,e,{[a().checked]:t,[a().rtl]:c,[a().large]:d===l.large});return(0,n.jsxs)("label",{className:h,dir:c?"rtl":"ltr",children:[(0,n.jsx)("input",{type:"radio",ref:_,checked:t,name:r,value:o,onChange:()=>u(o),...m}),i]})});t.Z=(0,i.memo)(c)},57425:function(e,t,r){"use strict";var n=r(6199);t.C=n.ZP},66152:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(85893),i=r(67294),s=r(61798),o=r(91296),a=r.n(o),l=r(90512),c=r(57627),d=r(29407),u=r.n(d),m=({children:e})=>{let{t}=(0,s.$G)("common"),[r,o]=(0,i.useState)(0),d=(0,i.useRef)(),m=d.current?.scrollWidth-d.current?.clientWidth;function _(e){d.current.scrollBy({left:.75*window.innerWidth*e,behavior:"smooth"})}let h=(0,i.useCallback)(a()(function(e){o(e.target.scrollLeft)},150),[]),p=(0,l.Z)(u().arrow,u().prev,{[u().hidden]:0===r}),f=(0,l.Z)(u().arrow,u().next,{[u().hidden]:r===m});return(0,n.jsxs)("div",{className:u().root,children:[(0,n.jsx)("div",{ref:d,className:u().scroller,onScroll:h,children:e}),(0,n.jsx)("button",{"aria-label":t("actions.previous"),type:"button",className:p,onClick:()=>_(-1),children:(0,n.jsx)(c.C,{name:"chevron-left"})}),(0,n.jsx)("button",{"aria-label":t("actions.next"),type:"button",className:f,onClick:()=>_(1),children:(0,n.jsx)(c.C,{name:"chevron-right"})})]})}},11310:function(e,t,r){"use strict";var n=r(85893);r(67294),t.Z=({className:e="",color:t="currentColor",size:r=20})=>(0,n.jsx)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:r,height:r,fill:t,children:(0,n.jsx)("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z",children:(0,n.jsx)("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})})})},44633:function(e,t,r){"use strict";var n=r(85893),i=r(53591),s=r(58173),o=r.n(s);t.Z=({children:e,text:t,position:r="top"})=>(0,n.jsx)(i.Z,{className:o().root,content:t,position:r,trigger:"hover",children:e})},68658:function(e,t,r){"use strict";var n=r(44633);t.Z=n.Z},58610:function(e,t,r){"use strict";var n=r(85893),i=r(4298),s=r.n(i),o=r(67294);let a=()=>({__html:` window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-JFMG63W8KJ'); `});t.Z=()=>((0,o.useEffect)(()=>{window._gaq=window._gaq||[]},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=G-JFMG63W8KJ"}),(0,n.jsx)(s(),{id:"gtag",dangerouslySetInnerHTML:a()})]}))},58386:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(85893),i=r(90512),s=r(3575),o=r.n(s),a=()=>{let e=(0,i.Z)("bullet",o().root);return(0,n.jsx)("span",{className:e,role:"presentation",children:"•"})}},72428:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(85893),i=r(90512),s=r(67740),o=r.n(s),a=({children:e,className:t,color:r,weight:s="regular",...a})=>{let l=(0,i.Z)("caption",o().root,r&&`text-${r}`,s&&`weight-${s}`,t);return(0,n.jsx)("span",{className:l,...a,children:e})}},14377:function(e,t,r){"use strict";r.d(t,{NN:function(){return n},R9:function(){return s},tA:function(){return i}});let n="save_slideshow",i="save_slide",s="save_rec"},44646:function(e,t,r){"use strict";r.d(t,{LO:function(){return s},QN:function(){return i},vK:function(){return n}});let n={infographic:"infographic",document:"document",presentation:"presentation"},i=["rightRail","whatsHot","alsoLiked","similarTo","moreFromUser","latest","featured"],s={doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",pdf:"application/pdf",potx:"application/vnd.openxmlformats-officedocument.presentationml.template",ppsx:"application/vnd.openxmlformats-officedocument.presentationml.slideshow",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}},35440:function(e,t,r){"use strict";r.d(t,{ih:function(){return m}});var n=r(85893),i=r(67294),s=r(11163),o=r(92281),a=r(9658);let l=(0,i.createContext)({}),c=e=>{if(e&&Object.keys(e).length){let t={};Object.keys(e).forEach(r=>{let n=e[r].value,i=r;e[r].version>0&&(i=`${i}:${e[r].version}`),"none"!==n&&(t[i]=n)}),(0,a.Kz)("identify",t)}},d=e=>`${e.map(e=>`assign[]=${encodeURIComponent(e)}`).join("&")}`,u=async e=>{let t=d(e),r=`/ab_tests?${t}`,n=await (0,o.U2)(r);return n?.data?.ab_tests},m=({children:e})=>{let[t,r]=(0,i.useState)({}),{query:o}=(0,s.useRouter)(),a=(0,i.useRef)([]),d=(0,i.useRef)([]),m=e=>e.filter(e=>!t[e]),_=async e=>{let r=m(e);if(r.length)try{return await u(r)}catch(e){return console.error("\uD83D\uDCA3 Error loading AB tests",e,r),{}}return t},h=(e,t)=>{let n={};(0,i.startTransition)(()=>{r(r=>(t.forEach(t=>{r[t]||(n[t]=e[t]||{value:"control"})}),Object.keys(n).length>0)?{...r,...n}:r)})},p=(0,i.useCallback)(async e=>{t[e]||d.current.includes(e)||(a.current.push(e),d.current.push(e),setTimeout(async()=>{let e=a.current;a.current=[],h(await _(e),e)},0))},[t]),f=(0,i.useCallback)(e=>o[e]||(t[e]?t[e].value:null),[t,o]);(0,i.useEffect)(()=>{c(t)},[t]);let x=(0,i.useMemo)(()=>({getTestValue:f,loadTestAssignment:p}),[f,p]);return(0,n.jsx)(l.Provider,{value:x,children:e})}},46468:function(e,t,r){"use strict";var n=r(85893),i=r(67294),s=r(61798),o=r(67075),a=r(68658),l=r(57627),c=r(14377),d=r(12810),u=r(9658),m=r(80899),_=r(24978),h=r(41969),p=r(94344);t.Z=({value:e,slideshowId:t,title:r})=>{let{isLoggedIn:f}=(0,d.F)(),[,x]=(0,m.Z)("from_action"),{t:w}=(0,s.$G)("common"),[v,g]=(0,i.useState)(e),j=v?"actions.removeSaved":"actions.addToSaved",{mutate:y}=(0,_.Z)(),{mutate:b}=(0,h.Z)();return(0,n.jsx)(a.Z,{text:w(j),children:(0,n.jsx)(o.ZP,{appearance:"text","aria-checked":v,"aria-label":w(`${j}A11y`,{title:r}),className:"save-slideshow-button",icon:(0,n.jsx)(l.C,{name:v?"bookmark-filled":"bookmark"}),role:"switch",size:"small",variant:"secondary",onClick:function(){if(v||(0,u.Kz)("save_attempt"),!f){x(c.R9),(0,p.Gt)(t,c.R9);return}v?b({slideshowId:t},{onSuccess:()=>g(!1)}):y({slideshowId:t},{onSuccess:()=>g(!0)})}})})}},23089:function(e,t,r){"use strict";r.d(t,{Z:function(){return ei}});var n=r(85893),i=r(67294),s=r(61798),o=r(90512),a=r(34922),l=r(27087),c=r(57627),d=r(19781),u=r(53591),m=r(30509),_=r(68658),h=r(14377),p=r(12810),f=r(80899),x=r(66317),w=r(41969),v=r(24978),g=r(36492),j=r(81112),y=r(60778);async function b(e,t,r){return(await e({query:y.zB,variables:{query:{strippedTitle:t,username:r}}})).data.slideshow.savedItems??[]}var Z=({strippedTitle:e,username:t})=>{let{isLoggedIn:r}=(0,p.F)(),n=(0,j.Z)();return(0,g.a)({enabled:r,queryKey:["saved","items",e],queryFn:()=>b(n,e,t)})},C=r(94344),S=r(9658),k=r(60157),N=r(17806),E=r(85945),I=r(48228),T=r(11163),$=r(81247),L=r(92281);async function R(e){return await (0,L.y2)("/saved_items/"+e)}var P=e=>{let t=(0,E.NL)(),{showErrorToast:r,showToast:n}=(0,$.kE)(),i=(0,T.useRouter)(),{t:o}=(0,s.$G)("player");return(0,I.D)({mutationFn:R,onError:()=>r(o("actions.removed_from_list_error")),onSuccess:r=>{(0,S.Kz)("remove_save_from_list",{type:e?"slide":"slideshow",source:i.asPath,list_id:"default",...e&&{slide:e+1}}),n({id:`remove-from-list-${r.savedItemId}`,content:o("actions.removed_from_list")}),t.invalidateQueries({queryKey:["saved","items"]})}})},D=r(20377);async function A({list:e,slideshowId:t,slideNumber:r=null}){let n={saved_list_id:e.id,saved_item:{saveable_id:t,saveable_type:"Slideshow",...r&&{slide_number:r}},savedToListName:e.title,savedToListId:e.id,savedToListSlug:e.slug};return await (0,L.v_)("/saved_items",n,{"Content-Type":"application/json"})}var F=()=>{let{showToast:e}=(0,$.kE)(),t=(0,E.NL)(),{t:r}=(0,s.$G)("player"),{mutate:i}=(0,I.D)({mutationFn:A,onSuccess:(i,{list:s})=>{e({id:`save-${s.id}`,content:(0,n.jsxs)("div",{children:[r("save_to_new_list_modal.success"),(0,n.jsx)(D.Z,{href:`/saved/${s.id}/${s.slug}`,size:"large",color:"inverse",underline:!0,children:s.title})]})}),(0,S.Kz)("saved_to_list"),t.invalidateQueries({queryKey:["saved","items"]})},onError:(t,{list:i})=>{e({id:`error-${i.id}`,icon:(0,n.jsx)(c.C,{name:"info"}),content:r("save_to_new_list_modal.error",{listname:i.title})})}});return{mutate:i}},B=r(70839),z=r(93014),q=r(67075),M=r(26810),K=r(73561),U=r.n(K),O=({slideshowId:e,slideNumber:t=null,isOpen:r,onClose:i})=>{let{t:o}=(0,s.$G)("player"),{mutate:a,isLoading:l}=(0,w.Z)();return(0,n.jsxs)(z.ZP,{isOpen:r,placeBottomOnMobile:!0,size:"small",onClose:i,children:[(0,n.jsx)(z.ZP.Title,{children:o("confirm_remove_save_modal.title")}),(0,n.jsx)(z.ZP.Content,{children:(0,n.jsx)("div",{className:U().description,children:(0,n.jsx)(M.Z,{children:o("confirm_remove_save_modal.description")})})}),(0,n.jsxs)(z.ZP.Actions,{children:[(0,n.jsx)(q.ZP,{appearance:"text",onClick:i,children:o("confirm_remove_save_modal.cancel_button_label")}),(0,n.jsx)(q.ZP,{"data-cy":"confirm-remove-save",disabled:l,loading:l,variant:"primary",onClick:function(){a({slideshowId:e,slideNumber:t},{onSuccess:i})},children:o("confirm_remove_save_modal.delete_button_label")})]})]})},G=r(62276),H=r(27846);async function W({list:e,slideshowId:t,slideNumber:r=null}){let n={saved_list:{title:e.title,private:e.private},saved_item:{saveable_id:t,saveable_type:"Slideshow",slide_number:r}};return await (0,L.v_)("/saved_items/create_with_list",n,{"Content-Type":"application/json"})}var V=()=>{let e=(0,E.NL)(),{showToast:t}=(0,$.kE)(),{t:r}=(0,s.$G)("player"),{mutate:i}=(0,I.D)({mutationFn:W,onSuccess:i=>{if(201===i.status){let{id:s,title:o,slug:a}=i?.data?.saved_list??{};(0,S.Kz)("save_to_new_list"),t({id:"save-to-new-list",content:(0,n.jsxs)("div",{children:[r("save_to_new_list_modal.success"),(0,n.jsx)(D.Z,{href:`/saved/${s}/${a}`,size:"large",color:"inverse",underline:!0,children:o})]})}),e.invalidateQueries({queryKey:["saved","lists"]}),e.invalidateQueries({queryKey:["saved","items"]})}}});return{mutate:i}},Q=r(10365),Y=r.n(Q),J=({slideshowId:e,slideNumber:t=null,thumbnail:r,isOpen:o,onClose:a})=>{let{t:l}=(0,s.$G)("player"),{mutate:c,isLoading:d}=V(),[u,m]=(0,i.useState)({title:"",private:!1}),[_,h]=(0,i.useState)(""),[p,f]=(0,i.useState)("");function x(){m({title:"",private:!1}),f(""),a()}return(0,n.jsxs)(z.ZP,{isOpen:o,placeBottomOnMobile:!0,size:"small",onClose:x,children:[(0,n.jsx)(z.ZP.Title,{children:l("save_to_new_list_modal.title")}),(0,n.jsxs)(z.ZP.Content,{children:[(0,n.jsx)("div",{className:Y().imageContainer,children:(0,n.jsx)("img",{src:r,alt:"Thumbnail"})}),(0,n.jsx)(G.Z,{required:!0,characterLimit:50,className:Y().input,error:p,id:"new_list_name",label:l("save_to_new_list_modal.list_name_input_label"),value:u.title,onChange:e=>m(t=>({...t,title:e}))}),(0,n.jsx)(H.Z,{id:"new_list_privacy",customStyles:Y(),label:l("save_to_new_list_modal.list_privacy_label"),isChecked:u.private,onChange:e=>m(t=>({...t,private:e}))}),_&&(0,n.jsx)("div",{className:Y().errorContainer,children:(0,n.jsx)(M.Z,{color:"error",children:_})})]}),(0,n.jsxs)(z.ZP.Actions,{children:[(0,n.jsx)(q.ZP,{appearance:"text",onClick:x,children:l("save_to_new_list_modal.cancel_button_label")}),(0,n.jsx)(q.ZP,{disabled:!u.title||d,loading:d,variant:"primary",onClick:function(){c({list:u,slideshowId:e,slideNumber:t},{onSuccess:x,onError:e=>{e?.saved_list?.title?.length?f(`${u.title} ${e?.saved_list?.title[0]}`):h(l("save_to_new_list_modal.error",{listname:u.title}))}})},children:l("save_to_new_list_modal.save_list_button_label")})]})]})},X=r(38697),ee=r.n(X);let et=(0,k.Z)(()=>Promise.all([r.e(5254),r.e(1349)]).then(r.bind(r,91349)),{ssr:!1,loading:()=>(0,n.jsx)(m.Z,{count:3,itemWidth:280,itemHeight:40})}),er=(0,k.Z)(()=>Promise.all([r.e(7175),r.e(9650)]).then(r.bind(r,29650)),{ssr:!1,loading:()=>(0,n.jsx)(m.Z,{count:3,itemWidth:280,itemHeight:40})}),en=i.forwardRef(({className:e,iconName:t,onClick:r,...i},s)=>(0,n.jsx)(a.Z,{ref:s,className:e,size:"medium",appearance:"text",variant:"secondary",icon:(0,n.jsx)(c.C,{name:t}),onClick:r,...i}));var ei=({className:e="",slideshowId:t,slideIndex:r=null,strippedTitle:a,thumbnail:c,username:m})=>{let{isLoggedIn:g}=(0,p.F)(),[,j]=(0,f.Z)("from_action",null),y=(0,x.Z)("(min-width: 520px)"),{t:b}=(0,s.$G)("common"),[k,E]=(0,i.useState)(!1),[I,T]=(0,i.useState)(!1),[$,L]=(0,i.useState)(!1),{data:R}=(0,N.Z)(),{data:D}=Z({strippedTitle:a,username:m}),{mutate:A}=(0,v.Z)(),{mutate:z}=(0,w.Z)(),{mutate:q}=F(),{mutate:M}=P(),K=null!==r?r+1:null,U=K?"slide":"slideshow",G=(0,i.useMemo)(()=>D?.filter(e=>{if(K){let t=e.slideNumber,r=e.slideNumber===K;return t&&r}return!e.slideNumber}),[D,K]),H=G?.length>0,W=(0,B.Rl)(R,G),V=b(H?"actions.removeSaved":"actions.addToSaved"),Q=(0,o.Z)(`save-${U}-button`,ee().root,e),Y=`save-${U}-logged-${g?"in":"out"}-button`,X=H?"bookmark-filled":"bookmark",ei=K?h.tA:h.NN,es=K?"left":"top",eo=b(K?"actions.save_slide":"actions.addToSaved");function ea(){if(!g){(0,S.Kz)("save_attempt"),j(ei),K?(0,C.bI)(t,K):(0,C.Gt)(t,ei);return}if(W){T(!0);return}H?z({slideshowId:t,slideNumber:K}):A({slideshowId:t,slideNumber:K})}function el(e,r){r?M((0,B.Hw)(e.id,G)):q({list:e,slideshowId:t,slideNumber:K})}return g?y?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{content:(0,n.jsx)(et,{savedItem:G,slideNumber:null,onListSelect:el,onSaveToNewList:()=>L(!0)}),position:"bottom-start",trigger:"hover",children:(0,n.jsx)(en,{className:Q,"aria-label":V,"data-cy":Y,iconName:X,onClick:ea})}),(0,n.jsxs)(d.Z,{children:[(0,n.jsx)(J,{slideshowId:t,isOpen:$,thumbnail:c,onClose:()=>L(!1)}),(0,n.jsx)(O,{slideshowId:t,slideNumber:K,isOpen:I,onClose:()=>T(!1)})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{className:Q,"aria-label":V,"data-cy":Y,iconName:X,onClick:()=>(0,i.startTransition)(()=>E(!0))}),(0,n.jsx)(l.Z,{isOpen:k,placement:"bottom",showCloseButton:!1,onClose:()=>E(!1),children:k&&!1===y?(0,n.jsx)(er,{savedItem:G,slideshowId:t,isSaved:H,onSaveClick:ea,onSaveToNewList:()=>L(!0),onListSelect:el}):null}),(0,n.jsxs)(d.Z,{children:[(0,n.jsx)(J,{slideshowId:t,thumbnail:c,isOpen:$,onClose:()=>L(!1)}),(0,n.jsx)(O,{slideshowId:t,slideNumber:K,isOpen:I,onClose:()=>{T(!1),E(!1)}})]})]}):(0,n.jsx)(_.Z,{text:eo,position:es,children:(0,n.jsx)(en,{className:Q,"aria-label":V,"data-cy":Y,iconName:X,onClick:ea})})}},17806:function(e,t,r){"use strict";var n=r(36492),i=r(12810),s=r(81112),o=r(90045);async function a(e){return((await e({query:o.lB})).data.currentUser.saved.savedLists??[]).filter(e=>e.title).sort((e,t)=>t.id-e.id)??[]}t.Z=()=>{let{isLoggedIn:e}=(0,i.F)(),t=(0,s.Z)();return(0,n.a)({enabled:e,queryKey:["saved","lists","snapshot"],queryFn:()=>a(t)})}},70839:function(e,t,r){"use strict";r.d(t,{Hw:function(){return i},P0:function(){return n},Rl:function(){return s}});let n=(e,t=[])=>{if(t?.length>0)return!!t.find(t=>t.savedListId===e)},i=(e,t=[])=>{if(t?.length>0)return t.find(t=>t.savedListId===e).savedItemId},s=(e=[],t=[])=>{let r=new Set(e.map(e=>e.id));return t.some(e=>r.has(e.savedListId))}},52155:function(e,t,r){"use strict";r.d(t,{hg:function(){return d},Ei:function(){return m},b7:function(){return u}});var n=r(85893),i=r(67294),s=r(66317),o=r(5696),a=()=>{let{isPresentation:e}=(0,o.Lj)(),t=(0,s.Z)("(any-hover: none)");return{isEnabled:e&&t}};let l=(0,i.createContext)(),c=(0,i.createContext)(),d=({children:e})=>{let{isEnabled:t}=a(),[r,s]=(0,i.useState)(!1),[o,d]=(0,i.useState)(0),[u,m]=(0,i.useState)(0),_=(0,i.useMemo)(()=>({index:o,isFullscreen:r,isEnabled:t,navigationCount:u}),[o,r,t,u]),h=(0,i.useMemo)(()=>({setIndex:d,setIsFullscreen:s,setNavigationCount:m}),[d,s,m]);return(0,n.jsx)(l.Provider,{value:_,children:(0,n.jsx)(c.Provider,{value:h,children:e})})},u=()=>{let e=(0,i.useContext)(l);if(void 0===e)throw Error("useFullscreenState must be used within a FullscreenProvider");return e},m=()=>{let e=(0,i.useContext)(c);if(void 0===e)throw Error("useFullscreenDispatch must be used within a FullscreenProvider");return e}},382:function(e,t,r){"use strict";r.d(t,{ES:function(){return m},KQ:function(){return d},W_:function(){return u}});var n=r(85893),i=r(67294),s=r(11163),o=r(9658),a=r(5696);let l=(0,i.createContext)(),c=(0,i.createContext)(),d=({children:e})=>{let{totalSlides:t}=(0,a.Lj)(),r=(0,s.useRouter)(),[d,u]=(0,i.useState)(!1),[m,_]=(0,i.useState)({slideIndex:null,visible:!1,position:{x:0,y:0}}),[h,p]=(0,i.useState)(0),[f,x]=(0,i.useState)(!1),[w,v]=(0,i.useState)(0),g=(0,i.useRef)([]),j=(0,i.useRef)(new Map),y=(0,i.useRef)(0);(0,i.useEffect)(()=>{document.querySelector(".pushdown-ad")&&v(100)},[]);let b=(0,i.useCallback)(e=>{if(!e)return;let t=e.getBoundingClientRect().top-20-101-w;window.scrollBy({top:t,behavior:"instant"})},[20,101,w]),Z=(0,i.useCallback)(e=>{b(document.querySelector(`#slide${e}`))},[]),C=(0,i.useCallback)(e=>{let t=document.querySelectorAll(".slide-item"),r=null,n=e?-1/0:1/0;for(let i=0;i20&&a>n&&a<0&&(r=s,n=a):a>20&&a{u(!1),p(e=>{let r=e+1;return r===t?e:r})})}function k(){if(d){u(!1);return}p(e=>{let t=e-1;return -1===t?e:t})}function N(){x(!0),(0,o.Kz)("gallery_view_open")}function E(){x(!1),(0,o.Kz)("gallery_view_close")}function I(){_(e=>({...e,visible:!1}))}(0,i.useEffect)(()=>{function e(){p(0)}return r.events.on("routeChangeComplete",e),()=>{r.events.off("routeChangeComplete",e)}},[]),(0,i.useEffect)(()=>{let{hash:e}=window.location;if(!e)return;let r=parseInt(e.replace("#",""),10)-1;r<0||r>=t||p(r)},[]),(0,i.useEffect)(()=>{function e(e){"ArrowRight"===e.key?((0,i.startTransition)(()=>C()),(0,o.Kz)("navigation_arrow_right")):"ArrowLeft"===e.key&&((0,i.startTransition)(()=>C(!0)),(0,o.Kz)("navigation_arrow_left"))}return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]);let T=(0,i.useMemo)(()=>({goToNextSlide:S,goToPreviousSlide:k,scrollToSlide:Z,closeGalleryView:E,openGalleryView:N,hideContextMenu:I,setContextMenu:_,setCurrentSlideIndex:p,setIsShowingInterstitial:u}),[S,k,Z,E,N,I,_,p,u]),$=(0,i.useMemo)(()=>({contextMenu:m,currentSlideIndex:h,currentSlideItemIndexRef:y,isGalleryViewOpen:f,isShowingInterstitial:d,slideScrollDetectors:j,slidesRef:g}),[m,h,y,f,d,j,g]);return(0,n.jsx)(l.Provider,{value:$,children:(0,n.jsx)(c.Provider,{value:T,children:e})})},u=()=>{let e=(0,i.useContext)(l);return void 0===e&&console.error("useNavigationState must be used within a NavigationStateProvider"),e},m=()=>{let e=(0,i.useContext)(c);return void 0===e&&console.error("useNavigationDispatch must be used within a NavigationDispatchProvider"),e}},43740:function(e,t,r){"use strict";r.d(t,{RD:function(){return g},fi:function(){return y},Bl:function(){return j}});var n=r(85893),i=r(67294),s=r(92281),o=r(39424),a=r(80899),l=r(66317),c=r(43550),d=r(96801),u=r(95123),m=r(5696),_=r(26285);class h{constructor(){this.store=new Map}async upsertChatHistory({slideshowId:e,slideIndex:t,history:r}){let n=`${e}-${t}`;this.store.set(n,r)}async getChatHistory({slideshowId:e,slideIndex:t}){let r=`${e}-${t}`;return this.store.get(r)||[]}async clearAllData({slideshowId:e,slideIndex:t}){let r=`${e}-${t}`;this.store.delete(r)}}class p extends _.ZP{constructor(){super("rewriteAI"),this.memoryStore=new h,this.isMemoryFallback=!1,this.version(1).stores({chatHistory:"++id, &[slideshowId+slideIndex], history"}),window.addEventListener("unhandledrejection",e=>{let t=e?.reason;console.error("\uD83D\uDCA3 IndexedDB Error: ",e),t&&"object"==typeof t&&("QuotaExceededError"===t.name||"DatabaseError"===t.name)?(o.Tb(Error("Quota or DB Error in IndexedDB"),{tags:{type:"Rewrite AI Db Error"}}),this.switchToInMemoryStorage()):o.Tb(t)}),this.on("blocked",()=>{console.warn("Database is blocked - unable to access IndexedDB"),o.uT("IndexedDB database blocked."),this.switchToInMemoryStorage()})}switchToInMemoryStorage(){this.isMemoryFallback||(console.warn("\uD83D\uDD04 Switching to in-memory fallback for chat history storage"),this.isMemoryFallback=!0)}async upsertChatHistory({slideshowId:e,slideIndex:t,history:r}){if(this.isMemoryFallback)return this.memoryStore.upsertChatHistory({slideshowId:e,slideIndex:t,history:r});try{let n=[e,t];if(!await this.chatHistory.where("[slideshowId+slideIndex]").equals(n).count())return await this.chatHistory.add({slideshowId:e,slideIndex:t,history:r});await this.chatHistory.where("[slideshowId+slideIndex]").equals(n).modify({history:r})}catch(n){return console.error("Error saving data to IndexedDB:",n),o.Tb(n,{tags:{type:"Rewrite AI DB upsert history Error"}}),this.switchToInMemoryStorage(),this.memoryStore.upsertChatHistory({slideshowId:e,slideIndex:t,history:r})}}async getChatHistory({slideshowId:e,slideIndex:t}){if(this.isMemoryFallback)return this.memoryStore.getChatHistory({slideshowId:e,slideIndex:t});try{let r=await this.chatHistory.where("[slideshowId+slideIndex]").equals([e,t]).first();return r?.history||[]}catch(r){return console.error("Error retrieving data from IndexedDB:",r),o.Tb(r,{tags:{type:"Rewrite AI DB get history Error"}}),this.switchToInMemoryStorage(),this.memoryStore.getChatHistory({slideshowId:e,slideIndex:t})}}async clearAllData({slideshowId:e,slideIndex:t}){if(this.isMemoryFallback)return this.memoryStore.clearAllData({slideshowId:e,slideIndex:t});try{await this.chatHistory.where("[slideshowId+slideIndex]").equals([e,t]).delete()}catch(r){return console.error("Error clearing data from IndexedDB:",r),o.Tb(r,{tags:{type:"Rewrite AI DB clear data Error"}}),this.switchToInMemoryStorage(),this.memoryStore.clearAllData({slideshowId:e,slideIndex:t})}}}var f=r(9658),x=r(382);let w=(0,i.createContext)(),v=(0,i.createContext)(),g=({children:e})=>{let{transcript:t,id:r}=(0,m.Lj)(),[_,h]=(0,a.Z)("rewrite_ai_counter"),[,g]=(0,a.Z)("rewrite_ai_open"),j=(0,l.Z)("(min-width: 1250px)"),[y,b]=(0,i.useState)(null),[Z,C]=(0,i.useState)(null),[S,k]=(0,i.useState)(null),[N,E]=(0,i.useState)(null),[I,T]=(0,i.useState)([]),[$,L]=(0,i.useState)(!1),[R,P]=(0,i.useState)(!1),D=(0,i.useRef)(!1),A=null!==Z,F=(0,i.useMemo)(()=>_?function(e){try{let t=JSON.parse(e),r=new Intl.DateTimeFormat().format(new Date),n=t?.date||null,i=t?.value||0;return n===r?i:0}catch{return console.error("Error parsing rewrite AI counter"),0}}(_):0,[_]),B=I.slice().reverse().findIndex(e=>!e?.isUserMessage&&e?.text&&!e.isError),z=-1!==B?I.length-1-B:-1,q=z>0&&I[z],M=q?.text||t[Z];!function({isOpen:e}){let t=(0,i.useRef)(!1),{isFullStoryReady:r}=(0,d.mr)();(0,i.useEffect)(()=>{!t.current&&r&&e&&((0,c.u8)("setProperties",{type:"user",properties:{rewrite_ai:!0}}),t.current=!0)},[r,e])}({isOpen:A}),function({transcript:e,isRewriteAiVariant:t}){let[r,n]=(0,i.useState)(!1),{currentSlideIndex:s}=(0,x.W_)();(0,i.useEffect)(()=>{!r&&t&&null!==s&&e&&e[s]&&((0,f.Kz)("rewriteai_eligible"),n(!0))},[s,e,r,t])}({transcript:t,isDesktop:j}),(0,i.useEffect)(()=>{if(j)try{let e=new p;b(e)}catch(e){o.Tb(e),console.error("\uD83D\uDCA3 RewriteAI DB init failed:",e),b(null)}},[j]),(0,i.useEffect)(()=>{if(y&&null!=Z)return y.getChatHistory({slideshowId:r,slideIndex:Z}).then(e=>{P(!0),T(e),D.current=!0}).catch(e=>{o.Tb(e),console.error("Error loading chat history from Dexie:",e)}),()=>{D.current=!1}},[Z,y]),(0,i.useEffect)(()=>{y&&D.current&&y.upsertChatHistory({slideshowId:r,slideIndex:Z,history:I}).catch(e=>{o.Tb(e),console.error("Error saving chat history to Dexie:",e)})},[I,y]),(0,i.useEffect)(()=>{R&&N&&(k(N),E(null))},[R,N]),(0,i.useEffect)(()=>{g(A),A&&_&&L(F>u.Vm)},[A,_,F]);let K=()=>C(null),U=e=>C(e),O=(e=1)=>{let t=new Intl.DateTimeFormat().format(new Date),r=F+e;h(JSON.stringify({date:t,value:r})),L(r>u.Vm)},G=e=>{T(t=>[...t,...e]),O(e.length)},H=e=>{let t=I.filter(t=>t.id!==e);T(t),y?.upsertChatHistory({slideshowId:r,slideIndex:Z,history:t}).catch(e=>{o.Tb(e),console.error("Error saving chat history to Dexie:",e)}).then(()=>{O(-1)})},W=(e,t)=>{T(r=>r.map(r=>r.id===e?{...r,...t}:r))},V=()=>{y?.clearAllData({slideshowId:r,slideIndex:Z}),T([])},Q=async({instruction:e,userInput:t=null,audience:r=null},n)=>{let i=I.filter(e=>!e.isError);return(await (0,s.v_)("/rewrite",{audience:r,userInput:t,instruction:e,history:i,transcript:M},{},null,{signal:n})).data},Y=({index:e,action:t})=>{e!==Z&&P(!1),U(e),E(t)},J=(0,i.useMemo)(()=>({index:Z,action:S,isOpen:A,latestResponseText:M,chatHistory:I,latestResponse:q,isDailyLimitReached:$,isRewriteAiVariant:j}),[S,Z,I,M,$,j]),X=(0,i.useMemo)(()=>({setOpenIndexWithAction:Y,setOpenIndex:U,close:K,updateChatHistory:G,clearChatHistory:V,rewriteSlide:Q,updateChatMessage:W,removeChatMessage:H,setAction:k}),[I,M]);return(0,i.useEffect)(()=>()=>{D.current=!1},[]),(0,n.jsx)(w.Provider,{value:J,children:(0,n.jsx)(v.Provider,{value:X,children:e})})},j=()=>{let e=(0,i.useContext)(w);if(void 0===e)throw Error("useRewriteAIState must be used within a RewriteAIProvider");return e},y=()=>{let e=(0,i.useContext)(v);if(void 0===e)throw Error("useRewriteAIDispatch must be used within a RewriteAIProvider");return e}},5696:function(e,t,r){"use strict";r.d(t,{Ho:function(){return m},Lj:function(){return h},Zg:function(){return _}});var n=r(85893),i=r(67294),s=r(89211),o=r(12810),a=r(44646),l=r(26676),c=r(77397);let d=(0,i.createContext)(),u=(0,i.createContext)(),m=({children:e,value:t})=>{let r=(0,o.F)(),{updateUserAsync:m}=(0,s.useStatsigUser)(),[_,h]=(0,i.useState)(t);(0,i.useEffect)(()=>h(t),[t]);let p=_?.user?.login,f=_.type===a.vK.document,x=_.type===a.vK.infographic,w=_.type===a.vK.presentation,v=(0,l.n3)(_?.slideDimensions,_?.type),g=(0,l.vg)(_),j=(0,l.Z0)(_.recommendationsByLocation),y=_.user?.id===r.id,b=_.allowDownloads&&_.allowDownloadOriginalFile,Z=_.isConverted,C=_.formats?.length>1,S=Z&&_.formats.length>2,{isVariant:k}=(0,c.Z)({name:"slideshare_conversion_v2"}),N=Z&&k,E=Z&&!k,I=(y||b)&&(!Z&&C||N||E&&S),T=(0,i.useMemo)(()=>({..._,aspectRatio:v,isConverted:Z,isConversionVariant:N,isConversionControl:E,recsList:j,isDocument:f,isInfographic:x,isPresentation:w,showDownloadFormats:I,slideImages:g,username:p}),[_,v,Z,N,E,j,f,x,w,I,g,p]),$=(0,i.useMemo)(()=>({setSlideshow:h}),[h]);return(0,i.useEffect)(()=>{m({userID:r.id,custom:{converted:Z?"true":"false"}})},[Z]),(0,n.jsx)(u.Provider,{value:T,children:(0,n.jsx)(d.Provider,{value:$,children:e})})},_=()=>{let e=(0,i.useContext)(d);return void 0===e&&console.error("useSlideshowStateDispatch must be used within a SlideshowDispatchProvider"),e},h=()=>{let e=(0,i.useContext)(u);return void 0===e&&console.error("useSlideshowStateState must be used within a SlideshowStateProvider"),e}},57036:function(e,t,r){"use strict";var n=r(85893),i=r(67294),s=r(60157),o=r(34922),a=r(53591),l=r(30509),c=r(1247),d=r(9658),u=r(5696),m=r(18917);let _=(0,s.Z)(()=>Promise.all([r.e(9581),r.e(1500)]).then(r.bind(r,21500)),{ssr:!1}),h=(0,s.Z)(()=>r.e(6167).then(r.bind(r,6167)),{ssr:!1,loading:()=>(0,n.jsx)(l.Z,{count:2,itemWidth:180,itemHeight:44})});t.Z=({source:e,buttonProps:t={}})=>{let r=(0,c.Z)(),{handleDownload:s,isDownloading:l}=(0,m.Z)({source:e}),{extension:p}=(0,u.Lj)(),[f,x]=(0,i.useState)(!1);function w(e){s({originalFile:e.toLowerCase()===p.toLowerCase(),format:e.toLowerCase()}),x(!1)}return r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z,{...t,"aria-label":t.label,disabled:l,loading:l,onClick:function(){(0,d.Kz)("download_dropdown_open"),x(!0)},children:t.label}),(0,n.jsx)(_,{isOpen:f,onClose:()=>x(!1),onSelect:w})]}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.Z,{content:(0,n.jsx)(h,{onSelect:w}),position:"bottom",trigger:"hover",onOpenChange:function(e){e&&(0,d.Kz)("download_dropdown_open",{isMobile:r})},children:(0,n.jsx)(o.Z,{...t,"aria-label":t.label,disabled:l,loading:l,onClick:()=>x(!0),children:t.label})})})}},18917:function(e,t,r){"use strict";var n=r(85893),i=r(67294),s=r(61798),o=r(96801),a=r(12810),l=r(81247),c=r(57627),d=r(80899),u=r(77397),m=r(7144),_=r(94344),h=r(92281),p=r(5696);t.Z=({source:e}={})=>{let{isLoggedIn:t,isSubscriber:r}=(0,a.F)(),{isStaging:f}=(0,o.mr)(),{isVariant:x}=(0,u.Z)({name:"slideshare_post_download_modal_v2",parameter:"download_modal_copy",expectedValues:["variant_1","variant_2","variant_3"],enabled:t&&!f}),w=x&&!f,{showToast:v}=(0,l.kE)(),{id:g,canonicalUrl:j,secretUrl:y,downloadKey:b,isConversionVariant:Z,isPrivate:C,title:S}=(0,p.Lj)(),[k,N]=(0,i.useState)(!1),[,E]=(0,d.Z)("from_action"),{t:I}=(0,s.$G)("player"),T=`/slideshow/download?download_key=${b}&slideshow_id=${g}${C?`&key=${y}`:""}`;return{handleDownload:(0,i.useCallback)(async({originalFile:r=!1,fromAction:i=!1,format:s="pdf"}={})=>{if(k)return;N(!0);let o={slideshowId:g,source:e,originalFile:r};(0,m.oP)("slideshow_download_attempt",o);let a=j||window.location.href;if(!t){if(i){E(null);return}E(!0),N(!1),(0,_.Ap)(g,a,r);return}let l=await (0,h.v_)(`${T}${r?`&original_file=${r}`:""}&extension=${s}`);if(N(!1),l){if(l.data?.success&&l.data?.url){let e=I("download.success"),t=I("converted.description");(0,m.oP)("slideshow_download_init",o),w||v({id:"download_success_toast",content:Z&&"pptx"===s?e+"\n"+t:e,appearance:"success",icon:(0,n.jsx)(c.C,{name:"check"})}),(0,m.Sv)(l.data.url,S),E(null);return}if(l.data?.action==="subscription_required"&&!i){E(!0),(0,_.Ap)(g,a,r);return}(0,m.oP)("slideshow_download_fail",o),v({id:"download_error_toast",content:I(l.data.action),appearance:"error",icon:(0,n.jsx)(c.C,{name:"alert-triangle"})})}},[k,t,r,j,g,e,S,T,w]),isDownloading:k}}},5106:function(e,t,r){"use strict";var n=r(85893),i=r(67294),s=r(92281),o=r(61798),a=r(57627),l=r(12810),c=r(81247),d=r(7144),u=r(5696);t.Z=({source:e}={})=>{let{isSubscriber:t}=(0,l.F)(),{showToast:r}=(0,c.kE)(),{id:m,canonicalUrl:_,secretUrl:h,downloadKey:p,isPrivate:f,title:x}=(0,u.Lj)(),[w,v]=(0,i.useState)(!1),{t:g}=(0,o.$G)("player"),j=({originalFile:e,redirectUrl:t,format:r})=>{let n=new URLSearchParams({download_key:p,slideshow_id:m,redirect_url:t,format:r});return f&&n.append("key",h),e&&n.append("original_file",e),`/slideshow/drive_upload?${n.toString()}`};return{handleUpload:(0,i.useCallback)(async({originalFile:i=!1,className:o="",format:l="pdf"}={})=>{if(w)return;v(!0);let c={slideshowId:m,source:e,originalFile:i};(0,d.oP)("save_to_drive:click",c);let u=j({originalFile:i,redirectUrl:_||window.location.href,format:l});try{let e=await (0,s.U2)(u),{success:i,redirect_uri:l,notice:m}=e?.data||{};i&&l&&t?window.location.href=l:((0,d.oP)("save_to_drive:false",c),r({id:"download_error_toast",content:m||g("save_to_drive.errors.went_wrong"),appearance:"error",icon:(0,n.jsx)(a.C,{name:"alert-triangle"}),className:o}))}finally{v(!1)}},[w,t,_,m,e,f,h,p,x]),isDownloading:w}}},95123:function(e,t,r){"use strict";r.d(t,{$z:function(){return i},Eo:function(){return o},Uw:function(){return s},Vm:function(){return l},iN:function(){return a},oK:function(){return n}});let n={AUDIENCE_REWRITE:"audience_rewrite",OPENTEXT_REWRITE:"opentext_rewrite",CONCISE_REWRITE:"concise_rewrite",REPHRASE_REWRITE:"rephrase_rewrite",BULLETIZE_REWRITE:"bulletize_rewrite",ELABORATE_REWRITE:"elaborate_rewrite",RETRY_REWRITE:"retry_rewrite"},i=[{instruction:n.REPHRASE_REWRITE,key:"rephrase",icon:"pencil-line",isEnabledShortTranscript:!0},{instruction:n.CONCISE_REWRITE,key:"simplify",icon:"text",isEnabledShortTranscript:!1},{instruction:n.BULLETIZE_REWRITE,key:"key_points",icon:"list",isEnabledShortTranscript:!1},{instruction:n.ELABORATE_REWRITE,key:"elaborate",icon:"list-plus",isEnabledShortTranscript:!0},{instruction:n.AUDIENCE_REWRITE,key:"audience_adapt",icon:"user-pen",isEnabledShortTranscript:!0}],s=[{key:"high_school",audienceType:"students"},{key:"investors",audienceType:"investors"},{key:"generic",audienceType:"generic"}],o={THUMBS_UP:"thumbs_up",THUMBS_DOWN:"thumbs_down",NO_FEEDBACK:"no_feedback"},a=10,l=100},56308:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n=({slideNumber:e,slideshowId:t,message:r={},additionalProps:n={}})=>t?null==e?(console.warn("getMessageLogProperties: Missing required parameters",{slideNumber:e}),{}):{slide_number:e,slideshow_id:t,trace_id:r.traceId,prompt_template_version:r.promptTemplateVersion,prompt_template_name:r.promptTemplateName,audience:r.audience,open_text:r.userInput,...n}:(console.warn("getMessageLogProperties: Missing required parameters",{slideshowId:t}),{})},60778:function(e,t,r){"use strict";r.d(t,{HQ:function(){return u},fh:function(){return c},lk:function(){return _},zB:function(){return m},aM:function(){return d}});let n=` algorithmId description displayTitle isSavedByCurrentUser pageCount score slideshowId sourceName strippedTitle tags thumbnail url userLogin userName viewCount extension `,i=` recommendationsByLocation(recsModel: $recsModel) { rightRail { ${n} } whatsHot { ${n} } alsoLiked { ${n} } similarTo { ${n} } moreFromUser { ${n} } featured { ${n} } latest { ${n} } } `,s=` allowDownloads allowDownloadOriginalFile allowEmbeds canonicalUrl categories { id name url } createdAt description downloadKey editorsNotes { index text } emailShareUrl extension facebookShareUrl formats genaiDescriptionCreatedAt genaiTest isIabCategoriesTest iabCategories id isConverted iframeEmbed { url height width } isConverted isIndexable isLikedByCurrentUser isPrivate isViewable language likes linkedinShareUrl downloadCount ${i} secretUrl sectionSummaries { summaryList } shouldShowAds slideDimensions { height width } slides { ... on ImageUrls { urls { baseUrl webpSrcset jpegSrcset } } ... on ImageSizes { host title imageLocation imageSizes { quality width format } } } smsShareUrl strippedTitle thumbnail title topReadSlides { slideIndex ranking } totalSlides transcript { html } twitterShareUrl type user { id isFollowing login name occupation organization photo photoExists profileUrl shortName } views viewStats { views viewsFromEmbeds topEmbeds } `,o=` ... on SlideshowLocked { isLocked } ... on SlideshowPrivate { isPrivate isViewable } ... on SlideshowRemoved { isRemoved } ... on SlideshowNotFound { isNotFound } `;var a=r(2745),l=r(42598);let c=` query likes($query: SlideshowQuery!) { slideshow(query: $query) { ... on SlideshowSingle { likes isLikedByCurrentUser } } }`,d=` query SlideshowByQuery($query: SlideshowQuery!, $recsModel: String) { slideshow(query: $query) { ... on SlideshowSingle { ${s} } ${o} } ${l.Px} ${a.l} } `,u=` query userIsFollowing($login: String!) { user(login: $login) { isFollowing } } `,m=` query slideshowSavedItems($query: SlideshowQuery!) { slideshow(query: $query) { ... on SlideshowSingle { savedItems { savedItemId savedListId slideNumber } } } } `,_=` query reportCategoryTypes { unsafeCategoryTypes { id i18nKey sub_types: children { id i18nKey } } } `},90045:function(e,t,r){"use strict";r.d(t,{D7:function(){return s},bY:function(){return i},d:function(){return n},lB:function(){return o}});let n=` query savedLists { currentUser { allSavedCount allSaved(first: 3) { nodes { ... on SavedItemSlide { thumbnailUrl } ... on SavedItemSlideshow{ thumbnailUrl } } } saved { savedLists { id itemCount private slug thumbnailUrls title } } } }`,i=` query savedLists ($first: Int, $after: String) { currentUser { allSavedCount allSaved (first: $first, after: $after) { pageInfo { hasPreviousPage endCursor hasNextPage startCursor } nodes { ... on SavedItemSlide { id listedPosition slideNumber annotation thumbnailUrl slideshow { id canonicalUrl title type totalSlides user { login name } } } ... on SavedItemSlideshow { id listedPosition annotation thumbnailUrl slideshow { id canonicalUrl title type totalSlides user { login name } views } } } } } } `,s=` query listItems($id: ID!, $first: Int, $after: String) { savedList(id: $id) { id title slug description private default itemCount createdAt user { login shortName } savedItems (first: $first, after: $after) { pageInfo { hasPreviousPage endCursor hasNextPage startCursor } nodes { ... on SavedItemSlide { id listedPosition slideNumber annotation thumbnailUrl slideshow { id canonicalUrl title type totalSlides user { login name } } } ... on SavedItemSlideshow { id listedPosition annotation thumbnailUrl slideshow { id canonicalUrl title type totalSlides user { login name } views } } } } } } `,o=` query savedLists { currentUser { saved { savedLists { id slug title } } } }`},81112:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(67294),i=r(12810),s=r(81889),o=r(11163);function a(){let{authenticationToken:e}=(0,i.F)(),{locale:t,query:r}=(0,o.useRouter)();return(0,n.useCallback)(n=>(0,s.Z)({...n,locale:t,authenticationToken:e,abTests:r.ab_tests}),[e])}},23604:function(e,t,r){"use strict";var n=r(67294),i=r(62727);t.Z=({target:e,type:t,listener:r,options:s={},enabled:o})=>{let a=(0,i.Z)(r);(0,n.useEffect)(()=>{if(!o)return;let r=e?.current??e??window;if(r?.addEventListener)return r.addEventListener(t,a,s),()=>{r.removeEventListener(t,a,s)}},[e,a,o])}},83506:function(e,t,r){"use strict";var n=r(85945),i=r(48228),s=r(61798),o=r(80899),a=r(81247),l=r(92281);async function c({authorId:e,action:t}){return(await (0,l.v_)(`/contact/${t}`,{contactee:e})).data}t.Z=()=>{let e=(0,n.NL)(),{showErrorToast:t}=(0,a.kE)(),[,r]=(0,o.Z)("from_action"),{t:l}=(0,s.$G)("common");return(0,i.D)({mutationFn:c,onMutate:async({authorId:t})=>{await e.cancelQueries(["follow",t]);let r=e.getQueryData(["follow",t]);return e.setQueryData(["follow",t],e=>!e),()=>e.setQueryData(["follow",t],r)},onError:(e,t,r)=>{console.error(e,t),r?.()},onSettled:(n,i,{action:s})=>(n.success||t("create"===s?l("error.follow"):l("error.unfollow")),r(null),e.invalidateQueries({queryKey:["follow"]}))})}},89416:function(e,t,r){"use strict";var n=r(11163),i=r(96801);t.Z=e=>{let{isFeatureFlagEnabled:t}=(0,i.TL)(),{query:r}=(0,n.useRouter)();return"true"===r[e]||t(e)}},6042:function(e,t,r){"use strict";var n=r(67294),i=r(62727);t.Z=(e,t)=>{let r=(0,i.Z)(t);return(0,n.useCallback)((...t)=>{let i=t[0];(0,n.startTransition)(()=>{i?.key&&e.some(e=>i.key===e)&&(i.preventDefault(),r(...t))})},[e])}},41969:function(e,t,r){"use strict";var n=r(11163),i=r(61798),s=r(85945),o=r(48228),a=r(81247),l=r(9658),c=r(92281);async function d({slideshowId:e,slideNumber:t=null}){return await (0,c.v_)("/saved_items/destroy_saveable",{saved_item:{saveable_id:e,saveable_type:"Slideshow",slide_number:t}},{"Content-Type":"application/json"})}t.Z=()=>{let e=(0,s.NL)(),{showErrorToast:t}=(0,a.kE)(),{t:r}=(0,i.$G)("common"),c=(0,n.useRouter)();return(0,o.D)({mutationKey:["remove-saved"],mutationFn:d,onError:()=>t(r("error.remove_save")),onSuccess:(t,{slideNumber:r})=>{(0,l.Kz)("remove_save",{type:r?"slide":"slideshow",source:c.asPath,list_id:"default",...r&&{slide:r}}),e.invalidateQueries({queryKey:["saved","items"]})}})}},24978:function(e,t,r){"use strict";var n=r(85893),i=r(85945),s=r(48228),o=r(11163),a=r(61798),l=r(20377),c=r(81247),d=r(80899),u=r(92281),m=r(9658);async function _({slideshowId:e,slideNumber:t=null}){return(0,m.Kz)("save_attempt"),await (0,u.v_)("/saved_items",{saved_item:{saveable_id:e,saveable_type:"Slideshow",slide_number:t,response_type:"json"}},{"Content-Type":"application/json"})}t.Z=()=>{let e=(0,i.NL)(),{showErrorToast:t,showToast:r}=(0,c.kE)(),[,u]=(0,d.Z)("from_action"),{t:h}=(0,a.$G)("common"),p=(0,o.useRouter)();return(0,s.D)({mutationKey:["add-saved"],mutationFn:_,onError:()=>t(h("error.save")),onSuccess:(t,{slideshowId:i,slideNumber:s})=>{(0,m.Kz)("save",{type:"slideshow",source:p.asPath,list_id:"default",...s&&{slide:s}}),r({id:`saved-${i}`,content:(0,n.jsxs)("div",{children:[h("actions.save_to_new_list_success"),(0,n.jsx)(l.Z,{href:"/saved/?show=all",color:"inverse","data-cy":"all-saved",underline:!0,children:h("actions.all_saved")})]})}),u(null),e.invalidateQueries({queryKey:["saved"]})}})}},39640:function(e,t,r){"use strict";var n=r(67294),i=r(11163),s=r(14377),o=r(12810),a=r(24978),l=r(80899);t.Z=()=>{let{isLoggedIn:e}=(0,o.F)(),{asPath:t,push:r,query:c}=(0,i.useRouter)(),[d,u]=(0,l.Z)("from_action"),{mutate:m}=(0,a.Z)();(0,n.useEffect)(()=>{if(!d||!e)return;let n=c?.slideshow_id,i=parseInt(t.split("#")[1])??null,o=c?.from_action===s.NN,a=c?.from_action===s.tA,l=c?.from_action===s.R9;(o||a||l)&&n&&(m({slideshowId:n,slideNumber:i}),delete c.from_action,delete c.slideshow_id,r({query:c},void 0,{shallow:!0}),u(null))},[d,e,c])}},77397:function(e,t,r){"use strict";var n=r(89211),i=r(11163);t.Z=({name:e,parameter:t="output",fallbackValue:r=null,expectedValues:s=["variant"],enabled:o=!0})=>{let{client:a,isLoading:l}=(0,n.useStatsigClient)(),{query:c}=(0,i.useRouter)();if(l||!o)return{experiment:null,isVariant:!1,value:r};let d=a.getExperiment(e),u=d.get(t,r),m=c[e]??u;return{experiment:d,isLoading:l,isVariant:s.includes(m),value:m}}},92281:function(e,t,r){"use strict";let n,i;r.d(t,{U2:function(){return u},nv:function(){return c},r$:function(){return d},v_:function(){return l},y2:function(){return m}});var s=r(87066);let o=async()=>{let e=document.querySelector('meta[name="csrf-token"]');if(e)return e.getAttribute("content");let t=await s.Z.get("/csrf_token",{headers:{credentials:"same-origin",method:"GET"}});if(200!==t.status)throw Error(t.status);return n=t.data.csrf_token,t.data.csrf_token},a=async()=>n||(i||(i=o()),i),l=async(e,t,r={},n,i={})=>{let{noCSRFToken:o=!1,signal:l=null}=i,c={...r};o||(c["X-CSRF-Token"]=await a());let d={headers:c,onUploadProgress:n?e=>n(e.loaded):null};return l&&(d.signal=l),await s.Z.post(e,t,d)},c=async(e,t,r,n={})=>{let{noCSRFToken:i=!1}=n,s=new FormData;for(let[e,r]of Object.entries(t))s.append(e,r);return await l(e,s,{},r,{noCSRFToken:i})},d=async(e,t,r={})=>{let n=await a();return await s.Z.patch(e,t,{headers:{...r,"X-CSRF-Token":n}})},u=async(e,t={})=>await s.Z.get(e,{headers:t}),m=async(e,t,r={})=>{let n=await a();return await s.Z.delete(e,{headers:{...r,"X-CSRF-Token":n}})}},94344:function(e,t,r){"use strict";r.d(t,{Ap:function(){return u},B8:function(){return m},Gt:function(){return c},Vq:function(){return o},bI:function(){return d},lt:function(){return _},ng:function(){return s},or:function(){return a},vM:function(){return l}});var n=r(47929),i=r(14377);let s=(e={})=>{let t=window.location.href;(0,n.Z)({from_source:t,...e})},o=(e,t)=>{let r=new URL(window.location.href);r.searchParams.set("from_action","follow"),r.searchParams.set("author_id",t),(0,n.Z)({from_source:r.toString(),slideshow_id:e})},a=e=>{let t=new URL(window.location.href);t.searchParams.set("from_action","follow"),t.searchParams.set("user_id",e),(0,n.Z)({from_source:t.toString()})},l=e=>{let t=new URL(window.location.href);t.searchParams.set("from_action","favorite"),t.searchParams.set("slideshow_id",e),(0,n.Z)({from_source:t.toString(),slideshow_id:e})},c=(e,t)=>{let r=new URL(window.location.href);r.searchParams.set("from_action",t),r.searchParams.set("slideshow_id",e),(0,n.Z)({from_source:r.toString(),slideshow_id:e})},d=(e,t)=>{let r=new URL(window.location.href);r.searchParams.set("from_action",i.tA),r.searchParams.set("slideshow_id",e),r.hash!==`#${parseInt(t)}`&&(r.hash=parseInt(t)),(0,n.Z)({from_source:r.toString(),slideshow_id:e})},u=(e,t,r)=>{let i=new URL(t??window.location.href);i.searchParams.set("from_action","download"),i.searchParams.set("slideshow_id",e),r&&i.searchParams.set("original_file",!0),(0,n.Z)({from_source:i.toString(),slideshow_id:e,isDownload:!0,originalFile:r})},m=(e,t,r)=>{let i=new URL(window.location.href);i.searchParams.set("from_action",r),i.searchParams.set("slideshow_id",t),i.searchParams.set("index",e),(0,n.Z)({from_source:i.toString(),isDownload:!0,slideshow_id:t})},_=(e,t="")=>{let r=new URL(t);r.searchParams.set("from_action","download"),(0,n.Z)({from_source:r.toString(),slideshow_id:e,isDownload:!0,incentivized:!0})}},7144:function(e,t,r){"use strict";r.d(t,{KJ:function(){return l},Sv:function(){return a},gp:function(){return o},oP:function(){return s}});var n=r(92281),i=r(9658);let s=(e,{slideshowId:t,source:r,originalFile:n})=>{let s={slideshow_id:t,source:r||window.location.pathname,original_file:n};(0,i.Kz)(e,s)},o=async(e,{source:t,slideshowId:r,originalFile:i})=>{let o={source:t,originalFile:i,slideshowId:r};s("slideshow_download_attempt",o);let a=await (0,n.v_)(e+`${i?`&original_file=${i}`:""}`);s("slideshow_download_init",o);let l=document.createElement("iframe");return l.src=a.data.url,l.style.display="none",document.body.appendChild(l),a},a=(e,t)=>{let r=document.createElement("a");r.href=e,r.download=t,r.click()},l=(e,t)=>{let r=document.createElement("a");r.href=`/api/download-image?imageUrl=${encodeURIComponent(e)}&fileName=${encodeURIComponent(t)}`,r.download="",document.body.appendChild(r),r.click(),document.body.removeChild(r)}},5700:function(e,t,r){"use strict";r.d(t,{Am:function(){return c},KC:function(){return s},MD:function(){return d},S4:function(){return o},XA:function(){return l},Y_:function(){return m},Zf:function(){return _},uO:function(){return u}});var n=r(44646);let i=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(//g,"\\u003e").replace(/&/g,"\\u0026"),s=e=>({__html:i({"@context":"https://schema.org","@type":"ItemList",itemListElement:e.map((e,t)=>({"@type":"ListItem",position:t+1,url:e.canonicalUrl}))})}),o=e=>{let t=n.LO[e.extension]||n.LO.pdf;return{__html:i({"@context":"http://schema.org","@type":"CreativeWork",name:e.title,description:e.description,url:e.canonicalUrl,publisher:{"@type":"Organization",name:"Slideshare",url:"https://www.slideshare.net/"},author:{"@type":"Person",name:e.user?.name,url:e.user?.profileUrl},encodingFormat:t,fileFormat:t,inLanguage:e.language,mainEntityOfPage:{"@type":"WebPage","@id":e.canonicalUrl},thumbnailUrl:e.thumbnail})}},a={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://www.slideshare.net"}]},l=()=>({__html:i(a)}),c=(e,t,r,n)=>({__html:i({...a,itemListElement:[...a.itemListElement,{"@type":"ListItem",position:2,name:e,item:"https://www.slideshare.net/category/"+t},{"@type":"ListItem",position:3,name:r,item:n}]})}),d=()=>({__html:i({"@context":"https://schema.org/","@type":"WebSite",name:"SlideShare",url:"https://www.slideshare.net",potentialAction:{"@type":"SearchAction",target:"https://www.slideshare.net/search?searchfrom=header&q={search_term_string}","query-input":"required name=search_term_string"}})}),u=e=>({__html:i({"@context":"https://schema.org","@type":"Organization",name:"SlideShare",url:"https://www.slideshare.net",logo:e,sameAs:["https://twitter.com/SlideShare","https://www.linkedin.com/company/slideshare"],contactPoint:{"@type":"ContactPoint",contactType:"customer service",email:"support@slideshare.net"}})}),m=e=>({__html:i({"@context":"http://schema.org","@type":"WebPage",name:e("webpage_name"),description:e("webpage_description"),url:"https://www.slideshare.net/"})}),_=e=>({__html:i({"@context":"https://schema.org","@type":"CollectionPage",name:e.name,description:e.description,url:e.url})})},95343:function(e,t,r){"use strict";r.d(t,{R$:function(){return i}});let n=new Intl.NumberFormat("en",{notation:"compact",compactDisplay:"short",maximumFractionDigits:1}),i=e=>n.format(e)},75958:function(e,t,r){"use strict";r.d(t,{M:function(){return s}});let n=["de","fr","en","es","pt"];function i(e,t){let r="en"===t?"www.slideshare.net":`${t}.slideshare.net`;return e?e.replace(/^(https?:\/\/)?([a-z]{2,3}\.)?slideshare\.net/,`$1${r}`):r}let s=(e,t)=>{if(t)return function(e,t){let r=i(e,"en");if(n.includes(t)&&"en"!==t){let r=i(e,t);return{[t]:r,"x-default":r}}return"en"!==t&&/^[a-z]{2}$/.test(t)?{[t]:r,en:r,"x-default":r}:{en:r,"x-default":r}}(e,t);let r={};return n.forEach(t=>{r[t]=i(e,t)}),{...r,"x-default":r.en}}},26676:function(e,t,r){"use strict";r.d(t,{Z0:function(){return a},n3:function(){return i},s3:function(){return s},vg:function(){return o}});var n=r(44646);let i=(e,t)=>e?.width&&e?.height?`${e.width} / ${e.height}`:"presentation"===t?"16 / 9":"document"===t?"8.5 / 11":"auto",s=e=>{let t=(e.jpegSrcset||e.webpSrcset).split(", ");return t[t.length-1].split(" ")[0]},o=e=>{let{urls:t,imageLocation:r,imageSizes:n,host:i,title:s}=e.slides||{},{totalSlides:o}=e;if(t)return t;let a=({quality:e,width:t})=>`${i}/${r}/${e}/${s}-{{index}}-${t}.jpg`;if(!n)return[];let l=e=>e.map(e=>`${a(e)} ${e.width}w`).join(", "),c={baseUrl:a(n.filter(({format:e})=>"jpg"===e)[0]),jpegSrcset:l(n.filter(({format:e})=>"jpg"===e)),webpSrcset:l(n.filter(({format:e})=>"webp"===e||"jpg"===e))};return Array.from({length:o}).map((e,t)=>({baseUrl:c.baseUrl.replace(/\{\{index\}\}/g,t+1),jpegSrcset:c.jpegSrcset.replace(/\{\{index\}\}/g,t+1),webpSrcset:c.webpSrcset.replace(/\{\{index\}\}/g,t+1)}))},a=e=>{let t=[],r=!e||"object"!=typeof e,i=Array.isArray(e);if(r||i)return t;for(let r of n.QN){let n=e[r]??[];Array.isArray(n)&&0!==n.length&&t.push(...n.map(e=>({...e,_recSource:r})))}return t.slice(0,30)}},35063:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return nM},default:function(){return nK}});var n=r(85893),i=r(35440),s=r(9008),o=r.n(s),a=r(61798),l=r(96801),c=r(5700),d=r(75958);let u=({slideshow:e,t})=>{let r=e.description?e.description:e.title,n="";return n=e.allowDownloads?t("metadata.slideshow_page.description_download_format_view_free",{formatTypes:e.formats.join(", ").toUpperCase()}):t("metadata.slideshow_page.description_view_free"),`${r} - ${n}`};var m=({slideshow:e})=>{let{fullPath:t}=(0,l.mr)(),{t:r}=(0,a.$G)("player"),i=e.slideImages&&e.slideImages[0],s=(0,d.M)(e.canonicalUrl||t,e.language),m=e.isLocked||e.isPrivate,_=u({slideshow:e,t:r}),h=e.isIndexable?"index, follow":"noindex, nofollow",p=m?r("error.private_presentation"):e.title,f=e.isIabCategoriesTest?` | ${e.iabCategories}`:"",[x=960,w=540]=e.aspectRatio?.split(" / ").map(Number)||[],v=p;return m||p.match(/\.[a-z0-9]{2,4}$/i)||(v=`${p} | ${e?.extension?.toUpperCase()||"PDF"}${f}`),(0,n.jsxs)(o(),{children:[(0,n.jsx)("title",{children:v}),(0,n.jsx)("meta",{name:"robots",content:h}),(0,n.jsx)("meta",{name:"title",content:p}),(0,n.jsx)("meta",{name:"description",content:_}),i&&(0,n.jsx)("link",{rel:"preload",as:"image",href:i.baseUrl,imageSrcSet:i.webpSrcset||i.jpegSrcset,imageSizes:"100vw",fetchPriority:"high"}),(0,n.jsx)("link",{rel:"canonical",href:s["x-default"]}),Object.entries(s).map(([e,t])=>(0,n.jsx)("link",{rel:"alternate",hrefLang:e,href:t},e)),(0,n.jsx)("meta",{name:"twitter:site",content:"@SlideShare"}),(0,n.jsx)("meta",{name:"twitter:card",content:"player"}),(0,n.jsx)("meta",{name:"twitter:title",content:p}),(0,n.jsx)("meta",{name:"twitter:description",content:_}),(0,n.jsx)("meta",{name:"twitter:image",content:e.thumbnail}),(0,n.jsx)("meta",{name:"twitter:image:alt",content:p}),e.iframeEmbed&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"twitter:player",content:e.iframeEmbed.url}),(0,n.jsx)("meta",{name:"twitter:player:width",content:e.iframeEmbed.width}),(0,n.jsx)("meta",{name:"twitter:player:height",content:e.iframeEmbed.height})]}),(0,n.jsx)("meta",{name:"twitter:app:name:googleplay",content:"SlideShare Android"}),(0,n.jsx)("meta",{name:"twitter:app:id:googleplay",content:"net.slideshare.mobile"}),(0,n.jsx)("meta",{name:"twitter:app:name:iphone",content:"SlideShare iOS"}),(0,n.jsx)("meta",{name:"twitter:app:id:iphone",content:"917418728"}),(0,n.jsx)("meta",{name:"twitter:app:url:iphone",content:"slideshare-app://ss/165952101"}),(0,n.jsx)("meta",{name:"twitter:app:name:ipad",content:"SlideShare iOS"}),(0,n.jsx)("meta",{name:"twitter:app:id:ipad",content:"917418728"}),(0,n.jsx)("meta",{name:"twitter:app:url:ipad",content:"slideshare-app://ss/165952101"}),(0,n.jsx)("meta",{property:"og:site_name",content:"SlideShare"}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:url",content:e.canonicalUrl}),(0,n.jsx)("meta",{property:"og:title",content:p}),(0,n.jsx)("meta",{property:"og:description",content:_}),(0,n.jsx)("meta",{property:"og:image",content:e.thumbnail}),(0,n.jsx)("meta",{property:"og:image:alt",content:p}),(0,n.jsx)("meta",{property:"og:image:type",content:"image/webp"}),(0,n.jsx)("meta",{property:"og:image:width",content:640}),(0,n.jsx)("meta",{property:"og:image:height",content:Math.round(640*w/x)}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:(0,c.S4)(e)},"slideshow-json-ld"),e?.categories?.length&&e.categories.map(t=>(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:(0,c.Am)(t.name,t.url,e.title,e.canonicalUrl)},`${t.name}-breadcrumb-json-ld`))]})},_=r(90512),h=r(69588),p=r(41206),f=r(81247),x=r(60157),w=r(19781),v=r(26810),g=r(382),j=r(43740),y=r(5696),b=r(67294),Z=r(11163),C=r(57627),S=r(80899),k=r(94344),N=r(7144),E=r(26676),I=r(12810),T=r(18917),$=()=>{let{isSubscriber:e}=(0,I.F)(),{showToast:t}=(0,f.kE)(),{id:r,slideImages:i,strippedTitle:s,transcript:o}=(0,y.Lj)(),{query:l,push:c}=(0,Z.useRouter)(),{handleDownload:d}=(0,T.Z)(),[u,m]=(0,S.Z)("from_action"),{t:_}=(0,a.$G)("player");(0,b.useEffect)(()=>{if(!u||"download"!==l.from_action)return;let e="true"===l.original_file;delete l.from_action,delete l.original_file,delete l.slideshow_id,c({query:l},void 0,{shallow:!0}),d({originalFile:e,fromAction:!0})},[]);let h=(0,b.useCallback)(async e=>{try{await navigator.clipboard.writeText(e),t({id:"copy-text-success",content:_("actions.copy_text_success"),icon:(0,n.jsx)(C.C,{name:"badge-info"})})}catch(e){t({id:"copy-text-error",appearance:"error",content:_("actions.copy_text_error"),icon:(0,n.jsx)(C.C,{name:"alert-triangle"})})}},[]);return(0,b.useEffect)(()=>{if(!u)return;let t="download_slide"===l.from_action,r="copy_text"===l.from_action;if(!e&&(t||r)){m(!0),(0,k.B8)(l.index,l.slideshow_id,l.from_action);return}if(t){let e=s+"-slide-"+(l.index+1)+".jpg",t=i[l.index],r=(0,E.s3)(t);(0,N.KJ)(r,e)}r&&h(o[l.index]),delete l.from_action,delete l.slideshow_id,delete l.index,c({query:l},void 0,{shallow:!0})},[]),(0,b.useEffect)(()=>{if(!l?.g_upload_success)return;let e=l?.g_upload_success==="true";(0,N.oP)(`save_to_drive:${e}`,{slideshowId:r,source:{},originalFile:!1}),t({id:`download_${e?"success":"error"}_toast`,content:e?_("save_to_drive.success"):_("save_to_drive.errors.went_wrong"),appearance:e?"success":"error",icon:(0,n.jsx)(C.C,{name:e?"check":"alert-triangle",size:20})}),delete l.g_upload_success,c({query:l},void 0,{shallow:!0})},[l?.g_upload_success]),null},L=r(25437),R=r(20377),P=r(6894),D=r.n(P),A=({className:e=""})=>{let{editorsNotes:t}=(0,y.Lj)(),{scrollToSlide:r}=(0,g.ES)(),{t:i}=(0,a.$G)("player");return t.length?(0,n.jsxs)("div",{className:(0,_.Z)(D().root,e),children:[(0,n.jsx)(L.Z,{size:"xsmall",as:"h3",children:i("editors_notes")}),(0,n.jsx)("ul",{className:D().list,children:t.map(e=>{let t=e.index+1,i=`#${t}`;return(0,n.jsxs)("li",{className:D().item,children:[(0,n.jsxs)(R.Z,{href:i,className:D().link,onClick:()=>r(t),children:["#",t,":"]})," ",(0,n.jsx)(v.Z,{size:"large",children:e.text})]},e.index)})})]}):null},F=r(23089),B=r(67075),z=(e,{once:t=!0}={})=>{let[r,n]=(0,b.useState)(!1),i=(0,b.useRef)(!1),s=(0,b.useRef)(e);return(0,b.useEffect)(()=>{t&&i.current||s.current===e||(s.current=e,n(!0),t?i.current=!0:n(!1))},[e,t]),r},q=r(77397),M=r(57036),K=r(78902),U=r.n(K);let O=(0,x.Z)(()=>Promise.all([r.e(6286),r.e(6164)]).then(r.bind(r,76164)),{ssr:!1});var G=b.memo(({className:e,displayLabel:t=!0,useShortLabel:r,dataCy:i="download-button"})=>{let{isStaging:s}=(0,l.mr)(),{isLoggedIn:o}=(0,I.F)(),{handleDownload:c,isDownloading:d}=(0,T.Z)(),{formats:u,allowDownloads:m,downloadCount:h,showDownloadFormats:p,isConversionVariant:f}=(0,y.Lj)(),{locale:x}=(0,Z.useRouter)(),{t:w}=(0,a.$G)("player"),{isVariant:g,experiment:j}=(0,q.Z)({name:"slideshare_post_download_modal_v2",parameter:"download_modal_copy",expectedValues:["variant_1","variant_2","variant_3"],enabled:o&&!s}),[S,k]=(0,b.useState)(!1),N=z(S),E=g&&!s,$={iconBefore:(0,n.jsx)(C.C,{name:"download"}),size:"large","data-cy":i,"data-testid":"download-button"},L=w(r?"metadata.download.label_short":"metadata.download.label"),R=w("metadata.download_as",{formatTypes:u.join(", ").toUpperCase()}),P=f?R:h>=10?w("metadata.download.download_count",{count:new Intl.NumberFormat(x||"en").format(h)}):w("metadata.download.description");return((0,b.useEffect)(()=>{d&&E&&k(!0)},[d]),m)?(0,n.jsxs)("div",{className:(0,_.Z)(U().root,e),children:[N?(0,n.jsx)(O,{isOpen:S,variant:j?.groupName}):null,p?(0,n.jsx)(M.Z,{isDownloading:d,buttonProps:{...$,label:L},displayLabelCopy:t?P:""}):(0,n.jsx)(B.ZP,{...$,onClick:c,loading:d,children:L}),t&&(0,n.jsx)(v.Z,{size:"xsmall",color:"secondary",children:P})]}):null}),H=r(55040),W=r.n(H),V=()=>{let{isInfographic:e}=(0,y.Lj)(),{openGalleryView:t}=(0,g.ES)(),{t:r}=(0,a.$G)("metadata"),i=(0,_.Z)("gallery-view-button",W().root);return e?null:(0,n.jsx)(B.ZP,{className:i,appearance:"text","aria-label":r("gallery_view_label"),icon:(0,n.jsx)(C.C,{name:"layout-grid"}),size:"large",variant:"secondary",onClick:t})},Q=r(1247),Y=r(53591),J=r(9658);let X=(0,b.createContext)({}),ee=(0,b.createContext)({}),et=({children:e})=>{let[t,r]=(0,b.useState)(!1),i=()=>r(!1),s=()=>{(0,J.Kz)("slideshow_share_initiated"),(0,b.startTransition)(()=>r(!0))},o=(0,b.useMemo)(()=>({isShareModalOpen:t}),[t]),a=(0,b.useMemo)(()=>({closeShareModal:i,openShareModal:s}),[i,s]);return(0,n.jsx)(X.Provider,{value:o,children:(0,n.jsx)(ee.Provider,{value:a,children:e})})},er=()=>{let e=(0,b.useContext)(X);return void 0===e&&console.error("useShareState must be used within a ShareStateProvider"),e},en=()=>{let e=(0,b.useContext)(ee);return void 0===e&&console.error("useShareDispatch must be used within a ShareStateProvider"),e};var ei=r(36492),es=r(81112),eo=r(60778);async function ea(e){let t=await e({query:eo.lk});if(!t.data.unsafeCategoryTypes.length)throw Error("No category types found");return t.data.unsafeCategoryTypes}var el=(e=!1)=>{let t=(0,es.Z)();return(0,ei.a)({enabled:e,queryKey:["reportCategoryTypes"],queryFn:()=>ea(t)})},ec=r(5152),ed=r.n(ec),eu=r(93014),em=r(81964),e_=r(42181),eh=r.n(e_),ep=()=>(0,n.jsxs)("div",{className:eh().root,children:[[60,80,180,170,150,90,70,100].map(e=>(0,n.jsxs)("div",{className:eh().row,children:[(0,n.jsx)(em.Z,{type:"circle",width:12}),(0,n.jsx)(em.Z,{width:e,height:20})]},e)),(0,n.jsx)(em.Z,{width:360,height:72}),(0,n.jsx)(em.Z,{width:360,height:40})]});let ef=ed()(()=>r.e(6946).then(r.bind(r,16946)),{loadableGenerated:{webpack:()=>[16946]},ssr:!1,loading:()=>(0,n.jsx)(ep,{})});var ex=({isOpen:e,onClose:t})=>{let r=z(e),{data:i,isLoading:s,isSuccess:o}=el(),{t:l}=(0,a.$G)("report"),c=r&&o&&!s,d=r&&s;return(0,n.jsxs)(eu.ZP,{"data-testid":"report-modal",isOpen:e,placeBottomOnMobile:!0,size:"small",onClose:t,children:[(0,n.jsx)(eu.ZP.Title,{children:l("form.title")}),(0,n.jsxs)(eu.ZP.Content,{children:[d&&(0,n.jsx)(ep,{}),c&&(0,n.jsx)(ef,{categories:i,onSubmit:t,onCancel:t})]})]})},ew=r(68658),ev=r(27087),eg=r(57425),ej=r(34048),ey=r.n(ej),eb=()=>{let e=(0,y.Lj)(),t=(0,I.F)(),{openShareModal:r}=en(),i=(0,Q.Z)(),{t:s}=(0,a.$G)("report"),[o,l]=(0,b.useState)(!1),[c,d]=(0,b.useState)(!1),u=t&&t.id===e.user.id;function m(){let t=`${e.canonicalUrl}/edit?src=slideview`;window.location.href=t}function h(){let{username:r}=t;window.location.href=`/${r}/insight#summary/${e.id}/?range=1m`}return el(o),(0,n.jsxs)(n.Fragment,{children:[i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",className:(0,_.Z)("unstyled-button","more-button",ey().trigger),"aria-label":s("more"),"data-cy":"more-options-icon","data-testid":"ellipsis",onClick:()=>d(!0),children:(0,n.jsx)(ew.Z,{text:s("more"),children:(0,n.jsx)(C.C,{name:"ellipsis"})})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(ev.Z,{placement:"bottom",isOpen:c,onClose:()=>d(!1),children:(0,n.jsxs)("div",{className:ey().root,children:[(0,n.jsx)("div",{className:ey().drawerHeading,children:(0,n.jsx)(v.Z,{weight:"medium",children:s("more")})}),(0,n.jsx)(eg.C,{}),(0,n.jsxs)("ul",{className:ey().list,children:[!e.isPrivate&&(0,n.jsx)("li",{className:ey().item,children:(0,n.jsxs)("button",{className:(0,_.Z)("unstyled-button",ey().actionButton),type:"button","data-cy":"share-icon","data-testid":"share-button",onClick:r,children:[(0,n.jsx)(C.C,{name:"share",className:ey().icon}),s("share")]})}),(0,n.jsx)("li",{className:ey().item,children:(0,n.jsxs)("button",{type:"button",className:(0,_.Z)("unstyled-button",ey().actionButton),"data-testid":"report-button",onClick:()=>l(!0),children:[(0,n.jsx)(C.C,{name:"flag",className:ey().icon}),s("report")]})}),u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{className:ey().item,children:(0,n.jsxs)("button",{className:(0,_.Z)("unstyled-button",ey().actionButton),type:"button",onClick:m,children:[(0,n.jsx)(C.C,{name:"pencil"}),s("edit")]})}),(0,n.jsx)("li",{className:ey().item,children:(0,n.jsxs)("button",{className:(0,_.Z)("unstyled-button",ey().actionButton),type:"button",onClick:h,children:[(0,n.jsx)(C.C,{name:"chart-network"}),s("viewAnalytics")]})})]})]})]})})})]}):(0,n.jsx)(Y.Z,{position:"bottom-start",content:(0,n.jsxs)("ul",{"data-popover-list":!0,children:[(0,n.jsx)("li",{children:(0,n.jsxs)("button",{"data-popover-item":!0,type:"button",className:"unstyled-button","data-testid":"report-button",onClick:()=>l(!0),children:[(0,n.jsx)(C.C,{name:"flag",size:20}),s("report")]})}),!e.isPrivate&&(0,n.jsx)("li",{children:(0,n.jsxs)("button",{className:"unstyled-button","data-popover-item":!0,type:"button","data-cy":"share-icon","data-testid":"share-button",onClick:r,children:[(0,n.jsx)(C.C,{name:"share"}),s("share")]})}),u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{children:(0,n.jsxs)("button",{className:"unstyled-button","data-popover-item":!0,type:"button",onClick:m,children:[(0,n.jsx)(C.C,{name:"pencil",size:20}),s("edit")]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("button",{className:"unstyled-button","data-popover-item":!0,type:"button",onClick:h,children:[(0,n.jsx)(C.C,{name:"chart-network",size:20}),s("viewAnalytics")]})})]})]}),children:(0,n.jsx)("button",{type:"button",className:(0,_.Z)("unstyled-button","more-button",ey().trigger),"aria-label":s("more"),"data-cy":"more-options-icon","data-testid":"ellipsis",children:(0,n.jsx)(ew.Z,{text:s("more"),children:(0,n.jsx)(C.C,{name:"ellipsis"})})})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(ex,{isOpen:o,onClose:()=>l(!1)})})]})},eZ=r(5106),eC=r(2503),eS=r.n(eC),ek=b.memo(({source:e,className:t,displayLabel:i=!0})=>{let[s,o]=(0,b.useState)(!1),{t:l}=(0,a.$G)("player"),{isVariant:c}=(0,q.Z)({name:"save_to_drive_v1",expectedValues:["test"],fallbackValue:"control"}),{allowDownloads:d,showDownloadFormats:u}=(0,y.Lj)(),{handleUpload:m,isDownloading:h}=(0,eZ.Z)({source:e}),p=(0,x.Z)(()=>r.e(1103).then(r.bind(r,81103)),{ssr:!1});if((0,b.useEffect)(()=>{o(c)},[]),!s||!d)return null;let f=(0,_.Z)(eS().root,t),w=i?"":eS().compact,g=i?(0,n.jsx)(v.Z,{weight:"medium",children:l("save_to_drive.button")}):null,j={appearance:"outlined",size:"medium","data-cy":"save-to-drive-button","data-testid":"save-to-drive-button",iconBefore:(0,n.jsx)(C.C,{name:"google-drive",variant:"image",label:"Google Drive"}),className:w,label:g};return(0,n.jsx)("div",{className:f,children:u?(0,n.jsx)(p,{source:e,buttonProps:j}):(0,n.jsx)(B.ZP,{...j,loading:h,disabled:h,onClick:()=>m(),children:g})})}),eN=r(95608),eE=r.n(eN),eI=()=>{let{id:e,strippedTitle:t,thumbnail:r,username:i}=(0,y.Lj)(),{isSubscriber:s}=(0,I.F)(),o=(0,_.Z)("actions-menu-container",eE().root);return(0,n.jsxs)("div",{className:o,"data-cy":"actions-menu-mobile",children:[(0,n.jsxs)("div",{className:eE().actionContainer,children:[(0,n.jsx)(V,{}),(0,n.jsx)(F.Z,{slideshowId:e,strippedTitle:t,thumbnail:r,username:i}),(0,n.jsx)(eb,{})]}),(0,n.jsxs)("div",{className:eE().actionContainer,children:[s?(0,n.jsx)(ek,{displayLabel:!1}):null,(0,n.jsx)(G,{displayLabel:!1,useShortLabel:!0,dataCy:"download-button-actions-menu"})]})]})},eT=r(91454),e$=r(4599),eL=r.n(e$);let eR=ed()(()=>Promise.all([r.e(4552),r.e(2995)]).then(r.bind(r,82995)),{loadableGenerated:{webpack:()=>[82995]},ssr:!1});var eP=({className:e=""})=>{let{id:t,user:r}=(0,y.Lj)(),i=r.photoExists?r.photo:null;return(0,n.jsxs)("div",{className:(0,_.Z)("author",eL().root,e),children:[(0,n.jsxs)(R.Z,{"data-cy":"author-link",className:(0,_.Z)(eL().link,"ellipsis"),href:`/${r.login}`,title:r.name,children:[(0,n.jsx)(eT.Z,{size:"small",name:r.name,src:i}),r.name]}),(0,n.jsx)(eR,{author:r,slideshowId:t})]})},eD=r(48708),eA=r(92079),eF=r.n(eA),eB=b.memo(({categories:e=[],className:t,onCategoryClick:r=()=>{}})=>{let{t:i}=(0,a.$G)(["player"]),s=e=>i("metadata.category.description")+` ${e} `+i("metadata.category.label");if(!e.length)return null;let o=(0,_.Z)("pills-list",eF().root,t);return(0,n.jsx)("div",{className:o,children:e.map(({name:e,url:t})=>{let o=t.toLowerCase();return(0,n.jsx)(eD.Z,{href:`/category/${o}`,"aria-label":s(e),value:o,onClick:()=>r(o),children:i(e)},`category-pill-${e}`)})})}),ez=r(96494),eq=r.n(ez),eM=({isExpanded:e,onToggle:t})=>{let{categories:r,description:i}=(0,y.Lj)(),{t:s}=(0,a.$G)("player"),o=s(e?"metadata.readLess":"metadata.readMore"),l=(0,_.Z)("description",eq().root,{[eq().clamped]:!e,[eq().expanded]:e});return i?(0,n.jsxs)("div",{className:l,children:[(0,n.jsxs)("div",{className:eq().wrapper,children:[(0,n.jsx)("p",{"data-cy":"document-description",children:i}),(0,n.jsx)(eB,{categories:r,onCategoryClick:function(e){(0,J.Kz)("category_pill_clicked",{category:e,source:"above_player"})}})]}),(0,n.jsx)(B.ZP,{className:eq().more,appearance:"text","aria-label":o,"data-cy":"read-more-button",size:"small",onClick:function(){t(e=>!e),e||(0,J.Kz)("description_read_more_click")},children:o})]}):null},eK=r(58386),eU=r(53387),eO=r.n(eU);let eG=["title","description","title_description"],eH={title:{labelKey:"metadata.aiTag.titleLabel",titleKey:"metadata.aiTag.titleTooltipTitle",textKey:"metadata.aiTag.titleTooltip"},description:{labelKey:"metadata.aiTag.descriptionLabel",titleKey:"metadata.aiTag.descriptionTooltipTitle",textKey:"metadata.aiTag.descriptionTooltip"},title_description:{labelKey:"metadata.aiTag.titleAndDescriptionLabel",titleKey:"metadata.aiTag.titleAndDescriptionTooltipTitle",textKey:"metadata.aiTag.titleAndDescriptionTooltip"}};var eW=()=>{let{t:e}=(0,a.$G)("player"),{genaiTest:t}=(0,y.Lj)();if(!eG.includes(t))return null;let r=`aiTag-${t}`,i=eH[t];return(0,n.jsx)(Y.Z,{content:(0,n.jsxs)("div",{className:eO().content,children:[(0,n.jsx)(v.Z,{size:"large",weight:"medium",as:"p",children:e(i?.titleKey)}),(0,n.jsx)(v.Z,{children:e(i?.textKey)})]}),position:"bottom-start",trigger:"hover",children:(0,n.jsxs)("button",{type:"button",className:(0,_.Z)("ai-tag","unstyled-button",eO().tag),"data-cy":"ai-tag","aria-describedby":r,children:[(0,n.jsx)(C.C,{name:"sparkles",size:20}),e(i?.labelKey)]})})},eV=r(27999),eQ=r.n(eV),eY=()=>{let{t:e}=(0,a.$G)("player"),{showDownloadFormats:t,formats:r,isConversionVariant:i}=(0,y.Lj)();if(!t)return null;let s=e("metadata.download_as",{formatTypes:r.join(", ").toUpperCase()}),o=(0,_.Z)(eQ().root,{[eQ().converted]:i});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Y.Z,{content:i?(0,n.jsx)(v.Z,{as:"p",className:eQ().copy,children:e("converted.description")}):null,trigger:"hover",children:(0,n.jsx)(v.Z,{className:o,children:s})}),(0,n.jsx)(eK.Z,{})]})},eJ=r(6042);async function eX(e,t,r){return(await e({query:eo.fh,variables:{query:{strippedTitle:r,id:t}}})).data.slideshow}let e0=(e,t,r)=>{let n=(0,es.Z)();return{queryKey:["likes",e],queryFn:()=>eX(n,e,t),initialData:r}};var e1=({slideshowId:e,title:t,initialData:r})=>{let n=e0(e,t,r);return(0,ei.a)(n)},e2=r(21134),e9=r(31515),e8=r.n(e9);let e6=()=>(0,n.jsxs)("div",{className:e8().item,children:[(0,n.jsx)(e2.Z,{type:"circle",width:40,height:40}),(0,n.jsx)(e2.Z,{width:160}),(0,n.jsx)(e2.Z,{width:240})]});var e5=()=>{let e=Array.from({length:5});return(0,n.jsx)("div",{className:e8().root,children:e.map((e,t)=>(0,n.jsx)(e6,{},t))})},e4=r(59403);async function e7(e,t,r){let n=`/slideshow/favorites_list/${e}.json?offset=${t}&key=${r}`,i=await fetch(n);if(!i.ok)throw Error(`Failed to fetch likes list for slideshow ${e}`,i);return await i.json()}var e3=({enabled:e,id:t,secretUrl:r})=>{let[n,i]=(0,b.useState)(0);return(0,b.useEffect)(()=>{e||i(0)},[e]),(0,e4.N)({enabled:e,queryKey:["likesList",t],queryFn:()=>e7(t,n,r),getNextPageParam:e=>{if(!(e.length<5))return n+5},onSuccess:({pages:e})=>{e[e.length-1].length>=5&&i(e=>e+5)}})},te=r(4698),tt=r.n(te);let tr=(0,x.Z)(()=>Promise.all([r.e(7296),r.e(6217)]).then(r.bind(r,6217)),{loading:()=>(0,n.jsx)(e5,{}),ssr:!1});var tn=({slideshowId:e,secretUrl:t,totalLikes:r,isOpen:i,onClose:s})=>{let{t:o}=(0,a.$G)("metadata"),l=z(i),c=e3({enabled:i,id:e,secretUrl:t}),d=`${r} ${o("like",{count:parseInt(r)})}`,u=c.data?.pages?.flat()??[],m=u.lengthc.fetchNextPage(),children:o("show_more")})]})]})},ti=r(3980),ts=r.n(ti),to=b.memo(()=>{let{id:e,isLikedByCurrentUser:t,likes:r,secretUrl:i,strippedTitle:s}=(0,y.Lj)(),{t:o}=(0,a.$G)("metadata"),{data:l}=e1({slideshowId:e,title:s,initialData:{likes:r,isLikedByCurrentUser:t}}),[c,d]=(0,b.useState)(!1),u=l?.likes??r,m=new Intl.NumberFormat().format(u),_=o("like",{count:parseInt(u)}),h=`${m} ${_}`;function p(){(0,b.startTransition)(()=>d(!0))}let f=(0,eJ.Z)(["Enter"," "],p);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{className:ts().root,tabIndex:"0",color:"secondary",onClick:p,onKeyDown:f,children:h}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(tn,{slideshowId:e,secretUrl:i,totalLikes:u,isOpen:c,onClose:d})})]})}),ta=r(88991),tl=r.n(ta);let tc=({label:e,value:t})=>(0,n.jsxs)("div",{className:tl().row,children:[(0,n.jsx)(v.Z,{color:"secondary",children:e}),(0,n.jsx)(v.Z,{children:t})]});var td=({views:e,stats:t,isOpen:r,onClose:i})=>{let{t:s}=(0,a.$G)("metadata"),o=(0,Z.useRouter)();return(0,n.jsxs)(eu.ZP,{isOpen:r,size:"small",onClose:i,children:[(0,n.jsx)(eu.ZP.Title,{children:s("view_other")}),(0,n.jsxs)(eu.ZP.Content,{className:tl().content,children:[(0,n.jsx)(tc,{label:s("total_views"),value:e.toLocaleString(o.locale)}),(0,n.jsx)(tc,{label:s("on_slideshare"),value:t.views}),(0,n.jsx)(tc,{label:s("from_embeds"),value:t.viewsFromEmbeds}),(0,n.jsx)(tc,{label:s("number_of_embeds"),value:t.viewsFromEmbeds})]})]})},tu=()=>{let{views:e,viewStats:t}=(0,y.Lj)(),{t:r}=(0,a.$G)("metadata"),[i,s]=(0,b.useState)(!1),o=new Intl.NumberFormat().format(e);function l(){(0,b.startTransition)(()=>s(!0))}let c=(0,eJ.Z)(["Enter"," "],l);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(v.Z,{className:ts().root,tabIndex:"0",onClick:l,onKeyDown:c,children:[o," ",r("view",{count:parseInt(e)})]}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(td,{views:e,stats:t,isOpen:i,onClose:()=>s(!1)})})]})},tm=r(70436),t_=r.n(tm),th=b.memo(()=>(0,n.jsxs)("div",{className:(0,_.Z)("stats",t_().root),children:[(0,n.jsx)(eY,{}),(0,n.jsx)(to,{}),(0,n.jsx)(eK.Z,{}),(0,n.jsx)(tu,{}),(0,n.jsx)(eW,{})]})),tp=r(32008),tf=r.n(tp),tx=()=>{let{title:e}=(0,y.Lj)(),[t,r]=(0,b.useState)(!1),i=(0,_.Z)("metadata",tf().root,{[tf().expanded]:t});return(0,n.jsxs)("div",{className:i,"data-cy":"metadata",children:[(0,n.jsx)(L.Z,{as:"h1",weight:"bold",className:(0,_.Z)("title",tf().title),children:e}),(0,n.jsx)(th,{}),(0,n.jsx)(eP,{}),(0,n.jsx)(eM,{isExpanded:t,onToggle:r})]})},tw=r(85945),tv=r(48228),tg=r(92281);async function tj({slideshowId:e,userId:t}){return await (0,tg.v_)("/favorite/create",{response_type:"json",slideshow_id:e,source:"slideviewer",user_id:t},{"Content-Type":"application/json"})}var ty=()=>{let{t:e}=(0,a.$G)("common"),t=(0,tw.NL)(),{showErrorToast:r}=(0,f.kE)(),[,n]=(0,S.Z)("from_action");return(0,tv.D)({mutationFn:tj,onMutate:async({slideshowId:e})=>{await t.cancelQueries(["likes",e]);let r=t.getQueryData(["likes",e]);return t.setQueryData(["likes",e],e=>({isLikedByCurrentUser:!0,likes:e?.likes?e.likes+1:0})),()=>t.setQueryData(["likes",e],r)},onError:(e,t,r)=>{console.error(e,t),r?.()},onSettled:(i,s,o,a)=>{i.data.success?(t.invalidateQueries({queryKey:["likes"]}),t.removeQueries({queryKey:["likesList"]}),(0,J.Kz)("slideshow_liked")):(r(e("error.favorite_add")),console.error("useFavoriteAddMutation :: ",i,s,o),a?.()),n(null)}})};async function tb({slideshowId:e,userId:t}){return await (0,tg.v_)("/favorite/delete",{slideshow_id:e,user_id:t,source:"slideviewer",response_type:"json"},{"Content-Type":"application/json"})}var tZ=()=>{let e=(0,tw.NL)(),{showErrorToast:t}=(0,f.kE)(),{t:r}=(0,a.$G)("common");return(0,tv.D)({mutationFn:tb,onMutate:async({slideshowId:t})=>{await e.cancelQueries(["likes"]);let r=e.getQueryData(["likes",t]);return e.setQueryData(["likes",t],e=>({isLikedByCurrentUser:!1,likes:e?.likes?e.likes-1:0})),()=>e.setQueryData(["likes",t],r)},onError:(e,t,r)=>{console.error(e,t),r?.()},onSettled:(n,i,s,o)=>{n.data.success?(e.invalidateQueries({queryKey:["likes"]}),e.removeQueries({queryKey:["likesList"]}),(0,J.Kz)("slideshow_unliked")):(t(r("error.favorite_remove")),console.error("useFavoriteDeleteMutation :: ",n,i,s),o?.())}})},tC=({className:e=""})=>{let{id:t,isLoggedIn:r}=(0,I.F)(),{id:i,isLikedByCurrentUser:s,likes:o,strippedTitle:l}=(0,y.Lj)(),{t:c}=(0,a.$G)("player"),{data:d}=e1({slideshowId:i,title:l,initialData:{likes:o,isLikedByCurrentUser:s}}),{mutate:u}=ty(),{mutate:m}=tZ(),[,h]=(0,S.Z)("from_action"),p=d?.isLikedByCurrentUser??s,f=p?"like-filled":"like",x=c(p?"actions.remove_like":"actions.like"),w=(0,_.Z)("like-button",p?"liked":"unliked",e),v=(0,b.useCallback)(()=>{if(!r){h(!0),(0,k.vM)(i);return}p?m({slideshowId:i,userId:t}):u({slideshowId:i,userId:t})},[r,i,p]);return(0,n.jsx)(ew.Z,{text:x,children:(0,n.jsx)(B.ZP,{className:w,appearance:"text","aria-label":x,"data-favorited":p?"true":"false","data-cy":"like-button",icon:(0,n.jsx)(C.C,{name:f}),size:"regular",variant:"secondary",onClick:v})})},tS=r(24775),tk=r.n(tS),tN=()=>{let{id:e,strippedTitle:t,thumbnail:r,username:i}=(0,y.Lj)(),s=(0,_.Z)("actions",tk().root);return(0,n.jsxs)("div",{className:s,children:[(0,n.jsx)(tC,{}),(0,n.jsx)(F.Z,{slideshowId:e,strippedTitle:t,thumbnail:r,username:i}),(0,n.jsx)(eb,{})]})},tE=r(58546),tI=r.n(tE),tT=()=>{let{currentSlideIndex:e}=(0,g.W_)(),{totalSlides:t}=(0,y.Lj)(),{isSubscriber:r}=(0,I.F)(),{t:i}=(0,a.$G)("metadata"),s=(0,b.useRef)(null),o=(0,_.Z)(tI().root,"metadata-toolbar");return(0,n.jsx)("div",{ref:s,className:o,"data-cy":"slideshow-toolbar",children:(0,n.jsxs)("div",{className:tI().wrapper,children:[(0,n.jsx)(tN,{}),(0,n.jsxs)("span",{"data-cy":"page-number",className:tI().pageNumber,children:[e+1," ",i("slide_count_of_total")," ",t]}),(0,n.jsxs)("div",{className:tI().actions,children:[r?(0,n.jsx)(ek,{}):null,(0,n.jsx)(G,{displayLabel:!0,dataCy:"download-button-toolbar"})]}),(0,n.jsx)("div",{className:tI().underline})]})})},t$=r(28929),tL=r(93332),tR=r.n(tL),tP=({children:e,isOpen:t=!1,showCloseButton:r=!0,onClose:i=()=>{}})=>(0,n.jsx)(t$.Z,{className:tR().root,isOpen:t,showCloseButton:r,onClose:i,canClickAway:!1,children:(0,n.jsx)(t$.Z.Content,{className:tR().content,children:e})}),tD=r(11310),tA=r(52155);let tF=(0,x.Z)(()=>Promise.all([r.e(9768),r.e(9170)]).then(r.bind(r,69170)),{ssr:!1,loading:()=>(0,n.jsx)("div",{style:{display:"grid",placeContent:"center"},children:(0,n.jsx)(tD.Z,{size:36})})});var tB=()=>{let{isFullscreen:e}=(0,tA.b7)(),{setIsFullscreen:t}=(0,tA.Ei)(),r=z(e);return(0,n.jsx)(tP,{isOpen:e,showCloseButton:!1,onClose:()=>t(!1),children:r?(0,n.jsx)(tF,{}):null})},tz=r(45697),tq=r.n(tz);function tM(){return(0,n.jsxs)("div",{className:tq().root,children:[(0,n.jsx)(em.Z,{width:"80px"}),(0,n.jsx)(em.Z,{type:"text",width:"240px"}),(0,n.jsx)(em.Z,{type:"text",width:"300px"}),(0,n.jsx)(em.Z,{type:"text",width:"180px"})]})}var tK=r(23604),tU=e=>{let{currentSlideIndex:t}=(0,g.W_)(),r=Number.isInteger(t)?t+1:1;(0,b.useEffect)(()=>{let t=document.querySelector(`.previews div:nth-child(${r})`),n=e.current;if(!t||!n)return;let i=t.offsetTop,s=i+t.offsetHeight,o=n.scrollTop,a=n.clientHeight;i>=o&&s<=o+a||(i{let{t:e}=(0,a.$G)("player");return(0,n.jsx)(tO.Z,{className:tH().root,children:e("metadata.most_read")})},tV=r(28),tQ=r.n(tV);let tY=(0,x.Z)(()=>Promise.all([r.e(5903),r.e(1786)]).then(r.bind(r,81786)),{ssr:!1,loading:()=>(0,n.jsx)(tM,{})}),tJ=(0,b.forwardRef)(({index:e,imageData:t,isTopRead:r,className:i,source:s="preview-pane",showIndex:o=!0,onClick:a,...l},c)=>{let{aspectRatio:d}=(0,y.Lj)(),{currentSlideIndex:u}=(0,g.W_)(),{scrollToSlide:m}=(0,g.ES)(),h=e=>{(0,J.Kz)("slide_preview_click",{slide_index:e,is_top_read:r,source:s}),m(e+1)},p=(0,b.useRef)(),f=(0,_.Z)(tQ().thumbnail);return(0,b.useEffect)(()=>{let e=new Image;e.src=t.baseUrl,e.onload=()=>{p.current?.classList.add(tQ().loaded)}},[t.baseUrl]),(0,tK.Z)({target:p.current,type:"dragstart",listener:()=>(0,J.Kz)("slide_preview_image_drag",{index:e})}),(0,n.jsxs)("a",{ref:c,"aria-describedby":`key-moment-${e}`,className:(0,_.Z)(i,tQ().momentContainer,{[tQ().current]:e===u,current:e===u}),href:`#${e+1}`,onClick:()=>{if(a){a(e);return}h(e)},id:`slide-preview-${e}`,...l,children:[o&&(0,n.jsx)("span",{className:(0,_.Z)(tQ().slideHeading,"slide-heading"),children:e+1}),(0,n.jsx)("div",{className:(0,_.Z)(tQ().thumbnailContainer,"thumbnail-container"),style:{aspectRatio:d},children:(0,n.jsx)("div",{ref:p,className:f,style:{backgroundImage:`url(${t.baseUrl})`}})})]})});var tX=()=>{let{slideImages:e,transcript:t,topReadSlides:r}=(0,y.Lj)(),{t:i}=(0,a.$G)("player"),s=(0,b.useRef)(),o=(0,b.useRef)(!1);(0,b.useEffect)(()=>{let e=()=>{requestAnimationFrame(()=>{o.current||((0,J.Kz)("slide_preview_scroll"),o.current=!0)})},t=s.current;return t&&t.addEventListener("scroll",e,{passive:!0}),()=>{t&&t.removeEventListener("scroll",e)}},[]),tU(s);let l=(0,_.Z)("previews",tQ().root,"hide-scrollbar");return(0,n.jsx)("div",{className:l,ref:s,children:e.map((e,s)=>{let o=`${i("metadata.page")} ${s+1}`,a=t[s],l=r.some(e=>e.slideIndex===s);return(0,n.jsxs)("div",{className:tQ().previewContainer,children:[(0,n.jsx)(Y.Z,{content:a?(0,n.jsx)(tY,{index:s,title:o,description:a,isTopRead:l}):null,position:"bottom-start",trigger:"hover",onOpenChange:e=>{e&&(0,J.Kz)("slide_preview_hover",{slide_index:s,is_top_read:l})},children:(0,n.jsx)(tJ,{index:s,imageData:e,isTopRead:l})}),l?(0,n.jsx)(tW,{}):null]},s)})})},t0=r(90710),t1=r(66317),t2=()=>null!==(0,t1.Z)("(hover: hover)"),t9=r(4298),t8=r.n(t9),t6=r(18336),t5=r.n(t6);function t4(){let{showSlideshowPageAds:e}=(0,t0.ZK)(),{t}=(0,a.$G)("common"),[r,i]=(0,b.useState)();return e?r?(0,n.jsx)("div",{className:t5().root,children:(0,n.jsx)("span",{children:t("ad.error")})}):(0,n.jsxs)("div",{className:t5().root,children:[(0,n.jsx)("div",{className:t5().container,children:(0,n.jsx)("div",{id:"96a5a648-1fd9-479e-b166-bdf7a3d45e89",className:t5().videoAd,"data-video-ad":!0})}),(0,n.jsx)(t8(),{id:"asc-video-player",className:"exco-player",src:"//player.ex.co/player/96a5a648-1fd9-479e-b166-bdf7a3d45e89",strategy:"lazyOnload",onError:e=>{console.error("\uD83D\uDCA3 VideoAd script failed to load:",e),i(e)}})]}):null}var t7=r(2917),t3=()=>{let{isGalleryViewOpen:e,slidesRef:t}=(0,g.W_)(),{isFullscreen:r}=(0,tA.b7)(),{setCurrentSlideIndex:n}=(0,g.ES)(),i=(0,b.useRef)(null),s=t.current,o=(0,b.useCallback)(t=>{s.length&&(r||e||t.forEach(e=>{e.isIntersecting&&n(s.indexOf(e.target))}))},[s,n,r,e]);return(0,b.useEffect)(()=>(i.current&&i.current.disconnect(),i.current=new IntersectionObserver(o,{root:null,rootMargin:"-50% 0px -50% 0px",threshold:[0]}),s.forEach(e=>{e&&i.current.observe(e)}),()=>{i.current&&i.current.disconnect()}),[s,o]),i};let re=(0,x.Z)(()=>Promise.all([r.e(1259),r.e(1328)]).then(r.bind(r,31328)),{ssr:!1}),rt=(0,x.Z)(()=>Promise.all([r.e(1054),r.e(3159)]).then(r.bind(r,53159)),{ssr:!1});var rr=()=>{let{isShareModalOpen:e}=er(),{closeShareModal:t}=en(),r=(0,Q.Z)();return e?r?(0,n.jsx)(rt,{isOpen:e,onClose:t}):(0,n.jsx)(re,{isOpen:e,onClose:t}):null},rn=r(86133),ri=r.n(rn),rs=()=>{let{isDocument:e,isPresentation:t}=(0,y.Lj)(),{setIsShowingInterstitial:r}=(0,g.ES)(),i=(0,b.useRef)(null);(0,b.useEffect)(()=>{let e=i.current;if(!e||!("IntersectionObserver"in window))return;let t=new IntersectionObserver(e=>{r(e[0].isIntersecting)},{threshold:[.35]});return t.observe(e),()=>t.disconnect()},[]);let s=(0,_.Z)("slide-item",ri().root);return(0,n.jsxs)("div",{className:s,ref:i,children:[(0,n.jsx)(p.EE,{}),e&&(0,n.jsx)(p._N,{}),t&&(0,n.jsx)(p.vV,{})]})},ro=e=>{let t=(0,Z.useRouter)();(0,b.useEffect)(()=>{let r=parseInt(t.asPath.split("#")[1],10);r===e+1&&setTimeout(()=>{let e=document.querySelector(`#slide${r}`);e?.scrollIntoView({block:"center",behavior:"smooth"})},1500)},[t.asPath,e])},ra=r(21e3),rl=r.n(ra);let rc=(0,x.Z)(()=>Promise.all([r.e(5259),r.e(4178)]).then(r.bind(r,64178)),{ssr:!1});var rd=({className:e="",index:t,alt:r,src:i,srcSet:s,onClick:o=()=>{}})=>{let a=(0,b.useRef)(),l=(0,b.useRef)(null),{contextMenu:c,slidesRef:d}=(0,g.W_)(),{setContextMenu:u}=(0,g.ES)(),{allowDownloads:m,transcript:h,isPresentation:p}=(0,y.Lj)(),f=(0,Q.Z)(),x=(m||h?.[t])&&!f,w=0===t,v=(0,_.Z)("vertical-slide-image",rl().image,e),j=()=>{let e=h?.[t]&&m?73:m?50:27,r=a.current?.getBoundingClientRect();return{x:r.left+r.width/2-95,y:p?r.top+r.height/2-e:r.top+100}},Z=()=>{requestAnimationFrame(()=>{clearTimeout(l.current),l.current=null})},C=e=>{e?.preventDefault(),e?.stopPropagation(),x&&((0,J.Kz)("slide_right_clicked",{index:t}),u({visible:!0,position:e?{x:e?.clientX,y:e?.clientY}:j(),slideIndex:t}),Z())},S=(0,eJ.Z)(["Enter"," "],o),k=t===c.slideIndex&&c.visible;return(0,tK.Z)({target:a,type:"dragstart",options:{passive:!0},listener:()=>requestAnimationFrame(()=>(0,J.Kz)("slide_image_drag",{index:t}))}),(0,tK.Z)({target:a,type:"touchstart",options:{passive:!0},listener:()=>{requestAnimationFrame(()=>{l.current=setTimeout(()=>{C()},500)})},enabled:x}),(0,tK.Z)({target:a,type:"touchend",options:{passive:!0},listener:Z,enabled:x}),(0,tK.Z)({target:a,type:"touchmove",options:{passive:!0},listener:Z,enabled:x}),(0,n.jsxs)("div",{ref:function(e){e&&(d.current[t]=e)},className:rl().root,onClick:o,onKeyDown:S,children:[(0,n.jsx)("img",{ref:a,id:`slide-image-${t}`,alt:r,className:v,"data-testid":"vertical-slide-image",fetchpriority:w?"high":"auto",loading:w?"eager":"lazy",srcSet:s,src:i,sizes:"100vw",onContextMenu:C}),k?(0,n.jsx)(rc,{}):null]})},ru=r(34922),rm=r(44633),r_=r(27056),rh=r.n(r_),rp=r(30509),rf=r(56308),rx=r(34926),rw=r.n(rx);let rv=(0,x.Z)(()=>Promise.all([r.e(7716),r.e(4654)]).then(r.bind(r,94654)),{ssr:!1,loading:()=>(0,n.jsx)(rp.Z,{count:3,itemWidth:280,itemHeight:40})});var rg=({className:e="",index:t})=>{let{setOpenIndex:r}=(0,j.fi)(),{currentSlideIndex:i}=(0,g.W_)(),{transcript:s,id:o}=(0,y.Lj)(),{t:l}=(0,a.$G)("player"),[c,d]=(0,S.Z)("rewrite_ai_modal_popup",!0),[u,m]=(0,b.useState)(!1),h=(0,_.Z)("rewrite-ai-button",rw().root,e),p=s.length&&s[t];(0,b.useEffect)(()=>{p&&2===i&&2===t&&c&&(m(!0),(0,J.Kz)("rewrite_dropdown_shown",{slideshow_id:o}),d(!1))},[p,i,c]);let f=(0,b.useCallback)(e=>{if(e&&(!c||!u)){let e=(0,rf.i)({slideNumber:t,slideshowId:o});(0,J.Kz)("rewriteai_button_hover",e)}},[t,o,u,c]);return p?(0,n.jsx)(Y.Z,{className:rw().popover,content:(0,n.jsx)(rv,{index:t}),position:"bottom-start",trigger:"hover",isOpen:u,onOpenChange:f,children:(0,n.jsx)(ru.Z,{"aria-label":l("rewrite_ai.title_label",{slideNumber:t+1}),size:"medium",appearance:"secondary",className:h,icon:(0,n.jsx)(C.C,{name:"pen-sparkle"}),onClick:function(){let e=(0,rf.i)({slideNumber:t,slideshowId:o,additionalProps:{source:"slide"}});(0,J.Kz)("rewriteai_opened",e),r(t)}})}):null},rj=({index:e})=>{let{allowDownloads:t,id:r,slideImages:i,strippedTitle:s,username:o}=(0,y.Lj)(),{isRewriteAiVariant:l}=(0,j.Bl)(),{handleDownload:c,isDownloading:d}=(0,T.Z)({source:"slide-"+e}),{t:u}=(0,a.$G)("player"),m=(0,_.Z)("slide-download-button",rh().downloadButton);return(0,n.jsxs)("div",{className:rh().root,children:[t?(0,n.jsx)(rm.Z,{text:u("actions.download"),position:"left",children:(0,n.jsx)(ru.Z,{appearance:"text","aria-label":u("actions.download"),className:m,icon:(0,n.jsx)(C.C,{name:"download"}),loading:d,size:"medium",onClick:c})}):null,l?(0,n.jsx)(rg,{index:e}):(0,n.jsx)(F.Z,{slideshowId:r,slideIndex:e,strippedTitle:s,thumbnail:i[e].baseUrl,username:o})]})},ry=r(41445),rb=r.n(ry),rZ=({index:e,src:t,srcSet:r,children:i})=>{let{setIsFullscreen:s,setIndex:o}=(0,tA.Ei)(),{isEnabled:a}=(0,tA.b7)(),{aspectRatio:l,isInfographic:c,title:d,transcript:u}=(0,y.Lj)(),{contextMenu:m}=(0,g.W_)(),{isRewriteAiVariant:h}=(0,j.Bl)(),p=(0,Q.Z)();ro(e);let[f,x]=(0,b.useState)(),w=!c&&f&&!m.visible,v=e+1,Z=!h&&!p,C=(0,_.Z)(rb().root,"slide-item");(0,b.useEffect)(()=>{(0,b.startTransition)(()=>{p?x(p):x(h)})},[h,p]);let S=(0,b.useCallback)(()=>{x(!0)},[]),k=(0,b.useCallback)(()=>{x(!1)},[]);return(0,n.jsx)("div",{children:(0,n.jsxs)("div",{id:`slide${v}`,className:C,style:{aspectRatio:l},"data-cy":"slide-container",onClick:()=>(0,J.Kz)("slide_clicked",{index:e}),onMouseEnter:Z?S:null,onMouseLeave:Z?k:null,children:[(0,n.jsx)(rd,{index:e,alt:u&&u[e]||d,src:t,srcSet:r,onClick:function(){a&&((0,J.Kz)("single_slide_view_enter"),o(e),s(!0))}}),i,(0,n.jsx)(b.Suspense,{children:w?(0,n.jsx)(rj,{index:e,onFullscreen:()=>s(!0)}):null})]})})},rC=r(2733),rS=r.n(rC),rk=({className:e=""})=>{let{showSlideshowPageAds:t}=(0,t0.ZK)(),{id:r,isInfographic:i,slideImages:s}=(0,y.Lj)(),{isMarketingConsentGiven:o}=(0,t7.YL)(),[,a]=(0,S.Z)("isPlayerOutOfView",!1),l=(0,t1.Z)("(min-width: 769px)"),c=t2()&&o&&t&&l,d=c&&s.length>1&&!i,u=(0,b.useRef)(null);if(t3(),(0,b.useEffect)(()=>{let e=u?.current;if(i||!e||!("IntersectionObserver"in window))return;let t=new IntersectionObserver(e=>{a(!e[0].isIntersecting)});return t.observe(e),()=>t.disconnect()},[i]),i)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{id:"new-player",className:(0,_.Z)(rS().root,e),"data-slideshow-id":r,children:(0,n.jsx)(rZ,{index:0,src:s[0].baseUrl,srcSet:s[0].webpSrcset||s[0].jpegSrcset})}),(0,n.jsx)(rr,{})]});let m=s[0],h=s[1]??null,p=s.slice(2),f=(0,_.Z)("vertical-player",rS().root,e);return(0,n.jsxs)("div",{ref:u,id:"new-player",className:f,"data-slideshow-id":r,children:[(0,n.jsx)(rZ,{index:0,src:m.baseUrl,srcSet:m.webpSrcset||m.jpegSrcset}),d?(0,n.jsx)(t4,{}):null,h?(0,n.jsx)(rZ,{index:1,src:h.baseUrl,srcSet:h.webpSrcset||h.jpegSrcset}):null,p?.map((e,t)=>{let r=t+2;return n.jsxs(b.Fragment,{children:[n.jsx(rZ,{index:r,src:e.baseUrl,srcSet:e.webpSrcset||e.jpegSrcset}),n.jsx(w.Z,{children:c&&t%2==0?n.jsx(rs,{index:r+1}):null})]},e.baseUrl)}),(0,n.jsx)(rr,{})]})},rN=r(69258),rE=r.n(rN),rI=()=>{let{isInfographic:e}=(0,y.Lj)(),t=(0,_.Z)("player",rE().root,{[rE().isInfographic]:e});return(0,n.jsx)("div",{className:t,children:(0,n.jsx)(rk,{})})},rT=r(99645),r$=r(16645),rL=r(42136),rR=r(72536),rP=r(46468),rD=r(26583),rA=r.n(rD),rF=({children:e})=>(0,n.jsx)("div",{className:rA().root,children:e}),rB=r(11458),rz=r.n(rB),rq=({rec:e,index:t,modulePosition:r,moduleSection:i,moduleType:s})=>{let{t:o}=(0,a.$G)("common"),{displayTitle:l,pageCount:c,userName:d,userLogin:u,viewCount:m}=e,_=`${s}-card-description-${t}`,h=o("common:slideshow_card.screen_reader_text_extended",{title:l,author:d,slideCount:c,viewCount:m});return(0,n.jsxs)(rL.Z,{className:rz().root,aspectRatio:1.5,"aria-describedby":_,slideshow:e,index:t,modulePosition:r,moduleSection:i,moduleType:s,screenReaderText:h,children:[(0,n.jsx)(rF,{children:String(e.extension).toUpperCase()}),(0,n.jsx)(rR.Z,{children:(0,n.jsx)(v.Z,{weight:"medium",children:l})}),(0,n.jsx)(rP.Z,{value:e.isSavedByCurrentUser,slideshowId:e.slideshowId,title:l}),(0,n.jsx)(rT.Z,{className:rz().author,name:d,login:u}),(0,n.jsx)(r$.Z,{views:m,slides:c,className:rz().stats})]})},rM=r(39950),rK=r.n(rM),rU=()=>{let{recsList:e,title:t,user:r}=(0,y.Lj)(),{t:i}=(0,a.$G)("player"),s=i("rec.recommended.title",{name:r.name,title:t}),o=(0,_.Z)("rail-recs",rK().root);return(0,n.jsxs)("div",{className:o,children:[(0,n.jsx)(L.Z,{size:"xsmall",as:"h2",className:rK().title,children:s}),e.map((t,r)=>{let i=r===e?.length-1;return(0,n.jsxs)(b.Fragment,{children:[(0,n.jsx)(rq,{rec:t,index:r,modulePosition:0,moduleSection:"sidebar",moduleType:"recommended"}),i?null:(0,n.jsx)(eg.C,{})]},r+t.slideshowId)})]})},rO=r(51153),rG=r.n(rO);function rH(){let{showSlideshowPageAds:e}=(0,t0.ZK)(),t=(0,t1.Z)("(min-width: 1051px)"),{isVariant:r}=(0,q.Z)({name:"slideshare_recs_scrolling_q2_2025",expectedValues:["variant"],isEnabled:t}),i=(0,_.Z)("above-recs-ad",{visible:e}),s=(0,_.Z)("rails",rG().root,{"hide-scrollbar":!r,[rG().scrollable]:!r}),o=(0,b.useRef)(null),a=(0,b.useRef)(!1);return(0,tK.Z)({target:o,type:"scroll",listener:()=>{requestAnimationFrame(()=>{a.current||((0,J.Kz)("sidebar_scroll"),a.current=!0)})},options:{passive:!0}}),(0,n.jsx)("aside",{ref:o,className:s,children:(0,n.jsxs)("div",{className:rG().innerContainer,children:[(0,n.jsx)(p.v1,{className:i}),(0,n.jsx)(rU,{})]})})}var rW=r(44646),rV=r(66152),rQ=r(11874),rY=r.n(rQ),rJ=({rec:e,index:t,modulePosition:r,moduleType:i})=>{let{displayTitle:s,userLogin:o,userName:l,url:c,viewCount:d,pageCount:u}=e,{t:m}=(0,a.$G)("common"),_=m("common:slideshow_card.screen_reader_text_extended",{title:s,author:l,slideCount:u,viewCount:d});return(0,n.jsxs)(rL.Z,{className:rY().root,href:c,index:t,modulePosition:r,moduleSection:"bottom",moduleType:i,slideshow:e,screenReaderText:_,children:[(0,n.jsx)(rR.Z,{children:s}),(0,n.jsx)(rP.Z,{value:e.isSavedByCurrentUser,slideshowId:e.slideshowId,title:s}),(0,n.jsx)(rT.Z,{name:l,login:o}),(0,n.jsx)(r$.Z,{views:d,slides:u})]})},rX=r(83449),r0=r.n(rX),r1=({list:e,position:t,type:r,section:i})=>{let s=(0,t1.Z)("(min-width: 768px)");return(0,n.jsxs)("div",{className:r0().root,children:[(0,n.jsx)("div",{className:"mobile-recs",children:e.map((o,a)=>{let l=a===e?.length-1;return(0,n.jsxs)(b.Fragment,{children:[(0,n.jsx)(rq,{rec:o,index:a,modulePosition:t,moduleSection:i,moduleType:r}),l||s?null:(0,n.jsx)(eg.C,{})]},a+o.slideshowId)})}),(0,n.jsx)("div",{className:"desktop-recs",children:(0,n.jsx)(rV.Z,{children:e.map((e,i)=>(0,n.jsx)(rJ,{index:i,rec:e,modulePosition:t,moduleType:r},e.slideshowId))})})]})},r2=r(45662),r9=r.n(r2),r8=({className:e="",position:t,type:r,recs:i,section:s})=>{let{title:o,user:l}=(0,y.Lj)(),{t:c}=(0,a.$G)("player"),d=c(`rec.${r}.title`,{name:l.name,title:o}),u=(0,_.Z)("bottom-recs",r9().root,e);return i.length?(0,n.jsxs)("div",{className:u,children:[(0,n.jsxs)(L.Z,{size:"xsmall",as:"h3",children:[d," ",(0,n.jsxs)(v.Z,{children:["(",i.length,")"]})]}),(0,n.jsx)(r1,{list:i,position:t,type:r,section:s})]}):null};let r6=rW.QN.slice(1);var r5=b.memo(()=>{let{recommendationsByLocation:e}=(0,y.Lj)(),t=r6.map(t=>{let r=e[t];return r?.length?[t,r]:null}).filter(Boolean);return(0,n.jsx)(n.Fragment,{children:t.map(([e,t],r)=>(0,n.jsxs)(b.Fragment,{children:[(0,n.jsx)(r8,{position:r+1,type:e,recs:t,lazy:!0,section:"bottom"}),1===r?(0,n.jsx)(p.y3,{name:"incontent2"}):null,2===r?(0,n.jsx)(p.y3,{name:"incontent3"}):null]},e))})}),r4=r(8491),r7=r.n(r4),r3=()=>{let{t:e}=(0,a.$G)("player");return(0,n.jsx)(b.Suspense,{children:(0,n.jsx)("div",{className:r7().root,children:(0,n.jsxs)("div",{className:r7().wrapper,children:[(0,n.jsx)(L.Z,{size:"small",as:"h2",className:r7().title,children:e("rec.relatedContent.title")}),(0,n.jsx)(r5,{})]})})})},ne=r(22864),nt=({lockPassword:e,setLockPassword:t})=>{let r=(0,tw.NL)(),{id:n,secretUrl:i,strippedTitle:s}=(0,y.Lj)(),{setSlideshow:o}=(0,y.Zg)(),a=(0,es.Z)(),[l,c]=(0,b.useState)(""),d=async()=>{let t=eo.aM;return await a({query:t,variables:{query:{secretUrl:i,password:e,id:n,strippedTitle:s}}})},{isError:u,isSuccess:m}=(0,ei.a)(["unlock",n],d,{enabled:!!e,onSuccess:e=>{let i=e.data.slideshow;if(i?.isLocked){c("Incorrect password"),t("");return}c(""),o(i),r.invalidateQueries({queryKey:["userClips",n]})}});return{isError:l||u,isSuccess:m&&!l}},nr=r(36999),nn=r.n(nr),ni=()=>{let{t:e}=(0,a.$G)("player"),[t,r]=(0,b.useState)(),{isError:i}=nt({lockPassword:t,setLockPassword:r});return(0,n.jsxs)("div",{className:nn().root,children:[(0,n.jsx)(L.Z,{size:"xxsmall",as:"h2",weight:"regular",children:e("error.file_protected")}),(0,n.jsx)(ne.Z,{fields:{password:{type:"password",required:!0,label:e("error.enter_password")}},onSubmit:e=>r(e.get("password"))}),i&&(0,n.jsx)(v.Z,{size:"small",as:"p",children:e("error.password_incorrect")})]})},ns=r(82279),no=r.n(ns),na=()=>{let{t:e}=(0,a.$G)("player");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{children:(0,n.jsx)("meta",{name:"robots",content:"noindex,follow"})}),(0,n.jsxs)("div",{className:no().root,children:[(0,n.jsx)(L.Z,{size:"xxsmall",as:"h2",weight:"regular",children:e("error.private_content")}),(0,n.jsx)(v.Z,{size:"small",children:e("error.privacy_explanation")})]})]})},nl=e=>{let t=(0,b.useRef)(e);return(0,b.useEffect)(()=>{t.current=e},[e]),t};let nc=(e,t,r)=>{(0,J.Kz)("slide_view_end",{duration:r>6e5?6e5:r,slideshow_id:e,index:t})};var nd=()=>{let{isFullscreen:e}=(0,tA.b7)(),{currentSlideIndex:t,isEndOfReadingOpen:r,isGalleryViewOpen:n,isShowingInterstitial:i}=(0,g.W_)(),{id:s}=(0,y.Lj)(),[o]=(0,S.Z)("isPlayerOutOfView",!1),a=nl(t),[l,c]=(0,b.useState)(null);(0,b.useEffect)(()=>c(t),[t]),(0,b.useEffect)(()=>{c(i||r||o||e||n?null:a.current)},[i,r,o,e,n]);let d=(0,b.useCallback)(()=>{performance.mark(`slide-${l}-start`)},[l]),u=(0,b.useCallback)(()=>{performance.mark(`slide-${l}-end`);let{name:e,duration:t}=performance.measure(`${l}`,`slide-${l}-start`,`slide-${l}-end`);"null"===e||t<100||nc(s,e,t.toFixed(0))},[l,s]);(0,b.useEffect)(()=>(d(),()=>u()),[l]),(0,tK.Z)({type:"visibilitychange",listener:()=>{"visible"===document.visibilityState?d():u()}})},nu=()=>{let{currentSlideIndex:e,totalSlides:t}=(0,g.W_)(),[r,n]=(0,b.useState)(!1),[i,s]=(0,b.useState)(!1),o=()=>e===Math.floor(.9*t);(0,b.useEffect)(()=>{e>0&&!r&&((0,J.Kz)("slideshow_started"),n(!0)),o()&&!i&&((0,J.Kz)("slideshow_finished"),s(!0))},[e])},nm=r(39640),n_=r(83506),nh=()=>{let{isLoggedIn:e,isFollowing:t}=(0,I.F)(),{query:r,push:n}=(0,Z.useRouter)(),{mutate:i}=(0,n_.Z)(),[s]=(0,S.Z)("from_action");(0,b.useEffect)(()=>{s&&!t&&e&&(r?.from_action==="follow"||r?.author_id)&&(i({authorId:r.author_id,action:"create"}),delete r.from_action,delete r.author_id,n({query:r},void 0,{shallow:!0}))},[s,e,r])},np=()=>{let{id:e,isLoggedIn:t}=(0,I.F)(),{mutate:r}=ty(),{query:n,push:i}=(0,Z.useRouter)(),[s]=(0,S.Z)("from_action");(0,b.useEffect)(()=>{s&&t&&n?.from_action==="favorite"&&(r({slideshowId:parseInt(n?.slideshow_id),userId:e}),delete n.from_action,delete n.slideshow_id,i({query:n},void 0,{shallow:!0}))},[s,t,n])},nf=()=>{nh(),np(),(0,nm.Z)()},nx=()=>{(0,t1.Z)("(orientation: portrait)",e=>{let t=e.matches?"exit_landscape_view":"enter_landscape_view";(0,J.Kz)(t,{width:window.innerWidth,height:window.innerHeight})})};let nw=(e,t,r)=>{(0,J.Kz)("single_slide_view_end",{duration:r>6e5?6e5:r,slideshow_id:e,index:t})};var nv=()=>{let{isFullscreen:e,index:t}=(0,tA.b7)(),{id:r}=(0,y.Lj)(),n=(0,b.useRef)(null),i=e=>{n.current=e,performance.mark(`single-slide-${e}-start`)},s=(0,b.useCallback)(e=>{performance.mark(`single-slide-${e}-end`);let{name:t,duration:n}=performance.measure(`${e}`,`single-slide-${e}-start`,`single-slide-${e}-end`);"null"===t||n<100||nw(r,t,n.toFixed(0))},[r]),o=e=>{null!==n.current&&s(n.current),i(e)};(0,b.useEffect)(()=>{e&&null===n.current?i(t):e||null===n.current||s(n.current)},[e]),(0,b.useEffect)(()=>{e&&o(t)},[t]),(0,tK.Z)({type:"visibilitychange",listener:()=>{e&&("visible"===document.visibilityState?i(n.current):s(n.current))}})},ng=r(39332),nj=()=>{let{refresh:e}=(0,ng.useRouter)();(0,b.useEffect)(()=>{let t=setTimeout(()=>{e()},864e5);return()=>{clearTimeout(t)}},[])};function ny(){return nu(),nd(),nv(),nx(),nf(),nj(),(0,n.jsx)(n.Fragment,{})}var nb=r(89416),nZ=r(81022);function nC({children:e}){let t=(0,nb.Z)("disable_lazy_hydration"),[r,i]=(0,b.useState)(t);return((0,b.useEffect)(()=>{(0,nZ.Z)().then(()=>{(0,b.startTransition)(()=>i(!0))})},[]),r)?e:(0,n.jsx)("div",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}})}var nS=r(47729),nk=r.n(nS),nN=({value:e,slideIndex:t})=>{let{scrollToSlide:r}=(0,g.ES)();if(!e)return null;let i=t+1,s=`#${i}`,{linkText:o,nonLinkText:a}="string"==typeof e?e.split(" ").reduce((e,t,r)=>(r<=2?e.linkText+=t+" ":e.nonLinkText+=" "+t,e),{linkText:"",nonLinkText:""}):{linkText:"",nonLinkText:""};return(0,n.jsxs)("li",{children:[i+". ",(0,n.jsx)(R.Z,{href:s,className:nk().link,onClick:()=>r(t+1),children:o}),a]})},nE=b.memo(({title:e,items:t})=>t.length?(0,n.jsxs)("div",{className:nk().root,children:[(0,n.jsxs)(L.Z,{size:"xxsmall",as:"h2",weight:"light",className:nk().title,children:[(0,n.jsx)(C.C,{name:"file"}),e]}),(0,n.jsx)(nC,{children:(0,n.jsx)("ul",{className:nk().list,children:t.map((e,t)=>(0,n.jsx)(nC,{children:(0,n.jsx)(nN,{value:e,slideIndex:t})},t))})})]}):null),nI=r(44494),nT=r.n(nI);let n$=(0,x.Z)(()=>Promise.all([r.e(4320),r.e(2397)]).then(r.bind(r,52397)),{ssr:!1}),nL=(0,x.Z)(()=>Promise.all([r.e(546),r.e(5874)]).then(r.bind(r,5874)),{ssr:!1}),nR=(0,x.Z)(()=>Promise.all([r.e(3886),r.e(8229),r.e(8434),r.e(5163)]).then(r.bind(r,5163)),{ssr:!1});var nP=()=>{let{contextMenu:e,isGalleryViewOpen:t}=(0,g.W_)(),{hideBanner:r}=(0,f.kE)(),{banner:i}=(0,f.tl)(),{isRewriteAiVariant:s}=(0,j.Bl)(),{isInfographic:o,isLocked:a,isPrivate:l,isViewable:c,transcript:d,title:u}=(0,y.Lj)(),m=(0,_.Z)(nT().root,{[nT().withPreview]:!o});return l&&!c?(0,n.jsx)(na,{}):a?(0,n.jsx)(ni,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w.Z,{children:(0,n.jsx)(h.Z,{appearance:i.appearance,duration:i.duration,onTimeout:()=>r(),visible:i.visible,children:(0,n.jsx)(v.Z,{size:"small",weight:"medium",children:i.message})})}),(0,n.jsxs)("div",{className:m,children:[(0,n.jsx)(tx,{}),(0,n.jsx)(tT,{}),o?null:(0,n.jsx)(tX,{}),(0,n.jsx)(rI,{}),s?(0,n.jsx)(nR,{}):null,(0,n.jsx)(rH,{})]}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(p.Q4,{})}),(0,n.jsx)(r3,{}),(0,n.jsx)(nE,{title:u,items:d}),(0,n.jsx)(A,{}),(0,n.jsx)(eI,{}),(0,n.jsxs)(w.Z,{children:[(0,n.jsx)($,{}),(0,n.jsx)(tB,{})]}),t&&(0,n.jsx)(nL,{}),e.visible?(0,n.jsx)(n$,{}):null,(0,n.jsx)(ny,{})]})},nD=({children:e,slideshow:t})=>(0,n.jsx)(y.Ho,{value:t,children:(0,n.jsx)(et,{children:(0,n.jsx)(g.KQ,{children:(0,n.jsx)(tA.hg,{children:(0,n.jsx)(j.RD,{children:e})})})})}),nA=r(58610),nF=e=>{let{edgeTests:t}=(0,l.mr)(),r=(0,b.useCallback)(()=>{let r={...t};e.genaiTest&&(r.genai_test=e.genaiTest),e.genaiDescriptionCreatedAt&&(r.genai_description_created_at=e.genaiDescriptionCreatedAt),e.isIabCategoriesTest&&(r.iab_categories_test=e.isIabCategoriesTest?"test":"control"),(0,J.Kz)("identify",r)},[e,t]);(0,b.useEffect)(()=>r(),[r])},nB=r(91296),nz=r.n(nB);function nq(){let{showSlideshowPageAds:e}=(0,t0.ZK)(),{renderAds:t,refreshAllSlots:r}=(0,t0.tV)();return((0,b.useEffect)(()=>{if(!e)return;let t=nz()(()=>{console.log("\uD83D\uDD04 Refreshed ad slots on resize"),r()},100);return window.addEventListener("resize",t),()=>{t.cancel(),window.removeEventListener("resize",t)}},[e]),e)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t8(),{id:"asc-prebid",src:"https://hb-scribd.s3.us-east-2.amazonaws.com/slideshare.net/asc_prebid.js",onLoad:function(){(0,J.Kz)("asc_prebid_loaded");try{t()}catch(e){console.error("\uD83D\uDCA3 Error rendering Ascendeum ads:",e)}},onError:()=>console.error("\uD83D\uDCA3 Failed to load Ascendeum prebid.js")}),(0,n.jsx)(t8(),{id:"asc-prebid-init",children:` var pbjs = window.pbjs || {}; pbjs.que = pbjs.que || []; window.pbjs = pbjs; `})]}):null}var nM=!0;function nK({slideshow:e}){return nF(e),(0,n.jsxs)(i.ih,{children:[(0,n.jsx)(m,{slideshow:e}),(0,n.jsx)(nA.Z,{}),(0,n.jsxs)(nD,{slideshow:e,children:[(0,n.jsx)(nP,{}),(0,n.jsx)(nq,{})]})]})}},18336:function(e){e.exports={root:"VideoAd_root__ALaLo",container:"VideoAd_container__GFinT",videoAd:"VideoAd_videoAd__dVmDr"}},44895:function(e){e.exports={root:"Avatar_root__GNWHY",initials:"Avatar_initials__EJfVt",image:"Avatar_image__Bbtll","size-large":"Avatar_size-large__htKIE","size-medium":"Avatar_size-medium__QReOq","size-small":"Avatar_size-small__eoiJm","color-purple":"Avatar_color-purple__oW4DO","color-green":"Avatar_color-green__vmLVL","color-teal":"Avatar_color-teal__vEQDI","color-yellow":"Avatar_color-yellow__2ZF5t"}},49412:function(e){e.exports={root:"Banner_root__pOnAN",visible:"Banner_visible__q1NMx",aboveHeader:"Banner_aboveHeader__hC_i_",belowHeader:"Banner_belowHeader__Mcfew",info:"Banner_info__7SXSI",success:"Banner_success__wveEs",error:"Banner_error__lW5NB",warning:"Banner_warning__pEEt7"}},11411:function(e){e.exports={root:"Button_root__i1yp0",large:"Button_large__Yv_oe",regular:"Button_regular__i28NX",medium:"Button_medium__H8pKi",small:"Button_small__sqsEx",xsmall:"Button_xsmall__jBPCG",icon:"Button_icon__1C4qi",spinner:"Button_spinner__iLPXf",loading:"Button_loading__ZYqeE",fullWidth:"Button_fullWidth__dRbM6",disabled:"Button_disabled__M5jJf",primary:"Button_primary__K25Gq",contained:"Button_contained__gyjai",outlined:"Button_outlined__oZHqK",text:"Button_text__ZT_3O",secondary:"Button_secondary__hHiHI",tertiary:"Button_tertiary__ae6C5",active:"Button_active__YNf7E"}},28282:function(e){e.exports={root:"SlideshowAuthor_root__IkT1_"}},6125:function(e){e.exports={root:"SlideshowCard_root__pD8t4",thumb:"SlideshowCard_thumb__86aJk",content:"SlideshowCard_content__xh7kV"}},46121:function(e){e.exports={root:"SlideshowCardLink_root__p8KI7"}},79805:function(e){e.exports={root:"SlideshowStats_root__EQOR1"}},50761:function(e){e.exports={root:"SlideshowTitle_root__2VccW"}},31135:function(e){e.exports={root:"Thumbnail_root__qLW0K",thumb:"Thumbnail_thumb__UXO3a",blur:"Thumbnail_blur__opK6A",cover:"Thumbnail_cover__1zsIi",contain:"Thumbnail_contain__K6M0d"}},25173:function(e){e.exports={wrapper:"Checkbox_wrapper__HI5JR",label:"Checkbox_label__7BF2Y",input:"Checkbox_input__RZSBL"}},2548:function(e){e.exports={container:"Dropdown_container__NBOZ_",select:"Dropdown_select__8pQOA",error:"Dropdown_error__QI4FY"}},11106:function(e){e.exports={root:"Form_root__NTbyO"}},4926:function(e){e.exports={container:"Input_container__QSkRF",input:"Input_input__Q0qP2",error:"Input_error__l9OaT",footer:"Input_footer__55AdV",footerAlignRight:"Input_footerAlignRight__DG8UZ"}},74656:function(e){e.exports={label:"Label_label__KH246",medium:"Label_medium__4AVjH",large:"Label_large__ohHJv"}},99134:function(e){e.exports={required:"RequiredNotice_required___q_RJ",error:"RequiredNotice_error__eBy3b"}},4234:function(e){e.exports={container:"Selector_container__v2jVr",selector:"Selector_selector__U2foh",selected:"Selector_selected__nyxjH",text:"Selector_text__Rs7F7",selectorContainer:"Selector_selectorContainer__h4Mg1",icon:"Selector_icon__Y9S90"}},51398:function(e){e.exports={container:"TagInput_container__4lPGD",input:"TagInput_input__lsGqa",tag:"TagInput_tag__9BE6f",closeTag:"TagInput_closeTag__oeDgn",inputContainer:"TagInput_inputContainer__dl2dW",error:"TagInput_error__INAMJ",errorText:"TagInput_errorText__Dq2QW",autocompleteContainer:"TagInput_autocompleteContainer__RgOvw",autocomplete:"TagInput_autocomplete__nGD9D",suggestion:"TagInput_suggestion__k4kfh",focusedSuggestion:"TagInput_focusedSuggestion__QnSXo",tagContainer:"TagInput_tagContainer__LflB5"}},2437:function(e){e.exports={container:"TextArea_container__oc_q4",textarea:"TextArea_textarea__VyrNQ",error:"TextArea_error__o_XpL",footer:"TextArea_footer__EG4wA",footerAlignRight:"TextArea_footerAlignRight__PmO7Z"}},20280:function(e){e.exports={container:"IconWithExplanation_container__21T3S",explanation:"IconWithExplanation_explanation___qwbw",arrow:"IconWithExplanation_arrow__fCL_Y"}},93332:function(e){e.exports={root:"FullscreenModal_root__efM9m",content:"FullscreenModal_content__bQ6mt"}},82238:function(e){e.exports={root:"Modal_root__TYkzh",small:"Modal_small__hupRE",medium:"Modal_medium__j8NOV",large:"Modal_large__ygVmr",xlarge:"Modal_xlarge__HeXWk",wrapper:"Modal_wrapper__4UTGq",bottomPlacement:"Modal_bottomPlacement__BUbfp",title:"Modal_title__xhSfl",content:"Modal_content__R1F4d",actions:"Modal_actions__t63hZ"}},88685:function(e){e.exports={root:"AccentBubble_root__DZ4aE"}},75515:function(e){e.exports={root:"Pill_root__IqOYH",selected:"Pill_selected__VPtHm",icon:"Pill_icon__xE_Cg"}},92079:function(e){e.exports={root:"PillsList_root__2EydN"}},61514:function(e){e.exports={root:"RadioButton_root__592m2",large:"RadioButton_large__K_9NI",rtl:"RadioButton_rtl__rAcql",labelOnLeft:"RadioButton_labelOnLeft__nb96s",checked:"RadioButton_checked__dJL5R"}},45697:function(e){e.exports={root:"CopySkeleton_root__VqFXU"}},29407:function(e){e.exports={root:"Slider_root__c0Jo8",scroller:"Slider_scroller__KHjw4",arrow:"Slider_arrow__8LCca",prev:"Slider_prev__YMssa",next:"Slider_next__fa9IO",hidden:"Slider_hidden__rs7nK"}},58173:function(e){e.exports={root:"Tooltip_root__7FS0Y"}},3575:function(e){e.exports={root:"Bullet_root__RBq9k"}},67740:function(e){e.exports={root:"Caption_root__6wvXw"}},73561:function(e){e.exports={description:"ConfirmRemoveSavedModal_description__2EAEu"}},38697:function(e){e.exports={root:"SaveToListButton_root__T0ltL"}},10365:function(e){e.exports={input:"SaveToNewListModal_input__Fi90k",checkboxWrapper:"SaveToNewListModal_checkboxWrapper__y_w0m",checkboxLabel:"SaveToNewListModal_checkboxLabel__lMiU9",imageContainer:"SaveToNewListModal_imageContainer__Dx4nD",errorContainer:"SaveToNewListModal_errorContainer__FBZPH"}},6894:function(e){e.exports={root:"EditorsNotes_root__3PcDF",list:"EditorsNotes_list__NcG5Y",item:"EditorsNotes_item__ebBbj",link:"EditorsNotes_link__HRUAh"}},36999:function(e){e.exports={root:"PasswordForm_root__Pnyoo"}},82279:function(e){e.exports={root:"PrivateContentScreen_root__qdfD9"}},44494:function(e){e.exports={root:"SlideshowScreen_root__k9j1_",withPreview:"SlideshowScreen_withPreview__UFvi6",withSections:"SlideshowScreen_withSections__cJqYu"}},4599:function(e){e.exports={root:"Author_root___6Bx5",link:"Author_link___lVxw"}},53387:function(e){e.exports={tag:"AITag_tag__Xx37c",content:"AITag_content__RwY1y"}},24775:function(e){e.exports={root:"Actions_root__00yIC"}},95608:function(e){e.exports={root:"ActionsMenu_root__4k507",actionContainer:"ActionsMenu_actionContainer__BgxDK"}},96494:function(e){e.exports={root:"Description_root__kt4uq",clamped:"Description_clamped__PaV_1",wrapper:"Description_wrapper__hYE9_",expanded:"Description_expanded__lRamt",more:"Description_more__ChrRK"}},78902:function(e){e.exports={root:"DownloadButton_root__adY00"}},27999:function(e){e.exports={root:"DownloadFormatTypes_root__8CU5A",converted:"DownloadFormatTypes_converted__wCtGV",copy:"DownloadFormatTypes_copy__63l45"}},55040:function(e){e.exports={root:"GalleryViewButton_root__s4Nw4"}},4698:function(e){e.exports={more:"LikeModal_more__R9uAk",visible:"LikeModal_visible__t1vr4"}},3980:function(e){e.exports={root:"Likes_root__WVQ1_"}},31515:function(e){e.exports={root:"LikesUserListSkeleton_root__pUbb3",item:"LikesUserListSkeleton_item__mONV4"}},32008:function(e){e.exports={root:"Metadata_root__EZem9",title:"Metadata_title__aM3nZ",expanded:"Metadata_expanded__HUKNB"}},58546:function(e){e.exports={root:"MetadataToolbar_root__x4cNG",wrapper:"MetadataToolbar_wrapper__CdZ7u",underline:"MetadataToolbar_underline__PvkAp","reveal-shadow":"MetadataToolbar_reveal-shadow__WqpBC",actions:"MetadataToolbar_actions__tw2Si",pageNumber:"MetadataToolbar_pageNumber__E_Bl8"}},34048:function(e){e.exports={root:"MoreDropdownButton_root__QIadz",list:"MoreDropdownButton_list__lv95e",item:"MoreDropdownButton_item__Eq_KJ",actionButton:"MoreDropdownButton_actionButton__vR9_B",drawerHeading:"MoreDropdownButton_drawerHeading__bD6H2",icon:"MoreDropdownButton_icon__6J9do",tooltip:"MoreDropdownButton_tooltip__YPhCH",trigger:"MoreDropdownButton_trigger__YDEs_"}},70436:function(e){e.exports={root:"Stats_root__p_BoZ"}},88991:function(e){e.exports={content:"ViewModal_content__GPKXy",row:"ViewModal_row__xLxnz"}},27365:function(e){e.exports={root:"MostReadLabel_root__vdxCx"}},28:function(e){e.exports={root:"SlidePreviews_root__7yZ0Y",momentContainer:"SlidePreviews_momentContainer__zhQyW",previewContainer:"SlidePreviews_previewContainer__Qn8CH",slideHeading:"SlidePreviews_slideHeading__sTrgx",thumbnail:"SlidePreviews_thumbnail__6RNF6",loaded:"SlidePreviews_loaded__CKqLY",thumbnailContainer:"SlidePreviews_thumbnailContainer__QWeuK",current:"SlidePreviews_current__gr3Uq"}},69258:function(e){e.exports={root:"Player_root__L1AmF",isInfographic:"Player_isInfographic__iQpvH"}},34926:function(e){e.exports={root:"RewriteAIButton_root__1OF_Y",popover:"RewriteAIButton_popover__YcimJ"}},86133:function(e){e.exports={root:"VerticalInterstitialAdWrapper_root__TgETf"}},2733:function(e){e.exports={root:"VerticalPlayer_root__K8_YS"}},41445:function(e){e.exports={root:"VerticalSlide_root__jU_9r"}},27056:function(e){e.exports={root:"VerticalSlideActions_root__azvaH",downloadButton:"VerticalSlideActions_downloadButton__ancDu",fullscreen:"VerticalSlideActions_fullscreen__5CkK_"}},21e3:function(e){e.exports={root:"VerticalSlideImage_root__64KSA",image:"VerticalSlideImage_image__VtE4p"}},45662:function(e){e.exports={root:"BottomRecommendation_root__7aU9w"}},11874:function(e){e.exports={root:"BottomRecommendationCard_root__gffTk"}},83449:function(e){e.exports={root:"BottomRecommendationContent_root__2qm4_",hidden:"BottomRecommendationContent_hidden__CUlxl"}},51153:function(e){e.exports={root:"DiscoveryRails_root__2uf08",scrollable:"DiscoveryRails_scrollable__x45mJ",innerContainer:"DiscoveryRails_innerContainer__Kh6QL"}},26583:function(e){e.exports={root:"ExtensionLabel_root__ZPWoC"}},11458:function(e){e.exports={root:"RailCard_root__rZUGY",link:"RailCard_link__d3BBm",stats:"RailCard_stats__ZvZms",author:"RailCard_author__JYeYZ"}},39950:function(e){e.exports={root:"RailRecommendations_root__zqtZQ",title:"RailRecommendations_title__kt1D2"}},8491:function(e){e.exports={root:"RelatedContent_root__29Np1",wrapper:"RelatedContent_wrapper__riU7l",title:"RelatedContent_title__QUhpL"}},42181:function(e){e.exports={root:"ReportForm_root__jc_jC",row:"ReportForm_row__ds4AR",actions:"ReportForm_actions__fbfSv",copyrightPolicy:"ReportForm_copyrightPolicy__6469Q",info:"ReportForm_info__dJ4SJ",error:"ReportForm_error__5c_KJ"}},2503:function(e){e.exports={root:"SaveToDriveButton_root__lXkj5",compact:"SaveToDriveButton_compact__qAAiN"}},47729:function(e){e.exports={root:"Transcript_root__Vrf6Q",title:"Transcript_title__YgAka",list:"Transcript_list__faItj",link:"Transcript_link__MLbGS"}}}]); //# sourceMappingURL=5063-800bccc2e3b6c900.js.map