PageSourceSearch

https://app.honeybook.com/router.304.04868a0779742ff5.js

js honeybook.com collected 2026-10-01 08:34:18 UTC 15,099 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkrouter=self.webpackChunkrouter||[]).push([["304"],{4911(e,t,i){i.d(t,{fg:()=>p,xz:()=>d,Nz:()=>f,Yc:()=>c,Ay:()=>h,Nt:()=>m,bG:()=>g,Lv:()=>b,ac:()=>l});var s,r,n,a,o,u,l,c,_=i(2742);class h extends _.zM{getConfig(){return this.httpClient.request({method:"get",url:"/api/gon"})}}class d extends _.zM{getCouponUnauthenticated(e){return this.httpClient.request({method:"get",url:`/api/v2/account/undefined/coupons/${e}`})}getReferralCouponUnauthenticated(e){return this.httpClient.request({method:"get",url:`api/referrer_marketing?code=${e}`})}}class m extends _.zM{fetchFeaturePlan(e){return this.httpClient.request({method:"get",url:`/api/v2/account/${e}/feature_plan`})}fetchFeatureVisibilities(e){return this.httpClient.request({method:"get",url:`/api/v2/account/${e}/feature_visibilities`})}updateAccountSettings(e,t){return this.httpClient.request({method:"put",url:`/api/v2/account/${e}/settings`,data:{account_settings:t}})}joinWaitlist(e,t,i){return this.httpClient.request({method:"post",url:`/api/v2/account/${e}/waitlist`,data:{feature_name:t,additional_data:i}})}revertToOldAutomations(e){return this.httpClient.request({method:"put",url:`/api/v2/account/${e}/revert_to_old_automation`})}completeManualAccountSetup(e,t){return this.httpClient.request({method:"put",url:`/api/v2/account/${e}/manual_account_setup`,data:void 0!==t?{batch_index:t}:void 0})}sendAccountSetupEvent(e,t){return this.httpClient.request({method:"put",url:`/api/v2/account/${e}/account_setup_state`,data:{event_name:t}})}}class p extends _.zM{async getCurrentCompany(e){return this.httpClient.request({method:"get",url:`/api/v2/companies/${e}`})}}function extractJsonFromJsonp(e){let t=e.indexOf("(")+1,i=e.lastIndexOf(")");if(t<=0||i<=t)return e;try{return JSON.parse(e.slice(t,i))}catch{return e}}class g{async fetchCompanyConfiguration(e){let t=`https://s3.amazonaws.com/${e.awsBucket}/${e.configDomain}/${e.filePrefix}_configuration.js?xhr=1`,i=await fetch(t,{credentials:"omit"});if(!i.ok)throw Error(`CX branding fetch failed (${i.status}) for ${t}`);return extractJsonFromJsonp(await i.text())}}(s=o||(o={})).BROCHURES_AND_QUESTIONNAIRES="brochuresAndQuestionnaires",s.CONTRACTS="contracts",s.CRM="crm",s.INVOICES="invoices",s.LEAD_CAPTURE="leadCapture",s.SCHEDULING="scheduling",(r=u||(u={})).Google="GoogleCalendarProvider",r.Nylas="NylasCalendarProvider",(n=l||(l={})).Basic="basic",n.Moderator="moderator",n.Admin="admin",n.SuperAdmin="super_admin",(a=c||(c={}))[a.basic=0]="basic",a[a.moderator=1]="moderator",a[a.admin=2]="admin",a[a.super_admin=3]="super_admin";class b extends _.zM{async validateEmailIntakeForm(e,t){let i=new URLSearchParams;return Object.entries(e).forEach(([e,t])=>{null!=t&&i.append(e,String(t))}),this.httpClient.request({method:"get",url:`/api/validate_onboarding?${i.toString()}`,headers:t})}async leadCreated(e,t){return this.httpClient.request({method:"post",url:"/api/lead_created",data:e,headers:t})}async _createNewUser(e,t){return this.httpClient.request({method:"post",url:"/api/v2/users",data:e,headers:t})}async convertPreTrailerToTrailer(e,t){return this.httpClient.request({method:"post",url:`/api/v2/user/${e}/companies`,data:t})}async getFullstoryToken(){return await this.httpClient.request({method:"get",url:"/api/v2/users/fullstory_token"})}async _loginWithGoogleFirebase(e){return this.httpClient.request({method:"post",url:"/api/v2/users/oauth/sso_signup_user",data:e})}async getCurrentUser(e){return this.httpClient.request({method:"get",url:`/api/v2/users/${e}`})}async getEmailProvider(e){return this.httpClient.request({method:"get",url:`/api/v2/users/${e}/email_providers`})}async getCalendarProvider(e){return this.httpClient.request({method:"get",url:`/api/v2/users/${e}/calendar_provider`})}}let f={FreelancersUnion:"freelancersunion",JohnBranch:"johnbranch",PicTime:"pictime",Adobe:"adobe",PublicTemplate:"publictemplate",BreakthroughInvite:"breakthrough_invite",MspInvite:"msp_invite",BreakthroughMspInvite:"breakthrough_msp_invite",Prismm:"prismm",Instabooked:"instabooked_msp_invite",TheKnot:"tkww",Zoom:"zoom",ClientRelationships:"client_relationships",Showit:"showit",TimelineGenius:"timeline_genius_expired",TimelineGeniusFlow1:"timeline_genius_f1_expired",Blazeai:"blazeai",Rella:"rella",Weven:"weven",Zola:"zola",ZolaHbPhoenixAz:"zola-hb-phoenix-az",Wmba:"wmba",AuUkLaunch:"au-uk-launch",MemberAwards:"member_awards"}},4107(e,t,i){i.d(t,{KJ:()=>g,CD:()=>getUserStatus,dP:()=>I,mp:()=>isCouponPromotionActive,CC:()=>T,SQ:()=>a,gD:()=>_,Vk:()=>s,D_:()=>p});class s{constructor(e){this.sessionId=null,Object.assign(this,e)}setSessionId(e){this.sessionId=e}isE2E(){return!!this.e2e_env}isProduction(){return"production"===this.environment}
1isStaging(){return"staging"===this.environment}isDevelopment(){return"development"===this.environment}isTest(){return"test"===this.environment}get isLoaded(){return Object.keys(this).length>0}get apiUrl(){return this.isDevelopment()?this.url:"https:"+this.api_urls_prefix+"/"}get config(){return this}get statsigE2ETier(){return this.statsig_e2e_tier||"e2e"}get statsigApiUrl(){return this.statsig_api_url||"https://statsigapi.net/v1"}getStripeKey(e){return e?void 0!==e.stripe_key?e.stripe_key:void 0===e.is_real_chargeable_user||e.is_real_chargeable_user?this.config.stripe_key:this.config.stripe_test_key:this.config.stripe_test_key}}var r,n,a,o,u=i(4911);i(6608),u.xz;let l=["explore_new","activated_new","new","reverted"],c=["old","explore_new","activated_new","reverted"];class _{constructor(e){this._id=e._id,this.trial=e.trial,this.enable_flow_flag=e.enable_flow_flag,this.block_files_flag=e.block_files_flag,this.subscription=e.subscription,this.is_subscribed=e.is_subscribed,this.otam_group=e.otam_group,this.predicted_member_segment_measurement=e.predicted_member_segment_measurement,this.has_payroll=e.has_payroll,this.has_subscriptions=e.has_subscriptions,this.automations_mode=e.automations_mode}get automationsMode(){let e=this.automations_mode;return{isNewAutomationsAccessible:void 0!==e&&l.includes(e),isOldAutomationsAccessible:void 0!==e&&c.includes(e)}}get isInTrial(){return!!(this.trial&&!this.trial.ended)}getTrialStartDate(){return this?.trial?.start_date??null}get isFlowFlagEnabled(){return!!this.enable_flow_flag}get isBlockFilesFlagEnabled(){return!!this.block_files_flag}getTrial(){return this.trial}get hasTrialExpired(){return!!this.trial?.ended}get isSubscribed(){return!!this.is_subscribed}get isTrialer(){return!this.isSubscribed}get hasSubscriptions(){return!!this.has_subscriptions}get nTillTrialEnds(){return this.trial?.n_to_end}get isSubscriptionCanceled(){return this?.subscription?.state==="canceled"||!!this?.subscription?.pricing_plan?.canceled}isPremiumOrEssential(){let e=this.subscription?.plan_code;return this.is_subscribed&&!!e&&/premium|essential/i.test(e)}isPremium(){let e=this.subscription?.plan_code;return this.is_subscribed&&!!e&&/premium/i.test(e)}}var h=i(8431),d=i.n(h);(r=a||(a={})).pictime="pictime",r.zoom60="zoom60",r.theknot="theknot",r.au_uk_launch_offer="au-uk-launch-offer",r.anchored_excluded_discount="anchored_excluded_discount",r.freelancersunion="freelancersunion",r.adobe50="adobe50",r.setup50="setup50",r.member_awards="member_awards",r.flash_sale_photographers="flash_sale_photographers",r.bigscreen="bigscreen",r.fiona="fiona",r.test_flexible_coupon="test_flexible_coupon",r.test_flexible_monthly_only="test_flexible_monthly_only",r.test_regular_coupon="test_regular_coupon",r.test_referral_coupon="test_referral_coupon",r.test_expired_coupon="test_expired_coupon";let m={},isCouponPromotionActive=e=>{let t=e?m[e]:void 0;return!t?.promotionEndDate||!d()().isAfter(d()(t.promotionEndDate),"day")},p=[{id:"au-uk-launch",couponCode:a.au_uk_launch_offer,utmSource:u.Nz.AuUkLaunch},{id:"member-awards",couponCode:a.member_awards,utmSource:u.Nz.MemberAwards,allowExistingMembers:!0}];i(1521);class g{constructor(e){this._id=e._id,this.created_at=e.created_at,this.email=e.email,this.full_name=e.full_name,this.first_name=e.first_name,this.last_name=e.last_name,this.system_user_type=e.system_user_type,this.user_type_name=e.user_type_name,this.hb_user_type=e.hb_user_type,this.is_hb_admin=e.is_hb_admin,this.user_intent=e.user_intent,this.is_activated=e.is_activated,this.account_id=e.account_id,this.statsig_stable_id=e.statsig_stable_id,this.bucket_number=e.bucket_number,this.bookkeeperModeCompanyId=e.bookkeeperModeCompanyId,this.attribution=e.attribution,this.is_company_owner=e.is_company_owner,this.profile_image_url=e.profile_image_url,this.website_url=e.website_url,this.is_account_owner=e.is_account_owner,this.is_educator=e.is_educator,this.onboarding_container=e.onboarding_container,this.userSetupSequence=e.userSetupSequence,this.login_2fa_enabled=e.login_2fa_enabled,this.pending_2fa_setup=e.pending_2fa_setup,this.ooo_in_effect=e.ooo_in_effect,this.email_signatures=e.email_signatures,this.email_signature_config=e.email_signature_config,this.workspaces_count=e.workspaces_count,e.account&&(this.account=new _(e.account))}isActivated(){return!!this.is_activated}
1isVendor(){return"vendor"===this.system_user_type}isHoneypaid(){return this.activated_on}get isInBookkeeperMode(){return!!this.bookkeeperModeCompanyId}get login2faEnabled(){return this.login_2fa_enabled??!1}get pending2faSetup(){return this.pending_2fa_setup??!1}get utmSource(){return this.attribution?.user_utm_params?.utm_source}isClient(){return"client"===this.system_user_type}shouldStartTrial(e){return this.isVendor()&&null==e.trial&&!e?.is_subscribed}get isAtwsVendor(){return this.isVendor()&&this.attribution?.user_source_secondary==="workspace_member"}isAtwsPreTrialVendor(e){return this.isAtwsVendor&&this.shouldStartTrial(e)}get fullName(){return this.full_name}get isEducator(){return this.is_educator}getTrialStartDate(){return this.account?.getTrialStartDate()??null}get emailSignature(){return this.email_signatures?.[0]}get emailSignatureConfig(){return this.email_signature_config}}function getUserStatus(e,t,i){return t.isSubscriptionCanceled?e.isHoneypaid()?o.ActivatedSubChurn:o.SubCancel:i.hasSubscription?e.isActivated()?o.Activated:o.Subscribed:e.isHoneypaid()?o.Honeypaid:t.isInTrial?o.Trial:t.hasTrialExpired?o.TrialExpired:o.PreTrailer}(n=o||(o={})).Activated="ACTIVATED",n.Trial="TRIAL",n.PreTrailer="PRE-TRIALER",n.TrialExpired="EXPIRED_TRIAL",n.Subscribed="SUBSCRIBED",n.Honeypaid="HONEYPAID",n.SubCancel="SUB_CANCEL",n.ActivatedSubChurn="ACTIVATED_SUB_CHURN";var b=i(5870);let{underPasswordInputError:f,requiredString:y,invalidEmailErrorMessage:v,invalidNameErrorMessage:w,minPasswordErrorMessage:C,maxPasswordErrorMessage:S,passwordMustContainLowercase:k,passwordMustContainUppercase:A,passwordMustContainANumber:E}={underPasswordInputError:"Set a strong password that matches the requirements",requiredString:"This field is required",invalidEmailErrorMessage:"The email you entered doesn’t seem valid",invalidNameErrorMessage:"The name you entered doesn’t seem valid",emailAddressAlreadyExists:"Someone's already using that email",generalServerErrorMessage:"Oops... Server error. Please try again.",minPasswordErrorMessage:"At least ${min} characters",maxPasswordErrorMessage:"Password must be at up to ${max} characters",passwordMustContainLowercase:"1 lowercase letter",passwordMustContainUppercase:"1 uppercase letter",passwordMustContainANumber:"1 number"};b.Yj().trim().required(f).min(8,C).max(72,S).matches(/[a-z]/,k).matches(/[A-Z]/,A).matches(/\d/,E),b.Yj().trim().required(y).matches(/^(?!.*[.\/<])/,w);class T{constructor(e){Object.assign(this,e),this._id=e._id,this.company_name=e.company_name,this.company_type=e.company_type,this.company_type_name=e.company_type_name,this.owner=e.owner,this.team_members=e.team_members,this.pending_stripe_migration=e.pending_stripe_migration,this.subscribed=e.subscribed,this.phone_number=e.phone_number,this.locale=e.locale,this.default_timezone=e.default_timezone,this.user_permissions=e.user_permissions,this.company_vertical=e.company_vertical,this.ai_contact_followup_suggestions_enabled=e.ai_contact_followup_suggestions_enabled,this.conversational_sms_enabled=e.conversational_sms_enabled,this.first_created_contact_action_suggestions=e.first_created_contact_action_suggestions,this.brand_color=e.brand_color,this.scheduler_url=e.scheduler_url,this.vendor_emails=e.vendor_emails,this.hidden_project_fields=e.hidden_project_fields,this.logo_image=e.logo_image,this.icon_image=e.icon_image}get companyName(){return this.company_name}get brandColor(){return this.brand_color}get hasBudgetField(){return!this.hidden_project_fields?.includes("budget")}get hasAnySubscription(){return!!this.subscribed}get hasSubscription(){return this.subscribed??!1}get isConsultant(){return"consultant"===this.company_vertical}get membersSortedByName(){let e=[];return this.owner&&e.push(this.owner),this.team_members&&e.push(...this.team_members),e.sort((e,t)=>(e.full_name??"").localeCompare(t.full_name??""))}}let{requiredString:x,minPhoneNumberLength:P,invalidURLErrorMessage:q}={requiredString:"This field is required",minPhoneNumberLength:"Phone number must be at least 10 digits",invalidURLErrorMessage:"Enter your exact business website address—it needs to be online."};b.Yj().trim().required(x),b.Yj().trim().required(x),b.Yj().trim().required(x).test("valid-phone-digit-count",P,e=>{if(!e)return!1;let t=e.replace(/\D/g,"");return t.length>=7&&t.length<=15});class I extends g{constructor(e,t){super(e),this.hasPermissionsOrHigher=e=>this.companyPermission?.company_permission_cd>=e,this.company=t,this.companies=e.companies,this.user_company_permission=e.user_company_permission,this.is_bookkeeper=e.is_bookkeeper,this.enabled_features=e.enabled_features,this.features_active=e.features_active,this.features_variations=e.features_variations}isCompanyOwner(){return!!this.is_company_owner||!!this._id&&!!this.company&&!!this.company.owner&&this._id===this.company.owner._id}get companyPermission(){if(this.is_company_owner)return{user_id:this._id,company_permission:u.ac.SuperAdmin,company_permission_cd:u.Yc.super_admin};if(this.company?.user_permissions){let e=this.company.user_permissions.find(e=>e.user_id===this._id);if(e)return e}return this.user_company_permission?this.user_company_permission:{user_id:this._id,company_permission:u.ac.Basic,company_permission_cd:u.Yc.basic}}get hasCompanySuperAdminPermissions(){return this.hasPermissionsOrHigher(u.Yc.super_admin)}get hasCompanyAdminPermissions(){return this.hasPermissionsOrHigher(u.Yc.admin)}get isFlowFlagEnabled(){return!!this.account?.enable_flow_flag}get flowsBetaUserType(){let e=this.isFlowFlagEnabled,t=!this.account?.isBlockFilesFlagEnabled;return{hasFlows:e,hasFiles:t,hasOnlyFlows:!t,hasOnlyFiles:t&&!e,hasNewFlowExp:e}}hasMultipleCompanies(){return(this.companies?.length??0)>1}isPartOfCompany(e){return!!this.companies?.some(t=>t._id===e)}isAtwsPreTrialVendor(e){return super.isAtwsPreTrialVendor(e??this.account)}
1isBookkeeper(){return!!this.hb_user_type?.includes("bookkeeper")||!!this.is_bookkeeper}}}}]);
2//# sourceMappingURL=router.304.04868a0779742ff5.js.map

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.