1 line
5.6 KiB
JavaScript
1 line
5.6 KiB
JavaScript
(()=>{"use strict";var e,t,o,r={6899:(e,t,o)=>{const r=window.wp.blocks;var l=o(7723),i=o(4921);const n=window.wp.blockEditor;var s=o(790);const a=({className:e})=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",fill:"none",className:e,children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.445 12.005.986 6 6.445-.005l1.11 1.01L3.014 6l4.54 4.995-1.109 1.01Z",clipRule:"evenodd"})}),c=({className:e})=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",fill:"none",className:e,children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.555-.004 7.014 6l-5.459 6.005-1.11-1.01L4.986 6 .446 1.005l1.109-1.01Z",clipRule:"evenodd"})}),u=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-gallery-large-image-next-previous","title":"Next/Previous Buttons","description":"Display next and previous buttons.","category":"woocommerce","keywords":["WooCommerce"],"usesContext":["iapi/provider"],"textdomain":"woocommerce","supports":{"interactivity":true,"color":{"background":true,"text":true,"__experimentalSkipSerialization":true},"align":true,"layout":{"default":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"center"},"allowVerticalAlignment":true,"allowOrientation":false,"allowJustification":false},"shadow":true,"spacing":{"margin":true,"__experimentalSkipSerialization":true},"__experimentalBorder":{"radius":true,"__experimentalSkipSerialization":true},"__experimentalSelector":".wc-block-next-previous-buttons__button"},"ancestor":["woocommerce/product-gallery-large-image","woocommerce/product-collection"],"style":"file:../woocommerce/product-gallery-large-image-next-previous-style.css","editorStyle":"file:../woocommerce/product-gallery-large-image-next-previous-editor.css"}');(0,r.registerBlockType)(u,{icon:()=>(0,s.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.22448 1.5L1.5 6.81504V11.7072L5.12953 9.06066C5.38061 8.87758 5.71858 8.86829 5.97934 9.0373L8.90601 10.9342L12.4772 7.46225C12.7683 7.17925 13.2317 7.17925 13.5228 7.46225L16.5 10.3568V2C16.5 1.72386 16.2761 1.5 16 1.5H6.22448ZM1.5 13.5636V16C1.5 16.2761 1.72386 16.5 2 16.5H16C16.2761 16.5 16.5 16.2761 16.5 16V12.4032L16.4772 12.4266L13 9.04603L9.52279 12.4266C9.27191 12.6706 8.88569 12.7086 8.59206 12.5183L5.59643 10.5766L1.5 13.5636ZM0 2C0 0.89543 0.895431 0 2 0H16C17.1046 0 18 0.895431 18 2V16C18 17.1046 17.1046 18 16 18H2C0.89543 18 0 17.1046 0 16V2Z",fill:"#1E1E1E"})}),edit:({attributes:e})=>{const t=(e=>{const t=e?.layout?.verticalAlignment;return"top"===t?"aligntop":"bottom"===t?"alignbottom":""})(e),{style:o,...r}=(0,n.useBlockProps)({className:(0,i.A)("wc-block-next-previous-buttons",t)}),u=(0,n.__experimentalUseBorderProps)(e),p=(0,n.__experimentalUseColorProps)(e),d=(0,n.__experimentalGetSpacingClassesAndStyles)(e),m=(0,n.__experimentalGetShadowClassesAndStyles)(e),w=(0,i.A)("wc-block-next-previous-buttons__button",u.className,p.className,d.className,m.className),v={...o,...u.style,...p.style,...d.style,...m.style},g=(0,l.isRTL)(),b=g?c:a,f=g?a:c;return(0,s.jsxs)("div",{...r,children:[(0,s.jsx)("button",{className:w,style:v,disabled:!0,children:(0,s.jsx)(b,{className:"wc-block-next-previous-buttons__icon wc-block-next-previous-buttons__icon--left"})}),(0,s.jsx)("button",{className:w,style:v,children:(0,s.jsx)(f,{className:"wc-block-next-previous-buttons__icon wc-block-next-previous-buttons__icon--right"})})]})},save:()=>(0,s.jsx)("div",{...n.useBlockProps.save()})})},790:e=>{e.exports=window.ReactJSXRuntime},7723:e=>{e.exports=window.wp.i18n}},l={};function i(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.m=r,e=[],i.O=(t,o,r,l)=>{if(!o){var n=1/0;for(u=0;u<e.length;u++){for(var[o,r,l]=e[u],s=!0,a=0;a<o.length;a++)(!1&l||n>=l)&&Object.keys(i.O).every(e=>i.O[e](o[a]))?o.splice(a--,1):(s=!1,l<n&&(n=l));if(s){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}l=l||0;for(var u=e.length;u>0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[o,r,l]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},o=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 l=Object.create(null);i.r(l);var n={};t=t||[null,o({}),o([]),o(o)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=o(s))Object.getOwnPropertyNames(s).forEach(t=>n[t]=()=>e[t]);return n.default=()=>e,i.d(l,n),l},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=5375,(()=>{var e={5375:0};i.O.j=t=>0===e[t];var t=(t,o)=>{var r,l,[n,s,a]=o,c=0;if(n.some(t=>0!==e[t])){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);if(a)var u=a(i)}for(t&&t(o);c<n.length;c++)l=n[c],i.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return i.O(u)},o=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var n=i.O(void 0,[94],()=>i(6899));n=i.O(n),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-gallery-large-image-next-previous"]=n})(); |