PageSourceSearch

https://www.seabourn.com/etc.clientlibs/carnival/clientlibs/client…arch-by-room-number.44d2b411d042c9c027d0.js

js seabourn.com collected 2026-09-24 15:32:44 UTC 27,744 bytes, 1 lines download raw bytes

vendor: 4,531 bytes, line 1
1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[3505,9289],{6944:function(e,t,n){n.r(t),n.d(t,{default:function(){return T}});var o=n(6540),r=n(2505),a=n.n(r),s=n(1145),i=n(3762),l=n(8942),c=n(3683),u=n(7597),d=n(8978),f=n(4103),p=n(1508),m=n(5565),v=n(4848);function h(e){return h="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},h(e)}function y(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,o,r,a){var l=o&&o.prototype instanceof i?o:i,c=Object.create(l.prototype);return x(c,"_invoke",function(n,o,r){var a,i,l,c=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,i=0,l=e,f.n=n,s}};function p(n,o){for(i=n,l=o,t=0;!d&&c&&!r&&t<u.length;t++){var r,a=u[t],p=f.p,m=a[2];n>3?(r=m===o)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((r=n<2&&p<a[1])?(i=0,f.v=o,f.n=a[1]):p<m&&(r=n<3||a[0]>o||o>m)&&(a[4]=n,a[5]=o,f.n=m,i=0))}if(r||n>1)return s;throw d=!0,o}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),i=u,l=m;(t=i<2?e:l)||!d;){a||(i?i<3?(i>1&&(f.n=-1),p(i,l)):f.n=l:f.v=l);try{if(c=2,a){if(i||(r="next"),t=a[r]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),i=1);a=e}else if((t=(d=f.n<0)?l:n.call(o,f))!==s)break}catch(t){a=e,i=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,a),!0),c}var s={};function i(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(x(t={},o,function(){return this}),t),d=c.prototype=i.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,x(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,x(d,"constructor",c),x(c,"constructor",l),l.displayName="GeneratorFunction",x(c,r,"GeneratorFunction"),x(d),x(d,r,"Generator"),x(d,o,function(){return this}),x(d,"toString",function(){return"[object Generator]"}),(y=function(){return{w:a,m:f}})()}function x(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}x=function(e,t,n,o){function a(t,n){x(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},x(e,t,n,o)}function b(e,t,n,o,r,a,s){try{var i=e[a](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(o,r)}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,C(o.key),o)}}function g(e,t,n){return t=_(t),function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,O()?Reflect.construct(t,n||[],_(e).constructor):t.apply(e,n))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(O=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function D(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}var T=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),D(n=g(this,t,[e]),"searchByRoomNumberClientSideValidation",function(e){var t=e.target.value;t.length>0&&n.setState({onSearchInputFocus:!1}),s.specialCharacter.test(t)?n.setState({checkSpecialCharValidation:!0,checkInvalidError:!1,submitButtonDisableForClientSideValidation:!0}
1):n.setState({checkSpecialCharValidation:!1,submitButtonDisableForClientSideValidation:!1}),n.setState({searchData:t})}),D(n,"searchByRoomNumberApiValidation",function(){var e=n.state.searchData,t=0===(e||"").trim().length;if(""===!e||t)n.setState({checkInvalidError:!0});else{var o,r,i,l;e.length>0&&n.setState({onSearchInputFocus:!1});var p=n.state.roomsDataSessionStorage.selectedRooms[n.state.selectedRoomIndex].guests.map(function(e){return{seqNo:e.seqNo,type:e.type,dob:""}}),m={originalSailingId:"",departPortId:"",arrivalPortId:"",departPortSuffix:"",arrivalPortSuffix:"",duration:"",shipCode:n.state.roomsDataSessionStorage.shipCode,shipVersion:n.state.roomsDataSessionStorage.shipVersion,sailingDate:n.state.roomsDataSessionStorage.sailingDate,cityCode:n.state.roomsDataSessionStorage.cityCode,rateCode:n.state.roomsDataSessionStorage.rateCode,tourId:(null===(o=n.state.roomsDataSessionStorage)||void 0===o?void 0:o.tourId)||"",typeCode:null===(r=n.state.roomsDataSessionStorage.selectedRooms[n.state.selectedRoomIndex])||void 0===r?void 0:r.typeCode,categoryCode:null===(i=n.state.roomsDataSessionStorage.selectedRooms[n.state.selectedRoomIndex])||void 0===i?void 0:i.categoryCode,tourDeparture:n.state.roomsDataSessionStorage.tourDeparture,searchBy:"ROOM_NO",cabinNumber:n.state.searchData,roomTypeOption:"",cabinPreference:{accessibleType:"",insuranceCode:"",guests:p}};if((0,c.M3g)()){var v=JSON.parse(sessionStorage.getItem(s.USER_INFO_DATA));m.firstName=null==v?void 0:v.firstName,m.lastName=null==v?void 0:v.lastName,m.marinerId=null==v?void 0:v.marinerId}var h=document.querySelector(".cmp-search-by-room-number").getAttribute("data-redirect-summarypage-url"),y=document.querySelector(".cmp-search-by-room-number").getAttribute("data-redirect-choose-your-guest-url"),x=JSON.parse(sessionStorage.getItem(s.ROOMS_DATA));x.selectedRooms[n.state.selectedRoomIndex].cabin.number=n.state.searchData,a().post(null===(l=n.state.apiUrl)||void 0===l?void 0:l.replace("{cruiseid}",x.cruiseCode),m).then(function(e){if(e){if(sessionStorage.getItem(s.ROOMS_DATA)){var t,o,r,a=0,i=!1;if(sessionStorage.getItem(s.SELECTED_ROOM_INDEX)&&(a=parseInt(sessionStorage.getItem(s.SELECTED_ROOM_INDEX))),null!==(t=JSON.parse(sessionStorage.getItem(s.ROOMS_DATA))[s.SELECTED_ROOMS][a])&&void 0!==t&&t.cabin){var l=sessionStorage.getItem(s.ROOMS_DATA),c=JSON.parse(l);sessionStorage.getItem(s.ROOMS_DATA_HISTORY)?(sessionStorage.setItem(s.ROOMS_DATA_SEARCH_HISTORY,JSON.stringify(c)),i=!0):sessionStorage.setItem(s.ROOMS_DATA_HISTORY,JSON.stringify(c))}if(e&&null!=e&&null!==(o=e.data)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&o.roomTypes&&null!=e&&null!==(r=e.data)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&null!==(r=r.roomTypes[0])&&void 0!==r&&r.categories[0].sections){var p;n.setTaxAndFeesData(null==e||null===(p=e.data)||void 0===p?void 0:p.data);var m=e.data.data.roomTypes[0].categories[0].sections.find(function(e){return!0===e.available});null==x.selectedShipSection&&(x.selectedShipSection=new Array(n.state.totalRoom).fill(null)),x.selectedShipSection[n.state.selectedRoomIndex]=m}var v=e.data.data.roomTypes[0].categories[0].sections[0].sectionCode,b=e.data.data.roomTypes[0].categories[0].sections[0].decks[0].deckNumber,S=e.data.data.roomTypes[0].categories[0].sections[0].decks[0].cabins[0].number;x.selectedRooms[n.state.selectedRoomIndex].cabin.section=v,x.selectedRooms[n.state.selectedRoomIndex].cabin.deck=b,x.selectedRooms[n.state.selectedRoomIndex].cabin.number=S,sessionStorage.setItem(s.ROOMS_DATA,JSON.stringify(x)),(0,u.P)(i?s.EDIT_ROOM_SEARCH_SELECTED:s.ROOM_SEARCH_SELECTED).then(function(e){e&&((0,f.GL)()&&(0,d.KJ)(),n.setState({checkInvalidError:!1}),sessionStorage.removeItem(s.ROOMS_DATA_HISTORY),sessionStorage.removeItem(s.ROOMS_DATA_SEARCH_HISTORY),sessionStorage.setItem(s.ROOMS_DATA,JSON.stringify(x)),sessionStorage.getItem(s.CRUISE_BOOKING_SUMMARY_LOAD)||n.state.selectedRoomIndex==n.state.roomsDataSessionStorage.selectedRooms.length-1?window.location=h:(sessionStorage.setItem(s.SELECTED_ROOM_INDEX,n.state.selectedRoomIndex+1),window.location=y))})}}else n.setState({checkInvalidError:!0})}).catch(function(e){n.setState({loadingIcon:!1,checkInvalidError:!0,errorMsg:(0,c.AHo)(e)})})}}),D(n,"searchByRoomNumberInputFocus",function(){n.setState({onSearchInputFocus:!1})}),D(n,"searchByRoomNumberInputBlur",function(){n.state.searchData.length>0?n.setState({onSearchInputFocus:!1}):n.setState({onSearchInputFocus:!0})}),n.state={checkSpecialCharValidation:!1,checkInvalidError:!1,searchIcon:!0,onSearchInputFocus:!0,loadingIcon:!1,searchData:"",roomsDataSessionStorage:{},isCaTaxesAndFeesCombined:!1,redirect:"",labelList:{},submitButtonDisableForClientSideValidation:!1,isTaxAvailable:!1,selectedRoomIndex:0,apiUrl:"",errorMsg:"",totalRoom:0},n.searchByRoomRef=o.createRef(),n}return function(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&&R(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:(h=y().m(function e(){var t,n,o,r,a,l=this;return y().w(function(e){for(;;)switch(e.n){case 0:return t=sessionStorage.getItem(s.ROOMS_DATA),n=JSON.parse(sessionStorage.getItem(s.ROOMS_DATA)),o=0,sessionStorage.getItem(s.SELECTED_ROOM_INDEX)&&(o=parseInt(sessionStorage.getItem(s.SELECTED_ROOM_INDEX))),r=document.querySelector(".cmp-search-by-room-number").getAttribute("data-search-by-room-number"),a=document.querySelector(".cmp-search-by-room-number").getAttribute("data-room-search-api"),this.setTaxAndFeesData(n),e.n=1,this.setState({apiUrl:a,labelList:JSON.parse(r),selectedRoomIndex:o,roomsD
1ataSessionStorage:JSON.parse(t),totalRoom:n.numOfStateRooms});case 1:(0,i.A)(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix").then(function(){l.taxFeeRef.updateTaxDetails(l.state.taxPriceDetails)});case 2:return e.a(2)}},e,this)}),x=function(){var e=this,t=arguments;return new Promise(function(n,o){var r=h.apply(e,t);function a(e){b(r,n,o,a,s,"next",e)}function s(e){b(r,n,o,a,s,"throw",e)}a(void 0)})},function(){return x.apply(this,arguments)})},{key:"setTaxAndFeesData",value:function(e){var t=(0,m.R)(e,this.state.selectedRoomIndex||0);t&&this.setState({isCaTaxesAndFeesCombined:t.rcfeIncluded&&t.taxesAndFeesCombined,taxPriceDetails:t.taxDetails,isTaxAvailable:t.taxStatus})}},{key:"render",value:function(){var e,t,n,r,a,i,c,u=this;return(0,v.jsx)(o.Fragment,{children:(0,v.jsxs)("div",{ref:this.searchByRoomRef,children:[(0,v.jsxs)("div",{className:"room__search",children:[(0,v.jsx)("div",{className:"room__search-title",children:(0,v.jsx)("span",{className:"room__search-title--label",children:null===(e=this.state.labelList)||void 0===e?void 0:e.SearchByRoomNumberTitle})}),(0,v.jsxs)("div",{className:"room__search-content",children:[(0,v.jsx)("div",{className:"room__search-content--tab-title-search",children:null===(t=this.state.labelList)||void 0===t?void 0:t.SearchByRoomNumberTabTitle}),(0,v.jsxs)("div",{className:"room__search-content--search-box-container",children:[this.state.onSearchInputFocus&&(0,v.jsx)("span",{className:"search-icon"}),(0,v.jsx)("input",{className:"search-input",maxLength:s.searchByRoomNumberMaxLength,"aria-label":null===(n=this.state.labelList)||void 0===n?void 0:n.SearchByRoomNumberTabTitle,type:"text",onChange:function(e){return u.searchByRoomNumberClientSideValidation(e)},value:this.state.searchData,onFocus:this.searchByRoomNumberInputFocus,onBlur:this.searchByRoomNumberInputBlur}),(0,v.jsxs)("button",{className:"search-btn",type:"button",href:"#",onClick:function(){return u.searchByRoomNumberApiValidation()},disabled:this.state.submitButtonDisableForClientSideValidation,"aria-label":(null===(r=this.state.labelList)||void 0===r?void 0:r.SearchButtonTitleContext)+" "+(null===(a=this.state.labelList)||void 0===a?void 0:a.SearchButtonTitle),children:[(0,v.jsx)("span",{className:"search-btn--label",children:null===(i=this.state.labelList)||void 0===i?void 0:i.SearchButtonTitle}),this.state.loadingIcon&&(0,v.jsx)("div",{className:"loading hide",children:(0,v.jsx)("span",{className:"loading-icon"})})]})]}),this.state.checkInvalidError&&(0,v.jsx)("div",{className:"error-label",role:"alert","aria-atomic":"false",children:this.state.errorMsg}),this.state.checkSpecialCharValidation&&(0,v.jsx)("div",{className:"error-label",role:"alert","aria-atomic":"false",children:null===(c=this.state.labelList)||void 0===c?void 0:c.SpecialCharacterError})]})]}),this.searchByRoomRef&&(this.state.isTaxAvailable||this.state.isCaTaxesAndFeesCombined)&&(0,v.jsx)(l.I,{refName:this.searchByRoomRef,ref:function(e){return u.taxFeeRef=e}})]})})}}],r&&S(n.prototype,r),p&&S(n,p),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,p,h,x}(o.Component);(0,p.f)(T,".cmp-search-by-room-number")},8942:function(e,t,n){n.d(t,{I:function(){return O}});var o=n(6540),r=n(2505),a=n.n(r),s=n(4692),i=n.n(s),l=n(1145),c=n(3683),u=n(3762),d=n(8312),f=n(4997),p=n(4848);function m(e){return m="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},m(e)}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,g(o.key),o)}}function h(e,t,n){return t=x(t),function(e,t){if(t&&("object"==m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],x(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}
1function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function S(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}var O=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),S(n=h(this,t,[e]),"closeModalclickOutside",function(e){var t,o,r;null===(null===(t=n.props.refName)||void 0===t?void 0:t.current)||e.target.closest(".modal")||!i()(".legal-modal").hasClass("active")||e.target.closest(".legal-container")||(null===(o=document.querySelector(".legal-modal"))||void 0===o||o.classList.remove("active"),(0,u.A)(".legal-modal").then(function(){n.state.currentElement.focus()}),null===(r=document.querySelector("body").classList)||void 0===r||r.remove(l.NO_SCROLL))}),S(n,"updateTaxDetails",function(e){var t=window.configs?window.configs.brand:l.brandHal;if(null!==(null==e?void 0:e.taxesAndFees)&&void 0!==(null==e?void 0:e.taxesAndFees)&&""!==(null==e?void 0:e.taxesAndFees)||null!=e&&e.tax){var o=i()(n.taxFeeRef.current).find(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix p").html();if(o&&(o.includes("{{taxAmount}}")||o.includes("{{additionalText}}"))){o=o.replace("{{taxAmount}}",'<span class="tax-amount">'+(null==e?void 0:e.taxesAndFees)+"</span>");var r="";r=t===l.brandHal?null!=e&&e.taxesAndFeesCombined?"included":"additional":null!=e&&e.taxesAndFeesCombined?"inclusive":"exclusive",o=o.replace("{{additionalText}}",'<span class="tax-type-text">'+r+"</span>"),i()(n.taxFeeRef.current).find(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix p").html(o)}else{var a=(new DOMParser).parseFromString(o,"text/html");a.querySelector(".tax-amount")&&(a.querySelector(".tax-amount").innerHTML=null==e?void 0:e.taxesAndFees);var s="";s=t===l.brandHal?null!=e&&e.taxesAndFeesCombined?"included":"additional":null!=e&&e.taxesAndFeesCombined?"inclusive":"exclusive",a.querySelector(".tax-type-text")&&(a.querySelector(".tax-type-text").innerHTML=s),i()(n.taxFeeRef.current).find(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix p").html(a.querySelector("body").innerHTML)}}else i()(n.taxFeeRef.current).hide()}),S(n,"removeTabIndex",function(){(0,u.A)(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix").then(function(){i()(n.taxFeeRef.current).find(".cmp-taxes-fees-port-expenses-xf__legal-cta-wrapper").removeAttr("tabindex"),i()(n.taxFeeRef.current).find(".cmp-taxes-fees-port-expenses-xf").parent().show()})}),S(n,"addDataAutomationId",function(e){(0,u.A)(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix").then(function(){i()(n.taxFeeRef.current).find(".legal-container.tax").attr("data-automation-id",e)})}),n.state={xfContent:"",currentElement:""},n.taxFeeRef=o.createRef(),n.xfLoaded=!1,n}return function(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&&b(e,t)}(t,e),n=t,r=[{key:"shouldComponentUpdate",value:function(){return!this.xfLoaded}},{key:"componentDidMount",value:function(){var e,t=this,n=this.taxFeeRef.current;i()(document).on("keydown",function(e){e.keyCode===l.escapeKeyCode&&i()(".legal-modal").removeClass("active")}),i()(document).on("click",this.closeModalclickOutside),(0,u.A)(".legal-modal").then(function(){var e,o,r=i()(n).find(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix p").html();r=null===(o=r=null===(e=r)||void 0===e?void 0:e.replace("{{currencyCode}}",'<span class="currency-code">'+(0,c.D9t)()+"</span>"))||void 0===o?void 0:o.replace("{{currencySymbol}}",'<span class="currency-symbol">'+(0,c.QnQ)()+"</span>"),i()(n).find(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix p").html(r);var a=n.querySelector(".other-expenses-link"),s=n.querySelector(".aria-modal-tax"),l=n.querySelector(".aria-modal-pricing");i()(s).on("click",".close",function(e){return t.closeModal(e.currentTarget)}),i()(l).on("click",".close",function(e){return t.closeModal(e.currentTarget)}),i()(a).on("click",".legal-container",function(e){return t.openLegalModal(n,e)})}),this.props.itemData?(this.updatePriceDateOnPageLoad(this.props.itemData),null!==(e=this.props.itemData[this.props.itemData.itineraryId])&&void 0!==e&&e[this.props.itemData.activeDateIndex].soldOut?(i()(n).find(".cmp-taxes-fees-port-expenses-xf").addClass("cmp-taxes-fees-port-expenses-xf_hide-if-sold-out"),i()(n).find(".cmp-taxes-fees-port-expenses-xf__legal-cta-wrapper").removeAttr("tabindex")):(i()(n).find(".cmp-taxes-fees-port-expenses-xf").removeClass("cmp-taxes-fees-port-expenses-xf_hide-if-sold-out"),i()(n).find(".cmp-taxes-fees-port-expenses-xf__legal-cta-wrapper").attr("tabindex","0"))):this.initializeTaxesFees()}},{key:"initializeTaxesFees",value:function(){var e,t,n=this,o=(0,c.Cg7)(),r=o.taxesAndFeesCombined,s=void 0!==r&&r,i=o.rcfeIncluded,l="data-taxes-fees-expenses-api-url";void 0!==i&&i&&(l=s?"data-ca-taxes-and-fees-combined-api-url":"data-ca-taxes-and-fees-not-included-api-url");var u=null===(e=this.props)||void 0===e||null===(e=e.refName)||void 0===e||null===(e=e.current)||void 0===e||null===(e=e.parentElement)||void 0===e?void 0:e.getAttribute(l);!u||null!==(t=this.taxFeeRef.current)&&void 0!==t&&t.innerHTML||a().get(u,{headers:{"Content-Type":"text/html"}}).then(function(e){var t,o=(null===(t=(new DOMParser).parseFromString(null==e?void 0:e.data,"text/html").querySelector(".cmp-taxes-fees-port-expenses-xf"))||void 0===t?void 0:t.outerHTML)||"",r=n.taxFeeRef.current;if(r){r.innerHTML=f.A.sanitize(o,{ADD_ATTR:["tabindex","data-legal","data-component"]}),n.xfLoaded=!0;var a=r.querySelector(".cmp-taxes-fees-port-expenses-xf");a&&new d.default(a)}})}},{key:"componentDidUpdate",value:function(e){var t=this;if(e.refName!==this.props.refName){var n,o,r,a=null===(n=this.taxFeeRef)||void 0===n?void 0:n.current,s=null===(o=this.props)||void 0===o||null===(o=o.refName)||void 0===o?void 0:o.current;(0,u.A)(".legal-modal").then(function(){var e,n,o=i()(a).find(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix p").html();o=null===(n=o=null===(e=o)||void 0===e?void 0:e.replace("{{currencyCode}}",'<span class="currency-code">'+(0,c.D9t)()+"</span>"))||void 0===n?void 0:n.replace("{{currencySymbol}}",'<span class="currency-symbol">'+(0,c.QnQ)()+"</span>"),i()(a).find(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix p").html(o);var r=a.querySelector(".other-expenses-link"),s=a.querySelector(".aria-modal-tax"),l=a.querySelector(".aria-modal-pricing");i()(s).on("click",".close",function(e){return t.closeModal(e.currentTarget)}),i()(l).on("click",".close",function(e){return t.closeModal(e.currentTarget)}),i()(r).on("click",".legal-container",function(e){return t.openLegalModal(a,e)})}),this.props.itemData?(this.updatePriceDateOnPageLoad(this.props.itemData),null!==(r=this.props.itemData[this.props.itemData.itineraryId])&&void 0!==r&&r[this.props.itemData.activeDateIndex].soldOut?i()(a).find(".cmp-taxes-fees-port-expenses-xf").addClass("cmp-taxes-fees-port-expenses-xf_hide-if-sold-out"):i()(a).find(".cmp-taxes-fees-port-expenses-xf").removeClass("cmp-taxes-fees-port-expenses-xf_hide-if-sold-out")):i()(s).find(".choose-ship-deck__container")||this.initializeTaxesFees()}}},{key:"updatePriceDateOnPageLoad",value:function(e){var t=this.props.getTaxFeePrice(e);this.updateTaxDetails(t)}},{key:"getExperienceFragmentHtml",value:function(){var e;return this.props.xfContentData?this.props.xfContentData:null===(e=this.state)||void 0===e?void 0:e.xfContent}},{key:"openLegalModal",value:function(e,t){this.setState(function(e){return e.currentElement=document.activeElement,e});var n,o="aria-modal-"+t.currentTarget.classList[1],r=i()(e).find("."+o);i()(r).addClass("active"),i()(r).hasClass("active")&&(null===(n=document.querySelector("body").classList)||void 0===n||n.add(l.NO_SCROLL)),(0,c.$cp)(r[0]),(0,u.A)(".legal-modal").then(function(){r[0].querySelector(".close").focus()})}},{key:"closeModal",value:function(e){var t;i()(e).closest(".legal-modal").removeClass("active"),i()(e).closest(".legal-modal").siblings(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix").find("."+this.state.currentElement.classList[1])[0].focus(),null===(t=document.querySelector("body").classList)||void 0===t||t.remove(l.NO_SCROLL)}},{key:"render",value:function(){return(0,p.jsx)(o.Fragment,{children:(0,p.jsx)("div",{dangerouslySetInnerHTML:{__html:this.getExperienceFragmentHtml()},ref:this.taxFeeRef})})}}],r&&v(n.prototype,r),s&&v(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(o.Component)},8312:function(e,t,n){n.r(t),n.d(t,{default:function(){return d}});var o=n(4692),r=n.n(o),a=n(1145),s=n(3683),i=n(3762);function l(e){return l="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},l(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}var d=function(){return e=function e(t){var n,o,l,c=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,l=function(e){r()(e).closest(".legal-modal").removeClass("active"),c.currentElement.focus()},(o=u(o="closeModal"))in n?Object.defineProperty(n,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[o]=l,this.el=t,this.currentElement="",r()(t).on("click",".legal-modal .close",function(e){return c.closeModal(e.currentTarget)}),r()(t).on("click",".legal-container",function(e){return c.openLegalModal(t,e)}),r()(document).on("keydown",function(e){e.keyCode===a.escapeKeyCode&&r()(".legal-modal").removeClass("active")}),r()(document).on("click",this.closeModalclickOutside);var d=(0,s.D9t)(),f=(0,s.QnQ)();this.el.classList.contains("tax-legal-panel")&&this.el.classList.contains("tax-suites-staterooms")||(0,i.A)(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix").then(function(){var e,t,n=r()(c.el).find(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix p").html();n=null===(t=n=null===(e=n)||void 0===e?void 0:e.replace("{{currencySymbol}}",'<span class="currency-symbol">'+f+"</span>"))||void 0===t?void 0:t.replace("{{currencyCode}}",'<span class="currency-code">'+d+"</span>"),r()(c.el).find(".cmp-taxes-fees-port-expenses-xf__legal-and-asterix p").html(n)})},t=[{key:"closeModalclickOutside",value:function(e){var t,n=this;e.target.closest(".modal")||!r()(".legal-modal").hasClass("active")||e.target.closest(".legal-container")||(null===(t=e.target.closest(".legal-modal"))||void 0===t||t.classList.remove("active"),(0,i.A)(".legal-modal").then(function(){n.currentElement.focus()}))}},{key:"openLegalModal",value:function(e,t){this.currentElement=document.activeElement;var n="aria-modal-"+t.currentTarget.classList[1],o=r()(e).find("."+n);r()(o).addClass("active"),(0,s.$cp)(o[0]),(0,i.A)(".legal-modal").then(function(){o[0].querySelector(".close").focus()})}}],t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},5565:function(e,t,n){n.d(t,{R:function(){return r}});var o=n(1145);function r(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=sessionStorage.getItem(o.ROOMS_DATA);if(!a)return null;var s=JSON.parse(a),i=e||{},l=i.rcfeIncluded,c=void 0!==l&&l,u=i.taxesAndFeesCombined,d=void 0!==u&&u;s[o.RCFE_INCLUDED]=c,s[o.TAX_AND_FEES_COMBINED]=d,sessionStorage.setItem(o.ROOMS_DATA,JSON.stringify(s));var f=null===(t=s[o.SELECTED_ROOMS])||void 0===t?void 0:t[r],p=function(e,t,n){if(!e||!t)return{taxDetails:{},taxStatus:!1};if(e.roomTypes){var o,r=e.roomTypes.find(function(e){return e.typeCode==t.typeCode}),a=null==r||null===(o=r.categories)||void 0===o?void 0:o.find(function(e){return e.categoryCode===t.categoryCode&&e.price});return a?{taxDetails:a.price,taxStatus:!0}:{taxDetails:{},taxStatus:!1}}if(e.price&&(null==n?void 0:n.categoryCode)===e.categoryCode){var s=e.price.find(function(e){return e.category===n.categoryCode});if(s)return{taxDetails:s,taxStatus:!0}}return{taxDetails:{},taxStatus:!1}}(null==s||null===(n=s.rateCodes)||void 0===n?void 0:n[s.rateCode],f,s);return{taxDetails:p.taxDetails,taxStatus:p.taxStatus,rcfeIncluded:c,taxesAndFeesCombined:d}}}}]);

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.