1import{j as e}from"./jsx-runtime-kF-aRxYe.js";import{g as y,l as k}from"./list-DFXFpvgh.js";import{L as h}from"./Layout-BAcNQvwh.js";import{C as b}from"./Card-S6K8GLCp.js";import{B as f,T as o,d as p,b as m,I as S,h as C,c as x}from"./Page-RCHDyLd1.js";import{C as R}from"./ChoiceList-BCFkQvtH.js";import{C as G}from"./Checkbox-BPrTdIr3.js";import{I as v}from"./Modal-DoQWO5ot.js";import"./context-ClUtXUi6.js";import"./components-Bg6F3iAF.js";import"./RadioButton-C4KQHPdA.js";import"./context-DqE-dl7J.js";import"./XIcon.svg-BFgNHS0e.js";function H({shop:w,formData:t,handleFocus:l,handleChange:n,handleColorChange:W,translations:d,currentLanguage:u}){const r=(s,_)=>{if(!d||!u)return _;const c=s.split(".");if(d[u]){let i=d[u];for(const a of c)if(i&&i[a])i=i[a];else break;if(i&&typeof i=="string")return i}if(u!=="fr"&&d.fr){let i=d.fr;for(const a of c)if(i&&i[a])i=i[a];else break;if(i&&typeof i=="string")return i}if(u!=="en"&&d.en){let i=d.en;for(const a of c)if(i&&i[a])i=i[a];else break;if(i&&typeof i=="string")return i}return _},g=[{id:"Grid_view",label:r("featured.gridView","Grid View"),imgSrc:y},{id:"List_view",label:r("featured.listView","List View"),imgSrc:k}],j=()=>{window.open(`https://admin.shopify.com/store/${w.replace(".myshopify.com","")}/admin/themes/current/editor?&addAppBlockId=8177ef1b-fb1c-4ebb-a686-d743f22ea714/featuredreviews&target=newAppsSection`,"__blank")};return e.jsxs(e.Fragment,{children:[e.jsx(h.Section,{children:e.jsx(b,{roundedAbove:"sm",children:e.jsxs(f,{gap:"400",children:[e.jsx(o,{variant:"headingSm",as:"h6",fontWeight:"semibold",children:r("featured.Layout","Layout")}),e.jsx("div",{className:"img-choicelist",children:e.jsx(R,{title:r("featured.Reviews","Reviews"),choices:g.map(s=>({label:e.jsxs("span",{className:t.featured_reviews_layout==s.id?"labelchecked labelmain":"labelmain",children:[s.label,e.jsx("img",{src:s.imgSrc,alt:s.label})]}),value:s.id})),selected:t.featured_reviews_layout?[t.featured_reviews_layout]:[],onChange:s=>{l("featured_reviews_layout"),n(s,"featured_reviews_layout")},helpText:r("featured.helptext","Choose the layout for your featured reviews")})}),e.jsx(G,{label:r("featured.bars","Show filter bars"),checked:t.featured_show_filterbar,onChange:s=>{l("featured_show_filterbar"),n(s,"featured_show_filterbar")},helpText:r("featured.helptext2","Display filter bars to help customers find specific reviews")})]})})}),e.jsx(h.Section,{children:e.jsx(b,{roundedAbove:"sm",children:e.jsxs(f,{gap:"400",children:[e.jsx(o,{variant:"headingSm",as:"h6",fontWeight:"semibold",children:r("featured.Number","Number of Reviews")}),e.jsx(p,{background:"bg-surface-secondary",padding:"200",borderRadius:"200",children:e.jsxs(f,{gap:"200",children:[e.jsx(o,{variant:"headingSm",as:"h6",fontWeight:"semibold",children:r("featured.Desktop","Desktop")}),e.jsxs(v,{columns:{sm:"2"},gap:200,children:[e.jsx(m,{type:"number",label:r("featured.Reviews3","Minimum reviews"),value:t.featured_desktop_min_reviews,onChange:s=>{l("featured_desktop_min_reviews"),n(s,"featured_desktop_min_reviews")}}),e.jsx(m,{type:"number",label:r("featured.Reviews4","Maximum reviews"),value:t.featured_desktop_max_reviews,onChange:s=>{l("featured_desktop_max_reviews"),n(s,"featured_desktop_max_reviews")}})]})]})}),e.jsx(p,{background:"bg-surface-secondary",padding:"200",borderRadius:"200",children:e.jsxs(f,{gap:"200",children:[e.jsx(o,{variant:"headingSm",as:"h6",fontWeight:"semibold",children:r("featured.Mobile","Mobile")}),e.jsxs(v,{columns:{sm:"2"},gap:200,children:[e.jsx(m,{type:"number",label:r("featured.Reviews5","Minimum reviews"),value:t.featured_mobile_min_reviews,onChange:s=>{l("featured_mobile_min_reviews"),n(s,"featured_mobile_min_reviews")}}),e.jsx(m,{type:"number",label:r("featured.Reviews6","Maximum reviews"),value:t.featured_mobile_max_reviews,onChange:s=>{l("featured_mobile_max_reviews"),n(s,"featured_mobile_max_reviews")}})]})]})})]})})}),e.jsx(h.Section,{children:e.jsx(b,{roundedAbove:"sm",children:e.jsxs(f,{gap:"400",children:[e.jsx(o,{variant:"headingSm",as:"h6",fontWeight:"semibold",children:r("featured.Position","Position")}),e.jsx(p,{background:"bg-surface-secondary",padding:"300",borderRadius:"200",children:e.jsxs(f,{gap:200,children:[e.jsx(o,{variant:"headingSm",as:"h6",fontWeight:"semibold",children:r("featured.Place","Place")}),e.jsx(o,{variant:"headingSm",as:"p",fontWeight:"regular",tone:"subdued",children:r("featured.choose","Choose where to place your featured reviews")}),e.jsx(S,{align:"start",children:e.jsxs(C,{children:[e.jsx(x,{onClick:j,accessibilityLabel:"Go to editor",children:r("featured.Go","Go to editor")}),e.jsx(x,{variant:"plain",children:r("featured.learn","Learn more")})]})})]})})]})})})]})}export{H as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.