HEX
Server: LiteSpeed
System: Linux premium212.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: vitanhod (1367)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //proc/self/root/home/vitanhod/www/wp-content/plugins/woocommerce/assets/client/blocks/wishlist.js
(()=>{var e,o,t,r={303:(e,o,t)=>{"use strict";const r=window.wp.blocks;var c=t(7871),i=t(7857);const s=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/wishlist","version":"1.0.0","title":"Wishlist","description":"Display the shopper\'s wishlist.","category":"woocommerce","keywords":["WooCommerce","Wishlist"],"textdomain":"woocommerce","attributes":{"columnCount":{"type":"number","default":5}},"allowedBlocks":["core/heading"],"supports":{"align":["wide","full"],"interactivity":true,"html":false,"reusable":false,"spacing":{"margin":true,"padding":true,"blockGap":true},"typography":{"fontSize":true,"lineHeight":true},"color":{"text":true,"background":true}},"viewScriptModule":"woocommerce/wishlist","style":["file:../woocommerce/wishlist-style.css","wc-blocks-style-product-image","woocommerce-product-price-style","woocommerce-product-button-style"]}');var n=t(7723);const l=window.wp.blockEditor,a=window.wp.components;var p=t(5351);const m=window.wc.wcSettings;var u=t(790);const w=[["core/heading",{content:(0,n.__)("Wishlist","woocommerce"),level:2}]],d=[{key:"preview-1",name:(0,n.__)("Sample product one","woocommerce"),variation:(0,n.__)("Size: M","woocommerce"),price:"$19.99"},{key:"preview-2",name:(0,n.__)("Sample product two","woocommerce"),variation:(0,n.__)("Color: Blue","woocommerce"),price:"$29.99"},{key:"preview-3",name:(0,n.__)("Sample product three","woocommerce"),variation:"",price:"$9.99"},{key:"preview-4",name:(0,n.__)("Sample product four","woocommerce"),variation:(0,n.__)("Size: L","woocommerce"),price:"$24.99"},{key:"preview-5",name:(0,n.__)("Sample product five","woocommerce"),variation:"",price:"$14.99"},{key:"preview-6",name:(0,n.__)("Sample product six","woocommerce"),variation:(0,n.__)("Color: Red","woocommerce"),price:"$39.99"}];t(8147),(0,r.registerBlockType)(s,{icon:{src:(0,u.jsx)(c.A,{icon:i.A,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e,setAttributes:o})=>{const{columnCount:t}=e,r=(0,l.useBlockProps)({className:"wc-block-wishlist"}),i=(0,l.useInnerBlocksProps)({className:"wc-block-wishlist__header"},{template:w});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.InspectorControls,{children:(0,u.jsx)(a.PanelBody,{title:(0,n.__)("Settings","woocommerce"),children:(0,u.jsx)(a.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,n.__)("Columns","woocommerce"),value:t,onChange:e=>{"number"==typeof e&&o({columnCount:e})},min:2,max:6})})}),(0,u.jsxs)("section",{...r,children:[(0,u.jsx)("div",{...i}),(0,u.jsx)("ul",{className:`wc-block-wishlist__list columns-${t}`,children:d.map(e=>(0,u.jsxs)("li",{className:"wc-block-shopper-list-item",children:[(0,u.jsxs)("div",{className:"wc-block-components-product-image wc-block-components-product-image--aspect-ratio-auto",children:[(0,u.jsx)("a",{href:"#preview",onClick:e=>e.preventDefault(),children:(0,u.jsx)("img",{src:m.PLACEHOLDER_IMG_SRC,alt:""})}),(0,u.jsx)("button",{type:"button",className:"wc-block-shopper-list-item__remove","aria-label":(0,n.sprintf)(/* translators: %s: product name. */ /* translators: %s: product name. */
(0,n.__)("Remove %s from wishlist","woocommerce"),e.name),disabled:!0,children:(0,u.jsx)(c.A,{icon:p.A,size:24})}),e.variation&&(0,u.jsx)("span",{className:"wc-block-shopper-list-item__variation",children:e.variation})]}),(0,u.jsx)("h2",{className:"wp-block-post-title has-text-align-center has-medium-font-size",children:(0,u.jsx)("a",{href:"#preview",onClick:e=>e.preventDefault(),children:e.name})}),(0,u.jsx)("div",{className:"price wc-block-components-product-price has-text-align-center has-small-font-size",children:(0,u.jsx)("span",{className:"wc-block-components-product-price__value",children:e.price})}),(0,u.jsx)("div",{className:"wp-block-button wc-block-components-product-button",children:(0,u.jsx)("button",{type:"button",className:"wp-block-button__link wp-element-button add_to_cart_button wc-block-components-product-button__button",disabled:!0,children:(0,n.__)("Add to cart","woocommerce")})})]},e.key))})]})]})},save:()=>(0,u.jsx)(l.InnerBlocks.Content,{})})},8147:()=>{},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives}},c={};function i(e){var o=c[e];if(void 0!==o)return o.exports;var t=c[e]={exports:{}};return r[e](t,t.exports,i),t.exports}i.m=r,e=[],i.O=(o,t,r,c)=>{if(!t){var s=1/0;for(p=0;p<e.length;p++){for(var[t,r,c]=e[p],n=!0,l=0;l<t.length;l++)(!1&c||s>=c)&&Object.keys(i.O).every(e=>i.O[e](t[l]))?t.splice(l--,1):(n=!1,c<s&&(s=c));if(n){e.splice(p--,1);var a=r();void 0!==a&&(o=a)}}return o}c=c||0;for(var p=e.length;p>0&&e[p-1][2]>c;p--)e[p]=e[p-1];e[p]=[t,r,c]},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 c=Object.create(null);i.r(c);var s={};o=o||[null,t({}),t([]),t(t)];for(var n=2&r&&e;"object"==typeof n&&!~o.indexOf(n);n=t(n))Object.getOwnPropertyNames(n).forEach(o=>s[o]=()=>e[o]);return s.default=()=>e,i.d(c,s),c},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.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,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=6870,(()=>{var e={6870:0};i.O.j=o=>0===e[o];var o=(o,t)=>{var r,c,[s,n,l]=t,a=0;if(s.some(o=>0!==e[o])){for(r in n)i.o(n,r)&&(i.m[r]=n[r]);if(l)var p=l(i)}for(o&&o(t);a<s.length;a++)c=s[a],i.o(e,c)&&e[c]&&e[c][0](),e[c]=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 s=i.O(void 0,[94],()=>i(303));s=i.O(s),((this.wc=this.wc||{}).blocks=this.wc.blocks||{}).wishlist=s})();