PageSourceSearch

https://www.hollandamerica.com/etc.clientlibs/carnival/clientlibs/…/magazine-selection.ebe51755a4b53dfe2f8c.js

js hollandamerica.com collected 2026-10-01 09:09:20 UTC 5,566 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[4436],{6328:function(e,a,n){n.r(a),n.d(a,{default:function(){return v}});var t=n(4692),i=n.n(t),c=n(9838),s=n(1145),o=n(1995),r=n(5093),d=n.n(r),l=n(2505),m=n.n(l),p=n(3683);function f(e){return f="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},f(e)}function _(e,a){for(var n=0;n<a.length;n++){var t=a[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,b(t.key),t)}}function u(e,a,n){return a&&_(e.prototype,a),n&&_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e,a,n){return(a=b(a))in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function b(e){var a=function(e,a){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,a||"default");if("object"!=f(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)}(e,"string");return"symbol"==f(a)?a:a+""}var v=u(function e(a){var n=this;!function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"selectMagazine",function(){i()(n.el).find(".cmp-magazine-selection__subscription-page").hide(),i()(n.el).find(".cmp-magazine-selection__selection-page").show()}),g(this,"cancelMagazine",function(){i()(n.el).find(".cmp-form").validate().currentForm.reset(),i()(n.el).find(".cmp-form-options__field--checkbox").removeClass("error"),i()(n.el).find(".cmp-form-options__field-label").find("label").text(""),i()(n.el).find(".cmp-magazine-selection__subscription-page").show(),i()(n.el).find(".cmp-magazine-selection__selection-page").hide()}),this.el=a,this.selectedMagazine="";var t="";i()(a).find(".cmp-magazine-selection__subscription-page button").on("click",this.selectMagazine),i()(a).find(".cmp-magazine-selection__selection-page .cmp-button--secondary a").on("click",this.cancelMagazine),sessionStorage.getItem(s.USER_INFO_DATA)&&sessionStorage.getItem(s.USER_INFO_DATA).length>0&&(t=JSON.parse(sessionStorage.getItem(s.USER_INFO_DATA)),i()(this.el).find(".cmp-magazine-selection__selection-page .cmp-magazine-selection__address-selected").append('<div aria-label="'.concat(t.firstName," ").concat(t.lastName,'">').concat(t.firstName," ").concat(t.lastName," </div>")),i()(a).find(".cmp-magazine-selection__selection-page .cmp-magazine-selection__address-selected").append('<div aria-label="'.concat(t.address.address1,'">').concat(t.address.address1,"</div>")),i()(a).find(".cmp-magazine-selection__selection-page .cmp-magazine-selection__address-selected").append('<div aria-label="'.concat(t.address.city,", ").concat(t.address.state,", \n                ").concat(t.address.postalCode,'">').concat(t.address.city," ").concat(t.address.state," \n                     ").concat(t.address.postalCode," </div>")),i()(a).find(".cmp-magazine-selection__selection-page .cmp-magazine-selection__address-selected").append('<div aria-label="'.concat(t.address.country,'">').concat(t.address.country,"</div>")),i()(a).find(".cmp-magazine-selection__subscribed-page .cmp-magazine-selection__address-selected").append('<div aria-label="'.concat(t.firstName," ").concat(t.lastName,'"> ').concat(t.firstName," ").concat(t.lastName," </div>")),i()(a).find(".cmp-magazine-selection__subscribed-page .cmp-magazine-selection__address-selected").append('<div aria-label="'.concat(t.address.address1,'">').concat(t.address.address1,"</div>")),i()(a).find(".cmp-magazine-selection__subscribed-page .cmp-magazine-selection__address-selected").append('<div aria-label="'.concat(t.address.city," ").concat(t.address.state,"  \n                ").concat(t.address.postalCode,' ">').concat(t.address.city," ").concat(t.address.state,",  \n                    ").concat(t.address.postalCode," </div>")),i()(a).find(".cmp-magazine-selection__subscribed-page .cmp-magazine-selection__address-selected").append('<div aria-label="'.concat(t.address.country,'">').concat(t.address.country,"</div>"))),i()(a).each(function(e,n){var s=this,r=i()(n).find(".cmp-form"),l=i()(r).attr("data-api-url");r.submit(function(e){if(r.validate().valid()){e.preventDefault();var f=(0,c.A)(i()(n).find(".cmp-form").serializeArray()),_={userName:t.emailAddress,magazineCodes:[],termsConsent:f.termsConsent};_.magazineCodes.push(f.magazineCodes),m().post(l,_).then(function(e){var n;200===e.status&&e.data.data?(s.selectedMagazine=i()(a).find(".cmp-magazine-selection__radio-container input:checked").parent().find(".cmp-form-options__label").text().trim(),i()(a).find(".cmp-magazine-selection__subscribed-page .cmp-magazine-selection__magazine-selected").text(s.selectedMagazine),i()(a).find(".cmp-magazine-selection__selection-
1page").hide(),i()(a).find(".cmp-magazine-selection__subscribed-page").show(),i()(a).find(".cmp-magazine-selection__subscribed-page .cmp-magazine-selection__date").find("span").text(d()(new Date).format("MMM DD, YYYY"))):(r.find(".cmp-form__api-error").show(),(0,o.od)(null==r||null===(n=r.find(".cmp-form__api-error"))||void 0===n?void 0:n.text()))}).catch(function(e){var a;r.find(".cmp-form__api-error").show(),r.find(".cmp-form__api-error").text((0,p.AHo)(e)),(0,o.od)(null==r||null===(a=r.find(".cmp-form__api-error"))||void 0===a?void 0:a.text())})}else r.find("input.cmp-form-text__text.error")[0].focus()})})})}}]);

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.