"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[403],{3477:(e,t,r)=>{r.d(t,{A:()=>f});var n=r(2367),a=r(9755),o=r(5886),s=r(8008),i=r(5007),c=r(3205),l=r(758),u=r(1249),d=r(2685),p=r(3880),m=r(6070);function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var x=function(e){function t(e){var r,a,i,u;(0,n.A)(this,t),a=this,i=t,u=[e],i=(0,s.A)(i),r=(0,o.A)(a,h()?Reflect.construct(i,u||[],(0,s.A)(a).constructor):i.apply(a,u)),(0,c.A)(r,"modal",(0,l.createRef)()),(0,c.A)(r,"overlay",(0,l.createRef)()),(0,c.A)(r,"handleOutsideClick",(function(e){if(!1!==r.state.showModal&&e){var t=e.target.nodeName;t&&"main"===t.toLowerCase()&&r.removeModal()}})),(0,c.A)(r,"removeModal",(function(){var e=r.props.onClose;r.setState({showModal:!1},(function(){e&&e()}))})),(0,c.A)(r,"handleKeyUp",(function(e){27===e.keyCode&&(e.preventDefault(),r.removeModal())}));var d=r.props.isOpen;return r.state={showModal:d||!1},r}return(0,i.A)(t,e),(0,a.A)(t,[{key:"componentDidMount",value:function(){window.addEventListener("keyup",this.handleKeyUp,!1),this.overlay.current&&this.overlay.current.addEventListener("click",this.handleOutsideClick,!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keyup",this.handleKeyUp,!1),this.overlay.current&&this.overlay.current.removeEventListener("click",this.handleOutsideClick,!1)}},{key:"render",value:function(){if(!1===this.state.showModal)return null;var e=this.props.userIntl.isRTL;return(0,m.jsx)("main",{ref:this.overlay,className:"flex justify-center items-center inset-0 fixed bg-gray-500 bg-opacity-40 z-50",children:(0,m.jsxs)("div",{className:"bg-white dark:bg-night-400 px-6 py-10 sm:px-10 shadow relative text-center opacity-1 ".concat(this.props.className),ref:this.modal,children:[this.props.children,(0,m.jsx)("button",{type:"button",className:"absolute -top-4 ".concat(e?"-left-4":"-right-4"),onClick:this.removeModal,children:(0,m.jsx)(u.g,{icon:d.IjD,size:"3x",className:"text-blue-500"})})]})})}}])}(l.Component);const f=(0,p.A)(x)},875:(e,t,r)=>{r.d(t,{A:()=>m});var n=r(2367),a=r(9755),o=r(5886),s=r(8008),i=r(5007),c=r(3205),l=r(758),u=r(4440),d=r(6070);function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}const m=function(e){function t(){var e,r,a,i;(0,n.A)(this,t);for(var u=arguments.length,m=new Array(u),h=0;h{r.d(t,{A:()=>f});var n=r(2367),a=r(9755),o=r(5886),s=r(8008),i=r(5007),c=r(3205),l=r(758),u=r(4440),d=r(3477),p=r(8372),m=r(358),h=r(6070);function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}const f=function(e){function t(){var e,r,a,i;(0,n.A)(this,t);for(var l=arguments.length,d=new Array(l),f=0;f{r.d(t,{A:()=>c});var n=r(3205),a=r(4311),o=r(6070);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t{r.r(t),r.d(t,{default:()=>fe});var n=r(2367),a=r(9755),o=r(5886),s=r(8008),i=r(5007),c=r(3205),l=r(758),u=r(5557),d=r(1249),p=r(2685),m=r(4440),h=r(1884),x=r(3615),f=r(3880);var g,y=r(6070);function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}var v=function(e){function t(){return(0,n.A)(this,t),e=this,r=t,a=arguments,r=(0,s.A)(r),(0,o.A)(e,b()?Reflect.construct(r,a||[],(0,s.A)(e).constructor):r.apply(e,a));var e,r,a}return(0,i.A)(t,e),(0,a.A)(t,[{key:"renderButtons",value:function(){var e=this.props.userIntl.isRTL?"mr-6":"";return(0,y.jsxs)("div",{className:"container mx-auto list-reset leading-normal max-w-2xl sm:flex sm:justify-center",children:[(0,y.jsxs)("a",{className:"transition-opacity bg-white dark:bg-night-400 border border-blue-400 text-blue-400 text-sm hover:opacity-80 px-4 leading-loose py-1 no-underline shadow w-1/3 text-center mr-6 truncate",rel:"noreferrer noopener",target:"_blank",onClick:t.handleShareClick,href:"https://www.facebook.com/sharer/sharer.php?u=".concat(t.location),children:[(0,y.jsx)(d.g,{icon:x.Kjv,className:"mr-2"}),(0,y.jsx)(m.A,{id:"T7Cn8Y"})]}),(0,y.jsxs)("a",{className:"transition-opacity bg-white border dark:bg-night-400 border-blue-400 text-blue-400 text-sm hover:opacity-80 px-4 py-1 leading-loose no-underline shadow w-1/3 text-center mr-6 truncate",rel:"noreferrer noopener",target:"_blank",onClick:t.handleShareClick,href:"https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(t.location)),children:[(0,y.jsx)(d.g,{icon:x.HQ1,className:"mx-2"}),(0,y.jsx)(m.A,{id:"uWrxDJ",values:{1:"@"}})]}),(0,y.jsxs)("a",{className:"".concat(e," transition-opacity bg-white dark:bg-night-400 border border-blue-400 text-blue-400 text-sm hover:opacity-80 px-4 py-1 leading-loose no-underlin shadow w-1/3 text-center truncate"),rel:"noreferrer noopener",target:"_blank",onClick:t.handleShareClick,href:"https://vk.com/share.php?url=".concat(encodeURIComponent(t.location)),children:[(0,y.jsx)(d.g,{icon:x.b82,className:"mx-2"}),(0,y.jsx)(m.A,{id:"VGAmxc"})]})]})}},{key:"render",value:function(){return navigator.share?(0,y.jsx)("section",{className:"bg-gray-100 container mx-auto max-w-5xl dark:bg-night-400 py-3 px-4 sm:block mt-2 mb-4",children:t.renderMobileShare()}):(0,y.jsx)("section",{className:"container mx-auto max-w-5xl bg-gray-100 dark:bg-night-400 py-4 px-4 hidden sm:block mt-2 mb-4",children:this.renderButtons()})}}],[{key:"renderMobileShare",value:function(){return(0,y.jsx)("div",{className:"mx-auto leading-normal max-w-lg sm:flex sm:justify-center",children:(0,y.jsxs)("button",{type:"button",className:"bg-white dark:bg-night-400 text-sm px-4 leading-loose py-2 border no-underline border-blue-400 text-blue-400 shadow w-full block text-center",onClick:t.handleMobileShare,children:[(0,y.jsx)(d.g,{icon:p.QOt,className:"mr-2"}),(0,y.jsx)(m.A,{id:"3Fr5Rs"})]})})}}])}(l.Component);g=v,(0,c.A)(v,"location",document.location.href),(0,c.A)(v,"handleShareClick",(function(e){e.stopPropagation(),e.preventDefault();var t=("a"!==e.target.nodeName.toLowerCase()?function(e,t){for(var r=e.parentElement,n=null;r;)r.nodeName.toLowerCase()===t?(n=r,r=null):r=r.parentElement;return n}(e.target,"a"):e.target).getAttribute("href");window.open(t,"share","width=600,height=400")})),(0,c.A)(v,"handleMobileShare",(function(){navigator.share&&navigator.share({title:"Hey, check this out!",text:g.location})}));const j=(0,f.A)(v);var A=r(1742),w=r(875);function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}const N=function(e){function t(){return(0,n.A)(this,t),e=this,r=t,a=arguments,r=(0,s.A)(r),(0,o.A)(e,k()?Reflect.construct(r,a||[],(0,s.A)(e).constructor):r.apply(e,a));var e,r,a}return(0,i.A)(t,e),(0,a.A)(t,[{key:"componentDidMount",value:function(){var e=this.props.response;document.title=e.title}},{key:"render",value:function(){var e=this.props.response;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(w.A,{parentStyle:!0,query:{type:2,url:e.request.url}}),(0,y.jsxs)("div",{className:"md:flex justify-center items-center text-gray-500 px-6 pb-4 pt-6 text-lg text-center leading-normal dark:text-gray-200",children:[(0,y.jsx)(d.g,{icon:p.MjD,className:"mx-4"}),(0,y.jsx)(m.A,{id:"e2HdA6"}),(0,y.jsx)("span",{className:"mx-1",children:"-"})," ",e.title]}),t.renderContent(e.formats)]})}}],[{key:"renderElement",value:function(e,t){var r="/process?url=".concat(e.pageAddress),n=e.thumbnail;return(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"flex justify-between items-center bg-gray-100 dark:bg-night-400 px-4 py-3 truncate text-blue-500 relative leading-normal sm:leading-none",children:[(0,y.jsx)("div",{className:"truncate w-full sm:w-8/12",children:(0,y.jsx)(A.N_,{href:"!#",to:r,className:"no-underline hover:underline leading-5",children:e.title})}),(0,y.jsx)(A.N_,{href:"!#",to:r,className:"hidden sm:inline-block no-underline text-white transition-opacity hover:opacity-80 shadow leading-normal px-5 py-1 text-sm uppercase bg-blue-500 ring-2",children:(0,y.jsx)(m.A,{id:"OInBzh"})})]}),(0,y.jsxs)("div",{className:"content flex flex-col sm:flex-row justify-center items-center sm:h-36 px-0 sm:px-4 py-3",children:[(0,y.jsx)(A.N_,{href:"!#",to:r,className:"block sm:mr-3 relative w-full sm:w-1/4 overflow-hidden",children:(0,y.jsxs)("picture",{className:"block shadow transform hover:scale-125 transition-transform",children:[(0,y.jsx)("source",{srcSet:n,type:"image/jpeg"}),(0,y.jsx)("img",{src:n,loading:"lazy",alt:e.title,className:"scale-1 h-42 px-4 sm:px-0 sm:h-24 mx-auto"})]})}),(0,y.jsxs)("div",{className:"p-3 w-full sm:w-3/4",children:[(0,y.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-200 mb-2",children:["By","uploaderAddress"in e?(0,y.jsx)(A.N_,{href:"!#",to:"process?url=https://www.youtube.com".concat(e.uploaderAddress),className:"text-blue-500 no-underline hover:underline ml-1",children:e.uploader}):(0,y.jsx)("span",{className:"ml-1 capitalize",children:e.uploader})]}),(0,y.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-200 leading-normal break-words",children:e.desc})]})]})]},"".concat(e.id,"_").concat(t))}},{key:"renderContent",value:function(e){var r=[];return e.forEach((function(e,n){r.push(t.renderElement(e,n))})),(0,y.jsx)("section",{className:"py-6 px-4",children:r})}}])}(l.Component);function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}const C=function(e){function t(){return(0,n.A)(this,t),e=this,r=t,a=arguments,r=(0,s.A)(r),(0,o.A)(e,O()?Reflect.construct(r,a||[],(0,s.A)(e).constructor):r.apply(e,a));var e,r,a}return(0,i.A)(t,e),(0,a.A)(t,[{key:"componentDidMount",value:function(){var e=this.props.response;document.title=e.title}},{key:"render",value:function(){var e=this.props.response;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(w.A,{parentStyle:!0,query:{type:0,url:e.request.url}}),(0,y.jsxs)("div",{className:"mt-4 capitalize md:flex justify-center items-center text-gray-500 px-6 py-4 text-lg text-center leading-normal dark:text-gray-200",children:[(0,y.jsx)(d.g,{icon:p.CQO,className:"mx-4"}),e.title]}),t.renderContent(e.formats)]})}}],[{key:"renderElement",value:function(e,t){var r="process?url=".concat(encodeURIComponent(e.url));return(0,y.jsxs)("div",{className:"flex flex-col sm:flex-row justify-between items-center mb-4 py-4 text-gray-600 dark:text-gray-200 border-b-2 dark:border-night-500 border-gray-200 px-4",children:[(0,y.jsxs)("span",{className:"hidden sm:block w-12 text-center",children:[t+1,"."]}),(0,y.jsx)("div",{className:"w-full sm:w-1/2 lg:w-8/12",children:(0,y.jsx)(A.N_,{href:"!#",to:r,className:"block text-blue-500 no-underline hover:underline w-full truncate",children:e.title})}),(0,y.jsx)("div",{className:"w-full sm:w-1/2 lg:w-4/12 text-center sm:text-right mt-4 sm:mt-0",children:(0,y.jsx)(A.N_,{href:"!#",to:r,className:"inline-block px-8 sm:px-4 py-1 mx-4 text-sm uppercase tracking-wide shadow-inner text-blue-500 border border-blue-500 transition-opacity hover:opacity-80 cursor-pointer no-underline truncate",children:(0,y.jsx)(m.A,{id:"OInBzh"})})}),(0,y.jsx)("div",{className:"clearfix"})]},t)}},{key:"renderContent",value:function(e){var r=[];return e.forEach((function(e,n){r.push(t.renderElement(e,n))})),(0,y.jsx)("section",{className:"py-6 px-4 mb-12",children:r})}}])}(l.Component);var S=r(5043),R=r.n(S),B=r(6495);function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}var I=function(e){function t(){var e,r,a,i;(0,n.A)(this,t);for(var l=arguments.length,u=new Array(l),h=0;h=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,i=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){i=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(i)throw o}}}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,i=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){i=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(i)throw o}}}}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]&&arguments[1]?t&&"message"in t?e.changeErrorState(t.message):e.setState({response:t,error:!1,isLoading:!t}):e.changeErrorState("NO_SEARCH")})),(0,c.A)(e,"changeIsLoadingState",(function(t){e.setState({isLoading:t})})),(0,c.A)(e,"changeErrorState",(function(t){e.setState({error:t,isLoading:!t})})),e}return(0,i.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this.props,r=e.initObject,n=e.location,a=e.history,o=e.match;if("engine"in o.params&&void 0!==o.params.engine&&o.params.engine in r.searchProviders==!1)return(0,y.jsx)(u.rd,{to:"/"});var s=this.state,i=s.error,c=s.response,l=s.isLoading;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(h.A,{initObject:r,pageType:"process",location:n,history:a,match:o,setResponse:this.setResponse,isLoading:l,changeIsLoadingState:this.changeIsLoadingState,changeErrorState:this.changeErrorState}),(0,y.jsx)(j,{initObject:r}),i&&t.renderError(i),i&&(0,y.jsx)(de,{initObject:r}),c&&!c.isCached&&(0,y.jsx)(de,{initObject:r}),c&&(0,y.jsx)(oe,{data:c,initObject:r})]})}}])}(l.Component);pe=xe,(0,c.A)(xe,"getTranslation",(function(e){var t=e;if(-1!==e.indexOf("NOT_SUPPORTED"))return(0,y.jsx)(m.A,{id:"enZexa",values:{1:e.replace("NOT_SUPPORTED","")}});var r={"Invalid access token":(0,y.jsx)(m.A,{id:"E/w50J"}),NO_LINKS:(0,y.jsx)(m.A,{id:"HSZY8Z"}),BLOCKED:(0,y.jsx)(m.A,{id:"PMWwIp"}),please_wait_limit_reached:(0,y.jsx)(m.A,{id:"YbvsVD"})};return e in r?r[e]:t})),(0,c.A)(xe,"renderError",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t="";return e&&(t=String(e)),(t=pe.getTranslation(t))&&"NO_SEARCH"!==t||(t=(0,y.jsx)(m.A,{id:"YF8eH3"})),(0,y.jsxs)("div",{className:"max-w-3xl mx-auto border border-r-0 border-l-0 md:border-r md:border-l border-red-400 text-center px-4 py-6 my-10 sm:my-16 leading-normal ",children:[(0,y.jsx)(d.g,{icon:p.zpE,className:"text-4xl mr-4 text-red-400"}),(0,y.jsx)("p",{className:"text-red-400 mt-4 text-lg",children:t}),(0,y.jsx)(me.A,{})]})}));const fe=(0,se.A)(xe)}}]);