1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[393],{83778:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/[id]/secure-verify",function(){return n(93668)}])},93668:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return p},customerServicePort:function(){return w},customerServiceUri:function(){return h},default:function(){return y}});var r=n(47568),i=n(97582),o=n(85893),a=n(18351),c=n(67294),u=n(58933),s=n(81290),f=n(51438),l=n(87862),d=new(function(){function e(){(0,f.Z)(this,e),this.secureIdPageView="xPage View",this.idVerificationButtonClick="xIdVerificationButtonClick"}var t=e.prototype;return t.pageViewEvent=function(e,t,n,o,a){var c=this;return(0,r.Z)((function(){var r;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return r={name:"SECURE_ID_PAGE_VIEW",type:"pageview",data:{section:"page",format:"pageview",navigate:{currentUrl:"".concat(e).concat(t),type:"internal"}},mixpanel:{eventName:c.secureIdPageView,properties:{"Page Type":n,pathName:e,searchUrl:t,VerificationID:o,"Stripe Verification Status":a}}},[4,(0,l.Kz)(r)];case 1:return i.sent(),[2,!0]}}))}))()},t.verificationBtnClick=function(e){var t=this;return(0,r.Z)((function(){var n;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return n={name:"ID_VERIFICATION_BTN_CLICK",type:"button",data:{section:"secure-id-page",format:"click"},mixpanel:{eventName:t.idVerificationButtonClick,properties:{"Verification ID":e}}},[4,(0,l.Kz)(n)];case 1:return r.sent(),[2,!0]}}))}))()},e}()),v=n(52758),_=n.n(v),m=n(83454),p=!0,h="https://customer-service.dozr.com",w=m.env.CUSTOMER_SERVICE_PORT,g=function(e){return e?{tooManyAttempts:"Too Many Attempts",provided:"Provided",unverified:"Start"}[e]:"Error"},y=function(e){var t=(0,c.useState)(e.verificationStatus),n=t[0],f=t[1];(0,c.useEffect)((function(){var t=g(n),r="Id Verification ".concat(t);d.pageViewEvent(location.pathname,location.search,r,e.customerId,n)}),[e.customerId,n]);var l=g(n),v=function(){var t=(0,r.Z)((function(){var t,n,r,o,a,c;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if("Start"!==l&&"Provided"!==l)return[3,6];t=e.email,n=e.customerId,i.label=1;case 1:return i.trys.push([1,4,,5]),r=encodeURI("".concat(h,"/customers/").concat(n,"/verifications")),[4,fetch(r,{method:"POST",headers:(0,u.Z)()})];case 2:if(!(o=i.sent()).ok)throw new Error("Failed to get customer verifications");return[4,o.json()];case 3:return(a=i.sent()).verificationLink?(v=a.verificationLink,window.location.href=v,s.G.identifyCall({email:t}),d.verificationBtnClick(n),[3,5]):(console.log("No verification link found"),f("error"),[2]);case 4:return c=i.sent(),console.log("Could not get customer verification link : ".concat(c)),f("error"),[3,5];case 5:case 6:return[2]}var v}))}));return function(){return t.apply(this,arguments)}}();return(0,o.jsx)("div",{className:_().secureVerify_container,children:(0,o.jsx)("div",{className:_().secureVerify_container__view_container,children:(0,o.jsx)(a.K_,{state:l,onClick:v})})})}},81290:function(e,t,n){"use strict";n.d(t,{G:function(){return c}});var r=n(47568),i=n(51438),o=n(97582),a=n(87862),c=new(function(){function e(){(0,i.Z)(this,e),this.xLead="xLead",this.identify="$identify"}var t=e.prototype;return t.lead=function(e){var t=e.email,n=e.adPlacement,i=e.currentUrl,c=e.phoneNumber,u=this;return(0,r.Z)((function(){var e,r,s,f,l,d,v,_,m,p,h,w;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return l=new URL(null===window||void 0===window||null===(e=window.location)||void 0===e?void 0:e.href),v=null!==(d=null===l||void 0===l||null===(r=l.searchParams)||void 0===r?void 0:r.get("utm_campaign"))&&void 0!==d?d:void 0,m=null!==(_=null===l||void 0===l||null===(s=l.searchParams)||void 0===s?void 0:s.get("utm_source"))&&void 0!==_?_:void 0,h=null!==(p=null===l||void 0===l||null===(f=l.searchParams)||void 0===f?void 0:f.get("utm_medium"))&&void 0!==p?p:void 0,w={name:"LEAD_SUBMIT",type:"action",data:{category:"lead form",format:"action",section:"DOZR.com"},mixpanel:{eventName:u.xLead,properties:{"Ad Placement":n,Email:t,"Phone Number":c,"Current URL":i,"UTM Campaign":v,"UTM Source":m,"UTM Medium":h}}},[4,(0,a.Kz)(w)];case 1:return o.sent(),[2,!0]}}))}))()},t.identifyCall=function(e){var t=this;return(0,r.Z)((function(){var n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return n={name:"IDENTIFY_CALL_MIXPANEL",type:"action",data:{category:"search page",format:"action",section:"DOZR.com"},mixpanel:{eventName:t.identify,peopleSettings:e}},[4,(0,a.Kz)(n)];case 1:return r.sent(),[2,!0]}}))}))()},e}())},52758:function(e){e.exports={secureVerify_container:"secureVerify_secureVerify_container__vi_Jv",secureVerify_container__view_container:"secureVerify_secureVerify_container__view_container__UVI4F"}}},function(e){e.O(0,[9774,2888,179],(function(){return t=83778,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.