JezK
Edit File: index.js
!function(){"use strict";var e,t={625:function(e,t,s){var i=window.wp.i18n,a=window.wp.apiFetch,n=s.n(a),r=window.wp.data;const l="site-reviews/store/v2";var o=e=>{if(!(0,r.select)(e)){const t=(0,r.createReduxStore)(e,{actions:{set:(e,t,s)=>({type:"SET",key:e,endpoint:t,values:s})},controls:{},reducer:(e={},t)=>"SET"===t.type?{...e,[t.key]:{...e[t.key],[t.endpoint]:t.values}}:e,selectors:{get:(e,t,s)=>e[t]?.[s]||[]}});(0,r.register)(t)}return e},c=window.wp.components,d=window.wp.url,u=window.wp.compose,m=window.wp.element,p=window.ReactJSXRuntime,x=e=>{const{endpoint:t,help:s,label:a,onChange:x,placeholder:_,prefetch:h=!1,storeName:g=l,value:v}=e,[w,f]=(0,m.useState)(!1),[b,y]=(0,m.useState)(!1),[j,S]=(0,m.useState)(""),[C,N]=(0,m.useState)([]),[k,M]=(0,m.useState)(new Map),R=(0,m.useRef)(!1),T=o(g),O=(0,r.useSelect)(e=>e(T).get("suggestedValues",t),[]),{set:B}=(0,r.useDispatch)(T),L=()=>({path:(0,d.addQueryArgs)(t,{include:v.join(","),search:j})}),D=e=>({id:String(e.id),title:e.title,value:isNaN(parseFloat(e.id))?e.title:`${e.id}: ${e.title}`}),z=e=>{e.map((t,s)=>{if("string"==typeof t){const i=O.find(e=>e.value===t);i&&(e[s]=i)}return t}),S(""),N(e),x(e.map(e=>e.id))},H=({item:e})=>{const t=k.get(e);if(!t)return null;const{id:s,title:i}=t,a=(e=>{const t=j.toLocaleLowerCase();if(0===t.length)return null;const s=e.toLocaleLowerCase().indexOf(t);return{afterMatch:e.substring(s+t.length),beforeMatch:e.substring(0,s),match:e.substring(s,s+t.length)}})(i);return(0,p.jsxs)(c.__experimentalHStack,{children:[a?(0,p.jsxs)(c.__experimentalText,{color:"inherit",numberOfLines:1,"aria-label":i,children:[a.beforeMatch,(0,p.jsx)("strong",{className:"components-form-token-field__suggestion-match",children:a.match}),a.afterMatch]}):(0,p.jsx)(c.__experimentalText,{color:"inherit",children:i}),(0,p.jsx)(c.__experimentalText,{color:"inherit",size:"small",style:{flexShrink:0,opacity:"0.5"},children:s})]})},A=e=>O.some(t=>t.value===e),E=(0,u.useDebounce)(async()=>{if(!(j.length<2)){y(!0);try{const e=await n()(L());B("suggestedValues",t,e.map(D))}finally{y(!1)}}},250),F=(0,m.useMemo)(()=>{const e=O.some(e=>!C.some(t=>t.id===e.id));return j.length>1||e},[j,C,O]);return(0,m.useEffect)(()=>{(async()=>{if(!R.current)if(O.length||!v.length&&!h){if(R.current=!0,O.length&&v.length){const e=O.filter(e=>v.includes(e.id));N(e)}}else{f(!0);try{const e=await n()(L());R.current=!0;const s=[],i=[];e.forEach(e=>{const t=D(e);s.push(t),v.includes(t.id)&&i.push(t)}),N(i),B("suggestedValues",t,s)}finally{f(!1)}}})()},[]),(0,m.useEffect)(()=>{E()},[j]),(0,m.useEffect)(()=>{M(new Map(O.map(e=>[e.value,e])))},[O]),(0,p.jsxs)(c.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,p.jsx)(c.Animate,{type:w||b?"loading":void 0,children:({className:e})=>(0,p.jsx)(c.FormTokenField,{__experimentalExpandOnFocus:F,__experimentalRenderItem:H,__experimentalShowHowTo:!1,__experimentalValidateInput:A,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:e,disabled:w,label:a||"",onChange:z,onInputChange:S,placeholder:_||(0,i._x)("Search...","admin-text","site-reviews"),suggestions:O.map(e=>e.value),value:C})}),s&&(0,p.jsx)(c.__experimentalText,{variant:"muted",size:"small",children:s})]})},_=e=>{const{endpoint:t,help:s,onChange:a,options:x,placeholder:_,prefetch:h=!1,storeName:g=l,value:v,...w}=e,[f,b]=(0,m.useState)(!1),[y,j]=(0,m.useState)(!1),[S,C]=(0,m.useState)(""),N=(0,m.useRef)(!1),k=(0,m.useRef)(!0),M=o(g),R=(0,r.useSelect)(e=>e(M).get("options",t),[]),{set:T}=(0,r.useDispatch)(M),O=()=>({path:(0,d.addQueryArgs)(t,{include:v,search:S})}),B=(0,u.useDebounce)(C,250),L=e=>({label:isNaN(parseFloat(e.id))?e.title:`${e.id}: ${e.title}`,title:e.title,value:String(e.id)}),D=({item:e})=>{const{title:t,value:s}=e,i=(e=>{const t=S.toLocaleLowerCase();if(0===t.length)return null;const s=e.toLocaleLowerCase().indexOf(t);return{afterMatch:e.substring(s+t.length),beforeMatch:e.substring(0,s),match:e.substring(s,s+t.length)}})(t);return(0,p.jsxs)(c.__experimentalHStack,{children:[i?(0,p.jsxs)(c.__experimentalText,{color:"inherit",numberOfLines:1,"aria-label":t,children:[i.beforeMatch,(0,p.jsx)("strong",{className:"components-form-token-field__suggestion-match",children:i.match}),i.afterMatch]}):(0,p.jsx)(c.__experimentalText,{color:"inherit",children:t}),(0,p.jsx)(c.__experimentalText,{color:"inherit",size:"small",style:{flexShrink:0,opacity:"0.5"},children:s})]})};return(0,m.useEffect)(()=>{(async()=>{if(!N.current)if(R.length||!v&&!h)N.current=!0;else{b(!0);try{const e=await n()(O());N.current=!0,T("options",t,e.map(L))}finally{b(!1)}}})()},[]),(0,m.useEffect)(()=>{(async()=>{if(S.length<2||k.current)k.current=!1;else{j(!0);try{const e=await n()(O());T("options",t,e.map(L))}finally{j(!1)}}})()},[S]),(0,p.jsxs)(c.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,p.jsx)(c.Animate,{type:f||y?"loading":void 0,children:({className:e})=>(0,p.jsx)(c.ComboboxControl,{__experimentalRenderItem:D,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,allowReset:!0,className:e,expandOnFocus:!1,options:R,onChange:a,onFilterValueChange:B,placeholder:_||(0,i._x)("Search...","admin-text","site-reviews"),value:v,...w})}),s&&(0,p.jsx)(c.__experimentalText,{variant:"muted",size:"small",children:s})]})},h=window.wp.styleEngine;const g=e=>({label:e.title||String(e.id),value:String(e.id)}),v=(e,t,s="currentColor")=>e?(0,h.getCSSValueFromRawStyle)(`var:preset|color|${e}`).replace(/^var\((.+)\)$/,`var($1, ${t||s})`):t||"";var w=e=>{const{endpoint:t,onChange:s,storeName:i=l,value:a,...d}=e,{checked:u,label:__,...x}=d,[_,h]=(0,m.useState)(!1),v=o(i),w=(0,r.useSelect)(e=>e(v).get("options",t),[]),{set:f}=(0,r.useDispatch)(v);return(0,m.useEffect)(()=>{w.length||(h(!0),n()({path:t}).then(e=>{f("options",t,e.map(g))}).finally(()=>{h(!1)}))},[]),(0,p.jsxs)(c.BaseControl,{__nextHasNoMarginBottom:!0,children:[!_&&w.map(e=>(0,p.jsx)(c.ToggleControl,{__nextHasNoMarginBottom:!0,label:e.label,checked:a.includes(e.value),onChange:t=>((e,t)=>{const i=t?[...a,e]:a.filter(t=>t!==e);s(i)})(e.value,t),...x},e.value)),_&&(0,p.jsx)(c.Spinner,{})]})},f=e=>(0,p.jsxs)(c.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,...e,children:[(0,p.jsx)(c.__experimentalToggleGroupControlOption,{value:0,label:(0,i._x)("No","admin-text","site-reviews")}),(0,p.jsx)(c.__experimentalToggleGroupControlOption,{value:1,label:(0,i._x)("Yes","admin-text","site-reviews")})]}),b=window.wp.blockEditor,y=e=>{const{attributeName:t,label:s,props:i}=e,{attributes:a,clientId:n,setAttributes:r}=i,l=(0,b.__experimentalUseMultipleOriginColorsAndGradients)(),o=`${t}_custom`,c=`set${t.charAt(0).toUpperCase()}${t.slice(1)}`,d=a[o],u=i[t],m=i[c];return(0,p.jsx)(b.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,panelId:n,settings:[{clearable:!0,colorValue:u?.color||d,isShownByDefault:!0,label:s,onColorChange:e=>{r({[o]:e}),m(e)},resetAllFilter:()=>({[t]:"",[o]:""})}],...l})},j=e=>{const{attributeName:t,defaultValue:s="1em",help:i,isLarge:a=!1,label:n,props:r,units:l}=e,{attributes:o,setAttributes:d}=r,u=o[t];return(0,p.jsx)(c.__experimentalToolsPanelItem,{hasValue:()=>u!==s,isShownByDefault:!0,label:n,onDeselect:()=>d({[t]:s}),style:{gridColumn:"span "+(a?2:1)},children:(0,p.jsx)(c.__experimentalUnitControl,{__next40pxDefaultSize:!0,help:i,isResetValueOnUnitChange:!0,label:n,min:0,onChange:e=>d({[t]:e}),units:l,value:u})})},S=e=>{const{endpoint:t,fallback:s=null,help:a,hideIfEmpty:d=!1,options:u,placeholder:x,storeName:_=l,...h}=e,[v,w]=(0,m.useState)(!1),f=o(_),b=(0,r.useSelect)(e=>e(f).get("options",t)||[],[t,f]),{set:y}=(0,r.useDispatch)(f),j=({item:e})=>{const{label:t,value:s}=e;return(0,p.jsxs)(c.__experimentalHStack,{children:[(0,p.jsx)(c.__experimentalText,{color:"inherit",children:t}),(0,p.jsx)(c.__experimentalText,{color:"inherit",size:"small",style:{flexShrink:0,opacity:.5},children:s})]})};return(0,m.useEffect)(()=>{(async()=>{if(!b.length){w(!0);try{const e=await n()({path:t});y("options",t,e.map(g))}finally{w(!1)}}})()},[t]),0===b.length&&(s||d)?v?null:s:(0,p.jsxs)(c.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,p.jsx)(c.Animate,{type:v?"loading":void 0,children:({className:e})=>(0,p.jsx)(c.ComboboxControl,{__experimentalRenderItem:j,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,allowReset:!0,className:e,expandOnFocus:!1,options:b,placeholder:x||(0,i._x)("Select...","admin-text","site-reviews"),...h})}),a&&(0,p.jsx)(c.__experimentalText,{variant:"muted",size:"small",children:a})]})},C=window.wp.serverSideRender,N=s.n(C),k=window.wp.hooks;const M=({children:e,showLoader:t})=>e?(0,p.jsxs)("div",{style:{position:"relative"},children:[t&&(0,p.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-9px",marginLeft:"-9px"},children:(0,p.jsx)(c.Spinner,{})}),(0,p.jsx)("div",{style:{opacity:t?"0.3":1},children:e})]}):(0,p.jsxs)("div",{className:"block-editor-warning",children:[(0,p.jsx)(c.Spinner,{style:{marginBlockStart:0,marginInlineStart:0}}),(0,p.jsx)("p",{className:"block-editor-warning__message",children:(0,i._x)("Loading block...","admin-text","site-reviews")})]}),R={display:(0,i._x)("Display","admin-text","site-reviews"),hide:(0,i._x)("Hide","admin-text","site-reviews"),settings:(0,i._x)("Settings","admin-text","site-reviews"),text:(0,i._x)("Text","admin-text","site-reviews")},T=["advanced","background","bindings","block","border","color","default","dimensions","effects","filter","list","position","styles","typography"];var O,B=({className:e="ssr",controls:t={},panels:s={},props:i,style:a={},styleClassNames:n=[]})=>{const{attributes:r,name:l}=i,o=l.replace("/",".");(0,k.doAction)("site-reviews.blocks.edit",i);const d=(0,m.useRef)(r);d.current=r;const x=(0,u.useRefEffect)(t=>{const s=new MutationObserver((s,i)=>{for(let i of s)for(let s of i.addedNodes)if("DIV"==s.tagName&&s.classList.contains(e)){const e=s.firstElementChild,i=t?.ownerDocument?.defaultView;e.classList.add("glsr-"+window.getComputedStyle(e,null).getPropertyValue("direction")),i?.GLSR_init&&i.GLSR_init(`block:${l}`,e,d.current)}});return s.observe(t,{childList:!0,subtree:!0}),()=>{s.disconnect()}},[]),_=(0,m.useMemo)(()=>(0,p.jsx)(N(),{attributes:r,block:l,className:e,LoadingResponsePlaceholder:M}),[r]),h=(0,m.useMemo)(()=>(0,k.applyFilters)("site-reviews.blocks.controls",t,i),[t,i,o]),g=(0,m.useMemo)(()=>(0,k.applyFilters)("site-reviews.blocks.panels",s,i),[s,i,o]),v=(0,m.useMemo)(()=>(0,k.applyFilters)("site-reviews.blocks.style",a,i),[a,i,o]),w=(0,m.useMemo)(()=>(0,k.applyFilters)("site-reviews.blocks.style_classnames",n,i),[n,i,o]),f=Object.entries(g).reduce((e,[t,s])=>{const i=T.includes(s.group||t)?s.group||t:"default",a={...s,controls:Array.isArray(s.controls)?s.controls:[],title:s.title||R[t]||null};return 0===a.controls.length||(e[i]=e[i]||{},e[i][t]=a),e},{}),y=e=>e.filter(e=>e in h).map(e=>h[e]),j=(0,b.useBlockProps)({className:w.join(" "),ref:x,style:v}),S=["is-custom-","is-style-","items-justified-"],C=(0,m.useMemo)(()=>(r.className||"").split(" ").filter(e=>!S.some(t=>e.startsWith(t))).join(" ").trim(),[r.className]);return r.className&&(j.className=j.className.replace(C,"")),(0,p.jsxs)(p.Fragment,{children:[Object.entries(f).map(([e,t])=>"block"===e?(0,p.jsx)(b.BlockControls,{group:e,children:Object.entries(t).map(([e,t])=>y(t.controls))}):(0,p.jsx)(b.InspectorControls,{group:e,children:Object.entries(t).map(([t,s])=>{const{controls:i,...a}=s;if(e===t)return y(i);if(a.resetAll){const{title:e,...t}=a;return(0,p.jsx)(c.__experimentalToolsPanel,{label:e,...t,children:y(i)})}return(0,p.jsx)(c.PanelBody,{...a,children:y(i)})})})),(0,p.jsx)("div",{...j,children:(0,p.jsx)(c.Disabled,{isDisabled:!0,children:_})})]})},L=(0,b.withColors)("style_bar_color","style_rating_color")(e=>{const{attributes:t,setAttributes:s}=e,{style_bar_color:a,style_bar_color_custom:n,style_rating_color:l,style_rating_color_custom:o}=t,{style_max_width_default:d}=(0,r.useSelect)(t=>{const s=t("core/blocks").getBlockType(e.name);return{style_max_width_default:s?.attributes?.style_max_width?.default||""}},[]),u={assigned_posts:(0,p.jsx)(x,{endpoint:"/site-reviews/v1/shortcode/site_reviews_summary?option=assigned_posts",label:(0,i._x)("Limit Reviews by Assigned Pages","admin-text","site-reviews"),onChange:e=>s({assigned_posts:e}),placeholder:(0,i._x)("Search Pages...","admin-text","site-reviews"),prefetch:!0,value:t.assigned_posts},"assigned_posts"),assigned_terms:(0,p.jsx)(x,{endpoint:"/site-reviews/v1/shortcode/site_reviews_summary?option=assigned_terms",label:(0,i._x)("Limit Reviews by Categories","admin-text","site-reviews"),onChange:e=>s({assigned_terms:e}),placeholder:(0,i._x)("Search Categories...","admin-text","site-reviews"),value:t.assigned_terms},"assigned_terms"),assigned_users:(0,p.jsx)(x,{endpoint:"/site-reviews/v1/shortcode/site_reviews_summary?option=assigned_users",label:(0,i._x)("Limit Reviews by Assigned Users","admin-text","site-reviews"),onChange:e=>s({assigned_users:e}),placeholder:(0,i._x)("Search Users...","admin-text","site-reviews"),prefetch:!0,value:t.assigned_users},"assigned_users"),author:(0,p.jsx)(_,{endpoint:"/site-reviews/v1/shortcode/site_reviews_summary?option=author",label:(0,i._x)("Limit Reviews by Review Author","admin-text","site-reviews"),onChange:e=>s({author:e}),placeholder:(0,i._x)("Search Users...","admin-text","site-reviews"),prefetch:!0,value:t.author},"author"),hide:(0,p.jsx)(w,{endpoint:"/site-reviews/v1/shortcode/site_reviews_summary?option=hide",onChange:e=>s({hide:e}),value:t.hide},"hide"),id:(0,p.jsx)(c.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,help:(0,i._x)("This should be a unique value.","admin-text","site-reviews"),label:(0,i._x)("Custom ID","admin-text","site-reviews"),onChange:e=>s({id:e}),value:t.id},"id"),labels:(0,p.jsx)(c.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,help:(0,i._x)("Enter custom labels for the percentage bar levels (from high to low) and separate them with a comma.","admin-text","site-reviews"),label:(0,i._x)("Summary Labels","admin-text","site-reviews"),onChange:e=>s({labels:e}),placeholder:[(0,i.__)("Excellent","site-reviews"),(0,i.__)("Very good","site-reviews"),(0,i.__)("Average","site-reviews"),(0,i.__)("Poor","site-reviews"),(0,i.__)("Terrible","site-reviews")].join(", "),value:t.labels},"labels"),rating:(0,p.jsx)(c.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,i._x)("Minimum Rating","admin-text","site-reviews"),min:GLSR.minrating,max:GLSR.maxrating,onChange:e=>s({rating:e}),value:t.rating},"rating"),rating_field:(0,p.jsx)(c.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,help:(0,i._x)("Use the Review Forms addon to add custom rating fields.","admin-text","site-reviews"),label:(0,i._x)("Custom Rating Field Name","admin-text","site-reviews"),onChange:e=>s({rating_field:e}),value:t.rating_field},"rating_field"),schema:(0,p.jsx)(f,{help:(0,i._x)("The schema should only be enabled once on your page.","admin-text","site-reviews"),onChange:e=>s({schema:e}),label:(0,i._x)("Enable the Schema?","admin-text","site-reviews"),value:t.schema},"schema"),style_align:(0,p.jsx)(b.JustifyContentControl,{allowedControls:["left","center","right"],onChange:e=>s({style_align:e}),value:t.style_align}),style_bar_color:(0,p.jsx)(y,{attributeName:"style_bar_color",label:(0,i._x)("Percent Bar","admin-text","site-reviews"),props:e}),style_max_width:(0,p.jsx)(j,{attributeName:"style_max_width",defaultValue:d,props:e,label:(0,i._x)("Max Width","admin-text","site-reviews-themes"),units:[{value:"ch",label:"ch",default:"48"},{value:"px",label:"px",default:"640"},{value:"em",label:"em",default:"40"},{value:"rem",label:"rem",default:"40"},{value:"%",label:"%",default:"100"},{value:"vw",label:"vw",default:"100"}]}),style_rating_color:(0,p.jsx)(y,{attributeName:"style_rating_color",label:(0,i._x)("Rating","admin-text","site-reviews"),props:e}),terms:(0,p.jsx)(S,{endpoint:"/site-reviews/v1/shortcode/site_reviews_summary?option=terms",label:(0,i._x)("Limit Reviews by Accepted Terms","admin-text","site-reviews"),onChange:e=>s({terms:e}),placeholder:(0,i._x)("Select Review Terms...","admin-text","site-reviews"),value:t.terms},"terms"),text:(0,p.jsx)(c.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,help:(0,i._x)("Use {num} to display the number of reviews, {rating} to display the average rating, and {max} to display the maximum rating value.","admin-text","site-reviews"),label:(0,i._x)("Summary Text","admin-text","site-reviews"),onChange:e=>s({text:e}),placeholder:(0,i._x)("{rating} out of {max} stars (based on {num} reviews)","admin-text","site-reviews"),value:t.text},"text"),notice_text:(0,p.jsx)(c.BaseControl,{__nextHasNoMarginBottom:!0,children:(0,p.jsx)(c.Notice,{status:"warning",politeness:"polite",isDismissible:!1,children:(0,i._x)("The recommended way to change these values is to use the Site Reviews → Settings → Strings page.","admin-text","site-reviews")})}),type:(0,p.jsx)(S,{endpoint:"/site-reviews/v1/shortcode/site_reviews_summary?option=type",hideIfEmpty:!0,label:(0,i._x)("Limit Reviews by Type","admin-text","site-reviews"),onChange:e=>s({type:e}),placeholder:(0,i._x)("Select a Review Type...","admin-text","site-reviews"),value:t.type},"type"),verified:(0,p.jsx)(S,{endpoint:"/site-reviews/v1/shortcode/site_reviews_summary?option=verified",label:(0,i._x)("Limit Reviews by Verified Status","admin-text","site-reviews"),onChange:e=>s({verified:e}),placeholder:(0,i._x)("Select Verified Status...","admin-text","site-reviews"),value:t.verified},"verified")},m={block:{controls:["style_align"]},settings:{controls:["assigned_posts","assigned_terms","assigned_users","author","terms","type","verified","schema"]},display:{controls:["rating","rating_field"],initialOpen:!1},hide:{controls:["hide"],initialOpen:!1},text:{controls:["notice_text","text","labels"],initialOpen:!1},advanced:{controls:["id"]},color:{controls:["style_bar_color","style_rating_color"]},sizes:{controls:["style_max_width"],group:"styles",title:(0,i._x)("Sizes","admin-text","site-reviews"),resetAll:()=>{s({style_max_width:d})}}};return(0,p.jsx)(B,{controls:u,panels:m,props:e,style:{"--glsr-bar-bg":v(a,n),"--glsr-max-w":t.style_max_width||"none","--glsr-summary-align":{left:"start",right:"end"}[t.style_align||"left"]||"center","--glsr-summary-star-bg":v(l,o)},styleClassNames:[t.style_align?`items-justified-${t.style_align}`:"",a||n?"has-bar-color":"",l||o?"has-rating-color":""]})}),D=JSON.parse('{"UU":"site-reviews/summary"}'),z=window.React;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)({}).hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},H.apply(null,arguments)}const A=e=>z.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",className:"icon-summary_svg__glsr-icon",viewBox:"0 0 24 24"},e),O||(O=z.createElement("path",{d:"M20.694 18.429c.406 0 .735.336.735.75v1.5c0 .414-.329.75-.735.75H3.306a.743.743 0 0 1-.735-.75v-1.5c0-.414.329-.75.735-.75zm-.513 1.071H6.39c-.097 0-.176.064-.176.143v.571c0 .079.079.143.176.143h13.79c.097 0 .176-.064.176-.143v-.571c0-.079-.079-.143-.176-.143zm.513-4.929c.406 0 .735.336.735.75v1.5c0 .414-.329.75-.735.75H3.306a.743.743 0 0 1-.735-.75v-1.5c0-.414.329-.75.735-.75zm-.527 1.188H8.976c-.105 0-.19.064-.19.143v.571c0 .079.085.143.19.143h11.192c.105 0 .19-.064.19-.143v-.571c0-.079-.085-.143-.19-.143zm.527-5.045c.406 0 .735.336.735.75v1.5c0 .414-.329.75-.735.75H3.306a.743.743 0 0 1-.735-.75v-1.5c0-.414.329-.75.735-.75zm-.551 1.071h-2.571c-.118 0-.214.064-.214.143v.571c0 .079.096.143.214.143h2.571c.118 0 .214-.064.214-.143v-.571c0-.079-.096-.143-.214-.143M6.944 1.786l-.083 1.678-3.253.062V5.37c.083-.041.166-.083.269-.104l.332-.083.174-.028.08-.009.078-.004c.104 0 .228-.021.332-.021q.652 0 1.119.186a2 2 0 0 1 .767.518c.207.228.373.456.477.746s.145.58.145.87c0 .394-.062.746-.207 1.057s-.352.559-.622.767a2.6 2.6 0 0 1-.85.456 3.2 3.2 0 0 1-.974.145c-.352 0-.663-.041-.912-.124s-.497-.207-.684-.332-.311-.29-.414-.456-.145-.332-.145-.497a.8.8 0 0 1 .062-.311 1 1 0 0 1 .145-.249c.062-.083.145-.124.228-.186s.186-.062.29-.062q.186 0 .311.062c.125.062.145.104.207.166a.3.3 0 0 1 .07.114l.033.114c.021.083.041.145.041.228 0 .062 0 .124-.021.207s-.062.145-.104.207c.021.062.083.124.124.166s.145.083.207.124.166.062.249.083a1 1 0 0 0 .228.021 1.1 1.1 0 0 0 .539-.124c.145-.083.249-.207.352-.352s.145-.29.186-.456a2.3 2.3 0 0 0 .062-.539v-.352q0-.186-.062-.373c-.021-.145-.062-.269-.104-.394s-.145-.249-.228-.332-.207-.186-.332-.249-.311-.104-.518-.104c-.145 0-.332.041-.539.083s-.456.166-.705.311l-.435-.352-.041-3.461h2.694c.124 0 .228 0 .311-.021s.186-.041.269-.104.104-.104.145-.207a.9.9 0 0 0 .062-.332h.642zm5.203-.293a.22.22 0 0 1 .207.141l1.083 2.594 2.814.225a.22.22 0 0 1 .194.154l.035.11c.03.085.004.18-.066.238l-2.123 1.823.652 2.735a.23.23 0 0 1-.084.233l-.128.07a.22.22 0 0 1-.247 0L12.09 8.364 9.681 9.83a.22.22 0 0 1-.247 0l-.097-.066a.23.23 0 0 1-.084-.233l.634-2.753-2.123-1.823a.22.22 0 0 1-.079-.238l.035-.11a.215.215 0 0 1 .194-.154l2.814-.225 1.079-2.594a.22.22 0 0 1 .192-.141z"})));(0,window.wp.blocks.registerBlockType)(D.UU,{edit:L,icon:(0,p.jsx)(A,{width:24,height:24})}),(0,k.addFilter)("blocks.getBlockDefaultClassName",D.UU,(e,t)=>t===D.UU?"wp-block-site-reviews-summary":e)}},s={};function i(e){var a=s[e];if(void 0!==a)return a.exports;var n=s[e]={exports:{}};return t[e](n,n.exports,i),n.exports}i.m=t,e=[],i.O=function(t,s,a,n){if(!s){var r=1/0;for(d=0;d<e.length;d++){s=e[d][0],a=e[d][1],n=e[d][2];for(var l=!0,o=0;o<s.length;o++)(!1&n||r>=n)&&Object.keys(i.O).every(function(e){return i.O[e](s[o])})?s.splice(o--,1):(l=!1,n<r&&(r=n));if(l){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[s,a,n]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){if(Array.isArray(t))for(var s=0;s<t.length;){var a=t[s++],n=t[s++];i.o(e,a)?0===n&&s++:0===n?Object.defineProperty(e,a,{enumerable:!0,value:t[s++]}):Object.defineProperty(e,a,{enumerable:!0,get:n})}else for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={232:0,48:0};i.O.j=function(t){return 0===e[t]};var t=function(t,s){var a,n,r=s[0],l=s[1],o=s[2],c=0;if(r.some(function(t){return 0!==e[t]})){for(a in l)i.o(l,a)&&(i.m[a]=l[a]);if(o)var d=o(i)}for(t&&t(s);c<r.length;c++)n=r[c],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(d)},s=self.webpackChunk=self.webpackChunk||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))}();var a=i.O(void 0,[48],function(){return i(625)});a=i.O(a)}();