1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["components-dx-checkbox-dx-checkbox-js"],{52082:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var o=n(71202),i=n(31695);function r(e){return r="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},r(e)}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,a(o.key),o)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}var c=function(){return e=function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t;var s=this.element.getAttribute("data-input");this.checkbox=document.getElementById(s),this.grandParent=t.parentNode.parentNode,this.viewport=(0,i.pi)(),this.defaults={className:"DxCheckbox",selector:".DxCheckbox",classes:{selected:"DxCheckbox--selected",noFocus:"DxCheckbox--no-focus"},modifier:null,viewports:{small:null,medium:null,large:null}},this.options=Object.assign(this.defaults,n);var a=this.options,c=a.className,l=a.viewports,u=this.options.modifier;(0,o.eA)(u)&&(Array.isArray(u)||(u=u.split()),u.forEach(function(e){return r.element.classList.add("".concat(c,"--").concat(e))})),(0,o.eA)(l[this.viewport])&&this.element.classList.add("".concat(c,"--").concat(l[this.viewport])),this._handleEvents()},(t=[{key:"_handleEvents",value:function(){var e=this,t=this.options.classes.selected;this.grandParent.addEventListener("click",function(){e.element.classList.add("no-focus")}),this.checkbox.addEventListener("change",function(){e.element.classList.toggle("".concat(t))}),window.addEventListener("resize",(0,o.nF)(function(){var t=(0,i.pi)(!1),n=e.options,o=n.className,r=n.viewports;t!==e.viewport&&(e.element.classList.remove("".concat(o,"--").concat(r[e.viewport])),e.element.classList.add("".concat(o,"--").concat(r[t])),e.viewport=t)},350,this),!1)}}])&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()}}]);
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.