PageSourceSearch

https://coiliq.com/_next/static/chunks/pages/[company]/submit-3ce83ef0a3a09357.js

js coiliq.com collected 2026-10-07 10:23:20 UTC 14,376 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9891],{52808:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[company]/submit",function(){return t(9405)}])},70012:function(e,a,t){"use strict";var r=t(85893),s=t(45697),i=t.n(s),n=t(93967),l=t.n(n),o=t(38206),c=t.n(o),u=t(5422);let d=e=>{let{themeColor:a,className:t,dataCy:s,...i}=e;return(0,r.jsx)("span",{className:l()(c().container,t),style:{"--theme-color":"".concat(a)},children:(0,r.jsx)(u.Z,{style:{"--theme-color":"".concat(a)},className:l()(c().button,{[c().transparent_theme_color_button]:a&&(null==i?void 0:i.transparentBackground),[c().disabled]:null==i?void 0:i.disabled}),dataCy:s,noEffects:!0,themeColor:a,...i})})};d.propTypes={themeColor:i().string,className:i().string,dataCy:i().string,buttonProps:i().object},a.Z=d},44478:function(e,a,t){"use strict";var r=t(85893),s=t(45697),i=t.n(s),n=t(93967),l=t.n(n),o=t(99905),c=t.n(o),u=t(48344),d=t(59571);let _=e=>{let{illustrationPath:a,className:t}=e,s=(0,u.W1)();return(0,r.jsxs)("div",{className:l()(c().c
1ontainer,t),children:[(0,r.jsx)("img",{src:a,className:c().illustration_img}),(0,r.jsx)("div",{className:c().illustration_overlay,style:{backgroundColor:s||d.e}})]})};_.propTypes={illustrationPath:i().string.isRequired,className:i().string},a.Z=_},9405:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return D}});var r=t(85893),s=t(63154),i=t.n(s),n=t(45697),l=t.n(n),o=t(93967),c=t.n(o),u=t(84248),d=t.n(u);let _=e=>{let{title:a,value:t,secondaryValue:s,className:i}=e;return(0,r.jsxs)("div",{className:c()(d().wrap,i),children:[(0,r.jsx)("div",{className:d().title,children:a}),(0,r.jsxs)("div",{className:d().value,children:[(0,r.jsx)("div",{children:t}),s&&(0,r.jsx)("div",{children:s})]})]})};_.propTypes={className:l().string,title:l().string.isRequired,value:l().node.isRequired,secondaryValue:l().node};var m=t(67294),p=t(45007),v=t(89246),h=t.n(v),b=t(56247),y=t(48344),g=t(70012),x=t(99611),N=t(15862),j=t(53208),C=t(46443),f=t(75356);let w=()=>{let e=(0,y.W1)(),a=(0,N.Fm)(),t=(0,p.I0)(),[s,i]=(0,m.useState)(!0),[n,l]=(0,m.useState)(null),[o,c]=(0,m.useState)(""),u=async()=>{let e=()=>{i(!0),t((0,j.YI)("Error occurred while submitting survey!"))};try{let t=await x.Z.submitSurvey({uniqueCompanyId:a.uniqueCompanyId,uniqueSubmissionId:a.uniqueRequestId,surveyRate:n,surveyComment:o});200===t.status?i(!1):e()}catch(a){e()}};return s?(0,r.jsxs)("div",{className:h().wrap,children:[(0,r.jsx)("div",{className:h().title,children:"Survey (Optional)"}),(0,r.jsxs)("div",{className:h().questions_wrap,children:[(0,r.jsx)("div",{className:h().question,children:"How would you rate this request submission process?"}),(0,r.jsx)("div",{className:h().experience_radio_group,children:(0,r.jsxs)("div",{className:h().experience_radio_group,children:[(0,r.jsxs)("div",{className:h().radio_items_wrap,onChange:e=>{l(e.target.value)},children:[(0,r.jsxs)("div",{className:h().radio_item,children:[(0,r.jsx)(b.Z,{id:"customer-experience-1",name:"customer-experience",value:1,themeColor:e}),(0,r.jsx)("label",{htmlFor:"customer-experience-1",children:"1"})]}),(0,r.jsxs)("div",{className:h().radio_item,children:[(0,r.jsx)(b.Z,{id:"customer-experience-2",name:"customer-experience",value:2,themeColor:e}),(0,r.jsx)("label",{htmlFor:"customer-experience-2",children:"2"})]}),(0,r.jsxs)("div",{className:h().radio_item,children:[(0,r.jsx)(b.Z,{id:"customer-experience-3",name:"customer-experience",value:3,themeColor:e}),(0,r.jsx)("label",{htmlFor:"customer-experience-3",children:"3"})]}),(0,r.jsxs)("div",{className:h().radio_item,children:[(0,r.jsx)(b.Z,{id:"customer-experience-4",name:"customer-experience",value:4,themeColor:e}),(0,r.jsx)("label",{htmlFor:"customer-experience-4",children:"4"})]}),(0,r.jsxs)("div",{className:h().radio_item,children:[(0,r.jsx)(b.Z,{id:"customer-experience-5",name:"customer-experience",value:5,themeColor:e}),(0,r.jsx)("label",{htmlFor:"customer-experience-5",children:"5"})]})]}),(0,r.jsxs)("div",{className:h().description,children:[(0,r.jsx)("span",{children:"Very dissatisfied"}),(0,r.jsx)("span",{children:"Very satisfied"})]})]})}),(0,r.jsxs)("div",{className:h().comment_wrap,children:[(0,r.jsx)("label",{children:"Any additional feedback about this request submission process?"}),(0,r.jsx)(f.Z,{minRows:7,maxRows:7,value:o,className:h().text_field,placeholder:"Enter your comment here",onChange:e=>c(e.target.value),containerClassName:h().text_area_container})]}),(0,r.jsx)(g.Z,{transparentBackground:!0,className:h().submit_btn,themeColor:e,onClick:u,disabled:!(n||o.length>0),text:"Submit"})]})]}):(0,r.jsxs)("div",{className:h().wrap,children:[(0,r.jsx)("div",{className:h().title,children:"Survey (Optional)"}),(0,r.jsx)("div",{className:h().questions_wrap,children:(0,r.jsx)(C.Z,{className:h().submit_message,text:"Thank you for your submission!"})})]})};w.propTypes={};var q=t(79934),S=t.n(q),P=t(9117),R=t.n(P);let E={relationshipToVehicle:{label:"What describes you best currently?",dataCy:"current_status"},orderedCharger:{label:"Do you have a charger preference?",dataCy:"ordered-charger",subField:{true:[{label:"Brand and Model Ordered",propertyName:"chargerOrderedBrand",dataCy:"brand_and_model_ordered"}],false:[{label:"Charger Preference",propertyName:"chargerPreference",dataCy:"charger_preference"},{label:"Preferred Brand",propertyName:"chargerPreferenceBrand",dataCy:"charger_preference_brand"}]}},relationshipToProperty:{label:"Do you own, rent or manage this property?",dataCy:"property-ownership",dataFormattingLogic:e=>0===e?"Own":1===e?"Rent":2===e?"Manage":null}
1,utilityProvider:{label:"Who is your utility provider?",dataCy:"utility-provider"},includePermit:{label:"Would you like to include a permit in your quote?",dataCy:"include-permit"},electricalPanelLocation:{label:"What best describes your electrical panel location?",dataCy:"installation-location"},attachedGarage:{label:"Do you have an attached garage?",dataCy:"attached_garage"},wifiAccess:{label:"Is WiFi accessible from your parking spot?",dataCy:"wifi-access"},condoUserType:{label:"What best describes you?",dataCy:"condo-user-type"},approachHoa:{label:"Are you willing to approach HOA or building management?",dataCy:"approach-hoa"},billUserForCharging:{label:"Are you willing to bill users for charging?",dataCy:"bill-user-for-charging"},chargingStationsRequested:{label:"Number of charging stations requested",dataCy:"charging-stations-requested"},nacsAdapterPortsCount:{label:"NACS adapter ports",dataCy:"nacs-adapter-ports-count"},universalAdapterPortsCount:{label:"Universal adapter ports",dataCy:"universal-adapter-ports-count"},commercialPropertyType:{label:"What type of commercial property is this?",dataCy:"commercial-property-type"},knowsChargingNeeds:{label:"Do you know your charging needs?",dataCy:"knows-charging-needs"},chargingType:{label:"What type of charging do you need?",dataCy:"charging-type"},level2NacsPortsCount:{label:"Level 2 NACS ports",dataCy:"level2-nacs-ports-count"},level2J1772PortsCount:{label:"Level 2 J1772 ports",dataCy:"level2-j1772-ports-count"},level3NacsPortsCount:{label:"Level 3 NACS ports",dataCy:"level3-nacs-ports-count"},level3J1772PortsCount:{label:"Level 3 J1772 ports",dataCy:"level3-j1772-ports-count"},ocppProvider:{label:"OCPP provider",dataCy:"ocpp-provider"},knowsElectricalCapacity:{label:"Do you know your electrical capacity?",dataCy:"knows-electrical-capacity"},evIncentivesPlan:{label:"Are you planning to take advantage of EV incentives?",dataCy:"ev-incentives-plan"},projectedBudget:{label:"Projected budget",dataCy:"projected-budget",dataFormattingLogic:e=>e?"$".concat(e.toLocaleString()):e},installationTimeline:{label:"Installation timeline",dataCy:"installation-timeline"}},O=e=>{var a;let{inquiry:t}=e,s={chargerOrderedBrand:t.chargerOrderedBrand,chargerPreferenceBrand:t.chargerPreferenceBrand,chargerPreference:t.chargerPreference};return null===(a=Object.keys(E))||void 0===a?void 0:a.map(e=>{let a=E[e],i=null==a?void 0:a.dataFormattingLogic,n=t[e];if("boolean"==typeof n&&(n=n?"Yes":"No"),i&&(n=i(n)),!n&&0!==n)return null;if(null==a?void 0:a.subField){var l;let i=String(t[e]),o=(null==a?void 0:null===(l=a.subField)||void 0===l?void 0:l[i])||[];return(0,r.jsxs)(m.Fragment,{children:[(0,r.jsxs)("div",{className:R().question_wrap,children:[(0,r.jsx)("span",{className:R().question,children:a.label}),(0,r.jsx)("span",{className:R().answer,children:n})]}),o.map(e=>s[e.propertyName]?(0,r.jsxs)("div",{className:R().question_wrap,children:[(0,r.jsx)("span",{className:R().question,children:e.label}),(0,r.jsx)("span",{className:R().answer,children:s[e.propertyName]})]},e.propertyName):null)]},"question-".concat(e))}return(0,r.jsxs)("div",{className:R().question_wrap,children:[(0,r.jsx)("span",{className:R().question,children:a.label}),(0,r.jsx)("span",{className:R().answer,children:n})]},"answer-".concat(e))})};O.propTypes={};var T=t(44478),k=t(11874),A=()=>{var e,a,t,s,i,n,l;let o=(0,N.Fm)(),c=(0,N.tQ)("savedForLater");if(!o)return null;if(c)return(0,r.jsx)("div",{className:S().wrap,children:(0,r.jsxs)("div",{className:S().content,children:[(0,r.jsx)(T.Z,{illustrationPath:"/form_v2/submit/leader.svg",className:S().illustration}),(0,r.jsx)("p",{"data-cy":"saved-for-later-message",className:S().saved_for_later_message,children:"We saved your info — we will notify you to come back to add photos before your request is submitted."})]})});let u=(0,k.TA)(o.panelCapacity,o.hasAirConditioning);return(0,r.jsx)("div",{className:S().wrap,children:(0,r.jsxs)("div",{className:S().content,children:[(0,r.jsx)(T.Z,{illustrationPath:"/form_v2/submit/leader.svg",className:S().illustration}),(0,r.jsx)(w,{}),(0,r.jsx)(_,{className:S().location_wrap,title:"Location",value:null===(e=o.customer.primaryContact)||void 0===e?void 0:e.address.fullName,secondaryValue:null===(t=o.customer.primaryContact)||void 0===t?void 0:null===(a=t.address)||void 0===a?void 0:a.unitNumber}),(0,r.jsx)(_,{title:"Service",value:o.property}),null!==u&&(0,r.jsx)(_,{title:"Estimated charging capacity",value:"".concat(u," amps")}),(0,r.jsx)(_,{title:"Details",value:(0,r.jsx)(O,{inquiry:o})}),(0,r.jsx)(_,{title:"Pictures",value:"You have provided ".concat(o.photos.length," image(s)")}),(0,r.jsx)(_,{title:"Contact",value:(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{children:[null===(s=o.customer.primaryContact)||void 0===s?void 0:s.firstName," ",null===(i=o.customer.primaryContact)||void 0===i?void 0:i.lastName]}),(0,r.jsx)("div",{children:null===(n=o.customer.primaryContact)||void 0===n?void 0:n.email}),(0,r.jsx)("div",{children:null===(l=o.customer.primaryContact)||void 0===l?void 0:l.phone})]})})]})})},F=t(73502);let I=()=>(0,r.jsx)("div",{className:i().container,children:(0,r.jsx)(A,{})});I.layout=F.y.COMPANY_FORM;var D=I},11874:function(e,a,t){"use strict";t.d(a,{EV:function(){return c},Jk:function(){return l},TA:function(){return o},eZ:function(){return n},i6:function(){return i}});var r=t(59571);let s=[{label:"Not important",value:"NOT_IMPORTANT",weight:0},{label:"Moderately important",value:"MODERATELY_IMPORTANT",weight:1},{label:"Very important",value:"VERY_IMPORTANT",weight:2}],i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,0],a=e.map(e=>{let a=s.find(a=>a.value===e);return a?null==a?void 0:a.weight:0});switch("".concat(a)){case"0,0,0":case"0,1,0":case"0,2,0":case"0,2,1":case"0,2,2":case"1,1,0":case"1,1,1":case"1,2,0":case"1,2,1":case"1,2,2":case"2,2,0":case"2,2,1":case"2,2,2":default:return"COST";case"0,0,1":case"0,0,2":case"0,1,2":case"1,0,2":case"1,1,2":return"FUTURE_PROOFING";case"1,0,0":case"1,0,1":case"2,0,0":case"2,0,1":case"2,0,2":case"2,1,0":case"2,1,1":case"2,1,2":return"CHARGING_SPEED"}},n=(e,a)=>a<=23?["COST","CHARGING_SPEED"].includes(e)?[4,5]:[5,4]:a<=39?"COST"===e?[1,4,5]:"CHARGING_SPEED"===e?[4,1,5]:[5,1,4]:a<=47?"COST"===e?[2,4,5]:"CHARGING_SPEED"===e?[4,2,5]:[5,2,4]:[3],l=(e,a,t,s)=>e===r.nu.BELOW_1500?s?[4,5]:[1,4,5]:e===r.nu.BETWEEN_1500_2500?s?[1,4,5]:[2,4,5]:(r.nu.OVER_2500,[3]),o=(e,a)=>e===r.Is[100]?a?0:24:e===r.Is[125]?a?24:40:e===r.Is[200]?48:null,c=(e,a)=>
1{let t=o(e,a);return"number"!=typeof t?null:t<24?"50-100":t<=39?"100":t<=47?"150":"200"}},38206:function(e){e.exports={button:"FormButton_button__bjF2i",transparent_theme_color_button:"FormButton_transparent_theme_color_button__uHJ9x",disabled:"FormButton_disabled__joXeN"}},99905:function(e){e.exports={container:"Illustration_container__5qG4v",illustration_img:"Illustration_illustration_img__D765m",illustration_overlay:"Illustration_illustration_overlay__QXbfa"}},84248:function(e){e.exports={wrap:"RequestDetailWrap_wrap__ORYMA",title:"RequestDetailWrap_title__B7zmZ",value:"RequestDetailWrap_value__bDEki"}},9117:function(e){e.exports={question_wrap:"RequestDetails_question_wrap__VDuFM",question:"RequestDetails_question__Ws2yQ",answer:"RequestDetails_answer__WEwfq"}},89246:function(e){e.exports={wrap:"Survey_wrap__gKcj_",title:"Survey_title__Shugi",questions_wrap:"Survey_questions_wrap__VCBRw",submit_message:"Survey_submit_message__BAqRD",experience_radio_group:"Survey_experience_radio_group__VjWSN",radio_items_wrap:"Survey_radio_items_wrap__xI2ry",description:"Survey_description__gE_me",text_field:"Survey_text_field__bVQc_",text_area_container:"Survey_text_area_container__nE6U8",radio_item:"Survey_radio_item__RhEfu",comment_wrap:"Survey_comment_wrap__twJN5",submit_btn:"Survey_submit_btn__N1__R"}},79934:function(e){e.exports={wrap:"SubmitV2_wrap__UyOva",content:"SubmitV2_content__WBqP1",illustration:"SubmitV2_illustration__XOtiI",location_wrap:"SubmitV2_location_wrap__pRLfv",saved_for_later_message:"SubmitV2_saved_for_later_message__t4vbp"}},63154:function(e){e.exports={container:"submit_container__HKESW",header_wrapper:"submit_header_wrapper__DDRQe",header_image:"submit_header_image__ZlzRV",submit_page_wrap:"submit_submit_page_wrap__n5BN_",submit_page_content:"submit_submit_page_content__q3_up",submit_hero_wrapper:"submit_submit_hero_wrapper__VgP76",submit_message_hero:"submit_submit_message_hero__8VKRx",submit_message_wrapper:"submit_submit_message_wrapper__tYbWC",submit_checkmark:"submit_submit_checkmark__X9Df7",submit_message:"submit_submit_message__x9vhl",submit_title:"submit_submit_title__6N4j3",submit_detail:"submit_submit_detail__vWhbN"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=52808)}),_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.