1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[535],{76384:function(t,e,n){n.d(e,{$A:function(){return y},AL:function(){return v},C3:function(){return m},_q:function(){return o},av:function(){return h},eN:function(){return l},gU:function(){return _},hn:function(){return d},lW:function(){return p},lk:function(){return i},sE:function(){return S},v8:function(){return f},wd:function(){return c}});var r=n(51211);let o={userRegistered:"user_registered",userEmailVerified:"user_email_verified",signupError:"signup_error",signupPendingVerification:"signup_pending_verification"},a={checkoutStarted:"payment_checkout_started"},i={starterCtaClicked:"trial_starter_cta_clicked",starterInitiated:"trial_starter_initiated",starterInitiationFailed:"trial_starter_initiation_failed",onboardingViewed:"trial_onboarding_viewed",poolNumberSelected:"trial_pool_number_selected",expectationCreated:"trial_expectation_created",activationCodeCopied:"trial_activation_code_copied",trialPlaygroundCtaClicked:"trial_playground_cta_clicked"},c={started:"onboarding_started",pathSelected:"onboarding_path_selected",stepViewed:"onboarding_step_viewed",step1WaMeClicked:"onboarding_step1_wa_me_clicked",step1ChannelBound:"onboarding_step1_channel_bound",step1Completed:"onboarding_step1_completed",step2MessageSent:"onboarding_step2_message_sent",step2Completed:"onboarding_step2_completed",bonusViewed:"onboarding_bonus_viewed",getStartedClicked:"onboarding_get_started_clicked",completed:"onboarding_completed",backClicked:"onboarding_back_clicked",sidebarPdfClicked:"onboarding_sidebar_pdf_clicked",sidebarSupportClicked:"onboarding_sidebar_support_clicked",sidebarVideoClicked:"onboarding_sidebar_video_clicked"},u={viewed:"channel_status_viewed",unhealthyShown:"channel_unhealthy_shown",restartClicked:"channel_restart_clicked",restartSucceeded:"channel_restart_succeeded",restartFailed:"channel_restart_failed"};function s(){return r.ZP.__loaded}function l(t,e){s()&&r.ZP.capture(t,e)}function g(t){let{channelId:e,isHealthy:n,stopReason:r,wabaConnectionStatus:o}=t;return{channel_id:e,...void 0!==n?{is_healthy:n}:{},...r?{stop_reason:r}:{},...o?{waba_connection_status:o}:{}}}function d(t){l(u.viewed,{channel_id:t})}function f(t){if(s())try{var e;let n=(e=t.channelId,"1msg:analytics:channel-unhealthy-shown:".concat(e));if(window.sessionStorage.getItem(n))return;window.sessionStorage.setItem(n,"1"),l(u.unhealthyShown,g(t))}catch(t){}}function h(t){l(u.restartClicked,g(t))}function _(t){l(u.restartSucceeded,g(t))}function m(t){l(u.restartFailed,g(t))}function p(t){if(!t)return;let e=t.toUpperCase();return"MONTHLY"===e?"month":"YEARLY"===e?"year":void 0}function S(t){try{var e;let n={...t,timestamp:null!==(e=t.timestamp)&&void 0!==e?e:new Date().toISOString()};l(a.checkoutStarted,n)}catch(t){}}function y(t,e){s()&&r.ZP.identify(t,e)}function v(){s()&&r.ZP.reset()}},79648:function(t,e,n){n.d(e,{A_:function(){return i},fx:function(){return r},hP:function(){return o},uG:function(){return a}});let r=["json","javascript","typescript","python","php","java","kotlin","csharp","ruby","go","rust","scala","swift","cpp","shell"],o="json",a={json:"languages.json",javascript:"languages.javascript",typescript:"languages.typescript",python:"languages.python",php:"languages.php",java:"languages.java",kotlin:"languages.kotlin",csharp:"languages.csharp",ruby:"languages.ruby",go:"languages.go",rust:"languages.rust",scala:"languages.scala",swift:"languages.swift",cpp:"languages.cpp",shell:"languages.shell"};function i(t){return!!(t&&r.includes(t))}},16892:function(t,e,n){n.d(e,{BB:function(){return S},Gu:function(){return l},Kq:function(){return m},Rv:function(){return p},U4:function(){return g},XP:function(){return _},YB:function(){return d},aq:function(){return f},nl:function(){return h}});var r=n(79648);let o="playground-selected-channel-",a="playground-recipients-",i="playground-live-chat-v1",c="playground-body-language-v1";function u(t){return"".concat(o).concat(t)}function s(t){return"".concat(a).concat(t)}function l(t){return t?localStorage.getItem(u(t)):null}function g(t,e){t&&localStorage.setItem(u(t),e)}function d(t){if(!t)return{};let e=localStorage.getItem(s(t));if(!e)return{};try{let t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch(t){}return{}}function f(t,e){t&&localStorage.setItem(s(t),JSON.stringify(e))}function h(){try{let t=localStorage.getItem(c);if((0,r.A_)(t))return t}catch(t){}return r.hP}function _(t){try{localStorage.setItem(c,t)}catch(t){}}function m(){try{let t=localStorage.getItem(i);if(!t)return null;let e=JSON.parse(t);if((null==e?void 0:e.channelId)&&e.recipientDigits)return e}catch(t){}return null}function p(t){try{if(!t){localStorage.removeItem(i);return}localStorage.setItem(i,JSON.stringify(t))}catch(t){}}function S(){let t=[];for(let e=0;e<localStorage.length;e+=1){let n=localStorage.key(e);n&&(n.startsWith(o)||n.startsWith(a)||n===i||n===c)&&t.push(n)}t.forEach(t=>localStorage.removeItem(t));try{sessionStorage.removeItem(i)}catch(t){}}},57324:function(t,e,n){n.d(e,{B0:function(){return d},F$:function(){return h},Gh:function(){return _},Gu:function(){return i},U4:function(){return c},fr:function(){return s},iJ:function(){return g},r7:function(){return l},w:function(){return m},xK:function(){return u}});let r="inbox-selected-channel",o="inbox-active-tab",a="inbox-filter-unread",i=()=>localStorage.getItem(r),c=t=>{localStorage.setItem(r,t)},u=()=>{localStorage.removeItem(r)},s=()=>localStorage.getItem(o)||"open",l=t=>{localStorage.setItem(o,t)},g=()=>"true"===localStorage.getItem(a),d=t=>{localStorage.setItem(a,String(t))},f="inbox-active-dialog",h=()=>localStorage.getItem(f),_=t=>{t?localStorage.setItem(f,t):localStorage.removeItem(f)},m=()=>{u(),localStorage.removeItem(o),localStorage.removeItem(a),localStorage.removeItem(f)}},10535:function(t,e,n){n.d(e,{t:function(){return s}});var r=n(57582),o=n(64452),a=n(57324),i=n(16892),c=n(76384),u=n(69020);let s=(0,r.Ue)()((0,o.tJ)((t,e)=>({user:null,token:null,isAuthenticated:!1,isLoading:!0,login:async(t,n)=>{let r=await fetch("/api/v1/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,password:n})});if(!r.ok){var o;throw Error(null!==(o=(await r.json()).message)&&void 0!==o?o:"")}let a=await r.json();e().setAuth(a.user,a.access_token)},setAuth:(e,n)=>{localStorage.setItem("token",n),document.cookie="auth-token=".concat(n,"; path=/; max-age=86400; SameSite=Lax"),t({user:e,token:n,isAuthenticated:!0,isLoading:!1}),(0,c.$A)(e.id,{email:e.email,name:e.name,role:e.role,language:e.language})},logout:()=>{localStorage.removeItem("token"),document.cookie="auth-token=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT",(0,a.w)(),(0,i.BB)(),(0,u.tj)();try{let t=window.__TANSTACK_QUERY_CLIENT__;null==t||t.clear()}catch(t){}t({user:null,token:null,isAuthenticated:!1,isLoading:!1}),(0,c.AL)()},checkAuth:()=>{let n=localStorage.getItem("token");if(n){document.cookie="auth-token=".concat(n,"; path=/; max-age=86400; SameSite=Lax"),t({token:n,isAuthenticated:!0,isLoading:!1});let r=e().user;r&&(0,c.$A)(r.id,{email:r.email,name:r.name,role:r.role,language:r.language})}else t({isLoading:!1})}
1,setLoading:e=>{t({isLoading:e})}}),{name:"auth-storage",onRehydrateStorage:()=>t=>{t&&t.checkAuth()}}))},69020:function(t,e,n){n.d(e,{CT:function(){return v},Eb:function(){return r},Is:function(){return p},LB:function(){return g},Ms:function(){return d},SK:function(){return _},TO:function(){return S},W$:function(){return m},dJ:function(){return f},e1:function(){return h},gK:function(){return l},hj:function(){return s},tj:function(){return y}});let r="onboarding",o="onboarding_step3_ready",a="onboarding_step2_sent",i="onboarding_bound_phone",c="onboarding_started_fired",u="onboarding_paid_exit_pending";function s(){try{return"1"===sessionStorage.getItem(o)}catch(t){return!1}}function l(){try{return sessionStorage.setItem(o,"1"),"1"===sessionStorage.getItem(o)}catch(t){return!1}}function g(){try{return"1"===sessionStorage.getItem(a)}catch(t){return!1}}function d(){try{return sessionStorage.setItem(a,"1"),"1"===sessionStorage.getItem(a)}catch(t){return!1}}function f(){try{sessionStorage.removeItem(a)}catch(t){}}function h(){try{var t,e;return null!==(e=null===(t=sessionStorage.getItem(i))||void 0===t?void 0:t.trim())&&void 0!==e?e:""}catch(t){return""}}function _(t){let e=t.trim();if(!e)return!1;try{return sessionStorage.setItem(i,e),sessionStorage.getItem(i)===e}catch(t){return!1}}function m(){try{return"1"===sessionStorage.getItem(u)}catch(t){return!1}}function p(){try{return sessionStorage.setItem(u,"1"),"1"===sessionStorage.getItem(u)}catch(t){return!1}}function S(){try{sessionStorage.removeItem(u)}catch(t){}}function y(){!function(){try{sessionStorage.removeItem(o)}catch(t){}}(),f(),function(){try{sessionStorage.removeItem(i)}catch(t){}}();try{sessionStorage.removeItem(c)}catch(t){}}function v(t,e){try{if("1"===sessionStorage.getItem(c))return;sessionStorage.setItem(c,"1")}catch(t){}t(e)}}}]);
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.