File "product-reviews-pagination.js"
Full Path: /home/romayxjt/public_html/wp-content/plugins/woocommerce/assets/client/blocks/product-reviews-pagination.js
File size: 5.44 KB
MIME-type: text/plain
Charset: utf-8
(()=>{var e,o,t,r={2027:(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/blockified-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].call(t.exports,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<e.length;p++){for(var[t,r,n]=e[p],s=!0,c=0;c<t.length;c++)(!1&n||a>=n)&&Object.keys(i.O).every((e=>i.O[e](t[c])))?t.splice(c--,1):(s=!1,n<a&&(a=n));if(s){e.splice(p--,1);var l=r();void 0!==l&&(o=l)}}return o}n=n||0;for(var p=e.length;p>0&&e[p-1][2]>n;p--)e[p]=e[p-1];e[p]=[t,r,n]},i.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return i.d(o,{a:o}),o},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var n=Object.create(null);i.r(n);var a={};o=o||[null,t({}),t([]),t(t)];for(var s=2&r&&e;"object"==typeof s&&!~o.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((o=>a[o]=()=>e[o]));return a.default=()=>e,i.d(n,a),n},i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=4257,(()=>{var e={4257:0};i.O.j=o=>0===e[o];var o=(o,t)=>{var r,n,[a,s,c]=t,l=0;if(a.some((o=>0!==e[o]))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);if(c)var p=c(i)}for(o&&o(t);l<a.length;l++)n=a[l],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(p)},t=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var a=i.O(void 0,[94],(()=>i(2027)));a=i.O(a),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-reviews-pagination"]=a})();