import{getContext as e,getElement as o,store as t}from"@wordpress/interactivity";t("woocommerce-bookings/booking-team-member-selector",{actions:{handleSelectTeamMember:o=>{const t=o.target,a=e("woocommerce-bookings/booking-form"),m=t?.value?parseInt(t.value,10):null,r=Number.isNaN(m)?null:m;a.selectedTeamId!==r&&(a.selectedTeamId=r,a.needsInitialBuffer=!0)}},callbacks:{teamMemberInit:()=>{const t=o()?.ref;if(!t?.value)return;const a=e("woocommerce-bookings/booking-form");a.selectedTeamId||(a.selectedTeamId=parseInt(t.value,10))}}});