File "store-notices.js"
Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/woocommerce/assets/client/blocks/store-notices.js
File size: 5.22 KB
MIME-type: text/plain
Charset: utf-8
(()=>{var e,t={6866:(e,t,o)=>{"use strict";o.r(t);var s=o(9196);const n=window.wp.blocks;var r=o(2911),c=o(444);const i=(0,s.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none"},(0,s.createElement)("path",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",d:"M6 3.75h12c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25H6c-.69 0-1.25-.56-1.25-1.25V5c0-.69.56-1.25 1.25-1.25z"}),(0,s.createElement)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.9 7.5A1.1 1.1 0 018 6.4h8a1.1 1.1 0 011.1 1.1v2a1.1 1.1 0 01-1.1 1.1H8a1.1 1.1 0 01-1.1-1.1v-2zm1.2.1v1.8h7.8V7.6H8.1z",clipRule:"evenodd"}),(0,s.createElement)("path",{fill:"currentColor",d:"M8.5 12h1v1h-1v-1zM8.5 14h1v1h-1v-1zM8.5 16h1v1h-1v-1zM11.5 12h1v1h-1v-1zM11.5 14h1v1h-1v-1zM11.5 16h1v1h-1v-1zM14.5 12h1v1h-1v-1zM14.5 14h1v1h-1v-1zM14.5 16h1v1h-1v-1z"})),a=JSON.parse('{"name":"woocommerce/store-notices","version":"1.0.0","title":"Store Notices","description":"Display shopper-facing notifications generated by WooCommerce or extensions.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"multiple":false,"align":["wide","full"]},"attributes":{"align":{"type":"string","default":"wide"}},"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),l=window.wp.blockEditor;var p=o(5736),m=o(3849),u=o.n(m),w=o(9140),d=(o(946),o(202)),v=o(2720),h=o(4824);const b=e=>{switch(e){case"success":case"warning":case"info":case"default":return"polite";default:return"assertive"}},f=e=>{switch(e){case"success":return d.Z;case"warning":case"info":case"error":return v.Z;default:return h.Z}};var k=o(3871);o(1029),o(7440);const g=()=>(0,s.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"}),y=({className:e,showSpinner:t=!1,children:o,variant:n="contained",...r})=>{const c=u()("wc-block-components-button","wp-element-button",e,n,{"wc-block-components-button--loading":t});return(0,s.createElement)(k.Z,{className:c,...r},t&&(0,s.createElement)(g,null),(0,s.createElement)("span",{className:"wc-block-components-button__text"},o))};var x=o(9307),E=o(5158);const _=({className:e,status:t="default",children:o,spokenMessage:n=o,onRemove:c=(()=>{}),isDismissible:i=!0,politeness:a=b(t),summary:l})=>(((e,t)=>{const o="string"==typeof e?e:(0,x.renderToString)(e);(0,x.useEffect)((()=>{o&&(0,E.speak)(o,t)}),[o,t])})(n,a),(0,s.createElement)("div",{className:u()(e,"wc-block-components-notice-banner","is-"+t,{"is-dismissible":i})},(0,s.createElement)(r.Z,{icon:f(t)}),(0,s.createElement)("div",{className:"wc-block-components-notice-banner__content"},l&&(0,s.createElement)("p",{className:"wc-block-components-notice-banner__summary"},l),o),!!i&&(0,s.createElement)(y,{className:"wc-block-components-notice-banner__dismiss",icon:w.Z,label:(0,p.__)("Dismiss this notice","woocommerce"),onClick:e=>{"function"==typeof(null==e?void 0:e.preventDefault)&&e.preventDefault&&e.preventDefault(),c()},showTooltip:!1})));o(8337);(0,n.registerBlockType)(a,{icon:{src:(0,s.createElement)(r.Z,{icon:i,className:"wc-block-editor-components-block-icon"})},attributes:{...a.attributes},edit:()=>{const e=(0,l.useBlockProps)({className:"wc-block-store-notices"});return(0,s.createElement)("div",{...e},(0,s.createElement)(_,{status:"info",isDismissible:!1},(0,p.__)("Notices added by WooCommerce or extensions will show up here.","woocommerce")))},save:()=>null})},1029:()=>{},946:()=>{},8337:()=>{},7440:()=>{},9196:e=>{"use strict";e.exports=window.React},2819:e=>{"use strict";e.exports=window.lodash},5158:e=>{"use strict";e.exports=window.wp.a11y},4333:e=>{"use strict";e.exports=window.wp.compose},7180:e=>{"use strict";e.exports=window.wp.deprecated},5904:e=>{"use strict";e.exports=window.wp.dom},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},2560:e=>{"use strict";e.exports=window.wp.warning}},o={};function s(e){var n=o[e];if(void 0!==n)return n.exports;var r=o[e]={exports:{}};return t[e].call(r.exports,r,r.exports,s),r.exports}s.m=t,e=[],s.O=(t,o,n,r)=>{if(!o){var c=1/0;for(p=0;p<e.length;p++){for(var[o,n,r]=e[p],i=!0,a=0;a<o.length;a++)(!1&r||c>=r)&&Object.keys(s.O).every((e=>s.O[e](o[a])))?o.splice(a--,1):(i=!1,r<c&&(c=r));if(i){e.splice(p--,1);var l=n();void 0!==l&&(t=l)}}return t}r=r||0;for(var p=e.length;p>0&&e[p-1][2]>r;p--)e[p]=e[p-1];e[p]=[o,n,r]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.j=4626,(()=>{var e={4626:0};s.O.j=t=>0===e[t];var t=(t,o)=>{var n,r,[c,i,a]=o,l=0;if(c.some((t=>0!==e[t]))){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);if(a)var p=a(s)}for(t&&t(o);l<c.length;l++)r=c[l],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return s.O(p)},o=self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var n=s.O(void 0,[2869],(()=>s(6866)));n=s.O(n),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["store-notices"]=n})();