1(this.webpackJsonpdealer=this.webpackJsonpdealer||[]).push([[42,369,425],{1305:function(e){e.exports=JSON.parse('{"specProductCategoriesMaster":[{"specProductMasterModel":[{"productId":0,"categoryId":0,"productcode":"string","status":true,"activeDate":"2020-08-14T03:07:59.678Z","removeDate":"2020-08-14T03:07:59.678Z"}],"categoryId":0,"category":"string","status":true,"activeDate":"2020-08-14T03:07:59.678Z","removeDate":"2020-08-14T03:07:59.678Z"}],"questionAnswerModel":[{"specAnswerMaster":[{"specAnswerId":0,"specQuestionId":0,"specAnswerName":"string","status":true,"activeDate":"2020-08-14T03:07:59.678Z","removeDate":"2020-08-14T03:07:59.678Z"}],"specQuestionId":0,"specQuestionName":"string","status":true,"activeDate":"2020-08-14T03:07:59.678Z","removeDate":"2020-08-14T03:07:59.678Z"}],"sessionId":"string","textArea1":"string","specRequestModel":{"spec":0,"revision":0,"type":"string","status":"string","requestDate":"2020-08-14T03:07:59.678Z","projectName":"string","endUser":"string","location":"string","industryType":"string","marketSegment":"string","workstations":"string","dueDate":"2020-08-14T03:07:59.678Z","dealer":"string","dlrNumber":0,"contact":"string","phone":"string","ext":"string","fax":"string","eMail":"string","salesRep":"string","webQuote":0,"orderPlaced":true,"completionDate":"2020-08-14T03:07:59.678Z","workTime":0,"assignedTo":"string","checked":true,"checkedBy":"string","listPrice":0,"dateReceived":"2020-08-14T03:07:59.678Z","comments":"string","productLine":"string","statusBits":0,"offices":0,"specBy":"string","specCreated":"string","zone":0,"specSoftware":"string","orderDate":"2020-08-14T03:07:59.678Z","installDate":"2020-08-14T03:07:59.678Z","lvl":"string","po":"string","dealerId":0,"cbTypicalsOnly":true,"cbRequiresSpecials":true,"cbBudget":true,"cbCallBeforeStarting":true,"cbGsaYes":true,"cbValueEngineer":true,"cbsendDWGCET":true,"specifierComment":"","contact1":"string","phone1":"string","ext1":"string","eMail1":"string","salesRep1":"string","contact2":"string","phone2":"string","ext2":"string","eMail2":"string","cbRendering":true,"isImpersonate":true,"contractNumber":"string","series":"string"},"specRenderingModel":{"offices":true,"workstations":true,"conferenceRm":true,"other":true,"changesRenderingRequest":false,"numberOfRenderings":0,"otherSpace":"string","laminate":"string","paint":"string","panelTextile":"string","handlesLocks":"string","privacyGlass":"string","accessories":"string","heightAdjBase":"string","petFelt":"string","seatingTextile":"string","plasticSeating":"string","mesh":"string","finishNotes":"string"},"specCategoryProductMappingModel":[{"id":0,"spec":0,"revision":0,"categoryId":0,"productId":0,"categoryProductAnswer":true,"createdDate":"2020-08-14T03:07:59.678Z","modifiedDate":"2020-08-14T03:07:59.678Z"}],"specQuestionsAnswerMappingModel":[{"id":0,"spec":0,"revision":0,"questionId":0,"answerId":0,"answerValue":true,"createdDate":"2020-08-14T03:07:59.678Z","modifiedDate":"2020-08-14T03:07:59.678Z"}]}')},1514:function(e,t,n){"use strict";n.r(t);var s=n(5),i=n(20),o=n(10),a=n(563),c=n.n(a),r=n(0),l=(n(2254),n(97)),d=n.n(l),u=n(66),p=n(67),f=n(101),g=n.n(f),m=n(112),M=n(1515),b=n(1342),R=n(1343),h=n(2402),v=n(249),_=n(250),y=(n(74),n(1305)),w=n(478),q=n(69),S=n.n(q),j=n(1);t.default=function(e){var t=e.history,n=e.data,a=e.dispatchActions,l=localStorage.getItem("largetRevision"),f=Object(m.a)().t,q=Object(r.useState)(M.NewProjectInformationFormConfig),D=Object(o.a)(q,2),k=D[0],I=D[1],O=Object(r.useState)(),A=Object(o.a)(O,2),F=A[0],T=A[1],N=Object(r.useState)({}),C=Object(o.a)(N,2),x=C[0],Q=C[1],P=(new _.default,Object(r.useState)([])),E=Object(o.a)(P,2),B=E[0],Z=E[1],G=Object(r.useState)([]),V=Object(o.a)(G,2),U=V[0],W=V[1],Y=Object(r.useState)([]),L=Object(o.a)(Y,2),z=L[0],J=L[1],H=Object(r.useState)([]),K=Object(o.a)(H,2),$=K[0],X=K[1],ee=new v.default,te=Object(r.useState)([]),ne=Object(o.a)(te,2),se=ne[0],ie=ne[1],oe=Object(r.useState)([]),ae=Object(o.a)(oe,2),ce=ae[0],re=ae[1],le=Object(r.useState)([]),de=Object(o.a)(le,2),ue=de[0],pe=de[1],fe=Object(r.useState)([]),ge=Object(o.a)(fe,2),me=ge[0],Me=ge[1],be=Object(r.useState)(!1),Re=Object(o.a)(be,2),he=Re[0],ve=Re[1],_e=null!==localStorage.getItem("trackingData")?localStorage.getItem("trackingData"):JSON.stringify({dealerId:0,spec:0,revision:0,type:""}),ye=JSON.parse(_e),we=localStorage.getItem("dealerId"),qe=Object(r.useRef)(null),Se=Object(r.useRef)(!0),je=Object(r.useRef)([{collapseId:"accordianFieldset",openC:!1}
1]),De=Object(r.useState)({name:"",email:"",phone:"",ext:"",glbal_manager:"",comments:"",project_name:"",end_user:"",locality:"",state:"selected",order_date:new Date,install_date:new Date,workstations:"",offices:"",misc:"",typicals:[""],budgetary:[""],callbeforestart:[""],valueengineer:[""],sendDWGCET:[""],requires_specials:[""],gsa:[""],bidRpf:[""],rendering:[""],price_zone:"",submittal_date:new Date,due_date:new Date,completion_date:new Date,assigned_to:"",checked_by:"",rendering_offices:[""],rendering_workstations:[""],rendering_conference_rm:[""],rendering_other:[""],number_of_renderings:"0",laminate:"",paint:"",panel_textile:"",handles_locks:"",privacy_glass:"",accessories:"",height_base:"",pet_felt:"",seating_textile:"",plastic_seating:"",mesh:"",additional_note:""}),ke=Object(o.a)(De,2),Ie=ke[0],Oe=ke[1];Object(r.useEffect)(function(){T(y),Ce(),Ae(),Fe(),Te(),Ne();var e=document.getElementById("rendering_offices"),t=document.getElementById("rendering_workstations"),n=document.getElementById("rendering_conference_rm"),s=document.getElementById("rendering_other");e.disabled=!0,t.disabled=!0,n.disabled=!0,s.disabled=!0;var i=document.getElementById("comments");i.style.background="#E9ECEF",i.readOnly=!0},[qe]);var Ae=function(e){var t=Object(i.a)(k);a[0].defaultAction.dealerAttachments({specificationno:ye.spec,revisionno:0}).then(function(e){var n=[];e.filter(function(e){n.push({id:e.spec,name:e.filename})}),t[2].columns[0].rows[0][0].defaultUploadedFiles=n,I(t),Ee("dealer_file_count",n),ie(n)}).catch(function(e){console.log("Data Not Found",e)})},Fe=function(e){var t=Object(i.a)(k);a[0].defaultAction.userAttachments({specificationno:ye.spec,revisionno:0,attachmentType:"internalFiles"}).then(function(e){var n=[];e.filter(function(e){n.push({id:e.spec,name:e.filename})}),t[4].columns[0].rows[0][0].defaultUploadedFiles=n,I(t),Ee("Specifier_file_count",n),re(n)}).catch(function(e){console.log("Data Not Found",e)})},Te=function(e){var t=Object(i.a)(k);a[0].defaultAction.userAttachments({specificationno:ye.spec,revisionno:0,attachmentType:"Final"}).then(function(e){var n=[];e.filter(function(e){n.push({id:e.spec,name:e.filename})}),t[6].columns[0].rows[0][0].defaultUploadedFiles=n,I(t),Ee("Final_file_count",n),pe(n)}).catch(function(e){console.log("Data Not Found",e)})},Ne=function(e){var t=Object(i.a)(k);a[0].defaultAction.userAttachments({specificationno:ye.spec,revisionno:0,attachmentType:"InternalFinal"}).then(function(e){var n=[];e.filter(function(e){n.push({id:e.spec,name:e.filename})}),t[5].columns[0].rows[0][0].defaultUploadedFiles=n,I(t),Ee("int_final_file_count",n),Me(n)}).catch(function(e){console.log("Data Not Found",e)})};var Ce=function(){var e={dealerId:ye.dealerId,spec:ye.spec,revision:0,type:"New"};a[1].specificationRequestAction.getNewProject(e).then(function(e){void 0==ye.mode&&xe(e,!1),We(e),1==e.specRequestModel.cbRendering&&(ve(!0),qe.current.toggleCollapse("accordianFieldset"),Se.current=!he,je.current.find(function(e){return"accordianFieldset"===e.collapseId}).openC=!he),Q(e.specRequestModel)}).catch(function(e){console.log("Data Not Found",e)})},xe=function(e,t){var n=Object(i.a)(k),o=[],a=[],c=[],r=[],l=e.specRequestModel.orderDate.split("T")[0];l+="T10:56:00.000Z";var d=e.specRequestModel.installDate.split("T")[0];d+="T10:56:00.000Z";var u=e.specRequestModel.dueDate.split("T")[0];u+="T10:56:00.000Z";var p=e.specRequestModel.requestDate.split("T")[0];p+="T10:56:00.000Z";var f=e.specRequestModel.completionDate.split("T")[0];f+="T10:56:00.000Z",e.questionAnswerModel.forEach(function(t){var n=b.rows[0][0];for(var i in r=[],n.key="ProjectSpecificQuestion"+t.specQuestionId,n.label=t.specQuestionId+". "+t.specQuestionName.replace(":"," ")+"*",n.id=t.specQuestionId,n.validators=[{name:"required",value:!0,validationMessage:"Please Select Answer"}],t.specAnswerMaster)for(var a in e.specQuestionsAnswerMappingModel)t.specAnswerMaster[i].specAnswerId==e.specQuestionsAnswerMappingModel[a].answerId&&(1==e.specQuestionsAnswerMappingModel[a].answerValue?r.push({key:t.specAnswerMaster[i].specAnswerName.replace(/ /g,""),label:t.specAnswerMaster[i].specAnswerName,value:t.specAnswerMaster[i].specAnswerName.replace(/ /g,""),id:t.specAnswerMaster[i].specAnswerId,type:"checkbox",disabled:!0,selected:!0,checked:!0}):r.push({key:t.specAnswerMaster[i].specAnswerName.replace(/ /g,""),label:t.specAnswerMaster[i].specAnswerName,value:t.specAnswerMaster[i].specAnswerName.replace(/ /g,""),id:t.specAnswerMaster[i].specAnswerId,type:"checkbox",disabled:!0,selected:!1,checked:!1}
1));n.options=r,r.length>0&&(o.push(Object(s.a)({},n)),7==t.specQuestionId&&o.push({className:"select_contract_number",key:"contract_number",value:e.specRequestModel.contractNumber||"NA",id:"contract_number",disabled:!0}))}),n[0].columns[1].fieldsets[1].rows[0]=o,e.specProductCategoriesMaster.forEach(function(t){var n=R.rows[0][0];c=[],n.key="SpecificationQuestion"+t.categoryId,n.label=t.category,n.id=t.categoryId,n.validators=[{name:"required",value:!1,validationMessage:"Please Select Answer"}];var i=function(e){var t=!1;for(var n in e){if(!0===e[n].categoryProductAnswer){t=!0;break}t=!1}return t}(e.specCategoryProductMappingModel);for(var o in t.specProductMasterModel)for(var r in e.specCategoryProductMappingModel)t.specProductMasterModel[o].productId==e.specCategoryProductMappingModel[r].productId&&(!0===i?1==e.specCategoryProductMappingModel[r].categoryProductAnswer?c.push({key:t.specProductMasterModel[o].productcode,label:t.specProductMasterModel[o].productcode,value:t.specProductMasterModel[o].productcode,id:t.specProductMasterModel[o].productId,selected:!0,checked:!0}):(4===e.specCategoryProductMappingModel[r].categoryId&&e.specCategoryProductMappingModel[r].categoryProductAnswer,c.push({key:t.specProductMasterModel[o].productcode,label:t.specProductMasterModel[o].productcode,value:t.specProductMasterModel[o].productcode,id:t.specProductMasterModel[o].productId,selected:!1,checked:!1})):c.push({key:t.specProductMasterModel[o].productcode,label:t.specProductMasterModel[o].productcode,value:t.specProductMasterModel[o].productcode,id:t.specProductMasterModel[o].productId,selected:!1,checked:!1}));n.options=c,a.push(Object(s.a)({},n)),"desking"===t.category.toLowerCase()&&a.push({key:"series_textarea",id:"seriesTextArea",label:"Series",type:"textarea",colmd:"12",rows:2})}),n[0].columns[1].fieldsets[0].rows[2][1].min=ee.formatDate(e.specRequestModel.orderDate,"yy-mm-dd"),n[0].columns[0].fieldsets[1].rows[0]=a,I(n);var g=[];o.filter(function(e){var t={};return"contract_number"==e.id?t=e:e.options.filter(function(n){1==n.checked&&(t.key=e.key,t.value=n.value)}),g.push(Object(s.a)({},t))});var m=[];for(var M in a)for(var h in a[M].options){var v={};v.key=a[M].key,1==a[M].options[h].checked&&(v.value=a[M].options[h].value,m.push({_questionarySelected:v}))}var _,y={name:e.specRequestModel.contact?e.specRequestModel.contact:"",email:e.specRequestModel.eMail?e.specRequestModel.eMail:"",phone:e.specRequestModel.phone?e.specRequestModel.phone:"",ext:e.specRequestModel.ext?e.specRequestModel.ext:"",glbal_manager:e.specRequestModel.salesRep?e.specRequestModel.salesRep:"",name1:e.specRequestModel.contact1?e.specRequestModel.contact1:"",email1:e.specRequestModel.eMail1?e.specRequestModel.eMail1:"",phone1:e.specRequestModel.phone1?e.specRequestModel.phone1:"",ext1:e.specRequestModel.ext1?e.specRequestModel.ext1:"",glbal_manager1:e.specRequestModel.salesRep1?e.specRequestModel.salesRep1:"",name2:e.specRequestModel.contact2?e.specRequestModel.contact2:"",email2:e.specRequestModel.eMail2?e.specRequestModel.eMail2:"",ph
1one2:e.specRequestModel.phone2?e.specRequestModel.phone2:"",ext2:e.specRequestModel.ext2?e.specRequestModel.ext2:"",dealer_name:e.specRequestModel.dealer?e.specRequestModel.dealer:"",end_user:e.specRequestModel.endUser?e.specRequestModel.endUser:"",dealer_comments:0==Object(w.removeTags)(e.specRequestModel.comments)?"":Object(w.removeTags)(e.specRequestModel.comments),project_name:e.specRequestModel.projectName?e.specRequestModel.projectName:"",project_spec:ye.spec,locality:e.specRequestModel.location?e.specRequestModel.location.split(",")[0]:"",state:(_=e.specRequestModel.location,_.split(",")[1]),order_date:e.specRequestModel.orderDate?l:"",install_date:e.specRequestModel.installDate?d:"",workstations:null!=e.specRequestModel.workstations?e.specRequestModel.workstations.toString():"",offices:null!=e.specRequestModel.offices?e.specRequestModel.offices.toString():"",misc:null!=e.specRequestModel.misc?e.specRequestModel.misc.toString():"",typicals:e.specRequestModel.cbTypicalsOnly?["typicals"]:[""],callbeforestart:e.specRequestModel.cbCallBeforeStarting?["callbeforestart"]:[""],valueengineer:e.specRequestModel.cbValueEngineer?["valueengineer"]:[""],sendDWGCET:e.specRequestModel.cbSendDWGCET?["sendDWGCET"]:[""],budgetary:e.specRequestModel.cbBudget?["budgetary"]:[""],requires_specials:e.specRequestModel.cbRequiresSpecials?["specials"]:[""],gsa:e.specRequestModel.cbGsaYes?["gsa"]:[""],bidRpf:e.specRequestModel.bidRpf?["bidRpf"]:[""],rendering:e.specRequestModel.cbRendering?["rendering"]:[""],price_zone:e.specRequestModel.zone.toString(),spec_software:e.specRequestModel.specSoftware?e.specRequestModel.specSoftware:"",additional_comments:0==e.specRequestModel.specifierComment?"":e.specRequestModel.specifierComment,submittal_date:e.specRequestModel.requestDate?p:"",completion_date:e.specRequestModel.completionDate?f:"",due_date:e.specRequestModel.dueDate?u:"",assigned_to:e.specRequestModel.assignedTo?e.specRequestModel.assignedTo:"",checked_by:e.specRequestModel.checkedBy?e.specRequestModel.checkedBy:"",rendering_offices:e.specRenderingModel&&e.specRenderingModel.offices?["offices"]:[""],rendering_workstations:e.specRenderingModel&&e.specRenderingModel.workstations?["workstations"]:[""],rendering_conference_rm:e.specRenderingModel&&e.specRenderingModel.conferenceRm?["conference_rm"]:[""],rendering_other:e.specRenderingModel&&e.specRenderingModel&&e.specRenderingModel.other?["other"]:[""],rendering_other_textfield:e.specRenderingModel&&e.specRenderingModel.otherSpace?e.specRenderingModel.otherSpace:"",number_of_renderings:e.specRenderingModel&&e.specRenderingModel.numberOfRenderings?e.specRenderingModel.numberOfRenderings.toString():"0",laminate:e.specRenderingModel&&e.specRenderingModel.laminate?e.specRenderingModel.laminate:"NA",paint:e.specRenderingModel&&e.specRenderingModel.paint?e.specRenderingModel.paint:"NA",panel_textile:e.specRenderingModel&&e.specRenderingModel.panelTextile?e.specRenderingModel.panelTextile:"NA",handles_locks:e.specRenderingModel&&e.specRenderingModel.handlesLocks?e.specRenderingModel.handlesLocks:"NA",privacy_glass:e.specRenderingModel&&e.specRenderingModel.privacyGlass?e.specRenderingModel.privacyGlass:"NA",accessories:e.specRenderingModel&&e.specRenderingModel.accessories?e.specRenderingModel.accessories:"NA",height_base:e.specRenderingModel&&e.specRenderingModel.heightAdjBase?e.specRenderingModel.heightAdjBase:"NA",pet_felt:e.specRenderingModel&&e.specRenderingModel.petFelt?e.specRenderingModel.petFelt:"NA",seating_textile:e.specRenderingModel&&e.specRenderingModel.seatingTextile?e.specRenderingModel.seatingTextile:"NA",plastic_seating:e.specRenderingModel&&e.specRenderingModel.plasticSeating?e.specRenderingModel.plasticSeating:"NA",mesh:e.specRenderingModel&&e.specRenderingModel.mesh?e.specRenderingModel.mesh:"NA",additional_note:e.specRenderingModel&&e.specRenderingModel.finishNotes?e.specRenderingModel.finishNotes:"",series_textarea:null!==e.specRequestModel.series?e.specRequestModel.series:"NA"};g.filter(function(e){y[e.key]=[e.value]});var q=[];for(M=0;M<m.length;M++)void 0==y[m[M]._questionarySelected.key]?((q=[]).push(m[M]._questionarySelected.value),y[m[M]._questionarySelected.key]=q):(q.push(m[M]._questionarySelected.value),y[m[M]._questionarySelected.key]=q);Oe(y)},Qe=function(e){t.push(e)};var Pe=function(e,n){try{Oe(Object(s.a)(Object(s.a)({},Ie),{}
1,{name:e.name?e.name:"",email:e.email?e.email:"",phone:e.phone?e.phone:"0",ext:e.ext?e.ext:"0",glbal_manager:e.glbal_manager?e.glbal_manager:"",comments:0==Object(w.removeTags)(e.dealer_comments)?"":Object(w.removeTags)(e.dealer_comments),project_name:e.project_name?e.project_name.toString():"",locality:e.locality.toString().trim()+","+e.state.toString(),state:e.state?e.state.toString():"",order_date:""!=e.order_date?e.order_date:new Date("1/1/1901"),install_date:""!=e.install_date?e.install_date:new Date("1/1/1901"),workstations:""==e.workstations||null==e.workstations?0:e.workstations,offices:""==e.offices||null==e.offices?"0":e.offices.toString(),misc:""==e.misc||null==e.misc?"0":e.misc.toString(),typicals:e.typicals.length>0&&e.typicals.includes("typicals")?["typicals"]:[""],callbeforestart:e.callbeforestart.length>0&&e.callbeforestart.includes("callbeforestart")?["callbeforestart"]:[""],valueengineer:e.valueengineer.length>0&&e.valueengineer.includes("valueengineer")?["valueengineer"]:[""],sendDWGCET:e.valueengineer.length>0&&e.valueengineer.includes("sendDWGCET")?["sendDWGCET"]:[""],budgetary:e.budgetary.length>0&&e.budgetary.includes("budgetary")?["budgetary"]:[""],requires_specials:e.requires_specials.length>0&&e.requires_specials.includes("specials")?["specials"]:[""],gsa:e.gsa.length>0&&e.gsa.includes("gsa")?["gsa"]:[""],bidRpf:e.bidRpf.length>0&&e.bidRpf.includes("bidRpf")?["bidRpf"]:[""],rendering:e.rendering.length>0&&e.rendering.includes("rendering")?["rendering"]:[""],price_zone:e.price_zone.toString()}));var i,o="";i=void 0!==e.SpecificationQuestion5?e.SpecificationQuestion5.find(function(e){return"Offices to Go"===e}):"",o=void 0!==e.SpecificationQuestion1&&e.SpecificationQuestion1.find(function(e){return"Evolve"===e})?"E":void 0!==e.SpecificationQuestion1&&e.SpecificationQuestion1.find(function(e){return"Compile"===e})?"C":void 0!==e.SpecificationQuestion1&&e.SpecificationQuestion1.find(function(e){return"Compile QS"===e})?"Q":void 0!==e.SpecificationQuestion3&&e.SpecificationQuestion3.find(function(e){return"Laminate"===e})?"L":void 0!==e.SpecificationQuestion3&&e.SpecificationQuestion3.find(function(e){return"Veneer"===e})?"V":void 0!==e.SpecificationQuestion1&&e.SpecificationQuestion1.find(function(e){return"Power Beam"===e})?"P":void 0!==e.SpecificationQuestion2&&e.SpecificationQuestion2.find(function(e){return"Sidebar"===e})||void 0!==e.SpecificationQuestion2&&e.SpecificationQuestion2.find(function(e){return"Bridges II"===e})||void 0!==e.SpecificationQuestion2&&e.SpecificationQuestion2.find(function(e){return"Intelli Beam"===e})||void 0!==e.SpecificationQuestion2&&e.SpecificationQuestion2.find(function(e){return"FreeFit Benching"===e})?"B":void 0!==e.SpecificationQuestion6&&e.SpecificationQuestion6.find(function(e){return"Wellness"===e})||void 0!==e.SpecificationQuestion6&&e.SpecificationQuestion6.find(function(e){return"Divide"===e})?"W":void 0!==e.SpecificationQuestion4&&e.SpecificationQuestion4.find(function(e){return"With Electric"===e})?"T":void 0!==e.SpecificationQuestion5&&e.SpecificationQuestion5.find(function(e){return"Globalcare"===e})?"H":void 0!==e.SpecificationQuestion5&&e.SpecificationQuestion5.find(function(e){return"Seating"===e})?"G":void 0!==e.SpecificationQuestion5&&e.SpecificationQuestion5.find(function(e){return"Filing"===e})?"F":void 0!==e.SpecificationQuestion5&&i?"O":"G",y.specRequestModel.spec=parseInt(x.spec),y.specRequestModel.revision=x.revision,y.specRequestModel.type=x.type,y.specRequestModel.status=x.status,y.specRequestModel.requestDate=x.requestDate,y.specRequestModel.projectName=e.project_name,y.specRequestModel.location=e.locality.trim()+","+e.state,y.specRequestModel.workstations=""==e.workstations||null==e.workstations?0:e.workstations,y.specRequestModel.dueDate=x.dueDate,y.specRequestModel.dealer=e.dealer_name?e.dealer_name:"",y.specRequestModel.dlrNumber=parseInt(we),y.specRequestModel.contact=e.name?e.name:"",y.specRequestModel.phone=e.phone?e.phone:"0",y.specRequestModel.ext=e.ext?e.ext:"0",y.specRequestModel.fax=x.fax,y.specRequestModel.eMail=e.email?e.email:"",y.specRequestModel.salesRep=e.glbal_manager?e.glbal_manager:"",y.specRequestModel.webQuote=x.webQuote,y.specRequestModel.orderPlaced=x.orderPlaced,y.specRequestModel.completionDate=x.completionDate,y.specRequestModel.workTime=x.workTime,y.specRequestModel.assignedTo=x.assignedTo,y.specRequestModel.checked=x.checked,y.specRequestModel.checkedBy=x.checkedBy,y.specRequestModel.listPrice=x.listPrice,y.specRequestModel.dateReceived=x.dateReceived,y.specRequestModel.comments=e.dealer_comments?e.dealer_comments:"",y.specRequestModel.productLine=o,y.specRequestModel.statusBits=x.statusBits,y.specRequestModel.offices=""==e.offices||null==e.offices?0:parseInt(e.offices),y.specRequestModel.specBy=x.specBy,y.specRequestModel.specCreated=x.specCreated,y.specRequestModel.zone=parseInt(e.price_zone),y.specRequestModel.orderDate=""!=e.order_date?e.order_date:new Date("1/1/1901"),y.specRequestModel.installDate=""!=e.install_date?e.install_date:new Date("1/1/1901"),y.specRequestModel.lvl=x.lvl,y.specRequestModel.po=x.po,y.specRequestModel.dealerId=ye.dealerId,y.specRequestModel.cbTypicalsOnly=!(!e.typicals||!e.typicals.includes("typicals")),y.specRequestModel.cbCallBeforeStarting=!(!e.callbeforestart||!e.callbeforestart.includes("callbeforestart")),y.specRequestModel.cbValueEngineer=!(!e.valueengineer||!e.valueengineer.includes("valueengineer")),y.specRequestModel.CbSendDWGCET=!(!e.sendDWGCET||!e.sendDWGCET.includes("sendDWGCET")),y.specRequestModel.cbRequiresSpecials=!(!e.requires_specials||!e.requires_specials.includes("specials")),y.specRequestModel.cbBudget=!(!e.budgetary||!e.budgetary.includes("budgetary")),y.specRequestModel.cbGsaYes=!(!e.gsa||!e.gsa.includes("gsa")),y.specRequestModel.bidRpf=!(!e.bidRpf||!e.bidRpf.includes("bidRpf")),y.specRequestModel.cbRendering=!(!e.rendering||!e.rendering.includes("rendering")),y.specRequestModel.misc=parseInt(e.misc),y.sessionId=n,y.specRequestModel.specifierComment=1!=e.additional_comments?e.additional_comments:"";var c=R.rows[0],r=b.rows[0],l=[],d=[],u={id:0,spec:ye.spec,revision:ye.revision,questionId:0,answerId:0,answerValue:!1,createdDate:new Date,modifiedDate:new Date},p={id:0,spec:ye.spec,revision:ye.revision,categoryId:0,productId:0,categoryProductAnswer:!1,createdDate:new Date,modifiedDate:new Date};r.filter(function(e){u.questionId=e.id,"contract_number"!=e.id&&e.options.filter(function(e){u.answerId=e.id,u.answerValue=e.selected,l.push(Object(s.a)({},u))})}),c.filter(function(e){p.categoryId=e.id,e.options.filter(function(e){p.productId=e.id,p.categoryProductAnswer=e.selected,d.push(Object(s.a)({},p))})}),F.specQuestionsAnswerMappingModel=l,F.specCategoryProductMappingModel=d,a[0].defaultAction.updateNewProjectData(F).then(function(e){"Success"==e.meassage&&t.push("/SpecificationsDashboard")}
1).catch(function(e){console.log("Data Not Found",e)})}catch(f){console.log("Data Not Found",f)}},Ee=function(e,t){var n=document.getElementById(e);void 0!==n&&(n.innerHTML="Total "+t.length+" Files")},Be=function(e,t,n,s){e.preventDefault();try{if(void 0!==qe.current){qe.current.removeFile(e,t,n,s);var i="";"project_request_info_file"===s?i="Newuser":"specifier_files"===s?i="internalFiles":"final_project_documents_files"===s?i="Final":"int_final_files"===s&&(i="InternalFinal"),function(e,t,n,s,i){try{a[3].uploadFileAction.deleteMultipleFiles(e).then(function(e){"project_request_info_file"===i?(B=B.filter(function(e){return e.name!==n.name}),se=se.filter(function(e){return e.name!==n.name}),Ee("dealer_file_count",se)):"specifier_files"===i?(U=U.filter(function(e){return e.name!==n.name}),ce=ce.filter(function(e){return e.name!==n.name}),Ee("Specifier_file_count",ce)):"int_final_files"===i?(z=z.filter(function(e){return e.name!==n.name}),me=me.filter(function(e){return e.name!==n.name}),Ee("int_final_file_count",me)):($=$.filter(function(e){return e.name!==n.name}),ue=ue.filter(function(e){return e.name!==n.name}),Ee("Final_file_count",ue))})}catch(o){console.log("Data Not Found",o)}}({dealerId:ye.dealerId,spec:ye.spec,revision:ye.revision,filename:t.name.toString(),attachtype:i},0,t,0,s)}}catch(o){console.log("Error while upload dealer files",o)}},Ze=function(e,t){Ge(e,t)},Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="";n="Final"===t||"InternalFinal"===t?"SpecUserAttachments":"SpecAttachments",a[2].downloadDatabaseFileAction.DownloadByDatabaseFileName(JSON.stringify({fileName:e.name,spec:ye.spec,revision:0,tableName:n})).then(function(t){var n=window.URL.createObjectURL(new Blob([t])),s=document.createElement("a");s.href=n,s.setAttribute("download",e.name),document.body.appendChild(s),s.click()})},Ve=function(e,t){try{if(t){return!!t.match(/^[0-9]+$/)}return!0}catch(n){console.log("Data Not Found",n)}},Ue=[{key:"workstations",validator:Ve,message:"Workstations must contain only digit"},{key:"offices",validator:Ve,message:"Offices must contain only digit"},{key:"misc",validator:Ve,message:"Misc must contain only digit"}],We=function(e){try{var t=Object(i.a)(k),n=(b.rows[0][0],document.getElementById("additionalNote"));if(n.readOnly=!0,n.style.cursor="default",t[0].columns[0].fieldsets[0].rows[0][0].disabled=!0,t[0].columns[0].fieldsets[0].rows[0][1].disabled=!0,t[0].columns[0].fieldsets[0].rows[1][0].disabled=!0,t[0].columns[0].fieldsets[0].rows[2][0].options[0].disabled=!0,t[0].columns[0].fieldsets[0].rows[2][1].options[0].disabled=!0,t[0].columns[0].fieldsets[0].rows[2][2].options[0].disabled=!0,t[0].columns[0].fieldsets[0].rows[2][3].options[0].disabled=!0,t[0].columns[0].fieldsets[0].rows[2][4].options[0].disabled=!0,t[0].columns[0].fieldsets[0].rows[2][5].options[0].disabled=!0,t[0].columns[0].fieldsets[0].rows[2][6].options[0].disabled=!0,t[0].columns[0].fieldsets[0].rows[2][7].options[0].disabled=!0,t[0].columns[0].fieldsets[0].rows[2][8].options[0].disabled=!0,t[0].columns[0].fieldsets[0].rows[3][0].disabled=!0,t[0].columns[1].fieldsets[0].rows[0][0].disabled=!0,t[0].columns[1].fieldsets[0].rows[1][0].disabled=!0,t[0].columns[1].fieldsets[0].rows[1][0].disabled=!0,t[0].columns[1].fieldsets[0].rows[2][0].disabled=!0,t[0].columns[1].fieldsets[0].rows[2][1].disabled=!0,t[0].columns[1].fieldsets[0].rows[3][0].disabled=!0,t[0].columns[1].fieldsets[0].rows[3][1].disabled=!0,t[8].columns[0].rows[0][0].disabled=!0,t[8].columns[0].rows[0][1].disabled=!0,t[8].columns[0].rows[0][2].disabled=!0,void 0!=ye.mode&&1==ye.mode){xe(e,!0),t[1].columns[0].rows[0][0].disabled=!0,t[3].columns[0].rows[0][0].disabled=!0,t[4].columns[0].rows[0][0].disabled=!0,t[5].columns[0].rows[0][0].disabled=!0;for(var s=document.getElementsByClassName("btn-default btn Ripple-parent btn btn-primary"),o=0;o<s.length;o++)s[o].disabled=!0}else xe(e,!1);I(t)}catch(a){console.log("Data Not Found in disabledFields",a)}},Ye=function(e,t){qe.current.toggleCollapse(t);var n=je.current.find(function(e){return e.collapseId===t});Se.current=!n.openC,je.current.find(function(e){return e.collapseId===t}).openC=!n.openC},Le=function(e){return je.current.filter(function(t,n){return t.collapseId===e})[0].openC?"fa fa-minus icon1":"fa fa-plus icon1"};return Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)(u.default,{history:t,data:n,showHeader:!0}),Object(j.jsxs)("div",{className:"newProductInformation pageWrap",children:[Object(j.jsx)(g.a,{handleclick:function(e,n){e.preventDefault(),t.push(n.key)},separator:"/",maxItems:4,breadcrumb:f("specialTracking.ProjectInformation.breadcrumbs"),color:"inherit"}),Object(j.jsx)(c.a,{onSelect:function(e){if("SpecificationsDashboard"===e)Qe("/SpecificationsDashboard");else if("viewCurrent"===e){var t=JSON.parse(localStorage.getItem("trackingData")),n={dealerId:t.dealerId,spec:t.spec,revision:l,type:"Rev"};localStorage.setItem("trackingData",JSON.stringify(n)),Qe("/RevisionProjectInformation")}},activeTab:"projectInformation",tabData:[{eventKey:"SpecificationsDashboard",title:"Specifications Dashboard",content:Object(j.jsx)("p",{})},{eventKey:"projectInformation",title:"New Project Information",content:Object(j.jsx)(j.Fragment,{children:Object(j.jsx)("div",{className:"upload-form",children:Object(j.jsx)(d.a,{className:"order-upload-form pad0",title:" ",buttonSubmit:"SAVE",defaultValues:Ie,model:k,onSubmit:function(e){!function(e){try{if(e.isValidForm){e.order_date=S()(e.order_date).format("YYYY-MM-DD"),e.install_date=S()(e.install_date).format("YYYY-MM-DD");var t=Object(h.a)(),n=null,s=null,i=null,o=null,c=new FormData,r=new FormData,l=new FormData,d=new FormData;0!=B.length&&(B.map(function(e,t){c.append("file",e)}
1),s={SessionID:t,Spec:0,Revision:0,AttachType:"Newuser",fileNewRequest:B}),0!=U.length&&(U.map(function(e,t){r.append("file",e)}),o={Spec:ye.spec,Revision:ye.revision,AttachType:"internalFiles",fileInternal:U}),0!=$.length&&($.map(function(e,t){l.append("file",e)}),n={Spec:ye.spec,Revision:ye.revision,AttachType:"Final",fileFinalFiles:$}),0!=z.length&&(z.map(function(e,t){d.append("file",e)}),i={Spec:ye.spec,Revision:ye.revision,AttachType:"InternalFinal",internalFile:z}),0==$.length&&0==z.length&&0==U.length&&0==B.length?Pe(e,t):Promise.all([a[3].uploadFileAction.getUploadMultipleFiles(s,c).then(function(e){return e}),a[3].uploadFileAction.getUploadMultipleInternalFinalFiles(o,r).then(function(e){return e}),a[3].uploadFileAction.getUploadMultipleInternalFinalFiles(n,l).then(function(e){return e}),a[3].uploadFileAction.getUploadMultipleInternalFinalFiles(i,d).then(function(e){return e})]).then(function(n){Pe(e,t)})}}catch(u){console.log("Data Not Found",u)}}(e)},renderFieldsetAccordianLabel:function(e){var t=parseInt(e.match(/(\d+)/));return t=t?t+1:1,Object(j.jsxs)("h5",{className:"fieldset-title",onClick:function(t){return Ye(t,e)},children:["Rendering Submittal Details",Object(j.jsx)("span",{children:" (*Mandatory Fields)"}),Object(j.jsx)("i",{id:"toggleAccordian",className:Le(e)})]})},disableSubmitOnInValid:!1,design:"advanceMaterial",materialOutline:!0,onChange:function(e,t){try{"rendering"==t&&(ve(e.target.checked),qe.current.toggleCollapse("accordianFieldset"),Se.current=!he,je.current.find(function(e){return"accordianFieldset"===e.collapseId}).openC=!he);var n=Object(i.a)(k),o=[],a=[],c=b.rows[0];c.map(function(n,i){t===n.key&&(n.options.filter(function(t){!0===e.target.checked&&""!=t.value&&t.value===e.target.value!=""&&e.target.value?o.push({key:t.key,label:t.label,value:t.value,id:t.id,disabled:!0,selected:!0,checked:!0}):o.push({key:t.key,label:t.label,value:t.value,id:t.id,disabled:!0,selected:!1,checked:1!=t.selected})}),n.options=o,a.push(Object(s.a)({},c)))});var r=R.rows[0];for(var l in r)if(t===r[l].key)for(var d in r[l].options)if(""!=r[l].options[d].value&&r[l].options[d].value===e.target.value!=""&&e.target.value){r[l].options[d].selected=!0!==r[l].options[d].checked,r[l].options[d].checked=!0!==r[l].options[d].checked;break}if("order_date"===t){var u=S()(e).format("YYYY-MM-DD");n[0].columns[1].fieldsets[0].rows[2][1].minDate=u}n[0].columns[1].fieldsets[1].rows[0]=c;var p=[];"project_request_info_file"===t?(ie(e),Ee("dealer_file_count",e),e.map(function(e,t){void 0!=e.size&&(p.push(e),Z(p))})):"final_project_documents_files"===t?(re(e),Ee("Final_file_count",e),e.map(function(e,t){void 0!=e.size&&(p.push(e),X(p))})):"specifier_files"===t?(pe(e),e.map(function(t,n){Ee("Specifier_file_count",e),void 0!=t.size&&(p.push(t),W(p))})):"int_final_files"===t&&(Me(e),e.map(function(t,n){Ee("int_final_file_count",e),void 0!=t.size&&(p.push(t),J(p))}))}catch(f){}},preValidateForm:!0,customValidators:Ue,renderUploadedFilesItem:function(e,t,n){return Object(j.jsxs)("li",{style:{borderColor:"#ccc",clear:"both"},children:[Object(j.jsx)("span",{className:"file-name",children:e.name}),Object(j.jsx)("span",{className:"icnTrash",children:Object(j.jsx)("i",{className:"fa fa-tras
1h",onClick:function(s){return Be(s,e,t,n)}})}),Object(j.jsx)("span",{className:"action",onClick:function(t){return function(e,t,n,s){var i="";i="specifier_files"==s||"final_project_documents_files"==s?"Final":"int_final_files"==s?"InternalFinal":"Dealer",e.preventDefault(),Ze(t,i)}(t,e,0,n)},children:Object(j.jsx)("button",{className:"btn btn-primary align",style:{float:"right"},children:"Download"})})]},t)},editorFields:["additional_comments"],fileUploaderFields:["dealer_files","specifier_files","project_request_info_file"],onRef:function(e){qe.current=e}})})})},l?{eventKey:"viewCurrent",title:"View Current",content:""}:""],tabDesign:"material"})]}),Object(j.jsx)(p.default,{})]})}},2254:function(e,t,n){},2402:function(e,t,n){"use strict";var s,i=new Uint8Array(16);function o(){if(!s&&!(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var c=function(e){return"string"===typeof e&&a.test(e)},r=[],l=0;l<256;++l)r.push((l+256).toString(16).substr(1));var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase();if(!c(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var s=(e=e||{}).random||(e.rng||o)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=s[i];return t}return d(s)}}}]); 2//# sourceMappingURL=42.9d306cc1.chunk.js.map
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.