PageSourceSearch

https://www.dacbeachcroft.com/scripts/PrefManager-chunk.js?7d80ac5f02af296bb61c

js dacbeachcroft.com collected 2026-09-25 03:51:29 UTC 12,656 bytes, 2 lines download raw bytes

vendor: 4,450 bytes, lines 1-2
1/*! For license information please see PrefManager-chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6506],{4985:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});r(5374),r(3238),r(5849),r(1418),r(9785),r(5901),r(2189),r(1047),r(5769),r(7460),r(4078),r(8521),r(6798),r(2923),r(1897),r(4374),r(2274),r(3352),r(987),r(190),r(2410);var n=r(9357);function o(e){return o="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},o(e)}function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return F()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var h={};function p(){}function d(){}function m(){}var y={};u(y,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&r.call(g,a)&&(y=g);var b=m.prototype=p.prototype=Object.create(y);function L(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==o(h)&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(h).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:F}}function F(){return{value:void 0,done:!0}}return d.prototype=m,u(b,"constructor",m),u(m,"constructor",d),d.displayName=u(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,c,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},L(w.prototype),u(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new w(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(b),u(b,c,"Generator"),u(b,a,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function a(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){a(i,n,o,s,c,"next",e)}function c(e){a(i,n,o,s,c,"throw",e)}s(void 0)}))}}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}const u=function(){function e(t){var r,o,a,c=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a=function(e){e.forEach((function(e){var t=e.querySelector("input");"checked"===t.getAttribute("checked")&&t.click()}))},(o="resetCheckBoxes")in(r=this)?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,this.$el=t,console.log("PreferenceManager loaded..."),this.menuItems=this.$el.querySelectorAll(".prefmng__sidenav__menu>li"),this.prefForms=this.$el.querySelectorAll(".prefmng__form>form"),this.prefFormErrorLabel=this.$el.querySelector(".prefmng__form--error"),this.prefFormSucessLabel=this.$el.querySelector(".prefmng__form--success"),this.menuItems[0].classList.add("active"),this.prefForms[0].classList.remove("hide-element"),this.successMsg=this.prefFormSucessLabel.textContent,this.errorMsg=this.prefFormErrorLabel.textContent,this.menuItems.forEach((function(e,t,r){var o=c.prefForms[t].querySelector(".prefmng__form__unsubscribe"),a=c.prefForms[t].querySelector(".prefmng__form__unsubscribe--label"),u=c.prefForms[t].dataset.prefapiUrl,l=c.prefForms[t].querySelector(".prefmng__form__submit--ctalink"),f=c.prefForms[t].querySelectorAll(".prefmng__form--option"),h=c.prefForms[t].querySelector(".prefmng__form__ip");f.forEach((function(e){var t=e.querySelector("input");t.addEventListener("change",(function(e){t.checked?t.setAttribute("checked","checked"):t.setAttribute("checked","unchecked")}))})),""!==a.textContent&&" "!==a.textContent&&null!==a.textContent||o.classList.add("hide-element"),o&&o.addEventListener("click",
2s(i().mark((function e(){var t,r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("unsubscribe....",null==h?void 0:h.getAttribute("value")),t=null==h?void 0:h.getAttribute("value"),r={Category:t,SubCategory:[]},console.log("prefPayload...",r),e.prev=4,1!==n.gT.showMockData){e.next=11;break}return e.next=8,fetch("../../assets/pref-manager-response.json",{method:"GET",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"}});case 8:o=e.sent,e.next=14;break;case 11:return e.next=13,fetch(u,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});case 13:o=e.sent;case 14:return e.next=16,o.json();case 16:a=e.sent,console.log("unsubscribeResponse...",a),a&&!0===a?(c.prefFormSucessLabel.textContent=c.successMsg,c.prefFormErrorLabel.classList.remove("display-element"),c.prefFormSucessLabel.classList.add("display-element")):(c.prefFormErrorLabel.textContent=c.errorMsg,c.prefFormErrorLabel.classList.add("display-element"),c.prefFormSucessLabel.classList.remove("display-element")),c.enableButton(l),c.resetCheckBoxes(f),e.next=27;break;case 23:e.prev=23,e.t0=e.catch(4),c.enableButton(l),c.resetCheckBoxes(f);case 27:case"end":return e.stop()}}),e,null,[[4,23]])})))),l.addEventListener("click",s(i().mark((function e(){var t,r,o,a,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("cta...."),c.disableButton(l),t=null==h?void 0:h.getAttribute("value"),r=[],f.forEach((function(e){var t=e.querySelector("input");console.log(t.getAttribute("checked"),"check... value ",t.getAttribute("value")),t.getAttribute("checked")&&"checked"===t.getAttribute("checked")&&null!==t.getAttribute("checked")&&r.push(t.getAttribute("value"))})),o={Category:t,SubCategory:r},console.log("payload....",o),e.prev=7,1!==n.gT.showMockData){e.next=14;break}return e.next=11,fetch("../../assets/pref-manager-response.json",{method:"GET",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"}});case 11:a=e.sent,e.next=17;break;case 14:return e.next=16,fetch(u,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});case 16:a=e.sent;case 17:return e.next=19,a.json();case 19:(s=e.sent)&&!0===s?(c.prefFormSucessLabel.textContent=c.successMsg,c.prefFormErrorLabel.classList.remove("display-element"),c.prefFormSucessLabel.classList.add("display-element")):(c.prefFormErrorLabel.textContent=c.errorMsg,c.prefFormErrorLabel.classList.add("display-element"),c.prefFormSucessLabel.classList.remove("display-element")),c.enableButton(l),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(7),c.enableButton(l),c.resetCheckBoxes(f);case 28:case"end":return e.stop()}}),e,null,[[7,24]])})))),e.addEventListener("click",(function(){c.menuItems.forEach((function(e){return e.classList.remove("active")})),c.prefForms.forEach((function(e){return e.classList.add("hide-element")})),e.classList.add("active"),c.prefForms[t].classList.remove("hide-element"),c.prefFormErrorLabel.classList.remove("display-element"),c.prefFormSucessLabel.classList.remove("display-element")}))}))}var t,r,o;return t=e,(r=[{key:"disableButton",value:function(e){e.classList.add("disabled")}},{key:"enableButton",value:function(e){e.classList.remove("disabled")}}])&&c(t.prototype,r),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),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.