PageSourceSearch

https://www.pharmaron.com/wp-content/themes/pharmaron/js/checkbox-select.d78175c98987d8ebbc76.js

js pharmaron.com collected 2026-09-25 20:17:04 UTC 2,867 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkpharmaron=self.webpackChunkpharmaron||[]).push([[201],{1962:function(t,e,n){n.r(e);var r=n(9062),i=n(5671),c=n(4942),o=(n(1249),n(8696)),s=function t(e){var n=this;(0,i.Z)(this,t),(0,c.Z)(this,"open",(function(){n.isActive()||(n.closeActive(),(0,o.slideDown)(n.options),n.el.classList.add("active"))})),(0,c.Z)(this,"close",(function(){n.isActive()&&((0,o.slideUp)(n.options),n.el.classList.remove("active"))})),(0,c.Z)(this,"closeActive",(function(){var t=document.querySelector(".checkbox-select.active");if(t){var e=t.querySelector(".checkbox-select__options");e&&((0,o.slideUp)(e),t.classList.remove("active"))}})),(0,c.Z)(this,"handleInnerClicks",(function(t){n.isActive()?t.target.closest(".checkbox-select__title")===n.title&&n.close():n.open()})),(0,c.Z)(this,"handleOuterClicks",(function(t){n.isActive()&&t.target.closest(".checkbox-select")!==n.el&&n.close()})),(0,c.Z)(this,"isActive",(function(){return n.el.classList.contains("active")})),e&&(this.el=e,this.title=this.el.querySelector(".checkbox-select__title"),this.options=this.el.querySelector(".checkbox-select__options"),this.el.addEventListener("focusin",this.open),this.el.addEventListener("click",this.handleInnerClicks),document.addEventListener("click",this.handleOuterClicks))},l=function(t,e,n){if(e&&!Array.isArray(e)&&"number"==typeof e.length){var r=e.length;return function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}(e,r)}return t(e,n)}(r.Z,document.querySelectorAll(".checkbox-select"));l.length&&l.map((function(t){return new s(t)}))},907:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{Z:function(){return r}})},5057:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(907);function i(t){if(Array.isArray(t))return(0,r.Z)(t)}},9199:function(t,e,n){function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n.d(e,{Z:function(){return r}})},2786:function(t,e,n){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:function(){return r}})},9062:function(t,e,n){n.d(e,{Z:function(){return s}});var r=n(5057),i=n(9199),c=n(181),o=n(2786);function s(t){return(0,r.Z)(t)||(0,i.Z)(t)||(0,c.Z)(t)||(0,o.Z)()}},181:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(907);function i(t,e){if(t){if("string"==typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}}}]);
2//# sourceMappingURL=checkbox-select.d78175c98987d8ebbc76.js.map

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.