PageSourceSearch

https://www.celebritycruises.com/myaccount/985.68c6d4724bceb11f.js

js celebritycruises.com collected 2026-10-01 10:32:16 UTC 11,414 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcelebrity=self.webpackChunkcelebrity||[]).push([[985],{985:(m,l,i)=>{i.r(l),i.d(l,{rcg_item_selector:()=>c});var e=i(42742),s=i(19111);const c=class{constructor(r){(0,e.r)(this,r),this.dataSelected=(0,e.c)(this,"dataSelected"),this.brand="royal",this.isSelected=!1,this.hasError=!1,this.toggleSelectedItem=()=>{this.hasError?(this.isSelected=!1,this.hasError=!1):this.isSelected=!this.isSelected,this.dataSelected.emit({id:this._data.id,title:this._data.title,subTitle:this._data.subTitle,img:this._data.img,isSelected:this.isSelected,hasError:this.hasError})},this.handleKeyDown=o=>{"Enter"===o.key&&this.toggleSelectedItem()},this.handleErrorForImg=()=>{this._data.img=""},this.getIconError=()=>this.isRoyalBrand()?d():f(),this.getIconSelected=()=>this.isRoyalBrand()?h():t()}getStateClass(){return this.disabled?"disabled":this.hasError?"error":this.isSelected?"selected":""}get computedStyles(){return(0,s.a)(this.customStyles)}initialsForText(r){if(!r)return"";const o=r.match(/\b\w/g)||[];return(0,e.h)("span",null,o.slice(0,2).join("").toUpperCase())}isSmallSize(){return"s"===this.size}isRoyalBrand(){return"royal"===this.brand}replaceImagByIconIfSmallSize(){var r,o;return this.isSmallSize()&&this.hasError&&!this.disabled?(0,e.h)("span",{class:"avatar-icon"},this.getIconError()):this.isSmallSize()&&this.isSelected&&!this.disabled?(0,e.h)("span",{class:"avatar-icon"},this.getIconSelected()):null!==(r=this._data)&&void 0!==r&&r.img?(0,e.h)("img",{src:null===(o=this._data)||void 0===o?void 0:o.img,alt:this._data.title,onError:this.handleErrorForImg}):this.initialsForText(this._data.title)}getIconControl(){return this.hasError?this.getIconError():this.isSelected?this.getIconSelected():""}componentWillLoad(){this._data=(0,s.p)(this.data,"data prop format invalid")}render(){var r,o,p;return(0,e.h)("button",{key:"944e73822fbe50f39c815cf9fcc089b5d1171f18",type:"button",part:"item-selector",style:this.computedStyles,class:`item-selector\n          ${this.isSmallSize()?"small":""}\n          ${this.disabled?"":this.brand}
1 ${this.getStateClass()}`,onClick:this.toggleSelectedItem,onKeyDown:this.handleKeyDown,disabled:this.disabled,"aria-pressed":this.isSelected,"aria-describedby":this.hasError?"error-msg":void 0,"aria-label":this.ariaLabel},(0,e.h)("div",{key:"8e65100a095503eb193f21f4184a090e990f6a9b",class:"avatar"},this.replaceImagByIconIfSmallSize()),(0,e.h)("div",{key:"22437aa5db30ecf0e2a7c5872ee75c0f73aa2fe2",class:"container"},(0,e.h)("h3",{key:"de851ca1127b23a58fc1fc3e7bf6ce4eef3bbbec"},null===(r=this._data)||void 0===r?void 0:r.title),(null===(o=this._data)||void 0===o?void 0:o.subTitle)&&(0,e.h)("p",{key:"f5a4cf9426a91195ced9ea78b874d3e06526d6ff"},null===(p=this._data)||void 0===p?void 0:p.subTitle)),(0,e.h)("div",{key:"f4c55bf43568fd2304b8e1dacbee232e903975fa",class:"control"},this.disabled||this.isSmallSize()?"":(0,e.h)("span",{class:"icon-control"},this.getIconControl())))}},d=()=>(0,e.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},(0,e.h)("g",{"clip-path":"url(#clip0_4492_420)"},(0,e.h)("circle",{cx:"16",cy:"16",r:"16",fill:"white"}),(0,e.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5 10V16.5C17.5 17.3284 16.8284 18 16 18C15.1716 18 14.5 17.3284 14.5 16.5V10C14.5 9.17157 15.1716 8.5 16 8.5C16.8284 8.5 17.5 9.17157 17.5 10ZM16 23.5C16.9665 23.5 17.75 22.7165 17.75 21.75C17.75 20.7835 16.9665 20 16 20C15.0335 20 14.25 20.7835 14.25 21.75C14.25 22.7165 15.0335 23.5 16 23.5Z",fill:"#E40F2F"})),(0,e.h)("defs",null,(0,e.h)("clipPath",{id:"clip0_4492_420"},(0,e.h)("rect",{width:"32",height:"32",fill:"white"})))),f=()=>(0,e.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},(0,e.h)("g",{"clip-path":"url(#clip0_4492_283)"},(0,e.h)("circle",{cx:"16",cy:"16",r:"16",fill:"white"}),(0,e.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5 10V16.5C17.5 17.3284 16.8284 18 16 18C15.1716 18 14.5 17.3284 14.5 16.5V10C14.5 9.17157 15.1716 8.5 16 8.5C16.8284 8.5 17.5 9.17157 17.5 10ZM16 23.5C16.9665 23.5 17.75 22.7165 17.75 21.75C17.75 20.7835 16.9665 20 16 20C15.0335 20 14.25 20.7835 14.25 21.75C14.25 22.7165 15.0335 23.5 16 23.5Z",fill:"#D0021B"})),(0,e.h)("defs",null,(0,e.h)("clipPath",{id:"clip0_4492_283"},(0,e.h)("rect",{width:"32",height:"32",fill:"white"})))),h=()=>(0,e.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"9",viewBox:"0 0 13 9",fill:"none"},(0,e.h)("path",{d:"M1 4.11922L4.9233 8L12 1",stroke:"#006EFE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),t=()=>(0,e.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"9",viewBox:"0 0 13 9",fill:"none"},(0,e.h)("path",{d:"M1 4.11922L4.9233 8L12 1",stroke:"#1673AF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}));c.style=":host{width:100%;outline:none}.item-selector{width:100%;height:58px;border:1px solid;border-radius:4px;padding:8px 12px;display:flex;justify-content:center;align-items:center;gap:12px}.item-selector:hover{cursor:pointer}.item-selector .avatar{width:40px;height:40px;min-width:40px;border-radius:50%;overflow:hidden;display:flex;justify-content:center;align-items:center;font-size:14px;font-style:normal;font-weight:700;line-height:18px;letter-spacing:0.15px}.item-selector .avatar img{width:100%;height:100%;object-fit:cover}.item-selector .container{flex-grow:1;display:flex;flex-direction:column;justify-content:space-evenly;align-items:flex-start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-selector .container h3{color:#131516;margin:0;font-size:16px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-selector .container p{color:#555F61;margin:0;font-size:14px;font-style:normal;font-weight:400;line-height:18px;letter-spacing:0.15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-selector .control{height:100%;display:flex;justify-content:center;align-items:center}.item-selector .control .icon-control{width:24px;height:24px;border:1px solid;border-radius:50%;display:flex;justify-content:center;align-items:center;background-color:#ffffff}.item-selector.disabled{border-color:#9DA4AC;background-color:#D2D5D9;pointer-events:none}.item-selector.disabled .avatar{border:1px solid;color:#9DA4AC;background-color:#D2D5D9;border-color:#9DA4AC}.item-selector.disabled .avatar img{opacity:0.5}
1.item-selector.disabled .container{color:#555F61}.item-selector.disabled .container h3{color:#9DA4AC}.item-selector.disabled .container p{color:#555F61}.item-selector.disabled .control .icon-control{display:none}.item-selector.selected .container h3{color:#ffffff}.item-selector.selected .container p{color:#ffffff}.item-selector.error .container h3{color:#ffffff}.item-selector.error .container p{color:#ffffff}.item-selector.small{width:100%;max-width:310px}.item-selector.small .avatar .avatar-icon{width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:#ffffff}.item-selector.royal{border-color:#B4BAC0;background-color:#ffffff}.item-selector.royal .avatar{color:#F3F3F3;background-color:#006AF4}.item-selector.royal .control .icon-control{border-color:#006AF4}.item-selector.royal.selected{background-color:#006AF4;color:#ffffff}.item-selector.royal.selected .avatar{background-color:#0040CD}.item-selector.royal.error{background-color:var(--error-color-sign-in, #e40f2f);color:#ffffff}.item-selector.royal.error .avatar{background-color:#9F0018;border-color:#9F0018}.item-selector.royal.error .control .icon-control{border-color:#ffffff}:host{width:100%;outline:none}.item-selector{width:100%;height:58px;border:1px solid;border-radius:4px;padding:8px 12px;display:flex;justify-content:center;align-items:center;gap:12px}.item-selector:hover{cursor:pointer}.item-selector .avatar{width:40px;height:40px;min-width:40px;border-radius:50%;overflow:hidden;display:flex;justify-content:center;align-items:center;font-size:14px;font-style:normal;font-weight:700;line-height:18px;letter-spacing:0.15px}.item-selector .avatar img{width:100%;height:100%;object-fit:cover}.item-selector .container{flex-grow:1;display:flex;flex-direction:column;justify-content:space-evenly;align-items:flex-start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-selector .container h3{color:#131516;margin:0;font-size:16px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-selector .container p{color:#555F61;margin:0;font-size:14px;font-style:normal;font-weight:400;line-height:18px;letter-spacing:0.15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-selector .control{height:100%;display:flex;justify-content:center;align-items:center}.item-selector .control .icon-control{width:24px;height:24px;border:1px solid;border-radius:50%;display:flex;justify-content:center;align-items:center;background-color:#ffffff}.item-selector.disabled{border-color:#9DA4AC;background-color:#D2D5D9;pointer-events:none}.item-selector.disabled .avatar{border:1px solid;color:#9DA4AC;background-color:#D2D5D9;border-color:#9DA4AC}.item-selector.disabled .avatar img{opacity:0.5}.item-selector.disabled .container{color:#555F61}.item-selector.disabled .container h3{color:#9DA4AC}.item-selector.disabled .container p{color:#555F61}.item-selector.disabled .control .icon-control{display:none}.item-selector.selected .container h3{color:#ffffff}.item-selector.selected .container p{color:#ffffff}.item-selector.error .container h3{color:#ffffff}.item-selector.error .container p{color:#ffffff}.item-selector.small{width:100%;max-width:310px}.item-selector.small .avatar .avatar-icon{width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:#ffffff}.item-selector.celebrity{border-color:#B4BAC0;background-color:#ffffff}.item-selector.celebrity .avatar{color:#F3F3F3;background-color:#1673AF}.item-selector.celebrity .control .icon-control{border-color:#1673AF}.item-selector.celebrity.selected{background-color:#1673AF;color:#ffffff}.item-selector.celebrity.selected .avatar{background-color:#00586D}.item-selector.celebrity.error{background-color:#a8151a;color:#ffffff}.item-selector.celebrity.error .avatar{background-color:#9F0018;border-color:#9F0018}.item-selector.celebrity.error .control .icon-control{border-color:#ffffff}"},19111:(m,l,i)=>{i.d(l,{C:()=>e,T:()=>s,a:()=>h,b:()=>c,c:()=>a,f:()=>f,p:()=>d});const e={s:"small",m:"medium",l:"large"},s={availability:{label:"Few spots left!",color:"#DF0268"},awards:{label:"Best-seller",color:"#DF0268"},soldOut:{label:"Sold out",color:"#949494"}};function a(){const t={isMobile:!1,isTablet:!1,isDesktop:!1},r=window.innerWidth;return r<768?(t.isMobile=!0,t.isTablet=!1,t.isDesktop=!1):r<=1024?(t.isMobile=!1,t.isTablet=!0,t.isDesktop=!1):(t.isMobile=!1,t.isTablet=!1,t.isDesktop=!0),t}function c(t){return t?.length>0?`+${function n(t){return t?.length>0?t.replace(/[-+()]/g,""):""}(t)}`:""}const d=(t,r="")=>{try{return JSON.parse(t)}catch(o){console.error(`${r}`,o)}};function f(t){return t<10?`0${t}`:t.toString()}function h(t){let r=t;if("string"==typeof r)try{r=JSON.parse(r)}catch{return console.warn("Invalid JSON passed to customStyles:",r),{}}return"object"!=typeof r||Array.isArray(r)?{}:r}}}]);

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.