1"use strict";(self.webpackChunkndr_unified=self.webpackChunkndr_unified||[]).push([[7706],{1742(e,t,c){var a=c(4809),o=c.n(a),n=c(7162);function i(e,t){for(var c=0;c<t.length;c++){var a=t[c];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var r,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.socialEmbedCheckbox=t,this.getSocialEmbedInputs=this.socialEmbedCheckbox.querySelectorAll("input"),this.localStorageService=[]}var t,c;return t=e,(c=[{key:"initSocialEmbedCheckbox",value:function(){this.setDefaultCheckedItemsInLocalStorage(),this.getServicesFromLocalStorage(),this.checkedStatus(),this.setEventlistenerToCheckbox()}},{key:"setDefaultCheckedItemsInLocalStorage",value:function(){var e=this;Object.keys(n.A).forEach(function(t){var c=n.A[t],a=e.socialEmbedCheckbox.querySelector('[name="'+n.A[t].serviceName+'"]'),i=c.optInAllowedByDefault,r=localStorage.getItem("acceptembed-"+c.serviceName);null===r&&i&&(o().setAcceptEmbed(c.serviceName),a&&(a.checked=!0)),null!==r||i||(o().setRejectEmbed(c.serviceName),a&&(a.checked=!1)),i&&"false"!==r&&a&&(a.checked=!0,o().setAcceptEmbed(c.serviceName))})}},{key:"getServicesFromLocalStorage",value:function(){for(var e=0;e<localStorage.length;e++){var t=localStorage.key(e);if(0===t.indexOf("acceptembed")){var c=t.replace("acceptembed-","");this.localStorageService.push({servicename:c})}}}},{key:"checkedStatus",value:function(){var e=this;this.localStorageService.forEach(function(t){e.getSocialEmbedInputs.forEach(function(c){if(c.name===t.servicename){e.service=n.A[t.servicename];var a=localStorage["acceptembed-"+t.servicename];"true"===a||"false"!==a&&e.service.optInAllowedByDefault?c.checked=!0:c.checked=!1}})})}},{key:"setEventlistenerToCheckbox",value:function(){this.getSocialEmbedInputs.forEach(function(e){e.addEventListener("click",function(e){e.target.checked?o().setAcceptEmbed(e.target.name):o().setRejectEmbed(e.target.name)}
1)})}}])&&i(t.prototype,c),e}();window,void 0!==(r=document).getElementById("optincheckboxes")&&r.querySelectorAll("[data-js_component='socialembedcheckbox-component']").forEach(function(e){new l(e).initSocialEmbedCheckbox()})}}]);
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.