PageSourceSearch

https://calc-js.signs.com/gridv1-template-min.js?v=1789092699276

js signs.com collected 2026-09-24 19:32:20 UTC 6,269 bytes, 1 lines download raw bytes

1"use strict";(this.webpackJsonpSharedCalc=this.webpackJsonpSharedCalc||[]).push([[9667],{3290:function(t,e,r){r.r(e),r.d(e,{Main:function(){return O}});var n,i=r(3911),o=r(7538),a=r(5859),c=r(9317),l=r(3760),u=r(4525),s=r(8617),p=r(9949),f=r(5337),d=r(659),h=r(5896),v=r(9552),g=r(7843),_=r(2293),b=r(1205),y=r(9690),S=r(2224),w=r(3),m=(n=function(t,e){return n=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])},n(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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),C=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},A=function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function c(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,c)}l((n=n.apply(t,e||[])).next())})},z=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(c){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},O=function(t){function e(e,r,n,i,o,a,c,l,u,s,p,f,d,h){var g=t.call(this,e,r,n,i,o,a,c,l,u,s,p,f,d)||this;return g.configManagerService=e,g.templateConfigHelper=r,g.templateViewHelper=n,g.calcDataHelper=i,g.calculator=o,g.componentFactory=a,g.calcDOMHelper=c,g.componentHelper=l,g.calcInfoService=u,g.priceRequestHelper=s,g.priceDataService=p,g.attributeService=f,g.mailingValidatorService=d,g.sizeService=h,g.TEMPLATE="gridv1-template",g.load=function(){return A(g,void 0,void 0,function(){return z(this,function(t){switch(t.label){case 0:return this.init(),this.loadTemplate(),[4,this.loadComponents()];case 1:return t.sent(),this.updateView(),[2]}})})},g.loadComponents=function(){return A(g,void 0,void 0,function(){var t,e,r,n,i,o,a,c,l;return z(this,function(u){switch(u.label){case 0:for(o in t=this.calculator.getData(),e=t.prod_attrs,r=this.templateConfigHelper.getConfig("price_turnaround_display"),n=this.templateConfigHelper.getMergedConfig(),i=[],e)a=e[o],c=this.attributeService.getAttributeType(a),l={id:o,type:c},c==v.I.DROPDOWN&&(["width","height","size_unit"].indexOf(o)>=0||e[o].order_spec_code&&this.specCodesExist(["SZ","QTY","WD","HT"],e[o].order_spec_code)?(n.attr_dropdown_display="simple",l.sub_type="simple"):l.sub_type="grid_horizontal"),this.attributeService.isTAT(a)&&r&&r.enabled&&(l.type=v.I.TAT),i.push(l);return n.size_unit_toggle&&i.push({id:"size-unit-toggle",type:"toggle"}),[4,this.componentFactory.getComponents(i)];case 1:return u.sent(),this.popularSizesEvent(),[2]}})})},g.popularSizesAbortController=new AbortController,g}return m(e,t),e.prototype.updateView=function(){var t=this.calculator.getData(),e=t.prod_attrs,r=this.templateConfigHelper.getConfig("size_unit_toggle");for(var n in e){var i=e[n];"size_unit"==n&&r&&(i.hide_attribute_flag="y");var o=this.componentHelper.getComponentInstance(n);o&&"function"==typeof o.updateAttribute&&o.updateAttribute(i,t.selectedSpecs[n]);var a=t.selectedSpecs[n],c=this.attributeService.getAttributeValues(i),l=this.attributeService.getProdAttrVal(c,a),u=this.elementRef.querySelector('[data-attr-id="'.concat(n,'"]')),s="y"===i.hide_attribute_flag;if(u){u.classList.toggle("hidden",s);var p=u.querySelector(".attr-val");p&&l&&null!=l.attr_value&&(p.textContent=l.attr_value)}}},e.prototype.popularSizesEvent=function(){var t=this;this.popularSizesAbortController.abort(),this.popularSizesAbortController=new AbortController;var e=this.popularSizesAbortController.signal,r=document.querySelectorAll(".popular-size-item"),n=this.calculator.getData();r.forEach(function(r){r.addEventListener("click",function(){var e=r.getAttribute("data-size");if(e){var i,o=t.sizeService.getSizeAttrIds(n.prod_attrs);try{i=JSON.parse(e)}catch(t){return void console.warn("[popularSizesEvent] Invalid data-size value:",e)}if(Array.isArray(i)&&!(i.length<2)){var a=String(i[0]),c=String(i[1]),l=t.componentHelper.getComponentInstance(o.width_attr_id),u=t.componentHelper.getComponentInstance(o.height_attr_id);l&&u&&(l.updateAttribute(n.prod_attrs[o.width_attr_id],a),u.updateAttribute(n.prod_attrs[o.height_attr_id],c),w.U.dispatchEvent(t.calcDOMHelper.getCalcDOM(),"calc.changeSpecs",{attribute_id:o.height_attr_id,prod_attr_val_id:c,exception_allowed_values:[{attribute_id:o.width_attr_id,prod_attr_val_id:a}]}))}}},{signal:e})})},e.prototype.specCodesExist=function(t,e){for(var r in t){var n=t[r];
1if(e.indexOf(n)>=0)return!0}return!1},function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}([(0,d.injectable)(),C("design:paramtypes",[c.v,l.j,u.m,s.c,p.t,o.e,f.a,h.w,g.t,_.P,b.f,a.e,y.N,S.t])],e)}(i.B);A(void 0,void 0,void 0,function(){return z(this,function(t){switch(t.label){case 0:return[4,d.container.resolve(O).load()];case 1:return t.sent(),[2]}})})}}]);

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.