(()=>{var e,o,t,r={5097:(e,o,t)=>{"use strict";const r=window.wp.blocks;var n=t(455);const i=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-reviews-pagination","title":"Reviews Pagination","category":"woocommerce","ancestor":["woocommerce/product-reviews"],"allowedBlocks":["woocommerce/product-reviews-pagination-previous","woocommerce/product-reviews-pagination-numbers","woocommerce/product-reviews-pagination-next"],"description":"Displays a paginated navigation to next/previous set of product reviews, when applicable.","textdomain":"woocommerce","attributes":{"paginationArrow":{"type":"string","default":"none"}},"example":{"attributes":{"paginationArrow":"none"}},"providesContext":{"reviews/paginationArrow":"paginationArrow"},"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}');var a=t(7723);const s=window.wp.data,c=window.wp.components,l=window.wp.blockEditor;var p=t(790);function u({value:e,onChange:o}){return(0,p.jsxs)(c.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,a.__)("Arrow","woocommerce"),value:e,onChange:o,help:(0,a.__)("A decorative arrow appended to the next and previous product reviews link.","woocommerce"),isBlock:!0,children:[(0,p.jsx)(c.__experimentalToggleGroupControlOption,{value:"none",label:(0,a._x)("None","Arrow option for Product Reviews Pagination Next/Previous blocks","woocommerce")}),(0,p.jsx)(c.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,a._x)("Arrow","Arrow option for Product Reviews Pagination Next/Previous blocks","woocommerce")}),(0,p.jsx)(c.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,a._x)("Chevron","Arrow option for Product Reviews Pagination Next/Previous blocks","woocommerce")})]})}t(4180);const w=[["woocommerce/product-reviews-pagination-previous"],["woocommerce/product-reviews-pagination-numbers"],["woocommerce/product-reviews-pagination-next"]];t(5398),(0,r.registerBlockType)(i,{icon:n.A,edit:function({attributes:{paginationArrow:e},setAttributes:o,clientId:t}){const r=(0,s.useSelect)((e=>{const{getBlocks:o}=e(l.store),r=o(t);return r?.find((e=>["woocommerce/product-reviews-pagination-previous","woocommerce/product-reviews-pagination-next"].includes(e.name)))}),[t]),n=(0,l.useBlockProps)(),i=(0,l.useInnerBlocksProps)(n,{template:w});return(0,s.useSelect)((e=>{const{getSettings:o}=e(l.store),{__experimentalDiscussionSettings:t}=o();return t?.pageComments}),[])?(0,p.jsxs)(p.Fragment,{children:[r&&(0,p.jsx)(l.InspectorControls,{children:(0,p.jsx)(c.PanelBody,{title:(0,a.__)("Settings","woocommerce"),children:(0,p.jsx)(u,{value:e,onChange:e=>{o({paginationArrow:e})}})})}),(0,p.jsx)("div",{...i})]}):(0,p.jsx)(l.Warning,{children:(0,a.__)("Product Reviews Pagination block: paging comments is disabled in the Discussion Settings","woocommerce")})},save:function(){return(0,p.jsx)(l.InnerBlocks.Content,{})}})},4180:()=>{},5398:()=>{},1609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var t=n[e]={exports:{}};return r[e](t,t.exports,i),t.exports}i.m=r,e=[],i.O=(o,t,r,n)=>{if(!t){var a=1/0;for(p=0;p