PageSourceSearch

https://login.commonsku.com/dist/react/FileExplorer.e90bb2cf.chunk.js

js commonsku.com collected 2026-10-02 03:14:00 UTC 2,909 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[4748],{40239(e,t,i){i.r(t),i.d(t,{default:()=>p});var n=i(22224),a=i.n(n),s=i(41594),l=i.n(s),r=(i(11028),i(22078)),d=i(63988);const o={headers:{minHeight:195},container:{margin:"0 auto",maxWidth:1300,minWidth:375},viewer:{display:"flex",justifyContent:"space-evenly",flexWrap:"wrap",clear:"both"},downloadAll:{float:"right",margin:5}},c=e=>{const t=document.createElement("a");t.href=(0,r.Bd)(e,e.tenant_id),t.dispatchEvent(new MouseEvent("click"))};class m extends l().Component{render(){const{file:e,size:t="medium"}=this.props;return(0,d.jsx)("div",{"data-test-name":"FilePreview.render",style:{display:"inline-block",padding:15,textAlign:"center",cursor:"pointer"},className:"file-viewer",children:(0,d.jsxs)("div",{onClick:()=>{c(e)},children:[(0,d.jsx)("div",{children:e.file_display_name}),(0,d.jsx)("div",{style:{width:256,height:256,margin:3,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundImage:`url(${e.is_image?(0,r.AE)(e,t):"/images/404.png"})`,backgroundSize:"contain"}}),(0,d.jsx)("button",{className:"button",children:"Download"})]})})}}class h extends l().Component{constructor(e){super(e),this.state={loaded:!1},a().bindAll(this,["onDownloadAll"])}loadData(){const{email_id:e}=this.props;(0,r.Zq)("email/attachments-explorer",{email_id:e}).then(e=>{const{email:t={},order_template:i={}}=a().get(e,"json")||{};this.setState({email:t,order_template:i,loaded:!0})})}componentDidMount(){this.loadData()}onDownloadAll(){const e=t=>{0!==t.length&&(c(t[0]),setTimeout(()=>{e(t.slice(1))},500))};e(a().get(this.state,"email.attachments")||[])}render(){const{email:e,order_template:t,loaded:i}=this.state;if(!i)return(0,d.jsx)("div",{"data-test-name":"FileExplorer.render",style:o.loading});const{attachments:n,subject:a}=e,{header:s,avatar:l,order_header_name:c}=t;return(0,d.jsxs)("div",{"data-test-name":"FileExplorer.render",style:o.container,children:[(0,d.jsxs)("div",{style:{...o.headers,backgroundImage:`url(${s.file_name_headers})`,backgroundSize:"cover"},children:[(0,d.jsx)("div",{style:{display:"inline-block"},children:(0,d.jsx)("img",{src:(0,r.AE)(l,"medium"),style:{width:140,height:140,margin:27}})}),(0,d.jsxs)("div",{style:{display:"inline-block",marginLeft:27,color:"#FFF",textShadow:"0px 2px 25px rgba(0,0,0,0.85)"},children:[(0,d.jsxs)("div",{style:{fontSize:"2.0rem",fontWeight:400},children:[c," - Email Attachments"]}),(0,d.jsx)("div",{style:{paddingTop:10},children:a})]})]}),(0,d.jsx)("div",{style:o.viewer,children:n.map(e=>(0,d.jsx)(m,{file:e},e.file_id))})]})}}const p=()=>{const e={};return window.location.search.replace("?","").split("&").map(function(t){var i=t.split("=");e[i[0]]=decodeURIComponent(i[1])}),(0,d.jsx)(h,{"data-test-name":"FileExplorerContainer",email_id:e.email_id})}}}]);
2//# sourceMappingURL=FileExplorer.e90bb2cf.chunk.js.map

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.