PageSourceSearch

https://ite-connect.com/chunk-P4O4Q6MD.js

js ite-connect.com collected 2026-10-01 16:14:52 UTC 3,571 bytes, 2 lines download raw bytes

1import{a as I}from"./chunk-GDXYVKBC.js";import{h as f}from"./chunk-QBUHZOWM.js";var i=(function(n){return n[n.None=0]="None",n[n.Image=1]="Image",n[n.Pdf=2]="Pdf",n[n.Word=3]="Word",n[n.Excel=4]="Excel",n[n.Csv=5]="Csv",n[n.Text=6]="Text",n[n.PowerPoint=7]="PowerPoint",n})(i||{});var O=(()=>{class n{static{this.MAX_DOCUMENT_SIZE=26214400}static{this.MAX_MESSAGE_ATTACHMENT_SIZE=10485760}static{this.MAX_VIDEO_SIZE=5368709120}static{this.VALID_PDF_EXTENSIONS=[".pdf"]}static{this.VALID_WORD_EXTENSIONS=[".doc",".docx"]}static{this.VALID_IMAGE_EXTENSIONS=[".jpg",".jpeg",".png",".jfif",".gif",".tiff",".ico"]}static{this.VALID_TEXT_EXTENSIONS=[".txt",".rtf"]}static{this.VALID_POWERPOINT_EXTENSIONS=[".ppt",".pptx"]}static{this.VALID_EXCEL_EXTENSIONS=[".xls",".xlsx",".csv"]}static convertFileToBase64(t){return new Promise((r,e)=>{let s=new FileReader;s.readAsDataURL(t),s.onload=()=>r(s.result),s.onerror=c=>e(c)})}static convertVideoToBase64(t){var r=t.type,e=t.name,s=t.size;return new Promise(c=>f(null,null,function*(){let l=new FileReader;l.readAsDataURL(t),l.onloadend=o=>f(null,null,function*(){let _="data:"+r+";name="+e+";base64,",u=o.target.result.split(",")[1],d=atob(u),a=btoa(d),E=_+a;c(E)})}))}static isOfTypeDocument(t){return t.match(I.DOCUMENT_MIMETYPE_PDF)!=null}static truncateWord(t,r){return t.length>r?t.substr(0,r):t}static createCSV(t,r,e){let s=window.URL||window.webkitURL,c=s.createObjectURL||webkitURL.createObjectURL,l=s.revokeObjectURL||webkitURL.revokeObjectURL,o=t.createElement("a"),u=r.join(`\r
2`),d=new Uint8Array([239,187,191]),a;if(window.flutter_inappwebview){let E=new Uint8Array([...d,...new TextEncoder().encode(u)]),S=btoa(String.fromCharCode(...E));a=`data:text/csv;name=${e};base64,${S}`}else{let E=new Blob([d,u],{type:"text/csv;charset=utf-8"});a=c(E)}t.setAttribute(o,"href",a),t.setAttribute(o,"download",e),o.click(),window.flutter_inappwebview||l(a),o.remove()}static getFileNameWithoutExtension(t){return t==null?null:t.split(".").slice(0,-1).join(".")}static isAllowedAttachmentType(t){return t.match(I.FILE_MIMETYPE)!=null}static hasValidExtensionAttachment(t){if(t==null)return!1;let r=t.toLowerCase();for(let e of this.VALID_PDF_EXTENSIONS)if(r.endsWith(e))return!0;for(let e of this.VALID_WORD_EXTENSIONS)if(r.endsWith(e))return!0;for(let e of this.VALID_TEXT_EXTENSIONS)if(r.endsWith(e))return!0;for(let e of this.VALID_IMAGE_EXTENSIONS)if(r.endsWith(e))return!0;for(let e of this.VALID_POWERPOINT_EXTENSIONS)if(r.endsWith(e))return!0;for(let e of this.VALID_EXCEL_EXTENSIONS)if(r.endsWith(e))return!0;return!1}static getFileExtension(t){return t==null?null:"."+t.split(".").slice(-1)}static getFileType(t){if(t==null)return null;let r=this.getFileExtension(t);switch(r){case this.VALID_PDF_EXTENSIONS.find(e=>e===r):return i.Pdf;case this.VALID_WORD_EXTENSIONS.find(e=>e===r):return i.Word;case this.VALID_TEXT_EXTENSIONS.find(e=>e===r):return i.Text;case this.VALID_IMAGE_EXTENSIONS.find(e=>e===r):return i.Image;case this.VALID_POWERPOINT_EXTENSIONS.find(e=>e===r):return i.PowerPoint;case this.VALID_EXCEL_EXTENSIONS.find(e=>e===r):return i.Excel;default:return i.None}}static base64ToBytes(t){try{let r=atob(t);return Uint8Array.from(r,e=>e.codePointAt(0))}catch(r){return null}}static decodeBase64(t){try{return new TextDecoder().decode(t)}catch(r){return null}}static parseUserDataQueryParam(t){try{if(t!=null&&t instanceof Array&&(t=t[0]),t==null||t.trim().length==0)return null;let r=n.base64ToBytes(t),e=n.decodeBase64(r);return JSON.parse(e)}catch(r){return null}}}return n})();export{i as a,O as b};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.