1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="521510e5-3a33-419b-a261-fe6f6ee5634a",e._sentryDebugIdIdentifier="sentry-dbid-521510e5-3a33-419b-a261-fe6f6ee5634a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9309],{15392:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>eN});var r=s(37876),a=s(14232),l=s(41116),i=s.n(l),n=s(24407),o=s(89848);s(98899);var c=s(61991),x=s(72603),d=s(53693),m=s(39091),p=s(89099),h=s(12515),u=s(95896),f=s(51696);let y=()=>{let{getOrgName:e}=(0,a.useContext)(u.A);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"grid place-items-center account-banner",children:(0,r.jsx)("div",{className:"p-6 px-4 md:container m-auto md:px-4 xl:px-24",children:(0,r.jsx)("div",{className:"",children:(0,r.jsxs)("div",{className:"flex flex-col justify-center items-center text-center",children:[(0,r.jsx)("h1",{className:"text-lg uppercase xxs:capitalize xxs:text-2xl sm:text-3xl xl:text-4xl font-primarySemiBold text-primary xxs:pb-2",children:"Congratulations!"}),(0,r.jsxs)("h1",{className:"text-xl leading-6 xxs:text-3xl sm:text-4xl xl:text-5xl font-primarySemiBold text-white w-10/12 md:w-4/5 py-2",children:["Welcome to the ",e()," family"]}),(0,r.jsx)("p",{className:"text-sm xxs:text-lg sm:text-xl xl:text-2xl text-gray-100 xxs:py-2 font-primaryRegular",children:"We look forward to providing the best journey to solar possible"})]})})})})})},g=()=>(0,r.jsx)("div",{children:(0,r.jsx)(y,{})});var j=s(89608);let b=e=>{let{project:t,isClientOrg:s}=e;return(0,r.jsxs)("div",{id:"section-2",className:"bg-white pb-6 p-4 sm:p-8 rounded shadow",children:[(0,r.jsx)("div",{className:"text-xl xxs:text-2xl font-primarySemiBold text-titleColor mb-4 sm:mb-6",children:"Project Info"}),(0,r.jsxs)("div",{className:"lg:hidden flex flex-row items-center mb-4 xxs:mb-6",children:[(0,r.jsx)("div",{className:"rounded-full",children:(0,r.jsx)("img",{src:`https://ui-avatars.com/api/?rounded=true&&name=${t.name} 2 `,className:"object-contain w-12 sm:w-16"})}),(0,r.jsxs)("h1",{className:`text-center ml-4 text-base xxs:text-xl font-primaryBold ${s?"text-textBodyColor":"text-bodyColor"}`,children:["Hi,",t&&(0,r.jsx)("span",{className:"capitalize",children:t.name})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-6",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-y-4",children:[(0,r.jsxs)("div",{className:"flex space-x-4 flex-row items-center xxs:mb-1.5 text-base",children:[(0,r.jsx)("img",{src:"./images/svg/job-type.svg",className:"w-7 h-7 object-contain"}),(0,r.jsx)("span",{className:`font-primaryMedium ${s?"text-textBodyColor":"text-gray-500"}`,children:"Job type"}),(0,r.jsx)("span",{className:`font-primaryBold ${s?"text-textTitleColor":"text-titleColor"}`,children:"Solar"})]}),(0,r.jsxs)("div",{className:"flex space-x-4 flex-row items-center xxs:mb-1.5 text-base",children:[(0,r.jsx)("img",{src:"./images/svg/company.svg",className:"w-7 h-7 object-contain"}),(0,r.jsx)("span",{className:`font-primaryMedium ${s?"text-textBodyColor":"text-gray-500"}`,children:"Company"}),(0,r.jsx)("span",{className:`truncate text-titleColor font-primaryBold ${s?"text-textTitleColor":"text-titleColor"}`,children:t.utility_name})]}),(0,r.jsxs)("div",{className:"flex space-x-4 flex-row items-center xxs:mb-1.5 text-base",children:[(0,r.jsx)("img",{src:"./images/svg/utility-bill.svg",className:"w-7 h-7 object-contain"}),(0,r.jsx)("span",{className:`font-primaryMedium ${s?"text-textBodyColor":"text-gray-500"}`,children:"Utility Bill"}),(0,r.jsx)("span",{className:`text-titleColor font-primaryBold text-sm xxs:text-base ${s?"text-textTitleColor":"text-titleColor"}`,children:(0,j.vv)(t.avg_monthly_bill)})]})]}),(0,r.jsx)("span",{className:"xxs:hidden h-0.5 bg-gray-200 w-full my-2.5"}),(0,r.jsx)("div",{className:"",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-y-4",children:[(0,r.jsxs)("div",{className:"flex space-x-4 items-center xxs:mb-1.5 text-base",children:[(0,r.jsx)("img",{src:"./images/svg/contact.svg",className:"w-7 h-7 xxs:w-6 xxs:h-6 object-contain"}
2),(0,r.jsx)("span",{className:`font-primaryMedium ${s?"text-textBodyColor":"text-gray-500"}`,children:`${t.phone?"+"+t?.phone:"N/A"}`})]}),(0,r.jsxs)("div",{className:"flex space-x-4 items-center xxs:mb-1.5 text-base",children:[(0,r.jsx)("img",{src:"./images/svg/location.svg",className:"w-7 h-7 xxs:w-6 xxs:h-6 object-contain"}),(0,r.jsx)("span",{className:`font-primaryMedium ${s?"text-textBodyColor":"text-gray-500"}`,children:t.full_address})]}),(0,r.jsxs)("div",{className:"flex space-x-4 items-center text-base",children:[(0,r.jsx)("img",{src:"./images/svg/mail.svg",className:"w-7 h-7 xxs:w-6 xxs:h-6 object-contain"}),(0,r.jsx)("span",{className:`font-primaryMedium ${s?"text-secondary":"text-superSecondary"}`,children:(0,r.jsx)("a",{href:"mailto:{project.email}",className:"break-all",children:t.email})})]})]})})]})]})};var w=s(1404),N=s(14376),C=s(90081),v=s(79145),_=s(47303);let E=()=>(0,r.jsxs)("svg",{className:"relative",width:"11",height:"10",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M12.9734 3.99722L6.52178 0L0 3.99722V11.9917H12.9734V3.99722Z",fill:"#FEB517"}),(0,r.jsx)("path",{d:"M12.9734 3.99722L6.52178 0L0 3.99722V11.9917H12.9734V3.99722Z",fill:"#FF932B"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.82388 3.68009C6.80014 3.62866 6.76218 3.5851 6.71447 3.55457C6.66676 3.52404 6.6113 3.50781 6.55465 3.50781C6.49801 3.50781 6.44255 3.52404 6.39484 3.55457C6.34713 3.5851 6.30916 3.62866 6.28543 3.68009L5.43448 5.52432L3.41798 5.76359C3.36172 5.77023 3.30854 5.79286 3.26474 5.82878C3.22093 5.8647 3.18833 5.91242 3.1708 5.9663C3.15327 6.02017 3.15154 6.07793 3.16582 6.13276C3.18009 6.18758 3.20977 6.23717 3.25135 6.27565L4.74274 7.65437L4.34692 9.64685C4.33592 9.70239 4.34106 9.75992 4.36173 9.81264C4.38239 9.86535 4.41772 9.91104 4.46353 9.94432C4.50934 9.97759 4.56372 9.99706 4.62024 10.0004C4.67676 10.0038 4.73306 9.99085 4.78247 9.96322L6.55465 8.97113L8.32683 9.96322C8.37628 9.99097 8.43265 10.004 8.48926 10.0006C8.54587 9.99733 8.60034 9.97785 8.64621 9.94452C8.69209 9.91119 8.72744 9.86541 8.74809 9.8126C8.76873 9.75978 8.7738 9.70216 8.76269 9.64655L8.36686 7.65467L9.85796 6.27565C9.89954 6.23717 9.92922 6.18758 9.94349 6.13276C9.95777 6.07793 9.95604 6.02017 9.9385 5.9663C9.92097 5.91242 9.88838 5.8647 9.84457 5.82878C9.80077 5.79286 9.74759 5.77023 9.69133 5.76359L7.67453 5.52402L6.82388 3.68009Z",fill:"white"})]}),L=()=>(0,r.jsxs)("div",{className:"premium-tag-order spl__darkblue150 flex items-center text-xs pl-2 font-itnerRegular",children:[(0,r.jsxs)("svg",{className:"relative -top-px",width:"11",height:"10",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M12.9734 3.99722L6.52178 0L0 3.99722V11.9917H12.9734V3.99722Z",fill:"#FEB517"}),(0,r.jsx)("path",{d:"M12.9734 3.99722L6.52178 0L0 3.99722V11.9917H12.9734V3.99722Z",fill:"#FF932B"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.82388 3.68009C6.80014 3.62866 6.76218 3.5851 6.71447 3.55457C6.66676 3.52404 6.6113 3.50781 6.55465 3.50781C6.49801 3.50781 6.44255 3.52404 6.39484 3.55457C6.34713 3.5851 6.30916 3.62866 6.28543 3.68009L5.43448 5.52432L3.41798 5.76359C3.36172 5.77023 3.30854 5.79286 3.26474 5.82878C3.22093 5.8647 3.18833 5.91242 3.1708 5.9663C3.15327 6.02017 3.15154 6.07793 3.16582 6.13276C3.18009 6.18758 3.20977 6.23717 3.25135 6.27565L4.74274 7.65437L4.34692 9.64685C4.33592 9.70239 4.34106 9.75992 4.36173 9.81264C4.38239 9.86535 4.41772 9.91104 4.46353 9.94432C4.50934 9.97759 4.56372 9.99706 4.62024 10.0004C4.67676 10.0038 4.73306 9.99085 4.78247 9.96322L6.55465 8.97113L8.32683 9.96322C8.37628 9.99097 8.43265 10.004 8.48926 10.0006C8.54587 9.99733 8.60034 9.97785 8.64621 9.94452C8.69209 9.91119 8.72744 9.86541 8.74809 9.8126C8.76873 9.75978 8.7738 9.70216 8.76269 9.64655L8.36686 7.65467L9.85796 6.27565C9.89954 6.23717 9.92922 6.18758 9.94349 6.13276C9.95777 6.07793 9.95604 6.02017 9.9385 5.9663C9.92097 5.91242 9.88838 5.8647 9.84457 5.82878C9.80077 5.79286 9.74759 5.77023 9.69133 5.76359L7.67453 5.52402L6.82388 3.68009Z",fill:"white"})]}),(0,r.jsx)("span",{className:"italic pl-1",children:"Premium"})]}),S=e=>{let{project:t}
2=e,{uuid:s,rec_price:l,added_rec_details:i,inverter_total:n,selected_adders:o}=t?.lead?.proposal||{},{isClientOrg:c,getOrgSettings:x,isDifferentEnergies:d}=(0,u.h)(),{period:m=15}=i||{},{enable_premium_feature:p,enable_rec_pricing:h}=x(),[f,y]=(0,a.useState)(!1),{inverter:g,job_payments:b}=t||{},S=b&&b?.find(e=>e?.amount_type==="reservation"),{premium_enable:M,premium_cost:A}=t?.module||{},{premium_enable:k,premium_cost:T}=g||{},B=o?.filter(e=>e?.not_visible_to_customers).reduce((e,t)=>e+ +t.total_price,0)||0;function R(){return`${window.location.origin}/proposal/${s}`}async function O(e){e.stopPropagation(),await navigator.clipboard.writeText(R()),y(!0)}return(0,a.useEffect)(()=>{let e=null;return f&&(e=setTimeout(()=>y(!1),8e3)),()=>{e&&clearTimeout(e)}},[f]),(0,r.jsxs)("div",{id:"section-3",className:"grid lg:grid-cols-2 shadow rounded bg-white",children:[(0,r.jsxs)("div",{className:" p-4 sm:p-8 sm:pb-12",children:[(0,r.jsx)("div",{className:"text-xl xxs:text-2xl font-primarySemiBold text-titleColor mb-6 sm:mb-8",children:"Order Summary"}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-1 gap-y-4 sm:gap-y-6 xl:pl-6",children:[(t.module&&Object.keys(t.module).length)>0&&(0,r.jsxs)("div",{className:"xxs:mb-5 solar-summary items-start grid grid-cols-4 gap-4",children:[(0,r.jsx)("div",{className:"col-span-1 mx-auto xxs:mx-0 h-full w-full",children:(0,r.jsx)("img",{src:t.module.image_url,width:"70",alt:"",className:"object contain h-full mx-auto xxs:mx-0"})}),(0,r.jsxs)("div",{className:"col-span-3 mx-0 xl:w-4/5 2xl:w-3/4",children:[(0,r.jsxs)("h6",{className:"text-base font-primaryBold xxs:mb-1.5 text-titleColor",children:[t.design_info.system_size," kW Solar Panels",t.module.panel_name,p&&M&&(0,r.jsx)("span",{className:"premium-tag-order spl__darkblue150 pl-2 inline-flex items-center text-xs font-itnerRegular",children:(0,r.jsx)(E,{})})]}),(0,r.jsx)("p",{className:`text-base font-primaryRegular mb-1 ${c?"text-textBodyColor":"text-bodyColor"}`,children:t.module.manufacturer?.manufacturer||""}),(0,r.jsxs)("p",{className:`text-sm font-primaryRegular mb-1 ${c?"text-textBodyColor":"text-bodyColor"}`,children:[t.design_info.total_panels," Panels"]})]})]}),t.battery&&(0,r.jsxs)("div",{className:"xxs:mb-5 solar-summary items-start grid grid-cols-4 gap-4",children:[(0,r.jsx)("div",{className:"col-span-1 mx-auto xxs:mx-0 h-full w-full",children:(0,r.jsx)("img",{src:t.battery.image_url,width:"70",alt:"",className:"object contain h-full mx-auto xxs:mx-0"})}),(0,r.jsxs)("div",{className:"col-span-3 mx-0 xl:w-4/5 2xl:w-3/4",children:[(0,r.jsxs)("h6",{className:"text-base font-primaryBold xxs:mb-1.5 text-titleColor",children:[t.battery.manufacturer.manufacturer,"-"," ",t.battery.battery_name]}),(0,r.jsxs)("p",{className:`text-base font-primaryRegular mb-1 ${c?"text-textBodyColor":"text-bodyColor"}`,children:[t.battery.battery_prices[0].kwh,"kwh"]}),(0,r.jsx)("p",{className:`text-sm font-primaryRegular mb-1 max-w-sm ${c?"text-textBodyColor":"text-bodyColor"}`})]})]}),(g&&Object.keys(g).length)>0&&(0,r.jsxs)("div",{className:"xxs:mb-5 solar-summary items-start grid grid-cols-4 gap-4",children:[(0,r.jsx)("div",{className:"col-span-1 mx-auto xxs:mx-0 h-full w-full",children:(0,r.jsx)("img",{src:g?.inverter_file?.url,width:"70",alt:"",className:"object contain h-full mx-auto xxs:mx-0"})}),(0,r.jsxs)("div",{className:"col-span-3 mx-0 xl:w-4/5 2xl:w-3/4",children:[(0,r.jsxs)("h6",{className:"text-base font-primaryBold xxs:mb-1.5 text-titleColor",children:[g?.manufacturer.name," ","-"," ",g?.name,p&&k&&(0,r.jsx)("span",{className:"premium-tag-order spl__darkblue150 inline-flex pl-2 items-center text-xs font-itnerRegular",children:(0,r.jsx)(E,{})})]}),(0,r.jsxs)("p",{className:`text-sm font-primaryRegular mb-1 ${c?"text-textBodyColor":"text-bodyColor"}`,children:[g.size," inverter",g.size>1&&"s"]}),g?.optimizer&&(0,r.jsx)("p",{className:`text-base font-primaryRegular mb-1 ${c?"text-textBodyColor":"text-bodyColor"}`,children:g?.optimizer?.name||""})]})]})]})]}),(0,r.jsxs)("div",{className:" p-4 sm:p-8 my-auto",children:[(0,r.jsx)("div",{className:"text-xl xxs:text-2xl font-primarySemiBold text-titleColor mb-3 sm:mb-8",children:"Total Estimate"}),(0,r.jsx)("div",{className:"esimate__balaceBlock",children:(0,r.jsxs)("div",{className:" esimate__solarPanelBlock flex-col flex items-start",children:[d&&(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3",children:[(0,r.jsx)("p",{className:"text-base xxs:text-lg font-primaryRegular text-textBodyColor flex items-center",children:"Price Summary"}),(0,r.jsxs)("p",{className:"text-right font-interSemiBold text-primary font15 md:text-base whitespace-nowrap ",children:[t.design_info.system_size," kW System"]})]}),(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 pt-2 pb-0",children:[(0,r.jsx)("p",{className:`text-base xxs:text-lg font-primary
2Medium flex flex-wrap ${c?"text-textBodyColor":"text-bodyColor"}`,children:d?(0,r.jsx)("span",{className:"font-itnerRegular",children:"Solar Panels + Installation"}):(0,r.jsxs)(r.Fragment,{children:[t.design_info.system_size," kW Solar Panels",p&&M&&(0,r.jsx)(L,{})]})}),(0,r.jsx)("p",{className:"truncate text-base xxs:text-lg text-titleColor font-primaryMedium",children:(0,j.vv)(B?+t.base_system_total+B:+t.base_system_total)})]}),p&&M&&null!=A&&A>0&&(0,r.jsx)("div",{className:"flex flex-row mb-1.5 justify-between items-center w-full px-3",children:(0,r.jsx)("p",{className:"text-xs apr-textColor font-interSemiBold flex items-center justify-left italic opacity-06",children:(0,r.jsxs)("span",{className:"account-including-premium",children:["Including Premium Cost ",(0,j.vv)(A)]})})}),!!t?.inverter&&!!+n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 pt-2 pb-0",children:[(0,r.jsxs)("p",{className:`text-base xxs:text-lg font-primaryMedium flex flex-wrap ${c?"text-textBodyColor":"text-bodyColor"}`,children:[g.size," ",g.name,p&&k&&(0,r.jsx)(L,{})]}),(0,r.jsx)("p",{className:"truncate text-base xxs:text-lg text-titleColor font-primaryMedium",children:(0,j.vv)(+n)})]}),p&&k&&T>0&&(0,r.jsx)("div",{className:"flex flex-row mb-1.5 justify-between items-center w-full px-3",children:(0,r.jsx)("p",{className:"text-xs apr-textColor font-interSemiBold flex items-center justify-left italic opacity-06",children:(0,r.jsxs)("span",{className:"account-including-premium",children:["Including Premium Cost ",(0,j.vv)(+T)]})})})]}),t?.battery&&(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 py-2",children:[(0,r.jsxs)("p",{className:`text-base xxs:text-lg font-primaryMedium ${c?"text-textBodyColor":"text-bodyColor"}`,children:[t.battery.qty," ",t.battery.battery_name]}),(0,r.jsx)("p",{className:"truncate text-base xxs:text-lg text-titleColor font-primaryBold",children:(0,j.vv)(+t.battery_total)})]}),(0,r.jsx)(C.A,{hiddenAddersTotalPrice:B,proposal:t}),(0,r.jsxs)("div",{className:`flex flex-row justify-between items-center w-full px-3 mt-1.5 mb-1.5 ${!d?"font-interBold":""}`,children:[(0,r.jsx)("p",{className:`text-base xxs:text-lg text-bodyColor ${d?"font-primaryMedium":""}`,children:d?"Gross System Cost":"Total System Cost"}),(0,r.jsx)("p",{className:`md:truncate text-base xxs:text-lg text-titleColor ${d?"font-primaryBold":""}`,children:(0,j.vv)(+t?.gross_total)})]}),t.discounts?.length>0&&t.discounts.map((e,t)=>e.is_promo_code?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 py-2",children:[(0,r.jsx)("p",{className:`text-base xxs:text-lg font-primaryMedium ${c?"text-textBodyColor":"text-bodyColor"}`,children:e.discount_name}),(0,r.jsxs)("p",{className:"truncate text-base xxs:text-lg text-titleColor font-primaryBold",children:[e.discount_amount>0?"-":"",new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e.discount_amount)]})]},t)),(0,r.jsx)(v.A,{proposal:t,apply_coupon:!1}),d&&(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 mt-1.5 mb-1.5 font-interBold",children:[(0,r.jsx)("p",{className:"text-base xxs:text-lg text-bodyColor",children:"Total System Cost"}),(0,r.jsx)("p",{className:"md:truncate text-base xxs:text-lg text-titleColor",children:(0,j.vv)(+t?.net_amount)})]}),!d&&(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full bg-gray-50 px-3 py-2 mt-1.5 mb-1.5",children:[(0,r.jsx)("p",{className:`text-base xxs:text-lg font-primarySemiBold ${c?"text-textBodyColor":"text-bodyColor"}`,children:"Total Price"}),(0,r.jsx)("p",{className:"truncate text-base xxs:text-lg text-primary font-primaryBold",children:(0,j.vv)(+t.net_amount)})]}),(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 py-2",children:[(0,r.jsxs)("p",{className:`text-base xxs:text-lg font-primaryMedium ${c?"text-textBodyColor":"text-bodyColor"}`,children:["Federal Tax Credit",d&&(0,r.jsx)("span",{className:"block text-xs font-interBold text-gray-400 italic w-full",children:"Federal, State, Utility and Local Incentives *"})]}),(0,r.jsx)("p",{className:"truncate text-base xxs:text-lg text-titleColor font-primary
2Medium",children:(0,j.vv)(+t.fed_tax_credit||0)})]}),h&&l>0&&(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 py-2",children:[(0,r.jsxs)("p",{className:`text-base xxs:text-lg font-primaryMedium ${c?"text-textBodyColor":"text-bodyColor"}`,children:["REC Value Over ",m," years",(0,r.jsx)("span",{className:"block text-xs font-interBold text-gray-400 italic w-full",children:"State, Utility and Local Incentives vary and may not be available in all markets."})]}),(0,r.jsx)("p",{className:"text-base xxs:text-lg text-titleColor font-primaryMedium",children:(0,j.vv)(+l||0)})]}),(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 py-2",children:[(0,r.jsxs)("p",{className:`text-base xxs:text-lg font-primaryMedium ${c?"text-textBodyColor":"text-bodyColor"}`,children:["Net System Cost after Incentives",!d&&"*",(0,r.jsx)("span",{className:"text-xs font-primaryRegular block",children:"Excluding Sales Tax"})]}),(0,r.jsx)("p",{className:"truncate text-base xxs:text-lg text-titleColor font-primaryMedium",children:(0,j.vv)(+`${h?t.net_payable_amount-l:t.net_payable_amount}`)})]}),!d&&(0,r.jsx)("p",{className:"text-xs font-interLight text-gray-400 italic pl-3 w-full",children:"*Price After Incentives assumes a Federal Investment Tax Credit. This is not guaranteed and should be discussed with your Tax Professional."}),d&&(0,r.jsx)("p",{className:"text-xs font-interLight text-gray-400 italic pl-3 w-full",children:"*Disclaimer: Federal, State, Utility and Local incentives vary by each individual and system location. Consult with your accountant or tax expert for more information."}),t.contract_type===N.a.LOAN&&t.finalized_loan&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 py-2",children:[(0,r.jsx)("p",{className:`text-base xxs:text-lg font-primaryMedium ${c?"text-textBodyColor":"text-bodyColor"}`,children:"APR"}),(0,r.jsxs)("p",{className:"truncate text-base xxs:text-lg text-titleColor font-primaryMedium",children:[t.finalized_loan.rate,"%"]})]}),(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 py-2",children:[(0,r.jsx)("p",{className:`text-base xxs:text-lg font-primaryMedium ${c?"text-textBodyColor":"text-bodyColor"}`,children:"TERM"}),(0,r.jsxs)("p",{className:"truncate text-base xxs:text-lg text-titleColor font-primaryMedium",children:[t.finalized_loan.term," months"]})]}),(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 py-2",children:[(0,r.jsxs)("p",{className:`text-base xxs:text-lg font-primaryMedium ${c?"text-textBodyColor":"text-bodyColor"}`,children:["Monthly Payment ",t?.finalized_loan?.loan_provider===_.V.SUNLIGHT?"1-16 and 17+":"1-17 and 18+",(0,r.jsxs)("span",{className:"text-xs font-primaryRegular block",children:["(assuming 30%",(0,r.jsx)("sup",{children:"*"})," voluntary payment)"]})]}),(0,r.jsx)("p",{className:"truncate text-base xxs:text-lg text-titleColor font-primaryMedium",children:(0,j.vv)(t.finalized_loan.monthly_payment)})]}),(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 py-2",children:[(0,r.jsxs)("p",{className:`text-base xxs:text-lg font-primaryMedium ${c?"text-textBodyColor":"text-bodyColor"}`,children:["Monthly Payment ",t?.finalized_loan?.loan_provider===_.V.SUNLIGHT?"17+":"18+",(0,r.jsxs)("span",{className:"text-xs font-primaryRegular block",children:["( assuming no 30%",(0,r.jsx)("sup",{children:"*"})," voluntary payment )"]})]}),(0,r.jsx)("p",{className:"truncate text-base xxs:text-lg text-titleColor font-primaryMedium",children:(0,j.vv)(t.finalized_loan.escalated_monthly_payment)})]})]}),S&&t.contract_type===N.a.CASH&&(0,r.jsxs)("div",{className:"flex flex-row justify-between items-center w-full px-3 py-2",children:[(0,r.jsxs)("p",{className:`text-base xxs:text-lg font-primaryMedium ${c?"text-textBodyColor":"text-bodyColor"}`,children:["Reservation amount",(0,r.jsx)("span",{className:"text-xs font-primaryRegular block",children:"refundable order fee"})]}),(0,r.jsx)("p",{className:"truncate text-base xxs:text-lg text-primary font-primaryBold",children:(0,j.vv)(+S?.amount||0)})]}),(0,r.jsxs)("div",{className:"flex-row items-center justify-end w-full xxs:mb-1.5 text-lg",children:[(0,r.jsxs)("button",{className:"cursor-text my-4 bg-gray-100 text-center py-2 xxs:py-3 px-4 sm:px-12 w-full md:w-auto lg:w-full text-base",children:[(0,r.jsx)("span",{className:`font-primarySemiBold ${c?"text-textBodyColor":"text-bodyColor"}`,children:d?"Total System Cost":"Contract Price"}),(0,r.jsx)("span",{className:"text-primary font-primarySemiBold ml-2",children:(0,j.vv)(+t.net_amount)})]}
2),(0,r.jsxs)("button",{id:"account-view-proposal-btn",className:"view-proposal-btn bg-secondary border border-transparent w-full p-2.5 text-center leading-snug text-white focus:outline-none text-base md:text-lg font-primaryMedium rounded transition ease-in-out delay-150 hover:bg-opacity-20",onClick:()=>{window.open(R(),"_blank")},children:[(0,r.jsx)("span",{className:"mr-3",children:"View My Full Quote"}),(0,r.jsx)("svg",{"data-tip":!0,"data-for":"copy-icon",onClick:O,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"inline-flex my-auto text-white w-6 h-6 outline-none",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 01-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 011.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 00-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 01-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5a3.375 3.375 0 00-3.375-3.375H9.75"})}),(0,r.jsx)(w.A,{id:"copy-icon",place:"top",type:"light",children:(0,r.jsx)("span",{className:"text-xs",children:`${f?"Copied!":"Copy"}`})})]})]})]})})]})]})};var M=s(93650),A=s(30057);let k=new A.D,T=["reservation","downpayment","m1payment","m2payment"],B=e=>{let{isClientOrg:t,project:s,setProject:l}=e,{job_payments:n,net_amount:x}=s,[d,m]=(0,a.useState)(!1),[p,h]=(0,a.useState)(null),{setloader:f}=(0,a.useContext)(c.R),[y,g]=(0,a.useState)([]),{getOrgSettings:b}=(0,u.h)(),[w,N]=(0,a.useState)(50),C={reservation:"Reservation Amount",downpayment:"Down Payment",m1payment:`First Payment (${w}%)`,m2payment:`Final Payment (${100-Number(w)}%)`};(0,a.useEffect)(()=>{let{m1_payment_percentage:e=50}=b(),t=[],s=0;n&&n?.length&&(t=n?.map(e=>(e?.amount_type==="reservation"&&(s=e?.amount||0),e.status="completed",e)));let r=((t=0)=>{let s=n?.find(e=>e?.amount_type==="m1payment")?.amount||0,r=1e3-t,a=x-t-r,l=s||a/100*e;return N(s?(s/a*100).toFixed(2):e),{reservation:t,downpayment:r,m1payment:l,m2payment:a-l}})(s),a=n&&n?.length&&n[n?.length-1].amount_type,l=T?.findIndex(e=>e===a);l=-1===l?1:l+1;for(let e=l;e<T.length;e++){let s=e===l?"due":"pending",a=T[e],i={amount:r[a],amount_type:a,status:s};t.push(i)}(function(e=y){h(e?.find(e=>e?.status==="due"))})(t),g(t||[])},[n?.length]);let v=async()=>{m(!1),_()};async function _(){f(!0);try{let e=await k.getDetails(s.lead_id);l(e.data?.project)}catch(e){console.log(e)}finally{f(!1)}}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"grid gap-8 ",id:"section-4",children:(0,r.jsxs)("div",{className:"rounded lg:col-span-2 p-4 sm:p-8 bg-white shadow pb-8 sm:pb-16 overflow-x-auto",children:[(0,r.jsx)("div",{className:"text-xl xxs:text-2xl font-primarySemiBold text-titleColor mb-6 sm:mb-8",children:"Payment Information"}),(0,r.jsx)("div",{className:"hidden xxs:flex flex-col justify-center items-center m-auto md:ml-16",children:(0,r.jsx)("nav",{"aria-label":"Progress",className:"w-full",children:(0,r.jsx)("div",{className:"grid grid-cols-4 w-full",children:y?.map((e,t)=>{let{status:s,amount:a,amount_type:l}=e,i="pending"===s,n="completed"===s;return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("label",{className:"text-sm sm:text-base font-primaryRegular mb-2 block capitalize "+(i?" text-gray-300 ":" text-titleColor "),children:s}),(0,r.jsxs)("div",{className:"relative pr-20",children:[t!==y?.length-1&&(0,r.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,r.jsx)("div",{className:`h-0.5 w-full ${n?" bg-primary ":" bg-gray-200 "} `})}),(0,r.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,r.jsx)("div",{className:"h-0.5 w-full"+s!="pending"?" bg-primary ":" bg-gray-200 "})}),"due"===s&&(0,r.jsxs)("a",{className:"relative w-6 h-6 flex items-center justify-center bg-white border-8 border-primary rounded-full","aria-current":"step",children:[(0,r.jsx)("span",{className:"h-2 w-2 bg-white rounded-full","aria-hidden":"true"}),(0,r.jsxs)("span",{className:"sr-only",children:["Step ",t+1]})]}),n&&(0,r.jsxs)("a",{className:"relative w-6 h-6 flex items-center justify-center bg-primary rounded-full hover:shadow",children:[(0,r.jsx)("svg",{className:"w-4 h-4 xxs:w-5 xxs:h-5 text-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),(0,r.jsxs)("span",{className:"sr-only",children:["Step ",t+1]})]}),i&&(0,r.jsxs)("a",{className:"group relative z-20 w-6 h-6 flex items-center justify-center bg-gray-300 border-2 border-gray-300 rounded-full",children:[(0,r.jsx)("span",{className:"h-2.5 w-2.5 bg-white rounded-full","aria-hidden":"true"}),(0,r.jsxs)("span",{className:"sr-only",children:["Step ",t+1]})]})]}),(0,r.jsxs)("div",{className:"mr-2",children:[(0,r.jsxs)("label",{className:"block font-primarySemiBold text-sm xxs:text-base sm:text-lg mt-2 text-titleColor ",children:["$",(+a||0)?.toFixed(2)]}),(0,r.jsx)("label",{className:"text-titleColor text-xs xxs:text-sm font-primaryRegular leading-4 inline-block",children:C[l]})]})]})})})})}),(0,r.jsx)("div",{className:"xxs:hidden flex flex-col justify-center items-center m-auto",children:(0,r.jsx)("nav",{"aria-label":"Progress",className:"w-full",children:(0,r.jsx)("div",{className:"flex flex-col space-y-5",children:y?.map((e,s)=>{let{status:a,amount:l,amount_type:i}=e,n="pending"===a;return(0,r.jsx)("div",{className:"w-full",children:(0,r.jsxs)("div",{className:"w-full flex justify-between items-center",children:[(0,r.jsxs)("div",{className:"flex space-x-8 items-center",children:[(0,r.jsxs)("div",{className:"relative",children:["due"===a&&(0,r.jsxs)("a",{className:"relative w-7 h-7 flex items-center justify-center bg-white border-8 border-primary rounded-full","aria-current":"step",children:[(0,r.jsx)("span",{className:"h-2 w-2 bg-white rounded-full","aria-hidden":"true"}),(0,r.jsxs)("span",{className:"sr-only",children:["Step ",s+1]})]}),n&&(0,r.jsxs)("a",{className:"group relative w-6 h-6 flex items-center justify-center bg-gray-300 border-2 border-gray-300 rounded-full",children:[(0,r.jsx)("span",{className:"h-2.5 w-2.5 bg-white rounded-full","aria-hidden":"true"}),(0,r.jsxs)("span",{className:"sr-only",children:["Step ",s+1]})]}),"completed"===a&&(0,r.jsxs)("a",{className:"relative w-6 h-6 flex items-center justify-center bg-primary rounded-full hover:shadow",children:[(0,r.jsx)("svg",{className:"w-4 h-4 text-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),(0,r.jsxs)("span",{className:"sr-only",children:["Step ",s+1]})]}),s!==y?.length-1&&(0,r.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,r.jsx)("div",{className:" bg-primary "})})]}),(0,r.jsxs)("div",{className:"mr-2",children:[(0,r.jsx)("label",{className:`font-primarySemiBold text-lg ${t?"text-textBodyColor":"text-bodyColor"}`,children:(0,j.vv)(l)}),(0,r.jsx)("label",{className:`block -mt-0.5 text-sm font-primary
2Medium ${t?"text-textBodyColor":"text-bodyColor"}`,children:C[i]})]})]}),(0,r.jsx)("label",{className:`w-20 text-sm font-primaryMedium capitalize ${n?"text-gray-400":"text-primary"}`,children:a})]})})})})})}),p?.amount_type&&(0,r.jsxs)("button",{id:"payment-btn",onClick:()=>{m(!0)},className:" w-full xxs:w-auto hover:shadow-md text-white rounded px-4 sm:px-9 py-2 xxs:py-3 text-base transition duration-500 ease-in-out transform flex flex-row items-center justify-center mt-6 xxs:mt-12 mx-auto bg-primary",children:[(0,r.jsxs)("div",{className:"hidden xxs:flex",children:[(0,r.jsx)("span",{className:"text-center font-primaryRegular text-white",children:"Pay Now"}),(0,r.jsx)("span",{className:"text-white font-primarySemiBold ml-2",children:(0,r.jsx)("svg",{className:"h-6 w-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})})})]}),(0,r.jsxs)("div",{className:"xxs:hidden flex items-center space-x-3",children:[(0,r.jsx)("img",{src:"./images/account-page/pay-now-icon.png",className:"object-contain h-5 w-5"}),(0,r.jsx)("span",{className:"text-white text-center font-primaryRegular",children:"Pay Now"}),(0,r.jsx)("span",{className:"text-white font-primarySemiBold absolute right-4",children:(0,r.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})})})]})]})]})}),(0,r.jsx)(i(),{preventScroll:!1,isOpen:d,shouldCloseOnOverlayClick:!1,shouldCloseOnEsc:!1,onRequestClose:()=>{m(!1)},portalClassName:"EstimateDetailModalPortal",htmlOpenClassName:"EstimateDetailModal__Html--open",overlayClassName:"EstimateDetailModal__Overlay form-control-overlay leadformModal",ariaHideApp:!1,children:(0,r.jsx)(M.A,{amount:p?.amount,amount_type:p?.amount_type,toast:o.oR,onClose:()=>{m(!1)},onSuccess:v})})]})},R=e=>{let{getOrgSlug:t}=(0,u.h)(),s="different-energies"===t(),{formik:a,isClientOrg:l,onClickLiveChat:i}=e;return(0,r.jsxs)("div",{id:"section-5",className:"bg-white p-4 sm:p-8 rounded shadow",children:[(0,r.jsx)("div",{className:"text-xl xxs:text-2xl font-primarySemiBold text-titleColor mb-4 sm:mb-6",children:"Help & Support"}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 xl:px-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex sm:flex-row items-start mb-3 sm:mb-6 space-x-4 lg:space-x-6 ",children:[(0,r.jsx)("img",{src:"/images/default-user-image.png",alt:"user image",className:"object-contain w-12 sm:w-20"}),(0,r.jsxs)("div",{className:"my-auto",children:[(0,r.jsx)("label",{className:"text-primary text-base sm:text-xl md:text-2xl font-primaryMedium",children:s?"Charlie":"Kevin Abu"}),(0,r.jsx)("label",{className:`block text-sm sm:text-base font-primaryRegular ${l?"text-textBodyColor":"text-gray-400"}`,children:"Energy Advisor"}),(0,r.jsx)("span",{className:`font-primaryMedium text-sm md:text-base truncate underline ${l?"text-secondary":"text-superSecondary"}`,children:s?(0,r.jsx)("a",{href:"mailto:[email protected]",className:"break-all",children:"[email protected]"}):(0,r.jsx)("a",{href:"mailto:[email protected]",className:"break-all",children:"[email protected]"})})]})]}),(0,r.jsxs)("div",{className:"flex sm:flex-row items-start space-x-4 lg:space-x-6 cursor-pointer",onClick:()=>{i()},children:[s?(0,r.jsx)("img",{src:"./images/differentenergy-chat.png",className:"object-contain w-12 sm:w-20"}):(0,r.jsx)("img",{src:"./images/live-chat.png",className:"object-contain w-12 sm:w-20"}),(0,r.jsxs)("span",{className:"my-auto",children:[(0,r.jsx)("h1",{className:"text-lg sm:text-xl font-primaryMedium xxs:font-primarySemiBold text-titleColor",children:"Live Chat"}),(0,r.jsx)("p",{className:`text-sm sm:text-base font-primaryRegular leading-5 ${l?"text-textBodyColor":"text-gray-400"}`,children:"Connect here with your project consultant"})]})]})]}),(0,r.jsxs)("div",{className:"sm:-mt-12",children:[(0,r.jsx)("h1",{className:`text-lg tracking-tight font-primary
2Medium mb-2 ${l?"text-textBodyColor":"text-bodyColor"}`,children:"For any support write to us"}),(0,r.jsxs)("form",{id:"help-support-form",onSubmit:a.handleSubmit,children:[(0,r.jsxs)("div",{className:"relative mb-4",children:[(0,r.jsx)("input",{...a.getFieldProps("subject"),name:"subject",placeholder:"Subject",className:"text-sm focus:ring-1 focus:ring-bodyColor focus:ring-offset-white focus:outline-none p-2 border border-gray-300 rounded w-full placeholder-current text-bodyColor"}),a.touched.subject&&a.errors.subject?(0,r.jsx)("p",{className:"text-red-500 text-xs mt-0.5",children:a.errors.subject}):null]}),(0,r.jsxs)("div",{className:"hidden sm:block relative mb-3",children:[(0,r.jsx)("textarea",{...a.getFieldProps("description"),name:"description",placeholder:"Message",className:"text-sm focus:ring-1 focus:ring-bodyColor focus:ring-offset-white -mb-1 focus:outline-none p-2 border border-gray-300 rounded w-full placeholder-current text-bodyColor"}),a.touched.description&&a.errors.description?(0,r.jsx)("p",{className:"text-red-500 text-xs",children:a.errors.description}):null]}),(0,r.jsxs)("div",{className:"sm:hidden relative mb-3",children:[(0,r.jsx)("textarea",{...a.getFieldProps("description"),name:"description",placeholder:"Message",rows:"4",className:"text-sm focus:ring-1 focus:ring-bodyColor focus:ring-offset-white -mb-1 focus:outline-none p-2 border border-gray-300 rounded w-full placeholder-current text-bodyColor"}),a.touched.description&&a.errors.description?(0,r.jsx)("p",{className:"text-red-500 text-xs",children:a.errors.description}):null]}),(0,r.jsx)("button",{id:"help-support-submit-btn",disabled:!(a.touched.subject||a.touched.description),type:"submit",className:"rounded py-2 xxs:py-3 px-4 sm:px-12 w-full hover:shadow-lg text-white text-base transition duration-500 ease-in-out transform font-primaryRegular text-center "+(a.touched.subject&&a.isValid?"bg-primary cursor-pointer":"bg-primary opacity-50 cursor-text"),children:"Submit"})]})]})]})]})};var O=s(3266);let D=e=>{let{productActive:t,product:s,isClientOrg:a,orgName:l}=e;return(0,r.jsxs)("div",{id:"section-6",className:"bg-white p-4 sm:p-8 rounded shadow",children:[(0,r.jsx)("div",{className:"text-xl xxs:text-2xl font-primarySemiBold text-titleColor mb-6 sm:mb-8",children:"FAQs"}),(0,r.jsxs)("div",{className:"xxs:px-6",children:[(0,r.jsxs)("div",{className:"border-b border-gray-200 flex flex-row space-x-8 sm:space-x-12",children:[(0,r.jsx)("a",{onClick:()=>t("solar"),className:`pb-3 w-24 cursor-pointer text-xl font-primaryMedium flex justify-center ${"solar"===s||!s?"text-primary border-b-4 border-primary":"text-titleColor"} 3 4 `,children:(0,r.jsx)("span",{className:"",children:"Solar"})}),(0,r.jsx)("a",{onClick:()=>t("battery"),className:`pb-3 w-24 cursor-pointer text-xl font-primaryMedium flex justify-center ${"battery"===s||!s?"text-primary border-b-4 border-primary":"text-titleColor"} 5 6 `,children:(0,r.jsx)("span",{className:"",children:" Battery "})})]}),(0,r.jsx)("div",{className:"pt-6",style:{display:"solar"!==s&&s?"none":"block"},children:(0,r.jsxs)(O.nD,{preExpanded:["faq-1"],allowMultipleExpanded:!0,allowZeroExpanded:!0,children:[(0,r.jsxs)(O.As,{className:"bg-white pb-4 mb-2 ",id:"faq-1",uuid:"faq-1",children:[(0,r.jsx)(O.IZ,{children:(0,r.jsx)(O.SR,{className:"focus:outline-none accordion__button relative text-bodyColor font-primaryRegular",children:(0,r.jsx)("div",{children:(0,r.jsx)("h1",{className:"w-4/5 sm:w-full text-base xxs:text-lg flex flex-row items-center text-titleColor font-primaryMedium",children:"How long will solar installation take?"})})})}),(0,r.jsx)(O.IT,{children:(0,r.jsx)("p",{className:`text-sm xxs:text-base -my-2 w-11/12 ${a?"text-textBodyColor":"text-bodyColor"}`,children:"The time it takes to complete an installation depends on the scope of work involved. You can keep track on the progress and details of your solar installation and get support via our customer portal."})})]}),(0,r.jsxs)(O.As,{className:"bg-white pb-4 mb-2 ",id:"faq-2",uuid:"faq-2",children:[(0,r.jsx)(O.IZ,{children:(0,r.jsx)(O.SR,{className:"focus:outline-none accordion__button relative text-bodyColor font-primaryRegular",children:(0,r.jsx)("div",{children:(0,r.jsx)("h1",{className:"w-4/5 sm:w-full text-base xxs:text-lg flex flex-row items-center text-titleColor font-primary
6Medium",children:"Why should I install solar?"})})})}),(0,r.jsx)(O.IT,{children:(0,r.jsx)("p",{className:`text-sm xxs:text-base -my-2 w-11/12 ${a?"text-textBodyColor":"text-bodyColor"}`,children:"Solar installation provides savings on electricity bills, energy independence, and a secure and reliable energy source. By relying on solar energy, you can avoid volatile energy inflation whilst also contributing towards a sustainable future by reducing your carbon footprint."})})]}),(0,r.jsxs)(O.As,{className:"bg-white pb-4 mb-2 ",id:"faq-4",uuid:"faq-4",children:[(0,r.jsx)(O.IZ,{children:(0,r.jsx)(O.SR,{className:"focus:outline-none accordion__button relative text-bodyColor font-primaryRegular",children:(0,r.jsx)("div",{children:(0,r.jsxs)("h1",{className:"w-4/5 sm:w-full text-base xxs:text-lg flex flex-row items-center text-titleColor font-primaryMedium",children:["How accurate is the AI design given by ",l,"?"]})})})}),(0,r.jsx)(O.IT,{children:(0,r.jsxs)("p",{className:`text-sm xxs:text-base -my-2 w-11/12 ${a?"text-textBodyColor":"text-bodyColor"}`,children:[l,"'s innovative AI tool generates 100% accurate solar designs for homes using LIDAR technology. When working with the AI tool, the design provided is automatically optimized for maximum efficiency."]})})]}),(0,r.jsxs)(O.As,{className:"bg-white pb-4 mb-2 ",id:"faq-5",uuid:"faq-5",children:[(0,r.jsx)(O.IZ,{children:(0,r.jsx)(O.SR,{className:"focus:outline-none accordion__button relative text-bodyColor font-primaryRegular",children:(0,r.jsx)("div",{children:(0,r.jsx)("h1",{className:"w-4/5 sm:w-full text-base xxs:text-lg flex flex-row items-center text-titleColor font-primaryMedium",children:"How does solar work?"})})})}),(0,r.jsx)(O.IT,{children:(0,r.jsx)("p",{className:`text-sm xxs:text-base -my-2 w-11/12 ${a?"text-textBodyColor":"text-bodyColor"}`,children:"Solar systems utilize photovoltaics (PV) to generate direct current (DC) electricity. An inverter converts this into useable alternate current (AC) for your home. Apart from solar panels, a solar system consists of racking, an inverter and interconnective wiring."})})]})]})}),(0,r.jsx)("div",{className:"pt-6",style:{display:"battery"!==s&&s?"none":"block"},children:(0,r.jsxs)(O.nD,{preExpanded:["faq-1"],allowMultipleExpanded:!0,allowZeroExpanded:!0,children:[(0,r.jsxs)(O.As,{className:"bg-white pb-4 mb-2 ",id:"faq-1",uuid:"faq-1",children:[(0,r.jsx)(O.IZ,{children:(0,r.jsx)(O.SR,{className:"focus:outline-none accordion__button relative text-bodyColor font-primaryRegular",children:(0,r.jsx)("div",{children:(0,r.jsx)("h1",{className:"w-4/5 sm:w-full text-base xxs:text-lg flex flex-row items-center text-titleColor font-primaryMedium",children:"How does a solar battery work?"})})})}),(0,r.jsx)(O.IT,{children:(0,r.jsx)("p",{className:`text-sm xxs:text-base -my-2 w-11/12 ${a?"text-textBodyColor":"text-bodyColor"}`,children:"Your solar panels will produce excess energy during peak sunshine hours. When a solar battery is installed alongside a solar system, the battery stores the direct current (DC) electricity instead of sending it back to the utility grid. Later, when your solar panels stop producing energy, your battery will release the stored energy through an inverter, powering your appliances with alternate current (AC) electricity."})})]}),(0,r.jsxs)(O.As,{className:"bg-white pb-4 mb-2 ",id:"faq-2",uuid:"faq-2",children:[(0,r.jsx)(O.IZ,{children:(0,r.jsx)(O.SR,{className:"focus:outline-none accordion__button relative text-bodyColor font-primaryRegular",children:(0,r.jsx)("div",{children:(0,r.jsx)("h1",{className:"w-4/5 sm:w-full text-base xxs:text-lg flex flex-row items-center text-titleColor font-primaryMedium",children:"Will I still have to pay an electricity bill after investing in battery backup?"})})})}),(0,r.jsx)(O.IT,{children:(0,r.jsx)("p",{className:`text-sm xxs:text-base -my-2 w-11/12 ${a?"text-textBodyColor":"text-bodyColor"}`,children:"You can offset 100% of your electricity consumption with solar and not draw from the grid at all, significantly reducing your electricity bills. However, you will still have to pay utility service charges."})})]}),(0,r.jsxs)(O.As,{className:"bg-white pb-4 mb-2 ",id:"faq-3",uuid:"faq-3",children:[(0,r.jsx)(O.IZ,{children:(0,r.jsx)(O.SR,{className:"focus:outline-none accordion__button relative text-bodyColor font-primaryRegular",children:(0,r.jsx)("div",{children:(0,r.jsx)("h1",{className:"w-4/5 sm:w-full text-base xxs:text-lg flex flex-row items-center text-titleColor font-primary
6Medium",children:"Why should homeowners invest in battery backup?"})})})}),(0,r.jsx)(O.IT,{children:(0,r.jsx)("p",{className:`text-sm xxs:text-base -my-2 w-11/12 ${a?"text-textBodyColor":"text-bodyColor"}`,children:"Solar batteries provide homeowners with energy independence, as well as protection from power outages. With battery backup, a home can avoid drawing from the utility grid, relying entirely upon sustainable, clean solar energy."})})]}),(0,r.jsxs)(O.As,{className:"bg-white pb-4 mb-2 ",id:"faq-4",uuid:"faq-4",children:[(0,r.jsx)(O.IZ,{children:(0,r.jsx)(O.SR,{className:"focus:outline-none accordion__button relative text-bodyColor font-primaryRegular",children:(0,r.jsx)("div",{children:(0,r.jsx)("h1",{className:"w-4/5 sm:w-full text-base xxs:text-lg flex flex-row items-center text-titleColor font-primaryMedium",children:"How does battery storage protect a home from a power outage?"})})})}),(0,r.jsx)(O.IT,{children:(0,r.jsx)("p",{className:`text-sm xxs:text-base -my-2 w-11/12 ${a?"text-textBodyColor":"text-bodyColor"}`,children:"When a power outage occurs, your solar battery system will automatically detect that you have been cut off from the grid and release stored energy through an inverter to power your appliances."})})]})]})})]})]})},I=e=>{let{isClientOrg:t,getOrgSettings:s,getOrgName:l}=(0,a.useContext)(u.A),{self_site_survey_enabled:i,discount_amount:n}=s(),{data:o,openSiteSurveyImageModal:c,onSubmit:x,project:d}=e,{name:m,video_url:p,attachment:h,comment:f,description:y,type:g}=o,b="self site survey"===m.toLowerCase()||"site survey"===m.toLowerCase();return(0,r.jsxs)("div",{className:"px-4 sm:px-8 pb-8 pt-4 sm:py-16 grid gap-4 xl:gap-8 bg-white divide-y divide-gray-300 lg:divide-y-0",children:[(0,r.jsxs)("div",{className:"grid xxs:gap-4 sm:gap-8 md:grid-cols-2",children:[(0,r.jsxs)("div",{className:"flex flex-col justify-start",children:[(0,r.jsx)("h1",{className:`text-xl xxs:text-2xl font-primarySemiBold text-titleColor mb-3 sm:mb-4 ${t?"text-textTitleColor":"text-titleColor"}`,children:m}),i&&b&&n&&!!d?.survey_type&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"rounded-md bg-red-50 bg-opacity-50 p-4 px-2 mb-3 xxs:hidden",children:(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)("img",{src:"images/rec-2.png",className:"inline-flex object-contain w-12 h-12 mr-1"})}),(0,r.jsxs)("div",{className:"ml-3",children:[(0,r.jsx)("h3",{className:"text-lg text-primary font-primaryMedium",children:"Congratulations!"}),(0,r.jsx)("div",{children:(0,r.jsxs)("h1",{className:` text-base md:text-xl ${t?"text-textBodyColor":"text-bodyColor"}`,children:["\xa0You just got"," ",(0,j.vv)(n)," discount"]})})]})]})}),(0,r.jsx)("div",{className:"hidden xxs:block",children:(0,r.jsxs)("h1",{className:`text-base md:text-xl font-primaryMedium ${t?"text-textTitleColor":"text-titleColor"}`,children:[(0,r.jsx)("img",{src:"images/rec-2.png",className:"inline-flex object-contain w-8 h-8 mr-1"}),(0,r.jsx)("span",{className:"text-primary",children:"Congratulations!"}),"\xa0You just got ",(0,j.vv)(n)," ","discount"]})})]}),(0,r.jsx)("h2",{className:`text-base xxs:text-lg font-primaryMedium pb-3 ${t?"text-textBodyColor":"text-bodyColor"}`,children:y}),b&&i&&(0,r.jsxs)("p",{className:'text-base xxs:text-lg font-primaryMedium py-3 ${isClientOrg ? "text-textBodyColor" : "text-bodyColor"}',children:["Self site survey is fast and easy.\xa0",(0,r.jsx)("a",{onClick:()=>c(),className:`underline cursor-pointer ${t?"text-secondary":"text-superSecondary"}`,children:"See the images here"}),"\xa0for examples of images that you will take."]}),(0,r.jsx)("h2",{className:"text-lg text-titleColor",children:(0,r.jsx)("span",{children:(0,r.jsxs)("div",{className:"",children:[f&&(0,r.jsx)("h2",{className:"text-lg text-bodyColor",children:f}),h&&(0,r.jsxs)("p",{className:"text-base text-bodyColor py-3 ",children:[(0,r.jsx)("a",{onClick:()=>c(h),className:`underline cursor-pointer ${t?"text-secondary":"text-superSecondary"}`,children:"See the admin uploaded images here"}),"."]})]})})}),p&&"image"!==g&&(0,r.jsx)("p",{className:`text-base xxs:text-lg font-primary
6Medium py-3 ${t?"text-textBodyColor":"text-bodyColor"}`,children:"To learn more about the process, watch this video:-"}),b&&i&&(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-2 ",children:[(0,r.jsxs)("button",{id:"navigate-to-self-site-survey-btn",onClick:x,className:"flex space-x-3 justify-center items-center leading-4 hover:shadow-md text-white rounded text-left bg-primary p-3 text-base transition duration-500 ease-in-out transform ",children:[(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-white",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,r.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,r.jsx)("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),(0,r.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),(0,r.jsx)("span",{className:" font-primaryMedium flex items-center text-white",children:"Self-Site Survey"}),(0,r.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})})]}),(0,r.jsx)("p",{className:`text-sm leading-4 tracking-tight font-primaryMedium ${t?"text-textBodyColor":"text-bodyColor"}`,children:"You provide us with the site images and avail exciting discounts"})]})})]}),(0,r.jsx)("div",{children:p?"image"===g?(0,r.jsx)("div",{className:"border border-gray-300 rounded-md shadow-sm video-container-iframe px-6 py-4",children:(0,r.jsx)("img",{src:"./images/completed-survey.png",className:"object-contain"})}):(0,r.jsx)("div",{className:"border border-gray-300 rounded-md shadow-sm video-container-iframe",children:(0,r.jsx)("iframe",{src:p,width:"100%",height:"250",frameBorder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0})}):""})]}),b&&i&&!!d?.survey_type&&(0,r.jsxs)("p",{className:"line-height2 text-sm xxs:text-base text-titleColor font-primaryRegular italic border-none",children:["Disclaimer: In order to receive additional discount on your project, you must properly submit all requested photos to ",l()," for Self Site Survey. Failure to do so, will result in loss of additional discount."]})]})},F=e=>{let t=(0,p.useRouter)(),{project:s,openSiteSurveyImageModal:l}=e,{stages:i,stage:n}=s,[o,c]=(0,a.useState)(()=>i.find(e=>e.name===n)||i[0]);return(0,r.jsxs)("div",{id:"section-1",className:"bg-white shadow pt-4 sm:pt-8 rounded",children:[(0,r.jsxs)("nav",{className:"xxs:block xl:container m-auto px-4 sm:px-8",children:[(0,r.jsx)("h1",{className:"text-xl xxs:text-2xl font-primarySemiBold text-titleColor pb-5 md:pb-10",children:"Project Status"}),(0,r.jsx)("ol",{className:"flex justify-between overflow-x-auto survey-steps-nav",children:i.map((e,t)=>(0,r.jsxs)("li",{className:`overflow-x-auto flex-grow cursor-pointer ${o?.name===e.name?"active":""}`,onClick:()=>{c(i[t])},children:[(0,r.jsxs)("span",{className:"relative block",children:[(0,r.jsx)("span",{className:"step-line"}),(0,r.jsxs)("span",{className:"block w-6 h-6 rounded-full bg-gray-200 text-center mx-auto relative",children:[t+1,(0,r.jsx)("span",{className:"check-icon",children:(0,r.jsx)("svg",{className:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})})})]})]}),(0,r.jsx)("span",{className:"block text-center mt-4",children:e.name})]},t))})]}),(0,r.jsx)(I,{data:o,openSiteSurveyImageModal:l,onSubmit:()=>{t.push({pathname:"/self-site-survey",query:{id:s.id}})},project:s})]})};var $=s(10094),P=s(37966),H=s(13986),V=s(37605);let U=new A.D,Z=new $.A,G=({project:e})=>{let{getOrgName:t,getLeaseConfig:s}=(0,a.useContext)(u.A),l=s(),n=(0,V.A)(l),{setloader:x}=(0,a.useContext)(c.R),[d,m]=(0,a.useState)(!1),p=()=>{!e.signed_contract_url&&e.lead_id?(h(),x(!0)):window.open(e.signed_contract_url,"_blank")};async function h(){try{let t=await U.getSignedContract(e.lead_id);t?.signed_contract_url&&window.open(t.signed_contract_url,"_blank")}catch(e){o.oR.error("Unable to fetch contract. Try again later ")}finally{x(!1)}}function f(){let t=+e.loan_provider===_.V.MOSAIC,s=e.contract_type===N.a.LEASE,r=e.contract_type===N.a.LOAN;return s||r&&t}function y(){if(e.contract_type===N.a.LEASE){x(!0),g();return}j()}async function g(){let t=e.finalized_loan?.loan_provider===_.V.LIGHTREACH?V.R.LIGHTREACH:V.R.SUNNOVA;try{let s=await n.sendDocument(t,e);t===V.R.SUNNOVA?(0,o.oR)("Contract signed"):s?.send_document_response?.status==="sent"&&o.oR.success("Document sent to registered email address")}catch(t){let e=t?.response?.data?.message||t;e="No one at the address has passed credit|No one at the address is on the Title Unprocessable Entity"===e?"We have requested for credit request but it's not approved. So please try after some time":e?.message,o.oR.error(e)}finally{x(!1)}}async function j(){x(!0);try{let e=await Z.sendLoanDocument(_.V.MOSAIC);x(!1),e&&(e?.data?.links?.[0]?.link?window.open(e?.data?.links[0]?.link,"_blank"):m(!0))}catch(e){o.oR.error(e.message),x(!1)}}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"hidden xxs:flex flex-col-reverse sm:flex-row shadow rounded p-4 sm:p-10 items-center py-6 sm:py-16 account-bg",children:[e&&(0,r.jsxs)("div",{className:"md:w-4/5 xl
6:w-2/3 space-y-6 xl:pl-8 mx-auto sm:mx-0 text-center sm:text-left ",children:[(0,r.jsx)("span",{className:"text-xl xxs:text-2xl xl:text-3xl font-primarySemiBold text-white",children:"View your signed agreement documents here"}),(0,r.jsxs)("span",{className:"",children:[(0,r.jsxs)("button",{onClick:()=>{p()},className:"view-signed-agreement-btn rounded mx-auto sm:mx-0 my-4 shadow-md hover:shadow-none flex flex-row items-center text-white bg-primary px-6 py-3 text-sm xxs:text-base font-primaryMedium transition duration-500 ease-in-out transform justify-between whitespace-nowrap",children:[(0,r.jsxs)("span",{className:"flex space-x-3 items-center",children:[(0,r.jsx)("img",{src:"./images/pdf-icon.png",className:"w-6 h-6 xxs:w-8 xxs:h-7 object-contain"}),(0,r.jsxs)("span",{className:"mr-3",children:[t()," Agreement"]})]}),(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",className:"text-white p-0.5 xxs:p-0 ml-2 xxs:ml-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.jsx)("path",{d:"M16 12l-4 4-4-4M12 8v7"})]})]}),f()&&(0,r.jsxs)("button",{onClick:y,className:"finance-agreement-btn rounded mx-auto sm:mx-0 my-4 shadow-md hover:shadow-none flex flex-row items-center text-white bg-primary px-6 py-3 text-sm xxs:text-base font-primaryMedium transition duration-500 ease-in-out transform justify-between whitespace-nowrap",children:[(0,r.jsxs)("span",{className:"flex space-x-3 items-center",children:[(0,r.jsx)("img",{src:"./images/contractor-w-icon.png",className:"w-6 h-6 xxs:w-8 xxs:h-7 object-contain"}),(0,r.jsx)("span",{className:"mr-3",children:"Sign Finance Agreement"})]}),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",className:"text-white p-0.5 xxs:p-0 ml-2 xxs:ml-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,r.jsx)("path",{d:"M18 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h5M15 3h6v6M10 14L20.2 3.8"})})})]})]})]}),(0,r.jsx)("div",{className:"flex sm:items-end justify-center sm:justify-end mb-4",children:(0,r.jsx)("img",{src:"images/account-contract.png",className:"object-contain w-1/2 sm:w-3/4"})})]}),(0,r.jsxs)("div",{className:"xxs:hidden flex space-x-4 shadow rounded p-4 items-center py-6 account-bg-mobile",children:[(0,r.jsx)("div",{className:"w-1/3",children:(0,r.jsx)("img",{src:"images/account-contract-mobile.png",className:"object-contain"})}),e&&(0,r.jsxs)("div",{className:"w-2/3",children:[(0,r.jsxs)("div",{className:"flex flex-col space-y-1 text-xl font-primarySemiBold text-white",children:[(0,r.jsx)("span",{className:"",children:"View your signed "}),(0,r.jsx)("span",{className:"font-primaryMedium text-lg leading-5",children:"agreement documents here"})]}),(0,r.jsxs)("button",{onClick:()=>{p()},className:"view-signed-agreement-btn rounded my-3 shadow-md hover:shadow-none flex flex-row items-center text-white bg-primary text-sm px-4 w-full py-2 font-primaryMedium transition duration-500 ease-in-out transform justify-between whitespace-nowrap",children:[(0,r.jsxs)("span",{className:"",children:[t()," Agreement"]}),(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",className:"text-white p-0.5 ml-2.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.jsx)("path",{d:"M16 12l-4 4-4-4M12 8v7"})]})]}),f()&&(0,r.jsxs)("button",{onClick:y,className:"finance-agreement-btn rounded my-3 shadow-md hover:shadow-none flex flex-row items-center text-white bg-primary text-sm px-4 w-full py-2 font-primaryMedium transition duration-500 ease-in-out transform justify-between whitespace-nowrap",children:[(0,r.jsx)("span",{className:"",children:"Sign Finance Agreement"}),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",className:"text-white p-0.5 xxs:p-0 ml-2 xxs:ml-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,r.jsx)("path",{d:"M18 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h5M15 3h6v6M10 14L20.2 3.8"})})})]})]})]}),(0,r.jsx)(i(),{preventScroll:!1,isOpen:d,shouldCloseOnOverlayClick:!1,shouldCloseOnEsc:!1,onRequestClose:()=>m(!1),portalClassName:"EstimateDetailModalPortal",htmlOpenClassName:"EstimateDetailModal__Html--open",overlayClassName:"EstimateDetailModal__Overlay form-control-overlay leadformModal",ariaHideApp:!1,children:(0,r.jsx)(P.A,{close:()=>m(!1),text:H.K.FETCH_AGREEMENT_PENDING,ok:!0,heading:"Message"})})]})};var W=s(16001),q=s(16373),Y=s(68828);let z="The street address was found, but the sub premise was missing",Q=e=>{let{project:t}=e,{setloader:s}=(0,a.useContext)(c.R),l=(0,a.useMemo)(()=>new Y.A,[]),[i,n]=(0,a.useState)([]),[x,d]=(0,a.useState)({}),[m,p]=(0,a.useState)(1),[h,u]=(0,a.useState)(),[f,y]=(0,a.useState)(!0);async function g(e=1){try{let s=await l.getSmartHomeSchedules(t.lead_id,e),r={};n(s.availableWindows),s.availableWindows.forEach((e,t)=>{let s=(0,j.iS)(e.windowStart);r[s]=[...r[s]||[],{id:t+1,start:(0,j.F8)(e.windowStart),end:(0,j.F8)(e.windowEnd)}]}),y(!1),d(r)}catch(e){o.oR.error(e),y(!1)}}function b(e){console.log(e);let t="prev"===e?m-1:m+1;console.log(t),t>0&&p(t)}async function w(r){try{let a=i?.[r.id-1],n={vivint_appointment_end:a?.windowEnd||"",vivint_appointment_start:a?.windowStart||""},o=await l.scheduleAppointment(t.lead_id,n);o?.id&&e.setProject(e=>({...e,...o}
6)),s(!1)}catch(e){o.oR.error(e),s(!1)}}async function N(){try{let r=await l.cancelAppointment(t.lead_id);r.id&&(e.setProject(e=>({...e,...r})),u(void 0),p(1)),s(!1)}catch(e){s(!1),o.oR.error(e)}}return(0,a.useEffect)(()=>{if(t?.id&&t?.vivint_appointment_status!=="Booked"){if(t?.vivint_order_id?.includes(z))return void y(!1);y(!0),g(m)}},[m,t]),(0,r.jsxs)("div",{id:"section-7",className:"bg-white p-4 sm:p-8 rounded shadow",children:[(0,r.jsx)("div",{className:"text-xl xxs:text-2xl font-primarySemiBold text-titleColor mb-4 sm:mb-6",children:"Vivint Smart Home Appointment"}),t?.vivint_appointment_status==="Booked"&&(0,r.jsxs)("div",{className:"appointment__scheduleTitle text-base text-bodyColor font-primaryMedium flex-1",children:["Your Appointment is scheduled for",(0,r.jsxs)("span",{className:"text-primary font-semibold",children:[" ",`${(0,j.r6)(t.vivint_appointment_start)} - ${(0,j.F8)(t.vivint_appointment_end)}`]}),(0,r.jsx)("button",{className:"secondary-date mt-3",onClick:function(){s(!0),N()},children:"Cancel Appointment"})]}),t?.vivint_appointment_status!=="Booked"&&!!Object.keys(x)?.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:" mb-5 w-auto gap-4 md:gap-12 bg-gray-100 px-4 py-3 rounded flex flex-col md:flex-row items-center justify-center",children:[(0,r.jsx)("span",{className:`transform rotate-90 md:transform-none ${1===m?"cursor-not-allowed opacity-50":"cursor-pointer"}`,onClick:()=>b("prev"),children:(0,r.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M0.120117 5.72749L10.118 0.528761L10.118 10.9262L0.120117 5.72749Z",fill:"#18131E"})})}),(0,r.jsx)("h4",{className:"appointment__selectedSlot ",children:h?.id?`Selected: ${(0,j.r6)(i?.[h.id-1]?.windowStart)} - ${(0,j.F8)(i?.[h.id-1]?.windowEnd)}`:"Choose the Date"}),(0,r.jsx)("span",{className:"cursor-pointer transform rotate-90 md:transform-none",onClick:()=>b("next"),children:(0,r.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M10.4072 5.52251L0.409342 10.7212L0.409343 0.323777L10.4072 5.52251Z",fill:"#18131E"})})}),h?.id&&(0,r.jsx)("button",{className:"2md:ml-4 customThemeButton secondary-date self-end md:self-center",onClick:function(){h&&(s(!0),w(h))},children:"Book Appointment"})]}),f&&(0,r.jsx)("span",{className:"text-gray-400 font-interRegular text-sm text-center",children:" Fetching available slots..."}),!f&&!!Object.keys(x)?.length&&(0,r.jsx)("div",{className:"appointment__card",children:Object.keys(x).map((e,t)=>(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("h3",{className:"appointment__dateSlot",children:e}),(0,r.jsx)("div",{className:"appointment__dateGrid mb-5",children:x[e].map(e=>(0,r.jsxs)("button",{className:`${h?.id===e.id?"customThemeButton":""} secondary-date`,onClick:()=>{u(e)},children:[e.start," - ",e.end]},e.id))})]},t))})]}),!f&&!Object.keys(x)?.length&&(0,r.jsx)("span",{className:"text-gray-400 font-interRegular text-sm text-center",children:"No slots available."})]})},K=e=>{let{project:t,onUpdate:s,offset:a,activeBlock:l}=e;return(0,r.jsxs)("div",{id:"scrollSection",className:"xxs:px-8 py-4 fixed hidden inset-x-0 bottom-0 lg:sticky md:h-1/6 2md:h-1/5 w-full flex-row border-t-2 border-gray-100 lg:border-none lg:px-0 lg:top-24 lg:left-0 lg:w-1/5 lg:h-full text-titleColor bg-white lg:py-8 shadow lg:rounded lg:flex lg:space-x-0 lg:flex-col lg:space-x-0",children:[(0,r.jsxs)("div",{className:"flex flex-row lg:flex-col items-center w-1/3 lg:w-auto",children:[(0,r.jsx)("div",{className:"rounded-full",children:(0,r.jsx)("img",{src:`https://ui-avatars.com/api/?rounded=true&&name=${t.name} 7 `,className:"object-contain w-20 p-1"})}),(0,r.jsxs)("h1",{className:"text-center p-2 lg:mb-3 text-base 2md:text-lg font-primaryMedium",children:["Hi,",t&&(0,r.jsx)("span",{className:"xl:inline-flex block capitalize text-textTitleColor pl-1",children:t.name})]})]}),t?.contract_type==N.a.CASH&&(0,r.jsxs)(W.A,{onUpdate:s,offset:-105,items:["section-1","section-2","section-3","section-4","section-5","section-7","section-6"],currentClassName:" ",children:[!!t?.stages?.length&&(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-1",offset:a,children:(0,r.jsx)("a",{href:"section-1",children:(0,r.jsx)("div",{className:`curs
7or-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${1==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${1==l?"text-primary":"text-titleColor"}`,children:"Your Project status"})})})})}),(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-2",offset:a,children:(0,r.jsx)("a",{href:"section-2",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${2==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${2==l?"text-primary":"text-titleColor"}`,children:"Your Project info"})})})})}),(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-3",offset:a,children:(0,r.jsx)("a",{href:"section-3",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${3==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${3==l?"text-primary":"text-titleColor"}`,children:"Order Summary"})})})})}),(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-4",offset:a,children:(0,r.jsx)("a",{href:"section-4",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${4==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${4==l?"text-primary":"text-titleColor"}`,children:"Payment Information"})})})})}),(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-5",offset:a,children:(0,r.jsx)("a",{href:"section-5",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${5==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${5==l?"text-primary":"text-titleColor"}`,children:"Help & Support"})})})})}),t?.vivint_order_id&&!t?.vivint_order_id?.includes(z)&&(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-7",offset:a,children:(0,r.jsx)("a",{href:"section-7",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${7==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${7==l?"text-primary":"text-titleColor"}`,children:"Book Appointment"})})})})}),(0,r.jsx)("div",{className:"hidden lg:block mx-6 h-0.5 w full text-gray-200 bg-gray-200 lg:mb-4"}),(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-6",offset:a,children:(0,r.jsx)("a",{href:"section-6",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 ${6==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${6==l?"text-primary":"text-titleColor"}`,children:"Faqs"})})})})})]}),(t?.contract_type===N.a.LOAN||t?.contract_type===N.a.LEASE)&&(0,r.jsxs)(W.A,{onUpdate:s,offset:-105,items:["section-1","section-2","section-3","section-5","section-7","section-6"],currentClassName:" ",children:[!!t?.stages?.length&&(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-1",offset:a,children:(0,r.jsx)("a",{href:"section-1",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${1==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primary
7Medium tracking-wide ${1==l?"text-primary":"text-titleColor"}`,children:"Your Project status"})})})})}),(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-2",offset:a,children:(0,r.jsx)("a",{href:"section-2",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${2==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${2==l?"text-primary":"text-titleColor"}`,children:"Your Project info"})})})})}),(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-3",offset:a,children:(0,r.jsx)("a",{href:"section-3",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${3==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${3==l?"text-primary":"text-titleColor"}`,children:"Order Summary"})})})})}),(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-5",offset:a,children:(0,r.jsx)("a",{href:"section-5",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${5==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${5==l?"text-primary":"text-titleColor"}`,children:"Help & Support"})})})})}),t?.vivint_order_id&&!t?.vivint_order_id?.includes(z)&&(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-7",offset:a,children:(0,r.jsx)("a",{href:"section-7",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 lg:mb-4 ${7==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${7==l?"text-primary":"text-titleColor"}`,children:"Book Appointment"})})})})}),(0,r.jsx)("div",{className:"hidden lg:block mx-6 h-0.5 w full text-gray-200 bg-gray-200 lg:mb-4"}),(0,r.jsx)("li",{className:"apply",children:(0,r.jsx)(q.A,{type:"id",element:"section-6",offset:a,children:(0,r.jsx)("a",{href:"section-6",children:(0,r.jsx)("div",{className:`cursor-pointer border-b-4 xxs:border-b-0 xxs:border-l-4 ${6==l?"border-primary":"border-white"}`,children:(0,r.jsx)("h1",{className:`mb-2 xxs:mb-0 xxs:mx-3 lg:mx-6 text-center xxs:text-left text-sm sm:text-base xl:text-lg font-primaryMedium tracking-wide ${6==l?"text-primary":"text-titleColor"}`,children:"Faqs"})})})})})]})]})},J=e=>{let{setActiveBlock:t,onUpdate:s,activeBlock:a,project:l}=e;return(0,r.jsx)("div",{className:"xxs:hidden sticky z-40 top-0 bg-white p-4 shadow",children:(0,r.jsx)(W.A,{onUpdate:s,offset:-105,items:["section-1","section-2","section-3","section-4","section-5","section-7","section-6"],currentClassName:" ",children:(0,r.jsxs)("div",{className:"flex space-x-7 overflow-x-auto",children:[(0,r.jsx)("li",{className:"apply",onClick:()=>{t(1)},children:(0,r.jsx)(q.A,{type:"id",element:"section-1",offset:-470,children:(0,r.jsx)("a",{href:"section-1",children:(0,r.jsxs)("div",{className:`flex flex-col space-y-2 items-center justify-center ${1==a?"opacity-100 ":"opacity-70"}`,children:[(0,r.jsx)("img",{src:"./images/account-page/order-summary-icon.png",className:"object-contain w-4 h-5 mt-0.5",alt:"project-status"}),(0,r.jsxs)("h1",{className:"text-xs font-primarySemiBold text-center leading-3 whitespace-nowrap ",children:["Your Project ",(0,r.jsx)("br",{})," status"]})]})})})}),(0,r.jsx)("li",{className:"apply",onClick:()=>{t(2)},children:(0,r.jsx)(q.A,{type:"id",element:"section-2",offset:-130,children:(0,r.jsx)("a",{href:"section-2",children:(0,r.jsxs)("div",{className:`flex flex-col space-y-2 items-center justify-center ${2==a?"opacity-100 ":"opacity-70"}`,children:[(0,r.jsx)("img",{src:"./images/account-page/project-info-icon.png",className:"object-contain w-4 h-5 mt-0.5",alt:"project-info"}),(0,r.jsxs)("h1",{className:"text-xs font-primarySemiBold text-center leading-3 whitespace-nowrap ",children:["Your Project ",(0,r.jsx)("br",{})," Info"]})]})})})}),(0,r.jsx)("li",{className:"apply",onClick:()=>{t(3)},children:(0,r.jsx)(q.A,{type:"id",element:"section-3",offset:-130,children:(0,r.jsx)("a",{href:"section-3",children:(0,r.jsxs)("div",{className:`flex flex-col space-y-2 items-center justify-center ${3==a?"opacity-100 ":"opacity-70"}`,children:[(0,r.jsx)("img",{src:"./images/account-page/order-summary-icon.png",className:"object-contain w-4 h-5 mt-0.5",alt:"order-summary"}),(0,r.jsxs)("h1",{className:"text-xs font-primarySemiBold text-center leading-3 whitespace-nowrap ",children:["Order ",(0,r.jsx)("br",{})," Summary"]})]})})})}),(0,r.jsx)("li",{className:"apply",onClick:()=>{t(4)},children:(0,r.jsx)(q.A,{type:"id",element:"section-4",offset:-130,children:(0,r.jsx)("a",{href:"section-4",children:(0,r.jsxs)("div",{className:`flex flex-col space-y-2 items-center justify-center ${4==a?"opacity-100 ":"opacity-70"}`,children:[(0,r.jsx)("img",{src:"./images/account-page/payment-info-icon.png",className:"object-contain w-4 h-5 mt-0.5",alt:"payment-info"}),(0,r.jsxs)("h1",{className:"text-xs font-primarySemiBold text-center leading-3 whitespace-nowrap ",children:["Payment ",(0,r.jsx)("br",{})," Information"]})]})})})}),(0,r.jsx)("li",{className:"apply",onClick:()=>{t(5)},children:(0,r.jsx)(q.A,{type:"id",element:"section-5",offset:-130,children:(0,r.jsx)("a",{href:"section-5",children:(0,r.jsxs)("div",{className:`flex flex-col space-y-2 items-center justify-center ${5==a?"opacity-100 ":"opacity-70"}`,children:[(0,r.jsx)("img",{src:"./images/account-page/help-support-icon.png",className:"object-contain w-4 h-5 mt-0.5",alt:"help-support"}),(0,r.jsxs)("h1",{className:"text-xs font-primarySemiBold text-center leading-3 whitespace-nowrap ",children:["Help & ",(0,r.jsx)("br",{})," Support"]})]})})})}),l?.vivint_order_id&&!l?.vivint_order_id?.includes(z)&&(0,r.jsx)("li",{className:"apply",onClick:()=>{t(7)},children:(0,r.jsx)(q.A,{type:"id",element:"section-7",offset:-130,children:(0,r.jsx)("a",{href:"section-5",children:(0,r.jsxs)("div",{className:`flex flex-col space-y-2 items-center justify-center ${7==a?"opacity-100 ":"opacity-70"}`,children:[(0,r.jsx)("img",{src:"./images/account-page/help-support-icon.png",className:"object-contain w-4 h-5 mt-0.5",alt:"help-support"}),(0,r.jsx)("h1",{className:"text-xs font-primarySemiBold text-center leading-3 whitespace-nowrap ",children:"Book Appoinment"})]})})})})]})})})};var X=s(87610),ee=s(58572),et=s(30111),es=s(84624);let er=new $.A,ea=new A.D,el=new X.A,ei=["DocsSigned","Loan Documents Signed","Stip Created","ContractSigned"],en={pending:H.K.DOC_NOT_SIGNED,completed:H.K.DOC_SIGN_COMPLETED,draft:H.K.FETCH_AGREEMENT_PENDING},eo=e=>{let{offset:t,project:s,setProject:l}=e,{setloader:n}=(0,a.useContext)(c.R),x=(0,p.useRouter)(),[d,m]=(0,a.useState)(),[h,u]=(0,a.useState)(!1),[y,g]=(0,a.useState)(!1),[j,b]=(0,a.useState)({type:"draft",isOpen:!1}),[w,C]=(0,a.useState)(!1);async function v(e){el.updateCurrentStep({lead_id:s.lead_id,current_step:e})}(0,a.useEffect)(()=>{let e;e=x.query,e?.event&&e.event.includes("signing_complete")&&s.is_contract_signed===f.r.FALSE?(ea.updateContractSigned(s.id),l(e=>({...e,is_contract_signed:f.r.TRUE})),v(ee.RZ.CONTRACT_SIGN)):ei.includes(s.loan_status)&&C(!0)},[s]);let E=async()=>{n(!0);try{let e=await ea.sendContractForSignature(s.lead_id);e&&(M(es.j.SEND_DOCUMENT_TO_CUSTOMER,null),document.location.href=e.redirect_url)}catch(e){return n(!1),o.oR.error(e.message),null}finally{n(!1)}};function L(e=!1){if(u(!1),e)if(+s.loan_provider===_.V.SUNLIGHT&&d)window.open(d,"_blank");else g(!0)}async function S(){try{let e=await er.sendLoanDocument(+s.loan_provider);if(n(!1),e)+s.loan_provider===_.V.SUNLIGHT?e.data[0].envelopeURL&&(m(e.data[0].envelopeURL),u(!0)):u(!0);else for(let t=0;t<e.errors.length;t++)o.oR.error(e.errors[t])}catch(e){o.oR.error(e.message),n(!1)}}let M=(e,t)=>{(0,et.d)({event:e,data:t})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"grid place-items-center contract-banner",children:(0,r.jsxs)("div",{className:"p-6 md:container m-auto",children:[(0,r.jsx)("div",{className:"flex flex-col justify-center items-center text-center lg:w-3/4 2xl:w-3/5 m-auto",children:(0,r.jsxs)("h1",{className:"text-xl leading-6 xxs:text-2xl sm:text-3xl xl:text-5xl font-primary
7Medium text-white py-4 xxs:p-4",children:["You are",(0,r.jsx)("span",{className:"font-primarySemiBold",children:" one step ahead "}),"in getting your home energy optimized"]})}),(0,r.jsx)(q.A,{type:"id",element:"contract",offset:t,children:(0,r.jsx)("svg",{className:"hidden xxs:block cursor-pointer w-6 h-6 text-white cursor mt-4 xxs:mt-6 mx-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})})]})}),(0,r.jsxs)("div",{id:"contract",className:"xl:w-3/4 mx-auto 2md:my-6 shadow-lg rounded p-4 sm:p-10 items-center pt-8 xxs:pt-16 pb-16 bg-white",children:[(0,r.jsxs)("span",{className:"text-xl xxs:text-2xl xl:text-3xl font-primarySemiBold text-titleColor flex items-center justify-center pb-6 md:pb-12 contract-bg",children:["Complete your process",(0,r.jsxs)("span",{className:"font-primaryMedium text-primary",children:["\xa0for\xa0",s.contract_type]})]}),(0,r.jsxs)("div",{className:"grid place-items-center grid-cols-1 md:grid-cols-2 gap-6 xxs:gap-12 xl:gap-20 xl:w-4/5 mx-auto",children:[(0,r.jsx)("div",{className:"block md:hidden",children:(0,r.jsx)("img",{src:"images/contractProceed.png",className:"object-contain mx-auto md:mx-0 w-3/4 md:w-auto"})}),(0,r.jsx)("div",{className:"w-11/12 my-auto",children:s&&(0,r.jsxs)("span",{className:"flex-col flex",children:[s?.contract_type===N.a.LOAN&&+s?.loan_provider!==_.V.MOSAIC&&+s?.loan_provider!==_.V.OWNDB&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,r.jsxs)("button",{onClick:function(){n(!0),S()},className:"finance-agreement-btn rounded w-full mx-auto md:mx-0 xxs:w-3/4 sm:w-3/5 md:w-11/12 2xl:w-5/6 shadow-md hover:shadow-none flex flex-row items-center text-white bg-primary px-4 py-3 text-base font-primaryMedium transition duration-500 ease-in-out transform justify-between whitespace-nowrap ",children:[(0,r.jsx)("img",{src:"./images/contractor-w-icon.png",className:"w-6 h-6 xxs:w-8 xxs:h-7 object-contain"}),(0,r.jsx)("span",{className:"w-auto",children:"Finance Agreement"}),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",className:"text-white p-0.5 xxs:p-0 ml-2 xxs:ml-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,r.jsx)("path",{d:"M18 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h5M15 3h6v6M10 14L20.2 3.8"})})})]}),(0,r.jsx)("span",{className:"text-center md:text-left text-sm sm:text-base font-primaryMedium line-height2 text-opacity-80 text-titleColor",children:"Please sign the loan documents before proceeding"}),y&&2==+s.loan_provider&&(0,r.jsxs)("span",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)("a",{href:"https://mail.google.com/",target:"_blank",className:"px-4 py-2 transition duration-500 ease-in-out transform shadow-md hover:shadow-none bg-gray-100 rounded",children:(0,r.jsx)("img",{src:"./images/mail.png",className:"w-8 h-8 object-contain m-auto"})}),(0,r.jsx)("a",{href:"https://outlook.live.com/",target:"_blank",className:"px-4 py-2 transition duration-500 ease-in-out transform shadow-md hover:shadow-none bg-blue-100 rounded",children:(0,r.jsx)("img",{src:"./images/outlook.png",className:"w-8 h-8 object-contain m-auto"})})]})]}),(0,r.jsx)("span",{className:"hidden xxs:inline-block",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"border border-gray-200 rounded-full mx-auto text-titleColor font-primaryBold w-10 h-10 p-2 my-2",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M12 5v13M5 12l7 7 7-7"})})})]}),s.is_contract_signed!==f.r.TRUE&&(0,r.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,r.jsxs)("button",{id:"load-customer-agreement-btn",onClick:()=>{E()},className:"xxs:mt-4 rounded w-full mx-auto md:mx-0 xxs:w-3/4 sm:w-3/5 md:w-11/12 2xl:w-5/6 shadow-md hover:shadow-none flex flex-row items-center text-white bg-gray-500 px-4 py-3 text-base font-primary
7Medium transition duration-500 ease-in-out transform justify-between whitespace-nowrap "+(w?" blinking2":""),children:[(0,r.jsx)("img",{src:"./images/contractor-agreement.png",className:"w-6 h-6 xxs:w-8 xxs:h-7 object-contain"}),(0,r.jsx)("span",{className:"w-auto",children:"Load Customer Agreement"}),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",className:"text-white p-0.5 xxs:p-0 ml-2 xxs:ml-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,r.jsx)("path",{d:"M18 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h5M15 3h6v6M10 14L20.2 3.8"})})})]}),(0,r.jsx)("p",{className:"text-center md:text-justify text-sm sm:text-base font-primaryMedium line-height2 text-opacity-80 text-titleColor pt-2",children:"Signing this agreement does not obligate you to purchase your home's solar system. This simply begins our document gathering process. A customer service agent will be reaching out to you shortly to answer any questions you may have."})]})]})}),(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsx)("img",{src:"images/contractProceed.png",className:"object-contain mx-auto md:mx-0 w-3/4 md:w-auto"})})]})]}),(0,r.jsx)(i(),{preventScroll:!1,isOpen:h,shouldCloseOnOverlayClick:!1,shouldCloseOnEsc:!1,onRequestClose:()=>L(),portalClassName:"EstimateDetailModalPortal",htmlOpenClassName:"EstimateDetailModal__Html--open",overlayClassName:"EstimateDetailModal__Overlay form-control-overlay leadformModal",ariaHideApp:!1,children:(0,r.jsx)(P.A,{close:L,text:+s.loan_provider!==_.V.GOODLEAP?H.K.SUNLIGHT_AGREEMENT_CONFIRMATION:H.K.LOANPAL_AGREEMENT_CONFIRMATION,ok:!0,heading:"Message"})}),(0,r.jsx)(i(),{preventScroll:!1,isOpen:j.isOpen,shouldCloseOnOverlayClick:!1,shouldCloseOnEsc:!1,onRequestClose:()=>b(e=>({...e,isOpen:!1})),portalClassName:"EstimateDetailModalPortal",htmlOpenClassName:"EstimateDetailModal__Html--open",overlayClassName:"EstimateDetailModal__Overlay form-control-overlay leadformModal",ariaHideApp:!1,children:(0,r.jsx)(P.A,{close:function(){b(e=>({...e,isOpen:!1}))},text:en[j.type],ok:!0,heading:"Message"})})]})},ec=e=>{let{closeSiteSurveyImageModal:t,image:s,exampleImages:a}=e;return(0,r.jsx)("div",{className:"estimate-modal-wraaper relative",children:(0,r.jsxs)("div",{className:"ammount__modal relative flex-col",children:[(0,r.jsx)("div",{className:"cursor-pointer w-1/6 sm:w-auto flex justify-end",onClick:t,children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"absolute top-3 right-4 h-7 w-7 text-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M6 18L18 6M6 6l12 12"})})}),(0,r.jsxs)("h2",{className:"text-lg xxs:text-xl font-primaryMedium text-titleColor capitalize xxs:py-4 pt-4 px-8 xxs:border-b",children:[!s&&(0,r.jsx)("span",{children:" Examples of images that you will take."}),s&&(0,r.jsx)("span",{children:" Images Uploaded"})]}),(0,r.jsx)("div",{className:"px-4 sm:px-8 py-4",children:(0,r.jsxs)("div",{className:"w-full grid sm:grid-cols-2 md:grid-cols-3 gap-4",children:[s&&(0,r.jsx)("span",{children:(0,r.jsx)("img",{src:s})}),!s&&a?.length>0&&a?.map(e=>e.example_images.map((t,s)=>(0,r.jsxs)("div",{children:[(0,r.jsx)("img",{src:t.image_url,className:"dialog-img hover:opacity-90 hover:shadow-md transition duration-400 ease-in-out rounded-sm cursor-pointer"}),(0,r.jsx)("span",{className:"text-base md:text-lg text-bodyColor font-primaryMedium my-auto",children:e.label})]},s)))]})})]})})};var ex=s(19002);let ed=new A.D;function em(e){let t=e[1];return ed.getDetails(t)}var ep=s(48230),eh=s.n(ep);let eu=()=>(0,r.jsxs)("svg",{width:"66",height:"56",viewBox:"0 0 66 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M41.0021 19.6467C39.0269 20.7153 36.559 19.9793 35.4904 18.0021C34.4217 16.0269 35.1577 13.559 37.1349 12.4904C39.1101 11.4217 41.578 12.1577 42.6467 14.1349C43.7153 16.1101 42.9793 18.578 41.0021 19.6467Z",fill:"#FFBC12"}),(0,r.jsx)("path",{d:"M40.6999 19.0887C39.0325 19.991 36.9492 19.3693 36.0469 17.7019C35.1445 16.0344 35.7662 13.9512 37.4336 13.0488C39.1011 12.1465 41.1844 12.7681 42.0867 14.4356C42.989 16.1051 42.3674 18.1884 40.6999 19.0887Z",fill:"#FFBC12",stroke:"#D2991C","stroke-width":"0.286675","stroke-miterlimit":"10"}),(0,r.jsx)("path",{d:"M40.0056 16.5212C40.0119 16.4443 40.0119 16.3611 40.0056 16.2759C40.0036 16.2031 39.9953 16.122 39.9807 16.0368C39.9661 15.9515 39.9454 15.8684 39.9204 15.7873L39.5649 15.9786C39.5732 16.0056 39.5794 16.0347 39.5836 16.0659C39.5877 16.0971 39.5961 16.
71303 39.6023 16.1636C39.6314 16.3133 39.6522 16.4547 39.6605 16.5836C39.6688 16.7125 39.6605 16.8331 39.6376 16.9412C39.6127 17.0493 39.5649 17.1491 39.4942 17.2385C39.4235 17.3279 39.3216 17.4069 39.1906 17.4797C39.0347 17.5629 38.8892 17.6086 38.7499 17.6128C38.6106 17.6169 38.4837 17.5961 38.3652 17.5441C38.2467 17.4942 38.1407 17.4215 38.045 17.3279C37.9494 17.2344 37.8642 17.1283 37.7893 17.0119L37.3111 17.2697L37.1406 16.9537L37.6271 16.6917C37.544 16.5025 37.4837 16.3029 37.4421 16.0929C37.4005 15.8829 37.3839 15.6854 37.3901 15.4983L38.2446 15.465C38.2384 15.5607 38.2363 15.6584 38.2426 15.7623C38.2446 15.8497 38.255 15.9474 38.2717 16.0555C38.2883 16.1636 38.3153 16.2696 38.3528 16.3715L38.7 16.1844C38.6771 16.0908 38.6584 15.9973 38.6417 15.8996C38.6168 15.754 38.6043 15.621 38.6043 15.5066C38.6043 15.3902 38.621 15.2862 38.6501 15.1968C38.6813 15.1053 38.727 15.0243 38.7914 14.9536C38.8559 14.8829 38.9391 14.8205 39.0409 14.7644C39.1823 14.6874 39.3216 14.6438 39.4568 14.6313C39.5919 14.6188 39.7208 14.6334 39.8435 14.6729C39.9661 14.7124 40.0805 14.7727 40.1886 14.8558C40.2946 14.939 40.3882 15.0388 40.4693 15.1552L40.8685 14.939L41.039 15.255L40.6356 15.4733C40.673 15.5669 40.7022 15.6584 40.725 15.7519C40.7479 15.8455 40.7666 15.937 40.7791 16.0264C40.7916 16.1158 40.8019 16.2031 40.8061 16.2842C40.8123 16.3653 40.8165 16.4422 40.8186 16.5108L40.0056 16.5212ZM39.6002 15.49C39.5607 15.5108 39.5358 15.5419 39.5254 15.5815C39.515 15.621 39.5129 15.6729 39.5212 15.7374L39.8206 15.5752C39.7499 15.4775 39.6771 15.4484 39.6002 15.49ZM38.6667 16.6875C38.7041 16.6668 38.727 16.6356 38.7374 16.5877C38.7478 16.542 38.7499 16.4859 38.7415 16.4214L38.4484 16.5794C38.4879 16.6397 38.5253 16.6771 38.5607 16.6917C38.5981 16.7083 38.6334 16.7063 38.6667 16.6875Z",fill:"#FFBC12",stroke:"#D2991C","stroke-width":"0.286675","stroke-miterlimit":"10"}),(0,r.jsx)("path",{d:"M44.5596 33.751H17.207L20.0172 29.7793H42.6861L44.5596 33.751Z",fill:"#A8682B"}),(0,r.jsx)("path",{d:"M42.678 29.7793H20.0156V33.752H42.678V29.7793Z",fill:"#D98331"}),(0,r.jsx)("path",{d:"M44.5596 33.752H17.207V55.4841H44.5596V33.752Z",fill:"#FF932B"}),(0,r.jsx)("path",{d:"M35.2852 33.7541C35.2852 33.7541 37.9708 21.0465 47.9629 15.0195L50.6475 17.8616C50.6475 17.8616 41.6549 19.2348 36.472 33.7541H35.2852Z",fill:"#FEB517"}),(0,r.jsx)("path",{d:"M26.1023 33.7493C26.1023 33.7493 25.9833 16.639 11.183 11.2369L10.4336 7.55273H14.2433C14.2433 7.55273 26.6699 14.7337 26.6699 33.7493H26.1023Z",fill:"#3385FF"}),(0,r.jsx)("path",{d:"M23.6095 33.7551C23.6095 33.7551 23.9214 25.2177 14.4295 22.7073L13.8516 21.1561L15.6154 20.9219C15.6154 20.9219 24.0853 23.4276 24.0853 33.7551H23.6095Z",fill:"#F16551"}),(0,r.jsx)("path",{d:"M30.8076 33.7523L29.3594 13.5507L31.8576 10.334L34.043 13.5507L31.8998 33.7523H30.8076Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M51.0428 11.3127L50.0742 11.9169L50.7505 12.9651L50.803 14.5126L51.9111 13.9646L53.334 14.5716L53.1074 12.7337L53.927 11.1816L52.432 11.0026L51.6114 9.93945L51.0428 11.3127Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M54.4185 18.4963C53.9033 18.6771 53.7562 18.8242 53.5745 19.3403C53.3937 18.8251 53.2466 18.6781 52.7305 18.4963C53.2457 18.3146 53.3927 18.1685 53.5745 17.6523C53.7562 18.1675 53.9033 18.3146 54.4185 18.4963Z",fill:"white"}),(0,r.jsx)("path",{d:"M24.0877 9.40715C23.1323 9.7425 22.8606 10.0151 22.5243 10.9706C22.1881 10.0151 21.9164 9.74344 20.9609 9.40715C21.9164 9.07087 22.189 8.79922 22.5243 7.84375C22.8606 8.79828 23.1323 9.07087 24.0877 9.40715Z",fill:"#67CBB5"}),(0,r.jsx)("path",{d:"M38.2323 24.0693C37.2768 24.4046 37.0052 24.6772 36.6689 25.6327C36.3335 24.6772 36.0609 24.4046 35.1055 24.0693C36.0609 23.733 36.3335 23.4613 36.6689 22.5059C37.0052 23.4604 37.2768 23.733 38.2323 24.0693Z",fill:"#67CBB5"}),(0,r.jsx)("path",{d:"M13.6385 25.4736C12.6831 25.8089 12.4114 26.0815 12.0751 27.037C11.7388 26.0815 11.4672 25.8089 10.5117 25.4736C11.4672 25.1373 11.7388 24.8656 12.0751 23.9102C12.4114 24.8647 12.6831 25.1373 13.6385 25.4736Z",fill:"#67CBB5"}),(0,r.jsx)("path",{d:"M58.0956 4.73333C57.1401 5.06961 56.8684 5.34126 56.5321 6.29673C56.1968 5.34126 55.9242 5.06961 54.9688 4.73333C55.9242 4.39798 56.1968 4.12539 56.5321 3.16992C56.8684 4.12539 57.1401 4.39798 58.0956 4.73333Z",fill:"#67CBB5"}),(0,r.jsx)("path",{d:"M49.7206 31.8818C48.7651 32.218 48.4934 32.4897 48.1572 33.4452C47.8209 32.4897 47.5492 32.2171 46.5938 31.8818C47.5492 31.5464 47.8209 31.2738 48.1572 30.3184C48.4925 31.2738 48.7651 31.5464 49.7206 31.8818Z",fill:"#67CBB5"}),(0,r.jsx)("path",{d:"M25.3867 17.1417C25.3867 17.1417 26.6981 18.1094 26.6663 18.9524L27.9702 18.4691C27.9702 18.4691 27.9936 16.4551 27.2752 16.0879L25.3867 17.1417Z",fill:"#CAE13E"}),(0,r.jsx)("path",{d:"M19.8307 28.2306C19.8307 28.2306 19.7689 27.041 20.2522 26.9941L20.8143 27.6124C20.8143 27.6124 20.4714 27.9468 20.6269 28.3992L19.8307 28.2306Z",fill:"#F4BB29"}),(0,r.jsx)("path",{d:"M36.2266 6.02487C36.2266 6.02487 37.0696 6.86793 37.1633 7.93018L38.3501 7.55549C38.3501 7.55549 38.8185 6.21222 38.3501 5.39258L36.2266 6.02487Z",fill:"#F4BB29"}),(0,r.jsx)("path",{d:"M51.3864 0C51.3864 0 50.4338 0.437453 50.4656 1.71703
7L50.7935 1.88939C50.7935 1.88939 51.1729 0.827133 51.733 0.944225C51.733 0.944225 52.5255 0.156434 51.3864 0Z",fill:"#52C3D1"}),(0,r.jsx)("path",{d:"M6.96484 1.49805V3.52794L7.74608 3.65253L8.08892 2.02917L6.96484 1.49805Z",fill:"#52C3D1"}),(0,r.jsx)("path",{d:"M49.8984 5.77539V7.80529L50.6787 7.92987L51.0225 6.30652L49.8984 5.77539Z",fill:"#EE3748"}),(0,r.jsx)("path",{d:"M3.65576 8.58398L4.99809 9.55163L4.74892 10.1137L3.4375 9.80173L3.65576 8.58398Z",fill:"#EE3748"}),(0,r.jsx)("path",{d:"M54.4019 22.4121L55.7442 23.3798L55.495 23.9418L54.1836 23.6299L54.4019 22.4121Z",fill:"#EE3748"}),(0,r.jsx)("path",{d:"M17.1484 0.21875L17.3667 2.37323L18.0224 2.15497V0.312423L17.1484 0.21875Z",fill:"#CAE13E"}),(0,r.jsx)("path",{d:"M0 10.5633L1.09879 10.5296L1.10253 9.86542L0.193903 9.70898L0 10.5633Z",fill:"#CAE13E"}),(0,r.jsx)("path",{d:"M37.6562 0.582031L37.6825 2.00774L38.3513 1.95528L38.5143 0.760947L37.6562 0.582031Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M44.3086 3.23582L45.131 4.40111L45.6547 3.98146L45.1189 2.90234L44.3086 3.23582Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M58.1211 15.4633L58.9435 16.6286L59.4681 16.209L58.9323 15.1289L58.1211 15.4633Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M6.57812 8.06343L8.11624 9.58749L8.48437 9.00204L7.31252 7.58008L6.57812 8.06343Z",fill:"#CAE13E"}),(0,r.jsx)("path",{d:"M14.4258 17.207L14.8314 18.6121H15.6117V17.5227L14.4258 17.207Z",fill:"#52C3D1"}),(0,r.jsx)("path",{d:"M58.7969 0.242188L59.2025 1.64728H59.9837V0.558803L58.7969 0.242188Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M61.6055 6.85742L62.0111 8.26252H62.7923V7.1731L61.6055 6.85742Z",fill:"#52C3D1"}),(0,r.jsx)("path",{d:"M31.3477 3.12109V5.60343L32.6319 5.2915L31.9903 3.32436L31.3477 3.12109Z",fill:"#EE3748"}),(0,r.jsx)("path",{d:"M26.8086 9.39062V10.4941L28.0929 10.3545L27.4512 9.48055L26.8086 9.39062Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M46.8984 0V1.10253L48.1827 0.963896L47.541 0.0908629L46.8984 0Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M36.5204 15.1074L35.4844 15.4859L36.0558 16.6446L36.6562 15.7416L36.5204 15.1074Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M40.539 30.1426L39.5039 30.522L40.0753 31.6807L40.6748 30.7767L40.539 30.1426Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M44.1061 9.43318C44.1061 9.43318 43.9028 10.2294 43.8869 10.339C43.8719 10.4477 44.7927 10.5732 44.7927 10.5732L45.2302 9.30859L44.1061 9.43318Z",fill:"#CAE13E"}),(0,r.jsx)("path",{d:"M44.5578 26.6641L44.3086 27.8191L45.0889 27.9436L45.6509 26.9132L44.5578 26.6641Z",fill:"#CAE13E"}),(0,r.jsx)("path",{d:"M35.1642 9.30273L34.9141 10.4587L35.6953 10.5832L36.2573 9.55284L35.1642 9.30273Z",fill:"#E12C40"}),(0,r.jsx)("path",{d:"M12.0656 2.80859L11.8164 3.96358L12.5967 4.0891L13.1587 3.0587L12.0656 2.80859Z",fill:"#E12C40"}),(0,r.jsx)("path",{d:"M10.4835 19.5L10.2344 20.6559L11.0147 20.7805L11.5767 19.7501L10.4835 19.5Z",fill:"#E12C40"}),(0,r.jsx)("path",{d:"M64.9054 10.6035L64.6562 11.7585L65.4365 11.8831L65.9986 10.8527L64.9054 10.6035Z",fill:"#E12C40"}),(0,r.jsx)("path",{d:"M3.0187 2.80859L2.76953 3.96358L3.54983 4.0891L4.11187 3.0587L3.0187 2.80859Z",fill:"#E12C40"}),(0,r.jsx)("path",{d:"M11.7925 30.7559L12.9634 31.7675L12.3779 32.3483L11.1836 31.7675L11.7925 30.7559Z",fill:"#F4BB29"}),(0,r.jsx)("path",{d:"M1.70653 13.4277L2.87744 14.4394L2.29199 15.0202L1.09766 14.4394L1.70653 13.4277Z",fill:"#52C3D1"}),(0,r.jsx)("path",{d:"M28.1055 32.3462L28.3237 30.9102L29.3541 31.0347L29.4787 32.8511L28.1055 32.3462Z",fill:"#EE3748"}),(0,r.jsx)("path",{d:"M28.371 25.8382C28.371 25.8382 28.3551 25.8073 28.3298 25.7521C28.2006 25.4607 27.8399 24.5043 28.371 23.8945L28.7926 24.2926C28.7926 24.2926 28.6886 25.3783 29.1495 25.5984C29.1766 25.6116 29.2057 25.6219 29.2375 25.6275",fill:"#52C3D1"}),(0,r.jsx)("path",{d:"M7.75077 15.7297L9.28607 15.1836L9.24111 16.8126L10.235 18.1043L8.67158 18.5652L7.75077 19.9094L6.82903 18.5652L5.26562 18.1043L6.2595 16.8126L6.21453 15.1836L7.75077 15.7297Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M8.93408 17.1838C8.41794 17.3646 8.27088 17.5117 8.09009 18.0278C7.9093 17.5117 7.76223 17.3656 7.24609 17.1838C7.76223 17.0021 7.9093 16.856 8.09009 16.3398C8.27181 16.855 8.41888 17.0021 8.93408 17.1838Z",fill:"white"}),(0,r.jsx)("path",{d:"M26.575 0.557833L28.1103 0.0117188L28.0653 1.64069L29.0592 2.93245L27.4958 3.39332L26.575 4.73753L25.6532 3.39332L24.0898 2.93245L25.0837 1.64069L25.0387 0.0117188L26.575 0.557833Z",fill:"#F2DF2E"}),(0,r.jsx)("path",{d:"M26.5903 1.89087C26.0742 2.07166 25.9271 2.21873 25.7463 2.73486C25.5656 2.21873 25.4185 2.07166 24.9023 1.89087C25.4185 1.71008 25.5656 1.56301 25.7463 1.04688C25.9281 1.56208 26.0751 1.70914 26.5903 1.89087Z",fill:"white"}),(0,r.jsx)("path",{d:"M27.9049 9.00671C28.1574 11.4565 26.3774 13.6498 23.9254 13.9017C21.4756 14.1542 19.2824 12.3743 19.0304 9.92228C18.7779 7.47246 20.5579 5.27921 23.0099 5.02728C25.4597 4.77476 27.6523 6.5569 27.9049 9.00671Z",fill:"#FFC123"}),(0,r.jsx)("path",{d:"M27.2127 9.07799C27.4257 11.1466 25.9243 12.9965 23.8551 13.2118C21.7866 13.4248 19.9366 11.9233 19.7213 9.85419C19.5089 7.78342 21.0132 5.93182 23.0817 5.7188C25.1503 5.50577 26.9997 7.00942 27.2127 9.07799Z",fill:"#FFC123",stroke:"#AD7E17","stroke-width":"0.149302","stroke-miterlimit":"10"}),(0,r.jsx)("path",{d:"M24.3239 8.70883C24.2466 8.67158 24.1642 8.63534 24.0756 8.60453C24.0003 8.57727 23.9156 8.54984 23.8219 8.52946C23.7288 8.50687 23.6355 8.49369 23.5427 8.4877L23.5879 8.92712C23.6177 8.93039 23.6491 8.93645 23.6843 8.9459C23.7174 8.95475 23.7532 8.96199 23.7896 8.96703C23.9534 8.9991 24.106 9.03762 24.2402 9.08303C24.3744 9.12843 24.4935 9.18631 24.5924 9.25767C24.6913 9.32903 24.7711 9.41888 24.834 9.52781C24.8947 9.63615 24.9333 9.77398 24.951 9.93691C24.9705 10.1286 24.9538 10.2965 24.9017 10.4384C24.8495 10.5802 24.7722 10.7012 24.6727 10.7996C24.5731 10.898 24.4534 10.9746 24.3191 11.0354C24.1831 11.0934 24.0397 11.1352 23.891 11.1615L23.9519 11.7539L23.5606 11.7954L23.4977 11.1931C23.2703 11.1959 23.0422 11.1749 22.8134 11.1301C22.5846 11.0853 22.3761 11.0176 22.1889 10.9321L22.514
76 10.0514C22.6084 10.0978 22.7078 10.1409 22.8156 10.1792C22.9057 10.2128 23.0081 10.245 23.1254 10.2741C23.2428 10.3031 23.3608 10.3206 23.4803 10.3243L23.435 9.89426C23.3307 9.87812 23.2276 9.85758 23.1213 9.83145C22.9631 9.79615 22.8239 9.75177 22.7069 9.70389C22.5898 9.65601 22.4902 9.59625 22.4123 9.52579C22.3315 9.45695 22.271 9.37461 22.2255 9.27981C22.1801 9.18501 22.1532 9.07392 22.1399 8.94757C22.1213 8.77024 22.135 8.61337 22.1799 8.47197C22.2249 8.33056 22.2918 8.20445 22.3843 8.09704C22.4746 7.98903 22.5862 7.89853 22.7147 7.82435C22.8448 7.75297 22.9846 7.69834 23.1372 7.66606L23.0858 7.17066L23.477 7.12912L23.5295 7.62951C23.6379 7.63023 23.7439 7.63976 23.8482 7.65589C23.9525 7.67203 24.0512 7.69139 24.1487 7.71516C24.2456 7.74113 24.3353 7.76753 24.4223 7.79554C24.5064 7.82517 24.5867 7.85142 24.6576 7.8775L24.3239 8.70883ZM23.109 8.68784C23.1148 8.73662 23.1352 8.77513 23.1701 8.80338C23.205 8.83162 23.2577 8.85519 23.326 8.87349L23.2863 8.50164C23.1587 8.52881 23.0989 8.59308 23.109 8.68784ZM23.9321 10.1361C23.9279 10.0901 23.9047 10.0532 23.8609 10.0226C23.8172 9.99196 23.7623 9.96781 23.6946 9.94731L23.7322 10.3092C23.8094 10.2944 23.8651 10.2716 23.8937 10.2438C23.923 10.2139 23.9352 10.177 23.9321 10.1361Z",fill:"#FFC123",stroke:"#AD7E17","stroke-width":"0.149302","stroke-miterlimit":"10"})]}),ef=()=>{let{getOrgSettings:e,getTheme:t}=(0,u.h)(),{show_affialiate:s}=e(),{orgName:a}=t();return s?(0,r.jsxs)("div",{id:"become-ambassador-stripe",className:"flex flex-col md:flex-row justify-between items-center bg-white p-4 rounded gap-4 md:gap-12",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center flex-grow gap-2",children:[(0,r.jsx)("div",{className:"icon",children:(0,r.jsx)(eu,{})}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"fonr-primaryRegular text-darkblue250 text-sm leading-4",children:["Spread the Sunshine with ",a,"! Use your exclusive referral link or introduce clients directly and unlock a world of exciting rewards."," "]}),(0,r.jsx)("h4",{className:"font-primaryBold text-darkblue250 text-base mt-0.5",children:"Start now and watch your rewards grow!"})]})]}),(0,r.jsx)(eh(),{href:"ambassador",target:"_blank",className:"font-primaryMedium cursor-pointer px-4 py-2.5 rounded-full text-sm text-titleColor whitespace-nowrap bg-primary ",children:"Become an ambassador today"})]}):(0,r.jsx)(r.Fragment,{})};var ey=s(75920),eg=s(56768),ej=s(71192),eb=s(28401);let ew=new A.D,eN=(0,x.A)(()=>{let e,t=(e=(0,j.iY)(),(0,ex.Ay)(["project-details",e],em,{revalidateOnMount:!0,revalidateOnFocus:!1})),s=t.data?.data,l=(0,p.useRouter)(),[x]=(0,a.useState)(-105),[y,w]=(0,a.useState)(1),[N,C]=(0,a.useState)("solar"),{setloader:v,userData:_}=(0,a.useContext)(c.R),[E,L]=(0,a.useState)("account-site"),[M,A]=(0,a.useState)(""),[k,T]=a.useState(!1),[O]=(0,a.useState)(null),[I]=(0,a.useState)([]),[$]=(0,a.useState)(""),[P,H]=(0,a.useState)(),[V,U]=(0,a.useState)(""),{isClientOrg:Z,getOrgName:W}=(0,u.h)(),q=W(),{showDrift:Y}=(0,ej.SF)(),X=(0,eb.zM)();(0,a.useEffect)(()=>{if(!s)return;let{project:e}=s;X({type:eb.T0.UPDATE_PROPOSAL,payload:{...e}}),H(e),v(!1)},[s]);let ee=(0,d.Wx)({initialValues:{lead_id:_.id,subject:"",description:""},validationSchema:m.Ik({subject:m.Yj().required("Subject is required").min(5,"Minimum length 5 character"),description:m.Yj().required("Description is required").test("description",`${V}`,e=>(e?.length<100&&U(`Minimum length is 100 characters , ${100-e.length} characters left`),e?.length>=100))}),onSubmit:(e,{resetForm:t})=>{et(e,t)}}),et=async(e,t)=>{v(!0);try{await ew.saveSupportForm(e)&&(t({values:""}),o.oR.success("Success")),v(!1)}catch(e){v(!1),o.oR.error(e.message)}};function es(){T(!1)}let er=()=>{h.Bd&&(window?.drift?(window.drift.api.openChat(),window.drift.api.startInteraction({interactionId:287390})):Y())},ea=e=>{e?.id&&("section-1"==e.id?w(1):"section-2"==e.id?w(2):"section-3"==e.id?w(3):"section-4"==e.id?w(4):"section-5"==e.id?w(5):"section-7"==e.id?w(7):w(6))};return(0,r.jsxs)(n.A,{title:"Account Page",children:[(0,r.jsx)(i(),{preventScroll:!1,isOpen:k,onRequestClose:es,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,portalClassName:"EstimateDetailModalPortal",htmlOpenClassName:"EstimateDetailModal__Html--open",overlayClassName:"EstimateDetailModal__Overlay form-control-overlay leadformModal exampleModal",ariaHideApp:!1,children:(0,r.jsx)(ec,{closeSiteSurveyImageModal:es,image:M,exampleImages:s?.site_survey_example_images})}),P&&(0,r.jsxs)(r.Fragment,{children:[P.is_contract_signed===f.r.FALSE&&(0,r.jsx)("div",{className:"",children:(0,r.jsx)(eo,{offset:x,project:P,setProject:H})}),P?.is_contract_signed===f.r.TRUE&&(0,r.jsxs)("div",{className:"estimate relative flex-col-reverse md:flex-row",children:[(0,r.jsx)(g,{}),(0,r.jsx)(J,{setActiveBlock:w,onUpdate:ea,activeBlock:y,project:P}),(0,r.jsx)("div",{className:"p-3 md:p-5 xl:pt-12 xl:container m-auto xl:px-12",children:(0,r.jsxs)("section",{className:"flex fex-row lg:space-x-6 mb-2",children:[(0,r.jsx)(K,{project:P,isClientOrg:Z,onUpdate:ea,offset:x,activeBlock:y}),(0,r.jsxs)("div",{className:"overflow-hidden lg:w-4/5 space-y-4 md:space-y-8",children:[(0,r.jsx)(G,{project:P}),(0,r.jsx)(ef,{}),!!P?.stages?.length&&(0,r.jsx)(F,{batteryNextSetActive:L,goToSurveyPage:()=>{l.push({pathname:"/self-site-survey",query:{id:O.jobs.job_id}})},project:P,onClickLiveChat:er,currentStage:$,batteryNext:E,isClientOrg:Z,openSiteSurveyImageModal:function(e=""){A(e),T(!0)},stageStatus:I}),(0,r.jsx)(b,{project:P,isClientOrg:Z}),(0,r.jsx)(S,{project:P}),P&&"cash"==P.contract_type&&(0,r.jsx)(B,{setProject:H,isClientOrg:Z,project:P}),(0,r.jsx)(R,{formik:ee,isClientOrg:Z,onClickLiveChat:er}),P?.vivint_order_id&&!P?.vivint_order_id?.includes(z)&&(0,r.jsx)(Q,{project:P,setProject:H}),(0,r.jsx)(D,{productActive:C,product:N,isClientOrg:Z,orgName:q}),(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)("div",{className:"font-primaryRegular opacity-80 text-graylight450 text-xs xxs:text-sm px-0 pb-4 pt-0",children:(0,r.jsxs)("i",{children:[(0,r.jsx)("span",{className:"font-interMedium",children:"Disclaimer:"})," The information provided regarding the Solar Investment Tax Credit (ITC) is based on current regulations. Please note that tax laws are subject to change and individual circumstances may vary. We recommend consulting with a qualified tax professional for personalized advice."]})})})]})]})}),(0,r.jsx)("footer",{className:"margin-top-10",children:(0,r.jsx)("div",{className:"text-center ",children:(0,r.jsxs)("p",{className:"p-4 sm:p-6 text-xs xxs:text-sm 2md:text-base text-bodyColor font-primary
7Medium",children:[(0,r.jsx)(eg.A,{}),"|\xa0",(0,r.jsx)(ey.A,{className:"text-bodyColor cursor-pointer "}),"\xa0",(0,r.jsx)(ey.A,{className:" ml-1 cursor-pointer text-bodyColor",text:"Terms and Condition"})]})})})]})]}),(0,r.jsx)(o.N9,{position:"bottom-center",autoClose:8e3,icon:!1})]})},"account")},16373:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(37876),a=s(58968),l=s.n(a),i=s(14232),n=s(95062),o=s.n(n);let c=e=>e.children;class x extends i.Component{static{this.propTypes={type:o().string,element:o().string,offset:o().number,timeout:o().number,children:o().node.isRequired}}constructor(){super(),this.handleClick=this.handleClick.bind(this)}componentDidMount(){l().polyfill()}handleClick(e){e.preventDefault();let t=0,s=!0,{type:r,element:a,offset:l,timeout:i}=this.props;if(r&&a)switch(r){case"class":s=!!(t=document.getElementsByClassName(a)[0]);break;case"id":s=!!(t=document.getElementById(a))}s?this.scrollTo(t,l,i):console.log(`Element not found: ${a}`)}scrollTo(e,t=0,s=null){let r=e?e.getBoundingClientRect().top+window.pageYOffset:0;s?setTimeout(()=>{window.scroll({top:r+t,left:0,behavior:"smooth"})},s):window.scroll({top:r+t,left:0,behavior:"smooth"})}render(){return(0,r.jsx)(c,{children:"object"==typeof this.props.children?i.cloneElement(this.props.children,{onClick:this.handleClick}):(0,r.jsx)("span",{onClick:this.handleClick,children:this.props.children})})}}let d=x},30057:(e,t,s)=>{"use strict";s.d(t,{D:()=>i});var r=s(25514),a=s(5068),l=s(89608);class i{getDetails(e){let t={url:`project/detail/${e}`};return(0,r.Ay)(t)}async updateContractSigned(e){try{let t={url:`${this.prefix}/${e}`,data:{is_contract_signed:!0},method:"PATCH"};return(await (0,r.Ay)(t)).data}catch(e){this.handleError(e)}}async sendContractForSignature(e){try{let t={url:`solar/contract/send-for-signature/${e}`};return(await (0,r.Ay)(t)).data}catch(e){this.handleError(e)}}async getSignedContract(e){try{let t={url:`project/get-signed-contract/${e}`};return(await (0,r.Ay)(t)).data}catch(e){this.handleError(e)}}async getSiteSUrveyImages(e){try{let t={url:`customer-site-survey/images/${e}`};return(await (0,r.Ay)(t)).data}catch(e){this.handleError(e)}}async uploadSiteSurveyImage(e,t){try{let s={url:`customer-site-survey/image/save/${e}`,method:"POST",data:t};return(await (0,r.Ay)(s)).data}catch(e){this.handleError(e)}}async deleteSiteSUrveyImage(e,t){try{let s={url:`customer-site-survey/image/delete/${e}`,data:t,method:"POST"};return(await (0,r.Ay)(s)).data}catch(e){this.handleError(e)}}async saveSupportForm(e){try{let t=(0,l.iY)(),s={url:`project/support/${t}`,data:e,method:"POST"};return(await (0,r.Ay)(s)).data}catch(e){this.handleError(e)}}handleError(e){let t="Something went wrong";throw a.A.isAxiosError(e)&&(t=e.response?.data?.errors?.[0]||e.message),Error(t)}constructor(){this.prefix="project"}}},30111:(e,t,s)=>{"use strict";s.d(t,{C5:()=>m,DL:()=>b,GI:()=>n,VP:()=>o,XU:()=>c,_p:()=>p,ap:()=>h,d:()=>i,yh:()=>x});var r=s(47303),a=s(89608),l=s(91711);let i=e=>{console.log("eventData"),console.log(e),window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)},n=e=>{try{if(!e)return null;let{madein:t,manufacturer:{manufacturer:s},panel_name:r,specifications:{warrenty:a},is_recommended:l,panel_prices:i}=e,{price_per_watt:n}=i[0];return{panel:{madein:t,manufacturer:s,panel_name:r,warrenty:a,is_recommended:l,price_per_watt:n}}}catch(e){return console.error("Error in getPanelDataForGTM:",e),null}},o=e=>{try{if(!e)return null;let{id:t,battery_name:s,battery_prices:r,qty:a,manufacturer:{manufacturer:l},madein:i,specifications:{warrenty:n,energy_capacity:o}}=e,{price:c}=r[0];return{battery:{id:t,battery_name:s,manufacturer:l,qty:a,price:c,madein:i,warrenty:n,energy_capacity:o}}}catch(e){return console.error("Error in getBatteryDataForGTM:",e),null}},c=e=>{try{if(!e)return null;return{houseHolds:e?.filter(e=>e?.is_selected).map(e=>{let{name:t,kwh:s,qty:r}=e;return{name:t,kwh:s,qty:r}})}}catch(e){return console.error("Error in getHosueHoldDataForGTM:",e),null}},x=e=>{try{let{proposal:t}=e,{module:s,house_hold_appliances:r,battery:a,inverter:l}=t;return{panel:n(s)?.panel,battery:o(a)?.battery,house_hold_appliances:c(r)?.houseHolds,inverter:(e=>{try{if(!e)return null;let{inverter_type:t,madein:s,name:r,manufacturer:{name:a},module_power:l,warranty:i}=e;return{inverter:{name:r,inverter_type:t,madein:s,manufacturer:a,module_power:l,warranty:i}}}catch(e){return console.error("Error in getInverterDataForGTM:",e),null}})(l)?.inverter,orders_summary:d(t),lead:m(e)?.lead,design:p(t?.design_info)?.design}}catch(e){return console.error("Error in getProposalDataForGTM:",e),null}},d=e=>{try{let{adders_total:t,discounts:s,gross_total:r,net_amount:a,discounts_total:l,selected_adders:i,avg_monthly_bill:n,annual_usage:o,base_system_total:c,battery_total:x,fed_tax_credit:d,rec_price:m,contract_type:p}=e,h=i&&i?.map(e=>{let{title:t,total_price:s}=e;return{name:t,amount:s}}),u=s&&s?.map(e=>{let{discount_name:t,discount_amount:s}=e;return{name:t,amount:s}});return{panel_total:c,battery_total:x,annual_usage:o,avg_monthly_bill:n,adders_total:t,gross_total:r,net_amount:a,discounts_total:l,adders:h,discounts:u,fed_tax_credit:d,rec_Value:m,contract_type:p}}catch(e){return console.error("Error in getOrderSummaryForGTM:",e),null}},m=e=>{try{let{first_name:t,last_name:s,city:r,email:l,phone:i,full_address:n,state:o,state_code:c,street:x,zip:d,lat:m,lng:p,co_signer_email:h,co_signer_name:u,from_url:f}=e;return{lead:(0,a.Oy)({first_name:t,last_name:s,city:r,email:l,phone:i,full_address:n,state:o,state_code:c,street:x,zip:d,lat:m,lng:p,co_signer_email:h,co_signer_name:u,from_url:f})}}catch(e){return console.error("Error in getLeadDataForGTM:",e),null}},p=e=>{try{let{total_panels:t,totalPanels:s,system_size:r,systemSize:l,offset:i,annual_production:n,yearlyEnergy:o,img:c,lat:
7x,lng:d,billAmount:m}=e;return{design:(0,a.Oy)({total_panels:t||s,system_size:r||l,offset:i,annual_production:n||o,img:c,lat:x,lng:d,monthly_bill:m})}}catch(e){return console.error("Error in getDesignDataForGTM:",e),null}},h=e=>{try{if(!e)return null;let t=(0,l.PE)(e?.loan_provider),s=u(e);return{contract:{loan_provider:t,detail:s}}}catch(e){console.log("Error in getLoanQuoteDataForGTM",e)}},u=e=>{try{let{loan_provider:t}=e||{},s=null;switch(Number(t)){case r.V.GOODLEAP:s=f;break;case r.V.MOSAIC:s=y;break;case r.V.SUNLIGHT:s=g;break;case r.V.LIGHTREACH:s=w;break;case r.V.OWNDB:s=j;break;default:return e}if(s)return s(e);return e}catch(e){console.log(e)}},f=e=>{try{let{name:t,rate:s,term:r,payments:a={},initialPayment:l,finalMonthlyPayment:i,finalEscalatedMonthlyPayment:n}=e,{loanAmount:{value:o}}=a||{};return{apr:s,term:r,loan_amount:o,monthly_payments:[l,i,n],name:t}}catch(e){console.log(e)}},y=e=>{try{let{rate:t,totalPeriods:s,name:r,payments:a={}}=e,{finalMonthlyPayment:l,finalEscalatedMonthlyPayment:i,loanAmount:n}=a;return{apr:t,term:s,loan_amount:n,monthly_payment:[l,l,i],name:r}}catch(e){console.log(e)}},g=e=>{try{let{name:t,term:s,payments:r={},apr:a}=e,{monthlyPayment:l,loanAmount:i,escalatedMonthlyPayment:n}=r;return{apr:a,term:s,loan_amount:i,monthly_payments:[l,l,n],name:t}}catch(e){console.log(e)}},j=e=>{try{let{term:t,rate:s,monthly_payment:r,loan_amount:a,lender_name:l,name:i}=e||{};return{term:t,apr:s,monthly_payment:r,loan_amount:a,lender_name:l,name:i}}catch(e){return console.log("Error in getOwnBDData",e),null}},b=e=>{try{let{name:t,monthly_payment:s,rate:r,term:a,loan_amount:i,loan_provider:n}=e;return{name:t,monthly_payment:s,apr:r,term:a,loan_amount:i,loan_provider:(0,l.PE)(n)}}catch(e){console.log(e)}},w=e=>{try{let{name:t,ppwRate:s,term:r,escalationRate:l,kwhRate:i,monthly_payment:n,quote:o,systemFirstYearProductionKwh:c}=e||{},x=o?.quote_response?.systemFirstYearProductionKwh||c;return(0,a.Oy)({name:t,term:r,solar_rate:i,ppwRate:s,estimated_production:x,monthly_payment:n,payment_escalator:l})}catch(e){console.error("Erroe in getLeaseDataForGTM",e)}}},47303:(e,t,s)=>{"use strict";s.d(t,{R:()=>i,V:()=>l});var r,a,l=((r={})[r.SUNLIGHT=1]="SUNLIGHT",r[r.GOODLEAP=2]="GOODLEAP",r[r.MOSAIC=3]="MOSAIC",r[r.SUNNOVA=4]="SUNNOVA",r[r.LIGHTREACH=5]="LIGHTREACH",r[r.OWNDB=6]="OWNDB",r),i=((a={}).SUNLIGHT="sunlight",a.GOODLEAP="goodleap",a.SUNNOVA="sunnova",a.MOSAIC="mosaic",a.OWNDB="owndb",a)},51696:(e,t,s)=>{"use strict";s.d(t,{n:()=>i,r:()=>l});var r,a,l=((r={})[r.TRUE=1]="TRUE",r[r.FALSE=0]="FALSE",r),i=((a={})[a.PENDING=1]="PENDING",a[a.APPROVED=2]="APPROVED",a[a.DECLINED=3]="DECLINED",a)},56768:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(37876),a=s(95896);function l(){let{getOrgName:e}=(0,a.h)(),t=e(),s=new Date().getFullYear();return(0,r.jsx)(r.Fragment,{children:t&&(0,r.jsxs)("span",{className:"",children:["\xa9 ",s," ",t,". All rights reserved"]})})}},58572:(e,t,s)=>{"use strict";s.d(t,{RZ:()=>l,X4:()=>i});var r,a,l=((r={})[r.ADDRESS_BILL_SUBMISSION=1]="ADDRESS_BILL_SUBMISSION",r[r.SET_HOUSE=2]="SET_HOUSE",r[r.ENTER_NAME_PHONE_NUMBER=3]="ENTER_NAME_PHONE_NUMBER",r[r.SELECT_PANEL=4]="SELECT_PANEL",r[r.SELECT_BATTERY=5]="SELECT_BATTERY",r[r.SELECT_CONTRACT_TYPE=6]="SELECT_CONTRACT_TYPE",r[r.SUBMIT_LEAD_FORM=7]="SUBMIT_LEAD_FORM",r[r.PROJECT_SUBMISSION_OR_RESERVE_SYSTEM=8]="PROJECT_SUBMISSION_OR_RESERVE_SYSTEM",r[r.CONTRACT_SIGN=9]="CONTRACT_SIGN",r),i=((a={}).DESIGN_TOOL="design_tool",a.SELECT_PANEL="select_panel",a.SELECT_BATTERY="select_battery",a.SELECT_INVERTER="select_inverter",a.ADD_ONS="add_ons",a.FINANCE="finance",a.QUESTIONNAIRE="questionnaire",a)},72603:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(37876),a=s(89099),l=s(14232),i=s(12442);let n=(e,t)=>s=>{let n=(0,a.useRouter)(),[o,c]=(0,l.useState)(!1);return((0,l.useEffect)(()=>{let e="true"===localStorage.getItem("isContractSignEnabled"),s=n.query,r=localStorage.getItem("leadData")||"";r?r=JSON.parse(r):(console.log(s,Object.keys(s),"estimate"==t),Object.keys(s).length>2&&"estimate"==t&&(r=s,localStorage.setItem("leadData",JSON.stringify(r)))),r?r&&r?.status==null&&!r.instantEstimate&&"estimate"==t||r&&r?.status!==i.m.CONVERTED&&!r.instantEstimate&&"estimate"==t?c(!0):"thank-you"!==t||r?.status==i.m.CONVERTED||r.instantEstimate?(r?.status!=i.m.CONVERTED||r.instantEstimate||"account"!=t)&&"thank-you"!=t&&(r?.status!=i.m.CONVERTED||r.instantEstimate||"self-site-survey"!=t)?r&&r.instantEstimate&&!r.isInstantEstimateSubmitted&&"instant-estimate"===t||r&&r.hasOwnProperty("isInstantEstimateSubmitted")&&r.instantEstimate&&"instant-estimate-result"===t?c(!0):r&&r?.status==null&&!r.instantEstimate?n.replace("/estimate"):r&&r?.status==i.m.CONVERTED&&!r.instantEstimate?n.replace(e?"/account":"/thank-you"):r&&!r.isInstantEstimateSubmitted&&r.instantEstimate?n.replace("/instant-estimate"):r&&r.hasOwnProperty("isInstantEstimateSubmitted")&&r.instantEstimate&&n.replace("/instant-estimate-result"):c(!0):n.replace("/estimate"):n.replace("/")},[]),o)?(0,r.jsx)(e,{...s}):null}},84624:(e,t,s)=>{"use strict";s.d(t,{j:()=>a});var r,a=((r={}).RUN_AI_DESING="RUN_AI_DESING",r.SAVE_DESIGN="SAVE_DESIGN",r.UNSUPPORTED_ADDRESS="UNSUPPORTED_ADDRESS",r.SET_HOUSE="SET_HOUSE",r.SAVE_HOUSE="SAVE_HOUSE",r.SHOW_TOOL_DATA="SHOW_TOOL_DATA",r.BAD_DESIGN="BAD_DESIGN",r.PANEL_SELECT="PANEL_SELECT",r.BATTERY_SELECT="BATTERY_SELECT",r.BATTERY_UNSELECT="BATTERY_UNSELECT",r.BATTERY_INCREMENT="BATTERY_INCREMENT",r.BATTERY_DECREMENT="BATTERY_DECREMENT",r.HOUSEHOLD_UPDATES="HOUSEHOLD_UPDATES",r.INVERTER_SELECT="INVERTER_SELECT",r.INVERTER_
7UNSELECT="INVERTER_UNSELECT",r.FINANCE_UPDATE="FINANCE_UPDATE",r.SYSTEM_RESERVE="SYSTEM_RESERVE",r.INITIAL_LEAD_FORM_SUBMITED="INITIAL_LEAD_FORM_SUBMITED",r.LEAD_FORM_SUBMITED="LEAD_FORM_SUBMITED",r.NEW_LEAD_CREATED="NEW_LEAD_CREATED",r.SEND_DOCUMENT_TO_CUSTOMER="SEND_DOCUMENT_TO_CUSTOMER",r.FINANCE_AGREEMENT="FINANCE_AGREEMENT",r.LOAN_FINALIZE="LOAN_FINALIZE",r.LOAN_QUALIFY="LOAN_QUALIFY",r.LOAN_DECLINE="LOAN_DECLINE",r.LEASE_FINALIZE="LEASE_FINALIZE",r.LEASE_QUALIFY="LEASE_QUALIFY",r)},85464:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return s(15392)}])},91711:(e,t,s)=>{"use strict";s.d(t,{$6:()=>l,BO:()=>i,PE:()=>o,QW:()=>n,W4:()=>x,ml:()=>c});var r=s(99150),a=s(47303);let l=e=>{let{last_name:t,email:s}=e;return!!(t&&s)},i=e=>{let{last_name:t,email:s,phone:r}=e;return!!(t&&s&&r)},n=e=>{let{last_name:t,email:s}=e;return!!(t&&s)};function o(e){return r.G[e]}function c(e){switch(Number(e)){case a.V.GOODLEAP:case a.V.MOSAIC:case a.V.SUNLIGHT:case a.V.OWNDB:return!0;default:return!1}}function x(e){switch(Number(e)){case a.V.SUNNOVA:case a.V.LIGHTREACH:return!0;default:return!1}}},99150:(e,t,s)=>{"use strict";s.d(t,{G:()=>a,l:()=>l});var r=s(47303);let a={[r.V.SUNLIGHT]:"Sunlight",[r.V.GOODLEAP]:"Goodleap Finance",[r.V.SUNNOVA]:"Sunnova",[r.V.MOSAIC]:"Mosaic",[r.V.LIGHTREACH]:"LightReach",[r.V.OWNDB]:"Own DB"},l={[r.V.SUNLIGHT]:"/images/partner/sunlight-financial-logo.png",[r.V.GOODLEAP]:"/images/partner/goodleap.png",[r.V.SUNNOVA]:"/images/sunnova-logo.png",[r.V.MOSAIC]:"/images/partner/mosaic.png",[r.V.LIGHTREACH]:"/images/partner/light-reach-proposal-logo.png",[r.V.OWNDB]:""}}},e=>{e.O(0,[7944,3266,1404,2822,6436,9147,636,6593,8792],()=>e(e.s=85464)),_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.