PageSourceSearch

https://websiteoss.ecoflow.com/_next/static/chunks/38889-50a1c5d9c1a25035.js

js ecoflow.com collected 2026-09-24 08:31:19 UTC 14,063 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[38889],{659252:function(e,r,t){"use strict";t.d(r,{JC:function(){return s},dE:function(){return f},v3:function(){return l}});var o=t(217674),n=t(581354),a=t.n(n),i=t(742794);function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=Array(r);t<r;t++)o[t]=e[t];return o}var c=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*r.length));return t},s=function(e,r){var t,n=new URL(r,window.location.origin),i=n.pathname,s=Array.from(n.searchParams.entries()),l=new Set,f=[],p=function(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,r)}}(e))){t&&(e=t);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}(s.sort(function(e,r){return e[0].localeCompare(r[0])}));try{for(p.s();!(t=p.n()).done;){var m=(0,o.Z)(t.value,2),d=m[0],v=m[1];!d.endsWith("[]")&&l.has(d)||(l.add(d),f.push("".concat(d,"=").concat(v)))}}catch(e){p.e(e)}finally{p.f()}var h=f.join("&"),x=String(Date.now()),E=c(8),y="".concat(e.toUpperCase()).concat(i).concat(h).concat("null").
1concat(x).concat(E);return{Platform:"web",Version:"1.0.0",SystemName:"website_user","X-Timestamp":x,"X-Nonce":E,"X-Sign":a().HmacSHA256(y,"IdBw0t41aTy2VQKv").toString(a().enc.Hex).toUpperCase()}},l=function(){var e="",r=(0,i.e)("token")||"";if(r)e=r;else if((0,i.e)("userInfo")){var t,o=(null===(t=JSON.parse(decodeURIComponent((0,i.e)("userInfo"))||'{userInfo:{token:""}}'))||void 0===t?void 0:t.token)||"";o&&(e=o)}return e?{Authorization:"Bearer ".concat(e)}:{}},f=["image/jpeg","image/jpeg","image/png","image/webp","image/svg+xml","image/gif","video/mp4","video/webm","model/gltf-binary","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","text/csv","application/vnd.ms-powerpoint"]},638889:function(e,r,t){"use strict";t.d(r,{Z:function(){return U}}),t(100869);var o=t(328465),n=t(490116),a=t(750029);t(819373);var i=t(111187),u=t(759499),c=t(704730),s=t(364687),l=t.n(s),f=t(450888),p=t(724969),m=t(526911),d=t(324788),v=t(667294),h=t(659252),x=t(217674),E={en:{formatError:"Please choose the correct file format: {types}",sizeError:"The file size must not exceed {size}MB.",maxCountError:"You can upload up to {maxCount} file.",maxCountErrorPlural:"You can upload up to {maxCount} files.",uploadFailed:"Upload failed. Please try again."},de:{formatError:"Bitte w\xe4hlen Sie das korrekte Dateiformat: {types}",sizeError:"Die Dateigr\xf6\xdfe darf {size}MB nicht \xfcberschreiten.",maxCountError:"Sie k\xf6nnen maximal {maxCount} Datei hochladen.",maxCountErrorPlural:"Sie k\xf6nnen maximal {maxCount} Dateien hochladen.",uploadFailed:"Upload fehlgeschlagen. Bitte versuchen Sie es erneut."},fr:{formatError:"Veuillez choisir le format de fichier correct : {types}",sizeError:"La taille du fichier ne doit pas d\xe9passer {size}Mo.",maxCountError:"Vous pouvez t\xe9l\xe9verser jusqu’\xe0 {maxCount} fichier.",maxCountErrorPlural:"Vous pouvez t\xe9l\xe9verser jusqu’\xe0 {maxCount} fichiers.",uploadFailed:"\xc9chec du t\xe9l\xe9versement. Veuillez r\xe9essayer."},it:{formatError:"Seleziona il formato di file corretto: {types}",sizeError:"La dimensione del file non deve superare i {size}MB.",maxCountError:"Puoi caricare al massimo {maxCount} file.",maxCountErrorPlural:"Puoi caricare al massimo {maxCount} file.",uploadFailed:"Caricamento non riuscito. Riprova."},es:{formatError:"Elige el formato de archivo correcto: {types}",sizeError:"El tama\xf1o del archivo no debe superar los {size}MB.",maxCountError:"Puedes subir hasta {maxCount} archivo.",maxCountErrorPlural:"Puedes subir hasta {maxCount} archivos.",uploadFailed:"Error al subir. Int\xe9ntalo de nuevo."},nl:{formatError:"Kies het juiste bestandsformaat: {types}",sizeError:"De bestandsgrootte mag niet groter zijn dan {size}MB.",maxCountError:"Je kunt maximaal {maxCount} bestand uploaden.",maxCountErrorPlural:"Je kunt maximaal {maxCount} bestanden uploaden.",uploadFailed:"Uploaden mislukt. Probeer het opnieuw."},mx:{formatError:"Elige el formato de archivo correcto: {types}",sizeError:"El tama\xf1o del archivo no debe superar los {size}MB.",maxCountError:"Puedes subir hasta {maxCount} archivo.",maxCountErrorPlural:"Puedes subir hasta {maxCount} archivos.",uploadFailed:"Error al subir. Int\xe9ntalo de nuevo."},br:{formatError:"Escolha o formato de arquivo correto: {types}",sizeError:"O tamanho do arquivo n\xe3o deve exceder {size}MB.",maxCountError:"Voc\xea pode enviar no m\xe1ximo {maxCount} arquivo.",maxCountErrorPlural:"Voc\xea pode enviar no m\xe1ximo {maxCount} arquivos.",uploadFailed:"Falha no envio. Tente novamente."},sa:{formatError:"يرجى اختيار تنسيق الملف الصحيح: {types}",sizeError:"يجب ألا يتجاوز حجم الملف {size} ميجابايت.",maxCountError:"يمكنك تحميل ملف واحد بحد أقصى {maxCount}.",maxCountErrorPlural:"يمكنك تحميل ما يصل إلى {maxCount} ملفات.",uploadFailed:"فشل التحميل. يرجى المحاولة مرة أخرى."},jp:{formatError:"正しいファイル形式を選択してください:{types}",sizeError:"ファイルサイズは{size}MB以下にしてください。",maxCountError:"アップロードできるファイルは最大{maxCount}件です。",maxCountErrorPlural:"アップロードできるファイルは最大{maxCount}件です。",uploadFailed:"アップロードに失敗しました。もう一度お試しください。"},kr:{formatError:"올바른 파일 형식을 선택해 주세요: {types}",sizeError:"파일 크기는 {size}MB를 초과할 수 없습니다.",maxCountError:"최대 {maxCount}
1개의 파일을 업로드할 수 있습니다.",maxCountErrorPlural:"최대 {maxCount}개의 파일을 업로드할 수 있습니다.",uploadFailed:"업로드에 실패했습니다. 다시 시도해 주세요."},cn:{formatError:"请选择正确的文件格式:{types}",sizeError:"文件大小不能超过 {size}MB。",maxCountError:"最多可上传 {maxCount} 个文件。",maxCountErrorPlural:"最多可上传 {maxCount} 个文件。",uploadFailed:"上传失败,请重试。"},tw:{formatError:"請選擇正確的檔案格式:{types}",sizeError:"檔案大小不得超過 {size}MB。",maxCountError:"最多可上傳 {maxCount} 個檔案。",maxCountErrorPlural:"最多可上傳 {maxCount} 個檔案。",uploadFailed:"上傳失敗,請再試一次。"}},y=["us","ca","eu","uk","au","za","ph","global"],C=function(e,r){return Object.entries(r).reduce(function(e,r){var t=(0,x.Z)(r,2),o=t[0],n=t[1];return e.replace(RegExp("\\{".concat(o,"\\}"),"g"),String(n))},e)};t(21293);var g=t(84536),b=t(785893),w=["types","size","onChange","value","maxCount"];function O(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function P(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?O(Object(t),!0).forEach(function(r){(0,u.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var j=/\.(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i,z=function(e,r){var t,o=(null===(t=e.split("/").pop())||void 0===t?void 0:t.split(/[#?]/)[0])||"file-".concat(r+1);try{return decodeURIComponent(o)}catch(e){return o}},S=function(e){return!!e&&j.test(e)};function U(e){var r,t=e.types,u=void 0===t?h.dE:t,s=e.size,x=void 0===s?10485760:s,O=e.onChange,j=e.value,U=void 0===j?[]:j,I=e.maxCount,k=void 0===I?1:I,T=(0,c.Z)(e,w),_=(0,d.Z)().locale,B=void 0===_?"us":_,L=y.includes(B)?E.en:E[B]||E.en,R=(0,v.useState)(!1),M=R[0],N=R[1],D=(0,v.useRef)(U),F=(0,v.useRef)(0),A=(0,v.useRef)(new Map),Z=function(e){return e.map(function(e,r){var t=z(e,r),o=A.current.get(e),n=!!o||S(t);return P({uid:"".concat(r,"::").concat(e),name:t,status:"done",url:e},n?{thumbUrl:o||e}:{})})},H=(0,v.useState)(function(){return Z(U)}),X=H[0],V=H[1];(0,v.useEffect)(function(){var e;e=D.current,U.length===e.length&&U.every(function(r,t){return r===e[t]})||(D.current=U,V(Z(U)))},[U]),(0,v.useEffect)(function(){var e=A.current;return function(){e.forEach(function(e){return URL.revokeObjectURL(e)}),e.clear()}},[]);var q=function(e){D.current=e,V(Z(e)),O(e)},G=(r=(0,a.Z)(l().mark(function e(r){var t,o,a,u,c,s;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.file,o=r.onSuccess,a=r.onError,F.current+=1,N(!0),e.prev=3,c=t,e.next=7,(0,g.c)(c,B);case 7:s=e.sent,null!==(u=c.type)&&void 0!==u&&u.startsWith("image/")&&A.current.set(s,URL.createObjectURL(c)),q([].concat((0,n.Z)(D.current),[s]).slice(0,k)),null==o||o(s),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(3),null==a||a(e.t0),i.default.error(L.uploadFailed);case 17:return e.prev=17,F.current=Math.max(0,F.current-1),0===F.current&&N(!1),e.finish(17);case 21:case"end":return e.stop()}},e,null,[[3,13,17,21]])})),function(e){return r.apply(this,arguments)}),J=(0,b.jsx)("div",{children:M?(0,b.jsx)(f.Z,{}):(0,b.jsx)(p.Z,{})}),W=P(P({},T),{},{className:["comps-uploader",T.className].filter(Boolean).join(" "),fileList:X,maxCount:k,listType:"picture-card",multiple:k>1,showUploadList:{showPreviewIcon:!1,showRemoveIcon:!0,showDownloadIcon:!1},isImageUrl:function(e){var r;return!!(null!==(r=e.type)&&void 0!==r&&r.startsWith("image/"))||(!e.type||!!e.type.startsWith("image/"))&&(!!(e.url&&A.current.has(e.url))||S(e.name)||S(e.url))},iconRender:function(){return(0,b.jsx)(m.Z,{style:{color:"#1677FF"}})},customRequest:G,beforeUpload:function(e,r){var t=e.name.slice(e.name.lastIndexOf(".")+1);if((null==u?void 0:u.length)>0&&!u.includes(null==e?void 0:e.type)&&!u.includes(t))return i.default.error(C(L.formatError,{types:u.map(function(e){return"string"==typeof e&&e.includes("/")?e.split("/")[1]||"":e}).join()})),!1;if(x<e.size)return i.default.error(C(L.sizeError,{size:Math.round(x/1024/1024*10)/10})),!1;var o=Math.max(0,k-D.current.length),n=r.indexOf(e);if(n>
1=o){if(n===o){var a=k>1?"maxCountErrorPlural":"maxCountError";i.default.error(C(L[a],{maxCount:k}))}return!1}return!0},onRemove:function(e){var r=e.url?A.current.get(e.url):void 0;r&&e.url&&(URL.revokeObjectURL(r),A.current.delete(e.url)),q(D.current.filter(function(r){return r!==e.url}))}});return(0,b.jsx)(o.Z,P(P({},W),{},{children:X.length<k?J:null}))}U.displayName="Uploader"},84536:function(e,r,t){"use strict";t.d(r,{c:function(){return f}});var o=t(759499),n=t(750029),a=t(364687),i=t.n(a),u=function(e){return["cn"].includes(e)?"cn":["eu","uk","de","fr","it","es","nl","jp","kr","za","sa"].includes(e)?"eu":"us"},c=t(659252);function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function l(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?s(Object(t),!0).forEach(function(r){(0,o.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function f(e){return p.apply(this,arguments)}function p(){return(p=(0,n.Z)(i().mark(function e(r){var t,o,n,a,s,f,p,m,d,v,h,x,E,y,C,g,b=arguments;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=null===(t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"us",r={NEXT_PUBLIC_API_HOST:"https://api-a.ecoflow.com/website",NEXT_PUBLIC_LOGIN_HOST:"https://api-a.ecoflow.com"};return"cn"===u(e)&&(r.NEXT_PUBLIC_API_HOST="https://api-cn.ecoflow.com/website",r.NEXT_PUBLIC_LOGIN_HOST="https://api-cn.ecoflow.com"),"eu"===u(e)&&(r.NEXT_PUBLIC_API_HOST="https://api-e.ecoflow.com/website",r.NEXT_PUBLIC_LOGIN_HOST="https://api-e.ecoflow.com"),r}(b.length>1&&void 0!==b[1]?b[1]:"us"))||void 0===t?void 0:t.NEXT_PUBLIC_LOGIN_HOST,s=r.type||"application/octet-stream",f=r.name||"file-".concat(Date.now()),m=!!(null!=(p=(0,c.v3)())&&p.Authorization),d="/system/oss/signed/upload".concat(m?"":"/v2"),v="".concat(a).concat(d,"?contentType=").concat(s,"&scene=WEBSITE&file=").concat(encodeURIComponent(f)),h=(0,c.JC)("GET",v),e.next=11,fetch(v,{method:"GET",headers:m?l(l({},p),h):{}});case 11:return x=e.sent,e.next=14,x.json();case 14:if(y=null==(E=e.sent)?void 0:null===(o=E.data)||void 0===o?void 0:o.signedUrl,C=null==E?void 0:null===(n=E.data)||void 0===n?void 0:n.url,!(!x.ok||(null==E?void 0:E.code)!=="0"||!y||!C)){e.next=19;break}throw Error((null==E?void 0:E.message)||"Upload response missing signed URL");case 19:return e.next=21,fetch(y,{method:"PUT",headers:{"Content-Type":s},body:r});case 21:if((g=e.sent).ok){e.next=24;break}throw Error("Upload failed with status ".concat(g.status));case 24:return e.abrupt("return",C);case 25:case"end":return e.stop()}},e)}))).apply(this,arguments)}},21293:function(){}}]);

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.