"use strict";(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[5303,6180],{5303:(t,o,e)=>{e.r(o),e.d(o,{Actions:()=>_});var n,r=e(55696),i=e(55637),p=e(18737),a=e(43638),c=e(46180),s=(n=function(t,o){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])})(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}n(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),_=function(t){function o(){var o=null!==t&&t.apply(this,arguments)||this;return o.doctype="none",o}return s(o,t),o.prototype._raw_default_frame_tree=function(){return{type:"pdfjs_canvas"}},o.prototype._init2=function(){this.is_public||this.reload("")},o.prototype.reload=function(t){var o,e=(new Date).valueOf();for(o in c.EDITOR_SPEC)this.set_reload(o,e)},o.prototype.print=function(){this.print_pdf()},o.prototype.print_pdf=function(){(0,i.kX)({src:(0,p.v)(this.project_id,this.path)})},o.prototype.zoom_page_width=function(t){this.setState({zoom_page_width:t})},o.prototype.zoom_page_height=function(t){this.setState({zoom_page_height:t})},o.prototype.scroll_pdf_into_view=function(t,o,e){this.setState({scroll_pdf_into_view:new a.ScrollIntoViewRecord({page:t,y:o,id:e})})},o}(r.Actions)},46180:(t,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Editor=o.EDITOR_SPEC=void 0;var n=e(26131),r=e(73317),i=e(32453),p=e(1106),a=e(19495),c=(0,n.set)(["reload","print","download","decrease_font_size","increase_font_size","zoom_page_width","zoom_page_height","set_zoom"]);o.EDITOR_SPEC={pdfjs_canvas:{short:"PDF.js",name:"PDF.js",icon:"file-pdf",component:i.PDFJS,buttons:c,style:{background:"#525659"},renderer:"canvas"}},a.IS_IPAD||a.IS_IOS||(o.EDITOR_SPEC.pdf_embed={short:"PDF (native)",name:"PDF - Native",icon:"file-pdf",buttons:(0,n.set)(["reload","print","download"]),component:p.PDFEmbed}),o.Editor=(0,r.createEditor)({format_bar:!1,editor_spec:o.EDITOR_SPEC,display_name:"PDFEditor"})}}]);