1"use strict";(self.webpackChunkcelebrity=self.webpackChunkcelebrity||[]).push([[3688],{73688:(r,n,s)=>{s.r(n),s.d(n,{rcg_modal:()=>c});var t=s(76658),l=s(52759),a=s(96041);const c=(()=>{let i=class{constructor(e){(0,t.r)(this,e),this.modalClosed=(0,t.c)(this,"modalClosed"),this.isOpen=!1,this.closeOnbackdrop=!1,this.showCloseIcon=!1,this.zIndex="1000",this.blurBackdrop=0,this.handleGlobalKeyDown=o=>{this.isOpen&&"Escape"===o.key&&(o.preventDefault(),this.closeModal())},this.handleBackdropClick=o=>{this.closeOnbackdrop&&o.target===o.currentTarget&&this.closeModal()},this.handleCloseClick=()=>{this.closeModal()}}handleOpenChange(e){document.body.classList.toggle("modal-open",e),e?(this.focusModal(),document.addEventListener("keydown",this.handleGlobalKeyDown)):document.removeEventListener("keydown",this.handleGlobalKeyDown)}disconnectedCallback(){document.body.classList.remove("modal-open"),document.removeEventListener("keydown",this.handleGlobalKeyDown)}focusModal(){setTimeout(()=>{var e;const o=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(".modal");o&&o.focus()},50)}closeModal(){this.modalClosed.emit(!0),this.isOpen&&document.body.classList.add("modal-open")}get customStyles(){return Object.assign({zIndex:this.zIndex},this.blurBackdrop>0&&this.blurBackdrop<11?{backdropFilter:`blur(${this.blurBackdrop}px)`}:{})}render(){return(0,t.h)("div",{key:"958773b1ff7fb9bee4165f84ab317612866be1f7",class:"modal "+(this.isOpen?"open":""),onClick:this.handleBackdropClick,part:"container",style:this.customStyles},(0,t.h)("div",{key:"d3a02239db04e203719997a62f9b8a5017628b62",class:"modal__content "+(this.brand===a.B.SILVERSEA?"silversea-display":""),style:this.widthInPx||this.heightInPx?Object.assign(Object.assign({},this.widthInPx?{width:`${this.widthInPx}px`}:{}),this.heightInPx?{height:`${this.heightInPx}px`}:{}):null,"aria-label":"Modal content",part:"content"},this.showCloseIcon&&(0,t.h)("button",{key:"cfc58f3bccbee6758731d7bb9c5b1c3f806862dc",tabIndex:0,class:"close",onClick:this.handleCloseClick,part:"close-button"},this.brand===a.B.ROYAL?(0,l.c)():(0,l.a)()),(0,t.h)("slot",{key:"a8439d2facf52e21f9b09a1c4e933803499d2da0"})))}get el(){return(0,t.g)(this)}static get watchers(){return{isOpen:["handleOpenChange"]}}};return i.style=".modal{display:none;position:fixed;z-index:101;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgba(0, 0, 0, 0.4)}@media only screen and (max-width: 480px){.modal{display:none}}.modal__content{position:relative;background-color:#fefefe;border:1px solid #888;width:588px;max-height:90%;overflow-y:auto;border-radius:4px}@media only screen and (max-width: 480px){.modal__content{width:100%;margin:10px}}.close{position:absolute;margin:0;background-color:#ffffff;border:none;right:24px;top:24px}.close:hover,.close:focus{color:black;text-decoration:none;cursor:pointer}.open{display:flex;justify-content:center;align-items:center;overflow:hidden;z-index:399}.modal__content.silversea-display{width:375px;background-color:#f7f7f7}",i})()}}]);
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.