1(this.webpackJsonptoffeeshare=this.webpackJsonptoffeeshare||[]).push([[3],{145:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n(2),a=n(5),r=n.n(a),o=n(9),c=n(21),s=n(1),l=n(22),d=n(30),u=n(27),f=n(39),m=n(3),b=["en","es","nl"];function p(e){var t=e.color,n=e.children,a=e.title,p=e.description,h=e.image,v=e.onRendered,g=Object(d.b)(),j=Object(l.b)().i18n,w=Object(u.useHistory)(),x=Object(u.useLocation)(),O=Object(u.useParams)().lang,y=Object(d.c)((function(e){return e.settings})).language,k=Object(s.useState)(!1),_=Object(c.a)(k,2),S=_[0],C=_[1];Object(s.useEffect)((function(){O&&b.includes(O)&&(j.changeLanguage(O),g(Object(f.d)(O)))}),[O]),Object(s.useEffect)((function(){N(),T()}),[x]),Object(s.useEffect)((function(){var e=function(){var e=Object(o.a)(r.a.mark((function e(){var t,n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y||O){e.next=7;break}if("en"===(n=null===(t=navigator.language)||void 0===t?void 0:t.split("-")[0])||!b.includes(n)){e.next=7;break}return j.changeLanguage(n),e.next=6,g(Object(f.d)(n));case 6:N(n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var N=function(e){var t="toffeesha.re"===window.location.hostname;if(e)e!==window.location.pathname.split("/")[1]&&w.push("/".concat(e).concat(window.location.pathname));else if(!t&&y&&"en"!==y&&b.includes(y)){var n=window.location.pathname.split("/")[1];O!==n&&w.push("/".concat(y).concat(window.location.pathname))}},T=function(){document.documentElement.setAttribute("lang",O||"en"),b.map((function(e){var t,n="link-".concat(e),i=window.location.pathname.replace("/".concat(O),""),a=document.createElement("link");a.rel="alternate",a.hreflang=e,a.href="https://".concat(window.location.host,"/").concat(e).concat(i),a.id=n,null===(t=document.getElementById(n))||void 0===t||t.remove(),document.head.appendChild(a)}))};return Object(s.useEffect)((function(){document.title=a,document.getElementsByTagName("meta").description.content=p,document.body.className=m.C?"dark":t||"body",C(!0),v&&v()}),[a,p]),Object(i.jsxs)("div",{className:"container-main",children:[Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),Object(i.jsx)("meta",{name:"twitter:title",content:a}),Object(i.jsx)("meta",{name:"twitter:description",content:p}),Object(i.jsx)("meta",{name:"twitter:domain",content:"https://toffeeshare.com"}),h&&Object(i.jsx)("meta",{name:"og:image",content:"https://cms.toffeeshare.com".concat(h.url)}),h&&Object(i.jsx)("meta",{name:"twitter:image",content:"https://cms.toffeeshare.com".concat(h.url)})]}),S&&n]})}},146:function(e,t,n){"use strict";var i=n(24),a=n(25),r=function(){function e(){Object(i.a)(this,e)}return Object(a.a)(e,null,[{key:"isMobile",value:function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isAndroid",value:function(){var e=/(android)/i.test(navigator.userAgent);return e}},{key:"browser",value:function(){var e="other",t=!!!document.documentMode&&!!window.StyleMedia;return-1===navigator.userAgent.indexOf("Chrome")||t?-1===navigator.userAgent.indexOf("Safari")||t?-1!==navigator.userAgent.indexOf("Firefox")?e="firefox":-1!==navigator.userAgent.indexOf("MSIE")||1==!!document.documentMode?e="ie":t&&(e="edge"):e="safari":e="chrome",e}},{key:"systemOS",value:function(){var e="Unknown";return-1!==window.navigator.userAgent.indexOf("Windows NT 10.0")?e="Windows 10":-1!==window.navigator.userAgent.indexOf("Windows NT 6.2")?e="Windows 8":-1!==window.navigator.userAgent.indexOf("Windows NT 6.1")?e="Windows 7":-1!==window.navigator.userAgent.indexOf("Windows NT 6.0")?e="Windows Vista":-1!==window.navigator.userAgent.indexOf("Windows NT 5.1")?e="Windows XP":-1!==window.navigator.userAgent.indexOf("Windows NT 5.0")?e="Windows 2000":-1!==window.navigator.userAgent.indexOf("Mac")?e="Mac/iOS":-1!==window.navigator.userAgent.indexOf("X11")?e="UNIX":-1!==window.navigator.userAgent.indexOf("Linux")&&(e="Linux"),e}},{key:"canUseFileSystem",value:function(){var e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return!e||parseInt(e[2],10)>=91}},{key:"isIOS",value:function(){return"safari"===e.browser()&&e.isMobile()}}]),e}();t.a=r},148:function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var i=n(55),a=n(5),r=n.n(a),o=n(9),c=n(24),s=n(25),l=n(49),d=n(61),u=n.n(d),f=n(8),m=n(64),b=n(63),p=n(62),h=n(52),v=n(3),g=n(152),j=n.n(g),w=n(19),x=n(66),O=n.n(x),y=null;function k(){return(k=Object(o.a)(r.a.mark((function e(t,n){var i,a,o,c;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y){e.next=4;break}return e.next=3,O()("".concat(v.d,"/data/mimeTypes.json"));case 3:y=e.sent;case 4:i=n.name.split("."),a=new window.Blob(t,{type:y?y["."+i[i.length-1]]:void 0}),o=URL.createObjectURL(a),(c=window.document.createElement("a")).href=o,c.download=n.name,c.setAttribute("type","hidden"),document.body.appendChild(c),c.click();case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var _=n(40),S="STREAMS",C="FILE_SYSTEM",N="BUFFER",T=function(e,t,n,i,a,c){for(var s=0,l=[],d=0,u=0,f=N,m=-1,b=t[0],p=[],h=!1,g=(new Date).getTime(),x=0;x<t.length;x++)s+=t[x].size;var O=setInterval((function(){var t=(new Date).getTime();i(d,s),n&&("closed"===e.readyState||t-g>5e3)&&y()}),100),y=function(){h||(h=!0,s!==d&&(e.close&&e.close(),a(v.i,d,T)))},T=function(t){g=(new Date).getTime(),e.onclose=void 0,e.onmessage=void 0,(e=t).onclose=y,e.onmessage=E,h=!1},E=function(e){var t=e.data;g=(new Date).getTime(),d+=t.byteLength,l.push(t)};e.onclose=y,e.onmessage=E;var M=function e(){switch(f){case S:for(;l.length>0&&u<b.size;){var t=l.shift();window.streamWriter.write(new Uint8Array(t)),u+=t.byteLength}break;case C:for(;l.length>0&&u<b.size;){var n=l.shift();window.fileStream.write(new Uint8Array(n)),u+=n.byteLength}break;default:for(;l.length>0&&u<b.size;){var i=l.shift();u+=i.byteLength,p.push(i)}}if(u!==b.size)w.c(e,10);else{switch(f){case S:window.streamWriter.close();break;case C:window.fileStream.close();break;case N:!function(e,t){k.apply(this,arguments)}(p,b),p=[]}A()}},A=function(){var e=Object(o.a)(r.a.mark((function e(){var n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m++,u=0,!t[m]){e.next=6;break}b=t[m],e.next=9;break;case 6:return clearInterval(O),c(),e.abrupt("return");case 9:e.prev=9;try{/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(j.a.mitm=v.c,window.fileStream=j.a.createWriteStream(b.name,{size:b.size}),window.streamWriter=window.fileStream.getWriter(),window.streamWriter&&(f=S))}catch(e){}if(f===S||!window.showSaveFilePicker){e.next=25;break}return e.prev=12,e.next=15,window.showSaveFilePicker({suggestedName:b.name});case 15:return n=e.sent,e.next=18,n.createWritable();case 18:window.fileStream=e.sent,f=C,e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),console.error(e.t0);case 25:M(),e.next=32;break;case 28:e.prev=28,e.t1=e.catch(9),M(),Object(_.a)(e.t1);case 32:case"end":return e.stop()}}),e,null,[[9,28],[12,22]])})));return function(){return e.apply(this,arguments)}}();A()},E=n(23);function M(e,t,n,i){e.send({event:v.t,origin:t,data:{message:n,parameters:i}})}var A,W,L=0;var R=function(){function e(){var t=this;Object(c.a)(this,e),this._peer=null,this._files=null,this._restoreCallback=null,this._connectionTimeout=null,this._isMobile=!1,this._usingFallback=!1,this._connector=null,this._destination=null,this._origin=null,this._noSleep=new u.a,this.connect=function(){var e=Object(o.a)(r.a.mark((function e(n){var i,a;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=function(){t._files?t._connector.send({event:v.q}):t._connector.send({event:v.o,destination:t._destination||null})},a=function(){E.b.send("Could not connect to the server, make sure the connection is not being blocked or try again later.")}
1,t._destination=n,t._connector=new m.a,t._connector.init(t._onMessage,i,a);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.start=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{t._peer=Object(p.a)(),t._noSleep.enable(),navigator.wakeLock.request()}catch(e){}t._isMobile?(t._connectionTimeout=setTimeout((function(){return t._onTimeoutRoutine(e)}),1e4),t._connector.send({event:v.v,destination:t._destination,origin:t._origin})):t._connectionTimeout=setTimeout((function(){return t._onTimeoutRoutine(e)}),7e3),t._peer&&(t._peer.onicecandidate=function(e){e.candidate&&t._connector.send({event:v.r,destination:t._destination,origin:t._origin,data:e.candidate})},t._peer.ondatachannel=function(e){var n=e.channel;n.binaryType="arraybuffer",n.onopen=function(){clearTimeout(t._connectionTimeout),t._restoreCallback?(t._restoreCallback(n),t._restoreCallback=null):T(n,t._files,t._isMobile,t._onTransferProgress,t._onTransferErrored,t._onTransferFinished)}}),t._connector.send({event:v.A,destination:t._destination,origin:t._origin,data:{fromByte:e}})},this.broadcastLookup=function(e){t._connector.send({event:v.j,data:{code:e},origin:t._origin})},this.close=function(){var e;null===(e=t._connector)||void 0===e||e.close()},this._onTransferProgress=function(e,t){Object(f.b)(function(e,t){return function(n){var i=Math.round(e/t*100),a=(new Date).getTime(),r=((L=(L=(49*L+(e-W)/(a-A))/50)>0?L:1)/1e3).toFixed(2);n(Object(h.g)({speed:r,percentage:i})),A=a,W=e}}(e,t))},this._onTransferFinished=function(){Object(f.b)(Object(h.e)()),M(t._connector,t._origin,"TRANSFER_SUCCESS")},this._onTransferErrored=function(e,n,i){t._isMobile?(E.b.send("Connection was lost, now reconnecting"),t._restoreCallback=i,setTimeout((function(){return t.start(n)}),1e3),t._connector.send({event:v.v,destination:t._destination,origin:t._origin})):M(t._connector,t._origin,"TRANSFER_FAILED",{receivedBytes:n,isMobile:isMobile,files:t._files,fallback:t._usingFallback})},this._onTimeoutRoutine=function(){var e=Object(o.a)(r.a.mark((function e(n){var i,a;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(i=t._peer)||void 0===i||i.close(),!t._restoreCallback||t._usingFallback){e.next=5;break}t.start(n),e.next=12;break;case 5:return E.b.send(Object(l.b)("general.noDirectConnection")),t._usingFallback=!0,a=new b.a,e.next=10,a.init("receiver",t._origin,null);case 10:t._connector.send({event:v.p,destination:t._destination,origin:t._origin,data:{key:t._origin,fromByte:n}}),T(a,t._files,t._isMobile,t._onTransferProgress,t._onTransferErrored,t._onTransferFinished);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._onMessage=function(e){var n;Object(_.a)(e);var a=(n={},Object(i.a)(n,v.o,(function(){return t._eventConnectionRequest(e)})),Object(i.a)(n,v.x,(function(){return t._eventRemoteDescription(e)})),Object(i.a)(n,v.r,(function(){return t._eventRemoteIceCandidate(e)})),Object(i.a)(n,v.m,(function(){return t._eventConnectionAccept(e)})),Object(i.a)(n,v.u,(function(){return t._eventReverseConnect(e)})),Object(i.a)(n,v.n,(function(){return t._eventConnectionIsMobile(e)})),Object(i.a)(n,v.j,(function(){return t._eventBroadcastLookupResult(e)})),n),r=e.event;a[r]&&a[r]()},this._eventBroadcastLookupResult=function(e){var t=e.origin;t?window.location="https://toffeeshare.com/c/".concat(t):E.b.send("Could not find a local device for this code")},this._eventReverseConnect=function(e){window.location="".concat(v.d,"/c/").concat(e.origin)},this._eventConnectionRequest=function(e){var n=e.data.assignedOrigin;t._origin=n,t._destination||Object(f.b)(Object(h.i)({origin:n,shareCode:n}))},this._eventConnectionAccept=function(e){var n=e.data;Object(f.b)(Object(h.b)({files:n.files})),t._files=n.files,t._isMobile=n.mobile},this._eventConnectionIsMobile=function(){Object(f.b)(Object(h.d)(!0)),t._isMobile=!0},this._eventRemoteIceCandidate=function(e){var n=e.data;if(window.RTCIceCandidate){var i=new RTCIceCandidate(n);t._peer.addIceCandidate(i)}},this._eventRemoteDescription=function(){var e=Object(o.a)(r.a.mark((function e(n){var i,a;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.data,e.prev=1,t._peer.setRemoteDescription(i),e.next=5,t._peer.createAnswer();case 5:a=e.sent,t._peer.setLocalDescription(a),t._connector.send({event:v.x,destination:t._destination,origin:t._origin,data:a}),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(1);case 12:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}()}return Object(s.a)(e,null,[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),this.instance}}]),e}();R.instance=null},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(5),a=n.n(i),r=n(9),o=n(148),c=n(52),s=function(e){return function(){var t=Object(r.a)(a.a.mark((function t(n){var i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n(Object(c.c)({shareCode:e})),(i=o.a.getInstance()).close(),i.connect(e);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}},152:function(e,t,n){var i=this;e.exports=function(){"use strict";var e="object"==typeof window?window:i;e.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");var t=null,n=!1,a=function(e){try{e()}catch(e){}},r=e.WebStreamsPolyfill||{},o=e.isSecureContext,c=/constructor/i.test(e.HTMLElement)||!!e.safari||!!e.WebKitPoint,s=o||"MozAp
1pearance"in document.documentElement.style?"iframe":"navigate",l={createWriteStream:m,WritableStream:e.WritableStream||r.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"https://jimmywarting.github.io/StreamSaver.js/mitm.html?version=2.0.0"};function d(e){if(!e)throw new Error("meh");var t=document.createElement("iframe");return t.hidden=!0,t.src=e,t.loaded=!1,t.name="iframe",t.isIframe=!0,t.postMessage=function(){var e;return(e=t.contentWindow).postMessage.apply(e,arguments)},t.addEventListener("load",(function(){t.loaded=!0}),{once:!0}),document.body.appendChild(t),t}function u(t){var n="width=200,height=100",i=document.createDocumentFragment(),a={frame:e.open(t,"popup",n),loaded:!1,isIframe:!1,isPopup:!0,remove:function(){a.frame.close()},addEventListener:function(){i.addEventListener.apply(i,arguments)},dispatchEvent:function(){i.dispatchEvent.apply(i,arguments)},removeEventListener:function(){i.removeEventListener.apply(i,arguments)},postMessage:function(){var e;(e=a.frame).postMessage.apply(e,arguments)}},r=function t(n){n.source===a.frame&&(a.loaded=!0,e.removeEventListener("message",t),a.dispatchEvent(new Event("load")))};return e.addEventListener("message",r),a}try{new Response(new ReadableStream),o&&!("serviceWorker"in navigator)&&(c=!0)}catch(e){c=!0}function f(){t||(t=o?d(l.mitm):u(l.mitm))}function m(e,i,a){var r={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},o=0,u=null,m=null,b=null;if(Number.isFinite(i)){var p=[i,a];a=p[0],i=p[1],console.warn("[StreamSaver] Depricated pass an object as 2nd argument when creating a write stream"),r.size=a,r.writableStrategy=i}else i&&i.highWaterMark?(console.warn("[StreamSaver] Depricated pass an object as 2nd argument when creating a write stream"),r.size=a,r.writableStrategy=i):r=i||{};if(!c){f(),m=new MessageChannel,e=encodeURIComponent(e.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");var h={transferringReadable:n,pathname:r.pathname||Math.random().toString().slice(-6)+"/"+e,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+e}};r.size&&(h.headers["Content-Length"]=r.size);var v,g=[h,"*",[m.port2]];if(n){var j="iframe"===s?void 0:{transform:function(e,t){if(!(e instanceof Uint8Array))throw new TypeError("Can only wirte Uint8Arrays");o+=e.length,t.enqueue(e),u&&(location.href=u,u=null)},flush:function(){u&&(location.href=u)}},w=(b=new l.TransformStream(j,r.writableStrategy,r.readableStrategy)).readable;m.port1.postMessage({readableStream:w},[w])}m.port1.onmessage=function(e){e.data.download&&("navigate"===s?(t.remove(),t=null,o?location.href=e.data.download:u=e.data.download):(t.isPopup&&(t.remove(),t=null,"iframe"===s&&d(l.mitm)),d(e.data.download)))},t.loaded?(v=t).postMessage.apply(v,g):t.addEventListener("load",(function(){var e;(e=t).postMessage.apply(e,g)}),{once:!0})}var x=[];return!c&&b&&b.writable||new l.WritableStream({write:function(e){if(!(e instanceof Uint8Array))throw new TypeError("Can only wirte Uint8Arrays");c?x.push(e):(m.port1.postMessage(e),o+=e.length,u&&(location.href=u,u=null))},close:function(){if(c){var t=new Blob(x,{type:"application/octet-stream; charset=utf-8"}),n=document.createElement("a");n.href=URL.createObjectURL(t),n.download=e,n.click()}else m.port1.postMessage("end")},abort:function(){x=[],m.port1.postMessage("abort"),m.port1.onmessage=null,m.port1.close(),m.port2.close(),m=null}},r.writableStrategy)}return a((function(){var e=(new TransformStream).readable,t=new MessageChannel;t.port1.postMessage(e,[e]),t.port1.close(),t.port2.close(),n=!0,Object.defineProperty(l,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})})),l}()},157:function(e,t,n){"use strict";var i=n(2);n(1),n(158);t.a=function(e){var t=e.title,n=e.text,a=e.image,r=e.textIcon;return Object(i.jsxs)("div",{className:"item-info",children:[Object(i.jsxs)("div",{className:"container-circle-icon",children:[a&&Object(i.jsx)("img",{alt:t,className:"img-info",src:a}),r&&Object(i.jsx)("div",{className:"img-info",children:r})]}),Object(i.jsxs)("div",{className:"block-info",children:[Object(i.jsx)("h3",{children:t}),Object(i.jsx)("p",{dangerouslySetInnerHTML:{__html:n}})]})]})}},158:function(e,t,n){},159:function(e,t,n){"use strict";var i=n(2),a=n(1),r=n(3).C?"#fff":"#333";t.a=function(e){var t=e.progress,n=e.error,o=e.onResend,c=e.sending,s=t.speed,l=t.percentage,d=t.finished,u=null,f=0;return Object(a.useEffect)((function(){if(0===f){var e=u.r.baseVal.value;f=2*e*Math.PI,u.style.strokeDasharray="".concat(f," ").concat(f),u.style.strokeDashoffset=0}var t=f-l/100*f;u&&(u.style.strokeDashoffset=t)}),[l,u]),Object(i.jsxs)("div",{className:"container-progress-circle",children:[Object(i.jsxs)("svg",{viewBox:"0 0 200 200",className:"progress-ring",children:[Object(i.jsx)("circle",{className:"progress-ring--outline",stroke:"#333",strokeWidth:"3",fill:"transparent",r:"98",cx:"100",cy:"100"}),Object(i.jsx)("circle",{ref:function(e){u=e},className:"progress-ring--circle",stroke:"#e4631e",strokeWidth:"3",fill:"transparent",r:"98",cx:"100",cy:"100"}),Object(i.jsx)("text",{fill:r,fontSize:"32",x:"50%",y:"45%",dominantBaseline:"middle",textAnchor:"middle",children:"".concat(l,"%")}),Object(i.jsx)("text",{fill:r,fontSize:"15",fontWeight:300,x:d?"47%":"50%",y:"58%",dominantBaseline:"middle",textAnchor:"middle",children:d?"Finished":n?"Failed":0===s?"Connecting..":"".concat(s," MB/s")}),Object(i.jsx)("text",{fill:r,fontSize:"10",x:d?"47%":"50%",y:"64%",dominantBaseline:"middle",textAnchor:"middle",children:d?"":n?"Failed":0===s?"":"".concat((8*s).toFixed(1)," Mbit")})]}),Object(i.jsx)("div",{className:"container-actions",children:d&&c&&Object(i.jsx)("span",{className:"link",onClick:o,children:"Share again?"})})]})}},160:function(e,t,n){},161:function(e,t,n){"use strict";var i=n(2);n(1),n(162);t.a=function(e){var t=e.file,n=t.size,a=t.name,r=(n/1e6).toFixed(2);return Object(i.jsxs)("div",{className:"item-file",children:[Object(i.jsx)("div",{className:"container-name",children:Object(i.jsx)("span",{className:"filename",children:a})}),Object(i.jsxs)("span",{className:"filesize",children:[r," MB"]})]})}},162:function(e,t,n){},224:function(e,t,n){},225:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/closed.8866ed50.svg"},226:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/download.5a80cb94.svg"},227:function(e,t,n){},243:function(e,t,n){"use strict";n.r(t);var i=n(2),a=n(1),r=n(30),o=n(27),c=n(22),s=n(145),l=n(52),d=n(159),u=n(54),f=n(56),m=n(3);n(160);function b(){var e=Object(r.c)(l.j),t=e.progress,n=e.error,a=e.errorMessage,o=Object(r.b)();return Object(i.jsx)(u.a,{children:Object(i.jsxs)("div",{className:"container-progress-outer",children:[Object(i.jsx)(f.a,{onClose:function(){return window.location=m.d}}),Object(i.jsxs)("div",{className:"container-progress",children:[Object(i.jsx)(d.a,{progress:t,onResend:function(){return o(Object(l.f)())}}),n&&Object(i.jsx)("span",{children:a})]})]})})}var p=n(41),h=n(21),v=n(6),g=n(5),j=n.n(g),w=n(9),x=n(148),O=n(53),y=n(161),k=n(59),_=(n(224),null),S=function(){var e=Object(r.b)(),t=Object(o.useHistory)(),c=Object(r.c)(l.j),s=c.files,d=c.loading,m=(c.shareCode,c.isMobile),b=Object(a.useState)(),g=Object(h.a)(b,2),S=g[0],C=g[1];return Object(a.useEffect)((function(){_&&clearTimeout(_),_=setTimeout((function(){d&&C(!0)}),m?3e4:1e4)}),[m]),Object(i.jsx)(u.a,{children:Object(i.jsxs)("div",{className:"transfer-receiver",children:[Object(i.jsx)(f.a,{onClose:function(){return t.push("/")}}),d||0===s.length?Object(i.jsx)(i.Fragment,{children:S?Object(i.jsxs)("div",{className:"transfer-receiver-inner-failed",children:[Object(i.jsx)("div",{className:"spacer"}),Object(i.jsx)("img",{src:n(225).default,className:"closed"}),Object(i.jsx)("h4",{children:"Sender has stopped sharing"}),Object(i.jsx)("p",{children:"The sender has either closed this transfer or is now offline. Please check if the sender has an active internet connection or ask for a new link."}),Object(i.jsxs)("p",{children:["Feel like something is wrong? Check our ",Object(i.jsx)(v.b,{to:"/faq",children:"FAQ"})]}),m&&Object(i.jsx)("p",{children:Object(i.jsx)("a",{target:"_blank",href:"https://dontkillmyapp.com/",children:"Or try turning off 'battery savers' on the sending device"})})]}):Object(i.jsxs)("div",{className:"loader",children:[Object(i.jsx)("div",{className:"spacer"}),Object(i.jsx)(k.a,{dark:!0}),Object(i.jsx)("div",{className:"spacer"}),m?Object(i.jsxs)("div",{children:[Object(i.jsx)("h4",{children:"Connecting to mobile device"}),Object(i.jsx)("p",{children:"This can take up to 30 seconds as the device may be on standby"}),Object(i.jsx)("p",{children:"Can't connect even after multiple attempts?"}),Object(i.jsx)("p",{children:Object(i.jsx)("a",{className:"link",target:"_blank",href:"https://dontkillmyapp.com/",children:"Try turning off 'battery savers' on the sending device"})})]}):Object(i.jsxs)("div",{children:[Object(i.jsx)("h4",{children:"Connecting to sender"}),Object(i.jsx)("p",{children:"Trying to establish a connection with the sender"})]})]})}):Object(i.jsxs)("div",{className:"transfer-receiver-inner",children:[Object(i.jsx)("div",{className:"container-files",children:Object(p.a)(s).map((function(e){return Object(i.jsx)(y.a,{file:e})}))}),m&&Object(i.jsx)("p",{children:"Click download within 30 seconds or otherwise refresh this page. Otherwise the connection will be closed save battery on the sending device."}),Object(i.jsx)("div",{className:"spacer"}),Object(i.jsx)(O.a,{title:"Download",onWhite:!0,icon:n(226).default,fileName:s[0].name||"",onClick:function(){return e(function(){var e=Object(w.a)(j.a.mark((function e(t){return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t(Object(l.h)()),x.a.getInstance().start()}catch(e){console.error(e)}case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}})]})]})})},C=n(151),N=n(146),T=n(157);n(227),t.default=function(){var e=Object(o.useHistory)(),t=Object(r.b)(),n=Object(c.b)().t,d=Object(r.c)(l.j)||{},u=d.started,f=d.progress,p=.3125*window.innerWidth;Object(a.useEffect)((function(){!function(){try{var e=document.createElement("script");e.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",e.async=!0,e.crossorigin="anonymous",document.body.appendChild(e),window.googletag=window.googletag||{cmd:[]},m.E?setTimeout((function(){try{googletag.cmd.push((function(){googletag.defineSlot("/22802365994/mobile-receiver-banner",["fluid",[320,50],[728,90],[468,60]],"div-gpt-ad-1660381691064-0").addService(googletag.pubads()),googletag.pubads().enableSingleRequest(),googletag.enableServices()})),googletag.cmd.push((function(){googletag.display("div-gpt-ad-1660381691064-0")}))}catch(e){console.error(e)}}),1e3):setTimeout((function(){try{googletag.cmd.push((function(){googletag.defineSlot("/22802365994/desktop-receiver-banner",[728,90],"div-gpt-ad-1660219559921-0").addService(googletag.pubads()),googletag.pubads().enableSingleRequest(),googletag.enableServices()})),googletag.cmd.push((function(){googletag.display("div-gpt-ad-1660219559921-0")}))}catch(e){console.error(e)}}),1e3)}catch(e){console.error(e)}}()}),[]),Object(a.useEffect)((function(){var e=function(){var e=window.pageYOffset;document.body.className=e>768?"white":""};if(!m.C)return window.addEventListener("scroll",e,{passive:!0}),function(){return window.removeEventListener("scroll",e)}}),[]),Object(a.useEffect)((function(){var e=localStorage.getItem("shareCode");e&&(e.length<8?setTimeout((function(){return alert(n("errors.transferCodeLength"))}),500):t(Object(C.a)(e)))}),[]);return Object(i.jsx)(s.a,{color:"main",title:n("receiver.pageTitle"),description:n("receiver.pageDescription"),children:Object(i.jsxs)("div",{className:"page-receiver",children:[Object(i.jsxs)("div",{className:"content-top",children:[(!N.a.isMobile()||!(null==f?void 0:f.finished))&&Object(i.jsx)("div",{className:"left",children:u?Object(i.jsx)(b,{}):Object(i.jsx)(S,{})}),Object(i.jsx)("div",{className:"right",children:Object(i.jsx)("div",{className:"right-centered",children:(null==f?void 0:f.finished)?Object(i.jsxs)("div",{className:"help-us-grow",children:[Object(i.jsxs)("div",{children:[Object(i.jsx)("h1",{children:n("receiver.finished.title")}),n("receiver.finished.description"),Object(i.jsx)("br",{}),Object(i.jsx)("br",{})]}),Object(i.jsx)("div",{children:Object(i.jsxs)("div",{className:"cols",children:[Object(i.jsx)("div",{className:"col",children:Object(i.jsx)(O.a,{onDark:!0,bouncy:!0,title:n("receiver.finished.donate"),onClick:function(){return e.push("/help-us-grow")}})}),Object(i.jsx)("div",{className:"col",children:Object(i.jsx)(O.a,{title:n("receiver.finished.feedback"),onClick:function(){return e.push("/contact")}})})]})})]}):Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)("h1",{children:n("receiver.idle.title")}),u?Object(i.jsx)("p",{children:n("receiver.feelFree")}):Object(i.jsx)(i.Fragment,{children:Object(i.jsx)("p",{children:n("receiver.idle.description")})})]})})})]}
1),Object(i.jsx)("div",{className:"content-middle",children:!m.E&&Object(i.jsx)("div",{className:"mad",id:"div-gpt-ad-1660219559921-0",style:{minWidth:"728px",minHeight:"90px"}})}),Object(i.jsxs)("div",{className:"content-bottom",children:[Object(i.jsxs)("div",{className:"container-informative",children:[Object(i.jsx)("h2",{children:n("receiver.fold.title")}),Object(i.jsx)("p",{className:"italic",children:n("receiver.fold.description")}),Object(i.jsx)(T.a,{title:n("receiver.fold.tips.1.title"),text:n("receiver.fold.tips.1.text"),textIcon:"ð"}),Object(i.jsx)(T.a,{title:n("receiver.fold.tips.2.title"),text:n("receiver.fold.tips.2.text"),textIcon:"ð±"}),Object(i.jsx)(T.a,{title:n("receiver.fold.tips.3.title"),text:n("receiver.fold.tips.3.text"),textIcon:"ð»"}),Object(i.jsx)(T.a,{title:n("receiver.fold.tips.4.title"),text:n("receiver.fold.tips.4.text"),textIcon:"ð"}),Object(i.jsx)(T.a,{title:n("receiver.fold.tips.5.title"),text:n("receiver.fold.tips.5.text"),textIcon:"ð"}),Object(i.jsx)(T.a,{title:n("receiver.fold.tips.6.title"),text:n("receiver.fold.tips.6.text"),textIcon:"ð"}),Object(i.jsx)(T.a,{title:n("receiver.fold.tips.7.title"),text:n("receiver.fold.tips.7.text"),textIcon:"ð"}),Object(i.jsx)("div",{className:"spacer"})]}),Object(i.jsx)("div",{className:"spacer"})]}),Object(i.jsx)("div",{className:"spacer"}),m.E&&Object(i.jsx)("footer",{className:"footer",children:Object(i.jsx)("div",{id:"div-gpt-ad-1660381691064-0",style:{maxHeight:"".concat(p,"px"),minWidth:"320px",minHeight:"50px",width:"".concat(window.innerWidth,"px")}})})]})})}}}]);
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.