1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4987],{18446:function(e,t,n){var o=n(90939);e.exports=function(e,t){return o(e,t)}},81763:function(e,t,n){var o=n(44239),i=n(37005);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==o(e)}},35161:function(e,t,n){var o=n(29932),i=n(67206),a=n(69199),l=n(1469);e.exports=function(e,t){return(l(e)?o:a)(e,i(t,3))}},22701:function(e,t,n){var o=n(55639),i=n(79833),a=/^\s+/,l=o.parseInt;e.exports=function(e,t,n){return n||null==t?t=0:t&&(t=+t),l(i(e).replace(a,""),t||0)}},39674:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[company]/quote/[quoteId]/options/[optionId]",function(){return n(87973)}])},12002:function(e,t,n){"use strict";var o=n(85893);n(67294),t.Z=()=>(0,o.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M8.5 16L0.5 8L8.5 0L9.925 1.4L4.325 7H16.5V9H4.325L9.925 14.6L8.5 16Z",fill:"#727273"})})},26068:function(e,t,n){"use strict";var o=n(85893),i=n(93967),a=n.n(i),l=n(45697),s=n.n(l),r=n(33912),c=n.n(r),u=n(79728),d=n(73898),_=n(86510),p=n(63367);let m=e=>{let{label:t,placeholder:n="",name:i="",readOnly:l=!1,disabled:s=!1,type:r="text",value:p,defaultReadOnlyValue:m,defaultValue:g,onChange:h,inputProps:v=null,RightIcon:x,RightButton:b,errorMessage:y,shouldKeepErrorMessageAsItIs:f=!1,className:j,description:N,descriptionClassName:T,handleFocus:w=()=>{},handleBlur:O=()=>{},dataCy:I}=e,C="string"==typeof t?t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-_]/g,"").toLowerCase():"";return(0,o.jsxs)("div",{className:a()(c().text_input_wrap,{[c().disabled]:s,[c().has_right_button]:!!b,[c().right_icon]:(!!x||y)&&!b},j),children:[t&&(0,o.jsx)("label",{"data-cy":"".concat(I,"-label"),htmlFor:"".concat(C,"-input"),children:t}),l?(0,o.jsx)("p",{"data-cy":"".concat(I,"-field"),className:c().read_only_text,children:p||0===p?p:m}):(0,o.jsx)("input",{"data-cy":"".concat(I,"-input"),id:"".concat(C,"-input"),className:a()(c().text_input,{[c().has_error]:y}),type:r,name:i,disabled:l||s,value:(null==v?void 0:v.name)?void 0:p,defaultValue:g,placeholder:n,onChange:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];s||l||!h||h(...t)},onFocus:w,onBlur:O,...v}),(0,o.jsx)(()=>x?(0,o.jsx)("div",{className:a()(c().right_icon_wrap,{[c().right_icon_error]:y}),children:(0,o.jsx)(x,{})}):b?(0,o.jsx)("div",{className:c().right_button,children:(0,o.jsx)(b,{})}):y?(0,o.jsx)("div",{className:c().right_icon_error_wrap,children:(0,o.jsx)(d.jj,{})}):null,{}),y?(0,o.jsx)(u.Z,{message:f?y:null===_.Z||void 0===_.Z?void 0:_.Z.getTitleCasedString(y),className:c().error_message}):N&&(0,o.jsx)("div",{className:a()(c().description,T),children:N})]})};m.propTypes={label:s().oneOfType([s().string,s().object]),value:(e,t,n)=>(0,p.D)(e,t,n),defaultValue:(e,t,n)=>(0,p.D)(e,t,n),defaultReadOnlyValue:s().string,onChange:s().func,placeholder:s().string,name:s().string,type:s().string,disabled:s().bool,readOnly:s().bool,inputProps:s().object,RightIcon:s().func,RightButton:s().func,errorMessage:s().string,shouldKeepErrorMessageAsItIs:s().bool,className:s().string,handleFocus:s().func,handleBlur:s().func,description:s().string,descriptionClassName:s().string,dataCy:s().string},t.Z=m},38531:function(e,t,n){"use strict";var o=n(85893),i=n(45007),a=n(45697),l=n.n(a),s=n(37792),r=n.n(s),c=n(51371),u=n(5422),d=n(86439),_=n(73898),p=n(48344),m=n(93651);let g=e=>{let{qs:t}=e,n=(0,i.I0)(),a=(0,p.W1)(),l=()=>{n((0,m.DP)(t)),n((0,d.ZB)(!1))};return(0,o.jsxs)(c.Z,{handleCloseModal:l,className:r().modal_wrap,children:[(0,o.jsx)("div",{className:r().icon_wrap,children:(0,o.jsx)(_.iT,{fillColor:a})}),(0,o.jsx)("p",{className:r().warning_text,children:"It looks like you already made your choice, possibly in a different tab or on a different device. Page will be updated after closing this modal."}),(0,o.jsx)(u.Z,{className:r().confirm_button,text:"OK",type:"slate",onClick:l})]})};g.propTypes={qs:l().string},t.Z=g},70012:function(e,t,n){"use strict";var o=n(85893),i=n(45697),a=n.n(i),l=n(93967),s=n.n(l),r=n(38206),c=n.n(r),u=n(5422);let d=e=>{let{themeColor:t,className:n,dataCy:i,...a}=e;return(0,o.jsx)("span",{className:s()(c().container,n),style:{"--theme-color":"".concat(t)},children:(0,o.jsx)(u.Z,{style:{"--theme-color":"".concat(t)},className:s()(c().button,{[c().transparent_theme_color_button]:t&&(null==a?void 0:a.transparentBackgroun
1d),[c().disabled]:null==a?void 0:a.disabled}),dataCy:i,noEffects:!0,themeColor:t,...a})})};d.propTypes={themeColor:a().string,className:a().string,dataCy:a().string,buttonProps:a().object},t.Z=d},70986:function(e,t,n){"use strict";var o=n(85893),i=n(93967),a=n.n(i),l=n(45697),s=n.n(l),r=n(56058),c=n.n(r),u=n(25551);let d=e=>{var t,n;let{company:i,hasMobileVersion:l=!1}=e,s=(0,u.d1)(),r=null==i?void 0:null===(t=i.contactAddress)||void 0===t?void 0:t.split(","),{email:d,phoneNumber:_}=i;return i.uniqueCompanyId&&(d=i.contactEmail,_=i.contactPhone),(0,o.jsxs)("div",{className:a()(c().container,{[c().has_mobile_version]:l}),children:[s?(0,o.jsx)("img",{className:c().company_logo,src:s}):(0,o.jsx)("p",{className:c().company_logo_text,children:(null==i?void 0:i.customName)||i.name}),(0,o.jsx)("span",{className:c().logo_separator}),(0,o.jsx)("img",{className:c().coiliq_logo,src:"/powered-by-coiliq-logo.svg"}),(0,o.jsxs)("div",{className:c().company_description,children:[(0,o.jsx)("div",{children:(null==i?void 0:i.customName)||i.name}),(null==i?void 0:i.website)&&(0,o.jsx)("div",{children:null==i?void 0:i.website}),d&&(0,o.jsx)("div",{children:d}),r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:r[0]}),(0,o.jsxs)("div",{children:[r[1]&&r[1],r[2]&&", ".concat(r[2])]})]}),_&&(0,o.jsx)("div",{children:_}),(null==i?void 0:null===(n=i.contractorLicenses)||void 0===n?void 0:n.length)>0&&(0,o.jsx)(()=>i.contractorLicenses.map(e=>(0,o.jsx)("div",{children:"".concat(e.state.abbreviation," License: ").concat(e.licenseNumber)},e.id)),{})]})]})};d.propTypes={company:s().object,hasMobileVersion:s().bool},t.Z=d},54836:function(e,t,n){"use strict";var o=n(85893),i=n(93967),a=n.n(i),l=n(45697),s=n.n(l),r=n(67294),c=n(32128),u=n.n(c),d=n(76427);let _=e=>{let{isOpen:t,setIsOpen:n,children:i,isToggleable:l,categoryName:s,className:c,shownIcon:_="/mask.svg",hiddenIcon:p="/unmask.svg",shownTooltipText:m="Hide",hiddenTooltipText:g="Show"}=e,h=(0,r.useMemo)(()=>(null==s?void 0:s.toLowerCase())==="project overview"?u().project_overview:(null==s?void 0:s.toLowerCase())==="solution"?u().solution:(null==s?void 0:s.toLowerCase())==="services"?u().services:(null==s?void 0:s.toLowerCase())==="materials"?u().materials:(null==s?void 0:s.toLowerCase())==="administrative"?u().administrative:(null==s?void 0:s.toLowerCase())==="allowances"?u().allowances:(null==s?void 0:s.toLowerCase())==="discount"?u().discount:(null==s?void 0:s.toLowerCase())==="contingencies & incentives"?u().contingencies:(null==s?void 0:s.toLowerCase())==="exclusions"?u().exclusions:"",[s]),v=(0,r.useMemo)(()=>t?_:p,[p,t,_]);return(null==s?void 0:s.toLowerCase())==="street view photo"?(0,o.jsxs)("div",{className:a()(u().container,!t&&l&&u().inactive,c),children:[i,l&&(0,o.jsx)("div",{className:a()(u().toggle_button,u().mask),onClick:()=>n(!1),children:(0,o.jsx)(d.Z,{tooltipText:t?g:m,className:a()(u().mask_icon_tooltip_wrapper,u().street_view_photo_tooltip,{[u().street_view_photo_tooltip_shown]:t}),children:(0,o.jsx)("img",{src:v,className:u().icon})})})]}):(0,o.jsxs)("div",{className:a()(u().container,{[u().inactive]:!t&&l},c),children:[!t&&l&&(0,o.jsx)("div",{className:u().marker_line_wrapper,children:(0,o.jsx)("div",{className:u().marker_line})}),t?(0,o.jsxs)(o.Fragment,{children:[i,l&&(0,o.jsx)("div",{className:a()(u().toggle_button,u().mask),onClick:()=>n(!1),children:(0,o.jsx)(d.Z,{tooltipText:m,className:u().mask_icon_tooltip_wrapper,children:(0,o.jsx)("img",{src:v,className:u().icon})})})]}):(0,o.jsx)(o.Fragment,{children:l&&(0,o.jsxs)("div",{"data-cy":"toggle-button",className:a()(u().toggle_button,u().unmask,h),onClick:()=>n(!0),children:[(0,o.jsx)("img",{src:v,className:u().icon}),(0,o.jsx)("p",{className:u().unmasked_text,children:s})]})})]})};_.propTypes={isOpen:s().bool,setIsOpen:s().func,children:s().node,isToggleable:s().bool,categoryName:s().string,className:s().string,shownIcon:s().string,hiddenIcon:s().string,shownTooltipText:s().string,hiddenTooltipText:s().string},t.Z=_},87973:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return e_}});var o=n(85893),i=n(67294),a=n(45007),l=n(11163),s=n(93967),r=n.n(s),c=n(12281),u=n.n(c),d=n(45697),_=n.n(d),p=n(81763),m=n.n(p),g=n(22701),h=n.n(g),v=n(40727),x=n.n(v),b=n(6106),y=n(57028),f=n(82854),j=n(24057),N=n.n(j);let T=e=>{let{value:t,discountType:n,handleChange:a,handleSave:l,handleFocus:s,className:c,isViewOnl
1y:u,displayedValue:d,dataCy:_}=e,[p,m]=(0,i.useState)(!1),[g,h]=(0,i.useState)(!1),v=(0,i.useRef)(null);return(0,i.useEffect)(()=>{h(60+4*t.length)},[]),(0,i.useEffect)(()=>{p&&s(v)},[p,s]),(0,i.useEffect)(()=>{v.current&&"PERCENTAGE"===n&&(v.current.selectionStart=v.current.value.length-1,v.current.selectionEnd=v.current.value.length-1)},[t,v,p]),(0,o.jsx)(o.Fragment,{children:p?(0,o.jsx)("input",{"data-cy":"".concat(_,"-input"),ref:v,className:r()(N().input,c,{[N().view_only]:u}),autoFocus:!0,style:{width:g},type:"text",value:t,onInput:e=>{let n=60+4*t.length;e.target.style.width="".concat(n,"px")},onChange:e=>a(e.target.value),onFocus:()=>{v.current&&"PERCENTAGE"===n&&(v.current.selectionStart=v.current.value.length-1,v.current.selectionEnd=v.current.value.length-1)},onBlur:()=>{l(t),m(!1)},readOnly:u}):(0,o.jsx)("div",{"data-cy":"".concat(_,"-input"),className:r()(N().input,{[N().view_only]:u}),onClick:()=>!u&&m(!0),children:d||t})})};T.propTypes={value:_().string,displayedValue:_().string,handleChange:_().func.isRequired,handleSave:_().func.isRequired,handleFocus:_().func,className:_().string,discountType:_().string,isViewOnly:_().bool,dataCy:_().string};var w=n(87181),O=n(95938),I=n(76427);let C=e=>{let{isViewOnly:t,quoteId:n,optionId:a,handleUpdate:l,handleRemove:s}=e,[r,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(""),[_,p]=(0,i.useState)("FIXED"),m=(0,w.EW)(n,a),g=e=>{c((null==e?void 0:e.value)||""),d((null==e?void 0:e.description)||""),p((null==e?void 0:e.type)||"FIXED")};(0,i.useEffect)(()=>{g(m)},[m]);let v=e=>{let t=e;return("number"==typeof e&&(t=e.toFixed(2)),"FIXED"===_)?"$".concat(t):"PERCENTAGE"===_?t?"".concat(h()(t,10),"%"):"0":t},j=e=>{let t=e;if("FIXED"===_)t=e.substring(1);else if("PERCENTAGE"===_){if("%"===t||!t)return 0;t=t.substring(0,t.length-1)}return t},N=e=>{"PERCENTAGE"===_&&(e.current.setSelectionRange(1,0),e.current.focus())};return(0,o.jsx)("div",{className:x().container,children:(0,o.jsx)(y.Z,{title:"Discount",leftSideIcons:t?null:(0,o.jsx)(()=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(I.Z,{tooltipText:"Remove",children:(0,o.jsx)("span",{className:x().delete_icon_wrapper,onClick:s,children:(0,o.jsx)(O.Z,{})})})}),{}),theme:"amber",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.Z,{value:u,handleChange:e=>{d(e)},handleSave:e=>{l({discount:{description:e}})}
1,maxLength:300,isViewOnly:t}),(0,o.jsx)(T,{dataCy:"discount",value:v(r),discountType:_,displayedValue:(0,b.qR)(r,_),formatInputValue:v,handleChange:e=>{let t=j(e);isNaN(t)||""===t?c("0"):c(t)},handleSave:e=>{let t=Number(j(e));"number"==typeof t&&(l({discount:{value:t.toFixed(2)}}),g(m))},handleFocus:e=>{N(e)},isViewOnly:t})]})})})};C.propTypes={quoteId:_().number.isRequired,optionId:_().number.isRequired,isViewOnly:_().bool.isRequired,handleUpdate:_().func.isRequired,handleRemove:_().func.isRequired};var k=n(10445),E=n.n(k),L=n(54836),P=n(2906);let D=e=>{let{isViewOnly:t,quoteId:n,optionId:a,toggleList:l,handleToggleTable:s,handleOptionUpdate:r}=e,c=(0,w.aQ)(n,a),[u,d]=(0,i.useState)(c||"");return(0,i.useEffect)(()=>(d(c||""),()=>{d("")}),[c]),(0,o.jsx)(L.Z,{isOpen:(0,b.aG)(l,"DESCRIPTION"),setIsOpen:()=>s(P.Z.DESCRIPTION),isToggleable:!t,categoryName:"Solution",className:E().container,children:(0,o.jsx)(y.Z,{title:"Solution",theme:"slate",children:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(f.Z,{value:u,handleChange:e=>{d(e)},handleSave:e=>{r({solutionDescription:e})},maxLength:4e3,isViewOnly:t})})})})};D.propTypes={isViewOnly:_().bool,quoteId:_().number,optionId:_().number,toggleList:_().array,handleToggleTable:_().func,handleOptionUpdate:_().func};var q=n(91288),F=n.n(q);let Z=(e,t)=>{var n,o,i;return t?{value:"number"==typeof parseInt(t.value,10)?t.value:(null===(n=e.discount)||void 0===n?void 0:n.value)||0,description:t.description||""===t.description?t.description:(null===(o=e.discount)||void 0===o?void 0:o.description)||"",type:t.type?t.type:(null===(i=e.discount)||void 0===i?void 0:i.type)||"FIXED"}:e.discount?e.discount:null},V=(e,t,n)=>({quoteId:e.id,solutionDescription:n.solutionDescription||""===n.solutionDescription?n.solutionDescription:t.solutionDescription,exclusions:n.exclusions?n.exclusions:t.exclusions,discount:Z(t,n.discount),toggleList:t.toggleList});var S=n(17678),R=n(59955),M=n.n(R),Q=n(97651),A=n(92860),B=n(46723);let U=e=>(null==e?void 0:e.toLowerCase())!=="exclusions",H=e=>{let{title:t,items:n,option:l,isDeletable:s,isPriceVariants:r}=e,c=(0,a.I0)(),[u,d]=(0,i.useState)({isPriceVariantOpen:!1,anchorOfCurrentVariantOpen:null}),_=(e,t)=>{d({...u,isPriceVariantOpen:u.isPriceVariantOpen?null:t,anchorOfCurrentVariantOpen:e})};(0,i.useEffect)(()=>(null!==u.isPriceVariantOpen?window.addEventListener("click",p):window.removeEventListener("click",p),()=>{window.removeEventListener("click",p)}),[u.anchorOfCurrentVariantOpen]);let p=e=>{!u.anchorOfCurrentVariantOpen||u.anchorOfCurrentVariantOpen.contains(e.target)||e.target.classList.contains("anchor")||d({...u,anchorOfCurrentVariantOpen:null,isPriceVariantOpen:null})},m=async(e,t)=>{let{price_variant:n}=t;d({...u,isPriceVariantOpen:null}),c((0,Q.T7)({optionId:l.id,lineItemId:e.id,data:{...e,unitPrice:n,quoteOptionId:l.id}}))},g=(e,t,n)=>{c((0,Q.fH)({quoteId:e,optionId:t,lineItemId:n}))};return(0,o.jsxs)("div",{className:M().table,children:[(0,o.jsxs)("div",{className:M().header,children:[(0,o.jsx)("div",{"data-cy":"estimate-line-item-table-header-".concat(t),className:M().type,children:t}),U(t)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:M().quantity,children:"Quantity"}),(0,o.jsx)("div",{className:M().unit,children:"Unit Price"}),(0,o.jsx)("div",{className:M().total,children:"Total"})]}):null]}),n.map((e,n)=>(0,o.jsxs)(A.Z,{index:n,isPriceVariantOpen:u.isPriceVariantOpen===n,isDeletable:null==s||s,isPriceVariants:r&&""!==e.priceVariants&&"[]"!==e.priceVariants,item:e,deleteLineItem:()=>g(l.quoteId,l.id,e.id),openPriceVariants:_,handleVariantChange:m,children:[(0,o.jsxs)("div",{className:M().content,children:[(0,o.jsx)("div",{className:M().type,children:e.title}),U(t)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:M().quantity,children:e.quantity}),(0,o.jsx)("div",{className:M().unit,children:(0,B.Z)(e.unitPrice)}),(0,o.jsx)("div",{"data-cy":"total-price-".concat(t.toLowerCase(),"-item-").concat(n),className:M().total,children:(0,B.Z)(e.quantity*e.unitPrice)})]}):null]}),e.sku&&(0,o.jsx)("div",{className:M().sku,children:(0,o.jsxs)("div",{children:["SKU #",e.sku]})}),(0,o.jsx)("div",{className:M().description,children:(0,o.jsx)("div",{className:M().type,children:(0,o.jsx)("div",{children:e.description})})})]},e.id))]})};H.propTypes={title:_().string,items:_().array,option:_().object,isDeletable:_().bool,isPriceVariants:_().bool};var X=n(68697),z=n(63571),J=n(14128),G=n(70986),K=n(61308),W=n(53208);let Y=e=>
1{let{company:t,quote:n,optionId:l,isViewOnly:s,zoom:c,hasMobileVersion:u=!1,minHeight:d=!0,className:_}=e,p=(0,a.I0)(),{width:g}=(0,z.Z)(),h=(0,K.dq)(),v=(0,w.yK)(null==n?void 0:n.id,l),[x,y]=(0,i.useState)([]),f=(0,i.useRef)(null),j=e=>(0,b.aG)(x,e);(0,i.useEffect)(()=>{(null==v?void 0:v.toggleList)&&y(JSON.parse(v.toggleList))},[l,null==v?void 0:v.toggleList]);let N=(0,i.useMemo)(()=>{var e,t,n;let o=0,i=0,a=0,l=j("DISCOUNT")&&(null==v?void 0:null===(e=v.discount)||void 0===e?void 0:e.value);if(null==v||v.groupedOptionLinesForEstimateInTotal.forEach(e=>{let{categoryName:t,lineItems:n}=e;n.forEach(e=>{j(t)&&(o+=e.unitPrice*e.quantity)})}),i+=o,l&&((null===(t=v.discount)||void 0===t?void 0:t.type)==="FIXED"&&(i-=v.discount.value),(null===(n=v.discount)||void 0===n?void 0:n.type)==="PERCENTAGE")){let e=v.discount.value/100*i;i-=e}return a+=l?i:o,null==v||v.groupedOptionLinesForEstimateInPotentialAndNotInTotal.forEach(e=>{let{categoryName:t,lineItems:n}=e;n.forEach(e=>{j(t)&&(a+=e.unitPrice*e.quantity)})}),[i,o,a]},[v,x]);(0,i.useEffect)(()=>{null===f.current?f.current=N:N[0]===f.current[0]&&N[1]===f.current[1]||(f.current=N,s||p((0,W.QQ)("Total value updated.")))},[p,N]);let T=e=>{if(m()(e)){let t=JSON.parse(v.toggleList);t=t.includes(e)?t.filter(t=>t!==e):[...t,e];let o={quoteId:n.id,solutionDescription:v.solutionDescription,exclusions:v.exclusions,discount:v.discount,toggleList:JSON.stringify(t)};p((0,Q.IO)(n.id,v.id,o))}},O=(0,i.useMemo)(()=>v.groupedOptionLinesForEstimateInPotentialAndNotInTotal.length>0&&v.groupedOptionLinesForEstimateInPotentialAndNotInTotal.some(e=>j(e.categoryName)),[v,x]);if(!v||!n)return(0,o.jsx)(J.Z,{});let I=u&&g<678,k=v.groupedOptionLinesForEstimateInTotal,E=v.groupedOptionLinesForEstimateInPotentialAndNotInTotal,q=v.groupedOptionLinesForEstimateNotInPotentialAndNotInTotal;return(0,o.jsxs)(o.Fragment,{children:[n&&v?(0,o.jsxs)("div",{className:r()(F().container,{[F().min_height]:d},_),style:{zoom:"".concat(c,"%"),width:I&&"360px",padding:I&&"30px 16px"},children:[(0,o.jsx)(G.Z,{company:t,hasMobileVersion:u}),(0,o.jsxs)("div",{className:F().document_title,children:[(0,o.jsx)("div",{className:F().document_main_title,children:"Option Details"}),(0,o.jsxs)("div",{className:F().document_sub_title,children:["Option code: E-".concat((0,S.p6)(n.submissionCreatedFormatted,"yy"),"-").concat(t.uniqueCompanyId||n.uniqueCompanyId,"-"),(0,o.jsx)("span",{className:F().document_sub_title_bold,children:"".concat(n.uniqueRequestId,"-").concat(v.uniqueSlug,"-").concat(n.ordinalNumber)})]})]}),(0,o.jsx)(D,{quoteId:v.quoteId,optionId:v.id,isViewOnly:s,toggleList:x,handleToggleTable:T,handleOptionUpdate:e=>{let t=V(n,v,e);p((0,Q.IO)(n.id,v.id,t))}}),k.length>0&&k.map((e,t)=>(0,o.jsx)(L.Z,{isOpen:j(e.categoryName),setIsOpen:()=>{T(P.Z[e.categoryName.toUpperCase()])},isToggleable:!s,categoryName:e.categoryName,children:(0,o.jsx)(H,{title:e.categoryName,option:v,items:e.lineItems,isDeletable:!s,isPriceVariants:!s})},"".concat(t,"_").concat(e.categoryName))),(0,o.jsx)(L.Z,{isOpen:j("DISCOUNT"),setIsOpen:()=>T(P.Z.DISCOUNT),isToggleable:!s,categoryName:"Discount",className:F().discount_wrapper,children:(0,o.jsx)(C,{optionId:v.id,quoteId:n.id,totalWithoutDiscount:N[1],isViewOnly:s,handleUpdate:e=>{let t=V(n,v,e);p((0,Q.rR)(n.id,v.id,t))},handleRemove:()=>{let e={quoteId:n.id,solutionDescription:v.solutionDescription,exclusions:v.exclusions,discount:{value:0,description:"Discount",type:"FIXED"},toggleList:v.toggleList};p((0,Q.IO)(n.id,v.id,e))}})}),(0,o.jsxs)("div",{className:F().total_cost_table,children:[(0,o.jsxs)("div",{className:F().total_label_and_amount,children:[(0,o.jsx)("p",{className:F().total_label,children:"Total"}),(0,o.jsx)("p",{"data-cy":"total-amount",className:F().total_amount,children:(()=>{let e=j("DISCOUNT")?N[0]:N[1],t=(0,B.Z)(Math.abs(e));return e<0?"-".concat(t):t})()})]}),(0,o.jsx)("p",{className:F().total_description,children:"Taxes will be included on your final invoice."})]}),E.length>0&&E.map((e,t)=>(0,o.jsx)(L.Z,{isOpen:j(e.categoryName),setIsOpen:()=>{T(P.Z[e.categoryName.toUpperCase()])},isToggleable:!s,categoryName:e.categoryName,children:(0,o.jsx)(H,{title:e.categoryName,option:v,items:e.lineItems,isDeletable:!s,isPriceVariants:!s})},"".concat(t,"_").concat(e.categoryName))),O&&(0,o.jsx)("div",{className:F().potential_total_cost_table,children:(0,o.jsxs)("div",{className:F().potential_total_label_and_amount,children:[(0,o.jsx)("p",{className:F().potential_total_label,children:"Potential total after additional costs or savings"}),(0,o.jsx)("p",{"data-cy":"potential-total-amount",className:F().potential_total_amount,children:(0,B.Z)(N[2])})]})}),q.length>0&&q.map((e,t)=>(0,o.jsx)(L.Z,{isOpen:j(e.categoryName),setIsOpen:()=>{T(P.Z[e.categoryName.toUpperCase()])},isToggleable:!s,categoryName:e.categoryName,children:(0,o.jsx)(H,{title:e.categoryName,option:v,items:e.lineItems,isDeletable:!s,isPriceVariants:!s})},"".concat(t,"_").concat(e.categoryName)))]}):(0,o.jsx)(J.Z,{style:{margin:"auto"}}),(null==h?void 0:h.isOpen)&&(0,o.jsx)(X.Z,{})]})};
1Y.propTypes={isViewOnly:_().bool,zoom:_().number,quote:_().object,company:_().object,optionId:_().number,hasMobileVersion:_().bool,minHeight:_().bool,className:_().string};var $=n(68833),ee=n(58073),et=n(73502),en=n(12002),eo=n(73898),ei=n(70012),ea=n(48344),el=n(5422),es=n(38531),er=n(86039),ec=n(52813),eu=n(29039);let ed=()=>{let e=(0,l.useRouter)(),t=(0,a.I0)(),{qs:n}=e.query,{quoteId:s,optionId:c}=e.query;s=+s,c=+c;let d=(0,ee.F6)(),_=(0,ee.bB)(),p=(0,a.v9)(ee.GX),m=(0,a.v9)(ee.zP),g=(0,ea.Pm)("companyInfo"),h=(0,er.MJ)("preferredInstallationDates");(0,i.useEffect)(()=>{s&&t((0,$.g2)(s,n))},[s,n,t]);let v=async()=>{t((0,eu.dP)({key:"preferredInstallationDates",value:!0}))};return m&&e.push("/404"),(0,o.jsxs)("div",{className:u().container,children:[(0,o.jsx)("div",{className:r()(u().option_wrapper,u().email_view),children:(0,o.jsx)(Y,{isViewOnly:!0,optionId:c,quote:d,company:g,companyLogo:null,hasMobileVersion:!0,minHeight:!1,className:u().option})}),(0,o.jsxs)("div",{className:u().buttons_wrapper,children:[(0,o.jsx)(el.Z,{leftIcon:(0,o.jsx)(en.Z,{}),text:"Back",type:"slate",className:r()(u().action_button,u().back_to_options_button),transparentBackground:!0,onClick:()=>e.back()}),null===p&&(0,o.jsx)(ei.Z,{leftIcon:(0,o.jsx)(eo.qv,{}),text:"Approve This Option",disabled:p,className:r()(u().action_button,u().approve_button),onClick:()=>{p||v()}})]}),_&&(0,o.jsx)(es.Z,{quoteId:s,qs:n}),h&&(0,o.jsx)(ec.Z,{handleConfirm:(e,o)=>{t((0,$.wM)(d.id,!0,c,n,e,o))},useConfirmLoading:ee.k7})]})};ed.layout=et.y.COMPANY_FORM;var e_=ed},86439:function(e,t,n){"use strict";n.d(t,{BM:function(){return l},ZB:function(){return r},bS:function(){return s},l8:function(){return o},wz:function(){return a}});let{storeCustomerLeadQuote:o,storeCustomerLeadQuoteOptionLineItems:i,setCustomerLeadQuoteAcceptedQuoteFlag:a,storeIsFetching:l,storeError:s,storeAlreadyDecidedModalOpen:r}=n(20147).customerLeadQuoteSlice.actions},93651:function(e,t,n){"use strict";n.d(t,{DP:function(){return s},K_:function(){return r}});var o=n(86439),i=n(29039),a=n(99611),l=n(86382);let s=e=>async t=>{try{t((0,o.BM)({key:"customerLeadQuote",value:!0}));let n=await a.Z.getCustomerLeadQuoteBySessionId(e);t(200===n.status?(0,o.l8)(n.data):(0,o.bS)("Forbidden")),t((0,o.BM)({key:"customerLeadQuote",value:!1}))}catch(e){t((0,o.BM)({key:"customerLeadQuote",value:!1})),t((0,o.bS)((0,l.S)(e)))}},r=(e,t,n,l,s,r)=>async c=>{try{c((0,o.BM)({key:"quoteConfirm",value:!0}));let u=await a.Z.updateCustomerLeadQuoteAcceptance(e,t,n,l,s,r);200===u.status&&(c(null===u.data.acceptedQuoteOptionId?(0,o.wz)({quoteId:null,acceptedQuoteFlag:!1,acceptedQuoteOptionId:u.data.acceptedQuoteOptionId}):(0,o.wz)({quoteId:e,acceptedQuoteFlag:t,acceptedQuoteOptionId:u.data.acceptedQuoteOptionId})),c((0,o.BM)({key:"quoteConfirm",value:!1})),c((0,i.dP)({key:"preferredInstallationDates",value:!1}))),c((0,o.BM)({key:"quoteConfirm",value:!1}))}catch(e){var u;(null==e?void 0:null===(u=e.response)||void 0===u?void 0:u.status)===403&&c((0,o.ZB)(!0)),c((0,o.BM)({key:"quoteConfirm",value:!1}))}}},68833:function(e,t,n){"use strict";n.d(t,{g2:function(){return _},wM:function(){return p}});let{storeCustomerQuote:o,storeCustomerQuoteOptionLineItems:i,setCustomerQuoteAcceptedQuoteFlag:a,storeIsFetching:l,storeError:s,storeAlreadyDecidedModalOpen:r}=n(23189).customerQuoteSlice.actions;var c=n(29039),u=n(99611),d=n(86382);let _=(e,t)=>async n=>{try{n(l({key:"customerQuote",value:!0}));let i=await u.Z.getCustomerQuoteBySessionId(e,t);n(200===i.status?o(i.data):s("Forbidden")),n(l({key:"customerQuote",value:!1}))}catch(e){n(l({key:"customerQuote",value:!1})),n(s((0,d.S)(e)))}},p=(e,t,n,o,i,s)=>async d=>{try{d(l({key:"quoteConfirm",value:!0}));let r=await u.Z.updateCustomerQuoteAcceptance(e,t,n,o,i,s);200===r.status&&(d(a({acceptedQuoteFlag:t,acceptedQuoteOptionId:r.data.acceptedQuoteOptionId})),d(l({key:"quoteConfirm",value:!1})),d((0,c.dP)({key:"preferredInstallationDates",value:!1}))),d(l({key:"quoteConfirm",value:!1}))}catch(e){var _;(null==e?void 0:null===(_=e.response)||void 0===_?void 0:_.status)===403&&d(r(!0)),d(l({key:"quoteConfirm",value:!1}))}}},63367:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});let o=(e,t,n)=>{if(void 0!==e[t]){if("number"===e.type&&"number"!=typeof+e[t])return Error("Invalid prop ".concat(t," supplied to '").concat(n,"', expected 'number'."));if("text"===e.type&&"string"!=typeof e[t])return Error("Invalid prop ".concat(t," supplied to '").concat(n,"', expected 'string'."))}return null}},33912:function(e){e.exports={text_input_wrap:"TextField_text_input_wrap__YP2Ee",has_right_button:"TextField_has_right_button__0pj6T",disabled:"TextField_disabled__0Vq_t",helperText:"TextField_helperText__LQ3l4",text_input:"TextField_text_input__YWXeJ",read_only_text:"TextField_read_only_text__fctmb",right_button:"TextField_right_button__yrW6t",disabled_text:"TextField_disabled_text__TNC9m",has_error:"TextField_has_error__3zwox",right_icon:"TextField_right_icon__wXJwv",right_icon_error_wrap:"TextField_right_icon_error_wrap__DvWN6",right_icon_wrap:"TextField_right_icon_wrap__s9MnA",right_icon_error:"TextField_right_icon_error__6tBXT",error_message:"TextField_error_message__Jp3Xu",description:"TextField_description__9THuj"}},37792:function(e){e.exports={modal_wrap:"LeadOptionAlreadyDecidedModal_modal_wrap__sYILW",icon_wrap:"LeadOptionAlreadyDecidedModal_icon_wrap__7zXJd",warning_text:"LeadOptionAlreadyDecidedModal_warning_text__Ujydx",confirm_button:"LeadOptionAlreadyDecidedModal_confirm_button__cey5O"}},38206:function(e){e.exports={button:"FormButton_button__bjF2i",transparent_theme_color_button:"FormButton_transparent_theme_color_button__uHJ9x",disabled:"FormButton_disabled__joXeN"}},24057:function(e){e.exports={input:"TableInput_input__IQfZ4",view_only:"TableInput_view_only__POTeR"}},40727:function(e){e.exports={toggle_icon_wrapper:"DiscountTable_toggle_icon_wrapper___8Eef",delete_icon_wrapper:"DiscountTable_delete_icon_wrapper__DEYpZ"}},10445:function(e){e.exports={container:"SolutionDescription_container__qR7ja"}},91288:function(e){e.exports={container:"Option_container__cX8aA",min_height:"Option_min_height__TmHP7",company_logo:"Option_company_logo__V_fZ1",company_description:"Option_company_description__ytaRD",document_title:"Option_document_title__kc0pm",document_main_title:"Option_document_main_title__xRJIO",document_sub_title:"Option_document_sub_title__R0qP3",document_sub_title_bold:"Option_document_sub_title_bold__78Bn_",table:"Option_table__4gpb8",table_header:"Option_table_header__m6_RO",table_content:"Option_table_content__P9Mg8",discount_wrapper:"Option_discount_wrapper__ndNL2",total_cost_table:"Option_total_cost_table__KgyRr",total_label_and_amount:"Option_total_label_and_amount__GV5iY",total_label:"Option_total_label__xhkxf",total_amount:"Option_total_amount__QH6xR",total_description:"Option_total_description__e3_Nc",potential_total_cost_table:"Option_potential_total_cost_table__X3SA1",potential_total_label_and_amount:"Option_potential_total_label_and_amount__9k4XP",potential_total_label:"Option_potential_total_label__D_iKs",potential_total_amount:"Option_potential_total_amount__Deo1J"}},59955:function(e){e.exports={table:"PriceTable_table__cD4r6",header:"PriceTable_header__cUKrv",content:"PriceTable_content__x_vkz",sku:"PriceTable_sku__zrhLk",description:"PriceTable_description__xw2ne",type:"PriceTable_type__OhOov",quantity:"PriceTable_quantity__rNoA9",unit:"PriceTable_unit__7pKAH",total:"PriceTable_total__mb2FQ"}},56058:function(e){e.exports={container:"DocumentHeader_container__O6Dh6",company_logo:"DocumentHeader_company_logo__PYSUT",company_logo_text:"DocumentHeader_company_logo_text__fRBPY",logo_separator:"DocumentHeader_logo_separator__VSJRk",coiliq_logo:"DocumentHeader_coiliq_logo__FKOVL",company_description:"DocumentHeader_company_description__p6ZcJ",has_mobile_version:"DocumentHeader_has_mobile_version__ZLd2C"}},32128:function(e){e.exports={container:"ToggleTable_container__6TRNy",inactive:"ToggleTable_inactive__qDeQF",marker_line_wrapper:"ToggleTable_marker_line_wrapper__QK2G6",marker_line:"ToggleTable_marker_line__qghg9",toggle_button:"ToggleTable_toggle_button__Stc_C",mask:"ToggleTable_mask__NzVWS",mask_icon_tooltip_wrapper:"ToggleTable_mask_icon_tooltip_wrapper__Ihg2p",street_view_photo_tooltip:"ToggleTable_street_view_photo_tooltip__H2sJ7",icon:"ToggleTable_icon__mkuSR",unmask:"ToggleTable_unmask__eeWNC",unmasked_text:"ToggleTable_unmasked_text__pRTWD",project_overview:"ToggleTable_project_overview__fTHzg",solution:"ToggleTable_solution__bV5nN",services:"ToggleTable_services__j_XaU",materials:"ToggleTable_materials__L2Jxm",administrative:"ToggleTable_administrative__qmxfP",allowances:"ToggleTable_allowances__GAGYB",discount:"ToggleTable_discount__pA0Gf",contingencies:"ToggleTable_contingencies__0h1ZK",exclusions:"ToggleTable_exclusions__nwHO7"}},12281:function(e){e.exports={container:"_optionId__container__MPzsu",option_wrapper:"_optionId__option_wrapper__xolhC",option:"_optionId__option___L0Hz",email_view:"_optionId__email_view__8_ZEb",buttons_wrapper:"_optionId__buttons_wrapper__wlzkO",action_button:"_optionId__action_button__yLjWh",approve_button:"_optionId__approve_button__1B7Rt",back_to_options_button:"_optionId__back_to_options_button__J7jll"}},47533:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var o=n(87536);let i=(e,t,n)=>{if(e&&"reportValidity"in e){let i=(0,o.U2)(n,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},a=(e,t)=>{for(let n in t.fields){let o=t.fields[n];o&&o.ref&&"reportValidity"in o.ref?i(o.ref,n,e):o.refs&&o.refs.forEac
1h(t=>i(t,n,e))}},l=(e,t)=>{t.shouldUseNativeValidation&&a(e,t);let n={};for(let i in e){let a=(0,o.U2)(t.fields,i),l=Object.assign(e[i]||{},{ref:a&&a.ref});if(s(t.names||Object.keys(e),i)){let e=Object.assign({},(0,o.U2)(n,i));(0,o.t8)(e,"root",l),(0,o.t8)(n,i,e)}else(0,o.t8)(n,i,l)}return n},s=(e,t)=>e.some(e=>e.startsWith(t+"."));function r(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),function(i,s,r){try{return Promise.resolve(function(o,l){try{var c=(t.context,Promise.resolve(e["sync"===n.mode?"validateSync":"validate"](i,Object.assign({abortEarly:!1},t,{context:s}))).then(function(e){return r.shouldUseNativeValidation&&a({},r),{values:n.raw?i:e,errors:{}}}))}catch(e){return l(e)}return c&&c.then?c.then(void 0,l):c}(0,function(e){var t;if(!e.inner)throw e;return{values:{},errors:l((t=!r.shouldUseNativeValidation&&"all"===r.criteriaMode,(e.inner||[]).reduce(function(e,n){if(e[n.path]||(e[n.path]={message:n.message,type:n.type}),t){var i=e[n.path].types,a=i&&i[n.type];e[n.path]=(0,o.KN)(n.path,t,e,n.type,a?[].concat(a,n.message):n.message)}return e},{})),r)}}))}catch(e){return Promise.reject(e)}}}}},function(e){e.O(0,[3050,7844,2168,2888,9774,179],function(){return e(e.s=39674)}),_N_E=e.O()}]);
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.