1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2253],{90788:function(e,t,n){var r=n(7653);let a=r.forwardRef(function(e,t){let{title:n,titleId:a,...i}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},i),n?r.createElement("title",{id:a},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z"}))});t.Z=a},52253:function(e,t,n){n.r(t),n.d(t,{UpdatePhoneScreen:function(){return d},UpdatePhoneScreenView:function(){return s},default:function(){return d}});var r=n(27573),a=n(90788),i=n(7653),o=n(48248),u=n(88089),l=n(36170),c=n(68150);n(69021),n(26996),n(97347);let s=({title:e="Update your phone number",subtitle:t="Add the phone number you'd like to use going forward. We'll send you a confirmation code",onSubmit:n,isSubmitting:u=!1})=>{let[l,s]=(0,i.useState)(null);return(0,r.jsx)(c.S,{title:e,subtitle:t,icon:a.Z,primaryCta:{label:u?"Submitting":"Update",onClick:async()=>{l?.qualifiedPhoneNumber&&await n(l)},disabled:!l?.isValid||u},watermark:!0,children:(0,r.jsx)(o.C,{onChange:e=>{s(e)},onSubmit:async()=>{},noIncludeSubmitButton:!0,hideRecent:!0})})},d={component:()=>{let{currentScreen:e,data:t,navigate:n,setModalData:a}=(0,l.a)(),{user:o}=(0,l.u)(),{initUpdatePhone:c}=(0,u.u)(),[d,h]=(0,i.useState)(!1);return(0,r.jsx)(s,{onSubmit:async r=>{h(!0);try{if(!o?.phone?.number)throw Error("User is required to have an phone number to update it.");await c(o?.phone?.number,r.qualifiedPhoneNumber),n("AwaitingPasswordlessCodeScreen")}catch(r){a({errorModalData:{error:r,previousScreen:t?.errorModalData?.previousScreen||e||"LinkPhoneScreen"}}),n("ErrorScreen")}finally{h(!1)}},isSubmitting:d})}}}}]);
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.