text: /*!
   * FilePondPluginGetFile 1.0.8
   * Licensed under MIT, https://opensource.org/licenses/MIT/
   * Please visit https://github.com/hassan-knopsmedia/filepond-download-plugin.git#readme for details.
   */
  
  /* eslint-disable */
  
  !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).FilePondPluginGetFile=n()}(this,(function(){"use strict";const e=e=>{let n=document.createElement("span");return n.className="filepond--download-icon",n.title=e,n},n=(e,n)=>{if(n&&e.getMetadata("url"))location.href=e.getMetadata("url");else{const n=document.createElement("a"),t=window.URL.createObjectURL(e.file);document.body.appendChild(n),n.style.display="none",n.href=t,n.download=e.file.name,n.click(),window.URL.revokeObjectURL(t),n.remove()}},t=t=>{const{addFilter:o,utils:i}=t,{Type:l,createRoute:d}=i;return o("CREATE_VIEW",(t=>{const{is:o,view:i,query:l}=t;if(!o("file"))return;i.registerWriter(d({DID_LOAD_ITEM:({root:t,props:o})=>{const{id:i}=o,d=l("GET_ITEM",i);if(!d||d.archived)return;const r=t.query("GET_LABEL_BUTTON_DOWNLOAD_ITEM"),a=t.query("GET_ALLOW_DOWNLOAD_BY_URL");((t,o,i,l)=>{const d=o.querySelector(".filepond--file-info-main"),r=e(i);d.innerHTML=t.file.name,console.log(t.file.name),d.prepend(r),r.addEventListener("click",(()=>n(t,l)))})(d,t.element,r,a)}},(({root:e,props:n})=>{const{id:t}=n;l("GET_ITEM",t);e.rect.element.hidden})))})),{options:{labelButtonDownloadItem:["Download file",l.STRING],allowDownloadByUrl:[!1,l.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:t})),t}));
  