(window.webpackJsonpViewerContainer=window.webpackJsonpViewerContainer||[]).push([[0],{685:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return qn}));var n=r(0),i=r.n(n),o=r(208),a=r(9),l=r(656),s=r(99),c=r(11),u=r(1),p=function(e){return e.SET_WEBGL_VIEWER_CONTAINER="SET_WEBGL_VIEWER_CONTAINER",e.SET_WEBGL_VIEWER_LOADER="SET_WEBGL_VIEWER_LOADER",e.START_PRESENTATION="START_PRESENTATION",e.LOAD_PROGRESS="LOAD_PROGRESS",e.PREVIEW_LOAD_STARTED="PREVIEW_LOAD_STARTED",e.PREVIEW_LOAD_FINISHED="PREVIEW_LOAD_FINISHED",e.PREVIEW_LOAD_FAILED="PREVIEW_LOAD_FAILED",e.SET_INFOLAYER_MODE="SET_INFOLAYER_MODE",e.LOADED_PUBLIC_VIEWPAGE="LOADED_PUBLIC_VIEWPAGE",e.LOADING_FINISHED="LOADING_FINISHED",e.ENDSCREEN_VISIBILITY="ENDSCREEN_VISIBILITY",e.RESTART_PRESENTATION="RESTART_PRESENTATION",e.PAGED_TRANSCRIPT_SHOWN="PAGED_TRANSCRIPT_SHOWN",e.TRANSCRIPT_OPENED="TRANSCRIPT_OPENED",e.CTA_CLICKED="CTA_CLICKED",e.PREZI_CARD_OPENED="PREZI_CARD_OPENED",e.SOCIAL_SHARE_OPENED="SOCIAL_SHARE_OPENED",e.OPEN_EDITOR="OPEN_EDITOR",e.OPEN_FOR_COMMENTING="OPEN_FOR_COMMENTING",e.FULLSCREEN_STATUS_CHANGED="FULLSCREEN_STATUS_CHANGED",e.SHOW_MODAL="SHOW_MODAL",e.CLOSE_MODAL="CLOSE_MODAL",e.CLOSE_FULLSCREEN_OVERLAY="CLOSE_FULLSCREEN_OVERLAY",e.TEASER_THUMBNAIL_CLICKED="TEASER_THUMBNAIL_CLICKED",e.SHOW_VIEWER_IDENTIFICATION_MODAL="SHOW_VIEWER_IDENTICIATION_MODAL",e.ORIENTATION_CHANGED="ORIENTATION_CHANGED",e.WEBASSEMBLY_CHECK_FAILED="WEBASSEMBLY_CHECK_FAILED",e.EMBED_CODE_COPIED="EMBED_CODE_COPIED",e.VIEW_ON_PREZI_DOT_COM="VIEW_ON_PREZI_DOT_COM",e.LEARN_MORE_ABOUT_PREZI="LEARN_MORE_ABOUT_PREZI",e.OPEN_PREZI_SIGNUP="OPEN_PREZI_SIGNUP",e.OPEN_PREZI_VIDEO_PRODUCT_PAGE="OPEN_PREZI_VIDEO_PRODUCT_PAGE",e}({});function d(){return{type:p.START_PRESENTATION}}function f(e){return{type:p.LOAD_PROGRESS,percentage:e}}function m(e){return{type:p.SHOW_MODAL,modal:e}}function v(){return{type:p.CLOSE_MODAL}}function b(e){return{type:p.TEASER_THUMBNAIL_CLICKED,targetPreziOid:e}}function y(){return{type:p.VIEW_ON_PREZI_DOT_COM}}function h(){return{type:p.LEARN_MORE_ABOUT_PREZI}}var g=function(e){return e.NO_DIALOG="NO_DIALOG",e.PRESENTER_VIEW_DESKTOP_DOWNLOAD="PRESENTER_VIEW_DESKTOP_DOWNLOAD",e.PRESENTER_VIEW_UPGRADE="PRESENTER_VIEW_UPGRADE",e.EMAIL_CAPTURE="EMAIL_CAPTURE",e.VIEWER_IDENTIFICATION="VIEWER_IDENTIFICATION",e.DOWNLOAD_PREZI="DOWNLOAD_PREZI",e.EMBED="EMBED",e}({}),w=r(6),E=null;function P(e){if(null==E)throw Error("Features are not initialized yet");if(E.hasOwnProperty(e))return E[e];throw Error("Feature not passed from backend: "+e)}function O(e,t){for(var r=0;r(this.triedToCreateContext||(this.triedToCreateContext=!0,this.contextCreated=this.createWebglContext()),this.contextCreated)),this.requireWebgl2=t}var t,r,n;return t=e,(r=[{key:"createWebglContext",value:function(){try{var e=document.createElement("canvas");return!!(this.requireWebgl2?e.getContext("webgl2"):e.getContext("webgl")||e.getContext("experimental-webgl"))}catch(e){return!1}}}])&&O(t.prototype,r),n&&O(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),k=new _(!1).hasWebglContext,S=new _(!0).hasWebglContext;function C(e){return!(!(e?S():k())||!function(){try{if("object"==typeof window.WebAssembly&&"function"==typeof window.WebAssembly.instantiate){var e=new window.WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(e instanceof window.WebAssembly.Module)return new window.WebAssembly.Instance(e)instanceof window.WebAssembly.Instance}}catch(e){return!1}return!1}())}function T(){window.location.search=function(e){if(e.indexOf("webgl=")>=0){return e.replace(/(^|&|\?)(webgl=)([^&]*)($|&)/,"$1$20$4")}return"?"===e||""===e?e+"webgl=0":e+"&webgl=0"}(window.location.search)}function D(e){return e.embedMode&&!e.prezilink}function I(e){return e&&P("vc-promote-video-ad")&&"1"!==o.get("vc-26-video-ad-seen")}function L(){o.set("priming-for-video","1",{expires:1})}function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t{if(document){var t=("; "+document.cookie).split("; "+e+"=");if(t&&t.length>1){var r=t.pop();return r&&r.split(";").shift()}}};function R(e,t){for(var r=0;r0&&null==e.activityTimerHandler&&(e.lastLoggedActivityTimeStamp=Date.now(),e.activityTimerHandler=window.setInterval(()=>{e.updateActivityTime(),e.logActivityOnCurrentStep(),e.lastLoggedActivityTimeStamp=e.activityTimeStamp},e.ACTIVE_LOG_INTERVAL))}},{key:"stopActivityTimer",value:function(){null!=e.activityTimerHandler&&(clearInterval(e.activityTimerHandler),e.activityTimerHandler=null)}},{key:"updateActivityTime",value:function(){e.activityTimeStamp=Date.now(),e.activeTimeInSec=e.lastLoggedActivityTimeStamp?(e.activityTimeStamp-e.lastLoggedActivityTimeStamp)/1e3:0}},{key:"sendViewEvent",value:function(t){e.trackingOid&&fetch(e.API_ADD_VIEW_EVENT_URL,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":x("csrftoken")},credentials:"include",body:JSON.stringify(t)}).catch(()=>{console.log("Error sending view event")})}}],(r=null)&&R(t.prototype,r),n&&R(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function M(e,t){for(var r=0;r{console.log("Error sending viewer data")})}},{key:"getViewerData",value:function(){var e=a.API_VIEWER_IDENTIFICATION_BASE_URL+this.props.prezilink.link_id+"/";fetch(e,{credentials:"include"}).then(e=>e.json()).then(e=>{this.props.setOverlayVisible(!e.is_identified)}).catch(()=>{this.props.setOverlayVisible(!0),console.log("Error retrieving viewer data")})}},{key:"getTitle",value:function(){var e=this.props.prezilink.sharer_first_name+" "+this.props.prezilink.sharer_last_name,t=this.props.translations.title.replace("%%sharerName%%",e);return n.createElement("h2",{key:"viewer-identification-title",className:"viewer-identification-title"},t)}},{key:"getSubtitle",value:function(){var e=this.props.translations.subtitle.replace("%%sharerFirstName%%",this.props.prezilink.sharer_first_name||"");return n.createElement("h3",{key:"viewer-identification-subtitle",className:"viewer-identification-subtitle"},this.fillMarkupPlaceholdersWithAnchors(e,["https://prez.is/rihflmi"]))}},{key:"getNameInput",value:function(){return n.createElement("input",{key:"viewer-identification-input-name",className:"viewer-identification-input p-form-control form-dark",type:"text",placeholder:this.props.translations.namePlaceholder,value:this.state.name,onChange:e=>this.handleNameChange(e)})}},{key:"getEmailInput",value:function(){return n.createElement("input",{key:"viewer-identification-input-email",className:"viewer-identification-input p-form-control form-dark",type:"email",placeholder:this.props.translations.emailPlaceholder,value:this.state.email,onChange:e=>this.handleEmailChange(e)})}},{key:"getExplanation",value:function(){var e=(this.props.translations.explanation||"").replace("%%sharerFirstName%%",this.props.prezilink.sharer_first_name||"");return n.createElement("div",{key:"viewer-identification-explanation",className:"viewer-identification-explanation"},this.fillMarkupPlaceholdersWithAnchors(e,["https://prezi.com/terms-of-use/","https://prezi.com/privacy-policy/"]))}},{key:"getSubmitButton",value:function(){return n.createElement("div",{key:"viewer-identification-submit-button-container",className:"row viewer-identification-submit-button-container"},n.createElement("button",{key:"viewer-identification-submit-button",className:0!==this.state.name.length&&0!==this.state.email.length?"viewer-identification-button btn-responsive btn-md blue":"viewer-identification-button btn-disabled btn-responsive btn-md blue",onClick:()=>this.handleButtonClicked()},this.props.translations.button))}},{key:"getCopyright",value:function(){return n.createElement("div",{key:"viewer-identification-terms-link-container",className:"row copyright text-gray-3 viewer-identification-terms-link-container"},n.createElement("span",{key:"viewer-identification-terms-text",className:"viewer-identification-terms-text"},"© "+(new Date).getFullYear()+" Prezi Inc."))}},{key:"getOverlay",value:function(){return n.createElement("div",{key:"viewer-identification-overlay",className:"viewer-identification-overlay"},this.getTitle(),this.getSubtitle(),this.getNameInput(),this.getEmailInput(),this.getExplanation(),this.getSubmitButton(),this.getCopyright())}},{key:"getOverlayBackground",value:function(){var e=this.props.thumbnailUrl?n.createElement("div",{key:"viewer-identification-overlay-background-blurred-image",className:"viewer-identification-overlay-background-blurred-image",style:{backgroundImage:`url(${this.props.thumbnailUrl})`}}):null,t=this.props.thumbnailUrl?n.createElement("div",{key:"viewer-identification-overlay-background-gradient-layer",className:"viewer-identification-overlay-background-gradient-layer"}):null;return n.createElement("div",{key:"viewer-identification-overlay-background",className:"viewer-identification-overlay-background"},e,t)}},{key:"getOverlayContainer",value:function(){return this.props.visible?n.createElement("div",{key:"viewer-identification-overlay-container",className:this.props.visible?"viewer-identification-overlay-container":"hidden"},this.getOverlayBackground(),this.getOverlay()):null}},{key:"fillMarkupPlaceholdersWithAnchors",value:function(e,t){for(var r,i=/(.*?)<(\d+)>(.*?)<\/\2>/g,o=[],a=0;r=i.exec(e);){r[1]&&o.push(r[1]);var l=Number(r[2])-1;if(l=0){var s=t[l];o.push(n.createElement("a",{href:s,target:"_blank",rel:"noopener",key:a},r[3]))}else o.push(r[3]);a=i.lastIndex}return a{var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:7&r|8).toString(16)})}},{key:"initLogger",value:function(t,r){t.payload=t.payload||{};var n={logApiEndpoint:r,defaultLogLevel:K.b.INFO,defaultSource:String(t.payload.source||""),isProduction:!!r};this.clientLogger=new K.a(n),e.defaultEntryValues=t,e.defaultEntryValues.session_id=e.generateUUID();try{e.defaultEntryValues.payload.putma_id=o.get("__putma")||"N/A"}catch(t){e.defaultEntryValues.payload.putma_id="N/A"}this.activityLogger=new ne}}],(r=null)&&X(t.prototype,r),n&&X(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function te(e,t){for(var r=0;r{this.logActivity()},6e4)}var t,r,n;return t=e,(r=[{key:"pushActivity",value:function(){this.updateActiveTime((new Date).getTime())}},{key:"updateActiveTime",value:function(e){var t=e-this.lastActionTime;t<6e4&&(this.activeTimeInTheLastInterval+=t),this.lastActionTime=e}},{key:"logActivity",value:function(){if(this.activeTimeInTheLastInterval>0){var e=Math.round(this.activeTimeInTheLastInterval/1e3);ee.log({action:"active_time",object:"viewer",trigger:"machine",payload:{active_time_secs:e}}),this.activeTimeInTheLastInterval=0}}}])&&te(t.prototype,r),n&&te(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ie(e,t){for(var r=0;rr=>n=>{var i=r(n),o=t.getState();return e(n,o),i}}},{key:"getViewerMiddleware",value:function(){return e.getMiddleware((e,t)=>{if(e.type)switch(e.type){case p.LOADING_FINISHED:Y.b.logLoadPrezi({prezi_oid:t.appData.oid}),t.appData.replaceLightViewerExperimentName&&Y.b.logEnteredAbTestExperience({ab_test_name:t.appData.replaceLightViewerExperimentName}),P("js-abtest-present-mobile-viewer-gestures")&&Y.b.logEnteredAbTestExperience({ab_test_name:"js-abtest-present-mobile-viewer-gestures"});break;case p.ENDSCREEN_VISIBILITY:e.visible&&Y.b.logPreziEndScreenShowed({prezi_oid:t.appData.oid});break;case p.START_PRESENTATION:Y.b.logPlayPrezi({prezi_oid:t.appData.oid});break;case p.RESTART_PRESENTATION:Y.b.logRestartPrezi({prezi_oid:t.appData.oid});break;case p.TEASER_THUMBNAIL_CLICKED:Y.b.logTeaserContentClicked({target_prezi_oid:e.targetPreziOid});break;case p.WEBASSEMBLY_CHECK_FAILED:ee.log({action:"load",object:"web_assembly",trigger:"failure",payload:{reason:"no_webassembly_available",is_public:e.isPublic}})}})}}],(r=null)&&ie(t.prototype,r),n&&ie(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ae=r(5);function le(e,t,r,n,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}var se=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r,n,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ce(t,i);case 3:r(),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),n(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){le(o,n,i,a,l,"next",e)}function l(e){le(o,n,i,a,l,"throw",e)}a(void 0)}))});return function(e,r,n,i){return t.apply(this,arguments)}}();function ce(e,t){var r=window;return new Promise((n,i)=>{var o=new Image;o.addEventListener("load",()=>{n()}),o.addEventListener("error",()=>{i()}),o.src=e,r[t]=o})}var ue=function(e){return e.core="0",e.pitch="2",e}({}),pe=function(e){return e.PORTRAIT="portrait",e.LANDSCAPE="landscape",e}({}),de=r(209),fe=r.n(de);function me(){return n.createElement("style",{},"\n .webgl-viwer-info-overlay-transition-appear {\n opacity: .01;\n }\n .webgl-viwer-info-overlay-transition-appear.webgl-viwer-info-overlay-transition-appear-active {\n opacity: 1;\n transition: opacity .5s ease;\n }\n :focus {\n outline: none;\n }")}var ve={display:"flex",flexDirection:"column",position:"absolute",top:0,bottom:0,left:0,right:0},be={position:"relative",flexGrow:1},ye={position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"rgb(21,34,53,.8)",zIndex:2,display:"flex",justifyContent:"center"},he={borderRadius:"4px",boxShadow:"0 1px 6px rgba(0,0,0,.4)",backgroundColor:"#fff",flexBasis:"595px",margin:"auto 10px",overflow:"hidden"};function ge(){return n.createElement("style",{},"\n.modal-appear {\n opacity: 0.01;\n}\n\n.modal-appear.modal-appear-active {\n opacity: 1;\n transition: opacity .3s ease-in;\n}\n ")}function we(e,t){for(var r=0;r{t.state.modalRef.current&&t.state.modalRef.current.contains(e.target)||t.props.onClose&&t.props.onClose()}),t.state={modalRef:n.createRef()},t}return t=a,(r=[{key:"render",value:function(){return n.createElement("div",null,n.createElement(ge,null),n.createElement(fe.a,{transitionName:"modal",transitionAppear:!0,transitionAppearTimeout:500,transitionEnter:!1,transitionLeave:!1},n.createElement("div",{key:"modal-dialog",className:"next-webgl-modal-dialog",style:ye},n.createElement("div",{className:"next-webgl-modal-dialog-content-container",style:he,ref:this.state.modalRef},this.props.children))))}},{key:"UNSAFE_componentWillMount",value:function(){document.addEventListener("mousedown",this.handleClick,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleClick,!1)}}])&&we(t.prototype,r),i&&we(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.Component),Ce={padding:"54px 88px 57px 48px",background:"#152235",display:"flex",justifyContent:"space-between",color:"#fff",lineHeight:1.33,fontSize:18,borderRadius:"4px 4px 0 0",position:"relative"},Te={marginRight:24},De={padding:"30px 42px 30px 48px",borderRadius:"0 0 4px 4px"},Ie={fontSize:18,fontWeight:"bold",color:"#4b5468",marginBottom:24},Le={fontSize:16,lineHeight:1.5,letterSpacing:"0.6px",color:"#475262"},ze={marginTop:43,justifyContent:"flex-end",display:"flex"},Ne={position:"absolute",top:0,right:10,color:"#fff",fontWeight:"bold",fontSize:38,lineHeight:1,textDecoration:"none",cursor:"pointer"},je=n.createElement("svg",{width:"88px",height:"72px",viewBox:"0 0 88 72",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{id:"Web",stroke:"none",fill:"none"},n.createElement("g",{id:"presenter_view-paid",transform:"translate(-48.000000, -59.000000)"},n.createElement("g",{id:"presenter-view",transform:"translate(48.000000, 59.000000)"},n.createElement("g",{id:"Asset-1"},n.createElement("g",{id:"designs"},n.createElement("g",{id:"Artboard-2"},n.createElement("g",{id:"Asset-1"},n.createElement("g",{id:"Layer_2"},n.createElement("g",{id:"Layer_1-2"},n.createElement("path",{d:"M82.5389714,7.34673759 L82.5389714,53.8794326 L5.4208,53.8794326 L5.4208,7.34673759 L82.5389714,7.34673759 L82.5389714,7.34673759 Z M83.7961143,6.08787234 L4.16365714,6.08787234 L4.16365714,55.118156 L83.7961143,55.118156 L83.7961143,6.08787234 Z",id:"Shape",fill:"#81AAF0"}),n.createElement("path",{d:"M19.2091429,33.1786525 L27.0537143,23.4551773",id:"Shape",stroke:"#81AAF0",fill:"#81AAF0"}),n.createElement("path",{d:"M32.6354286,23.0825532 L45.7952,33.8886525",id:"Shape",stroke:"#81AAF0",fill:"#81AAF0"}),n.createElement("path",{d:"M51.3769143,33.435461 L62.5856,19.8900709",id:"Shape",stroke:"#81AAF0",fill:"#81AAF0"}),n.createElement("ellipse",{id:"Oval",stroke:"#81AAF0",cx:"16.9211429",cy:"36.1697163",rx:"3.76137143",ry:"3.76652482"}),n.createElement("ellipse",{id:"Oval",stroke:"#81AAF0",cx:"48.7872",cy:"36.1697163",rx:"3.76137143",ry:"3.76652482"}),n.createElement("ellipse",{id:"Oval",stroke:"#81AAF0",cx:"64.9842286",cy:"16.9846099",rx:"3.76137143",ry:"3.76652482"}),n.createElement("ellipse",{id:"Oval",stroke:"#81AAF0",cx:"29.6786286",cy:"20.7561702",rx:"3.76137143",ry:"3.76652482"}),n.createElement("polyline",{id:"Shape",stroke:"#81AAF0",points:"34.7273143 70.6878014 43.9798857 54.6498582 53.2274286 70.6878014"}),n.createElement("path",{d:"M86.6976,1.25886525 L86.6976,6.07780142 L1.25714286,6.07780142 L1.25714286,1.25886525 L86.6976,1.25886525 L86.6976,1.25886525 Z M87.9547429,0 L0,0 L0,7.33666667 L87.9547429,7.33666667 L87.9547429,0 Z",id:"Shape",fill:"#81AAF0"}))))))))))),xe=e=>n.createElement("div",{className:"presenter-view-desktop-download-dialog"},n.createElement("div",{className:"presenter-view-desktop-download-dialog-header",style:Ce},e.onClose?n.createElement("a",{id:"presenter-view-desktop-download-close",onClick:e.onClose,style:Ne},"×"):null,n.createElement("div",{className:"presenter-view-desktop-download-svg-container",style:Te},je),n.createElement("div",{className:"presenter-view-desktop-download-header-text"},n.createElement("div",null,ae.a._("Presenter View is optimized for our desktop app.")),n.createElement("div",null,ae.a._("(Pssst… it comes with your license)")))),n.createElement("div",{className:"presenter-view-desktop-download-content-container",style:De},n.createElement("div",{className:"presenter-view-desktop-download-feature-container",style:Ie},ae.a._("You’ll get a special presenter’s screen with your notes and a timer to guide you.")),n.createElement("div",{className:"presenter-view-desktop-download-description-container",style:Le},n.createElement("div",null,ae.a._("This feature is available only in our desktop app.")),n.createElement("div",null,ae.a._("Don’t have the app yet?"))),n.createElement("div",{className:"presenter-view-desktop-download-link-container",style:ze},n.createElement("a",{className:"btn-md blue",href:"/download/business/",target:"_blank"},ae.a._("Download it here"))))),Re={position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"rgb(21,34,53,.8)",zIndex:2,display:"flex",justifyContent:"center"},Ve={borderRadius:"4px",boxShadow:"0 1px 6px rgba(0,0,0,.4)",backgroundColor:"#fff",flexBasis:"595px",margin:"auto 10px",overflow:"hidden"},Me={border:"none",width:600};function We(){return n.createElement("style",{},"\n.modal-appear {\n opacity: 0.01;\n}\n\n.modal-appear.modal-appear-active {\n opacity: 1;\n transition: opacity .3s ease-in;\n}\n ")}function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t{var e=document.getElementById(t.IFRAME_ID),r=0;null!=e&&null!=e.contentWindow&&(r=e.contentWindow.document.body.scrollHeight),t.setState({isLoaded:!0,iframeHeight:r})}),Xe($e(t),"handleClick",e=>{t.state.modalRef.current&&t.state.modalRef.current.contains(e.target)||t.props.onClose&&t.props.onClose()}),t.state={isLoaded:!1,iframeHeight:0,modalRef:n.createRef()},t}return t=a,(r=[{key:"componentDidMount",value:function(){window.hasOwnProperty("closePaywallPanel")||Object.defineProperty(window,"closePaywallPanel",{value:()=>{var e,t;return null===(e=(t=this.props).onClose)||void 0===e?void 0:e.call(t)},configurable:!1,writable:!1})}},{key:"UNSAFE_componentWillMount",value:function(){document.addEventListener("mousedown",this.handleClick,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleClick,!1)}},{key:"render",value:function(){var e=Be(Be({},Me),{},{height:this.state.iframeHeight}),t=Be(Be({},Ve),{},{visibility:this.state.isLoaded?"visible":"hidden"});return n.createElement("div",null,n.createElement(We,null),n.createElement(fe.a,{transitionName:"modal",transitionAppear:!0,transitionAppearTimeout:500,transitionEnter:!1,transitionLeave:!1},n.createElement("div",{key:"modal-dialog",className:"next-webgl-modal-dialog",style:Re},n.createElement("div",{className:"next-webgl-modal-dialog-content-container",style:t,ref:this.state.modalRef},n.createElement("div",{className:"next-webgl-modal-iframe-dialog"},n.createElement("div",{className:"next-webgl-modal-iframe-dialog-content-container"},n.createElement("iframe",{id:this.IFRAME_ID,className:"next-webgl-modal-iframe-dialog-content-iframe",src:this.props.targetUrl,onLoad:this.onIFrameLoaded,style:e})))))))}}])&&Ge(t.prototype,r),i&&Ge(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent),Qe=Object(c.b)(e=>({oid:e.appData.oid,getEmbedIframeText:w.E}),e=>({onCloseModal:()=>{e(v())},onCopy:()=>{e({type:p.EMBED_CODE_COPIED})}}))(w.l),et={position:"fixed",width:"100%",height:"100%",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(21,34,53,0.8)",zIndex:4},tt={alignItems:"center",display:"flex",justifyContent:"center",width:"100%",height:"100%"};function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var it=e=>{var t=function(e){for(var t=1;t{var t={lastModifiedDate:e.appData.lastModifiedDateString,sharerFirstName:e.appData.prezilink?e.appData.prezilink.sharer_first_name:"",sharerLastName:e.appData.prezilink?e.appData.prezilink.sharer_last_name:""};return{translations:{subtitle:ae.a._("{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.",{0:t.sharerFirstName}),title:ae.a._("View presentation by {0} {1}",{0:t.sharerFirstName,1:t.sharerLastName}),explanation:ae.a._("Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.",{0:t.sharerFirstName})}}},null,(e,t,r)=>({prezilink:r.prezilink,setOverlayVisible:r.setOverlayVisible,visible:r.visible,thumbnailUrl:r.thumbnailUrl,viewerName:r.viewerName,viewerEmail:r.viewerEmail,translations:{subtitle:e.translations.subtitle,title:e.translations.title,explanation:e.translations.explanation,button:r.translations.button,emailPlaceholder:r.translations.emailPlaceholder,namePlaceholder:r.translations.namePlaceholder}}))(G),at=r(21),lt={de:{"(Pssst… it comes with your license)":"(Pssst... das ist in Ihrer Lizenz enthalten)","Accept and view presentation":"Akzeptieren und die Präsentation ansehen","Autoplay stop":"Autoplay stoppen","Autoplay with %(interval)s sec delay":"Autoplay mit %(interval)s Sek. Verzögerung ","By {0}":["Von ",["0"]],"Click and drag Prezi to explore":"Klicken und ziehen, um Prezi zu erkunden. ",Code:"Code",Comment:"Kommentieren","Copied!":"Kopiert!","Copy code to clipboard":"Code in Zwischenablage kopieren",Dimensions:"Dimensionen","Don’t choose between
you and your content":"Entscheiden Sie sich nicht zwischen <0/><1>Ihnen und Ihrem Inhalt","Don’t have the app yet?":"Sie haben die App noch nicht?","Download it here":"Hier herunterladen",Edit:"Bearbeiten","Email address":"E-Mail-Adresse","Embed Prezi":"Prezi einbetten","Get Prezi for FREE":"Erhalten Sie Prezi GRATIS",Height:"Höhe","Last modified {0}":["Zuletzt geändert ",["0"]],"Learn more about Prezi":"Erfahren Sie mehr über Prezi","Learn more about Prezi Video":"Erfahren Sie mehr über Prezi Video","Loading content…":"Inhalt wird geladen...","Loading…":"Wird geladen...",Mute:"Stummschalten",Name:"Name","Pecha Kucha go!":"Auf geht's, Pecha Kucha!",Present:"Präsentieren","Presenter View is optimized for our desktop app.":"Die Moderatoransicht ist für die Desktop-App optimiert.","Presenter view":"Moderatoransicht",Restart:"Neustart","This feature is available only in our desktop app.":"Dieses Feature ist nur in der Desktop-App verfügbar.",Unmute:"Stummschaltung aufheben","Up next":"Demnächst","View on Prezi.com":"Auf Prezi.com ansehen","View presentation by {0} {1}":["Präsentation von ",["0"]," ",["1"]," anzeigen"],"WebGL context lost. You will need to reload the page.":"WebGL-Kontext verloren gegangen. Sie müssen die Seite neu laden.",Width:"Breite","Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.":["Ihre Kontaktinformationen werden an ",["0"],' gesendet und für nichts anderes verwendet. Wenn Sie auf "Präsentation akzeptieren und anzeigen" klicken, erklären Sie sich mit unseren <1>Nutzungsbedingungen und <2>Datenschutzrichtlinien einverstanden.'],"You’ll get a special presenter’s screen with your notes and a timer to guide you.":"Sie erhalten einen speziellen Moderatorbildschirm. Dieser zeigt Ihre Notizen sowie einen Timer, was Ihnen beim Präsentieren hilft.",pixels:"Pixel","{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.":[["0"]," verfolgt diese Präsentation mit <1>Prezi Analytics und würde gerne wissen, wer Sie sind."]},en:{"(Pssst… it comes with your license)":"(Pssst… it comes with your license)","Accept and view presentation":"Accept and view presentation","Autoplay stop":"Autoplay stop","Autoplay with %(interval)s sec delay":"Autoplay with %(interval)s sec delay","By {0}":["By ",["0"]],"Click and drag Prezi to explore":"Click and drag Prezi to explore",Code:"Code",Comment:"Comment","Copied!":"Copied!","Copy code to clipboard":"Copy code to clipboard",Dimensions:"Dimensions","Don’t choose between
you and your content":"Don’t choose between
you and your content","Don’t have the app yet?":"Don’t have the app yet?","Download it here":"Download it here",Edit:"Edit","Email address":"Email address","Embed Prezi":"Embed Prezi","Get Prezi for FREE":"Get Prezi for FREE",Height:"Height","Last modified {0}":["Last modified ",["0"]],"Learn more about Prezi":"Learn more about Prezi","Learn more about Prezi Video":"Learn more about Prezi Video","Loading content…":"Loading content…","Loading…":"Loading…",Mute:"Mute",Name:"Name","Pecha Kucha go!":"Pecha Kucha go!",Present:"Present","Presenter View is optimized for our desktop app.":"Presenter View is optimized for our desktop app.","Presenter view":"Presenter view",Restart:"Restart","This feature is available only in our desktop app.":"This feature is available only in our desktop app.",Unmute:"Unmute","Up next":"Up next","View on Prezi.com":"View on Prezi.com","View presentation by {0} {1}":["View presentation by ",["0"]," ",["1"]],"WebGL context lost. You will need to reload the page.":"WebGL context lost. You will need to reload the page.",Width:"Width","Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.":["Your contact information will be sent to ",["0"]," and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy."],"You’ll get a special presenter’s screen with your notes and a timer to guide you.":"You’ll get a special presenter’s screen with your notes and a timer to guide you.",pixels:"pixels","{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.":[["0"]," is tracking this presentation with <1>Prezi Analytics and would like to know who you are."]},es:{"(Pssst… it comes with your license)":"(Pss... viene con tu licencia)","Accept and view presentation":"Aceptar y ver presentación","Autoplay stop":"Parar repro auto","Autoplay with %(interval)s sec delay":"Repro auto con %(interval)s s de retardo","By {0}":["Por ",["0"]],"Click and drag Prezi to explore":"Haz clic y arrastra el prezi para explorar",Code:"Código",Comment:"Comentar","Copied!":"¡Copiado!","Copy code to clipboard":"Copiar código al portapapeles",Dimensions:"Dimensiones","Don’t choose between
you and your content":"No elijas entre
el contenido y tú","Don’t have the app yet?":"¿Todavía no tienes la app?","Download it here":"Descargar aquí",Edit:"Editar","Email address":"Dirección de correo","Embed Prezi":"Insertar Prezi","Get Prezi for FREE":"Obtén Prezi GRATIS",Height:"Alto","Last modified {0}":["Última modificación ",["0"]],"Learn more about Prezi":"Más información sobre Prezi","Learn more about Prezi Video":"Más información sobre Prezi Video","Loading content…":"Cargando contenido...","Loading…":"Cargando…",Mute:"Silenciar",Name:"Nombre","Pecha Kucha go!":"¡Pecha Kucha ya!",Present:"Presentar","Presenter View is optimized for our desktop app.":"La Vista del presentador está optimizada para nuestra app de escritorio.","Presenter view":"Vista del presentador",Restart:"Reiniciar","This feature is available only in our desktop app.":"Está función solo está disponible en nuestra app de escritorio.",Unmute:"Activar sonido","Up next":"Siguiente","View on Prezi.com":"Ver en Prezi.com","View presentation by {0} {1}":["Ver presentación de ",["0"]," ",["1"]],"WebGL context lost. You will need to reload the page.":"Contexto WebGL perdido. Tendrás que recargar la página.",Width:"Ancho","Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.":["Tu información de contacto se enviará a ",["0"],' y no se utilizará para nada más. Al hacer clic en "Aceptar y ver la presentación" significa que estás de acuerdo con nuestras <1>Condiciones de uso y <2>Política de privacidad.'],"You’ll get a special presenter’s screen with your notes and a timer to guide you.":"Obtendrás una pantalla especial de presentador con tus notas y un temporizador para guiarte.",pixels:"píxeles","{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.":[["0"]," está siguiendo esta presentación con <1>Prezi Analytics y le gustaría saber quién eres."]},fr:{"(Pssst… it comes with your license)":"(C'est compris dans votre licence !)","Accept and view presentation":"Accepter et voir la présentation","Autoplay stop":"Arrêter la lecture automatique","Autoplay with %(interval)s sec delay":"Lecture automatique avec un délai de %(interval)s secondes","By {0}":["Par ",["0"]],"Click and drag Prezi to explore":"Cliquez et déplacez-vous sur la toile pour explorer le prezi",Code:"Code",Comment:"Commenter","Copied!":"Copié !","Copy code to clipboard":"Copier le code dans le presse papier",Dimensions:"Dimensions","Don’t choose between
you and your content":"Ne choisissez pas entre
vous et votre contenu","Don’t have the app yet?":"Vous n'avez pas encore l'application ?","Download it here":"Téléchargez-la ici",Edit:"Éditer","Email address":"Adresse e-mail","Embed Prezi":"Intégrer Prezi","Get Prezi for FREE":"Obtenez Prezi GRATUITEMENT ",Height:"Hauteur","Last modified {0}":["Dernière modification ",["0"]],"Learn more about Prezi":"En savoir plus sur Prezi","Learn more about Prezi Video":"En savoir plus sur Prezi Video","Loading content…":"Chargement du contenu...","Loading…":"Chargement...",Mute:"Couper le son",Name:"Nom","Pecha Kucha go!":"Pecha Kucha go !",Present:"Présenter","Presenter View is optimized for our desktop app.":"La vue présentateur est optimisée pour notre application desktop.","Presenter view":"Vue présentateur ",Restart:"Recommencer ","This feature is available only in our desktop app.":"Cette fonctionnalité est disponible dans notre application de bureau uniquement.",Unmute:"Activer le son ","Up next":"À suivre","View on Prezi.com":"Voir sur Prezi.com","View presentation by {0} {1}":["Voir la présentation de ",["0"]," ",["1"]],"WebGL context lost. You will need to reload the page.":"Contexte WebGL perdu. Veuillez recharger la page.",Width:"Largeur","Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.":["Vos coordonnées seront envoyées à ",["0"]," et ne seront utilisées pour rien d’autre. En cliquant sur « Accepter et afficher la présentation », vous avez accepté nos conditions d’utilisation <1> et notre <2>Politique de confidentialité."],"You’ll get a special presenter’s screen with your notes and a timer to guide you.":"Vous aurez a disposition un écran spécial pour présentateur avec vos notes et un chronomètre pour vous guider.",pixels:"pixels","{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.":[["0"]," suit cette présentation avec <1>Prezi Analytics et aimerait savoir qui vous êtes."]},pt:{"(Pssst… it comes with your license)":"(Psiu... vem com a sua licença)","Accept and view presentation":"Aceitar e ver apresentação","Autoplay stop":"Parar autoplay","Autoplay with %(interval)s sec delay":"Reprodução automática com %(interval)s segundos de atraso","By {0}":["Por ",["0"]],"Click and drag Prezi to explore":"Clique e arraste no Prezi para explorar",Code:"Código",Comment:"Comentar","Copied!":"Copiado!","Copy code to clipboard":"Copiar código para Área de Transferência",Dimensions:"Dimensões","Don’t choose between
you and your content":"Não escolha entre <0/><1>você e o seu conteúdo","Don’t have the app yet?":"Ainda não tem o aplicativo?","Download it here":"Baixe-o aqui",Edit:"Editar","Email address":"Endereço de e-mail","Embed Prezi":"Incorporar Prezi","Get Prezi for FREE":"Adquira o Prezi GRÁTIS",Height:"Altura","Last modified {0}":["Última modificação ",["0"]],"Learn more about Prezi":"Aprenda mais sobre o Prezi","Learn more about Prezi Video":"Aprenda mais sobre o Prezi Video","Loading content…":"Carregando conteúdo...","Loading…":"Carregando...",Mute:"Ativar mudo",Name:"Nome","Pecha Kucha go!":"Pecha Kucha vai!",Present:"Apresentar","Presenter View is optimized for our desktop app.":"A prévia do apresentador é otimizada para o aplicativo desktop.","Presenter view":"Prévia do apresentador",Restart:"Recomeçar","This feature is available only in our desktop app.":"Este recurso está disponível apenas no aplicativo desktop.",Unmute:"Desativar mudo","Up next":"A seguir","View on Prezi.com":"Ver em Prezi.com","View presentation by {0} {1}":["Ver apresentação de ",["0"]," ",["1"]],"WebGL context lost. You will need to reload the page.":"O contexto WebGL foi perdido. Você precisará recarregar a página.",Width:"Largura","Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.":["Suas informações de contato serão enviadas para ",["0"]," e não serão utilizadas para nenhum outro fim. Ao clicar em 'Aceitar e ver apresentação', você concorda com os <1>Termos de uso e com a <2>Política de privacidade."],"You’ll get a special presenter’s screen with your notes and a timer to guide you.":"Você verá a tela especial do apresentador, com observações e um temporizador para orientá-lo.",pixels:"pixels","{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.":[["0"]," está monitorando a apresentação com o <1>Prezi Analytics e gostaria de saber onde você está."]},hu:{"(Pssst… it comes with your license)":" (Jár az Ön előfizetéséhez)","Accept and view presentation":"Elfogadás és prezentáció megtekintése","Autoplay stop":"Automatikus lejátszás megállítása","Autoplay with %(interval)s sec delay":"Automatikus lejátszás %(interval)s másodperc késleltetéssel","By {0}":["Készítette: ",["0"]],"Click and drag Prezi to explore":"Húzzon és görgessen az egérrel a Prezi bejárásához",Code:"Kód",Comment:"Hozzászólás","Copied!":"Lemásolva!","Copy code to clipboard":"Kód másolása a vágólapra",Dimensions:"Méretek","Don’t choose between
you and your content":"Nem kell választania
saját maga és a tartalmai között","Don’t have the app yet?":"Még nincs meg az alkalmazás?","Download it here":"Töltse le itt",Edit:"Szerkesztés","Email address":"E-mail-cím","Embed Prezi":"Prezi beágyazása","Get Prezi for FREE":"A Prezi beszerzése INGYEN",Height:"Magasság","Last modified {0}":["Utoljára módosítva: ",["0"]],"Learn more about Prezi":"Tudjon meg többet a Preziről","Learn more about Prezi Video":"További információ a Prezi Videóról","Loading content…":"Tartalom betöltése...","Loading…":"Betöltés...",Mute:"Némítás",Name:"Név","Pecha Kucha go!":"Induljon a Pecha Kucha!",Present:"Előadás","Presenter View is optimized for our desktop app.":"Az előadói nézetet az asztali alkalmazásunkra optimalizáltuk.","Presenter view":"Előadói nézet",Restart:"Újraindítás","This feature is available only in our desktop app.":"Ez a funkció csak az asztali alkalmazásunkban érhető el.",Unmute:"Némítás feloldása","Up next":"Következő","View on Prezi.com":"Megtekintés a Prezi.com-on","View presentation by {0} {1}":[["0"]," ",["1"]," prezentációjának megtekintése"],"WebGL context lost. You will need to reload the page.":"Elveszett a WebGL kontextus. Kérjük, töltse be újra az oldalt.",Width:"Szélesség","Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.":["Kapcsolatfelvételi adatai el lesznek küldve a(z) ",["0"]," részére, és semmi másra nem használjuk fel. Az „Elfogadás és prezentáció megtekintése” lehetőségre kattintva Ön elfogadja <1>felhasználási feltételeinket és <2>adatvédelmi szabályzatunkat."],"You’ll get a special presenter’s screen with your notes and a timer to guide you.":"Az előadói nézet a jegyzeteivel és egy időzítővel segíti Önt a prezentációja során.",pixels:"képpont","{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.":[["0"]," nyomon követi ezt a prezentációt a <1>Prezi Analytics segítségével, és szeretné tudni, hogy Ön kicsoda."]},it:{"(Pssst… it comes with your license)":"(psssss... è incluso nella tua licenza)","Accept and view presentation":"Accetta e visualizza la presentazione","Autoplay stop":"Arresta riproduzione automatica","Autoplay with %(interval)s sec delay":"Riproduzione automatica con %(interval)s secondi di ritardo","By {0}":["Di ",["0"]],"Click and drag Prezi to explore":"Clicca e trascina il prezi per esplorare",Code:"Codice",Comment:"Commenta","Copied!":"Copiato!","Copy code to clipboard":"Copia codice negli appunti",Dimensions:"Dimensioni","Don’t choose between
you and your content":"Non scegliere tra
te e i tuoi contenuti","Don’t have the app yet?":"Ancora non hai scaricato l'app?","Download it here":"Scaricalo qui",Edit:"Modifica","Email address":"Indirizzo email","Embed Prezi":"Incorpora prezi","Get Prezi for FREE":"Ottieni Prezi GRATIS",Height:"Altezza","Last modified {0}":["Ultima modifica ",["0"]],"Learn more about Prezi":"Scopri di più su Prezi","Learn more about Prezi Video":"Scopri di più su Prezi Video","Loading content…":"Caricamento del contenuto in corso...","Loading…":"Caricando...",Mute:"Muto",Name:"Nome","Pecha Kucha go!":"Pecha, Kucha, via!",Present:"Presenta","Presenter View is optimized for our desktop app.":"La Vista del Presentatore è ottimizzata per la nostra app per desktop.","Presenter view":"Vista del presentatore",Restart:"Riavvia","This feature is available only in our desktop app.":"Questa funzione è disponibile solo per la nostra app per desktop.",Unmute:"Riattiva audio","Up next":"Il prossimo","View on Prezi.com":"Guarda su Prezi.com","View presentation by {0} {1}":["Visualizza la presentazione di ",["0"]," ",["1"]],"WebGL context lost. You will need to reload the page.":"Contesto WebGL perso. Devi ricaricare la pagina.",Width:"Larghezza","Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.":["Le tue informazioni di contatto verranno inviate a ",["0"]," e non verranno utilizzate per nient'altro. Facendo clic su \"Accetta e visualizza presentazione\" accetti le nostre <1>Condizioni d'uso e l'<2>Informativa sulla privacy."],"You’ll get a special presenter’s screen with your notes and a timer to guide you.":"Avrai una schermata speciale con le tue note e il tuo timer per guidarti.",pixels:"pixel","{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.":[["0"]," sta monitorando questa presentazione con <1>Prezi Analytics e vorrebbe sapere chi sei."]},ja:{"(Pssst… it comes with your license)":"(これはあなたのライセンスですね)","Accept and view presentation":"承認してプレゼンを閲覧","Autoplay stop":"自動再生を停止","Autoplay with %(interval)s sec delay":" %(interval)s 秒遅れでオートプレー","By {0}":["作成者 : ",["0"]],"Click and drag Prezi to explore":"Prezi をクリック・ドラッグして検索",Code:"コード",Comment:"コメント","Copied!":"コピーされました!","Copy code to clipboard":"クリップボードにコードをコピー",Dimensions:"大きさ","Don’t choose between
you and your content":"ご自身の映像か、コンテンツを表示かで
悩む必要はありません。","Don’t have the app yet?":"まだアプリをお持ちでない?","Download it here":"こちらからダウンロード",Edit:"編集","Email address":"Email address","Embed Prezi":"埋め込まれた Prezi","Get Prezi for FREE":"Prezi を無料で利用",Height:"高さ","Last modified {0}":["最終更新日:",["0"]],"Learn more about Prezi":"Prezi について","Learn more about Prezi Video":"Prezi Video について","Loading content…":"コンテンツを読み込み中…","Loading…":"ロード中…",Mute:"ミュート",Name:"名前","Pecha Kucha go!":"Pecha Kucha go!",Present:"プレゼン","Presenter View is optimized for our desktop app.":"プレゼンター ビューはデスクトップで利用できます。","Presenter view":"プレゼンタービュー",Restart:"再スタート","This feature is available only in our desktop app.":"この機能はデスクトップ アプリのみで利用できます。",Unmute:"ミュート解除","Up next":"次のアップ","View on Prezi.com":"Prezi.com で閲覧","View presentation by {0} {1}":[["0"],"によるプレゼンを閲覧",["1"]],"WebGL context lost. You will need to reload the page.":"WebGL コンテンツが見つかりません。ページをリロードしてください。",Width:"幅","Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.":["あなたの連絡先情報は",["0"],"に送信され、それ以外に使用されることはありません。「Accept and view presentation」をクリックすると、<1>利用規約と<2>プライバシーポリシーに同意したことになります。"],"You’ll get a special presenter’s screen with your notes and a timer to guide you.":"メモやタイマーが含まれた特別プレゼンター スクリーンを利用できます。",pixels:"ピクセル","{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.":[["0"],"は<1>Prezi Analyticsでこのプレゼンテーションをトラッキングしていて、あなたを知りたがっています。"]},ko:{"(Pssst… it comes with your license)":"(잠깐.. 라이센스가 필요합니다)","Accept and view presentation":"확인 후 프레젠테이션 감상","Autoplay stop":"자동재생 중지","Autoplay with %(interval)s sec delay":" %(interval)s 초 간격으로 자동재생","By {0}":["제작 ",["0"]],"Click and drag Prezi to explore":"화면을 클릭, 드래그하여 원하는 곳으로 이동할 수 있습니다.",Code:"코드",Comment:"코멘트","Copied!":"복사 완료!","Copy code to clipboard":"클립보드로 코드 복사",Dimensions:"크기","Don’t choose between
you and your content":"
나와 나의 컨텐츠 중 무엇을 선택할지 고민하실 필요없습니다 ","Don’t have the app yet?":"아직 앱이 없으신가요?","Download it here":"다운로드하기",Edit:"편집하기","Email address":"이메일 주소","Embed Prezi":"Prezi 임베드하기","Get Prezi for FREE":"무료로 Prezi 이용하기",Height:"세로","Last modified {0}":["최종 수정 ",["0"]],"Learn more about Prezi":"Prezi를 더 알아보세요","Learn more about Prezi Video":"Prezi Video 더 알아보기","Loading content…":"콘텐츠 로딩 중...","Loading…":"로딩중",Mute:"음소거",Name:"이름","Pecha Kucha go!":"Pecha Kucha go!",Present:"감상하기","Presenter View is optimized for our desktop app.":"발표자 화면은 데스크탑 앱에 최적화되었습니다.","Presenter view":"발표자 화면",Restart:"다시보기","This feature is available only in our desktop app.":"이 기능은 데스크탑 앱에서 사용가능합니다.",Unmute:"음소거 끄기","Up next":"다음","View on Prezi.com":"Prezi.com에서 보기","View presentation by {0} {1}":[["0"]," ",["1"],"의 프레젠테이션 감상"],"WebGL context lost. You will need to reload the page.":"WebGL 텍스트가 유효하지 않습니다. 페이지를 다시 로딩해주세요",Width:"너비","Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.":["회원님의 연락처 정보는 ",["0"],"(으)로 전송되며 다른 용도로는 사용되지 않습니다. '확인 및 프레젠테이션 감상'을 클릭하시면 저희 <1>이용 약관 및 <2>개인 정보 보호 정책에 동의하시게 됩니다."],"You’ll get a special presenter’s screen with your notes and a timer to guide you.":"발표자 화면에서 발표자에게만 보이는 노트 기능과 타이머를 이용하실 수 있습니다.",pixels:"픽셀","{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.":[["0"],"(은)는 <1>Prezi 애널리틱스로 이 프레젠테이션을 트래킹하고 있으며 누가 보고 있는지 알고 싶어합니다."]}},st={en:{plurals:at.b},de:{plurals:at.a},es:{plurals:at.c},fr:{plurals:at.d},pt:{plurals:at.i},hu:{plurals:at.e},it:{plurals:at.f},ja:{plurals:at.g},ko:{plurals:at.h}},ct=lt,ut=()=>{try{var e,t;return(null===(e=document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.getAttribute("lang"))||o.get("django_language")||"en"}catch(e){return"en"}},pt=dt();function dt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct;return ae.a.load(t),ae.a.loadLocaleData(st),ae.a.activate(e),ae.a}function ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mt(e,t){for(var r=0;rthis.handleViewerIdentificationVisibility(e)}))}return null;case g.EMBED:return n.createElement(it,{isVisible:!0},n.createElement(Qe,{localizedMessages:this.embedModalMessages}));default:return null}}}])&&mt(t.prototype,r),i&&mt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent),Pt=Object(c.b)(null,e=>({onClose:()=>{e(v())},showViewerIdentificationModal:()=>{e({type:p.SHOW_VIEWER_IDENTIFICATION_MODAL})}}))(Et);function Ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function At(e){for(var t=1;t{var t;return e.enableMetadataBlock&&(t=n.createElement(St,{title:e.title,byOwner:e.byOwner,lastModifiedDateString:e.lastModifiedDateString,owner:e.owner,responsiveMode:e.responsiveMode,enableCSSTransition:!1})),n.createElement("div",{className:"viewer-common-info-overlay-foreground",style:w.D},t,n.createElement("div",{className:"viewer-common-info-overlay-centering",style:w.B},n.createElement("div",{className:"viewer-common-info-overlay-center-block"},e.responsiveMode===w.u.SMALL?n.createElement("div",null,n.createElement(w.s,{size:80,progressPercentage:e.loadPercentage}),n.createElement(Ct,{text:e.localizedMessages.loadingLabel})):n.createElement("div",null,n.createElement(w.s,{size:168,progressPercentage:e.loadPercentage}),n.createElement(Ct,{text:e.localizedMessages.loadingLabel})))))},Dt=e=>n.createElement("div",{className:"viewer-common-info-overlay-foreground",style:w.D},n.createElement("div",{className:"viewer-common-info-overlay-centering",style:w.B},n.createElement("div",{className:"viewer-common-info-overlay-center-block"},n.createElement(w.e,{type:"outline",size:"small",iconElement:Object(w.K)(),onClick:e.onRestart,label:e.localizedMessages.restartButtonLabel})))),It=r(3),Lt=()=>{var e={background:It.Colors.neutral800,opacity:.8,position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:2};return n.createElement("div",{className:"viewer-common-gradient-background",style:e})},zt=e=>{var t,r=e.previewUrl,i=e.fallbackPreviewUrl;switch(e.previewState){case w.q.SHOW:t=r;break;case w.q.FALLBACK:t=i}if(!t)return null;var o={background:`url(${t}) center center / cover no-repeat`,bottom:0,left:0,position:"absolute",right:0,top:0,zIndex:1};return n.createElement("div",{className:"viewer-common-preview",style:o})};function Nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jt(e,t){for(var r=0;rPromise.all([r.e(3),r.e(6)]).then(r.bind(null,686))),Ut=()=>{},Gt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xt(e,t)}(a,e);var t,r,i,o=Rt(a);function a(){var e;Nt(this,a);for(var t=arguments.length,r=new Array(t),n=0;n{e.props.onWebglViewerLoaderCreated(r)}),e}return t=a,(r=[{key:"render",value:function(){var e=this.props.webglViewerParams;if(!e)return n.createElement(n.Fragment,null);var t={onFallback:e.handleFallback||Ut,onViewerStatusChange:e.handleViewerStatusChange||Ut,onEndscreenRequest:e.handleEndscreenRequest||Ut,onFullscreenStatusChange:e.handleFullscreenStatusChange||Ut,noWebAssemblyOnFallbackDisabled:e.handleNoWebAssemblyIfFallbackDisabled||Ut,missingWebglFallbackOnFallbackDisabled:e.handleNoWebglIfFallbackDisabled||Ut,handlePresenterView:e.handlePresenterView||Ut,handlePathPositionChange:e.handlePathPositionChange||Ut,handleXmlLoad:e.handleXmlLoad||Ut};return n.createElement(n.Suspense,{fallback:null},n.createElement(Bt,{preziData:e.preziData,clientData:e.clientData,appData:e.appData,callbackContext:t,postInit:this.postInit,dataLookup:this.props.dataLookup}))}}])&&jt(t.prototype,r),i&&jt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent),Ht=Object(u.default)(w.m).withConfig({displayName:"FullscreenInfoOverlay",componentId:"sc-19hvywj-0"})(["position:fixed;top:0;right:0;bottom:0;left:0;"]);function Yt(){return(Yt=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return i.a.createElement("svg",Yt({height:"24",width:"24",fill:"none",viewBox:"0 0 24 24"},e),e.children,i.a.createElement("path",{d:"M17.427 9.856l-7.64-4.584C8.12 4.272 6 5.472 6 7.415v9.17c0 1.943 2.12 3.143 3.786 2.143l7.641-4.584c1.619-.971 1.619-3.317 0-4.288z",fill:"#616161"}))};function qt(){return(qt=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return i.a.createElement("svg",qt({height:"24",width:"24",fill:"none",viewBox:"0 0 24 24"},e),e.children,i.a.createElement("path",{d:"M7 5a1 1 0 00-1 1v12a1 1 0 001 1h2a1 1 0 001-1V6a1 1 0 00-1-1H7zm8 0a1 1 0 00-1 1v12a1 1 0 001 1h2a1 1 0 001-1V6a1 1 0 00-1-1h-2z",fill:"#616161",fillRule:"evenodd"}))};function Zt(){return(Zt=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return i.a.createElement("svg",Zt({height:"24",width:"24",fill:"none",viewBox:"0 0 24 24"},e),e.children,i.a.createElement("path",{d:"M5.47 4.47a.75.75 0 011.06 0l3.657 3.656L15 12.937v.001l3.53 3.53a.75.75 0 11-1.06 1.061L15 15.06v2.766a1 1 0 01-1.65.76l-4.197-3.598c-.05.008-.101.012-.153.012H7a1 1 0 01-1-1v-4a1 1 0 011-1h1.94L5.47 5.53a.75.75 0 010-1.06zM15 6.174v5.347l-4.05-4.05 2.4-2.056a1 1 0 011.65.76z",fill:"#616161",fillRule:"evenodd"}))};function Jt(){return(Jt=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return i.a.createElement("svg",Jt({height:"24",width:"24",fill:"none",viewBox:"0 0 24 24"},e),e.children,i.a.createElement("path",{d:"M13 17.826V6.174a1 1 0 00-1.65-.759L7.152 9.012A1.007 1.007 0 007 9H5a1 1 0 00-1 1v4a1 1 0 001 1h2c.052 0 .103-.004.153-.012l4.196 3.597a1 1 0 001.651-.76zM17.126 5.47a.75.75 0 011.061 0 8.75 8.75 0 010 12.374.75.75 0 01-1.06-1.06 7.25 7.25 0 000-10.254.75.75 0 010-1.06zm-1.939 1.657a.75.75 0 00-1.06 1.06 4.907 4.907 0 010 6.94.75.75 0 101.06 1.06 6.407 6.407 0 000-9.06z",fill:"#616161",fillRule:"evenodd"}))};function er(){return(er=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return i.a.createElement("svg",er({height:"24",width:"24",fill:"none",viewBox:"0 0 24 24"},e),e.children,i.a.createElement("path",{d:"M16.586 11l-4.293-4.293 1.414-1.414 6 6 .707.707-.707.707-6 6-1.414-1.414L16.586 13H4v-2h12.586z",fill:"#374050",fillRule:"evenodd"}))},rr="https://assets1.prezicdn.net/frontend-packages/present-viewer/";function nr(){return(nr=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return i.a.createElement("svg",nr({height:"40",width:"40",fill:"none",viewBox:"0 0 40 40"},e),e.children,i.a.createElement("path",{d:"M12 31.497V8.503c0-1.185 1.309-1.902 2.307-1.264L32.31 18.736a1.5 1.5 0 010 2.529L14.307 32.761c-.998.637-2.307-.08-2.307-1.265z",fill:"#374050"}))})).withConfig({displayName:"PreziVideoAdStartButton__Icon",componentId:"sc-1gss6dj-1"})(["display:block;path{fill:",";}"],"#62008f"),ar=e=>i.a.createElement(ir,{onClick:e.onClick},i.a.createElement(or,null));function lr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.isSkippable?"pointer":"default",H.a.LT_SMALL),vr=u.default.div.withConfig({displayName:"PreziVideoAd__SkipSeconds",componentId:"lm2tps-6"})(["align-items:center;display:flex;flex-grow:1;height:34px;justify-content:center;padding:0 5px;width:24px;"]),br=u.default.div.withConfig({displayName:"PreziVideoAd__SkipThumbnailContainer",componentId:"lm2tps-7"})(["width:80%;::after{background:",";content:'';display:block;height:100%;position:absolute;top:0;right:0;width:80%;}"],e=>e.isSkippable?"transparent":"linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4))"),yr=u.default.img.withConfig({displayName:"PreziVideoAd__SkipThumbnail",componentId:"lm2tps-8"})(["width:100%;"]),hr=u.default.progress.withConfig({displayName:"PreziVideoAd__VideoProgress",componentId:"lm2tps-9"})(["appearance:none;background-color:",";background:white;border:none;height:","px;position:absolute;bottom:32px;width:100%;-webkit-appearance:none;-moz-appearance:none;::-webkit-progress-bar{background-color:white;}&::-webkit-progress-value{background-color:",";}&::-moz-progress-bar{background-color:",";}"],It.Colors.neutral700,5,It.Colors.purple400,It.Colors.purple400),gr=u.default.div.withConfig({displayName:"PreziVideoAd__VideoControls",componentId:"lm2tps-10"})(["align-items:center;background-color:",";display:flex;height:","px;padding:5px 10px;width:100%;svg path{fill:white;}"],It.Colors.neutral700,32),wr=u.default.button.withConfig({displayName:"PreziVideoAd__VideoControlButton",componentId:"lm2tps-11"})(["align-items:center;background:transparent;border:none;display:flex;margin-right:10px;padding:0;"]),Er=Object(u.default)(wr).withConfig({displayName:"PreziVideoAd__MobileControlButton",componentId:"lm2tps-12"})(["","{position:absolute;padding:100px;top:0;right:0;bottom:0;left:0;width:100%;display:flex;align-items:center;justify-content:center;opacity:",";transition:opacity 300ms ease-in-out;svg{left:0;top:0;width:70%;height:70%;}}"],H.a.LT_SMALL,e=>e.isMobileButtonVisible?"1":"0"),Pr=u.default.div.withConfig({displayName:"PreziVideoAd__VideoDurationText",componentId:"lm2tps-13"})(["color:white;font-size:12px;.separator{margin:0 5px;}"]);function Or(e){return e.toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1})}function Ar(e){return`${Or(Math.floor(e/60))}:${Or(Math.floor(e%60))}`}function _r(e){var t=e.isMobile,r=lr(i.a.useState(null),2),n=r[0],o=r[1],l=i.a.useRef(),s=lr(i.a.useState(0),2),c=s[0],u=s[1],p=lr(i.a.useState(null),2),d=p[0],f=p[1],m=lr(i.a.useState(!1),2),v=m[0],b=m[1],y=lr(i.a.useState(!1),2),h=y[0],g=y[1],w=lr(i.a.useState(!0),2),E=w[0],P=w[1],O=lr(i.a.useState(!1),2),A=O[0],_=O[1],k=lr(i.a.useState(!1),2),S=k[0],C=k[1],T=c>5,D=i.a.useCallback(e=>{null!==e&&null===n&&o(e)},[n]),I=i.a.useCallback(()=>{P(!0)},[]),L=i.a.useCallback(()=>{P(!1),h||g(!0)},[h]),z=i.a.useCallback(()=>{null!==n&&u(n.currentTime)},[n]),N=i.a.useCallback(()=>{null!==n&&_(n.muted)},[n]),j=i.a.useCallback(()=>{null!==n&&(f(Math.floor(n.duration)),h||n.play().then(()=>g(!0)).catch(()=>{}).finally(()=>b(!0)))},[n,h]),x=i.a.useCallback(()=>{if(null!==n)return t&&(clearTimeout(l.current),!S)?(C(!0),void(l.current=window.setTimeout(()=>{C(!1)},3e3))):void(E?(n.play(),h||g(!0)):n.pause())},[n,t,S,h,E]),R=i.a.useCallback(()=>{null!==n&&(n.play(),g(!0))},[n]),V=i.a.useCallback(()=>{null!==n&&(n.muted=!n.muted)},[n]);i.a.useEffect(()=>{var e;if(n)return E||(e=window.setInterval(z,250)),()=>{window.clearInterval(e)}},[n,E,z]),i.a.useEffect(()=>()=>{clearTimeout(l.current)},[]);var M,W,F,B=!h&&v?i.a.createElement(ur,null,i.a.createElement(pr,null,i.a.createElement(ar,{onClick:R}))):null,U=Math.floor((null==n?void 0:n.currentTime)||c),G=5-U;return i.a.createElement(cr,null,i.a.createElement(dr,{ref:D,src:rr+"prezi-video-ad-compressed.mp4",preload:"metadata",autoPlay:!0,disablePictureInPicture:!0,poster:rr+"prezi-video-ad-poster.jpeg",onLoadedMetadata:j,onPause:I,onPlay:L,onVolumeChange:N}),i.a.createElement(fr,{href:"/video/",target:"_blank"},i.a.createElement(a.b,{id:"Learn more about Prezi Video"})),i.a.createElement(hr,{max:d||0,value:U}),i.a.createElement(gr,null,i.a.createElement(Er,{onClick:x,isMobileButtonVisible:S},E?i.a.createElement(Kt,null):i.a.createElement($t,null)),i.a.createElement(wr,{onClick:V},A?i.a.createElement(Xt,null):i.a.createElement(Qt,null)),d&&i.a.createElement(Pr,null,(M=U,W=Ar(d),F=Ar(M),i.a.createElement(i.a.Fragment,null,F," ",i.a.createElement("span",{className:"separator"},"/")," ",W)))),i.a.createElement(mr,{isSkippable:T,onClick:()=>{T&&e.onSkipAd()}},i.a.createElement(vr,null,T?i.a.createElement(tr,null):G),i.a.createElement(br,{isSkippable:T},i.a.createElement(yr,{src:e.thumbnailUrl}))),B)}function kr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{var t,r=kr(n.useState(!0),2),i=r[0],a=r[1];return e.enableMetadataBlock&&(t=n.createElement(St,{title:e.title,byOwner:e.byOwner,lastModifiedDateString:e.lastModifiedDateString,owner:e.owner,responsiveMode:e.responsiveMode})),n.createElement("div",{className:"viewer-common-info-overlay-foreground",style:w.D},i?n.createElement(_r,{onSkipAd:()=>{a(!1),o.set("vc-26-video-ad-seen","1"),e.onStart()},thumbnailUrl:e.thumbnail,isMobile:e.isMobile}):n.createElement(n.Fragment,null,t,n.createElement("div",{className:"viewer-common-info-overlay-centering",style:w.B},n.createElement("div",{className:"viewer-common-info-overlay-center-block"},n.createElement(w.e,{type:"filled",textColor:"white",size:"small",iconElement:Object(w.J)(),backgroundColor:It.Colors.blueLight,onClick:()=>{a(!0)},label:e.localizedMessages.presentButtonLabel})))))},Tr=e=>{var t;return e.enableMetadataBlock&&(t=n.createElement(St,{title:e.title,byOwner:e.byOwner,lastModifiedDateString:e.lastModifiedDateString,owner:e.owner,responsiveMode:e.responsiveMode})),n.createElement("div",{className:"viewer-common-info-overlay-foreground",style:w.D},t,n.createElement("div",{className:"viewer-common-info-overlay-centering",style:w.B},n.createElement("div",{className:"viewer-common-info-overlay-center-block"},n.createElement(w.e,{type:"filled",textColor:"white",size:"small",iconElement:Object(w.J)(),backgroundColor:It.Colors.blueLight,onClick:e.onStart,label:e.localizedMessages.presentButtonLabel}))))},Dr={position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1e3,cursor:"pointer"},Ir={position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",zIndex:1e4},Lr={position:"absolute",bottom:"40px",left:"0px",backgroundColor:"rgba(0, 0, 0, 0.81)",color:"white",border:"none",padding:"4px 4px 4px 10px",cursor:"pointer",fontSize:"14px"};function zr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{var e,t,r,o=Object(n.useRef)(null),a=Object(n.useRef)(null),l=Object(n.useRef)(null),s=zr(Object(n.useState)(!0),2),c=s[0],u=s[1],p=zr(Object(n.useState)(!1),2),d=p[0],f=p[1],m=zr(Object(n.useState)(!1),2),v=m[0],b=m[1],y=Object(n.useCallback)(e=>{switch(e.type){case window.google.ima.AdEvent.Type.LOADED:Y.b.logLoadedVideoAd();break;case window.google.ima.AdEvent.Type.STARTED:Y.b.logProgressVideoAd({ad_progress:"STARTED"});break;case window.google.ima.AdEvent.Type.FIRST_QUARTILE:Y.b.logProgressVideoAd({ad_progress:"FIRST_QUARTILE"});break;case window.google.ima.AdEvent.Type.MIDPOINT:Y.b.logProgressVideoAd({ad_progress:"MIDPOINT"});break;case window.google.ima.AdEvent.Type.THIRD_QUARTILE:Y.b.logProgressVideoAd({ad_progress:"THIRD_QUARTILE"});break;case window.google.ima.AdEvent.Type.SKIPPED:Y.b.logSkipVideoAd();break;case window.google.ima.AdEvent.Type.CLICK:Y.b.logClickVideoAd();break;case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:Y.b.logProgressVideoAd({ad_progress:"COMPLETE"}),E()}},[]),h=Object(n.useCallback)(()=>{e&&e.destroy(),E(),u(!1)},[]),g=Object(n.useCallback)(t=>{var r=new window.google.ima.AdsRenderingSettings;e=t.getAdsManager(l.current,r),a.current=e,e.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,h),e.addEventListener(window.google.ima.AdEvent.Type.LOADED,y),e.addEventListener(window.google.ima.AdEvent.Type.STARTED,y),e.addEventListener(window.google.ima.AdEvent.Type.FIRST_QUARTILE,y),e.addEventListener(window.google.ima.AdEvent.Type.MIDPOINT,y),e.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,y),e.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,y),e.addEventListener(window.google.ima.AdEvent.Type.CLICK,y)},[h,y]),w=Object(n.useCallback)(()=>{if(r){var t,n;r.initialize(),l.current?(t=l.current.offsetWidth,n=l.current.offsetHeight):(t=640,n=360);try{e.init(t,n,window.google.ima.ViewMode.NORMAL),e.start(),b(!0)}catch(e){E()}u(!1)}},[]),E=()=>{o.current&&(o.current.style.display="none"),b(!1)},P=Object(n.useCallback)(()=>{r=new window.google.ima.AdDisplayContainer(o.current,l.current),(t=new window.google.ima.AdsLoader(r)).addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,g),t.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,h);var e=new window.google.ima.AdsRequest;e.adTagUrl="https://pubads.g.doubleclick.net/gampad/ads?iu=/23135980403/ca-video-pub-3555085696539357-tag&description_url="+encodeURIComponent(window.location.href)+"&tfcd=0&npa=0&sz=640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=",e.linearAdSlotWidth=640,e.linearAdSlotHeight=400,e.nonLinearAdSlotWidth=640,e.nonLinearAdSlotHeight=150,t.requestAds(e)},[g,h]);return Object(n.useEffect)(()=>{Y.b.logLoadedPublicViewPageWithGoogleAd();var e=()=>{var t,r=document.getElementById("adContainer"),n=document.getElementById("hero-webgl-viewer-container");r&&n?(o.current=r,l.current=n,(t=document.createElement("script")).src="//imasdk.googleapis.com/js/sdkloader/ima3.js",t.async=!0,t.onload=()=>{P()},document.body.appendChild(t)):requestAnimationFrame(e)};e()},["adContainer","hero-webgl-viewer-container",P]),i.a.createElement("div",{id:"adContainer",style:Ir},c&&i.a.createElement("div",{id:"overlay",style:Dr,onClick:w}),v&&i.a.createElement("button",{id:"muteButton",style:Lr,onClick:()=>{d?a.current.setVolume(1):a.current.setVolume(0),f(!d)}},d?ae.a._("Unmute"):ae.a._("Mute")))};function xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rr(e,t){for(var r=0;rPromise.all([r.e(2),r.e(5)]).then(r.bind(null,687))),Yr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vr(e,t)}(a,e);var t,r,i,o=Mr(a);function a(){var e;xr(this,a);for(var t=arguments.length,r=new Array(t),n=0;nwindow.innerHeight{var e;(null===(e=this.props.appData.prezilink)||void 0===e?void 0:e.viewer_identification)?this.props.showViewerIdentification():this.props.onStart()};return t=>I(this.props.appData.canWeShowAds)?n.createElement(Cr,Ur({onStart:e,localizedMessages:this.props.localizedMessages,thumbnail:this.props.appData.previewUrl,isMobile:this.props.appData.isMobile},t)):n.createElement(Tr,Ur({onStart:e,localizedMessages:this.props.localizedMessages},t))}}},{key:"getLoadingOverlayForeground",value:function(){if(this.props.appData.isPublicView)return e=>n.createElement(Tt,Ur({loadPercentage:this.props.loadPercentage,localizedMessages:this.props.localizedMessages},e))}},{key:"getRestartOverlayForeground",value:function(){var e=this.props.appData;return function(e,t,r){return!e&&!t&&r}(e.isAuthenticated,e.isMobile,e.canWeShowAds)?()=>n.createElement(w.v,{onRestart:this.props.onRestart,onGetPreziClick:this.props.onGetPreziClick,localizedMessages:{mainCtaText:ae.a._("Don’t choose between
you and your content"),ctaButtonText:ae.a._("Get Prezi for FREE"),restartButtonLabel:ae.a._("Restart")},theme:"present"}):this.props.appData.isPublicView?e=>n.createElement(Dt,Ur({onRestart:this.props.onRestart,localizedMessages:this.props.localizedMessages},e)):void 0}},{key:"getInfoOverlayBackground",value:function(){if(this.props.appData.isPublicView)return()=>n.createElement(Lt,null)}},{key:"getPreview",value:function(){if(this.props.appData.isPublicView)return e=>n.createElement(zt,e)}},{key:"setOrientationChangeListener",value:function(){window.addEventListener("resize",e=>{var t=this.getCurrentOrientation();this.props.orientation!==t&&this.props.onOrientationChange(t)})}},{key:"render",value:function(){var e=!this.props.appData.shouldForceViewerLite,t=D(this.props.appData),r=e?n.createElement(Gt,this.props.webglViewerProps):n.createElement(n.Suspense,{fallback:null},n.createElement(Hr,Ur({},this.props.viewerLiteProps,{ref:this.props.viewerLiteComponentRef,dataLookup:"public-lite-viewer"}))),i=n.createElement("div",{style:ve},n.createElement("div",{style:be},r)),o={prezilink:this.props.appData.prezilink,visible:this.props.isViewerIdentificationModalVisible,thumbnailUrl:this.props.appData.previewUrl,viewerName:this.props.appData.viewerName,viewerEmail:this.props.appData.viewerEmail},a=e?"next-webgl-viewer-container":"desktop-viewer-lite-page",l=this.props.shouldInfoOverlayBeFullscreen?Ht:w.m;return n.createElement("div",{className:a},n.createElement(me,null),i,this.props.appData.showGoogleAdsOverlay?n.createElement(jr,null):n.createElement(n.Fragment,null),n.createElement(Pt,{visibleModalDialog:this.props.visibleModalDialog,localizedMessages:this.props.localizedMessages,viewerIdentificationData:o,startPresentationAfterIdentificationCallback:this.props.onStart}),n.createElement(fe.a,{transitionName:"webgl-viwer-info-overlay-transition",transitionAppearTimeout:1,transitionEnterTimeout:1,transitionLeaveTimeout:1},this.props.infoLayerVisible?n.createElement(l,{customStartForeground:this.getStartOverlayForeground(),customLoadingForeground:this.getLoadingOverlayForeground(),customRestartForeground:this.getRestartOverlayForeground(),customGradientBackground:this.getInfoOverlayBackground(),customPreview:this.getPreview(),byOwner:this.props.appData.byOwner,fallbackPreviewUrl:this.props.appData.fallbackPreviewUrl,lastModifiedDateString:this.props.appData.lastModifiedDateString,loadPercentage:this.props.loadPercentage,localizedMessages:this.props.localizedMessages,mode:this.props.mode,owner:this.props.appData.owner,previewState:this.props.previewState,previewUrl:this.props.appData.previewUrl,title:this.props.appData.title,onStart:()=>{var e;(null===(e=this.props.appData.prezilink)||void 0===e?void 0:e.viewer_identification)?this.props.showViewerIdentification():this.props.onStart()},onRestart:this.props.onRestart,onViewOnPreziDotComClick:t?this.props.onViewOnPreziDotComClick:void 0,onLearnMoreAboutPreziClick:t?this.props.onLearnMoreAboutPreziClick:void 0}):null))}}])&&Rr(t.prototype,r),i&&Rr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent);function Kr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qr(e){for(var t=1;te,e=>({dispatchStart:()=>{e(d())},onRestart:()=>{e({type:p.RESTART_PRESENTATION})},showViewerIdentification:()=>{e(m(g.VIEWER_IDENTIFICATION))},onOrientationChange:t=>{e(function(e){return{type:p.ORIENTATION_CHANGED,orientation:e}}(t))},onViewOnPreziDotComClick:()=>{e(y())},onLearnMoreAboutPreziClick:()=>{e(h())},onGetPreziClick:()=>{P("vc-abtest-video-priming-after-end-screen-ad--prezi-video-redirect")?e({type:p.OPEN_PREZI_VIDEO_PRODUCT_PAGE}):P("vc-abtest-video-priming-after-end-screen-ad--home-page-redirect")?e(h()):e({type:p.OPEN_PREZI_SIGNUP})}}),(e,t,r)=>qr(qr(qr(qr({},e),t),r),{},{onStart:()=>{e.appData.shouldForceViewerLite||C(r.isWebgl2Required)||T(),t.dispatchStart(),e.webglViewerLoader&&e.webglViewerLoader.onClickPresent()}}))(Yr),Xr=u.default.div.withConfig({displayName:"Styles__PublicViewerBackground",componentId:"pgfw8d-0"})(["z-index:-1;position:fixed;left:-30px;top:-30px;height:110vh;width:110vw;filter:blur(10px);background-size:cover;background-repeat:no-repeat;background-position:center center;background-image:linear-gradient(45deg,rgba(21,34,53,0.7),rgba(21,34,53,0.71) 100%),url(",");"],e=>e.backgroundUrl),Jr=u.default.div.withConfig({displayName:"Styles__PresentViewerContainerDiv",componentId:"pgfw8d-1"})(["position:relative;padding-top:calc(56.25% + 34px);overflow:hidden;"]),Qr=u.default.section.withConfig({displayName:"Styles__StyledPublicViewerSection",componentId:"pgfw8d-2"})(["position:relative;overflow-x:hidden;overflow-y:hidden;"]),en=e=>{var t="col-md-10 col-md-offset-1";return e.teaserContent&&(t="col-md-8 col-md-offset-2"),n.createElement(Qr,null,n.createElement("div",{className:"container"},n.createElement("div",{className:"row"},n.createElement("div",{className:`col-xs-12 ${t} col-lg-8 col-lg-offset-2`},n.createElement(Jr,{id:"hero-webgl-viewer-container"},e.children)))),n.createElement(Xr,{backgroundUrl:e.previewUrl}),e.teaserContent)},tn=r(643);function rn(e,t){for(var r=0;r{var t=e.width,r=e.visiblePixels,i=e.id,o="slideInFromRight-"+i;return n.createElement("style",{},`\n @keyframes ${o} {\n 0% {\n transform: translateX(${r}px);\n }\n 100% {\n transform: translateX(0px);\n }\n }\n\n #${i} {\n animation: 500ms ease-in 0s 1 ${o};\n right: -${t-r}px;\n transition: right 0.2s ease;\n width: ${t}px;\n }\n `)},mn=e=>{var t=e.id,r=e.width,i=e.visiblePixels,o=e.offset;return n.createElement("style",{},`\n #${t}:hover{\n right: -${r-i-o}px;\n }\n `)},vn={position:"absolute",bottom:"30px",paddingTop:"18px",paddingLeft:"18px",paddingRight:"30px",height:"auto",backgroundColor:It.Colors.neutral700+"E6",borderColor:dn,border:"solid #"+dn,borderWidth:"1px 0px 1px 1px",borderStyle:"solid",borderRadius:"3px 0px 0px 3px"},bn={position:"absolute",overflowX:"hidden",overflowY:"hidden"},yn={pointerEvents:"auto"};function hn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gn(e){for(var t=1;te*t;function Pn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function On(e){for(var t=1;t({onCardClicked:t=>{e(b(t))}}))(e=>{var t=On(On({},vn),{},{width:e.cardWidth+30+"px",left:"0px"}),r={width:e.cardWidth-30+"px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"};return n.createElement("div",{style:t,id:e.id,onClick:t=>{e.onCardClicked&&e.onCardClicked(e.targetPreziOid)}},n.createElement("p",{id:"up-next-text",style:On(On({},r),{},{color:It.Colors.blueLight}),className:"bold caps text-blue btm-0"},ae.a._("Up next")),n.createElement("p",{id:"up-next-title",style:r,className:"h4 text-white semibold btm-0"},e.title),n.createElement("p",{id:"up-next-subtitle",style:r,className:"h4 text-white regular btm-18"},e.subTitle))}),xn=Object(c.b)(null,e=>({onThumbnailClicked:t=>{e(b(t))}}))(e=>{var t=e.id,r=e.thumbnail,i=e.path,o=e.showTeaserContent,a=e.targetPreziOid;if(!o)return null;var l=gn(gn({},bn),{},{width:e.imageWidth+"px",height:"100%",right:"0px"});return n.createElement("div",{id:t,style:{height:"100%",position:"absolute",bottom:"0px",pointerEvents:"none"}},n.createElement("a",{style:yn,href:i},n.createElement("img",{id:"teaser-thumbnail",style:l,src:r,onClick:t=>{e.onThumbnailClicked&&e.onThumbnailClicked(a)}}),e.children))}),Rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dn(e,t)}(a,e);var t,r,i,o=In(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={showContentDelay:t.props.showContentDelay||3e3,showTeaserContent:!1,relatedPrezi:{path:t.props.path,thumbnail:t.props.thumbnail,subTitle:t.props.subTitle,title:t.props.title}},t}return t=a,(r=[{key:"componentDidMount",value:function(){this.props.forceDefaultContent?setTimeout(()=>{this.setState({showTeaserContent:!0})},this.state.showContentDelay):((e,t,r,n,i,o)=>{var a,l=0,s=window.setInterval(()=>l+=100,100),c=fetch(e).then(e=>{if(204===e.status)throw Error("No prezis by author");return e.json()}).then(t=>{if(-1!==e.indexOf("presentation")){if(1===t.length&&t[0].oid===o)return Promise.reject("No other prezis found for user");var r=t[0].oid!==o?t[0]:t[1];return Promise.resolve({path:r.absolute_landing_url,subTitle:"",thumbnail:r.preview_urls.larger_overview,title:r.title})}return Promise.resolve(t)}),u=new Promise((e,t)=>{a=setTimeout(()=>{t(`Related fetch timed out after ${n} msec`)},n)});Promise.race([c,u]).then(e=>{if(clearTimeout(a),l>n)throw Error("Timed out");return new Promise((t,r)=>{i(e.thumbnail,()=>t(e),e=>r(e),e.title)})}).then(e=>{setTimeout(()=>{t(e)},n-l),clearInterval(s)}).catch(e=>{clearTimeout(a),setTimeout(()=>{r(e)},n-l),clearInterval(s)})})(`/api/v4/presentation/?owner_id=${this.props.ownerId}&privacy=public&limit=3`,e=>{this.props.ownerName&&(e.subTitle=`${this.props.ownerName.firstName} ${this.props.ownerName.lastName}`),this.setState({relatedPrezi:kn(kn({},this.state.relatedPrezi),e),showTeaserContent:!0})},e=>{this.setState({showTeaserContent:!0})},this.state.showContentDelay,se,this.props.preziOid)}},{key:"render",value:function(){var e=this.state.showTeaserContent,t=this.props.responsiveMode;if(t===H.b.EXTRA_SMALL||t===H.b.SMALL)return null;var r,i=this.state.relatedPrezi,o=i.thumbnail,a=i.path,l=i.title,s=i.subTitle,c=(r=a.split("/")).length<3?"":r[2],u=window.innerWidth,p=455,d=.085,f=.35;t===H.b.MEDIUM&&(p=471,d=.15,f=.26);var m=((e,t,r)=>770+En(e,t)*r)(u,d,f),v=((e,t,r)=>En(e,t)*(1+r))(u,d,f);return n.createElement("div",null,n.createElement(mn,{id:"teaser-content-container",width:m,visiblePixels:v,offset:30}),n.createElement(fn,{id:"teaser-content-container",width:m,visiblePixels:v}),n.createElement(xn,{thumbnail:o,path:a,imageWidth:770,imageHeight:p,showTeaserContent:e,targetPreziOid:c,id:"teaser-content-container"},n.createElement(jn,{targetPreziOid:c,title:l,subTitle:s,cardWidth:v,id:"teaser-info"})))}}])&&Cn(t.prototype,r),i&&Cn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.Component),Vn=Object(c.b)(e=>({ownerId:null!==e.appData.clientData?e.appData.clientData.ownerId:void 0,ownerName:{firstName:e.appData.owner.firstName,lastName:e.appData.owner.lastName}}))(Rn),Mn=(Nn=Vn,function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&on(e,t)}(a,e);var t,r,i,o=an(a);function a(){var e;nn(this,a);for(var t=arguments.length,r=new Array(t),i=0;i{var t=Object(tn.a)(window.innerWidth);e.setState({responsiveMode:t})}),pn(sn(e),"UNSAFE_componentWillMount",()=>{window.addEventListener("resize",e.updateResponsiveMode),e.updateResponsiveMode()}),pn(sn(e),"render",()=>n.createElement(Nn,un({},e.props,{responsiveMode:e.state.responsiveMode}))),e}return t=a,r&&rn(t.prototype,r),i&&rn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}(n.Component));function Wn(e,t){for(var r=0;rPrezi.com"),{webglViewerMessages:{createdBy:ae.a._("By {0}",{0:o.authorName}),pechaKuchaGo:ae.a._("Pecha Kucha go!"),webglContextLost:ae.a._("WebGL context lost. You will need to reload the page."),loadingContent:ae.a._("Loading content…"),present:ae.a._("Present"),viewerIdentificationTranslations:{subtitle:ae.a._("{0} is tracking this presentation with <1>Prezi Analytics and would like to know who you are.",{0:o.sharerFirstName}),title:ae.a._("View presentation by {0} {1}",{0:o.sharerFirstName,1:o.sharerLastName}),button:ae.a._("Accept and view presentation"),emailPlaceholder:ae.a._("Email address"),namePlaceholder:ae.a._("Name"),explanation:ae.a._("Your contact information will be sent to {0} and won't be used for anything else. Clicking 'Accept and view presentation' means you agreed to our <1>Terms of Use and <2>Privacy Policy.",{0:o.sharerFirstName})},autoplayStart:ae.a._("Autoplay with %(interval)s sec delay"),presenterView:ae.a._("Presenter view"),modifiedAt:ae.a._("Last modified {0}",{0:o.lastModifiedDate}),freeDragMessage:ae.a._("Click and drag Prezi to explore"),autoplayStop:ae.a._("Autoplay stop"),viewOnPreziDotComLabel:a},editLabel:ae.a._("Edit"),presentButtonLabel:ae.a._("Present"),loadingLabel:ae.a._("Loading…"),commentLabel:ae.a._("Comment"),restartButtonLabel:ae.a._("Restart"),viewOnPreziDotCom:a,learnMoreAboutPrezi:ae.a._("Learn more about Prezi")});var s={appData:e,enabledAnalyticsTracking:!1,infoLayerVisible:!0,isFullscreen:!1,isFullScreenOverlayVisible:!1,isViewerIdentificationModalVisible:!1,loadingFinished:!1,loadPercentage:0,mode:w.c.START,orientation:pe.LANDSCAPE,previewState:w.q.NONE,viewerLiteComponentRef:n.createRef(),visibleModalDialog:g.NO_DIALOG,webglViewerLoader:null};return t.state=s,t.store=t.initStore(s),t.store.dispatch({type:p.LOADED_PUBLIC_VIEWPAGE}),e.isPublicView&&!I(e.canWeShowAds)&&(e.shouldForceViewerLite||C(e.isWebgl2Required))&&e.shouldAutoplay&&!(null===(r=e.prezilink)||void 0===r?void 0:r.viewer_identification)&&t.store.dispatch(d()),!I(e.canWeShowAds)&&e.forceAutoplay&&window.setTimeout(()=>{t.store.dispatch(d())},1e3),se(e.previewUrl,()=>t.store.dispatch({type:p.PREVIEW_LOAD_FINISHED}),()=>t.store.dispatch({type:p.PREVIEW_LOAD_FAILED}),"nextWebglViewerPreviewImage"),t.preloadTeaserContent(e.teaseContent),t.webglViewerProps={onWebglViewerLoaderCreated:r=>{t.store.dispatch(function(e){return{type:p.SET_WEBGL_VIEWER_LOADER,webglViewerLoader:e}}(r)),!e.shouldAutoplay||e.prezilink&&e.prezilink.viewer_identification||r.onClickPresent()},webglViewerParams:t.createWebglViewerParams(),shouldAutoplay:P("vc-promote-video-ad")&&e.shouldAutoplay||!1,dataLookup:e.isPublicView?"public-webgl-viewer":""},t.viewerLiteProps=t.createViewerLiteParams(),t.shouldInfoOverlayBeFullscreen=!!e.shouldInfoOverlayBeFullscreen,t.store.subscribe(()=>t.setState(t.store.getState())),t}return t=b,(r=[{key:"render",value:function(){return this.props.isPublicView?this.renderPublicViewer():this.renderViewer()}},{key:"componentDidMount",value:function(){this.props.isPublicView&&(Object(l.forceCheck)(),this.startFakeProgress())}},{key:"renderViewer",value:function(){return n.createElement(a.a,{i18n:dt()},n.createElement(c.a,{store:this.store},n.createElement(Zr,{webglViewerProps:this.webglViewerProps,viewerLiteProps:this.viewerLiteProps,localizedMessages:this.localizedMessages,shouldInfoOverlayBeFullscreen:this.shouldInfoOverlayBeFullscreen,isWebgl2Required:this.state.appData.isWebgl2Required})))}},{key:"renderPublicViewer",value:function(){var e=this.props,t=null;return e.teaseContent&&(t=n.createElement(Mn,Yn({},e.teaseContent,{forceDefaultContent:e.forceDefaultTeaseContent,preziOid:e.oid,showContentDelay:3e3,responsiveMode:H.b.DEFAULT}))),n.createElement(a.a,{i18n:dt()},n.createElement(u.ThemeProvider,{theme:w.d},n.createElement(c.a,{store:this.store},n.createElement("div",{"data-lookup":"present-viewer"},n.createElement(en,{previewUrl:e.previewUrl,teaserContent:t},n.createElement(Zr,{webglViewerProps:this.webglViewerProps,viewerLiteProps:this.viewerLiteProps,localizedMessages:this.localizedMessages,shouldInfoOverlayBeFullscreen:this.shouldInfoOverlayBeFullscreen,isWebgl2Required:this.state.appData.isWebgl2Required}))))))}},{key:"initStore",value:function(e){var t,r=oe.getViewerMiddleware();return Object(s.createStore)((t=e,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case p.SET_WEBGL_VIEWER_LOADER:return N(N({},e),{},{webglViewerLoader:r.webglViewerLoader});case p.START_PRESENTATION:return e.loadingFinished?N(N({},e),{},{infoLayerVisible:!1,enabledAnalyticsTracking:e.visibleModalDialog===g.NO_DIALOG}):N(N({},e),{},{mode:w.c.LOADING,infoLayerVisible:!0});case p.LOAD_PROGRESS:return N(N({},e),{},{loadPercentage:Math.max(e.loadPercentage,r.percentage)});case p.PREVIEW_LOAD_STARTED:return N(N({},e),{},{previewState:w.q.LOADING});case p.PREVIEW_LOAD_FINISHED:return N(N({},e),{},{previewState:w.q.SHOW});case p.PREVIEW_LOAD_FAILED:return N(N({},e),{},{previewState:w.q.FALLBACK});case p.SET_INFOLAYER_MODE:return N(N({},e),{},{mode:r.mode});case p.LOADING_FINISHED:var n=e.mode===w.c.START&&!e.isViewerIdentificationModalVisible;return N(N({},e),{},{loadingFinished:!0,infoLayerVisible:n,enabledAnalyticsTracking:!n&&e.visibleModalDialog===g.NO_DIALOG});case p.ENDSCREEN_VISIBILITY:return r.visible?(P("vc-abtest-video-priming-after-end-screen-ad")&&L(),N(N({},e),{},{infoLayerVisible:!0,mode:w.c.RESTART})):e.loadingFinished?N(N({},e),{},{infoLayerVisible:!1}):e;case p.RESTART_PRESENTATION:return e.webglViewerLoader?e.webglViewerLoader.restart():null!=e.viewerLiteComponentRef&&null!=e.viewerLiteComponentRef.current&&e.viewerLiteComponentRef.current.restart(),N({},e);case p.FULLSCREEN_STATUS_CHANGED:return N(N({},e),{},{isFullscreen:r.isFullscreen});case p.ORIENTATION_CHANGED:return N(N({},e),{},{orientation:r.orientation});case p.SHOW_MODAL:return N(N({},e),{},{visibleModalDialog:r.modal,enabledAnalyticsTracking:!1});case p.CLOSE_MODAL:return N(N({},e),{},{visibleModalDialog:g.NO_DIALOG,enabledAnalyticsTracking:!e.infoLayerVisible,isViewerIdentificationModalVisible:!1});case p.CLOSE_FULLSCREEN_OVERLAY:return N(N({},e),{},{isFullScreenOverlayVisible:!1});case p.SHOW_VIEWER_IDENTIFICATION_MODAL:return N(N({},e),{},{isViewerIdentificationModalVisible:!0,infoLayerVisible:!1});case p.VIEW_ON_PREZI_DOT_COM:return window.open(`${window.location.origin}/p/${e.appData.oid}/`),e;case p.LEARN_MORE_ABOUT_PREZI:return window.open(window.location.origin),e;case p.OPEN_PREZI_SIGNUP:return window.open(window.location.origin+"/signup/"),e;case p.OPEN_PREZI_VIDEO_PRODUCT_PAGE:return window.open(window.location.origin+"/video/"),e;default:return e}}),e,Object(s.applyMiddleware)(r))}},{key:"createWebglViewerParams",value:function(){var e=this.store.getState().appData,t=e.privacy,r=e.schemaVersion,n=e.oid,i=e.title,o=e.prezilink,a=e.previewUrl,l={privacy:t,schemaVersion:r,oid:n,title:i,prezilink:o,viewerName:e.viewerName,viewerEmail:e.viewerEmail,owner:`${e.owner.firstName} ${e.owner.lastName}`,description:"",modifiedAt:"",thumbnailUrl:a},s=e.clientData;if(!s)return null;var c=this.isProduction(),u=!e.isAuthenticated,p={autoFallback:!0,debugLogInConsole:!!e.debugLogInConsole,embedMode:e.embedMode,environment:c?"production":"local",explorable:!0,fullscreenElement:b.FULLSCREEN_ELEMENT_SELECTOR,guestUserVisit:u,isProduction:c,localizedMessages:this.localizedMessages.webglViewerMessages,logApiEndpoint:c?b.LOG_API_ENDPOINT:void 0,pageStartTime:e.pageStartTime,player_api:!1,sentry_dsn:e.sentryDsn,show_controls:!0,showWatermark:e.showWatermark,logoType:e.logoType,storageToken:e.storageToken,useMipmapService:e.useMipmapService||!1,useYoutubeProxy:!0,viewerRights:e.viewerRights,isWebgl2Required:e.isWebgl2Required,enableMobileGestures:P("js-enable-mobile-gestures")};return e.viewerJsPrefix&&(p.viewerJsPrefix=e.viewerJsPrefix),e.webglViewerVersion&&(p.webglViewerVersion=e.webglViewerVersion),{appContainerId:b.WEBGL_VIEWER_APP_CONTAINER_ID,appData:p,clientData:s,handleEndscreenRequest:e=>this.handleEndscreenRequest(e),handleFallback:()=>this.handleFallback(),handleFullscreenStatusChange:e=>this.handleFullscreenStatusChange(e),handleNoWebAssemblyIfFallbackDisabled:()=>this.handleNoWebAssemblyIfFallbackDisabled(),handleNoWebglIfFallbackDisabled:()=>this.handleNoWebglIfFallbackDisabled(),handlePathPositionChange:e=>this.handlePathPositionChange(e),handlePresenterView:()=>this.handlePresenterView(),handleXmlLoad:e=>this.handleXmlLoad(e),preziData:l}}},{key:"handleXmlLoad",value:function(e){var t,r=this.store.getState(),n=(t=Date.now(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:7&r|8).toString(16)})),i={prezi_oid:r.appData.oid};r.appData.prezilink&&(V.init(r.appData.prezilink.link_id,n,e),V.disableTrackingWhileOverlayVisible(!0,!1),i.prezi_link=r.appData.prezilink.link_id),r.appData.schemaVersion===ue.pitch&&fetch("/api/v2/assets/presentation-viewed/",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json; charset=utf-8","X-csrftoken":o.get("csrftoken")},body:JSON.stringify(i)}).catch(e=>!0),this.store.dispatch(f(100)),this.store.dispatch({type:p.LOADING_FINISHED})}},{key:"handlePathPositionChange",value:function(e){setTimeout(()=>{var t=this.store.getState();t.appData.prezilink&&t.enabledAnalyticsTracking&&V.logStepChange(e.step)},0)}},{key:"handleViewerLiteNavigation",value:function(e){this.handlePathPositionChange({step:e,action:0})}},{key:"createViewerLiteParams",value:function(){var e=this.store.getState().appData,t=this.isProduction()?b.LOG_API_ENDPOINT:"";return ee.initLogger(e.loggingDataForViewerLite,t),{embed:{enabled:e.embedMode,fullscreenButton:e.embedMode&&e.isMobile},handleEndscreenRequest:e=>this.handleEndscreenRequest(e),websiteLogger:ee,nextButtonGlow:!1,nextDisabled:!1,oid:e.oid,onNavigation:e=>this.handleViewerLiteNavigation(e),onXmlLoad:e=>this.handleXmlLoad(e),pageLoaded:null!=e.pageStartTime?e.pageStartTime:Date.now(),isMobile:e.isMobile,prevDisabled:!1,prezilinkId:null!=e.prezilink?e.prezilink.link_id:null,preziSchema:"0"===e.schemaVersion?w.r.CLASSIC:w.r.NEXT,storyboardAPIVersion:e.storyboardAPIVersion,onViewOnPreziDotComClick:D(e)?()=>this.handleViewOnPreziDotComClick():void 0}}},{key:"handleFullscreenStatusChange",value:function(e){this.store.dispatch(function(e){return{type:p.FULLSCREEN_STATUS_CHANGED,isFullscreen:e}}(e))}},{key:"handlePresenterView",value:function(){var e=this.store.getState();e.appData.viewerRights&&e.appData.viewerRights.hasPresenterViewFeature?this.store.dispatch(m(g.PRESENTER_VIEW_DESKTOP_DOWNLOAD)):this.store.dispatch(m(g.PRESENTER_VIEW_UPGRADE))}},{key:"handleFallback",value:function(){this.store.getState().appData.isPublicView||T()}},{key:"handleNoWebglIfFallbackDisabled",value:function(){}},{key:"handleNoWebAssemblyIfFallbackDisabled",value:function(){var e;this.store.dispatch((e=!!this.store.getState().appData.isPublicView,{type:p.WEBASSEMBLY_CHECK_FAILED,isPublic:e}))}},{key:"handleEndscreenRequest",value:function(e){setTimeout(()=>{var t;this.store.dispatch((t=e,{type:p.ENDSCREEN_VISIBILITY,visible:t}))},0)}},{key:"handleViewOnPreziDotComClick",value:function(){this.store.dispatch(y())}},{key:"startFakeProgress",value:function(){var e=0;setInterval(()=>{e<=80&&(e+=10),this.store.dispatch(f(e))},2e3)}},{key:"isProduction",value:function(){return"prezi.com"===window.location.hostname}},{key:"preloadTeaserContent",value:function(e){e&&se(e.thumbnail,()=>{},e=>e,"teaser-content-thumbnail")}}])&&Wn(t.prototype,r),i&&Wn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),b}(n.Component);Kn(qn,"FULLSCREEN_ELEMENT_SELECTOR","next-webgl-viewer-container"),Kn(qn,"LOG_API_ENDPOINT","//log.prezi.com/log/json"),Kn(qn,"WEBGL_VIEWER_APP_CONTAINER_ID","webgl-viewer-app-container")}}]);