File "product-gallery.js"
Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/woocommerce/assets/client/blocks/product-gallery.js
File size: 32.9 KB
MIME-type: text/plain
Charset: utf-8
(()=>{var e,t={2277:(e,t,l)=>{"use strict";l.r(t);var o=l(4981);const r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-gallery","version":"1.0.0","title":"Product Gallery (Beta)","description":"Showcase your products relevant images and media.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":true,"multiple":false,"interactivity":true},"textdomain":"woocommerce","usesContext":["postId"],"providesContext":{"thumbnailsPosition":"thumbnailsPosition","thumbnailsNumberOfThumbnails":"thumbnailsNumberOfThumbnails","productGalleryClientId":"productGalleryClientId","nextPreviousButtonsPosition":"nextPreviousButtonsPosition","pagerDisplayMode":"pagerDisplayMode","hoverZoom":"hoverZoom","fullScreenOnClick":"fullScreenOnClick","mode":"mode","cropImages":"cropImages"},"attributes":{"thumbnailsPosition":{"type":"string","default":"left"},"thumbnailsNumberOfThumbnails":{"type":"number","default":3},"pagerDisplayMode":{"type":"string","default":"dots"},"productGalleryClientId":{"type":"string","default":""},"cropImages":{"type":"boolean","default":false},"hoverZoom":{"type":"boolean","default":true},"fullScreenOnClick":{"type":"boolean","default":true},"nextPreviousButtonsPosition":{"type":"string","default":"insideTheImage"},"mode":{"type":"string","default":"standard"}},"viewScript":"wc-product-gallery-frontend","example":{}}');var n=l(9196),i=l(2175),a=l(9307),c=l(9818);const s=({blocks:e,findCondition:t})=>{for(const l of e){if(t(l))return l;if(l.innerBlocks){const e=s({blocks:l.innerBlocks,findCondition:t});if(e)return e}}};var m=l(4263);const u=e=>{switch(e){case"bottom":case"off":return{type:"flex",orientation:"vertical"};default:return{type:"flex",flexWrap:"nowrap"}}},d=e=>"lock"===e?{lock:{move:!0,remove:!0}}:{lock:{}},p=(e,t)=>{if(void 0!==t){const l={...t,attributes:{...t.attributes,...e}};(0,c.dispatch)("core/block-editor").updateBlock(t.clientId,l)}},g=({blocks:e,lockBlocks:t})=>{for(const l of e)p(d(t?"lock":"unlock"),l)},h=(e,t)=>{const l=(0,c.select)("core/block-editor").getBlock(t);null==l||l.innerBlocks.forEach((t=>{"core/group"===t.name&&p({layout:u(e)},t)}))},w=e=>{var t;return`wc-block-product-gallery--has-next-previous-buttons-${null===(t=(0,m.P)(e))||void 0===t?void 0:t.classname}`};var f=l(5609),b=l(5736),v=l(2042),C=l(5532),y=l(256);const E=({attributes:e,setAttributes:t,context:l})=>{const{cropImages:o,hoverZoom:r,fullScreenOnClick:a}=e,{productGalleryClientId:c,pagerDisplayMode:s,nextPreviousButtonsPosition:m,thumbnailsNumberOfThumbnails:u,thumbnailsPosition:d}=l;return(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)(f.PanelBody,{title:(0,b.__)("Gallery Navigation","woocommerce")},(0,n.createElement)(C.y,{context:{productGalleryClientId:c,pagerDisplayMode:s}}),(0,n.createElement)(y.f,{context:{productGalleryClientId:c,nextPreviousButtonsPosition:m}}),(0,n.createElement)(v.M,{context:{productGalleryClientId:c,thumbnailsNumberOfThumbnails:u,thumbnailsPosition:d}})),(0,n.createElement)(f.PanelBody,{title:(0,b.__)("Media Settings","woocommerce")},(0,n.createElement)(f.ToggleControl,{label:(0,b.__)("Crop images to fit","woocommerce"),help:(0,b.__)("Images will be cropped to fit within a square space.","woocommerce"),checked:o,onChange:()=>t({cropImages:!o}),className:"wc-block-product-gallery__crop-images"}),(0,n.createElement)(f.ToggleControl,{label:(0,b.__)("Zoom while hovering","woocommerce"),help:(0,b.__)("While hovering the large image will zoom in by 30%.","woocommerce"),checked:r,onChange:()=>t({hoverZoom:!r})}),(0,n.createElement)(f.ToggleControl,{label:(0,b.__)("Open pop-up when clicked","woocommerce"),help:(0,b.__)("Clicking on the large image will open a full-screen gallery experience.","woocommerce"),checked:a,onChange:()=>t({fullScreenOnClick:!a})})))},k=[["core/group",{layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"top"},metadata:{name:"Gallery Area"}},[["woocommerce/product-gallery-thumbnails",d("lock")],["core/group",{layout:{type:"flex",orientation:"vertical",justifyContent:"center",verticalAlignment:"top"},style:{layout:{selfStretch:"fixed",flexSize:"100%"}},metadata:{name:"Large Image and Navigation"},...d("lock")},[["woocommerce/product-gallery-large-image",d("lock"),[["woocommerce/product-sale-badge",{align:"right",style:{spacing:{margin:{top:"4px",right:"4px",bottom:"4px",left:"4px"}}},lock:{move:!0}}],["woocommerce/product-gallery-large-image-next-previous",{layout:{type:"flex",verticalAlignment:"bottom"},lock:{move:!0,remove:!0}}]]],["woocommerce/product-gallery-pager",{lock:{move:!0,remove:!0}}]]]]]];var x=l(3849),_=l.n(x);const L={icon:()=>(0,n.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)("path",{d:"M19 3H5C4.4 3 4 3.4 4 4V11C4 11.5 4.4 12 5 12H19C19.5 12 20 11.6 20 11V4C20 3.4 19.6 3 19 3ZM5.5 10.5V10.1L7.3 8.8L8.6 9.6C8.9 9.8 9.3 9.8 9.5 9.5L11 8.1L13.4 10.5H5.5ZM18.5 10.5H15.6L11.6 6.5C11.3 6.2 10.8 6.2 10.5 6.5L8.9 8L7.7 7.2C7.4 7 7.1 7 6.8 7.2L5.5 8.2V4.5H18.5V10.5Z",fill:"currentColor"}),(0,n.createElement)("rect",{x:"4.75",y:"15.5",width:"5",height:"4.5",rx:"1",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,n.createElement)("rect",{x:"12.25",y:"15.5",width:"5",height:"4.5",rx:"1",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})),edit:({clientId:e,attributes:t,setAttributes:l})=>{const o=(0,i.useBlockProps)({className:w(t.nextPreviousButtonsPosition)}),{currentTemplateId:r,templateType:m}=(0,c.useSelect)((e=>({currentTemplateId:e("core/edit-site").getEditedPostId(),templateType:e("core/edit-site").getEditedPostType()})),[]);return(0,a.useEffect)((()=>{const o=((e,t)=>"wp_template_part"===t&&e.includes("product-gallery")?"full":"standard")(r,m);l({...t,mode:o,productGalleryClientId:e}),((e,t)=>{const{getBlock:l,getBlockRootClientId:o,getBlockIndex:r}=(0,c.select)("core/block-editor"),{moveBlockToPosition:n}=(0,c.dispatch)("core/block-editor"),i=l(t);if(i){const l=i.innerBlocks.length?i.innerBlocks[0].attributes.layout:null,a=s({blocks:[i],findCondition:e=>"woocommerce/product-gallery-thumbnails"===e.name}),c=s({blocks:[i],findCondition(e){var t;return Boolean(null===(t=e.innerBlocks)||void 0===t?void 0:t.find((e=>"woocommerce/product-gallery-large-image"===e.name)))}}),m=r((null==c?void 0:c.clientId)||""),d=r((null==a?void 0:a.clientId)||"");if(c&&a&&-1!==m&&-1!==d){g({blocks:[a,c],lockBlocks:!1});const{thumbnailsPosition:r}=e;if(h(r,t),h(r,i.innerBlocks[0].clientId),l){const e=u(r).orientation;p({layout:{...l,orientation:e}},i.innerBlocks[0])}(("bottom"===r||"right"===r)&&d<m||"left"===r&&d>m)&&n(a.clientId,o(a.clientId)||void 0,o(c.clientId)||void 0,m),g({blocks:[a,c],lockBlocks:!0})}}})(t,e)}),[l,t,e,r,m]),(0,n.createElement)("div",{...o},(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)(E,{attributes:t,setAttributes:l,context:{productGalleryClientId:e,pagerDisplayMode:t.pagerDisplayMode,thumbnailsPosition:t.thumbnailsPosition,thumbnailsNumberOfThumbnails:t.thumbnailsNumberOfThumbnails,nextPreviousButtonsPosition:t.nextPreviousButtonsPosition}})),(0,n.createElement)(i.InnerBlocks,{allowedBlocks:["woocommerce/product-gallery-large-image","woocommerce/product-gallery-thumbnails"],templateLock:!1,template:k}))},save:({attributes:e})=>{const t=i.useBlockProps.save({className:_()("wc-block-product-gallery",w(e.nextPreviousButtonsPosition))}),l=i.useInnerBlocksProps.save(t);return(0,n.createElement)("div",{...l})}};l(739),l(8499),l(531),l(2925),(0,o.registerBlockType)(r,L)},1188:(e,t,l)=>{"use strict";l.d(t,{JO:()=>n,MW:()=>i,Zg:()=>m,_o:()=>a,mL:()=>s,qv:()=>u,xt:()=>c});var o=l(9196),r=l(444);const n=()=>(0,o.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("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"})),i=()=>(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"49",height:"48",viewBox:"0 0 49 48",fill:"none",className:"wc-block-product-gallery-large-image-next-previous-right--inside-image"},(0,o.createElement)("g",{filter:"url(#filter0_b_397_11354)"},(0,o.createElement)("rect",{x:"0.5",width:"48",height:"48",rx:"5",fill:"black",fillOpacity:"0.5"}),(0,o.createElement)("path",{d:"M21.7001 12L19.3 14L28.5 24L19.3 34L21.7001 36L32.5 24L21.7001 12Z",fill:"white"})),(0,o.createElement)("defs",null,(0,o.createElement)("filter",{id:"filter0_b_397_11354",x:"-9.5",y:"-10",width:"68",height:"68",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},(0,o.createElement)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.createElement)("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:"5"}),(0,o.createElement)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_397_11354"}),(0,o.createElement)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_backgroundBlur_397_11354",result:"shape"})))),a=()=>(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"49",height:"48",viewBox:"0 0 49 48",fill:"none",className:"wc-block-product-gallery-large-image-next-previous-left--inside-image"},(0,o.createElement)("g",{filter:"url(#filter0_b_397_11356)"},(0,o.createElement)("rect",{x:"0.5",width:"48",height:"48",rx:"5",fill:"black",fillOpacity:"0.5"}),(0,o.createElement)("path",{d:"M28.1 12L30.5 14L21.3 24L30.5 34L28.1 36L17.3 24L28.1 12Z",fill:"white"})),(0,o.createElement)("defs",null,(0,o.createElement)("filter",{id:"filter0_b_397_11356",x:"-9.5",y:"-10",width:"68",height:"68",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},(0,o.createElement)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.createElement)("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:"5"}),(0,o.createElement)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_397_11356"}),(0,o.createElement)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_backgroundBlur_397_11356",result:"shape"})))),c=()=>(0,o.createElement)(r.SVG,{width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"wc-block-product-gallery-large-image-next-previous-right--outside-image"},(0,o.createElement)("path",{d:"M1 1.28516L8 8.28516L1 15.2852",stroke:"black",strokeWidth:"1.5"})),s=()=>(0,o.createElement)(r.SVG,{width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"wc-block-product-gallery-large-image-next-previous-left--outside-image"},(0,o.createElement)("path",{d:"M9 1.28516L2 8.28516L9 15.2852",stroke:"black",strokeWidth:"1.5"})),m=()=>(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"18",viewBox:"0 0 30 18",fill:"none"},(0,o.createElement)("path",{d:"M4.525 8.8L6.825 6.5L5.825 5.5L3.525 7.8C2.825 8.5 2.825 9.6 3.525 10.3L5.825 12.6L6.925 11.5L4.625 9.2C4.425 9.1 4.425 8.9 4.525 8.8Z",fill:"currentColor"}),(0,o.createElement)("path",{d:"M25.4 8.8L23.1 6.5L24.1 5.5L26.4 7.8C27.1 8.5 27.1 9.6 26.4 10.3L24.1 12.6L23 11.5L25.3 9.2C25.5 9.1 25.5 8.9 25.4 8.8Z",fill:"currentColor"}),(0,o.createElement)("rect",{x:"0.75",y:"0.75",width:"28.5",height:"16.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"})),u=()=>(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"38",height:"18",viewBox:"0 0 38 18",fill:"none"},(0,o.createElement)("path",{d:"M1.525 8.3L5.825 4L4.825 3L0.525 7.3C-0.175 8 -0.175 9.1 0.525 9.8L4.825 14.1L5.925 13L1.625 8.7C1.425 8.6 1.425 8.4 1.525 8.3Z",fill:"currentColor"}),(0,o.createElement)("path",{d:"M37.325 7.3L33.025 3L31.925 4.1L36.2251 8.4C36.3251 8.5 36.3251 8.7 36.2251 8.8L31.925 13.1L33.025 14.2L37.325 9.9C38.025 9.1 38.025 8 37.325 7.3Z",fill:"currentColor"}),(0,o.createElement)("path",{d:"M25.925 0H11.925C10.825 0 9.92505 0.9 9.92505 2V16C9.92505 17.1 10.825 18 11.925 18H25.925C27.025 18 27.925 17.1 27.925 16V2C27.925 0.9 27.025 0 25.925 0ZM11.925 1.5H25.925C26.225 1.5 26.425 1.7 26.425 2V10.4L23.425 7.5C23.125 7.2 22.625 7.2 22.425 7.5L18.825 11L15.925 9C15.625 8.8 15.325 8.8 15.125 9L11.525 11.6V2C11.425 1.7 11.625 1.5 11.925 1.5ZM25.925 16.5H11.925C11.625 16.5 11.425 16.3 11.425 16V13.6L15.525 10.6L18.525 12.5C18.825 12.7 19.225 12.7 19.425 12.4L22.925 9L26.425 12.4V16C26.425 16.3 26.225 16.5 25.925 16.5Z",fill:"currentColor"}))},8499:(e,t,l)=>{"use strict";var o=l(4981),r=l(9196),n=l(2175),i=l(9307),a=l(5609),c=l(3849),s=l.n(c),m=(l(6781),l(256)),u=l(4263);const d=e=>{switch(e){case"top":return"flex-start";case"center":return"center";default:return"flex-end"}},p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-gallery-large-image-next-previous","version":"1.0.0","title":"Next/Previous Buttons","description":"Display next and previous buttons.","category":"woocommerce","keywords":["WooCommerce"],"usesContext":["nextPreviousButtonsPosition","productGalleryClientId","postId"],"textdomain":"woocommerce","supports":{"layout":{"default":{"type":"flex","verticalAlignment":"bottom"},"allowVerticalAlignment":true,"allowJustification":false,"allowOrientation":false,"allowInheriting":false}},"ancestor":["woocommerce/product-gallery-large-image"]}');var g=l(1188);(0,o.registerBlockType)(p,{icon:g.JO,edit:({attributes:e,context:t})=>{var l;const o=(0,n.useBlockProps)({style:{width:"100%",alignItems:d(null===(l=e.layout)||void 0===l?void 0:l.verticalAlignment)},className:s()("wc-block-editor-product-gallery-large-image-next-previous","wc-block-product-gallery-large-image-next-previous")}),c=(0,i.useMemo)((()=>(0,u.P)(t.nextPreviousButtonsPosition)),[t.nextPreviousButtonsPosition]);return(0,r.createElement)("div",{...o},(0,r.createElement)(n.InspectorControls,null,(0,r.createElement)(a.PanelBody,null,(0,r.createElement)(m.f,{context:t}))),(0,r.createElement)("div",{className:s()("wc-block-product-gallery-large-image-next-previous-container",`wc-block-product-gallery-large-image-next-previous--${null==c?void 0:c.classname}`)},(null==c?void 0:c.PrevButtonImage)&&(0,r.createElement)(c.PrevButtonImage,null),(null==c?void 0:c.NextButtonImage)&&(0,r.createElement)(c.NextButtonImage,null)))},save:()=>(0,r.createElement)("div",{...n.useBlockProps.save()})})},256:(e,t,l)=>{"use strict";l.d(t,{f:()=>d});var o=l(9196),r=l(5736),n=l(9818),i=l(2175),a=l(5609),c=l(3083),s=l(1188);const m={[c.z.insideTheImage]:(0,o.createElement)(s.Zg,null),[c.z.outsideTheImage]:(0,o.createElement)(s.qv,null)},u=e=>{switch(e){case c.z.insideTheImage:return(0,r.__)("Next and previous buttons will appear inside the large image.","woocommerce");case c.z.outsideTheImage:return(0,r.__)("Next and previous buttons will appear on outside the large image.","woocommerce");default:return(0,r.__)("No next or previous button will be displayed.","woocommerce")}},d=({context:e})=>{const{productGalleryClientId:t,nextPreviousButtonsPosition:l}=e,{updateBlockAttributes:s}=(0,n.useDispatch)(i.store);return(0,o.createElement)(a.__experimentalToggleGroupControl,{label:(0,r.__)("Next/Prev Buttons","woocommerce"),className:"wc-block-editor-product-gallery-large-image-next-previous-settings",style:{width:"100%"},onChange:e=>s(t,{nextPreviousButtonsPosition:e}),help:u(l),value:l},(0,o.createElement)(a.__experimentalToggleGroupControlOption,{value:c.z.off,label:(0,r.__)("Off","woocommerce")}),(0,o.createElement)(a.__experimentalToggleGroupControlOption,{value:c.z.insideTheImage,label:m.insideTheImage}),(0,o.createElement)(a.__experimentalToggleGroupControlOption,{value:c.z.outsideTheImage,label:m.outsideTheImage}))}},3083:(e,t,l)=>{"use strict";l.d(t,{z:()=>o});let o=function(e){return e.off="off",e.insideTheImage="insideTheImage",e.outsideTheImage="outsideTheImage",e}({})},4263:(e,t,l)=>{"use strict";l.d(t,{P:()=>r});var o=l(1188);const r=e=>{switch(e){case"insideTheImage":return{PrevButtonImage:o._o,NextButtonImage:o.MW,classname:"inside-image"};case"outsideTheImage":return{PrevButtonImage:o.mL,NextButtonImage:o.xt,classname:"outside-image"};default:return null}}},2747:(e,t,l)=>{"use strict";l.d(t,{e:()=>o});let o=function(e){return e.DIGITS="digits",e.DOTS="dots",e.OFF="off",e}({})},1019:(e,t,l)=>{"use strict";l.d(t,{$_:()=>a,j5:()=>s,jW:()=>c,oc:()=>n,xT:()=>i});var o=l(9196),r=l(444);const n=()=>(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.00018 11L7.00018 11L7.00018 13H5.00018V11ZM11.0002 11L13.0002 11V13H11.0002V11ZM17.0002 11L19.0002 11V13H17.0002V11Z",fill:"currentColor"})),i=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},(0,o.createElement)("circle",{cx:"6",cy:"6",r:"6",fill:"black",fillOpacity:"0.2"})),a=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},(0,o.createElement)("circle",{cx:"6",cy:"6",r:"6",fill:"black"})),c=()=>(0,o.createElement)(r.SVG,{width:"80",height:"36",viewBox:"0 0 80 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("circle",{cx:"32.6665",cy:"18",r:"3",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"40.6665",cy:"18",r:"2.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,o.createElement)("circle",{cx:"48.6665",cy:"18",r:"2.25",stroke:"currentColor",strokeWidth:"1.5"})),s=()=>(0,o.createElement)(r.SVG,{width:"80",height:"36",viewBox:"0 0 80 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M30.1417 22H31.9288V14.9541H30.1417L28.3497 16.1748V17.7178L30.0489 16.5703H30.1417V22ZM36.9771 22H41.7231V21.0674H38.4663V20.9697L39.9604 19.4805C41.2397 18.2109 41.6108 17.5957 41.6108 16.7949V16.7803C41.6108 15.6182 40.644 14.7832 39.3306 14.7832C37.9146 14.7832 36.9185 15.6914 36.9136 16.9805L36.9233 16.9902H37.9487L37.9536 16.9756C37.9536 16.2041 38.481 15.6865 39.272 15.6865C40.0435 15.6865 40.5171 16.1943 40.5171 16.8828V16.8975C40.5171 17.4688 40.2485 17.8301 39.3159 18.8018L36.9771 21.2578V22ZM48.7392 22.1318C50.2333 22.1318 51.2929 21.2627 51.2929 20.0518V20.042C51.2929 19.0557 50.5995 18.4307 49.5644 18.3379V18.3135C50.4237 18.1328 51.0487 17.5469 51.0487 16.6729V16.6631C51.0487 15.5742 50.1308 14.8223 48.7294 14.8223C47.3524 14.8223 46.4149 15.6084 46.3075 16.7949L46.3026 16.8486H47.328L47.3329 16.7998C47.4013 16.1357 47.9481 15.7207 48.7294 15.7207C49.5253 15.7207 49.9843 16.1211 49.9843 16.8047V16.8145C49.9843 17.4688 49.4374 17.9424 48.6317 17.9424H47.8065V18.792H48.6659C49.6034 18.792 50.1796 19.2363 50.1796 20.0322V20.042C50.1796 20.7354 49.5985 21.2188 48.7392 21.2188C47.8651 21.2188 47.2743 20.7695 47.206 20.1299L47.2011 20.0811H46.1562L46.161 20.1396C46.2538 21.3066 47.2353 22.1318 48.7392 22.1318Z",fill:"currentColor"}))},531:(e,t,l)=>{"use strict";var o=l(4981),r=l(1019),n=l(9196),i=l(2911),a=l(2175),c=l(5609),s=l(3849),m=l.n(s),u=l(5532),d=l(2747);const p=()=>{const e=Array.from({length:4},((e,t)=>{const l=0===t;return(0,n.createElement)("li",{className:"wc-block-editor-product-gallery-pager__item "+(l?"is-active":""),key:t},t+1)}));return(0,n.createElement)("ul",{className:"wc-block-editor-product-gallery-pager__pager"},e)},g=e=>{const{iconClass:t}=e,l=Array.from({length:3},((e,l)=>{const o=0===l?r.$_:r.xT;return(0,n.createElement)("li",{key:l},(0,n.createElement)(i.Z,{className:t,icon:o,size:12}))}));return(0,n.createElement)("ul",{className:"wc-block-editor-product-gallery-pager__pager"},l)},h=e=>{const{pagerDisplayMode:t}=e;switch(t){case d.e.DOTS:return(0,n.createElement)(g,null);case d.e.DIGITS:return(0,n.createElement)(p,null);case d.e.OFF:return null;default:return(0,n.createElement)(g,null)}},w=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-gallery-pager","version":"1.0.0","title":"Pager","description":"Display the gallery pager.","category":"woocommerce","keywords":["WooCommerce"],"textdomain":"woocommerce","ancestor":["woocommerce/product-gallery"],"usesContext":["pagerDisplayMode","productGalleryClientId","thumbnailsNumberOfThumbnails","postId"]}');l(3369),(0,o.registerBlockType)(w,{icon:r.oc,edit:e=>{const{context:t}=e,l=(0,a.useBlockProps)({className:m()("wc-block-editor-product-gallery-pager","wc-block-product-gallery-pager")});return(0,n.createElement)("div",{...l},(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(c.PanelBody,null,(0,n.createElement)(u.y,{context:t}))),(0,n.createElement)(h,{pagerDisplayMode:t.pagerDisplayMode}))},save:()=>null})},5532:(e,t,l)=>{"use strict";l.d(t,{y:()=>u});var o=l(9196),r=l(2175),n=l(9818),i=l(5736),a=l(5609),c=l(2747),s=l(1019);const m=e=>{switch(e){case c.e.DIGITS:return(0,i.__)("A list of numbers will show to indicate the number of items.","woocommerce");case c.e.DOTS:return(0,i.__)("A series of dots will show to indicate the number of items.","woocommerce");default:return(0,i.__)("No pager will be displayed.","woocommerce")}},u=({context:e})=>{const{productGalleryClientId:t,pagerDisplayMode:l}=e,{updateBlockAttributes:u}=(0,n.useDispatch)(r.store);return(0,o.createElement)(a.__experimentalToggleGroupControl,{label:(0,i.__)("Pager","woocommerce"),style:{width:"100%"},onChange:e=>{u(t,{pagerDisplayMode:e})},help:m(l),value:l},(0,o.createElement)(a.__experimentalToggleGroupControlOption,{value:c.e.OFF,label:(0,i.__)("Off","woocommerce")}),(0,o.createElement)(a.__experimentalToggleGroupControlOption,{value:c.e.DOTS,label:(0,o.createElement)(s.jW,null)}),(0,o.createElement)(a.__experimentalToggleGroupControlOption,{value:c.e.DIGITS,label:(0,o.createElement)(s.j5,null)}))}},2042:(e,t,l)=>{"use strict";l.d(t,{M:()=>g});var o=l(9196),r=l(2175),n=l(5736),i=l(2911),a=l(1046),c=l(3522),s=l(9295),m=l(9818),u=l(5609),d=l(8803);const p={[d.M.OFF]:(0,n.__)("No thumbnails will be displayed.","woocommerce"),[d.M.LEFT]:(0,n.__)("A strip of small images will appear to the left of the main gallery image.","woocommerce"),[d.M.BOTTOM]:(0,n.__)("A strip of small images will appear below the main gallery image.","woocommerce"),[d.M.RIGHT]:(0,n.__)("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,m.useDispatch)(r.store);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(u.__experimentalToggleGroupControl,{className:"wc-block-editor-product-gallery-thumbnails__position-toggle",isBlock:!0,label:(0,n.__)("Thumbnails","woocommerce"),value:e.thumbnailsPosition,help:p[e.thumbnailsPosition],onChange:e=>l(t,{thumbnailsPosition:e})},(0,o.createElement)(u.__experimentalToggleGroupControlOption,{value:d.M.OFF,label:(0,n.__)("Off","woocommerce")}),(0,o.createElement)(u.__experimentalToggleGroupControlOption,{value:d.M.LEFT,label:(0,o.createElement)(i.Z,{size:32,icon:a.Z})}),(0,o.createElement)(u.__experimentalToggleGroupControlOption,{value:d.M.BOTTOM,label:(0,o.createElement)(i.Z,{size:32,icon:c.Z})}),(0,o.createElement)(u.__experimentalToggleGroupControlOption,{value:d.M.RIGHT,label:(0,o.createElement)(i.Z,{size:32,icon:s.Z})})),e.thumbnailsPosition!==d.M.OFF&&(0,o.createElement)(u.RangeControl,{label:(0,n.__)("Number of Thumbnails","woocommerce"),value:e.thumbnailsNumberOfThumbnails,onChange:e=>l(t,{thumbnailsNumberOfThumbnails:Math.round(e)}),help:(0,n.__)("Choose how many thumbnails (3-8) will display. If more images exist, a “View all” button will display.","woocommerce"),max:8,min:3,step:1}))}},8803:(e,t,l)=>{"use strict";l.d(t,{M:()=>o});let o=function(e){return e.OFF="off",e.LEFT="left",e.BOTTOM="bottom",e.RIGHT="right",e}({})},2925:(e,t,l)=>{"use strict";var o=l(4981),r=l(9196);var n=l(2175),i=l(5609);const a=window.wc.wcSettings;var c,s,m,u,d,p,g,h,w,f;const b=(0,a.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),v=b.pluginUrl+"assets/images/",C=(b.pluginUrl,b.buildPhase,null===(c=a.STORE_PAGES.shop)||void 0===c||c.permalink,null===(s=a.STORE_PAGES.checkout)||void 0===s||s.id,null===(m=a.STORE_PAGES.checkout)||void 0===m||m.permalink,null===(u=a.STORE_PAGES.privacy)||void 0===u||u.permalink,null===(d=a.STORE_PAGES.privacy)||void 0===d||d.title,null===(p=a.STORE_PAGES.terms)||void 0===p||p.permalink,null===(g=a.STORE_PAGES.terms)||void 0===g||g.title,null===(h=a.STORE_PAGES.cart)||void 0===h||h.id,null===(w=a.STORE_PAGES.cart)||void 0===w||w.permalink,null!==(f=a.STORE_PAGES.myaccount)&&void 0!==f&&f.permalink?a.STORE_PAGES.myaccount.permalink:(0,a.getSetting)("wpLoginUrl","/wp-login.php"),(0,a.getSetting)("localPickupEnabled",!1),(0,a.getSetting)("countries",{})),y=(0,a.getSetting)("countryData",{}),E=(Object.fromEntries(Object.keys(y).filter((e=>!0===y[e].allowBilling)).map((e=>[e,C[e]||""]))),Object.fromEntries(Object.keys(y).filter((e=>!0===y[e].allowBilling)).map((e=>[e,y[e].states||[]]))),Object.fromEntries(Object.keys(y).filter((e=>!0===y[e].allowShipping)).map((e=>[e,C[e]||""]))),Object.fromEntries(Object.keys(y).filter((e=>!0===y[e].allowShipping)).map((e=>[e,y[e].states||[]]))),Object.fromEntries(Object.keys(y).map((e=>[e,y[e].locale||[]]))),{address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],additional:[]});(0,a.getSetting)("addressFieldsLocations",E).address,(0,a.getSetting)("addressFieldsLocations",E).contact,(0,a.getSetting)("addressFieldsLocations",E).additional,(0,a.getSetting)("additionalFields",{}),(0,a.getSetting)("additionalContactFields",{}),(0,a.getSetting)("additionalAddressFields",{});var k=l(3849),x=l.n(k),_=(l(3790),l(2042)),L=l(8803);const B=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","cropImages"],"textdomain":"woocommerce","ancestor":["woocommerce/product-gallery"],"supports":{"spacing":{"margin":true,"__experimentalDefaultControls":{"margin":true}}}}');(0,o.registerBlockType)(B,{icon:()=>(0,r.createElement)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.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 o=(0,n.useBlockProps)({className:x()("wc-block-product-gallery-thumbnails",`wc-block-product-gallery-thumbnails--number-of-thumbnails-${l.thumbnailsNumberOfThumbnails}`,`wc-block-product-gallery-thumbnails--position-${l.thumbnailsPosition}`)});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{...o},(0,r.createElement)(n.InspectorControls,null,(0,r.createElement)(i.PanelBody,null,(0,r.createElement)(_.M,{attributes:e,setAttributes:t,context:l}))),(0,r.createElement)(i.Disabled,null,(0,r.createElement)((()=>l.thumbnailsPosition!==L.M.OFF?(0,r.createElement)("div",{className:"wc-block-editor-product-gallery-thumbnails"},[...Array(l.thumbnailsNumberOfThumbnails).keys()].map((e=>(0,r.createElement)("div",{className:"wc-block-product-gallery-thumbnails__thumbnail",key:e},(0,r.createElement)("img",{src:`${v}block-placeholders/product-image-gallery.svg`,alt:"Placeholder"}))))):null),null))))},save:()=>null})},3522:(e,t,l)=>{"use strict";l.d(t,{Z:()=>n});var o=l(9196),r=l(444);const n=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},(0,o.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,o.createElement)("rect",{x:"6.25",y:"15.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,o.createElement)("rect",{x:"13.25",y:"15.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}))},1046:(e,t,l)=>{"use strict";l.d(t,{Z:()=>n});var o=l(9196),r=l(444);const n=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none"},(0,o.createElement)("g",{clipPath:"url(#clip0_420_11645)"},(0,o.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,o.createElement)("rect",{x:"1.25",y:"3.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,o.createElement)("rect",{x:"1.25",y:"10.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"})),(0,o.createElement)("defs",null,(0,o.createElement)("clipPath",{id:"clip0_420_11645"},(0,o.createElement)("rect",{width:"24",height:"24",fill:"white",transform:"translate(0.5)"}))))},9295:(e,t,l)=>{"use strict";l.d(t,{Z:()=>n});var o=l(9196),r=l(444);const n=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none"},(0,o.createElement)("g",{clipPath:"url(#clip0_420_11656)"},(0,o.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,o.createElement)("rect",{x:"19.25",y:"3.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,o.createElement)("rect",{x:"19.25",y:"10.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"})),(0,o.createElement)("defs",null,(0,o.createElement)("clipPath",{id:"clip0_420_11656"},(0,o.createElement)("rect",{width:"24",height:"24",fill:"currentColor",transform:"translate(0.5)"}))))},6781:()=>{},3369:()=>{},3790:()=>{},739:()=>{},9196:e=>{"use strict";e.exports=window.React},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 o(e){var r=l[e];if(void 0!==r)return r.exports;var n=l[e]={exports:{}};return t[e].call(n.exports,n,n.exports,o),n.exports}o.m=t,e=[],o.O=(t,l,r,n)=>{if(!l){var i=1/0;for(m=0;m<e.length;m++){for(var[l,r,n]=e[m],a=!0,c=0;c<l.length;c++)(!1&n||i>=n)&&Object.keys(o.O).every((e=>o.O[e](l[c])))?l.splice(c--,1):(a=!1,n<i&&(i=n));if(a){e.splice(m--,1);var s=r();void 0!==s&&(t=s)}}return t}n=n||0;for(var m=e.length;m>0&&e[m-1][2]>n;m--)e[m]=e[m-1];e[m]=[l,r,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var l in t)o.o(t,l)&&!o.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.j=4062,(()=>{var e={4062:0,4123:0,5609:0,8641:0};o.O.j=t=>0===e[t];var t=(t,l)=>{var r,n,[i,a,c]=l,s=0;if(i.some((t=>0!==e[t]))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(c)var m=c(o)}for(t&&t(l);s<i.length;s++)n=i[s],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(m)},l=self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var r=o.O(void 0,[2869],(()=>o(2277)));r=o.O(r),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-gallery"]=r})();