"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Opinew=require("../../configs/Opinew.js"),uiV2=require("./uiV2.js"),helpers=require("../../common/helpers.js");const WidgetOptions=[{label:"Reviews",value:"reviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_COLLECTION","GP_INDEX"],flowTag:["Product","ProductList","ProductListV3"],condition:"or"},{label:"Star Badge",value:"badge",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_COLLECTION","GP_INDEX"],flowTag:["Product","ProductList","ProductListV3"],condition:"or"},{label:"Star Badge in Collection",value:"badgeCollection",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_COLLECTION","GP_INDEX"],flowTag:["Product","ProductList","ProductListV3"],condition:"or"},{label:"Carousel",value:"carousel"},{label:"All Reviews",value:"allReviews"},{label:"All Reviews badge",value:"allReviewsBadge"}],config={tag:Opinew.default.tag,label:Opinew.default.label,icon:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${Opinew.default.logoUrl}?width=22&height=22">`,editorConfigs:{component:{isThirdParty:!0}},presets:[{id:Opinew.default.id,name:Opinew.default.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="${Opinew.default.logoUrl}?width=22&height=22">
          <span class="preset-item-title">${Opinew.default.label}</span>
        </div>
      `},components:[{tag:Opinew.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:helpers.get3rdPartyInstallLink({handle:"opinew-product-reviews-app-ugc-v7"}),appName:Opinew.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/photo-reviews",appName:Opinew.default.label},{id:"widgetType",label:"Choose widget",type:"select",default:"reviews",options:WidgetOptions},{id:"design",label:"design",type:"select",default:"opinew_badge_wide_average",options:[{label:"Wide Average",value:"opinew_badge_wide_average"},{label:"Small",value:"opinew_badge_small"},{label:"Wide",value:"opinew_badge_wide"}]},{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:[],uiV2:uiV2.default};exports.WidgetOptions=WidgetOptions,exports.default=config;
