(()=>{var e,t={498:(e,t,l)=>{"use strict";l.d(t,{M:()=>g});var r=l(9196),o=l(2175),i=l(5736),n=l(1984),a=l(4790),s=l(9915),c=l(3136),u=l(9818),m=l(5609),p=l(549);const d={[p.M.OFF]:(0,i.__)("No thumbnails will be displayed.","woocommerce"),[p.M.LEFT]:(0,i.__)("A strip of small images will appear to the left of the main gallery image.","woocommerce"),[p.M.BOTTOM]:(0,i.__)("A strip of small images will appear below the main gallery image.","woocommerce"),[p.M.RIGHT]:(0,i.__)("A strip of small images will appear to the right of the main gallery image.","woocommerce")},g=({context:e})=>{const{productGalleryClientId:t}=e,{updateBlockAttributes:l}=(0,u.useDispatch)(o.store);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m.__experimentalToggleGroupControl,{className:"wc-block-editor-product-gallery-thumbnails__position-toggle",isBlock:!0,label:(0,i.__)("Thumbnails","woocommerce"),value:e.thumbnailsPosition,help:d[e.thumbnailsPosition],onChange:e=>l(t,{thumbnailsPosition:e})},(0,r.createElement)(m.__experimentalToggleGroupControlOption,{value:p.M.OFF,label:(0,i.__)("Off","woocommerce")}),(0,r.createElement)(m.__experimentalToggleGroupControlOption,{value:p.M.LEFT,label:(0,r.createElement)(n.Z,{size:32,icon:a.Z})}),(0,r.createElement)(m.__experimentalToggleGroupControlOption,{value:p.M.BOTTOM,label:(0,r.createElement)(n.Z,{size:32,icon:s.Z})}),(0,r.createElement)(m.__experimentalToggleGroupControlOption,{value:p.M.RIGHT,label:(0,r.createElement)(n.Z,{size:32,icon:c.Z})})),e.thumbnailsPosition!==p.M.OFF&&(0,r.createElement)(m.RangeControl,{label:(0,i.__)("Number of Thumbnails","woocommerce"),value:e.thumbnailsNumberOfThumbnails,onChange:e=>l(t,{thumbnailsNumberOfThumbnails:e}),help:(0,i.__)("Choose how many thumbnails (2-8) will display. If more images exist, a “View all” button will display.","woocommerce"),max:8,min:2}))}},549:(e,t,l)=>{"use strict";l.d(t,{M:()=>r});let r=function(e){return e.OFF="off",e.LEFT="left",e.BOTTOM="bottom",e.RIGHT="right",e}({})},9282:(e,t,l)=>{"use strict";l.r(t);var r=l(4981),o=l(5271),i=l(9196);var n=l(2175),a=l(5609),s=l(4184),c=l.n(s),u=(l(5770),l(498)),m=l(549);const p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-gallery-thumbnails","version":"1.0.0","title":"Thumbnails","description":"Display the Thumbnails of a product.","category":"woocommerce","keywords":["WooCommerce"],"usesContext":["postId","thumbnailsPosition","thumbnailsNumberOfThumbnails","productGalleryClientId","mode"],"textdomain":"woocommerce","ancestor":["woocommerce/product-gallery"],"supports":{"spacing":{"margin":true,"__experimentalDefaultControls":{"margin":true}}}}');(0,o.EU)()&&(0,r.registerBlockType)(p,{icon:()=>(0,i.createElement)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.375 1.5H1.625C1.55596 1.5 1.5 1.55596 1.5 1.625V9.87895L4.35871 8.33965C4.5696 8.22609 4.82204 8.22009 5.03808 8.3235L7.42329 9.46513L10.3126 7.39076C10.574 7.20308 10.926 7.20308 11.1874 7.39076L13.5 9.05108V1.625C13.5 1.55596 13.444 1.5 13.375 1.5ZM13.5 10.8976L10.75 8.92328L7.93741 10.9426C7.71497 11.1023 7.42319 11.1281 7.1762 11.0098L4.73428 9.84105L1.5 11.5826V13.375C1.5 13.444 1.55596 13.5 1.625 13.5H13.375C13.444 13.5 13.5 13.444 13.5 13.375V10.8976ZM1.625 0C0.727537 0 0 0.727538 0 1.625V13.375C0 14.2725 0.727538 15 1.625 15H13.375C14.2725 15 15 14.2725 15 13.375V1.625C15 0.727537 14.2725 0 13.375 0H1.625ZM17.25 5V16C17.25 16.6909 16.6909 17.25 16.0011 17.25H3V18.75H16.0011C17.5204 18.75 18.75 17.5183 18.75 16V5H17.25Z",fill:"#1E1E1E"})),edit:({attributes:e,setAttributes:t,context:l})=>{const r=(0,n.useBlockProps)({className:"wc-block-product-gallery-thumbnails"});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{...r},(0,i.createElement)(n.InspectorControls,null,(0,i.createElement)(a.PanelBody,null,(0,i.createElement)(u.M,{attributes:e,setAttributes:t,context:l}))),(0,i.createElement)(a.Disabled,null,(0,i.createElement)((()=>l.thumbnailsPosition!==m.M.OFF?(0,i.createElement)("div",{className:c()("wc-block-editor-product-gallery-thumbnails",`wc-block-editor-product-gallery-thumbnails--${l.thumbnailsPosition}`)},[...Array(l.thumbnailsNumberOfThumbnails).keys()].map((e=>(0,i.createElement)("img",{key:e,src:`${o.td}block-placeholders/product-image-gallery.svg`,alt:"Placeholder"})))):null),null))))},save:()=>null})},9915:(e,t,l)=>{"use strict";l.d(t,{Z:()=>i});var r=l(9196),o=l(444);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V12C3 13.1 3.9 14 5 14H19C20.1 14 21 13.1 21 12V5C21 3.9 20.1 3 19 3ZM5 4.5H19C19.3 4.5 19.5 4.7 19.5 5V8.4L16.5 5.5C16.2 5.2 15.7 5.2 15.5 5.5L11.9 9L9 7C8.7 6.8 8.4 6.8 8.2 7L4.6 9.6V5C4.5 4.7 4.7 4.5 5 4.5ZM19 12.5H5C4.7 12.5 4.5 12.3 4.5 12V11.6L8.6 8.6L11.6 10.5C11.9 10.7 12.3 10.7 12.5 10.4L16 7L19.5 10.4V12C19.5 12.3 19.3 12.5 19 12.5Z",fill:"currentColor"}),(0,r.createElement)("rect",{x:"6.25",y:"15.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.createElement)("rect",{x:"13.25",y:"15.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}))},4790:(e,t,l)=>{"use strict";l.d(t,{Z:()=>i});var r=l(9196),o=l(444);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none"},(0,r.createElement)("g",{clipPath:"url(#clip0_420_11645)"},(0,r.createElement)("path",{d:"M22.5 3H10.5C9.4 3 8.5 3.9 8.5 5V19C8.5 20.1 9.4 21 10.5 21H22.5C23.6 21 24.5 20.1 24.5 19V5C24.5 3.9 23.6 3 22.5 3ZM10.5 4.5H22.5C22.8 4.5 23 4.7 23 5V13.4L21 10.5C20.7 10.2 20.2 10.2 20 10.5L16.4 14L13.5 12C13.2 11.8 12.9 11.8 12.7 12L10.1 14.6V5C10 4.7 10.2 4.5 10.5 4.5ZM22.5 19.5H10.5C10.2 19.5 10 19.3 10 19V16.6L13.1 13.6L16.1 15.5C16.4 15.7 16.8 15.7 17 15.4L20.5 12L23 15.4V19C23 19.3 22.8 19.5 22.5 19.5Z",fill:"currentColor"}),(0,r.createElement)("rect",{x:"1.25",y:"3.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.createElement)("rect",{x:"1.25",y:"10.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_420_11645"},(0,r.createElement)("rect",{width:"24",height:"24",fill:"white",transform:"translate(0.5)"}))))},3136:(e,t,l)=>{"use strict";l.d(t,{Z:()=>i});var r=l(9196),o=l(444);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none"},(0,r.createElement)("g",{clipPath:"url(#clip0_420_11656)"},(0,r.createElement)("path",{d:"M14.5 3H2.5C1.4 3 0.5 3.9 0.5 5V19C0.5 20.1 1.4 21 2.5 21H14.5C15.6 21 16.5 20.1 16.5 19V5C16.5 3.9 15.6 3 14.5 3ZM2.5 4.5H14.5C14.8 4.5 15 4.7 15 5V13.4L13 10.5C12.7 10.2 12.2 10.2 12 10.5L8.4 14L5.5 12C5.2 11.8 4.9 11.8 4.7 12L2.1 14.6V5C2 4.7 2.2 4.5 2.5 4.5ZM14.5 19.5H2.5C2.2 19.5 2 19.3 2 19V16.6L5.1 13.6L8.1 15.5C8.4 15.7 8.8 15.7 9 15.4L12.5 12L15 15.4V19C15 19.3 14.8 19.5 14.5 19.5Z",fill:"currentColor"}),(0,r.createElement)("rect",{x:"19.25",y:"3.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.createElement)("rect",{x:"19.25",y:"10.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_420_11656"},(0,r.createElement)("rect",{width:"24",height:"24",fill:"currentColor",transform:"translate(0.5)"}))))},7530:(e,t,l)=>{"use strict";l.d(t,{Lo:()=>b,td:()=>h});var r,o,i,n,a,s,c,u,m,p,d=l(4617);const g=(0,d.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),h=g.pluginUrl+"images/",b=(g.pluginUrl,g.buildPhase),w=(null===(r=d.STORE_PAGES.shop)||void 0===r||r.permalink,null===(o=d.STORE_PAGES.checkout)||void 0===o||o.id,null===(i=d.STORE_PAGES.checkout)||void 0===i||i.permalink,null===(n=d.STORE_PAGES.privacy)||void 0===n||n.permalink,null===(a=d.STORE_PAGES.privacy)||void 0===a||a.title,null===(s=d.STORE_PAGES.terms)||void 0===s||s.permalink,null===(c=d.STORE_PAGES.terms)||void 0===c||c.title,null===(u=d.STORE_PAGES.cart)||void 0===u||u.id,null===(m=d.STORE_PAGES.cart)||void 0===m||m.permalink,null!==(p=d.STORE_PAGES.myaccount)&&void 0!==p&&p.permalink?d.STORE_PAGES.myaccount.permalink:(0,d.getSetting)("wpLoginUrl","/wp-login.php"),(0,d.getSetting)("localPickupEnabled",!1),(0,d.getSetting)("countries",{})),E=(0,d.getSetting)("countryData",{});Object.fromEntries(Object.keys(E).filter((e=>!0===E[e].allowBilling)).map((e=>[e,w[e]||""]))),Object.fromEntries(Object.keys(E).filter((e=>!0===E[e].allowBilling)).map((e=>[e,E[e].states||[]]))),Object.fromEntries(Object.keys(E).filter((e=>!0===E[e].allowShipping)).map((e=>[e,w[e]||""]))),Object.fromEntries(Object.keys(E).filter((e=>!0===E[e].allowShipping)).map((e=>[e,E[e].states||[]]))),Object.fromEntries(Object.keys(E).map((e=>[e,E[e].locale||[]])))},4478:(e,t,l)=>{"use strict";l.d(t,{EU:()=>o}),l(4981);var r=l(7530);const o=()=>r.Lo>2},5271:(e,t,l)=>{"use strict";l.d(t,{EU:()=>o.EU,td:()=>r.td});var r=l(7530),o=l(4478)},5770:()=>{},9196:e=>{"use strict";e.exports=window.React},4617:e=>{"use strict";e.exports=window.wc.wcSettings},2175:e=>{"use strict";e.exports=window.wp.blockEditor},4981:e=>{"use strict";e.exports=window.wp.blocks},5609:e=>{"use strict";e.exports=window.wp.components},9818:e=>{"use strict";e.exports=window.wp.data},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},444:e=>{"use strict";e.exports=window.wp.primitives}},l={};function r(e){var o=l[e];if(void 0!==o)return o.exports;var i=l[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}r.m=t,e=[],r.O=(t,l,o,i)=>{if(!l){var n=1/0;for(u=0;u=i)&&Object.keys(r.O).every((e=>r.O[e](l[s])))?l.splice(s--,1):(a=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[l,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.j=8641,(()=>{var e={8641:0};r.O.j=t=>0===e[t];var t=(t,l)=>{var o,i,[n,a,s]=l,c=0;if(n.some((t=>0!==e[t]))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var u=s(r)}for(t&&t(l);cr(9282)));o=r.O(o),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-gallery-thumbnails"]=o})();