"use strict";(self.webpackChunk_klaviyo_onsite_modules=self.webpackChunk_klaviyo_onsite_modules||[]).push([[7542],{31242:function(n,e,o){var t=o(45933),r=(o(19986),o(60873),o(7739)),i=o(5762),a=o(32681);const s=(n,e,o)=>{const{_kx:t}=e;return(0,i.W)((()=>(({companyId:n,groupIds:e,_kx:o})=>{const t=e.sort();return fetch(`https://a.klaviyo.com/client/groups/?company_id=${n}${((n,e)=>`&filter=any(id,[${n.map((n=>`"${n}"`)).join(",")}]),equals(profile._kx,"${e}")`)(t,o)}`,{method:"GET",headers:Object.assign({"Access-Control-Allow-Headers":"*","Content-Type":"application/json"},(0,r.h)(),{revision:"2024-10-15"})})})({companyId:n,_kx:t,groupIds:o})),5,1e3+1e3*Math.random(),[429]).then((n=>n.json()))},c=(n,e)=>{if(!n||!Array.isArray(n))throw new Error("Invalid Input");window.klaviyo.isIdentified().then((()=>{let{$exchange_id:o}=(0,a.zy)();o||({_kx:o}=(0,a.oQ)()),o&&0!==n.length?window.klaviyo.account().then((n=>n||window.__klKey)).then((e=>{if(e&&o)return s(e,{_kx:o},n);throw new Error})).then((n=>{const{data:o}=n;e&&e(o.map((n=>n.id)))})).catch((()=>{e&&e([])})):e([])}))};(()=>{(0,t.e)("getGroupMembership",c)})()}},function(n){n.O(0,[2462],(function(){return e=31242,n(n.s=e);var e}));n.O()}]);