1var DriDesignToolSpecsMapping=function(t){var e={};function s(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,s),i.l=!0,i.exports}return s.m=t,s.c=e,s.d=function(t,e,r){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(r,i,function(e){return t[e]}.bind(null,i));return r},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=0)}([function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e,s){this.product=t,this.specs_mapping=e,this.prod_attrs=s,this.enable_designtool=!1,this.mapped_specs={},this.selected_specs={},this.custom_size=!1,this.has_no_mapping=[],this.order_spec_codes_with_factors=["SZ","SIDE","WD","HT","PPR","MATRLTH","WD_ROLL","LNGTH_ROLL","REP_LEN"],this.custom_size_order_spec_code=["WD","HT","SZ","BXW","BXL","BXD"],this.dynamic_size_attribute=["width","height","width_ft","height_ft"]}return t.prototype.getMapping=function(t){for(var e in this.selected_specs=t,this.enable_designtool=!1,this.custom_size=!1,this.mapped_specs={},this.product&&(this.mapped_specs.product=this.product),this.has_no_mapping=[],t){var s=t[e];this.getSupportedSpecs(e,s)}return this.product&&Object.keys(this.mapped_specs).length&&!this.has_no_mapping.length&&(this.enable_designtool=!0,this.custom_size&&this.selected_specs.size_unit&&(delete this.mapped_specs.width_ft,delete this.mapped_specs.height_ft)),{enable_designtool:this.enable_designtool,mapped_specs:this.mapped_specs,custom_size:this.custom_size}},t.prototype.getSupportedSpecs=function(t,e){if(["width","height"].indexOf(t)>=0&&this.prod_attrs[t]&&!this.mapped_specs[t]?(this.mapped_specs[t]=e,this.custom_size=!0):this.getFactors(t,e),t in this.specs_mapping){var s=this.specs_mapping[t][e];if(s){var r={};if(s.attribute_code){var i=s.attribute_code;"shape"==i&&(i="dieCutType"),"perforation"==i&&(12==t&&(i="hole_drilling"),13==t&&(i="hole_position")),r[i]=s.attr_val_code,Object.assign(this.mapped_specs,r)}}else this.has_no_mapping.push(e)}},t.prototype.getFactors=function(t,e){var s=this.prod_attrs[t];if(s&&Object.keys(s)&&s.order_spec_code&&this.arrayIntersects(s.order_spec_code,this.order_spec_codes_with_factors)){var r={};if(this.arrayIntersects(s.order_spec_code,this.custom_size_order_spec_code))for(var i=0,o=this.custom_size_order_spec_code;i<o.length;i++){var a=o[i];for(var _ in this.prod_attrs)if(void 0!==this.prod_attrs[_].order_spec_code&&this.prod_attrs[_].order_spec_code[0]==a){var p=this.selected_specs[_],c={};this.prod_attrs[_].prod_attr_vals&&this.prod_attrs[_].prod_attr_vals[p]&&this.prod_attrs[_].prod_attr_vals[p].factors?(c=this.prod_attrs[_].prod_attr_vals[p].factors,this.arrayIntersects(["WD","HT"],s.order_spec_code)&&(this.custom_size=!0)):void 0!==p&&("y"==this.prod_attrs[_].width_flag&&(c.width=p),"y"==this.prod_attrs[_].height_flag&&(c.height=p),"y"==this.prod_attrs[_].depth_flag&&(c.depth=p),"y"!=this.prod_attrs[_].width_flag&&"y"!=this.prod_attrs[_].height_flag&&"y"!=this.prod_attrs[_].depth_flag||(this.custom_size=!0)),Object.assign(r,c)}else"SZ"==a&&s.prod_attr_vals&&s.prod_attr_vals[e]&&s.prod_attr_vals[e].factors&&Object.keys(s.prod_attr_vals[e].factors).length&&(r=s.prod_attr_vals[e].factors)}else if(s.prod_attr_vals&&s.prod_attr_vals[e]&&s.prod_attr_vals[e].factors&&Object.keys(s.prod_attr_vals[e].factors).length)r=s.prod_attr_vals[e].factors;else if("custom"==e){this.custom_size=!0;for(var d=0,n=this.dynamic_size_attribute;d<n.length;d++){var h=n[d];if(h in this.selected_specs)(p={})[this.prod_attrs[h].attribute_field_name?this.prod_attrs[h].attribute_field_name:this.prod_attrs[h].attribute_id]=this.selected_specs[h],Object.assign(r,p)}}Object.assign(this.mapped_specs,r)}},t.prototype.arrayIntersects=function(t,e){if(t)for(var s=0,r=e;s<r.length;s++){var i=r[s];if(t.indexOf(i)>-1)return!0}return!1},t}();e.SpecsMapping=r}]);
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.