"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[1300],{3151:(t,s,i)=>{i.d(s,{L:()=>r});class r{constructor(t){this.container=t,this.type="external"}}},1300:(t,s,i)=>{i.r(s),i.d(s,{Push:()=>n,loadExternalPushInteraction:()=>o});var r=i(3151),a=i(5302),e=i(4684);class n{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=(0,a.Cs)(t)}load(t){if(!t)return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map((t=>t))),this.groups.length||(this.default=!0);const s=t.quantity??t.particles_nb;void 0!==s&&(this.quantity=(0,a.Cs)(s))}}class u extends r.L{constructor(t){super(t),this.handleClickMode=t=>{if("push"!==t)return;const s=this.container,i=s.actualOptions.interactivity.modes.push;if(!i)return;const r=(0,a.Gu)(i.quantity);if(r<=0)return;const n=(0,e.c8)([void 0,...i.groups]),u=void 0!==n?s.actualOptions.particles.groups[n]:void 0;s.particles.push(r,s.interactivity.mouse,u,n)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(t,...s){t.push||(t.push=new n);for(const i of s)t.push.load(i?.push)}reset(){}}async function o(t,s=!0){await t.addInteractor("externalPush",(t=>new u(t)),s)}}}]);