import{_ as a}from"./main-tangy-colts-beg.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,r){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,r),r)}};const c=async t=>{if(t.setComponent("row-data",e=>{e.loading=!0}),!await t.getConnection()){t.setComponent("row-data",e=>{e.loading=!1});return}const l=[{key:"email",label:a("Email"),required:!1},{key:"phone_number",label:a("Phone Number"),required:!1},{key:"firstName",label:a("First Name"),required:!1},{key:"lastName",label:a("Last Name"),required:!1},{key:"country",label:a("Country"),required:!1},{key:"countryCode",label:a("Country Code"),required:!1},{key:"state",label:a("State"),required:!1},{key:"city",label:a("City"),required:!1},{key:"address",label:a("Address"),required:!1},{key:"postalCode",label:a("Postal Code"),required:!1},{key:"gender",label:a("Gender"),required:!1},{key:"birthdate",label:a("Birth Date"),required:!1}];t.setComponent("row-data",e=>{if(!t.util.isRepeaterFieldComponent(e))return;const o=e.fieldsMetaData[0],s=l==null?void 0:l.map(n=>({label:n.label,value:n.key}));o.options=s,console.error(o.options),e.loading=!1})},d=async t=>{if(t.setComponent("event-data",e=>{e.loading=!0}),!await t.getConnection()){t.setComponent("event-data",e=>{e.loading=!1});return}const l=[{key:"eventName",label:a("EventName"),required:!1},{key:"eventID",label:a("Event Id"),required:!1},{key:"origin",label:a("Origin"),required:!1},{key:"email",label:a("Email"),required:!1},{key:"phone",label:a("Phone"),required:!1}];t.setComponent("event-data",e=>{if(!t.util.isRepeaterFieldComponent(e))return;const o=e.fieldsMetaData[0],s=l==null?void 0:l.map(n=>({label:n.label,value:n.key}));o.options=s,console.error(o.options),e.loading=!1})},u=async t=>{if(t.setComponent("product-data",e=>{e.loading=!0}),!await t.getConnection()){t.setComponent("product-data",e=>{e.loading=!1});return}const l=[{key:"id",label:a("ID"),required:!1},{key:"title",label:a("Title"),required:!1},{key:"currency",label:a("Currency"),required:!1},{key:"variants",label:a("variants"),required:!1},{key:"url",label:a("Url"),required:!1},{key:"status",label:a("Status"),required:!1}];t.setComponent("product-data",e=>{if(!t.util.isRepeaterFieldComponent(e))return;const o=e.fieldsMetaData[0],s=l==null?void 0:l.map(n=>({label:n.label,value:n.key}));o.options=s,console.error(o.options),e.loading=!1})};export{c as a,d as b,u as f};
