PageSourceSearch

https://www.rottentomatoes.com/assets/pizza-pie/javascripts/bundles/roma/searchNav.986f26beead.js

js rottentomatoes.com collected 2026-09-24 06:03:52 UTC 36,557 bytes, 1 lines download raw bytes

1function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function ownKeys(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _superPropGet(e,t,n,r){var i=_get(_getPrototypeOf(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function _get(){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=_superPropBase(e,t);if(r)return(r=Object.getOwnPropertyDescriptor(r,t)).get?r.get.call(arguments.length<3?e:n):r.value}).apply(null,arguments)}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _regenerator(){var f,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",n=e.toStringTag||"@@toStringTag";function r(e,t,n,r){var i,o,a,s,l,c,u,d,h,t=t&&t.prototype instanceof m?t:m,t=Object.create(t.prototype);return _regeneratorDefine2(t,"_invoke",(i=e,o=n,u=r||[],d=!1,h={p:c=0,n:0,v:f,a:p,f:p.bind(f,4),d:function(e,t){return a=e,s=0,l=f,h.n=t,g}},function(e,t,n){if(1<c)throw TypeError("Generator is already running");for(d&&1===t&&p(t,n),s=t,l=n;(y=s<2?f:l)||!d;){a||(s?s<3?(1<s&&(h.n=-1),p(s,l)):h.n=l:h.v=l);try{if(c=2,a){if(y=a[e=s?e:"next"]){if(!(y=y.call(a,l)))throw TypeError("iterator result is not an object");if(!y.done)return y;l=y.value,s<2&&(s=0)}else 1===s&&(y=a.return)&&y.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+e+"' method"),s=1);a=f}else if((y=(d=h.n<0)?l:i.call(o,h))!==g)break}catch(e){a=f,s=1,l=e}finally{c=1}}return{value:y,done:d}}),!0),t;function p(e,t){for(s=e,l=t,y=0;!d&&c&&!n&&y<u.length;y++){var n,r=u[y],i=h.p,o=r[2];3<e?(n=o===t)&&(l=r[(s=r[4])?5:s=3],r[4]=r[5]=f):r[0]<=i&&((n=e<2&&i<r[1])?(s=0,h.v=t,h.n=r[1]):i<o&&(n=e<3||r[0]>t||o<t)&&(r[4]=e,r[5]=t,h.n=o,s=0))}if(n||1<e)return g;throw d=!0,t}}var g={};function m(){}function i(){}function o(){}var y=Object.getPrototypeOf,e=[][t]?y(y([][t]())):(_regeneratorDefine2(y={},t,function(){return this}),y),a=o.prototype=m.prototype=Object.create(e);function s(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,_regeneratorDefine2(e,n,"GeneratorFunction")),e.prototype=Object.create(a),e}return _regeneratorDefine2(a,"constructor",i.prototype=o),_regeneratorDefine2(o,"constructor",i),_regeneratorDefine2(o,n,i.displayName="GeneratorFunction"),_regeneratorDefine2(a),_regeneratorDefine2(a,n,"Generator"),_regeneratorDefine2(a,t,function(){return this}),_regeneratorDefine2(a,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:r,m:s}})()}function _regeneratorDefine2(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(_regeneratorDefine2=function(e,t,n,r){function i(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}function asyncGeneratorStep(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function _asyncToGenerator(s){return function(){var e=this,a=arguments;return new Promise(function(t,n){var r=s.apply(e,a);function i(e){asyncGeneratorStep(r,t,n,i,o,"next",e)}function o(e){asyncGeneratorStep(r,t,n,i,o,"throw",e)}i(void 0)})}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}(()=>{var e=window.Component,n=document.createElement("template"),t=(n.innerHTML="\n    <style>".concat('\n    :host {\n      display: block;\n      height: 100%;\n    }\n    :host([hidden]), .hide { display: none !important; }\n\n    .wrap {\n      display: flex;\n      flex-direction: column;\n      gap: 12px;\n      background-color: var(--white);\n      padding: 16px;\n\n      .media-wrap,\n      .celebrities-wrap {\n        display: flex;\n        flex-direction: column;\n        gap: 8px;\n\n        .header {\n          display: flex;\n          justify-content: space-between;\n          align-items: center;\n          margin-bottom: 16px;\n        }\n      }\n      .media-wrap.hide,\n      .celebrities-wrap.hide,\n      .arti-suggestions-wrap.hide {\n        display: none;\n      }\n\n      slot[name="media-results"]::slotted(search-results-item:not(:first-of-type))::before,\n      slot[name="celebrity-results"]::slotted(search-results-item:not(:first-child):not(:last-child))::after {\n        content: "";\n        border-bottom: 1px solid #171C201A;\n        width: 97%;\n        display: block;\n        margin: 8px auto;\n      }\n      \n      .arti-suggestions-wrap {\n        display: flex;\n        flex-direction: column;\n        gap: 16px;\n\n        .header {\n          display: grid;\n          grid-template-columns: auto 1fr;\n          grid-template-rows: auto auto;\n          column-gap: 8px;\n          align-items: center;
1\n\n          img {\n            grid-row: span 2;\n            width: 35px;\n            height: 28px;\n          }\n        }\n        \n        .results-wrap {\n          padding: 0;\n\n          .arti-suggestions-list {\n            display: flex;\n            flex-direction: column;\n            gap: 8px;\n            list-style: none;\n            margin: 0;\n            padding: 0;\n\n            li {\n              display: flex;\n              align-items: flex-end;\n\n              rt-button {\n                --fontWeight: var(--franklinGothicBook);\n                --backgroundColor: var(--grayLight1);\n                --backgroundColorHover: #252D34;\n                --textTransform: unset;\n                height: 38px;\n              }\n            }\n\n            li:nth-child(n+5) {\n              display: none;\n            }\n          }\n        }\n      }\n\n      .celebrities-wrap .header {\n        margin-top: 16px;\n      }\n    }\n\n    @media (min-width: 768px) {\n      .wrap {\n        border-radius: 16px;\n        width: 625px;\n        right: unset;\n        left: unset;\n        top: 82px;\n\n        .arti-suggestions-wrap {\n          .results-wrap {\n            .arti-suggestions-list {\n              flex-wrap: wrap;\n              flex-direction: row;\n\n              li:nth-child(n+5) {\n                display: initial;\n              }\n            }\n          }\n        }\n      }\n    }\n  ','</style>\n    <div class="wrap">\n      <div class="no-results-wrap hide">\n        <rt-text context="label">No Results.</rt-text>\n      </div>\n\n      <div class="arti-suggestions-wrap hide">\n        <div class="header">\n          <img src="/assets/pizza-pie/images/arti.041d204c4a4.svg" alt="Arti" />\n          <rt-text context="label">Search with aRTi </rt-text>\n          <rt-text size="0.875" style="--textColor: var(--grayDark5);">Tap any prompt to start a conversation</rt-text>\n        </div>\n        <div class="results-wrap">\n          <slot name="arti-suggestions"></slot>\n        </div>\n      </div>\n\n      <div class="media-wrap hide">\n        <div class="header">\n          <rt-text context="label">Movies/TV</rt-text>\n          <slot name="media-view-all"></slot>\n        </div>\n        <div class="results-wrap">\n          <slot name="media-results"></slot>\n        </div>\n      </div>\n\n      <div class="celebrities-wrap hide">\n        <div class="header">\n          <rt-text context="label">Celebrities</rt-text>\n          <slot name="celebrity-view-all"></slot>\n        </div>\n        <div class="results-wrap">\n          <slot name="celebrity-results"></slot>\n        </div>\n      </div>\n    </div>\n  '),(()=>{function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t)).initBool(["hidden","show-arti-suggestions","show-media","show-celebrities"]),e.initSlotted(),e}return _inherits(t,e),_createClass(t,[{key:"template",value:function(){return n}},{key:"_attributeHidden",value:function(){this.hidden?this.ariaExpanded="false":this.ariaExpanded="true"}},{key:"_attributeShowArtiSuggestions",value:function(){this.showArtiSuggestions?this.select(".arti-suggestions-wrap").classList.remove("hide"):this.select(".arti-suggestions-wrap").classList.add("hide"),this._toggleNoResultsWrap()}},{key:"_attributeShowCelebrities",value:function(){this.showCelebrities?this.select(".celebrities-wrap").classList.remove("hide"):this.select(".celebrities-wrap").classList.add("hide"),this._toggleNoResultsWrap()}},{key:"_attributeShowMedia",value:function(){this.showMedia?this.select(".media-wrap").classList.remove("hide"):this.select(".media-wrap").classList.add("hide"),this._toggleNoResultsWrap()}},{key:"_toggleNoResultsWrap",value:function(){this.showMedia||this.showCelebrities||this.showArtiSuggestions?this.select(".no-results-wrap").classList.add("hide"):this.select(".no-results-wrap").classList.remove("hide")}}],[{key:"propsCamelConventionEnabled",get:function(){return!0}},{key:"observedAttributes",get:function(){return["hidden","show-arti-suggestions","show-media","show-celebrities"]}}])})());window.customElements.get("search-results")||window.customElements.define("search-results",t),"undefined"!=typeof module&&(module.exports=t)})(),(()=>{var n=window.Component,r=document.createElement("template"),e=(r.innerHTML="\n    <style>".concat('\n    :host {\n      --placeholderTextColor: rgba(255, 255, 255, 0.6);\n      --searchCancelSpace: 15px;\n\n      display: flex;\n      width: 100%;\n      position: relative;\n      overflow: hidden;\n    }\n\n    :host([hidden]) { display: none }\n\n    .input-group {\n      flex-shrink: 0;\n      position: relative;\n      width: 100%;\n      transition: flex-shrink 0.2s ease;\n      box-sizing: border-box;\n      padding-right: var(--searchCancelSpace);\n    }\n\n    :host([active]) .input-group {\n      flex-shrink: initial;\n    }\n\n    .cancel-container {\n      display: flex;\n    }\n\n    .input-group:not(.empty):focus-within .clear-container {\n      visibility: visible;\n      opacity: 1;\n      transition: opacity 0.2s ease;\n    }\n\n    slot[name="search-input"]::slotted(input),\n    slot[name="search-clear"]::slotted(rt-button),\n    slot[name="search-submit"]::slotted(rt-link) {\n      display: inline-block;\n      border-style: none;\n      font-size: 1rem;\n    }\n\n    slot[name="search-clear"]::slotted(rt-button),\n    slot[name="search-submit"]::slotted(rt-link) {\n      --textColorHover: #fff;\n      position: absolute;\n      top: 50%;\n      transform: translateY(-50%);\n    }\n\n    slot[name="search-input"]::slotted(input) {\n      width: 100%;\n      height: 30px;\n      padding-left: 40px;\n      border-radius: 26px;\n      letter-spacing: inherit;\n      font-size: 1rem;\n      font-family: var(--franklinGothicFamily);\n      background: rgba(0, 0, 0, 0.4);\n      color: var(--white);\n      border: 1px solid var(--white);\n      outline: none;\n    }\n    slot[name="search-input"]::slotted(input)::placeholder {\n      color: var(--placeholderTextColor);\n    }\n\n    slot[name="search-submit"]::slotted(rt-link) {\n      --textColor: #FFFFFF;\n\n      left: 15px;\n      display: flex;\n      width: fit-content;\n    }\n\n    slot[name="search-clear"]::slotted(rt-button) {\n      --textColor: #FFFFFF;\n      display: flex;\n      justify-content: flex-end;\n      align-items: center;\n      text-align: center;\n      height: 20px;\n      right: 24px;\n    }\n\n    slot[name="search-cancel"]::slotted(rt-button) {\n      --textColor: #FFFFFF;\n      --lineHeight: 0;\n\n      display: flex;\n      align-items: center;\n    }\n\n    @media (min-width: 768px) {\n      div { padding: 0; }\n\n      slot[name="search-submit"]::slotted(rt-link) {\n        --textColor: #FFFFFF;\n      }\n\n      slot[name="search-input"]::slotted(input) {\n        height: 35px;\n        padding-right: 42px;\n      }\n\n        .input-group {\n          padding-right: 0px;\n        }\n\n        .input-group:focus-within slot[name="search-input"]::slotted(input) {\n          box-shadow: 0 0 0 1px #2a2c32 inset, 0 0 0 2px #e3e3e6 inset;\n        }\n\n      slot[name="search-clear"]::slotted(rt-button) {\n        right: 10px;\n      }\n\n      .cancel-container {\n        display: none;\n      }\n    }\n  ','</style>\n\t\t<div class="input-group empty">\n\t\t\t<slot name="search-input"></slot>\n      <slot name="search-submit"></slot>\n      <div class="clear-container">\n        <slot name="search-clear"></slot>\n      </div>\n    </div>\n    <div class="cancel-container">\n      <slot name="search-cancel"></slot>\n    </div>\n  '),(()=>{function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t)).initBool(["active","hidden"]),e.initSlotted(),e}
1return _inherits(t,n),_createClass(t,[{key:"connectedCallback",value:(e=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.elementsDefined();case 1:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})},{key:"template",value:function(){return r}}],[{key:"propsCamelConventionEnabled",get:function(){return!0}},{key:"observedAttributes",get:function(){return["active","hidden"]}}]);var e})());window.customElements.get("search-results-controls")||window.customElements.define("search-results-controls",e),"undefined"!=typeof module&&(module.exports=e)})(),(()=>{var e=window.Component,n=document.createElement("template"),t=(n.innerHTML="\n    <style>".concat("\n    :host { \n      display: block;\n      width: 100%;\n    }\n    :host([hidden]), .hide { display: none; }\n\n    a { display: contents; }\n    .tile-wrap {\n      display: grid;\n      grid-template-columns: minmax(0, 55px) repeat(3, minmax(auto, 1fr));\n      grid-template-rows: minmax(1em, auto) 1fr;\n      grid-gap: 0 12px;\n      align-items: center;\n      background-color: var(--grayLight1);\n      border: 1px solid var(--grayLight1);\n      border-radius: 8px;\n      padding: 8px;\n    }\n    .tile-wrap.show-video-thumbnail { align-items: center; }\n    .tile-wrap.show-video-btn { align-items: flex-start; }\n\n      .image-wrap {\n        width: 55px;\n        height: 82px;\n        border: 1px solid var(--grayLight1);\n        margin-right: 8px;\n      }\n        .image-wrap slot::slotted(*) {\n          width: 55px;\n          height: 82.5px;\n          border-radius: 8px;\n          background-color: var(--grayLight2);\n        }\n\n      .content-wrap {\n        grid-column: 2 / 5;\n        display: flex;\n        flex-direction: column;\n        flex: 1;\n        min-width: 0;\n      }\n        .description-wrap a {\n          display: block;\n        }\n        .description-wrap slot::slotted(rt-link) {\n          width: 100%;\n        }\n\n        .video-btn-wrap {\n          margin-top: 8px;\n        }\n          .video-btn-wrap slot::slotted(rt-button) {\n            --buttonPadding: 6px 16px;\n            --buttonWidth: 111px;\n          }\n\n    .video-thumbnail-wrap {\n      grid-column: 1 / 5;\n      grid-row: 2 / 2;\n      margin-top: 8px;\n    }\n      .video-thumbnail-wrap slot::slotted(rt-link) {\n        width: 100%;\n        height: 100%;\n      }\n\n    @media(min-width: 768px) {\n      .video-thumbnail-wrap {\n        grid-column: 1 / 4;\n      }\n    }\n  ",'</style>\n    <div class="tile-wrap">\n      <div class="image-wrap">\n        <slot name="image"></slot>\n      </div>\n      <div class="content-wrap">\n        <div class="description-wrap">\n          <slot name="description"></slot>\n        </div>\n        <div class="video-btn-wrap hide">\n          <slot name="video-btn"></slot>\n        </div>\n      </div>\n      <div class="video-thumbnail-wrap hide">\n        <slot name="video-thumbnail"></slot>\n      </div>\n    </div>\n  '),(()=>{function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t)).initBool(["hidden"]),e.initSlotted(),e.slotEmpty("videoThumbnail")?e.slotEmpty("videoBtn")?e:(e.select(".tile-wrap").classList.add("show-video-btn"),e.select(".video-btn-wrap").classList.remove("hide"),_possibleConstructorReturn(e)):(e.select(".tile-wrap").classList.add("show-video-thumbnail"),e.select(".video-thumbnail-wrap").classList.remove("hide"),_possibleConstructorReturn(e))}return _inherits(t,e),_createClass(t,[{key:"template",value:function(){return n}},{key:"_attributeHref",value:function(){var t=this;this.href&&this.selectAll("a").forEach(function(e){e.href=t.href})}}],[{key:"propsCamelConventionEnabled",get:function(){return!0}},{key:"observedAttributes",get:function(){return["hidden","href"]}}])})());window.customElements.get("search-results-item")||window.customElements.define("search-results-item",t),"undefined"!=typeof module&&(module.exports=t)})(),(()=>{var n=window.Component,r=document.createElement("template"),e=(r.innerHTML="\n    <style>".concat('\n    :host { display: block; }\n    :host([hidden]), .hide { display: none; }\n\n    .gradient {\n      background-color: rgba(0,0,0,0.6);\n      position: absolute;\n      top: 55px;\n      left: 0;\n      height: 100vh;\n      width: 100vw;\n      z-index: 101;\n    }\n\n    slot[name="results"]::slotted(search-results) {\n      width: 100%;\n      height: calc(100vh - 105px);\n      position: fixed;\n      top: 105px;\n      left: 0;\n      right: 0;\n      z-index: 102;
1\n      overflow-y: scroll;\n    }\n\n    @media (min-width: 768px) {\n      slot[name="results"]::slotted(search-results) {\n        width: fit-content;\n        height: auto;\n        position: absolute;\n        top: 40px;\n        left: 0;\n        filter: drop-shadow(0 0 0.75rem var(--grayDark1));\n        overflow-y: unset;\n      }\n\n      .gradient {\n        background-color: unset;\n      }\n    }\n  ','</style>\n    <div class="search-wrap">\n      <div class="gradient hide"></div>\n      <slot name="controls"></slot>\n      <slot name="results"></slot>\n    </div>\n  '),(()=>{function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t)).initBool(["hidden","show-results"]),e.initSlotted(),e}return _inherits(t,n),_createClass(t,[{key:"connectedCallback",value:(e=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.elementsDefined();case 1:this.ready();case 2:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})},{key:"template",value:function(){return r}},{key:"_attributeShowResults",value:function(){this._isMobile&&(!0===this.showResults?this.select(".gradient").classList.remove("hide"):this.select(".gradient").classList.add("hide"))}}],[{key:"propsCamelConventionEnabled",get:function(){return!0}},{key:"observedAttributes",get:function(){return["hidden","show-results"]}}]);var e})());window.customElements.get("search-results-nav")||window.customElements.define("search-results-nav",e),"undefined"!=typeof module&&(module.exports=e)})(),(()=>{var l=window.Manager,c=window.__RT__.analytics,e=(()=>{function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t)).traceName="SearchResultsNavManager",e.silentActions=["onDocKeydown","onInputTextKeydown"],e.initBool(["arti-search-nav-enabled"]),e.state={action:"constructor",algoliaSearchResults:void 0,artiSuggestions:[],domEventCount:0,domEvent:{},errors:[],searchTerm:""},e}
1return _inherits(t,l),_createClass(t,[{key:"connectedCallback",value:(s=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:_superPropGet(t,"connectedCallback",this,3)([]),this.dom=_objectSpread({doc:document},this.domElements()),this.domActions(["doc:click,focusin,keydown,userIdentity,userLogout"]),window.algoliasearch&&this.setState({action:"onScriptLoad"}),this.artiSearchNavEnabled&&this.setState({action:"fetchArtiSuggestions"});case 1:return e.a(2)}},e,this)})),function(){return s.apply(this,arguments)})},{key:"stateUpdated",value:(a=_asyncToGenerator(_regenerator().m(function e(){var t,n,r,i,o,a,s=this;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:e.p=0,o=this.state.action,e.n="onBtnArtiSuggestionClick"===o?1:"onCancelBtnClick"===o?2:"onClearBtnClick"===o?3:"onDocClick"===o||"onDocFocusin"===o?5:"onDocKeydown"===o?6:"onDocUserIdentity"===o?11:"onDocUserLogout"===o?12:"onInputTextClick"===o?13:"onInputTextInput"===o?17:"onInputTextKeydown"===o?19:"onScriptLoad"===o?20:"onSubmitBtnClick"===o?21:"fetchAlgoliaQueries"===o?22:"fetchArtiSuggestions"===o?23:"renderArtiSuggestions"===o?24:"renderSearchResults"===o?25:"searchActive"===o?26:"searchInactive"===o?29:"error"===o?32:33;break;case 1:return o=this.state.domEvent.currentTarget.textContent.trim(),this.dom.artiManager[0].openArti(o),c.capture({event:"search suggestions powered by arti clicked",searchSuggestion:o,includeUser:!0}),this.setState({action:"searchInactive"}),e.a(3,33);case 2:return this.setState({action:"searchInactive",algoliaSearchResults:void 0,searchTerm:""}),e.a(3,33);case 3:if(this.dom.inputText[0].value="",this.dom.inputText[0].focus(),this.artiSearchNavEnabled&&this.state.isLoggedIn&&0<this.state.artiSuggestions.length)return this.setState({action:"renderArtiSuggestions",algoliaSearchResults:void 0,searchTerm:""}),e.a(3,33);e.n=4;break;case 4:return this.dom.searchResults[0].hidden=!0,this.dom.search[0].showResults=!1,this.setState({action:"searchActive",algoliaSearchResults:void 0,searchTerm:""}),e.a(3,33);case 5:return t=this._isSearchEvent()?"searchActive":"searchInactive",this.setState({action:t}),e.a(3,33);case 6:if("Escape"===this.state.domEvent.code&&this._isSearchEvent())return this.setState({action:"searchInactive"}),e.a(3,33);e.n=7;break;case 7:if("/"!==this.state.domEvent.key)return e.a(3,33);e.n=8;break;case 8:if(["INPUT","TEXTAREA"].includes(document.activeElement.tagName))return e.a(3,33);e.n=9;break;case 9:return e.n=10,this.pause();case 10:return this.dom.inputText[0].focus(),e.a(3,33);case 11:return this.setState({action:"userIdentityDone",isLoggedIn:!0}),e.a(3,33);case 12:return this.setState({action:"userLogoutDone",isLoggedIn:!1}),e.a(3,33);case 13:if(this.artiSearchNavEnabled&&this.state.isLoggedIn&&!this.state.algoliaSearchResults&&0<this.state.artiSuggestions.length)return this.setState({action:"renderArtiSuggestions"}),e.a(3,33);e.n=14;break;case 14:if(this.state.algoliaSearchResults){e.n=15;break}return e.a(3,33);case 15:if(t=_slicedToArray(this.state.algoliaSearchResults,2),r=t[0],i=t[1],null!=r&&r.hits||i.hits){e.n=16;break}return e.a(3,33);case 16:return this.setState({action:"searchActive"}),e.a(3,33);case 17:if(n=this.state.domEvent.currentTarget.value||"",this.setState({action:"searchActive"}),n.length||(this.dom.searchResults[0].showArtiSuggestions=!1),n.length<2)return e.a(3,33);e.n=18;break;case 18:return clearTimeout(this.waitForInput),this.waitForInput=setTimeout(function(){s.dom.submitBtn[0].href="/search/?search=".concat(encodeURIComponent(n)),s.setState({action:"fetchAlgoliaQueries",searchTerm:n})},300),e.a(3,33);case 19:return r=this.state.searchTerm,"Enter"===this.state.domEvent.key&&r&&window.location.replace("/search?search=".concat(encodeURIComponent(r))),e.a(3,33);case 20:return i=RottenTomatoes.thirdParty.algoliaSearch,this.algoliaSearchClient=window.algoliasearch(i.aId,i.sId),this.algoliaInsightInitAttempted=0,this._initAlgoliaInsights(i.aId,i.sId),e.a(3,33);case 21:return this.state.searchTerm||this.state.domEvent.preventDefault(),e.a(3,33);case 22:return this.dispatch({nextState:this._fetchAlgoliaQueries,nextAction:{success:"renderSearchResults",fail:"error"}}),e.a(3,33);case 23:return this.fnDispatch({nextState:this._fetchArtiSuggestions,fnFail:function(){return s.logError()}}),e.a(3,33);case 24:return this.fnDispatch({nextState:this._renderArtiSuggestions,fnFail:function(){return s.logError()}}),e.a(3,33);case 25:return this.fnDispatch({nextState:this._renderSearchResults,fnFail:function(){return s.logError()}}),e.a(3,33);case 26:if(this.dom.clearBtn[0].hidden=this.dom.inputText[0].value.length<1,this.dom.searchControl
1s[0].active)return e.a(3,33);e.n=27;break;case 27:if(this.dom.searchControls[0].active=!0,this._isMobile){e.n=28;break}return e.a(3,33);case 28:return this.dom.body[0].classList.add("scroll-lock"),this.dom.cancelBtn[0].hidden=!1,["btnArti","mobileHeaderNavWrap","rtNavLogo"].forEach(function(e){return s.dom[e][0].style.cssText="opacity: 0; width: 0; margin: 0; padding: 0;"}),a=["mobileHeaderNavWrap","rtNavLogo","search"].reduce(function(e,t){return e+s.dom[t][0].offsetWidth},0),this.dom.search[0].style.cssText="width: ".concat(a,"px; margin-left: 0;"),e.a(3,33);case 29:if(this.dom.searchControls[0].active){e.n=30;break}return e.a(3,33);case 30:if(this.dom.body[0].classList.remove("scroll-lock"),this.dom.clearBtn[0].hidden=!0,this.dom.inputText[0].value="",this.dom.search[0].showResults=!1,this.dom.searchResults[0].hidden=!0,this.dom.submitBtn[0].href="",this._isMobile){e.n=31;break}return e.a(3,33);case 31:return this.dom.cancelBtn[0].hidden=!0,["btnArti","mobileHeaderNavWrap","rtNavLogo","search"].forEach(function(e){return s.dom[e][0].style.cssText=""}
1),this.dom.searchControls[0].active=!1,e.a(3,33);case 32:return this.logError(),e.a(3,33);case 33:e.n=35;break;case 34:e.p=34,a=e.v,this.logError(a);case 35:return e.a(2)}},e,this,[[0,34]])})),function(){return a.apply(this,arguments)})},{key:"setAlgoliaInsightUserToken",value:(o=_asyncToGenerator(_regenerator().m(function e(){var t,n,r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._retrieveTokenHash();case 1:r=e.v,null!=(t=(n=window).aa)&&t.call(n,"setUserToken",r);case 2:return e.a(2)}},e,this)})),function(){return o.apply(this,arguments)})},{key:"_fetchAlgoliaQueries",value:(i=_asyncToGenerator(_regenerator().m(function e(){var t,n,r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(t=this.state.searchTerm){e.n=1;break}return e.a(2,!1);case 1:return n=[{indexName:"content_rt",params:n={analyticsTags:["header_search"],clickAnalytics:!0,filters:"isEmsSearchable = 1",hitsPerPage:5},query:t},{indexName:"people_rt",params:n,query:t}],e.n=2,this.algoliaSearchClient.multipleQueries(n);case 2:return n=e.v,r=n.results,e.a(2,{algoliaSearchResults:r})}},e,this)})),function(){return i.apply(this,arguments)})},{key:"_fetchArtiSuggestions",value:(r=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return t=window.__RT__.fetcher,e.n=1,t.fetchJson("/cnapi/modules/arti-suggestions",{method:"GET"});case 1:return t=e.v,e.a(2,t)}},e)})),function(){return r.apply(this,arguments)})},{key:"_generateUUID",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})}},{key:"_getCookie",value:function(e){return e&&2===(e="; ".concat(window.document.cookie).split("; ".concat(e,"="))).length?e.pop().split(";").shift():void 0}},{key:"_hashToken",value:(n=_asyncToGenerator(_regenerator().m(function e(t){var n,r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return n=new TextEncoder,n=n.encode(t),e.n=1,crypto.subtle.digest("SHA-256",n);case 1:return n=e.v,r=Array.from(new Uint8Array(n)),e.a(2,r.map(function(e){return e.toString(16).padStart(2,"0")}).join(""))}},e)})),function(e){return n.apply(this,arguments)})},{key:"_initAlgoliaInsights",value:function(e,t){var n=this;if(!window.aa&&this.algoliaInsightInitAttempted<3)return setTimeout(function(){n.algoliaInsightInitAttempted=n.algoliaInsightInitAttempted+1,n._initAlgoliaInsights(e,t)},3500);3<=this.algoliaInsightInitAttempted&&!window.aa||window.aa("init",{appId:e,apiKey:t})}},{key:"_isSearchEvent",value:function(){var e;return("click"!==this.state.domEvent.type||!this.state.domEvent.composedPath().includes(this.dom.cancelBtn[0]))&&((e=this.state.domEvent.composedPath()).includes(this.dom.search[0])||e.includes(this.dom.searchResults[0]))}},{key:"_renderArtiSuggestions",value:function(){var e,i=this,t=this.state.artiSuggestions;if(t.length)return e={artiSuggestions:t},new Promise(function(n,r){nunjucks.render("_artiSuggestions",e,function(e,t){return e?r(e):((e=i.dom.searchResults[0].shadowRoot.querySelector(".arti-suggestions-wrap .results-wrap"))&&(e.innerHTML=t,_toConsumableArray(e.querySelectorAll("rt-button")).forEach(function(e){e.addEventListener("click",function(e){i.setState({action:"onBtnArtiSuggestionClick",domEvent:e})})})),i.dom.searchResults[0].showArtiSuggestions=!0,i.dom.searchResults[0].showMedia=!1,i.dom.searchResults[0].showCelebrities=!1,i.dom.search[0].showResults=!0,i.dom.searchResults[0].hidden=!1,n(!0))})})}},{key:"_renderSearchResults",value:function(){var i,o=this,a=function(e){return"https://resizing.flixster.com/D6aLbOtCJdj4ItAJL_UgDI_lzzA=/".concat(e,"/v2")},e=_slicedToArray(this.state.algoliaSearchResults,2),t=e[0],e=e[1];if(null!=t&&t.hits||e.hits)return i={celebrities:function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return _objectSpread(_objectSpread({},e),{},{celebrityPageUrl:e.vanity?"/celebrity/".concat(e.vanity):"#",profileImageUrl:e.profileImageUrl?"".concat(a("206x305"),"/").concat(e.profileImageUrl):""})})}(e.hits.slice(0,5)),media:function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).map(function(e,t){var n,r=e.vanity?("movie"===e.type.toLowerCase()?"/m/":"/tv/").concat(e.vanity):"#",t=0===t&&(null==(t=e.trailer)?void 0:t.thumbnailUrl),i=Boolean(null==(i=e.trailer)?void 0:i.publicId);return _objectSpread(_objectSpread({},e),{},{description:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=[];return e&&n.push(String(e)),t.length&&n.push.apply(n,_toConsumableArray(t)),n.length?n.slice(0,4).join(" &bullet; "):""}(e.releaseYear,null==(n=e.castCrew)?void 0:n.cast),overviewPageUrl:r,posterImageUrl:e.posterImageUrl?"".concat(a("206x305"),"/").concat(e.posterImageUrl):"none",showVideoThumbnail:t,showVideoBtn:i,videoPageUrl:i?"".concat(r,"/videos/").concat(null==(n=e.trailer)?void 0:n.publicId):r},t&&{videoRunTime:null!=(i=e.trailer)&&i.runTime?(r=null==(n=e.trailer)?void 0:n.runTime,i=Math.floor(r/60),r=String(Math.floor(r%60)).padStart(2,"0"),"".concat(i,":").concat(r)):"",videoTitle:(null==(n=e.trailer)?void 0:n.title)||"Trailer",videoThumbnail:t?null!=(i=e.trailer)&&i.thumbnailUrl?"".concat(a("1100x618"),"/").concat(e.trailer.thumbnailUrl):"none":""})})}(t.hits.slice(0,5)),searchPageUrl:"/search?search=".concat(encodeURIComponent(this.state.searchTerm))},new Promise(function(n,r){nunjucks.render("_searchResults",i,function(e,t){return e?r(e):(i.media.length?o.dom.searchResults[0].showMedia=!0:o.dom.searchResults[0].showMedia=!1,i.celebrities.length?o.dom.searchResults[0].showCelebrities=!0:o.dom.searchResults[0].showCelebrities=!1,o.dom.searchResults[0].showArtiSuggestions=!1,o.dom.searchResults[0].innerHTML="",o.dom.searchResults[0].insertAdjacentHTML("beforeend",t),o.dom.search[0].showResults=!0,o.dom.searchResults[0].hidden=!1,n(!0))})})}},{key:"_retrieveTokenHash",value:(e=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)if(0===e.n)return(t=this._getCookie("algoliaUT"))||(t=this._generateUUID(),this._setCookie("algoliaUT",t)),e.a(2,this._hashToken(t))},e,this)})),function(){return e.apply(this,arguments)})}
1,{key:"_setCookie",value:function(e,t,n){var r,i;e&&(r="",n&&((i=new Date).setTime(i.getTime()+24*n*60*60*1e3),r="; expires="+i.toUTCString()),document.cookie=e+"="+(t||"")+r+"; path=/; secure; SameSite=Strict")}}],[{key:"propsCamelConventionEnabled",get:function(){return!0}},{key:"observedAttributes",get:function(){return["arti-search-nav-enabled"]}}]);var e,n,r,i,o,a,s})();window.customElements.get("search-results-nav-manager")||window.customElements.define("search-results-nav-manager",e),"undefined"!=typeof module&&(module.exports=e)})();

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.