PageSourceSearch

https://calc-js.printplace.com/tradadvanced-template-min.js?v=1789092699276

js printplace.com collected 2026-09-24 20:19:05 UTC 5,621 bytes, 1 lines download raw bytes

1"use strict";(this.webpackJsonpSharedCalc=this.webpackJsonpSharedCalc||[]).push([[4379],{1202:function(t,e,n){n.r(e),n.d(e,{Main:function(){return T}});var r,i=n(3911),o=n(7538),a=n(3),c=n(5859),l=n(9317),s=n(3760),u=n(4525),p=n(8617),f=n(9949),d=n(5337),h=n(659),v=n(5896),_=n(9552),y=n(7843),b=n(2224),m=n(2293),g=n(1205),S=n(9690),w=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),C=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},z=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function c(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,c)}l((r=r.apply(t,e||[])).next())})},O=function(t,e){var n,r,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(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=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++,r=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],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},T=function(t){function e(e,n,r,i,o,a,c,l,s,u,p,f,d,h){var v=t.call(this,e,n,r,i,o,a,c,l,s,u,p,f,h)||this;return v.configManagerService=e,v.templateConfigHelper=n,v.templateViewHelper=r,v.calcDataHelper=i,v.calculator=o,v.componentFactory=a,v.calcDOMHelper=c,v.componentHelper=l,v.calcInfoService=s,v.priceRequestHelper=u,v.priceDataService=p,v.attributeService=f,v.sizeService=d,v.mailingValidatorService=h,v.TEMPLATE="tradadvanced-template",v.load=function(){return z(v,void 0,void 0,function(){return O(this,function(t){switch(t.label){case 0:return this.init(),this.loadTemplate(),[4,this.loadComponents()];case 1:return t.sent(),this.addCustomEvents(),[2]}})})},v.loadComponents=function(){return z(v,void 0,void 0,function(){var t,e,n,r,i,o,a,c,l;return O(this,function(s){switch(s.label){case 0:for(i in t=this.calculator.getData(),e=t.prod_attrs,n=this.templateConfigHelper.getConfig("price_turnaround_display"),r=[],e)o=e[i],a=this.attributeService.getAttributeType(o),c={id:i,type:a},this.attributeService.isTAT(o)&&n&&n.enabled&&(c.type=_.I.TAT),r.push(c);return r.push({id:"tooltips",type:_.I.TOOLTIP}),(l=this.templateConfigHelper.getConfig("custom_size"))&&"modal"==l&&r.push({id:"custom_size_handler",sub_type:"custom-size-handler",type:_.I.CUSTOM_SIZE,data:{}}),[4,this.componentFactory.getComponents(r)];case 1:return s.sent(),[2]}})})},v.addCustomEvents=function(){v.elementRef.addEventListener("calc.customSizeModalCancel",function(){v.calcInfoService.setLastAttribute(0),v.resetToPreviousSpecs()})},v}return w(e,t),e.prototype.updateView=function(){var t=this.calculator.getData(),e=this.templateConfigHelper.getConfig("custom_size"),n=!1;if(e&&"modal"==e&&this.calculator.customSize&&this.sizeService.hasCustomSize(t)){var r=this.sizeService.getCustomSizeData(t),i=this.calcInfoService.getLastAttribute(),o={attribute_id:i,prod_attr_val_id:this.calculator.selectedSpecs[i]},c={attribute_id:r.attribute_id,prod_attr_val_id:r.prod_attr_val_id};JSON.stringify(o)==JSON.stringify(c)&&a.U.dispatchEvent(this.elementRef,"calc.customSizeModal",{attribute_id:r.attribute_id,prod_attr_val_id:r.prod_attr_val_id}),n=!0}var l=t.prod_attrs;for(var s in l){var u=l[s],p=this.componentHelper.getComponentInstance(s);if(p&&"function"==typeof p.updateAttribute&&(p.updateAttribute(u,t.selectedSpecs[s]),n&&(["width","height","size_unit","width_ft","height_ft"].indexOf(u.attribute_id)>-1||"y"==u.width_flag||"y"==u.height_flag))){var f=this.elementRef.querySelector(".dropdown-attr-".concat(u.attribute_id));"size_unit"==u.attribute_id&&"r"==u.field_type&&(f=this.elementRef.querySelector("#attr_container_size_unit")),f.classList.add("hidden")}}var d=this.componentHelper.getComponentInstance("custom_size_handler");d&&n&&d.changeCustomValueDisplay()},function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([(0,h.injectable)(),C("design:paramtypes",[l.v,s.j,u.m,p.c,f.t,o.e,d.a,v.w,y.t,m.P,g.f,c.e,b.t,S.N])],e)}(i.B);z(void 0,void 0,void 0,function(){return O(this,function(t){switch(t.label){case 0:return[4,h.container.resolve(T).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.