Files
php_assessment_2/wp-content/plugins/woocommerce-services/dist/chunks/fbf7fa6068a3f56992b0.min.js
T

1 line
10 KiB
JavaScript
Raw Normal View History

2025-02-05 23:15:46 +01:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[141],{414:function(e,t,n){"use strict";var a=n(12),c=n(23),o=n(2),l=n(32),r=n.n(l),i=n(160);t.a=Object(o.forwardRef)(function(e,t){var n=e.className,l=Object(c.a)(e,["className"]),s=r()("components-flex__item",n);return Object(o.createElement)(i.b,Object(a.a)({},l,{className:s,ref:t}))})},423:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var a=n(2),c=new WeakMap;function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(a.useMemo)(function(){if(n)return n;var a=function(e){var t=c.get(e)||0;return c.set(e,t+1),t}(e);return t?"".concat(t,"-").concat(a):a},[e])}},670:function(e,t,n){"use strict";var a=n(12),c=n(23),o=n(25),l=n(29),r=n(31),i=n(30),s=n(15),u=n(2),b=n(112),d=n(179),m=n(423),p=Object(d.a)(function(e){return function(t){var n=Object(m.a)(e);return Object(u.createElement)(e,Object(a.a)({},t,{instanceId:n}))}},"withInstanceId"),f=n(115),h=n(17),O=n(32),j=n.n(O),y=n(118),v=n(0),g=v.flowRight,_=n(156),E=n(158),C=n(163),N=n(157);function k(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,a=Object(s.a)(e);if(t){var c=Object(s.a)(this).constructor;n=Reflect.construct(a,arguments,c)}else n=a.apply(this,arguments);return Object(i.a)(this,n)}}var w=function(e){Object(r.a)(n,e);var t=k(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).containerRef=Object(u.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(h.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(h.a)(e)),e}return Object(l.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===y.a&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,a=e.aria,c=a.describedby,o=a.labelledby,l=e.children,r=e.className,i=e.role,s=e.style;return Object(u.createElement)(_.a,{className:j()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(u.createElement)("div",{className:j()("components-modal__frame",r),style:s,ref:this.containerRef,role:i,"aria-label":n,"aria-labelledby":n?null:o,"aria-describedby":c,tabIndex:"-1"},l))}}]),n}(u.Component),D=g([C.a,N.a,E.a])(w),R=n(117),x=n(669),M=n(159),F=function(e){var t=e.icon,n=e.title,a=e.onClose,c=e.closeLabel,o=e.headingId,l=e.isDismissible,r=c||Object(R.a)("Close dialog");return Object(u.createElement)("div",{className:"components-modal__header"},Object(u.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(u.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(u.createElement)("h1",{id:o,className:"components-modal__header-heading"},n)),l&&Object(u.createElement)(M.a,{onClick:a,icon:x.a,label:r}))},L=new Set(["alert","status","log","marquee","timer"]),S=[],P=!1;function z(e){if(!P){var t=document.body.children;Object(v.forEach)(t,function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||L.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),S.push(t))}),P=!0}}function I(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,a=Object(s.a)(e);if(t){var c=Object(s.a)(this).construc