1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[50715],{13005:(e,t,o)=>{o.d(t,{CR:()=>x,NG:()=>u,X:()=>m,_3:()=>w,fs:()=>f,vv:()=>y,xL:()=>g,xb:()=>h});var n=o(14232),r=o(56217);let a="telnyx.softphoneAlive",s="telnyx.softphoneOpen",i="telnyx.softphoneRinging",l=e=>{try{return"undefined"==typeof BroadcastChannel?null:new BroadcastChannel(e)}catch(e){return null}},d=e=>{try{return Number(localStorage.getItem(e))||0}catch(e){return 0}},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7e3;return e>0&&Date.now()-e<t},p=e=>{let t=l(e),o=()=>{let o=Date.now();try{localStorage.setItem(e,String(o))}catch(e){}null==t||t.postMessage(o)};o();let n=(0,r.t)(2e3,o),a=()=>{n();try{localStorage.removeItem(e)}catch(e){}null==t||t.postMessage(0),null==t||t.close()};return window.addEventListener("pagehide",a),()=>{window.removeEventListener("pagehide",a),a()}},f=()=>p(a),u=()=>p(s),h=()=>c(d(s),9e4),g=()=>{try{localStorage.removeItem(s)}catch(e){}},m=e=>{let t=l(i),o=()=>{let o=JSON.stringify({...e,ts:Date.now()});try{localStorage.setItem(i,o)}catch(e){}null==t||t.postMessage(o)};o();let n=window.setInterval(o,2e3),r=()=>{window.clearInterval(n);try{localStorage.removeItem(i)}catch(e){}null==t||t.postMessage(""),null==t||t.close()};return window.addEventListener("pagehide",r),()=>{window.removeEventListener("pagehide",r),r()}},w=()=>{let[e,t]=(0,n.useState)("");return(0,n.useEffect)(()=>{let e=()=>t((()=>{try{let e=localStorage.getItem(i);if(!e)return"";let t=JSON.parse(e);return c(Number(null==t?void 0:t.ts)||0)?e:""}catch(e){return""}})());e();let o=l(i);o&&(o.onmessage=e),window.addEventListener("storage",e);let n=window.setInterval(e,2e3);return()=>{window.removeEventListener("storage",e),window.clearInterval(n),null==o||o.close()}},[]),(0,n.useMemo)(()=>{if(!e)return null;try{let{from:t,name:o,emergency:n}=JSON.parse(e);return{from:String(t||""),name:o,emergency:!!n}}catch(e){return null}},[e])},v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7e3,[o,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let o=()=>r(c(d(e),t));o();let n=l(e);n&&(n.onmessage=o),window.addEventListener("storage",o);let a=window.setInterval(o,2e3);return()=>{window.removeEventListener("storage",o),window.clearInterval(a),null==n||n.close()}},[e,t]),o},y=()=>v(a),x=(e,t)=>{let o="telnyx.claim.".concat(e);try{let e=Number(localStorage.getItem(o))||0;if(Date.now()-e<t)return!1;return localStorage.setItem(o,String(Date.now())),!0}catch(e){return!0}}},20299:(e,t,o)=>{o.d(t,{$G:()=>j,Fd:()=>x,GC:()=>k,Ms:()=>g,TV:()=>y,Uc:()=>b,WK:()=>C,_:()=>d,fk:()=>l,iQ:()=>w,l7:()=>S,m4:()=>v});let n=(()=>{try{return crypto.randomUUID().slice(0,8)}catch(e){return Math.random().toString(36).slice(2,10)}})(),r=Date.now(),a=0,s=null,i=()=>({}),l=e=>{i=e},d=n,c=e=>{if(!e)return"";if(e instanceof Error)return e.message;if("string"==typeof e)return e;try{return JSON.stringify(e).slice(0,800)}catch(t){return String(e)}},p="telnyx.softphoneTrace",f="telnyx.softphoneSession",u=[],h=!1,g=e=>{if(h=e,e)try{localStorage.setItem(f,JSON.stringify({id:n,ts:Date.now()}))}catch(e){}},m=/^(softphone\.(socket|error|call_(state|cause|cause_code|sip_code|sip_reason|id|direction)|register\.outcome|reconnect\.(why|trigger|attempt|delay_ms)|dispose\.(had_call|after)|farend\.(status|http_status)|rtc_state|ready_uptime_s|http_status|dial\.error|diag\.wss_(how|ms|close_code)|visibility_now|network\.event|notification\.type|sdk_(connected|reconnect_attempts|intentional_close))|error)$/,w=()=>{if(h)return{session:n,ownWindow:!0,events:[...u]};try{let e=localStorage.getItem(p);if(e){let t=JSON.parse(e);if((null==t?void 0:t.session)&&Array.isArray(t.events))return{session:t.session,ownWindow:!1,events:t.events}}let t=localStorage.getItem(f);if(t)return{session:JSON.parse(t).id,ownWindow:!1,events:[]}}catch(e){}return{session:n,ownWindow:!0,events:[...u]}},v=e=>"https://ui.honeycomb.io/anywhere/environments/prod/datasets/frontend?query=".concat(encodeURIComponent(JSON.stringify({calculations:[{op:"COUNT"}],filters:[{column:"softphone.session_id",op:"=",value:e}],breakdowns:["name","softphone.socket.code","softphone.socket.reason","softphone.call_cause"],time_range:172800}))),y=function(e){var t,i;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=Date.now(),g=null!=(t=d.startTime)?t:f,w=null!=(i=d.endTime)?i:f,v=(e=>{let t={};for(let[o,n]of Object.entries(e))null!=n&&("string"==typeof n?t[o]=n.length>800?"".concat(n.slice(0,800),"â¦"):n:"number"==typeof n?t[o]=Number.isFinite(n)?n:String(n):t[o]=n);return t})({...{"softphone.session_id":n,"softphone.seq":a+=1,"softphone.since_load_s":Math.round((Date.now()-r)/1e3),"softphone.visibility":"undefined"!=typeof document?document.visibilityState:void 0,"softphone.online":"undefined"!=typeof navigator?navigator.onLine:void 0},..._(),...l});(d.error||d.exception)&&(v.error=!0),d.exception&&(v["exception.message"]=c(d.exception));let y={};for(let[e,t]of Object.entries(v))m.test(e)&&(y[e]=t);if(u.push({ts:Date.now(),name:e,attrs:y}),u.length>60&&u.splice(0,u.length-60),h)try{localStorage.setItem(p,JSON.stringify({session:n,events:u}))}catch(e){}(!s&&(s=o.e(71967).then(o.bind(o,71967)).then(e=>{let{trace:t,SpanStatusCode:o}=e;return{tracer:t.getTracer("softphone"),ErrorCode:o.ERROR}}).catch(()=>null)),s).then(t=>{let o;if(t)try{o=t.tracer.startSpan(e,{attributes:v,startTime:g}),d.exception&&(o.setAttribute("exception.message",c(d.exception)),d.exception instanceof Error&&o.recordException(d.exception)),(d.error||d.exception)&&(o.setAttribute("error",!0),o.setStatus({code:t.ErrorCode})),o.end(w)}catch(e){}})},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Date.now(),n={...t},r=!1;return{startedAt:o,end:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r||(r=!0,y(e,{...n,...t,"softphone.duration_ms":Date.now()-o},{...a,startTime:o,endTime:Date.now()}))}}},_=()=>{try{return i()}catch(e){return{}}},b=e=>{var t,o,n;let r=null!=(t=null==e?void 0:e.error)?t:e;return{"softphone.error.code":null!=(o=null==r?void 0:r.code)?o:null==e?void 0:e.code,"softphone.error.name":null==r?void 0:r.name,"softphone.error.message":null!=(n=null==r?void 0:r.message)?n:c(r),"softphone.error.description":"string"==typeof(null==r?void 0:r.description)?r.description:void 0,"softphone.error.fatal":"boolean"==typeof(null==r?void 0:r.fatal)?r.fatal:void 0,"softphone.error.reason":"string"==typeof(null==e?void 0:e.reason)?e.reason:void 0,"softphone.error.source":"string"==typeof(null==e?void 0:e.source)?e.source:void 0}},S=e=>{var t;let o=null!=(t=null==e?void 0:e.event)?t:e;return{"softphone.socket.code":null==o?void 0:o.code,"softphone.socket.reason":null==o?void 0:o.reason,"softphone.socket.was_clean":"boolean"==typeof(null==o?void 0:o.wasClean)?o.wasClean:void 0,"softphone.socket.generation":null==e?void 0:e.socketGeneration,"softphone.socket.sdk_synthesised":(null==e||!e.event)&&((null==e?void 0:e.code)!==void 0||void 0)}},j=e=>e?{"softphone.sdk_present":!0,"softphone.sdk_connected":"boolean"==typeof e.connected?e.connected:void 0,"softphone.sdk_re
1connect_attempts":"number"==typeof e._reconnectAttempts?e._reconnectAttempts:void 0,"softphone.sdk_auto_reconnect":"boolean"==typeof e._autoReconnect?e._autoReconnect:void 0,"softphone.sdk_intentional_close":"boolean"==typeof e._intentionalClose?e._intentionalClose:void 0,"softphone.sdk_calls":e.calls?Object.keys(e.calls).length:void 0,"softphone.sdk_region":"string"==typeof e.region?e.region:void 0,"softphone.sdk_dc":"string"==typeof e.dc?e.dc:void 0}:{"softphone.sdk_present":!1},k=e=>{var t,o,n;if(!e)return{};let r=e.telnyxIDs||{};return{"softphone.call_id":e.id,"softphone.call_state":e.state,"softphone.call_prev_state":e.prevState,"softphone.call_direction":e.direction,"softphone.call_control_id":r.telnyxCallControlId||(null==(t=e.options)?void 0:t.telnyxCallControlId),"softphone.call_leg_id":r.telnyxLegId||(null==(o=e.options)?void 0:o.telnyxLegId),"softphone.call_session_id":r.telnyxSessionId||(null==(n=e.options)?void 0:n.telnyxSessionId),"softphone.call_cause":e.cause,"softphone.call_cause_code":e.causeCode,"softphone.call_sip_code":e.sipCode,"softphone.call_sip_reason":e.sipReason,"softphone.call_recovered_from":e.recoveredCallId||void 0}},C=async e=>{let t;if(!e)return{};let o={"softphone.pc.connection_state":e.connectionState,"softphone.pc.ice_state":e.iceConnectionState,"softphone.pc.signaling_state":e.signalingState};try{t=await e.getStats()}catch(e){return o}let n=new Map;return t.forEach(e=>n.set(e.id,e)),t.forEach(e=>{if("inbound-rtp"===e.type&&("audio"===e.kind||"audio"===e.mediaType))o["softphone.rtp.in.packets"]=e.packetsReceived,o["softphone.rtp.in.lost"]=e.packetsLost,o["softphone.rtp.in.jitter_ms"]="number"==typeof e.jitter?Math.round(1e3*e.jitter):void 0,o["softphone.rtp.in.bytes"]=e.bytesReceived,o["softphone.rtp.in.concealed"]=e.concealedSamples,o["softphone.rtp.in.audio_level"]="number"==typeof e.audioLevel?Math.round(1e3*e.audioLevel)/1e3:void 0;else if("outbound-rtp"===e.type&&("audio"===e.kind||"audio"===e.mediaType))o["softphone.rtp.out.packets"]=e.packetsSent,o["softphone.rtp.out.bytes"]=e.bytesSent;else if("remote-inbound-rtp"===e.type)o["softphone.rtp.remote.lost"]=e.packetsLost,o["softphone.rtp.remote.rtt_ms"]="number"==typeof e.roundTripTime?Math.round(1e3*e.roundTripTime):void 0,o["softphone.rtp.remote.jitter_ms"]="number"==typeof e.jitter?Math.round(1e3*e.jitter):void 0;else if("candidate-pair"===e.type&&(e.nominated||e.selected)&&"succeeded"===e.state){o["softphone.pair.rtt_ms"]="number"==typeof e.currentRoundTripTime?Math.round(1e3*e.currentRoundTripTime):void 0,o["softphone.pair.out_bitrate"]=e.availableOutgoingBitrate,o["softphone.pair.requests_sent"]=e.requestsSent,o["softphone.pair.responses_received"]=e.responsesReceived;let t=n.get(e.localCandidateId),r=n.get(e.remoteCandidateId);o["softphone.pair.local_type"]=null==t?void 0:t.candidateType,o["softphone.pair.remote_type"]=null==r?void 0:r.candidateType,o["softphone.pair.protocol"]=null==t?void 0:t.protocol,o["softphone.pair.relay_protocol"]=null==t?void 0:t.relayProtocol,o["softphone.pair.network_type"]=null==t?void 0:t.networkType}}),o}},22750:(e,t,o)=>{o.d(t,{A:()=>l});var n=o(37876),r=o(14232),a=o(77864),s=o(90136),i=o(24237);let l=e=>{let{}=e;return(0,n.jsx)(s.lG,{open:!0,children:(0,n.jsxs)(s.Cf,{className:"text-green-06 max-w-[450px]",showCloseButton:!1,children:[(0,n.jsxs)(s.c7,{children:[(0,n.jsx)(i.Z,{className:"mx-auto mb-2.5"}),(0,n.jsx)(s.L3,{asChild:!0,children:(0,n.jsx)("h1",{className:"!text-4xl xl:!text-5xl text-center mx-auto text-balance",children:"Sign In"})}),(0,n.jsx)(s.rr,{className:"xl:text-body-large text-center text-balance",children:"Sign In to your Anywhere.com account to access this information."})]}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,n.jsx)(r.Suspense,{fallback:null,children:(0,n.jsx)(a.AuthSignInForm,{onSuccess:()=>{window.location.reload()}})})})]})})}},24237:(e,t,o)=>{o.d(t,{Z:()=>r});var n=o(37876);let r=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"50",viewBox:"0 0 45 50",fill:"none",...e,children:(0,n.jsx)("path",{d:"M45 21.9128C45 9.80945 34.9273 0 22.5009 0C10.0746 0 0 9.80945 0 21.9128C0 30.0403 4.54346 37.
11345 11.2937 40.9179L8.80472 49.4045C8.71629 49.7032 8.9477 50.0018 9.26753 50.0018H15.8334C16.0517 50.0018 16.2436 49.8589 16.2981 49.6537L18.0816 43.4023C19.3309 43.6442 20.6177 43.7871 21.9328 43.8182C22.1209 43.8237 22.3109 43.8256 22.5009 43.8256C24.0342 43.8256 25.5318 43.6753 26.9804 43.3914L28.7828 49.6574C28.8392 49.8608 29.0292 50.0018 29.2475 50.0018H35.7645C36.0843 50.0018 36.3157 49.705 36.2273 49.4045L33.7458 40.9033V40.8978C40.4735 37.1107 45.0019 30.0275 45.0019 21.9128H45ZM22.2225 38.7926L18.7006 41.2239L22.5122 27.871L26.3558 41.2312L22.7756 38.7926C22.6082 38.679 22.3862 38.679 22.2206 38.7926H22.2225ZM31.6725 33.8073L26.0322 14.4833C25.9739 14.2818 25.7839 14.1425 25.5694 14.1425H19.5115C19.297 14.1425 19.107 14.2818 19.0487 14.4833L13.3726 33.8311V33.8402C9.64004 31.1268 7.2225 26.7955 7.2225 21.9128C7.2225 13.6955 14.0631 7.03371 22.5009 7.03371C30.9388 7.03371 37.7794 13.6955 37.7794 21.9128C37.7794 26.7772 35.3807 31.0938 31.6744 33.8091L31.6725 33.8073Z",fill:"#003F2E"})})},38008:(e,t,o)=>{o.d(t,{Fv:()=>d,Lm:()=>h,P8:()=>p});var n=o(13005),r=o(56070),a=o(20299);
1let s="/admin/v2/softphone",i="telnyx.softphoneBus",l=e=>{try{if("undefined"==typeof BroadcastChannel)return;let t=new BroadcastChannel(i);t.postMessage(e),t.close()}catch(e){}},d=e=>{let t;if("undefined"==typeof BroadcastChannel)return()=>{};try{t=new BroadcastChannel(i)}catch(e){return()=>{}}return t.onmessage=o=>{let n=o.data;if((null==n?void 0:n.type)==="softphone:ping"){try{t.postMessage({type:"softphone:pong"})}catch(e){}return}(null==n?void 0:n.type)==="softphone:dial"&&"string"==typeof n.to&&e(n.to),((null==n?void 0:n.type)==="softphone:focus"||(null==n?void 0:n.type)==="softphone:dial")&&((0,a.TV)("softphone.raise.received",{"softphone.raise.type":n.type,"softphone.raise.has_focus":document.hasFocus()}),(0,r.$N)())},()=>t.close()},c=null,p=e=>{if(h()){e&&l({type:"softphone:dial",to:e});return}let t=(0,n.xb)(),o=!!(c&&!c.closed);if((0,a.TV)("softphone.raise.request",{"softphone.raise.mark_open":t,"softphone.raise.own_window":o,"softphone.raise.prefill":!!e}),t){if(l(e?{type:"softphone:dial",to:e}:{type:"softphone:focus"}),c&&!c.closed)try{c.focus()}catch(e){}f(t=>{(0,a.TV)("softphone.raise.ping",{"softphone.raise.answered":t}),t||((0,n.xL)(),u(e,"ping_unanswered"))});return}if(!(0,n.CR)("softphone-open",5e3)){e&&(e=>{let t=Date.now()+8e3,o=()=>{if((0,n.xb)())return void l({type:"softphone:dial",to:e});Date.now()<t&&window.setTimeout(o,250)};window.setTimeout(o,250)})(e),(0,a.TV)("softphone.raise.deferred",{"softphone.raise.reason":"claimed_elsewhere"});return}u(e,"no_window")},f=e=>{let t;if("undefined"==typeof BroadcastChannel)return e(!0);try{t=new BroadcastChannel(i)}catch(t){return e(!0)}let o=!1,n=n=>{if(!o){o=!0;try{t.close()}catch(e){}e(n)}},r=window.setTimeout(()=>n(!1),700);t.onmessage=e=>{var t;(null==(t=e.data)?void 0:t.type)==="softphone:pong"&&(window.clearTimeout(r),n(!0))},t.postMessage({type:"softphone:ping"})},u=function(e){var t,o;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"no_window",r=e?"?to=".concat(encodeURIComponent(e)):"",i=Math.round((null!=(t=window.screenX)?t:0)+Math.max(0,((window.outerWidth||450)-450)/2)),l=Math.round((null!=(o=window.screenY)?o:0)+Math.max(0,((window.outerHeight||700)-700)/3)),d=["popup=yes","width=".concat(450),"height=".concat(700),"left=".concat(i),"top=".concat(l),"menubar=no,toolbar=no,location=no,status=no,directories=no,resizable=yes,scrollbars=yes"].join(),p=window.open("".concat(s).concat(r),"anywhereSoftphone",d);if((0,a.TV)("softphone.raise.open_window",{"softphone.raise.reason":n,"softphone.raise.blocked":!p}),p){c=p;try{e&&p.postMessage({type:"softphone:dial",to:e},window.location.origin),p.focus()}catch(e){}}},h=()=>window.location.pathname.startsWith(s)},56070:(e,t,o)=>{o.d(t,{$N:()=>m,QR:()=>g,Sj:()=>u,Yp:()=>h,bR:()=>l,fF:()=>d,sV:()=>f});var n=o(20299);let r="softphone-ring",a="softphone-focus",s=()=>"serviceWorker"in navigator&&"undefined"!=typeof Notification,i=null,l=()=>s()?(i||(i=navigator.serviceWorker.register("/softphone-sw.js",{scope:"/"}).then(()=>navigator.serviceWorker.ready).catch(()=>null)),i):Promise.resolve(null),d=async()=>{if(!s())return"denied";if("default"!==Notification.permission)return Notification.permission;let e="default";try{e=await Notification.requestPermission()}catch(e){return"denied"}if("default"!==e)return e;let t=()=>{window.removeEventListener("pointerdown",t),Notification.requestPermission().catch(()=>void 0)};return window.addEventListener("pointerdown",t,{once:!0}),e},c=async(e,t)=>{var o,r;let a={"softphone.notification.type":String(null!=(r=null==(o=t.data)?void 0:o.kind)?r:""),"softphone.notification.permission":s()?Notification.permission:"unsupported"};if(!(s()&&"granted"===Notification.permission))return void(0,n.TV)("softphone.notification.skipped",a);let i=await l();if(!i)return void(0,n.TV)("softphone.notification.no_worker",a,{error:!0});try{await i.showNotification(e,t),(0,n.TV)("softphone.notification.shown",a)}catch(o){try{await i.showNotification(e,{...t,actions:void 0}),(0,n.TV)("softphone.notification.shown",{...a,"softphone.notification.actions":!1})}catch(e){(0,n.TV)("softphone.notification.failed",a,{exception:null!=e?e:o})}}},p=async e=>{let t=await l();if(t)try{(await t.getNotifications({tag:e}
1)).forEach(e=>e.close())}catch(e){}},f=e=>c(e.emergency?"\uD83D\uDEA8 Emergency call":"Incoming call",{body:[e.name,e.from].filter(Boolean).join(" \xb7 ")||"Unknown caller",tag:r,renotify:!0,requireInteraction:!0,actions:[{action:"answer",title:"Answer"},{action:"decline",title:"Decline"}],data:{kind:"ring"}}),u=()=>p(r),h=()=>p(a),g=e=>{if(!s())return()=>{};let t=t=>{var o;(null==(o=t.data)?void 0:o.type)==="softphone:alert-action"&&e(t.data.action||"",String(t.data.tag||""))};return navigator.serviceWorker.addEventListener("message",t),()=>navigator.serviceWorker.removeEventListener("message",t)},m=()=>{try{window.focus()}catch(e){}window.setTimeout(()=>{let e=document.hasFocus();(0,n.TV)("softphone.raise.result",{"softphone.raise.has_focus":e}),e||c("Softphone is open in another window",{body:"Click to bring the dialer to the front.",tag:a,renotify:!0,requireInteraction:!0,actions:[{action:"show",title:"Bring to front"}],data:{kind:"focus"}})},400)}},56217:(e,t,o)=>{o.d(t,{t:()=>n});let n=(e,t)=>{try{let o=URL.createObjectURL(new Blob(["let t=null;onmessage=e=>{if(e.data&&e.data.start){clearInterval(t);t=setInterval(()=>postMessage(1),e.data.start)}else if(e.data&&e.data.stop){clearInterval(t)}}"],{type:"application/javascript"})),n=new Worker(o);return URL.revokeObjectURL(o),n.onmessage=()=>t(),n.postMessage({start:e}),()=>{try{n.postMessage({stop:!0}),n.terminate()}catch(e){}}}catch(n){let o=window.setInterval(t,e);return()=>window.clearInterval(o)}}},77864:(e,t,o)=>{o.r(t),o.d(t,{AuthSignInForm:()=>C});var n=o(37876),r=o(14232),a=o(13810),s=o(88992),i=o(61654),l=o(83280),d=o(34612);class c{static _fromJS(e){return new c(e)}toJSON(){return Object.assign({},this)}constructor(e){Object.assign(this,e)}}var p=o(18911),f=o(84848),u=o(83604),h=o(65347);let g=new f.aK("/api/private/");var m=o(49003),w=o(14e3),v=o(79913),y=o(45612),x=o(2630),_=o(47827);let b=r.forwardRef((e,t)=>{let{disabled:o,locked:a,...s}=e,[i,d]=(0,r.useState)(!1);return(0,n.jsx)(y.p,{ref:t,type:i?"text":"password",disabled:o,locked:a,endAdornment:(0,n.jsx)(l.$,{variant:"native",className:"p-2",disabled:o||a,"aria-label":i?"Hide password":"Show password",onClick:()=>{d(e=>!e)},startAdornment:i?(0,n.jsx)(x.A,{}):(0,n.jsx)(_.A,{})}),...s})});b.displayName="PasswordInput";var S=o(26377);let j=e=>{let{name:t,helperText:o,fieldClassName:r,useSuggestions:a,...l}=e,{control:d}=(0,s.xW)();return(0,n.jsx)(i.zB,{name:t,control:d,useSuggestions:a,render:e=>{let{field:{value:t,...a}}=e;return(0,n.jsxs)(i.eI,{className:(0,S.tw)(r),children:[(0,n.jsx)(i.lR,{className:"sr-only",children:l.label}),(0,n.jsx)(i.MJ,{children:(0,n.jsx)(b,{value:null!=t?t:"",...a,...l})}),o&&(0,n.jsx)(i.Rr,{children:o}),(0,n.jsx)(i.C5,{})]})}})},k=v.Ik({email:v.Rp({error:"Invalid email"}),password:v.Yj({error:"Password is required"})}),C=e=>{let{onSuccess:t}=e,o=(0,w.useSearchParams)(),r=(0,d._Lf)({onSuccess(e){(0,p.JQ)(e),setTimeout(async()=>{let e=await g.start("GET").lit("user").lit("profile").jsfetch(u.EC(h.K._fromJS),e=>e);(0,m.uo)(e.id.toString());let n=(null==o?void 0:o.get("influencer"))==="true";(0,m.th)(n?"Auth: Influencer Sign In":"Auth: User Sign In"),null==t||t()},250)}}),f=(0,s.mN)({defaultValues:{},resolver:(0,a.u)(k)});return(0,n.jsx)(i.lV,{...f,children:(0,n.jsxs)("form",{className:"space-y-4",onSubmit:f.handleSubmit(e=>{let t=new c({username:e.email,password:e.password});return r.mutate({body:{...t}})}),children:[(0,n.jsx)(i.A_,{name:"email",label:"Email",type:"email"}),(0,n.jsx)(j,{name:"password",label:"Password",autoComplete:"current-password"}),(0,n.jsx)(l.$,{type:"submit",className:"w-full mx-auto",loading:r.isPending,children:"Sign In"}),r.isError&&(0,n.jsx)("p",{className:"text-body-regular mx-auto my-0 text-center max-w-[556px] text-balance text-red-06",children:"Could not sign in to your account, please try again or contact us for help."})]})})}},90136:(e,t,o)=>{o.d(t,{Cf:()=>u,Es:()=>g,HM:()=>p,L3:()=>m,LC:()=>f,ZJ:()=>c,c7:()=>h,lG:()=>l,rr:()=>w,zM:()=>d});var n=o(37876),r=o(14232),a=o(26303),s=o(61357),i=o(26377);function l(e){let{...t}=e;return(0,n.jsx)(a.bL,{"data-slot":"dialog",...t})}let d=r.forwardRef((e,t)=>
1{let{...o}=e;return(0,n.jsx)(a.l9,{"data-slot":"dialog-trigger",...o,ref:t})});function c(e){let{...t}=e;return(0,n.jsx)(a.ZL,{"data-slot":"dialog-portal",...t})}d.displayName="DialogTrigger";let p=r.forwardRef((e,t)=>{let{...o}=e;return(0,n.jsx)(a.bm,{"data-slot":"dialog-close",...o,ref:t})});p.displayName="DialogClose";let f=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,n.jsx)(a.hJ,{"data-slot":"dialog-overlay",ref:t,className:(0,i.tw)("fixed inset-0 z-50 bg-black/50",o),...r})});f.displayName="DialogOverlay";let u=r.forwardRef((e,t)=>{let{className:o,children:r,showCloseButton:l=!0,disableAnimations:d=!1,...p}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(f,{}),(0,n.jsxs)(a.UC,{"data-slot":"dialog-content",ref:t,className:(0,i.tw)("bg-white fixed top-[50%] left-[50%] z-50 flex flex-col w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 max-h-[80dvh] overflow-hidden shadow-lg md:max-w-md lg:max-w-lg xl:max-w-xl",!d&&"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",o),...p,children:[r,l&&(0,n.jsxs)(a.bm,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,n.jsx)(s.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName="DialogContent";let h=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,n.jsx)("div",{ref:t,"data-slot":"dialog-header",className:(0,i.tw)("flex flex-col gap-2 text-center xl:text-left",o),...r})});h.displayName="DialogHeader";let g=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,n.jsx)("div",{ref:t,"data-slot":"dialog-footer",className:(0,i.tw)("flex flex-col-reverse gap-2 xl:flex-row xl:justify-end",o),...r})});g.displayName="DialogFooter";let m=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,n.jsx)(a.hE,{ref:t,"data-slot":"dialog-title",className:(0,i.tw)("text-xl leading-none my-0",o),...r})});m.displayName="DialogTitle";let w=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,n.jsx)(a.VY,{ref:t,"data-slot":"dialog-description",className:(0,i.tw)("text-body-regular my-0",o),...r})});w.displayName="DialogDescription"},96429:(e,t,o)=>{o.d(t,{E:()=>d});var n=o(37876),r=o(14232),a=o(82987),s=o(47137),i=o(26377);let l=(0,s.F)("inline-flex items-center justify-center px-2 py-[1px] text-[12.5px] font-semibold tracking-widest font-ppstellar uppercase w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none transition-[color,box-shadow] overflow-hidden text-white",{variants:{color:{black:"bg-black",orange:"bg-orange-05",blue:"bg-blue-05",green:"bg-green-05",red:"bg-red-05",yellow:"bg-yellow-05",pink:"bg-pink-600",purple:"bg-purple-600",lime:"bg-lime-600",gray:"bg-gray-200 text-gray-700"}},defaultVariants:{color:"orange"}}),d=r.forwardRef((e,t)=>{let{className:o,color:r="orange",asChild:s=!1,...d}=e,c=s?a.bL:"span";return(0,n.jsx)(c,{ref:t,"data-slot":"badge",className:(0,i.tw)(l({color:r}),o),...d})});d.displayName="Badge"}}]);
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.