PageSourceSearch

https://tresda.institute/static/useFeatureFlags-BaVk5MXW.js

js tresda.institute collected 2026-09-24 15:03:57 UTC 17,552 bytes, 1 lines download raw bytes

1import{o as e,r as t}from"./rolldown-runtime-C0FnF6B9.js";import{i as n}from"./runtime-QtgwY_nV.js";import{_ as r}from"./vendor-react-BBBlwLJ5.js";import{b as i,g as a,h as o,p as s,v as c,y as l}from"./errorReporting-CIFUp4xx.js";import{T as u,a as d,c as f,d as p,f as m,h as ee,i as h,n as g,p as _,r as v,s as y}from"./mixpanelUtils-Dj7yMXM_.js";import{n as b}from"./bridge-Cq_Szqk4.js";import{n as x}from"./AuthContext-Dkw_VIif.js";import{i as S,t as C}from"./create-zustand-store-1E2bcsHT.js";import{t as w}from"./persist-to-storage-D9RzA363.js";import{t as te}from"./actions.middleware-D_eRWZoy.js";import"./native-mobile-app-DrRzSpEh.js";import{r as T}from"./WorkspaceContext-B_ph991n.js";import{t as E}from"./usePlatform-D235SiRA.js";import{n as D}from"./react-DOQakgba.js";var O={SOCIAL_BONUS_SELF_SERVE:`social-bonus-self-serve`,UNIFIED_TOOL_ACTIVITY:`unified-tool-activity-v2`,PLAN_MODE_DESIGN_QUESTION:`plan-mode-design-question`,APP_COMMENTS:`app-comments`,BRANCH_SYNC_OVERLAP_BANNER:`branch-sync-overlap-banner`,CONTEXT_AWARE_PAYWALL_STATUS_VALIDATION:`context_aware_paywall_status_validation`,COOKIE_CONSENT_BANNER:`cookie-consent-banner`,NATIVE_CONSENT_OVERRIDE:`native-consent-override`,FULLSTACK_APP_TEMPLATE:`fullstack-app-template`,MAIN_BRANCH_PROTECTION_SETTINGS:`main-branch-protection-settings`,INVITE_USERS_FROM_FILE:`invite-users-from-file`,CLAUDE_FABLE_5_1:`claude-fable-5-1`,CLAUDE_OPUS_5_5:`claude-opus-5-5`,MODEL_ARENA_MANUAL_FIRST_PROMPT:`model-arena-manual-first-prompt`,MODEL_COMPARE_FREE_CAMPAIGN:`model-compare-free-campaign`,GLM_5_2:`glm-5-2`,BASE1_S_MODEL:`base1-s-model`,BANANA_GLM_5_2:`banana-glm-5-2`,BASE1_CHECKPOINTS_STAFF_MODEL_PICKER:`base1-checkpoints-staff-model-picker`,PER_USER_BUILDER_MODEL_SELECTION:`per-user-builder-model-selection`,COLONY:`colony`,AUTH_WEBM_ANIMATION:`auth-webm-animation`,COMMUNITY_EVENTS:`community-events`,GAME_BUILDER:`game-builder`,SLIDES:`slides`,REPUTATION_DROP_PAGE:`reputation-drop-page`,BUILDER_BADGES:`builder-badges`,GITHUB_ALLOW_DISCONNECT:`github-two-ways-integration-allow-disconnect`,SUPERBOWL_US_USER_EXPOSURE:`superbowl-us-user-exposure`,SUPERBOWL_BANNER_ENABLED:`superbowl-banner-enabled`,BUILDER_TASK_MANAGEMENT:`builder-task-management`,ARTIFACTS_TOOL:`artifacts-tool`,SUPERAGENT_PHONE_CHANNEL:`superagent-phone-channel`,SUPERAGENT_FOR_APPS:`superagent-for-apps`,SUPERAGENT_PLAID_BANKING:`superagent-plaid-banking`,EXPERT_CHAT_BANNER:`expert-chat-banner`,PARTNERS_PAYMENTS:`partners-payments`,PARTNER_PAYMENT_SUGGESTIONS:`partner-payment-suggestions`,NEW_INLINE_EDIT:`new-inline-edit`,MOBILE_PREVIEW_MEMORY_OPTIMIZATION:`mobile-preview-memory-optimization`,CANVAS_VIEW:`canvas-view`,WORKFLOW_TRIGGER_ROLLOUT:`workflow-trigger-rollout`,DISABLE_PUBLISH_WHEN_NO_CHANGES:`disable-publish-when-no-changes`,PUBLISH_QUEUE_WHILE_COMMITTING:`publish-queue-while-committing`,BUILDER_QUEUE_STEERING:`builder-queue-steering`,CUSTOM_LOGIN_FLOW:`custom-login-flow`,NEW_SITE_THEME_COLOR:`new-site-theme-color`,THEME_SELECTOR_V2:`theme-selector-v2`,REGENERATE_DESIGN_VISUAL_EDIT:`regenerate-design-visual-edit`,PERSONAL_AGENT_IMESSAGE:`personal-agent-imessage`,IN_APP_AGENT_TELEGRAM:`in-app-agent-telegram`,MIGRATE_FROM_COMPETITOR:`migrate-from-competitor`,IMPORTED_APPS:`imported-apps`,IMPORTED_APPS_OPEN_SOURCE_LIBRARY:`imported-apps-open-source-library`,BASE_CODE_PAGE:`base-code-page`,WORKSPACE_GITHUB_INSTALLATIONS:`workspace-github-installations`,ADD_CONNECTORS_TO_PLAN:`add-connectors-to-plan`,GITHUB_PER_USER_CONNECTION_MODE:`github-per-user-connection-mode`,SUPERAGENT_AFFILIATE_CAMPAIGN:`superagent-affiliate-campaign`,SUPERAGENT_DEBUG_VIEW:`superagent-debug-view`,VIRALITY:`virality`,SOCIAL_CALENDAR_V2:`social-calendar-v2`,HIDE_PREVIEW:`hide-preview`,BASE_DAY_ENABLED:`base-day-enabled`,BLOCK_GIFT_CARD_PURCHASE:`block-gift-card-purchase`,GIFT_CARD_MENU_VISIBILITY:`gift-card-menu-visibility`,SEO_V1_5:`seo-v1-5`,SEO_GSC_INTEGRATION:`seo-gsc-integration`,SEO_AI_VISIBILITY:`seo-ai-visibility`,STARTER_PRICE_25:`starter-price-25`,DOMAINS_PAGE_FREE_USER_V2:`domains-page-free-user-v2`,SEO_INDEX_PUBLIC_WITH_LOGIN:`seo-index-public-with-login`,SEO_PAGES_FROM_ROUTES:`seo-pages-from-routes`,U
1RL_CAPTURE_V2:`url-capture-v2`,URL_CAPTURE_TEMPORAL:`url-capture-temporal`,URL_CAPTURE_PROMPT_BANNER:`url-capture-prompt-banner`,URL_CAPTURE_PROMPT_BANNER_V2:`url-capture-prompt-banner-v2`,SUPERAGENT_DARK_MODE:`superagent-dark-mode`,SUPERAGENT_SKILLS_PAGE_REDESIGN:`superagent-skills-page-redesign`,SIDEBAR_LAYOUT_V2:`sidebar-layout-v2`,HOMEPAGE_OOC_COPY_TEST1:`homepage-ooc-copy-test1`,PLAN_AWARE_PRICING_CTAS:`plan-aware-pricing-ctas`,PRICING_INLINE_PERIOD_TOGGLE:`pricing-inline-period-toggle`,PRICING_ELITE_DATA_VERSION_HISTORY:`pricing-elite-data-version-history`,SIDEBAR_UPGRADE_FULL_DIFF_MODAL:`sidebar-upgrade-full-diff-modal`,RENEWAL_SALE_NUDGE_RESTARTED:`renewal-sale-nudge-restarted`,PREVIEW_BADGE_X_NUDGE:`preview-badge-x-nudge`,OOC_YEARLY_PRORATED_UPGRADE:`ooc-yearly-prorated-upgrade`,OOC_ELITE_UPGRADE_TARGET:`ooc-elite-upgrade-target`,CANCEL_LITE_PLAN_OFFER_WIX:`cancel-lite-plan-offer-wix`,CANCEL_DOWNGRADE_OFFER_V2:`cancel-downgrade-offer-v2`,PRICING_CTA_BLACK_BUTTON:`pricing-cta-black-button`,BASE_WIX_PREMIUM_INTEGRATION:`base-wix-premium-integration`,BASE_WIX_UPGRADE_RECOVERY_CHECKOUT:`base-wix-upgrade-recovery-checkout`,BASE_WIX_UPGRADE_RECOVERY_PAY_NOW:`base-wix-upgrade-recovery-pay-now`,SECURITY_SCAN_SKIP_EDIT_RESCAN:`security-scan-skip-edit-rescan`,BASE_WIX_UPDATE_PAYMENT_MODAL_CHROME:`base-wix-update-payment-modal-chrome`,BASE_WIX_FULL_DIFF_MONTHLY_UPGRADE:`base-wix-full-diff-monthly-upgrade`,PLAN_PICKER_UNLIMITED_APPS_COPY:`plan-picker-unlimited-apps-copy`,CODE_EDITING_UPGRADE:`code-editing-upgrade`,CODE_IN_DASHBOARD:`code-in-dashboard`,AGENT_SIDEBAR_UPGRADE:`superagent-sidebar-upgrade`,SUPERAGENT_CHANNELS_BANNER:`superagent-channels-banner`,SUPERAGENT_TEMPLATES:`superagent-templates`,SUPERAGENT_SUBDOMAIN_EXPERIENCE:`superagent-subdomain-experience`,SUPERAGENT_MOBILE_CHANNEL_ONBOARDING:`superagent-mobile-channel-onboarding`,SUPERAGENT_DESKTOP_CHANNEL_ONBOARDING:`superagent-desktop-channel-onboarding`,SUPERAGENT_ONBOARDING_FLOW:`superagent-onboarding-flow`,SUPERAGENT_EMAIL_WORKFLOWS:`superagent-email-workflows`,SUPERAGENT_NEW_EMPTY_STATE:`superagent-new-empty-state`,SUPERAGENT_ONBOARDING_PRICING:`superagent-onboarding-pricing`,USER_ONBOARDING_FUNNEL_V2:`user-onboarding-funnel-v2`,LAUNCHPAD_COMPETITION_PAGE:`launchpad-competition-page`,LAUNCHPAD_MULTI_CONTESTS:`launchpad-multi-contests`,LAUNCHPAD_VOTING_REQUIRES_LIVE_CONTEST:`launchpad-voting-requires-live-contest`,SHOW_PUBLISH_SECURITY_STATUS:`show-publish-security-status`,MOBILE_APP_BUILDER:`mobile-app-builder`,SECURITY_SCAN_HIDE_RESULTS_WHILE_SCANNING:`security-scan-hide-results-while-scanning`,EMAIL_DNS_CONNECT_MODAL:`email-dns-connect-modal`,TOP_BAR_CTA_UPGRADE_APPPAGE:`top-bar-cta-upgrade-apppage`,HOME_SIDEBAR_SEARCH_SETTINGS:`home-sidebar-search-settings`,APP_OWNERSHIP_TRANSFER:`app-ownership-transfer`,TEMPLATES_IN_SIDEBAR:`templates-in-sidebar`,DEPENDENCY_VULN_SCAN_BACKEND:`dependency-vuln-scan-backend`,SECURITY_DEP_REPLACE_WITH_AI:`security-dep-replace-with-ai`,PERSIST_SECURITY_IGNORED_FINDINGS:`persist-security-ignored-findings`,SSO_CUSTOM_DOMAIN_CALLBACK:`sso-custom-domain-callback`,PUBLISH_MODAL_DOMAIN_CTA:`publish-modal-domain-cta`,GOOGLE_ADS:`google-ads`,TIKTOK_ADS:`tiktok-ads`,GOOGLE_ADS_OVERDUE_BANNER:`google-ads-overdue-banner`,GOOGLE_BUSINESS_PROFILE:`google-business-profile`,MARKETING_HOME:`marketing-home`,MARKETING_ACTION_PLAN:`marketing-action-plan`,MARKETING_OS:`marketing-os`,COMMUNITY_MANAGER:`community-manager`,GOOGLE_ADS_LIST_LOCAL_PAINT:`google-ads-list-local-paint`,GOOGLE_ADS_SEARCH_CATEGORIES:`google-ads-search-categories`,GOOGLE_ADS_INCENTIVES:`google-ads-incentives`,GOOGLE_ADS_ACTIVITY_LOG:`google-ads-activity-log`,GOOGLE_ADS_CAMPAIGN_GOALS:`google-ads-campaign-goals`,ANNOUNCEMENTS_ENABLED:`announcements-enabled`,SUPPORT_ADMIN_PAGINATION:`support-admin-pagination`,SUPPORT_MESSAGE_ANALYSIS:`support-message-analysis`,SUPPORT_ESCALATION_CATEGORIES:`support_escalation_categories`,PLAN_MODE_BUILDER:`plan-mode-builder`,PLAN_MODE_AUTO:`plan-mode-auto`,DISCUSS_PLAN_MERGE:`discuss-plan-merge`,PLAN_MODE_AUTO_R3:`plan-mode-auto-r3`,FIRST_PROMPT_QUESTIONS:`first-prompt-questions`,PLAN_MODE_ECOM_AUTO:`plan-mode-ecom-auto`,SESSION_RECORDINGS_ENABLED:`growth-poc-rec
1ordings-enabled`,PAYMENTS_DASHBOARD_TAB:`payments-dashboard-tab`,PAYMENTS_MANAGE_FRAME:`payments-manage-frame`,PAYMENTS_STRIPE_SUBSCRIPTIONS:`payments-stripe-subscriptions`,PAYMENTS_TEST_MODE_UI:`payments-test-mode-ui`,PAYMENTS_TEST_MODE_UI_STRIPE:`payments-test-mode-ui-stripe`,WIX_PAYMENTS_CHECKOUT_LIVE:`wix-payments-checkout-live`,HOME_DASHBOARD_PANEL:`home-dashboard-panel`,ECOM_FIRST_BUILD_CLOSER:`ecom-first-build-closer`,STRUCTURE_PAGE_SUGGESTIONS:`structure-page-suggestions`,HOME_SUPERAGENT_BANNER_PLACEMENT:`home-superagent-banner-placement`,TEMPLATE_REVIEWS_UI:`template-reviews-ui`,TEMPLATE_CATALOG_NEW_TEMPLATE_SLOTS:`template-catalog-new-template-slots`,TEMPLATE_TAXONOMY:`template-taxonomy`,OOC_CLAIM_CREDITS_EXPERIMENT:`ooc-claim-credits-experiment`,HOMEPAGE_PERSONALIZED_HERO:`homepage-personalized-hero`,TOPUP_CREDITS_ENABLED:`topup-credits-enabled`,TOPUP_CREDITS_WIX_ENABLED:`topup-credits-wix-enabled`,BYO_SHARED_CONNECTORS:`byo-shared-connectors`,BASE44_APP_USER_CONNECTORS:`base44-app-user-connectors`,TENZAI_INTEGRATION:`tenzai-integration`,BUILDER_BRANDING_CONTEXT:`builder-branding-context`,HOME_PROMPT_CREATE_DS_ENTRY:`home-prompt-create-ds-entry`,BUILDER_DASHBOARD_CONTEXT:`builder-dashboard-context`,SEND_EMAIL_DOMAIN_NOTICE_CARD:`send-email-domain-notice-card`,BUILDER_PUBLISH_HINT:`builder-publish-hint`,BUY_WIX_ADD_ONS_ON_STRIPE:`buy-wix-add-ons-on-stripe`,UNIFIED_BILLING_PAGES:`unified-billing-pages`,UNIFIED_CREDITS_WALL:`unified-credits-wall`,SUPERAGENT_NEW_LAYOUT:`superagent-new-layout`,SUPERAGENT_MULTI_CONVERSATION_ROUTINES:`superagent-multi-conversation-routines`,SUPERAGENT_BRING_YOUR_OWN_NUMBER:`superagent-bring-your-own-number`,SUPERAGENT_STRUCTURED_MEMORY:`superagent-structured-memory`,SUPERAGENT_NOTES:`superagent-notes`,SUPERAGENT_NOTES_IN_CHAT_PANEL:`superagent-notes-in-chat-panel`,SUPERAGENT_GOALS:`superagent-goals`,SUPERAGENT_CROSS_APP_ACCESS:`superagent-cross-app-access`,REFERRAL_PROGRAM_V2:`referral-program-v2`,MESSAGE_RETRY_FEEDBACK:`message-retry-feedback`,AUTO_PREVIEW_LENS_ENABLED:`auto-preview-lens-enabled`,DS_APP_INTEGRATIONS:`ds-app-integrations`,EMAIL_TEMPLATES_PREVIEW:`email-templates-preview`,APP_SECURITY_CENTER:`app-security-center`,APP_SECURITY_CENTER_APP_ACTIONS:`app-security-center-app-actions`,CANT_RADIO:`cant-radio`,APPEARANCE_THEMES:`appearance-themes`,APPEARANCE_KILL_SWITCH:`appearance-kill-switch`,DATA_TAB_CMS:`data-tab-cms`,APP_SIDEBAR_PINNED_TABS:`app-sidebar-pinned-tabs`,BASE44_STUDIO:`base44-studio`,HOME_NAV_REDESIGN:`home-nav-redesign`,POST_PUBLISH_EXPERIENCE_V2:`post-publish-experience-v2`,EDIT_URL_MODAL_V2:`edit-url-modal-v2`,DOMAIN_SUGGESTION_BANNER:`domain-suggestion-banner`,DOMAIN_BANNER_PAYING_USERS:`domain-banner-paying-users`,BACKOFFICE_ADVANCED_SEARCH:`backoffice-advanced-search`,APP_EMBEDDING_ORIGINS:`app-embedding-origins`,AI_VISIBILITY:`ai-visibility`,PREVIEW_BUILD_STATUS_CHECK:`preview-build-status-check`,POST_PURCHASE_DOMAIN_V3:`post-purchase-domain-v3`,WORKSPACE_HUB:`workspace-hub`,AUTO_APPROVE_SNIPPET_NO_DATA_INLINE:`auto-approve-snippet-no-data-inline`,FULL_DIFF_UPGRADE_VIEW_PLANS:`full-diff-upgrade-view-plans`,OOC_SALE_CARD_COPY:`ooc-sale-card-copy`,SANDBOX_BUNDLED_DEV:`sandbox-bundled-dev`,CHURN_CANCEL_SCREEN_V2:`churn-cancel-screen-v2`,IMPORTED_PR_BANNER_ACTIONS:`imported-pr-banner-actions`},k=new Set([`control`,`baseline`,`holdout`,`null`,``]);function A(){if(typeof window>`u`)return!1;let e=new URLSearchParams(window.location.search);if(e.has(`consent_country`)||e.has(`consent_state`))return!0;let t=e.get(`ff`)?.split(`,`).map(e=>e.trim())??[];try{let e=window.sessionStorage?.getItem(`ff:overrides`)?.split(`,`)??[];t.push(...e.map(e=>e.trim()))}catch{}return t.includes(O.COOKIE_CONSENT_BANNER)}function j(e){return!!e&&!k.has(e.toLowerCase())}function M(e){let t=typeof window<`u`&&window.__APP_CONFIG__?.NATIVE_CONSENT_ENABLED===!0,n=A(),r=!t&&!n&&e(O.NATIVE_CONSENT_OVERRIDE),i=n||r;return{enabled:t||i,forced:i,overridden:r}}function N(){let{getFlagVariantWithoutExposure:e,hasFlagWithoutExposure:t}=$(),{enabled:r}=M(t);return n()||b()||!r?!1:j(e(O.COOKIE_CONSENT_BANNER))||t(O.COOKIE_CONSENT_BANNER)}var P=e(r());function F(){let e=N(),t=D();(0,P.useEffect)(()=>{i()},[]);let r=!n()&&!b()&&e;return c(r),r?t.status===`ready`&&t.choices.analytics===!0:!s()}var I=[`writes_code`,`codes_sometimes`,`new_to_coding`];function L(e){return e?e===`skipped`?`skipped`:I.includes(e)?e:`custom`:null}var R=t({clearWixClientIdSuperProperty:()=>g,default:()=>z,identifyMixPanelUser:()=>h,registerUiLanguageSuperProperty:()=>y,registerWixClientIdSuperProperty:()=>f,setMixPanelUserProperty:()=>p,trackMixPanelEvent:()=>_});function z(){let{user:e,isLoadingAuth:t}
1=x(),{activeWorkspace:n,isLoadingWorkspaces:r}=T(),{platform:i}=E(),a=(0,P.useRef)(n);a.current=n;let s=(0,P.useRef)(i);s.current=i;let c=F(),l=o(),f=(0,P.useRef)(!1);return(0,P.useEffect)(()=>{if(!t){if(!c){f.current=!0,m(!1);return}f.current&&(f.current=!1,m(!0)),d({platform:s.current,onLoaded:()=>{if(e){h(e.id),v.is_staff=typeof e.is_staff==`boolean`?e.is_staff:null;let t={},{params:n}=ee();Object.assign(t,n),t.is_beta=e.is_beta_tester||!1,t.tier=e.subscription_tier||`free`,t.platform=s.current,v.tier=e.subscription_tier||`free`,v.is_staff!==null&&(t.is_staff=v.is_staff),a.current?(v.organization_id=a.current.id,v.user_role=a.current.user_role,t.organization_id=a.current.id,t.user_role=a.current.user_role):(delete v.organization_id,delete v.user_role);let r=L(e.base_code_role);r&&(v.base_code_role=r,t.base_code_role=r),e.feature_flags&&Array.isArray(e.feature_flags)&&(v.feature_flags=e.feature_flags,t.feature_flags=e.feature_flags,e.feature_flags.forEach(e=>{t[`ff_${e}`]=!0})),p(e.id,t)}}})}},[c,l,t,e]),(0,P.useEffect)(()=>{if(!(!u.__loaded||!c)){if(!n){delete v.organization_id,delete v.user_role;return}v.organization_id=n.id,v.user_role=n.user_role,u.people.set({organization_id:n.id,user_role:n.user_role})}},[n,c]),(0,P.useEffect)(()=>{!u.__loaded||!c||(v.platform=i,u.register({platform:i}),u.people.set({platform:i}))},[i,c]),null}var B=new Map,V=!1;function H(e){B.set(`${e.userId}::${e.flagName}`,e),V||(V=!0,l.whenConsented(`analytics`,U))}function U(){let e=[...B.values()];B.clear();for(let t of e)W.trackExposure(t.userId,t.flagName,t.value,t.version)}var W=C({exposuresByUser:{}}).use(w(`featureFlagExposures`,{storage:localStorage,pick:[`exposuresByUser`]})).use(S({wasTracked:(e,t,n,r,i)=>{let a=e.exposuresByUser[t];if(!a||!(n in a))return!1;let o=a[n],s=typeof o==`object`&&o?o.value:o,c=typeof o==`object`&&o?o.version:0;return s===r&&c===i}})).use(te({trackExposure:({store:e},t,n,r,i)=>{if(n&&!e.wasTracked(t,n,r,i)){if(!a()){H({userId:t,flagName:n,value:r,version:i});return}try{_(`Exposure Event`,{flag_name:n,value:r,flag_version:i})}catch{}e.setState(e=>{e.exposuresByUser[t]||(e.exposuresByUser[t]={}),e.exposuresByUser[t][n]={value:r,version:i}})}}})),G=new Set([O.COOKIE_CONSENT_BANNER,O.COMMUNITY_EVENTS,O.AUTH_WEBM_ANIMATION]),K=new Set([`false`,`control`,`baseline`,`holdout`,`null`]),q=`ff:overrides`,J=e=>{let t=e.indexOf(`:`),n=(t===-1?e:e.slice(0,t)).trim();if(!G.has(n))return null;if(t!==-1){let n=e.slice(t+1).trim().toLowerCase();if(!n||K.has(n))return null}return n},Y=()=>{if(typeof window>`u`)return new Set;let e=new Set,t=t=>t?.split(`,`).map(J).filter(e=>e!==null).forEach(t=>e.add(t));t(new URLSearchParams(window.location.search).get(`ff`));try{t(window.sessionStorage?.getItem(q)),e.size>0&&window.sessionStorage?.setItem(q,Array.from(e).join(`,`))}catch{}return e},X=e=>{if(Y().has(e))return!0;if(typeof window>`u`)return!1;let t=window.__APP_CONFIG__?.PRE_AUTH_FLAG_OVERRIDES;return G.has(e)&&!!t?.includes(e)},Z=()=>{if(typeof window>`u`)return new Set;let e=window.__APP_CONFIG__?.PRE_AUTH_FLAGS;return e?new Set(Object.keys(e).filter(t=>e[t]===!0)):new Set},ne=[O.PAYMENTS_TEST_MODE_UI,O.PAYMENTS_TEST_MODE_UI_STRIPE],Q=e=>!ne.includes(e)||typeof window>`u`?!1:window.location.hostname===`localhost`||window.location.hostname===`127.0.0.1`,$=()=>{let e=x()?.user??null,t=e?.feature_flags,n=e?.feature_flag_variants,r=e?.feature_flag_payloads,i=e?.feature_flag_versions,a=e?.feature_flag_overrides,o=e?.feature_flag_no_exposure,s=e?.id,c=(0,P.useRef)(null);c.current===null&&(c.current=Y());let l=c.current,u=(0,P.useRef)(null);u.current===null&&(u.current=Z());let d=u.current,f=(0,P.useCallback)(e=>s&&!a?.includes(e)&&!o?.includes(e)?s:null,[s,a,o]);return{hasFlag:(0,P.useCallback)(n=>{let r=t?.includes(n)||l.has(n)||Q(n)||!e&&d.has(n),a=f(n);return a&&W.trackExposure(a,n,r,i?.[n]??0),r},[t,e,i,l,d,f]),hasFlagWithoutExposure:(0,P.useCallback)(n=>t?.includes(n)||l.has(n)||Q(n)||!e&&d.has(n),[t,e,l,d]),getFlagVariant:(0,P.useCallback)(e=>{let t=n?.[e]??null,r=t===null?null:f(e);return r&&W.trackExposure(r,e,t,i?.[e]??0),t},[n,i,f]),getFlagVariantWithoutExposure:(0,P.useCallback)(e=>n?.[e]??null,[n]),getFlagPayload:(0,P.useCallback)(e=>{let t=r?.[e]??null,n=t===null?null:f(e);
1if(n){let r=typeof t==`string`||typeof t==`boolean`?t:`complex_payload`;W.trackExposure(n,e,r,i?.[e]??0)}return t},[r,i,f])}};export{R as a,j as c,O as d,z as i,M as l,X as n,I as o,W as r,F as s,$ as t,N as u};

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.