text: (window.webpackJsonp=window.webpackJsonp||[]).push([["search"],{"0VM3":function(e,t,a){"use strict";var n,r,i,s=a("17x9"),o=a.n(s),c=a("1OyB"),l=a("vuIU"),p=a("md7G"),u=a("foSv"),m=a("Ji7U"),f=a("q1tI"),d=a.n(f),h=a("9C/b"),g=a("IMgn"),b=a("0d/v"),y=a("bbZa"),v=a("KngK"),x=a("NNov"),k=a.n(x),E=Object(h.a)((i=r=function(e){function t(){return Object(c.a)(this,t),Object(p.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.searchType,n=void 0===a?"gif":a,r=t.toggleSearchType,i=t.setSearchType,s=t.fetchGifsFromUrl,o=t.width,c=void 0===o?206:o,l=t.height,p=void 0===l?26:l,u=t.term,m=void 0===u?"":u,f=t.isMobile,h=t.className,x="sticker"===n?"gif":"sticker",E="sticker"===x,w="".concat(m.replace(/stickers|sticker|transparent/gi,"").trim().replace(/\s+/g,"-")),O="/search/".concat(w).concat(E?"-stickers":"").concat(document.location.search),j=d.a.createElement(g.a,{toggle:function(){f&&(i(x),s(O,{groupId:O})),setTimeout(function(){if(f){var t=e.props,a=t.history.replace,n=t.location.state;a(O,n)}Object(y.b)({category:"Search Page",action:"".concat(x," Toggle"),label:m}),Object(y.e)(O)},50)},isOn:E,height:p,width:c,offColor:v.giphyGreen,onElement:d.a.createElement("span",{className:k.a.toggleItem,style:{height:p}},"GIFs"),offElement:d.a.createElement("span",{className:k.a.toggleItem,style:{height:p}},"Stickers")});return f?d.a.createElement("div",null,j):d.a.createElement("div",{className:[k.a.container,h].join(" ")},d.a.createElement(b.a,{onClick:function(){r(n)},href:O},j))}}]),t}(f.PureComponent),r.propTypes={searchType:o.a.string,toggleSearchType:o.a.func},n=i))||n,w=a("/MKj"),O=a("a0ZI"),j=a("cLpb"),_=a("obXj"),T=a("QWMA");a.d(t,"a",function(){return I});t.b=Object(w.b)(function(e){return{searchType:j.T(e)}},function(e){return{toggleSearchType:function(t){var a=Object(T.c)(document.location.pathname,["-sticker","-stickers","-transparent"]);"sticker"===t?(e(Object(_.c)("gif")),e(Object(O.e)("".concat(a).concat(document.location.search),{groupId:a}))):(e(Object(_.c)("sticker")),e(Object(O.e)("".concat(a,"-stickers").concat(document.location.search),{groupId:"".concat(a,"-stickers")})))}}})(E);var I=Object(w.b)(function(e){return{searchType:j.T(e)}},{setSearchType:_.c,fetchGifsFromUrl:O.e})(E)},3:function(e,t,a){a("ul8m"),e.exports=a("DI/o")},"3ew5":function(e,t,a){(t=e.exports=a("I1BE")(!1)).push([e.i,'.lT1WRrR2W3-mCmf_vU4nz{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.lT1WRrR2W3-mCmf_vU4nz:before{background:-webkit-gradient(linear,left top,left bottom,from(#000),to(transparent));background:-webkit-linear-gradient(top,#000,transparent);background:linear-gradient(180deg,#000 0,transparent);content:"";height:100px;left:0;position:absolute;top:0;width:100%}',""]),t.locals={animatedBackground:"lT1WRrR2W3-mCmf_vU4nz"}},"DI/o":function(e,t,a){"use strict";a.r(t),function(e){var t=a("q1tI"),n=a.n(t),r=(a("tAy4"),a("i8i4")),i=a.n(r),s=a("0cfB"),o=a("pc4+");e.Giphy.renderSearch=function(e,t){i.a.render(n.a.createElement(s.AppContainer,null,n.a.createElement(o.a,t)),e)}}.call(this,a("yLpj"))},NNov:function(e,t,a){var n=a("oWr8");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(n,r);n.locals&&(e.exports=n.locals)},Owzl:function(e,t,a){"use strict";a.d(t,"d",function(){return v}),a.d(t,"a",function(){return T}),a.d(t,"c",function(){return I}),a.d(t,"b",function(){return S});var n=a("wx14"),r=a("E+oP"),i=a.n(r),s=a("q1tI"),o=a.n(s),c=a("/MKj"),l=a("17x9"),p=a.n(l),u=a("IMgn"),m=a("lJyk"),f=a.n(m),d=a("sNT9"),h=a("0VM3"),g=a("YSRP"),b=a("eohh"),y=a("cLpb"),v=function(e){var t=e.css,a=e.term,n=e.displayTerm,r=e.gifCount,i=e.isSticker,s=e.user.username;return o.a.createElement("div",{className:t.results},o.a.createElement("h1",{className:t.searchTerm},function(e,t){return e||(t?"All the ".concat(t," GIFs"):a)}(n,s),"number"==typeof r&&o.a.createElement("span",{"data-gif-count":r.toLocaleString(),className:t.number}," ".concat(i?"Sticker":"GIF").concat(1===r?"":"s"))))},x=function(e){var t=e.sorting;return o.a.createElement("div",{className:f.a.sort},o.a.createElement("span",null,"Sort:",o.a.createElement("a",{href:"?sort=relevant",className:"recent"!==t?f.a.activeSortLink:f.a.sortLink},"Relevant"),o.a.createElement("a",{href:"?sort=recent",className:"recent"===t?f.a.activeSortLink:f.a.sortLink},"Newest")))},k=function(){return o.a.createElement("span",{className:f.a.autoplayLabel},"Auto Play")},E=function(e){var t=e.autoPlay,a=e.onToggleAutoPlay;return o.a.createElement(u.a,{isOn:t,onElement:o.a.createElement("i",{className:"ss-play"}),offElement:o.a.createElement("i",{className:"ss-pause"}),toggle:a})},w=function(e){var t=e.autoPlay,a=e.sorting,n=e.onToggleAutoPlay,r=e.canSort,i=void 0===r||r;return o.a.createElement("div",{className:f.a.header},o.a.createElement("div",null,i&&o.a.createElement(x,{sorting:a}),o.a.createElement("div",{className:f.a.autoplay},o.a.createElement(E,{autoPlay:t,onToggleAutoPlay:n}))))},O=function(e){var t=e.suggestion,a=e.suggestionUrl,n=e.isSticker,r=e.displayTerm,s=!i()(t),c=s?"Did you mean":"Try searching for",l=s?a:"/search/".concat(r).concat(n?"":"-stickers"),p=s?t:n?"GIFs ":"Stickers ",u=s?"?":"instead?";return o.a.createElement("div",{className:f.a.noResults},o.a.createElement("span",null,"No ".concat(n?"Stickers":"GIFs"," found for ").concat(r)),o.a.createElement("span",null,c," ",o.a.createElement("a",{href:l},p),u))},j=function(e){var t=e.user.username;return o.a.createElement("div",{className:f.a.noResults},o.a.createElement("span",null,"Oops sorry! @".concat(t," does not have a Verified Channel.")),o.a.createElement("span",null,prompt," ",o.a.createElement("a",{href:"/faq"},"Learn more about verification on GIPHY.")))},_=function(e){var t=e.term;return o.a.createElement("div",{className:f.a.noResults},o.a.createElement("span",null,"Oops sorry! ".concat(t," is not a GIPHY Channel.")),o.a.createElement("span",null,prompt," ",o.a.createElement("a",{href:"/faq"},"Learn more about Social Search on GIPHY.")))},T=function(e){var t=e.autoPlay,a=e.onToggleAutoPlay;return o.a.createElement("div",{className:f.a.autoPlayHeader},o.a.createElement(k,null),o.a.createElement(E,{autoPlay:t,onToggleAutoPlay:a}))},I=Object(c.b)(function(e){return{autoPlay:Object(y.e)(e)}},{onToggleAutoPlay:b.d})(function(e){var t=e.autoPlay,a=e.onToggleAutoPlay,n=e.searchInfo,r=n.displayTerm,i=n.term,s=n.sorting,c=e.css,l=void 0===c?{}:c,p=e.canSort,u=void 0===p||p,m=e.isSticker,d=l.exploreUpperHeader,h=void 0===d?f.a.exploreUpperHeader:d,g=l.exploreSearchTerm,b=void 0===g?f.a.exploreSearchTerm:g;return o.a.createElement("div",{className:h},o.a.createElement("div",{className:f.a.exploreResults},o.a.createElement("h1",{className:b},"Explore ",o.a.createElement("span",{className:f.a.highlight},r||i)," ",m?"Stickers":"GIFs")),o.a.createElement("div",{className:f.a.exploreHeader},o.a.createElement("div",null,u&&o.a.createElement(x,{sorting:s}),o.a.createElement("div",{className:f.a.autoplay},o.a.createElement(E,{autoPlay:t,onToggleAutoPlay:a})))))}),S=function(e){var t=e.isSticker,a=e.searchInfo,r=a.term,i=a.displayTerm;switch(a.error.type){case"no_results_suggestion":return o.a.createElement(O,Object(n.a)({},a,{isSticker:t,term:r,displayTerm:i}));case"user_not_verified":return o.a.createElement(j,a);case"invalid_user":return o.a.createElement(_,a);default:return null}},P=function(e){var t=e.searchResponseId,a=e.isSticker,r=e.autoPlay,i=e.searchInfo,s=e.toggleAutoPlay,c=e.channels,l=void 0===c?[]:c,p=e.user,u=i.sorting,m=i.term,b=i.error,y=i.user;return o.a.createElement("div",null,o.a.createElement("div",{className:f.a.upperHeader},o.a.createElement(v,Object(n.a)({css:f.a},i,{gifCount:i.total,isSticker:a})),o.a.createElement(d.a,Object(n.a)({isMobile:!1,searchResponseId:t,css:f.a,user:p},i,{isSticker:a}))),!y.username&&l.length>0&&o.a.createElement(g.b,{searchResponseId:t,items:l,user:p,css:f.a,paginates:!0}),o.a.createElement(h.b,{className:f.a.searchTypeToggle,term:"".concat(m).concat(a?" sticker":"")}),b?o.a.createElement(S,{isSticker:a,searchInfo:i}):o.a.createElement(w,{autoPlay:r,sorting:u,onToggleAutoPlay:s,term:m,isSticker:a}))};P.propTypes={autoPlay:p.a.bool.isRequired,searchInfo:p.a.shape({term:p.a.string.isRequired,total:p.a.number.isRequired,sorting:p.a.string,searchResponseId:p.a.string,suggestion:p.a.string,suggestionUrl:p.a.string,isSticker:p.a.bool.isRequired}),toggleAutoPlay:p.a.func.isRequired,channels:p.a.array},t.e=P},VT1s:function(e,t,a){"use strict";var n,r,i,s,o,c,l=a("q1tI"),p=a.n(l),u=a("vOnD"),m=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},f=u.default.div.withConfig({displayName:"NoFavoritesContainer",componentId:"sc-q70q1z"})(n||(n=m(["\n    font-family: 'nexablack', sans-serif;\n    line-height: 30px;\n    font-size: 24px;\n    -webkit-font-smoothing: antialiased;\n    display: flex;\n    flex-direction: column;\n    align-content: center;\n    justify-content: center;\n    text-align: center;\n    margin-top: 20px;\n"],["\n    font-family: 'nexablack', sans-serif;\n    line-height: 30px;\n    font-size: 24px;\n    -webkit-font-smoothing: antialiased;\n    display: flex;\n    flex-direction: column;\n    align-content: center;\n    justify-content: center;\n    text-align: center;\n    margin-top: 20px;\n"]))),d=u.default.div.withConfig({displayName:"BigText",componentId:"sc-cgc17v"})(r||(r=m(["\n    font-size: 36px;\n    margin-bottom: 10px;\n"],["\n    font-size: 36px;\n    margin-bottom: 10px;\n"]))),h=u.default.div.withConfig({displayName:"BigHeart",componentId:"sc-5q7x3"})(i||(i=m(["\n    height: 50px;\n    margin: 12px auto;\n    position: relative;\n    width: 60px;\n"],["\n    height: 50px;\n    margin: 12px auto;\n    position: relative;\n    width: 60px;\n"]))),g=Object(u.keyframes)(s||(s=m(["\n 0% {\n        opacity: 1;\n        transform: scale(1.2);\n    }\n    100% {\n        opacity: 1;\n        transform: scale(1);\n    }\n"],["\n 0% {\n        opacity: 1;\n        transform: scale(1.2);\n    }\n    100% {\n        opacity: 1;\n        transform: scale(1);\n    }\n"]))),b=u.default.img.withConfig({displayName:"BigHeartImg",componentId:"sc-xo60ki"})(o||(o=m(["\n    height: 100%;\n    left: 0;\n    position: absolute;\n    top: 0;\n    width: 100%;\n    animation: "," 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0s infinite;\n"],["\n    height: 100%;\n    left: 0;\n    position: absolute;\n    top: 0;\n    width: 100%;\n    animation: "," 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0s infinite;\n"])),g),y=Object(u.default)(b).withConfig({displayName:"BigHeartImgAlt",componentId:"sc-1i71j8k"})(c||(c=m(["\n    animation-delay: 0.25s;\n    animation-fill-mode: forwards;\n"],["\n    animation-delay: 0.25s;\n    animation-fill-mode: forwards;\n"])));t.a=function(){return p.a.createElement(f,null,p.a.createElement(d,null,p.a.createElement("span",null,"Go"),p.a.createElement(h,null,p.a.createElement(b,{src:"/static/img/svg/heart.svg",alt:""}),p.a.createElement(y,{src:"/static/img/svg/heart.svg",alt:""})),p.a.createElement("span",null,"GIFs.")),p.a.createElement("span",null,"They'll save here!"))}},ZuWJ:function(e,t,a){"use strict";a.d(t,"a",function(){return O});var n,r,i,s=a("1OyB"),o=a("vuIU"),c=a("md7G"),l=a("foSv"),p=a("Ji7U"),u=a("Y65e"),m=a("q1tI"),f=a.n(m),d=a("17x9"),h=a.n(d),g=a("57gW"),b=a("2/75"),y=a("rhmX"),v=a.n(y),x=2,k=5,E=7,w=function(e,t){var a=e[0];return e.push(e.shift()),{x:Math.random()*window.innerWidth,y:window.innerHeight+(t?0:Math.random()*window.innerHeight),speed:x+Math.random()*(k-x),img:a}},O=(i=r=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(r)))).canvas=null,a.canvasContext=null,a.assets=[],a.drawInterval=null,a.items=[],a}return Object(p.a)(t,e),Object(o.a)(t,[{key:"__assetImageLoaded",value:function(e){this.assets=e;for(var t=0;t<E;t++){var a=w(this.assets);this.items.push(a)}this.startAnimating()}},{key:"_draw",value:function(){if(this.canvas&&this.canvasContext){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=window.innerWidth,this.canvas.height=window.innerHeight,this.canvas.style.webkitTransform="rotate("+this.rotateX+"deg)";for(var e=0;e<this.items.length;e++){var t=this.items[e],a=t.speed/k,n=t.img.naturalWidth/a,r=t.img.naturalHeight/a;this.canvasContext.drawImage(t.img,t.x-n/2,t.y,n,r),t.y-=t.speed,t.y<-r&&(this.items[e]=w(this.assets,!0))}}}},{key:"componentDidMount",value:function(){this.props.assetUrls&&(this.canvasContext=this.canvas.getContext("2d"),b.a.preloadImage(this.props.assetUrls).then(this.__assetImageLoaded))}},{key:"componentWillUnmount",value:function(){this.stopAnimating()}},{key:"startAnimating",value:function(){this.stopAnimating(),this.drawInterval=setInterval(this._draw,30)}},{key:"stopAnimating",value:function(){clearInterval(this.drawInterval)}},{key:"render",value:function(){var e=this;return f.a.createElement("div",{className:v.a.animatedBackground,ref:function(t){return e.el=t}},f.a.createElement("canvas",{ref:function(t){return e.canvas=t}}))}}]),t}(m.PureComponent),r.propTypes={assetUrls:h.a.array},n=i,Object(u.a)(n.prototype,"__assetImageLoaded",[g.a],Object.getOwnPropertyDescriptor(n.prototype,"__assetImageLoaded"),n.prototype),Object(u.a)(n.prototype,"_draw",[g.a],Object.getOwnPropertyDescriptor(n.prototype,"_draw"),n.prototype),n)},lJyk:function(e,t,a){var n=a("lfpA");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(n,r);n.locals&&(e.exports=n.locals)},lfpA:function(e,t,a){(t=e.exports=a("I1BE")(!1)).i(a("Ff8r"),void 0),t.i(a("i85P"),void 0),t.i(a("vzFC"),void 0),t.i(a("fJZ6"),void 0),t.i(a("u2f+"),void 0),t.push([e.i,"._3dLOB3rLbGEEo5h8-PwvwQ{font-weight:700;text-transform:none;display:block;color:"+a("Ff8r").locals.giphyWhite+"}._1c28EcNje6C468vi0jO0Uk{display:inline}._3RQeLpXgzHp_6Bo2oOVY3O{width:50%;text-align:left;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}._3nBtKjCQJGwV5q-PVpsTsz{overflow:hidden}._3Pso07QCmjZWmt4UMB0H1k{clear:both;padding:20px;text-align:center}._3Pso07QCmjZWmt4UMB0H1k span{display:block}.VeCbBh4fXHfCHfzFs5sEq{width:50%}._2SJKKTR1aMK3kUasjbiVwE{margin:10px 0 15px;position:relative}._2KW2EZ0x9ETjF10-OOlEen,._2SJKKTR1aMK3kUasjbiVwE{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}._2KW2EZ0x9ETjF10-OOlEen{padding-bottom:32px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}._1SJi8Dg53PK_QXhegdrab4{clear:none;float:right;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}._1lWXeFze5mAi0tX3MEHDwZ{margin-bottom:16px}.AQ_792pSYn88mX0IpskqI{text-align:right;margin-top:15px}._3Y1rHoZDYmvxc4OJeep7Q{color:"+a("Ff8r").locals.giphyGrey+";float:left;line-height:25px;font-size:14px}._1OjiPPKU8lQXHH4B25Q1wA{color:inherit;display:inline-block;margin-left:10px}._1OjiPPKU8lQXHH4B25Q1wA:hover,._2rO4v1KuRJjfee1giAZGJE{color:"+a("Ff8r").locals.giphyWhite+"}._2rO4v1KuRJjfee1giAZGJE{font-weight:700}._2wFcxUUCXjkuyyVIRaMxxp{float:right;margin-left:30px}._3ba1JLDT0x0TvwdXhbd31J{margin-right:-11px;width:50%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;height:40px}._3ba1JLDT0x0TvwdXhbd31J,._3F_SuAN5p2_KeieRfHavBJ{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}._3F_SuAN5p2_KeieRfHavBJ{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%}._3F_SuAN5p2_KeieRfHavBJ span{height:100%}._3qJTmxst64LW0ppYgaaTBx{color:"+a("Ff8r").locals.giphyGrey+";padding-left:.4em;text-transform:none;font-size:14px;white-space:pre;font-family:interface;font-weight:700}._3qJTmxst64LW0ppYgaaTBx:before{content:attr(data-gif-count)}._1tC4x8EVRYexJOIk8Qk0Ee{font-family:"+a("i85P").locals.bodyFont+";height:36px;font-size:14px;font-weight:900;letter-spacing:.01em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}._1oun7lB_e5Bb3IrBzxSSDI{width:100%}._1joCyQyFZDllCQ7TBLupjn{font-weight:300;padding-bottom:12px}._3fFmgf5gRB5kJlTOOAsZsQ{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:100%}._2l1sQndCg2176y3qc8tjOE,._3fFmgf5gRB5kJlTOOAsZsQ{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal}._2l1sQndCg2176y3qc8tjOE{-webkit-animation:_2WPHjQmOoqM3muqfNg0LeC .3s ease-in-out 0s 1 normal backwards;animation:_2WPHjQmOoqM3muqfNg0LeC .3s ease-in-out 0s 1 normal backwards;font-size:16px;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;max-width:210px;margin-right:60px;height:55px;float:left;position:relative;-webkit-flex-flow:row nowrap;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;overflow:hidden}._2l1sQndCg2176y3qc8tjOE:nth-child(2n){-webkit-animation-delay:.05s;animation-delay:.05s}._2l1sQndCg2176y3qc8tjOE:nth-child(3n){-webkit-animation-delay:.1s;animation-delay:.1s}._2l1sQndCg2176y3qc8tjOE:nth-child(4n){-webkit-animation-delay:.15s;animation-delay:.15s}._2l1sQndCg2176y3qc8tjOE:last-of-type{margin:0}._1SkEvS1Wyz6ssWu1gFza1v{color:"+a("Ff8r").locals.giphyWhite+";font-size:16px;line-height:16px;max-height:33px;position:relative;overflow:hidden}@supports (-webkit-line-clamp:2){._1SkEvS1Wyz6ssWu1gFza1v{text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}._45SEXdhbFXDc__pvWoH88{float:left;top:-7px}._2X1DMd0VRYT8rCj5-oWv-a{color:"+a("Ff8r").locals.giphyAqua+"}._3glAvgobuq9AWmeVdsM6kR{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;margin-top:10px;margin-bottom:"+a("vzFC").locals.gridSpacing+"}._3kJRuxZOyBBK2T_RZ2Vwvc{display:block;margin-bottom:-6px}.AxLCMHQpN30nKiMWTtaLB{position:relative;padding-right:20px;height:16px}@-webkit-keyframes _2WPHjQmOoqM3muqfNg0LeC{0%{opacity:0;-webkit-transform:translateY(60px);transform:translateY(60px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes _2WPHjQmOoqM3muqfNg0LeC{0%{opacity:0;-webkit-transform:translateY(60px);transform:translateY(60px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}",""]),t.locals={colors:"'shared/css/colors.css'",giphyWhite:""+a("Ff8r").locals.giphyWhite,giphyDarkGrey:""+a("Ff8r").locals.giphyDarkGrey,giphyGrey:""+a("Ff8r").locals.giphyGrey,giphyAqua:""+a("Ff8r").locals.giphyAqua,fonts:"'shared/css/fonts.css'",bodyFont:""+a("i85P").locals.bodyFont,gridSpacing:""+a("vzFC").locals.gridSpacing,typography:"'shared/css/typography.css'",bodyBold:""+a("fJZ6").locals.bodyBold,autoPlayLabel:""+a("fJZ6").locals.autoPlayLabel,sectionHeading:""+a("fJZ6").locals.sectionHeading,mainTitle:""+a("fJZ6").locals.mainTitle,gifTitleMobile:""+a("fJZ6").locals.gifTitleMobile,carousel:"'shared/components/carousel/carousel.css'",carouselItemWrapper:""+a("u2f+").locals.carouselItemWrapper,username:"_3dLOB3rLbGEEo5h8-PwvwQ",searchTerm:"_1c28EcNje6C468vi0jO0Uk "+a("fJZ6").locals.mainTitle,exploreResults:"_3RQeLpXgzHp_6Bo2oOVY3O",results:"_3nBtKjCQJGwV5q-PVpsTsz _3RQeLpXgzHp_6Bo2oOVY3O",noResults:"_3Pso07QCmjZWmt4UMB0H1k",sparseTermState:"VeCbBh4fXHfCHfzFs5sEq",upperHeader:"_2SJKKTR1aMK3kUasjbiVwE",middleHeader:"_2KW2EZ0x9ETjF10-OOlEen",exploreHeader:"_1SJi8Dg53PK_QXhegdrab4",header:"_1lWXeFze5mAi0tX3MEHDwZ _1SJi8Dg53PK_QXhegdrab4",autoPlayHeader:"AQ_792pSYn88mX0IpskqI _1lWXeFze5mAi0tX3MEHDwZ _1SJi8Dg53PK_QXhegdrab4",sort:"_3Y1rHoZDYmvxc4OJeep7Q",sortLink:"_1OjiPPKU8lQXHH4B25Q1wA",activeSortLink:"_2rO4v1KuRJjfee1giAZGJE _1OjiPPKU8lQXHH4B25Q1wA",autoplay:"_2wFcxUUCXjkuyyVIRaMxxp",autoplayLabel:"hEGATzrt7MWMXRBpD6gbW "+a("fJZ6").locals.autoPlayLabel,listTitle:"LHoxLypLqn7OiSy_eecgR "+a("fJZ6").locals.autoPlayLabel,termSuggestionContainer:"_3ba1JLDT0x0TvwdXhbd31J",suggestions:"_3F_SuAN5p2_KeieRfHavBJ",number:"_3qJTmxst64LW0ppYgaaTBx",searchType:"_1tC4x8EVRYexJOIk8Qk0Ee",fullWidth:"_1oun7lB_e5Bb3IrBzxSSDI",channelsCountTitle:"_1joCyQyFZDllCQ7TBLupjn "+a("fJZ6").locals.sectionHeading,channelsResults:"_3fFmgf5gRB5kJlTOOAsZsQ",channelContainer:"_2l1sQndCg2176y3qc8tjOE",channelIn:"_2WPHjQmOoqM3muqfNg0LeC",channelsTitle:"_1SkEvS1Wyz6ssWu1gFza1v "+a("fJZ6").locals.bodyBold,searchTypeToggle:"_45SEXdhbFXDc__pvWoH88",highlight:"_2X1DMd0VRYT8rCj5-oWv-a",exploreUpperHeader:"_3glAvgobuq9AWmeVdsM6kR",exploreSearchTerm:"_3kJRuxZOyBBK2T_RZ2Vwvc "+a("fJZ6").locals.mainTitle,usernameWrapper:"AxLCMHQpN30nKiMWTtaLB"}},oWr8:function(e,t,a){(t=e.exports=a("I1BE")(!1)).i(a("fJZ6"),void 0),t.push([e.i,"",""]),t.locals={typography:'"shared/css/typography.css"',searchType:""+a("fJZ6").locals.searchType,toggleItem:"kbuWTb9UqW_GU2ldY-NxV "+a("fJZ6").locals.searchType}},"pc4+":function(e,t,a){"use strict";var n,r=a("wx14"),i=a("1OyB"),s=a("vuIU"),o=a("md7G"),c=a("foSv"),l=a("Ji7U"),p=a("q1tI"),u=a.n(p),m=a("yoKv"),f=a("4p7I"),d=a("1Kko"),h=a.n(d),g=a("FHWK"),b=a("/MKj"),y=a("ZHdZ"),v=a("Lv2u"),x=a("rDmu"),k=a("6acW"),E=a.n(k),w=a("17x9"),O=a.n(w),j=a("rWzK"),_=a("o0o1"),T=a.n(_),I=a("HaE+"),S=a("cLpb"),P=a("eohh"),C=a("uKiO"),R=a("Owzl"),H=Object(b.b)(function(e){return{searchResponseId:S.S(e),autoPlay:S.e(e),isSticker:"sticker"===S.T(e)}},{toggleAutoPlay:P.d})(n=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(o.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(r)))).state={channels:void 0},a}var a;return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:(a=Object(I.a)(T.a.mark(function e(){var t,a;return T.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this.props.searchInfo)){e.next=6;break}return e.next=4,Object(C.j)(t.term);case 4:a=e.sent,this.setState({channels:a});case 6:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this.state.channels;return u.a.createElement(R.e,Object(r.a)({},this.props,{channels:e}))}}]),t}(p.PureComponent))||n,A=function(e){var t=e.search,a=e.user,n=e.showTV,r=t.user,i=r&&r.username;return u.a.createElement(p.Fragment,null,u.a.createElement(H,{user:a,searchInfo:t}),u.a.createElement(j.a,{showTV:!i&&n}))},F=a("vpQ4"),N=a("3cAf"),W=a("Zkvx");var B,J=a("ocyf"),L=O.a.shape,q=O.a.string,G=O.a.bool,Q=O.a.number,M=function(e){function t(){return Object(i.a)(this,t),Object(o.a)(this,Object(c.a)(t).apply(this,arguments))}return Object(l.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.search,a=e.searchResponseId,n=e.error,r=Object(F.a)({},t,{error:n});return u.a.createElement("div",null,u.a.createElement(R.c,{searchInfo:r,searchResponseId:a,isSticker:r.isSticker,term:t.displayTerm}),u.a.createElement(j.a,null))}}]),t}(p.PureComponent);M.propTypes={search:L({term:q.isRequired,total:Q.isRequired,sorting:q,suggestion:q,suggestionUrl:q,isSticker:G.isRequired})};var U,Z,D,K,z=Object(b.b)(function(e,t){var a=t.groupId;return{searchResponseId:S.S(e),editMode:S.p(e),hasEnoughGifsForTV:S.fb(e,Object(F.a)({},t,{groupId:a})),isSticker:"sticker"===e.searchType,error:S.z(e,Object(F.a)({},t,{groupId:a}))}},function(e){return{pingback:function(t,a,n){e(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,n=Object(W.b)();return function(r,i){var s={event_type:"EXPLORE"===a?"GIF_EXPLORE":"GIF_SEARCH_OLD",response_id:t,prior_response_id:n,referrer:document&&document.referrer?document.referrer:null,actions:e};return Object(N.a)(s)(r,i)}}(t,a,n))},toggleEditMode:function(){e(Object(J.r)())},updateEditMode:function(){e(Object(J.s)())}}})(B=function(e){function t(){return Object(i.a)(this,t),Object(o.a)(this,Object(c.a)(t).apply(this,arguments))}return Object(l.a)(t,e),t}(M))||B,X=a("ANjH"),Y=a("vOnD"),V=a("ZuWJ"),$=a("4bRF"),ee=a("VT1s"),te=Y.default.div.withConfig({displayName:"favorites__Background",componentId:"sc-1phha1a-0"})(["height:100%;left:0;opacity:0.8;position:absolute;top:0;width:100%;z-index:-1;"]),ae=Object(X.d)(Object(b.b)(function(e){return{autoPlay:S.e(e)}},{toggleAutoPlay:P.d}),Object($.a)(["gifs"]))(function(e){var t=e.autoPlay,a=e.toggleAutoPlay;return e.gifs.length>0?u.a.createElement("div",null,u.a.createElement("div",null,u.a.createElement(R.a,{onToggleAutoPlay:a,autoPlay:t}),u.a.createElement("div",{style:{clear:"both"}})),u.a.createElement(j.a,null)):u.a.createElement(u.a.Fragment,null,u.a.createElement(te,null,u.a.createElement(V.a,{assetUrls:["/static/img/svg/heart.svg"]})),u.a.createElement(ee.a,null))}),ne=a("QWMA"),re=a("TJpk"),ie=function(e){var t,a=["gif","gifs","sticker","stickers"],n=e.groupId,r=e.search;return"favorites"===n?t="Search, Discover, Share, and Create Animated GIFs | GIPHY":r&&(t="EXPLORE"===e.pageType?"".concat(E()(Object(ne.c)(r.term,a))," GIFs - Get the best GIF on GIPHY"):"".concat(E()(Object(ne.c)(r.term,a))," ").concat(r.isSticker?"Stickers":"GIFs"," - Find & Share on GIPHY")),u.a.createElement("div",null,u.a.createElement(re.Helmet,null,u.a.createElement("title",null,t)),u.a.createElement(m.a,null,u.a.createElement(f.a,{path:"/search",render:function(){return u.a.createElement(A,e)}}),u.a.createElement(f.a,{path:"/explore",render:function(){return u.a.createElement(z,e)}}),u.a.createElement(f.a,{path:"/favorites",render:function(){return u.a.createElement(ae,e)}})))},se=a("wQYA"),oe=a("ODXe"),ce=a("VSOB"),le=a.n(ce)()((D=Z=function(e){function t(){return Object(i.a)(this,t),Object(o.a)(this,Object(c.a)(t).apply(this,arguments))}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidUpdate",value:function(){var e=this.props.pageElements;e&&e.hide&&this.managePageElements()}},{key:"managePageElements",value:function(){var e=this.props,t=e.location.pathname,a=e.pageElements.hide,n=Object(se.b)(t)===se.a.GIF_DETAIL;a.forEach(function(e){var t=Object(oe.a)(e,2),a=t[0],r=t[1];a&&(a.style.display=n?"none":r)})}},{key:"render",value:function(){return null}}]),t}(u.a.Component),Z.propTypes={pageElements:O.a.oneOfType([O.a.array,O.a.object])},U=D))||U,pe=a("0sMU"),ue=a("OoDb"),me=a("+RYZ"),fe=a("R05P");a.d(t,"a",function(){return he});var de=Object(y.b)({channelSelectorItems:x.a},void 0),he=Object(pe.a)(de)(K=function(e){function t(){return Object(i.a)(this,t),Object(o.a)(this,Object(c.a)(t).apply(this,arguments))}return Object(l.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.groupId,n=t.pageElements,i=this.props,s=i.user,o=i.showSearch,c=i.showBrowse,l=i.searchTerm;return u.a.createElement(b.a,{store:de},u.a.createElement(p.Suspense,{fallback:null},u.a.createElement(me.a,null,u.a.createElement(h.a,null,u.a.createElement(p.Fragment,null,u.a.createElement(ue.a,{user:s,showSearch:o,showBrowse:c,searchTerm:l}),u.a.createElement(g.a,null),u.a.createElement(le,{pageElements:n}),u.a.createElement(fe.a,null),u.a.createElement(m.a,null,u.a.createElement(f.a,Object(r.a)({},se.a.GIF_DETAIL,{render:function(t){return u.a.createElement(v.a,Object(r.a)({},e.props,{relatedGroupId:a},t))}})),u.a.createElement(f.a,{render:function(){return u.a.createElement(ie,e.props)}})))))))}}]),t}(u.a.Component))||K},rhmX:function(e,t,a){var n=a("3ew5");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(n,r);n.locals&&(e.exports=n.locals)},sNT9:function(e,t,a){"use strict";var n,r,i,s=a("o0o1"),o=a.n(s),c=a("HaE+"),l=a("1OyB"),p=a("vuIU"),u=a("md7G"),m=a("foSv"),f=a("Ji7U"),d=a("3WF5"),h=a.n(d),g=a("17x9"),b=a.n(g),y=a("q1tI"),v=a.n(y),x=a("bbZa"),k=a("guuH"),E=a.n(k),w=a("OCrO"),O=a("PvyT"),j=Object(O.a)()((i=r=function(e){function t(){return Object(l.a)(this,t),Object(u.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(f.a)(t,e),Object(p.a)(t,[{key:"click",value:function(){var e=this.props,t=e.name,a=e.analytics,n=a.action,r=a.category;Object(x.b)({category:r,action:n,label:t}),this.props.pingBackFunctions.onClick(this.props)}},{key:"onHover",value:function(){this.props.pingBackFunctions.onHover(this.props)}},{key:"render",value:function(){var e=this,t=this.props,a=t.name,n=t.isSticker,r=-1===a.indexOf("sticker");return v.a.createElement("a",{ref:function(t){e.el=t},className:E.a.pill,href:n&&r?Object(w.c)(a,!0):Object(w.c)(a),onClick:function(t){return e.click(t)},onMouseEnter:function(){return e.onHover()}},v.a.createElement("h3",{className:E.a.tag},"#".concat(a)))}}]),t}(v.a.PureComponent),r.propTypes={name:b.a.string.isRequired,analytics:b.a.object.isRequired},n=i))||n,_=a("uKiO"),T=a("H+3R"),I=a("3cAf");a.d(t,"a",function(){return S});var S=function(e){function t(){var e,a;Object(l.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).state={suggestedTerms:[]},a}var a;return Object(f.a)(t,e),Object(p.a)(t,[{key:"getTerms",value:(a=Object(c.a)(o.a.mark(function e(){var t,a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(_.S)(this.props.term);case 3:t=e.sent,a=t.data,this.setState({suggestedTerms:a}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),T.a.error(e.t0);case 11:case"end":return e.stop()}},e,this,[[0,8]])})),function(){return a.apply(this,arguments)})},{key:"componentDidUpdate",value:function(e){e.term!==this.props.term&&this.getTerms()}},{key:"componentDidMount",value:function(){this.getTerms()}},{key:"render",value:function(){var e=this.props,t=e.css,a=e.isSticker,n=e.searchResponseId,r=e.user,i=this.state.suggestedTerms,s={category:"Search",action:"Related Tag Click\t"};return i.length?v.a.createElement("div",{className:t.termSuggestionContainer},v.a.createElement("div",{className:t.suggestions},h()(i,function(e,t){return v.a.createElement(j,{index:t,name:e.name,isSticker:a,key:t,analytics:s,pingbackAnalytics:{component:"SUGGESTED_SEARCH",user:r,data:[{key:"suggest_term",value:e.name}],pingbackRequest:I.f,searchResponseId:n,needToCheckForOverflow:!0,actionNames:{seen:"SUGGESTED_SEARCH_SEEN",click:"SUGGESTED_SEARCH_CLICK",hover:"SUGGESTED_SEARCH_HOVER"}}})}))):v.a.createElement("div",{className:t.sparseTermState})}}]),t}(v.a.PureComponent);S.propTypes={term:b.a.string.isRequired,css:b.a.object,isSticker:b.a.bool,isMobile:b.a.bool,searchResponseId:b.a.string}}},[[3,"runtime","desktopVendor","desktopCommon"]]]);
  //# sourceMappingURL=search.82932eb2.bundle.js.map