"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(31353),s=e(46180),c=(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])},n(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 c(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 s.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.e)},46180:(t,o,e)=>{e.r(o),e.d(o,{EDITOR_SPEC:()=>c,Editor:()=>_});var n=e(26131),r=e(96887),i=e(32453),p=e(1106),a=e(19495),s=(0,n.set)(["reload","print","download","decrease_font_size","increase_font_size","zoom_page_width","zoom_page_height","set_zoom"]),c={pdfjs_canvas:{short:"PDF.js",name:"PDF.js",icon:"file-pdf",component:i.a,buttons:s,style:{background:"#525659"},renderer:"canvas"}};a.IS_IPAD||a.IS_IOS||(c.pdf_embed={short:"PDF (native)",name:"PDF - Native",icon:"file-pdf",buttons:(0,n.set)(["reload","print","download"]),component:p.X});var _=(0,r.J)({format_bar:!1,editor_spec:c,display_name:"PDFEditor"})}}]);