quoteCalculator.service("specSectionService",function(){this.SetApiQuoteDataIndexNames=function(ApiQuoteData){for(var refToIndexMap=[],unmappedIndexes=(refToIndexMap["I1-S110"]="1-Product Type",refToIndexMap["I3-S210"]="3-Quantity",refToIndexMap["I3-S310"]="3-Versions",refToIndexMap["I3-S320"]="3-Artwork Files",refToIndexMap["I4-S410"]="4-Hardware Types",refToIndexMap["I4-S420"]="4-Hardware",refToIndexMap["I5-S520"]="5-Print Size",refToIndexMap["I5-S510"]="5-Print size Group",refToIndexMap["I5-S610"]="5-Custom Size",refToIndexMap["I6-S610"]="5-Custom Size",refToIndexMap["I7-S710"]="7-Material Type",refToIndexMap["I7-S720"]="7-Material",refToIndexMap["I7-S730"]="7-Material Option Category",refToIndexMap["I7-S740"]="7-Material Option",refToIndexMap["I7-S750"]="7-Materials that have Material Options",refToIndexMap["I8-S810"]="8-Binding",refToIndexMap["I8-S820"]="8-Binding - Wiro Colour Option",refToIndexMap["I9-S910"]="9-Page Count",refToIndexMap["CI10-S1009"]="10-FinishingCoverPageCountId Both Sides",refToIndexMap["CI10-S2110"]="10-Print Colour",refToIndexMap["CI10-S2150"]="10-Print Colour",refToIndexMap["CI10-S710"]="10-Material Type",refToIndexMap["CI10-S720"]="10-Material",refToIndexMap["CI10-S750"]="10-Materials that have Material Options",refToIndexMap["CI10-S1029"]="10-FinishingFoilingId",refToIndexMap["CI10-S1000"]="10-Foiling Colour FinishingOptionTypeId",refToIndexMap["CI10-S1001"]="10-FinishingLaminationId",refToIndexMap["CI10-S1007"]="10-FinishingSpotUVId",refToIndexMap["CI11-S1109"]="11-FinishingCoverPageCountId 0",refToIndexMap["CI11-S2110"]="11-Print Colour",refToIndexMap["CI11-S710"]="11-Material Type",refToIndexMap["CI11-S720"]="11-Material",refToIndexMap["CI11-S1129"]="11-FinishingFoilingId",refToIndexMap["CI11-S1100"]="11-Foiling Colour FinishingOptionTypeId",refToIndexMap["CI11-S1101"]="11-FinishingLaminationId",refToIndexMap["CI11-S750"]="11-Materials that have Material Options",refToIndexMap["CI11-S1107"]="11-FinishingSpotUVId",refToIndexMap["CI11-S2150"]="11-Print Colour",refToIndexMap["CI11-S2150"]="11-Print Colour",refToIndexMap["CI11-S2140"]="11-Print Colour",refToIndexMap["CI11-S2140"]="11-Print Colour",refToIndexMap["CI12-S1209"]="12-FinishingCoverPageCountId 0",refToIndexMap["CI12-S2110"]="12-Print Colour",refToIndexMap["CI12-S710"]="12-Material Type Front",refToIndexMap["CI12-S720"]="12-Material Front",refToIndexMap["CI12-S1229"]="12-FinishingFoilingId",refToIndexMap["CI12-S1200"]="12-Foiling Colour FinishingOptionTypeId",refToIndexMap["CI12-S1201"]="12-FinishingLaminationId",refToIndexMap["CI12-S1219"]="12-zFoldCovers",refToIndexMap["CI12-S750"]="12-Materials that have Material Options",refToIndexMap["CI12-S730"]="12-Material Option Category",refToIndexMap["CI12-S740"]="12-Material Option",refToIndexMap["CI12-S1207"]="12-FinishingSpotUVId",refToIndexMap["CI12-S2150"]="12-Print Colour",refToIndexMap["I13-S1310"]="13-Printing Press",refToIndexMap["I13-S1320"]="13-Printing Press SET Manually",refToIndexMap["I14-S1410"]="14-Product Style Group Filters",refToIndexMap["I14-S1420"]="14-Product Style Type Filters",refToIndexMap["I14-S1430"]="14-Product Styles",refToIndexMap["I14-S1440"]="14-Product Style Option",refToIndexMap["I14-S610"]="14-Custom Print Size",refToIndexMap["I17-S1750"]="17-Custom Print Size",refToIndexMap["I18-S1845"]="18-Ncr Print Colours for each side of each page",refToIndexMap["I18-S1810"]="18-suppliedAs",refToIndexMap["I18-S1820"]="18-Ncr Shield Choice",refToIndexMap["I18-S1830"]="18-Ncr Bundle Count",refToIndexMap["I18-S1840"]="18-Ncr Sheet Count",refToIndexMap["I18-S1850"]="18-Ncr Colour Choices",refToIndexMap["I18-S1860"]="18-Ncr child table: {specificationSection}",refToIndexMap["I20-S2010"]="20-Folding",refToIndexMap["I22-S2210"]="22-Single Double Sided - Print Sides",refToIndexMap["I23-S2310"]="23-Orientation",refToIndexMap["I24-S2410"]="24-Die Cut Complexity",refToIndexMap["I24-S610"]="24-Custom Print Size",refToIndexMap["I25-S2510"]="25-Finishing Scratch Card Latex",refToIndexMap["I25-S2530"]="25-Finishing Scratch Card Overprinting",refToIndexMap["I25-S2520"]="25-Latex Colour Option",refToIndexMap["I26-S2650"]="26-Lamination",refToIndexMap["I26-S2610"]="26-Lamination",refToIndexMap["I26-S2620"]="26-Lamination 0",refToIndexMap["I27-S2710"]="27-Spot UV Front",refToIndexMap["I27-S2720"]="27-Spot UV Back",refToIndexMap["I28-S2810"]="28-Finishing Perforation Count",refToIndexMap["I29-S2910"]="29-Finishing Variable Data Choices",refToIndexMap["I29-S2920"]="29-Finishing Variable Colour Choice",refToIndexMap["I29-S2930"]="29-Variable Data Client Files",refToIndexMap["I30-S3010"]="30-Finishing Hole",refToIndexMap["I30-S3020"]="30-Finishing Hole",refToIndexMap["I33-S3310"]="33-Finishing String Assembly",refToIndexMap["I33-S3320"]="33-Finishing String Type",refToIndexMap["I34-S3410"]="34-Packaging Data",refToIndexMap["I34-S3420"]="34-Packaging Category",refToIndexMap["I34-S340"]="34-Packaging",refToIndexMap["I36-S3610"]="36-Proof Type",refToIndexMap["I38-S3810"]="38-Delivery Type",refToIndexMap["I38-S3820"]="38-Delivery Method",refToIndexMap["I39-S3910"]="39-Fitting Type Choices",refToIndexMap["I39-S3920"]="39-Fitting Choices",refToIndexMap["I39-S3930"]="39-Fitting Record",refToIndexMap["I39-S3940"]="39-Fitting Option Record",refToIndexMap["I41-S4110"]="41-Finishing Foiling",refToIndexMap["I41-S4120"]="41-Foiling Colour Option",refToIndexMap["I42-S4210"]="42-Label Record",refToIndexMap["I42-S4220"]="42-Label Shape",refToIndexMap["I42-S4230"]="42-Label Shape Size",refToIndexMap["I42-S4240"]="42-Label Adhesive",refToIndexMap["I42-S4250"]="42-Label Material",refToIndexMap["I42-S4260"]="42-Label Supplied As",refToIndexMap["I45-S4510"]="45-Corner Finishing",refToIndexMap["I46-S4610"]="46-Finishing Assembly {specificationInterfaceOptionNumber}",refToIndexMap["I46-S4630"]="46-Finishing Assembly Hand Finishing Minutes",refToIndexMap["I48-S4810"]="48-Price Adjustment (does not show as line item)",refToIndexMap["I49-S4910"]="49-Price Discount shows as line item reduction",refToIndexMap["I50-S5010"]="50-No Fail",refToIndexMap["I50-S5020"]="50-No Fail Reason",refToIndexMap["I51-S5110"]="51-Delivery Adjustment plus and minus",refToIndexMap["I52-S5210"]="52-Brand",refToIndexMap["I56-S5610"]="56-Delivery Information",refToIndexMap["I56-S5620"]="56-Delivery Date Requested",refToIndexMap["I56-S5630"]="56-Delivery Note",refToIndexMap["I57-S5710"]="57-Price Information",refToIndexMap["I63-S6310"]="63-Leaves Count",refToIndexMap["I66-S6610"]="66-Quantity Price Grid",refToIndexMap["I67-S7410"]="67-Quote Information",refToIndexMap["I67-S7420"]="67-Quote Client Note",refToIndexMap["I70-S7010"]="70-Readymade Artwork Types",refToIndexMap["I70-S7020"]="70-Readymade Artwork",refToIndexMap["I72-S7210"]="72-Products within a Product Choices",refToIndexMap["I73-S7310"]="73-Folder Pocket Shapes",refToIndexMap["I73-S7320"]="73-Folder Pocket Media Slot Options",refToIndexMap["I73-S7340"]="73-Folder",refToIndexMap["I73-S510"]="73-Print size Group",refToIndexMap["I73-S520"]="73-Print size",refToIndexMap["I73-S610"]="73-Custom Print Size",refToIndexMap["I73-S2310"]="73-Orientation",refToIndexMap["I74-S7450"]="74-Quote Note",refToIndexMap["I77-S7710"]="77-Envelope Type",refToIndexMap["I77-S7720"]="77-envelope-material",refToIndexMap["I77-S2110"]="77-Print Colour",refToIndexMap["I77-S7750"]="77-envelope-material-option",refToIndexMap["I79-S7910"]="79-Z-fold Orientation of Panel",refToIndexMap["I79-S7920"]="79-Z-fold Columns",refToIndexMap["I79-S7930"]="79-Z-fold Line (Rows)",refToIndexMap["I79-S7940"]="79-Z-fold Panel Size",refToIndexMap["I79-S7950"]="79-Panel Custom Print Size",refToIndexMap["I80-S8010"]="80-Banner Hemming",refToIndexMap["I80-S8020"]="80-Banner Eyelets Count",refToIndexMap["I80-S8030"]="80-Eyelet Size Option",refToIndexMap["I80-S8040"]="80-Banner Pole Pocket Postions",refToIndexMap["I80-S8050"]="80-Pole Pocket Diameter Size Option",refToIndexMap["I80-S8060"]="80-Pole Pocket Diameter Custom Size",refToIndexMap["I80-S8070"]="80-Pole Pocket Closong method Option",refToIndexMap["I80-S8080"]="80-Banner Wind Slots",refToIndexMap["I81-S8110"]="81-Product Shape Group Filters",refToIndexMap["I81-S8120"]="81-Product Shape Type Filters",refToIndexMap["I81-S8130"]="81-Product Shapes",refToIndexMap["I81-S610"]="81-Custom Print Size",refToIndexMap["I82-S8210"]="82-Finishing Scoring Line Count",refToIndexMap["I85-S8510"]="85-Bunting Length",refToIndexMap["I85-S8520"]="85-Bunting Flag Count per Bunting Length",refToIndexMap["I85-S8530"]="85-Bunting Flag Spacing",refToIndexMap["I86-S7410"]="86-Quote Information",refToIndexMap["I86-S7420"]="86-Quote Client Note",refToIndexMap["I87-S8710"]="87-Sample Board Count of Sample Items",refToIndexMap["I87-S8720"]="87-Sample Board Gram Weight of Sample Items",[]),i=0;i<ApiQuoteData.length;i++)ApiQuoteData[i].choiceData||(ApiQuoteData[i].choiceData=[]),refToIndexMap[ApiQuoteData[i].uniqueReference]?(ApiQuoteData[i].indexName=refToIndexMap[ApiQuoteData[i].uniqueReference],ApiQuoteData[i].indexName=ApiQuoteData[i].indexName.replaceAll("{specificationInterfaceSectionRowNumber}",ApiQuoteData[i].specificationInterfaceSectionRowNumber),ApiQuoteData[i].indexName=ApiQuoteData[i].indexName.replaceAll("{specificationInterfaceSectionNumber}",ApiQuoteData[i].specificationInterfaceSectionNumber),ApiQuoteData[i].indexName=ApiQuoteData[i].indexName.replaceAll("{specificationSection}",ApiQuoteData[i].specificationSection),ApiQuoteData[i].indexName=ApiQuoteData[i].indexName.replaceAll("{specificationInterfaceOptionNumber}",ApiQuoteData[i].specificationInterfaceOptionNumber)):(ApiQuoteData[i].indexName=ApiQuoteData[i].specificationInterfaceId+"-"+ApiQuoteData[i].specificationSection.trim(),unmappedIndexes.push(ApiQuoteData[i].indexName+" (refToIndexMap['"+ApiQuoteData[i].uniqueReference+"'] = '"+ApiQuoteData[i].indexName+"';)"),ApiQuoteData[i].uniqueReference,ApiQuoteData[i].indexName);if(0<unmappedIndexes.length)for(var logString="",i=0;i<unmappedIndexes.length;i++)""!==logString&&(logString+=", "),logString+=unmappedIndexes[i];return ApiQuoteData}});