const e="Demo products list",t="inventory_2",a="name",r=[{id:"title",label:"Title",type:"string"},{id:"content",label:"Promo text",type:"markdown",resultType:"markdown"},{id:"products",label:"Products",type:"list",default:[],displayField:"product.name",element:[{id:"culture",label:"Culture",type:"select",default:"en-US",request:{url:"/graphql",method:"post",body:{operationName:null,variables:{},query:'{store(storeId:"{{location.params.storeId}}"){availableLanguages{cultureName}}}'},cacheable:!0,response:{result:"data.store.availableLanguages"},label:"cultureName",value:"cultureName"}},{id:"currency",label:"Currency",type:"select",default:"USD",request:{url:"/graphql",method:"post",body:{operationName:null,variables:{},query:'{store(storeId:"{{location.params.storeId}}"){availableCurrencies{code}}}'},cacheable:!0,response:{result:"data.store.availableCurrencies"},label:"code",value:"code"}},{id:"product",label:"Product",type:"select",equalKey:"id",searchable:!0,request:{url:"/graphql",method:"post",body:{operationName:null,variables:{},query:'{products(storeId:"{{location.params.storeId}}",cultureName:"{{element.culture}}",currencyCode:"{{element.currency}}",query:"{{__searchQuery}}"){items{id,code,name,imgSrc,prices{currency,list{formattedAmount}}}}}'},cacheable:!0,response:{result:"data.products.items"},label:"name"}}]}],l={name:e,icon:t,displayField:a,settings:r};export{l as default,a as displayField,t as icon,e as name,r as settings};
//# sourceMappingURL=__demo-product-list-CDD00zJH.js.map
