1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[469],{3385:(a,e,i)=>{"use strict";i.d(e,{Bk:()=>o,le:()=>b,pz:()=>r});var n=i(65685),t=i(65162),o=()=>"u">typeof window,r=[{name:"Alabama",abbreviation:"AL"},{name:"Alaska",abbreviation:"AK"},{name:"American Samoa",abbreviation:"AS"},{name:"Arizona",abbreviation:"AZ"},{name:"Arkansas",abbreviation:"AR"},{name:"California",abbreviation:"CA"},{name:"Colorado",abbreviation:"CO"},{name:"Connecticut",abbreviation:"CT"},{name:"Delaware",abbreviation:"DE"},{name:"District Of Columbia",abbreviation:"DC"},{name:"Federated States Of Micronesia",abbreviation:"FM"},{name:"Florida",abbreviation:"FL"},{name:"Georgia",abbreviation:"GA"},{name:"Guam",abbreviation:"GU"},{name:"Hawaii",abbreviation:"HI"},{name:"Idaho",abbreviation:"ID"},{name:"Illinois",abbreviation:"IL"},{name:"Indiana",abbreviation:"IN"},{name:"Iowa",abbreviation:"IA"},{name:"Kansas",abbreviation:"KS"},{name:"Kentucky",abbreviation:"KY"},{name:"Louisiana",abbreviation:"LA"},{name:"Maine",abbreviation:"ME"},{name:"Marshall Islands",abbreviation:"MH"},{name:"Maryland",abbreviation:"MD"},{name:"Massachusetts",abbreviation:"MA"},{name:"Michigan",abbreviation:"MI"},{name:"Minnesota",abbreviation:"MN"},{name:"Mississippi",abbreviation:"MS"},{name:"Missouri",abbreviation:"MO"},{name:"Montana",abbreviation:"MT"},{name:"Nebraska",abbreviation:"NE"},{name:"Nevada",abbreviation:"NV"},{name:"New Hampshire",abbreviation:"NH"},{name:"New Jersey",abbreviation:"NJ"},{name:"New Mexico",abbreviation:"NM"},{name:"New York",abbreviation:"NY"},{name:"North Carolina",abbreviation:"NC"},{name:"North Dakota",abbreviation:"ND"},{name:"Northern Mariana Islands",abbreviation:"MP"},{name:"Ohio",abbreviation:"OH"},{name:"Oklahoma",abbreviation:"OK"},{name:"Oregon",abbreviation:"OR"},{name:"Palau",abbreviation:"PW"},{name:"Pennsylvania",abbreviation:"PA"},{name:"Puerto Rico",abbreviation:"PR"},{name:"Rhode Island",abbreviation:"RI"},{name:"South Carolina",abbreviation:"SC"},{name:"South Dakota",abbreviation:"SD"},{name:"Tennessee",abbreviation:"TN"},{name:"Texas",abbreviation:"TX"},{name:"Utah",abbreviation:"UT"},{name:"Vermont",abbreviation:"VT"},{name:"Virgin Islands",abbreviation:"VI"},{name:"Virginia",abbreviation:"VA"},{name:"Washington",abbreviation:"WA"},{name:"West Virginia",abbreviation:"WV"},{name:"Wisconsin",abbreviation:"WI"},{name:"Wyoming",abbreviation:"WY"}],b=()=>{let[a,e]=(0,t.useState)(null),i=(0,n.useMediaQuery)(a=>a.breakpoints.down("sm")),o=(0,n.useMediaQuery)(a=>a.breakpoints.down("md")),r=(0,n.useMediaQuery)(a=>a.breakpoints.up("md")),b=(0,n.useMediaQuery)(a=>a.breakpoints.up("lg"));return(0,t.useEffect)(()=>{b?e("LARGE_SCREEN"):r?e("SMALL_SCREEN"):o?e("TABLET"):i&&e("MOBILE")},[i,o,r,b]),{isMobile:i,isTablet:o,isSmallScreen:r,isLargeScreen:b,breakpoint:a}}},5525:(a,e,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/oauth-redirect/enphase",function(){return i(30515)}])},30515:(a,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>d});var n=i(96833),t=i(3385),o=i(30423);let r=(0,o.J1)` 2 mutation CompleteDeviceAuthFlow($input: CompleteAuthFlowInput!) { 3 completeAuthFlowForSmartFlexOnboarding(input: $input) { 4 wizard { 5 id 6 currentStep { 7 id 8 __typename 9 ... on SelectFromList { 10 options { 11 id 12 __typename 13 ... on SelectDeviceTypeListItem { 14 label 15 } 16 ... on SelectInverterMakeListItem { 17 inverterMake { 18 make 19 } 20 } 21 ... on SelectChargePointMakeListItem { 22 chargePointMake { 23 make 24 } 25 } 26 ... on SelectChargePointVariantListItem { 27 chargePointVariant { 28 models { 29 model 30 powerInKw 31 } 32 } 33 } 34 } 35 } 36 ... on AuthFlow { 37 authorizationUri 38 redirectUri 39 } 40 ... on TestCharge { 41 isReady 42 status 43 } 44 ... on UserActionRequired { 45 userActions { 46 userAction 47 description 48 uri 49 } 50 } 51 } 52 } 53 } 54 } 55`;r.loc?.source.body;let b=(0,n.jO)(r);var s=i(77171),m=i(37657),l=i(37656),u=i(34334),v=i(65162);let d=()=>{let a=(0,u.useRouter)(),e=(0,t.Bk)()?(0,m.c4)():"",i=(0,t.Bk)()?(0,l.q_)():null,o=i?.stepId,r=i?.wizardId,d=(0,t.Bk)()?window.location.href:"",[c]=b(),[w]=(0,s.uk)(),p=async()=>{o&&r&&await c({variables:{input:{continuationUri:d,stepId:o,wizardId:r}},context:{clientName:n.qc,headers:{authorization:e}},onCompleted:()=>{a.replace({pathname:"/device-onboarding",query:{onboardingComplete:"true"}})},onError:()=>{w.error("Sorry, we are unable to connect your device.")}})};(0,v.useEffect)(()=>{p()},[o,r])}},37656:(a,e,i)=>{"use strict";i.d(e,{a4:()=>o,q_:()=>r});let n="stepId",t="wizardId",o=(a,e)=>{window.localStorage.setItem(n,a),window.localStorage.setItem(t,e)},r=()=>({stepId:window.localStorage.getItem(n),wizardId:window.localStorage.getItem(t)})},37657:(a,e,i)=>{"use strict";i.d(e,{O5:()=>r,c4:()=>
55o,m5:()=>s,sE:()=>b});let n="authToken",t="userDetails",o=()=>window.localStorage.getItem(n)||"",r=a=>{window.localStorage.setItem(n,a)},b=()=>{let a=window.localStorage.getItem(t);return a?JSON.parse(a):null},s=a=>{window.localStorage.setItem(t,JSON.stringify(a))}},77171:(a,e,i)=>{"use strict";i.d(e,{uk:()=>n.uk});var n=i(95877)}},a=>{a.O(0,[423,636,593,792],()=>a(a.s=5525)),_N_E=a.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.