PageSourceSearch

https://chatspark.io/_next/static/chunks/6843.c7c5a6c1338f173a.js

js chatspark.io collected 2026-10-04 16:09:18 UTC 2,737 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6843],{36843:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FilePond=t.FileStatus=t.registerPlugin=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(2265),r=i&&i.__esModule?i:{default:i},l=n(97763);t.registerPlugin=l.registerPlugin,t.FileStatus=l.FileStatus;var s=(0,l.supported)(),u=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"];t.FilePond=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.allowFilesSync=!0,n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;if(this._input=this._element.querySelector('input[type="file"]'),this._inputClone=this._input.cloneNode(),s){var t=Object.assign({},this.props);if(t.onupdatefiles){var n=t.onupdatefiles;t.onupdatefiles=function(t){e.allowFilesSync=!1,n(t)}}this._pond=(0,l.create)(this._input,t),Object.keys(this._pond).filter(function(e){return!u.includes(e)}).forEach(function(t){e[t]=e._pond[t]})}}},{key:"componentWillUnmount",value:function(){if(this._pond){var e=document.createElement("div");e.append(this._pond.element),e.id="foo",this._pond.destroy(),this._pond=void 0,this._element.append(this._inputClone)}}},{key:"shouldComponentUpdate",value:function(){return!!this.allowFilesSync||(this.allowFilesSync=!0,!1)}},{key:"componentDidUpdate",value:function(){if(this._pond){var e=Object.assign({},this.props);delete e.onupdatefiles,this._pond.setOptions(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,o=t.name,r=t.className,l=t.allowMultiple,s=t.required,u=t.captureMethod,a=t.acceptedFileTypes;return(0,i.createElement)("div",{className:"filepond--wrapper",ref:function(t){return e._element=t}},(0,i.createElement)("input",{type:"file",name:o,id:n,accept:a,multiple:l,required:s,className:r,capture:u}))}}]),t}(r.default.Component)}}]);

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.