"use strict";(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[5935,8953],{25935:(t,e,o)=>{o.r(e),o.d(e,{Actions:()=>r});var s=o(26616),a=o(91367),i=o(75781),_=o(72527),n=o(88953);class r extends s.e{constructor(){super(...arguments),this.doctype="none"}_raw_default_frame_tree(){return{type:"pdfjs_canvas"}}_init2(){this.is_public||this.reload("")}reload(t){const e=(new Date).valueOf();let o;for(o in n.EDITOR_SPEC)this.set_reload(o,e)}print(){this.print_pdf()}print_pdf(){(0,a.kX)({src:(0,i.v)(this.project_id,this.path)})}zoom_page_width(t){this.setState({zoom_page_width:t})}zoom_page_height(t){this.setState({zoom_page_height:t})}scroll_pdf_into_view(t,e,o){this.setState({scroll_pdf_into_view:new _.ScrollIntoViewRecord({page:t,y:e,id:o})})}}},88953:(t,e,o)=>{o.r(e),o.d(e,{EDITOR_SPEC:()=>c,Editor:()=>d});var s=o(80643),a=o(86844),i=o(96824),_=o(81809),n=o(26769);const r=(0,s.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:r,style:{background:"#525659"},renderer:"canvas"}};n.IS_IPAD||n.IS_IOS||(c.pdf_embed={short:"PDF (native)",name:"PDF - Native",icon:"file-pdf",buttons:(0,s.set)(["reload","print","download"]),component:_.X});const d=(0,a.J)({format_bar:!1,editor_spec:c,display_name:"PDFEditor"})}}]);