System.register(["./p-BO6MZhlp.system.js","@verdocs/js-sdk","./p-DwOCgVjl.system.js"],(function(e){"use strict";var o,s,i,r,l,c;return{setters:[function(e){o=e.r;s=e.c;i=e.h;r=e.H},function(e){l=e.VerdocsEndpoint},function(e){c=e.u}],execute:function(){var a='verdocs-file-chooser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-file-chooser .upload-box{text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 15px;color:rgba(0, 0, 0, 0.54)}verdocs-file-chooser .upload-box svg{width:64px;height:64px;fill:#5c6575}verdocs-file-chooser .selected-filename{font-size:20px;font-weight:bold;overflow-wrap:anywhere}verdocs-file-chooser .or-prefer{height:20px;margin:20px 0;font-size:16px}';var d=e("verdocs_file_chooser",function(){function e(e){o(this,e);this.fileSelected=s(this,"fileSelected");this.endpoint=l.getDefault()}e.prototype.handleFileChanged=function(e){var o,s;this.file=((o=e.target.files)===null||o===void 0?void 0:o[0])||null;(s=this.fileSelected)===null||s===void 0?void 0:s.emit({file:this.file});console.debug("[CHOOSER] Selected file",this.file)};e.prototype.handleSelectFile=function(e){var o,s;e.stopPropagation();this.file=null;(o=this.fileSelected)===null||o===void 0?void 0:o.emit({file:null});(s=document.getElementById("verdocs-file-chooser"))===null||s===void 0?void 0:s.click()};e.prototype.render=function(){var e=this;var o=this.file?"Select a different file":"Select a file from your computer";return i(r,{key:"9bbcded830636b89e0b47dd545c15117c5b9f8b8"},i("input",{key:"0d8fb69380eb9391ad2e704e07abf29483ed7a01",type:"file",multiple:true,id:"verdocs-file-chooser",accept:"application/pdf,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:function(o){return e.handleFileChanged(o)}}),i("div",{key:"ac5d2a127e5653ed80effd71e7d5b41024b931a7",class:"upload-box"},i("div",{key:"bfe87d0804272452b31461e4eb714e9336157394",class:"selected-filename"},this.file?this.file.name:"Drag a file here"),i("div",{key:"0999c21ef1c212435cbabd7eca81f8a7463055fe",class:"or-prefer"},this.file?c:"Or, if you prefer..."),i("verdocs-button",{key:"d0b299a80d0cede99f92b06ab512053de0441011",label:o,size:"small",onClick:function(o){return e.handleSelectFile(o)}})))};return e}());d.style=a;var t='verdocs-progress-bar{font-family:"Inter", "Barlow", sans-serif;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-progress-bar .labels{display:-ms-flexbox;display:flex;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-progress-bar .labels .label{display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin-right:8px;color:#33364b}verdocs-progress-bar .bar{display:-ms-flexbox;display:flex;-ms-flex:0 0 10px;flex:0 0 10px;border-radius:5px;background-color:#cccccc}verdocs-progress-bar .bar .slider{display:-ms-flexbox;display:flex;border-radius:5px;background-color:#55bc81}';var n=e("verdocs_progress_bar",function(){function e(e){o(this,e);this.label="";this.showPercent=false;this.percent=0}e.prototype.render=function(){var e=Math.ceil(100*Math.min(this.percent,100)/100);console.log("Rendering progress bar",{widthPercent:e,label:this.label,showPercent:this.showPercent,percent:this.percent});return i(r,{key:"deb87ba92583c69d4257c9b0ac2e288c5968dcec"},i("div",{key:"6122cb2a4629aaff872b7aaa78d6c48e72a1c4a6",class:"labels"},this.label&&i("div",{key:"39d984b137bfccf228a397baf25eb94d918ba5a1",class:"label"},this.label),this.showPercent&&i("div",{key:"9e5e8d5b01fac6ad5ee539ed6ed979399e035798",class:"label"},this.percent,"%")),i("div",{key:"5a2d126da3607ab523a795139741c3490cf0b27b",class:"bar"},i("div",{key:"f58d38908e994413826c740efc343e962ec4b50a",class:"slider",style:{width:"".concat(e,"%")}})))};return e}());n.style=t}}}));
//# sourceMappingURL=p-12cddd31.system.entry.js.map