import e from"../../configs/FeraReviews.js";import a from"./uiV1.js";import t from"./uiV2.js";import{get3rdPartyInstallLink as l}from"../../common/helpers.js";let config={tag:e.tag,label:e.label,icon:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${e.logoUrl}?width=22&height=22">`,editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:{en:e.label},hideTextContent:!0,icon:{desktop:`
        <div class="w-full flex flex-col items-center">
          <img class="w-24 border border-dark-200 rounded-medium" src="${e.logoUrl}?width=22&height=22">
          <span class="preset-item-title">${e.label}</span>
        </div>
      `},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:l({handle:"fera"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/fera-reviews",appName:e.label},{id:"feraVersion",label:"Choose widget",type:"select",default:"V3",options:[{label:"Version 2.0",value:"V2"},{label:"Version 3.0",value:"V3"}]},{id:"widgetType",label:"Choose widget",type:"select",default:"allReviews",options:[{label:"All Reviews",value:"allReviews"},{label:"Product Reviews",value:"productReviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC"]},{label:"Testimonial Carousel",value:"testimonialCarousel"},{label:"Average Store Rating Badge",value:"averageStoreRatingBadge"},{label:"In Store Media",value:"inStoreMedia"},{label:"Average Rating Badge",value:"averageRatingBadge",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC"]},{label:"Product Page Media",value:"productPageMedia",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC"]}]},{id:"widgetTypeV3",label:"Choose widget",type:"select",default:"productDetailRating",options:[{label:"Product Rating",value:"productDetailRating",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC"],flowTag:["Product","ProductList","ProductListV3"],condition:"or"},{label:"Product Reviews List",value:"productReviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC"],flowTag:["Product","ProductList","ProductListV3"],condition:"or"},{label:"All Reviews List",value:"allReviews"},{label:"Media Gallery",value:"mediaGallery"},{label:"Testimonial Carousel (Deprecated)",value:"testimonialCarousel"},{label:"Product Collection Rating (Deprecated)",value:"productCollectionRating",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_PRODUCT","GP_INDEX","GP_STATIC"],flowTag:["ProductList","ProductListV3"],condition:"or"},{label:"Other",value:"otherWidget"}]},{id:"productReviewsCode",type:"input",label:"Container ID",default:""},{id:"testimonialCarouselCode",type:"input",label:"Container ID",default:""},{id:"allReviewsCode",type:"input",label:"Container ID",default:""},{id:"averageStoreRatingBadgeCode",type:"input",label:"Container ID",default:""},{id:"inStoreMediaCode",type:"input",label:"Container ID",default:""},{id:"averageRatingBadgeCode",type:"input",label:"Container ID",default:""},{id:"productPageMediaCode",type:"input",label:"Container ID",default:""},{id:"otherWidgetCode",type:"textarea",label:"HTML Tag",default:"",autoHeight:!0},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:a,uiV2:t};export{config as default};
