System.register(["./p-DoqAw6Bz.system.js","@verdocs/js-sdk","./p-Cb4o7DUm.system.js"],(function(e){"use strict";var o,r,s,i,c,a;return{setters:[function(e){o=e.r;r=e.c;s=e.h;i=e.H},function(e){c=e.VerdocsEndpoint},function(e){a=e.u}],execute:function(){var l='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-file-chooser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", 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=r(this,"fileSelected");this.endpoint=c.getDefault()}e.prototype.handleFileChanged=function(e){var o,r;this.file=((o=e.target.files)===null||o===void 0?void 0:o[0])||null;(r=this.fileSelected)===null||r===void 0?void 0:r.emit({file:this.file});console.debug("[CHOOSER] Selected file",this.file)};e.prototype.handleSelectFile=function(e){var o,r;e.stopPropagation();this.file=null;(o=this.fileSelected)===null||o===void 0?void 0:o.emit({file:null});(r=document.getElementById("verdocs-file-chooser"))===null||r===void 0?void 0:r.click()};e.prototype.render=function(){var e=this;var o=this.file?"Select a different file":"Select a file from your computer";return s(i,{key:"2f3b44d27df1f14697939673b9706f2b8cef2b1c"},s("input",{key:"3c55f234ad08dc6741505f8314361eee94014829",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)}}),s("div",{key:"bda957db5c55a91f240a501f714671973fe493e7",class:"upload-box"},s("div",{key:"c772d366c2d0cf10930bd04c6fe2cf9639ae187d",class:"selected-filename"},this.file?this.file.name:"Drag a file here"),s("div",{key:"1d4ab1025dcd4685be52f0440d0910d5e78e6a8e",class:"or-prefer"},this.file?a:"Or, if you prefer..."),s("verdocs-button",{key:"a2385786f50aa9e298eea13dfadb3072fb2fad34",label:o,size:"small",onClick:function(o){return e.handleSelectFile(o)}})))};return e}());d.style=l;var f='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}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 t=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 s(i,{key:"4fb4646e5feebaf8265fc8042af66d3dcf2426b6"},s("div",{key:"d2febb9e8a3b1e89d067324b40aa674287d0fef0",class:"labels"},this.label&&s("div",{key:"e32eacce952b2ba7bd10819a535b6438c6ba52b4",class:"label"},this.label),this.showPercent&&s("div",{key:"485503902199bcb6752997bef3afcf333c5ce6aa",class:"label"},this.percent,"%")),s("div",{key:"ebdfa5c9362f136d7f3690ffeadae2be46a47bc1",class:"bar"},s("div",{key:"a72e9c81d14d8e7cc6c37cfcd6a9cb6a27d50a2e",class:"slider",style:{width:"".concat(e,"%")}})))};return e}());t.style=f}}}));
//# sourceMappingURL=p-ff1739a9.system.entry.js.map