"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[2342],{3151:(t,e,r)=>{r.d(e,{L:()=>s});class s{constructor(t){this.container=t,this.type="external"}}},2342:(t,e,r)=>{r.r(e),r.d(e,{Remove:()=>a,loadExternalRemoveInteraction:()=>o});var s=r(3151),n=r(5302);class a{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=(0,n.Cs)(t)}load(t){if(!t)return;const e=t.quantity??t.particles_nb;void 0!==e&&(this.quantity=(0,n.Cs)(e))}}class i extends s.L{constructor(t){super(t),this.handleClickMode=t=>{const e=this.container,r=e.actualOptions;if(!r.interactivity.modes.remove||"remove"!==t)return;const s=(0,n.Gu)(r.interactivity.modes.remove.quantity);e.particles.removeQuantity(s)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(t,...e){t.remove||(t.remove=new a);for(const r of e)t.remove.load(r?.remove)}reset(){}}async function o(t,e=!0){await t.addInteractor("externalRemove",(t=>new i(t)),e)}}}]);