PageSourceSearch

https://calc-js.signs.com/select-min.js?v=1790305596589

js signs.com collected 2026-10-02 05:41:20 UTC 5,014 bytes, 1 lines download raw bytes

1"use strict";(this.webpackJsonpSharedCalc=this.webpackJsonpSharedCalc||[]).push([[2167],{2145:function(t,e,r){r.d(e,{m:function(){return a}});var i=r(3),a=function(){var t=this;this.containerId="",this.triggerEvents=function(e){i.U.dispatchEvent(t.mainElementRef,"calc.changeSpecs",e),i.U.dispatchEvent(t.mainElementRef,"calc.attribute",e),i.U.dispatchEvent(t.mainElementRef,"calc.attributeClick",e)}}},1253:function(t,e,r){r.r(e),r.d(e,{SelectDropdown:function(){return p}});var i,a=r(659),n=r(3),o=r(2145),c=r(5859),l=r(9949),s=r(3760),u=r(5337),d=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(e,r,i,a){var o=t.call(this)||this;return o.templateConfigHelper=e,o.calculator=r,o.calcDOMHelper=i,o.attributeService=a,o.setData=function(t,e){o.id=(null==e?void 0:e.attribute_id)?null==e?void 0:e.attribute_id:t},o.init=function(){o.mainElementRef=o.calcDOMHelper.getCalcDOM();var t=o.calculator.getData();o.attribute=t.prod_attrs[o.id],o.config=o.templateConfigHelper.getMergedConfig(),o.invalidSpecs=t.invalid_specs,o.selectedValue=o.calculator.selectedSpecs[o.id],o.containerId="attr_container_".concat(o.attribute.attribute_id),o.attrContainer=o.mainElementRef.querySelector("#attr_container_"+o.attribute.attribute_id),o.select=o.attrContainer.querySelector("select"),o.updateAttributeValue=o.updateAttributeValue.bind(o),o.setCustomTrimClass=o.setCustomTrimClass.bind(o),o.setCustomTrimClass(o.select),o.select.addEventListener("change",function(t){o.updateAttributeValue(t),o.setCustomTrimClass(t.target)}),o.select.addEventListener("click",function(){n.U.dispatchEvent(o.mainElementRef,"calc.attributeClick",{attribute_id:o.attribute.attribute_id,prod_attr_val_id:0})})},o.updateAttribute=function(t,e){var r,i;o.attribute=t,o.selectedValue=e;var a=[],n=o.attributeService.getAttributeValues(o.attribute),c=o.mainElementRef.querySelector(".dropdown-attr-".concat(t.attribute_id)),l=!1;if(o.calculator.sizeAttributeId==t.attribute_id&&o.config.custom_size_switcher&&o.config.custom_size_switcher.enabled&&(o.calculator.customSize&&(l=!0),"v2"==o.config.custom_size_switcher.display))try{for(var s=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=s.next();!u.done;u=s.next()){var d=u.value;if("y"==d.custom_flag){a.push(1*d.prod_attr_val_id);break}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}c.classList.remove("hidden"),(o.attributeService.isHiddenAttribute(o.attribute)||l)&&c.classList.add("hidden"),a=a.concat(o.attributeService.getHiddenAttributeValues(n));for(var f=o.attrContainer.querySelectorAll("select")[0].options,p=0;p<f.length;p++){f[p].classList.remove("hidden");var v=isNaN(f[p].dataset.valid)?f[p].dataset.valid:1*f[p].dataset.valid;a.length&&a.indexOf(v)>=0&&f[p].classList.add("hidden")}var b=o.attrContainer.querySelector("select");if(b.value=o.selectedValue,o.config.single_option_label_display){b.classList.remove("hidden");var m=o.attrContainer.querySelector(".single-option-attribute");if(m&&m.remove(),o.attributeService.isSingleOption(t)&&!o.attrContainer.classList.contains("hidden")&&!o.invalidSpecs[t.attribute_id]){var _=o.attributeService.getProdAttrVal(n,e),h=null;_&&(h=_.attr_value),o.calcDOMHelper.singleOptionDisplay("select",o.attrContainer,h)}}},o.unsetInvalidSpecs=function(){o.attrContainer.classList.remove("error"),o.attrContainer.querySelector(".select-validation-icons").remove(),o.select.remove(0)},o}return d(e,t),e.prototype.setCustomTrimClass=function(t){"Custom Trim"==this.attribute.attribute_name.trim()&&("yes"==t.options[t.selectedIndex].text.toLowerCase()?this.attrContainer.classList.add("custom-trim"):this.attrContainer.classList.remove("custom-trim"))},e.prototype.updateAttributeValue=function(t){var e=t.target,r={attribute_id:this.attribute.attribute_id,prod_attr_val_id:e.value};this.triggerEvents(r)},function(t,e,r,i){var a,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(o=(n<3?a(o):n>3?a(e,r,o):a(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o}([(0,a.injectable)(),f("design:paramtypes",[s.j,l.t,u.a,c.e])],e)}(o.m)}}]);

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.