import{o as a}from"./rolldown-runtime-iuO8RvI4.js";import{Ll as i,Vm as o,zm as t}from"./shared-0-C4kdVF7Y.js";import{Mi as n}from"./vendor-frame-CwiylG4Y.js";import{Mp as e,Up as s}from"./shared-1-3-6x7RKF.js";import{Go as r}from"./shared-5-UQAFGbWu.js";var c=a(n());function l(a,t={}){const{activeOrganization:n}=i(),e=n?.uuid,s=(0,c.useMemo)(()=>{if(!e)return null;const i=new URLSearchParams({query:a,country_code:"USA"});return`/api/organizations/${e}/chalk/verification/schools?${i.toString()}`},[e,a]);return o(s??"",{queryKey:["chalk-schools",e,a],enabled:(t.enabled??!0)&&!!s&&a.trim().length>=2,staleTime:3e4,meta:{noToast:!0}})}function u(){const{activeOrganization:a}=i(),o=a?.uuid;return t(`/api/organizations/${o??""}/chalk/verification/start`,"POST",{enabled:!!o,meta:{noToast:!0}})}var d="chalk-verification-status";function m(a){const{activeOrganization:t}=i(),n=t?.uuid;return o(`/api/organizations/${n??""}/chalk/verification/status`,{queryKey:[d,n],enabled:!!n&&!1!==a?.enabled,staleTime:6e4,meta:{noToast:!0}})}function v(a){return!a.bypass&&a.validation_invite_id&&a.goodstack_publishable_key&&a.goodstack_base_url?{goodstackBaseUrl:a.goodstack_base_url,goodstackPublishableKey:a.goodstack_publishable_key,validationInviteId:a.validation_invite_id}:null}function f(){const{activeOrganization:a}=i(),o=a?.uuid;return t(`/api/organizations/${o??""}/chalk/verification`,"POST",{enabled:!!o,meta:{noToast:!0}})}function b(){const a=e(),{memoryOn:i}=r(),{isAvailable:o}=s();return a?i:o}export{l as a,m as i,d as n,u as o,v as r,f as s,b as t};