/*! For license information please see index.js.LICENSE.txt */ this.wc=this.wc||{},this.wc.experimental=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=464)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t,n){e.exports=n(47)()},116:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(22);var i=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,s=function(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t=0||(r[n]=e[n]);return r}n.d(t,"a",(function(){return o}))},23:function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;tt.bottom&&n.leftt.right;case"left":return n.left+rt.bottom&&n.topt.right;case"bottom":return n.bottom-r>t.bottom&&n.leftt.right&&n.topt.right&&n.leftt.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var o=n(1),r=n.n(o),i=n(2),a=n.n(i),c=n(0),s=n.n(c),l=n(3),u=n.n(l);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n-1?function(){i||(i=setTimeout(a,r||0))}:function(){clearTimeout(i),i=setTimeout(a,o||0)},getLastTimeout:function(){return i}};e.addEventListener(t,c.fn),n.debounceCheck[t]=c})),b(f(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),b(f(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),b(f(n),"check",(function(){var e,t,o=n.node;if(!o)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(o.getBoundingClientRect())),n.props.containment){var r=n.props.containment.getBoundingClientRect();t={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var i=n.props.offset||{};"object"===m(i)&&(t.top+=i.top||0,t.left+=i.left||0,t.bottom-=i.bottom||0,t.right-=i.right||0);var a={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},c=e.height>0&&e.width>0,s=c&&a.top&&a.left&&a.bottom&&a.right;if(c&&n.props.partialVisibility){var l=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(l=a[n.props.partialVisibility]),s=n.props.minTopValue?l&&e.top<=t.bottom-n.props.minTopValue:l}"string"==typeof i.direction&&"number"==typeof i.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",i.direction,i.value),s=u()(i,e,t));var p=n.state;return n.state.isVisible!==s&&(p={isVisible:s,visibilityRect:a},n.setState(p),n.props.onChange&&n.props.onChange(s)),p})),n.state={isVisible:null,visibilityRect:{}},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.node=a.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=a.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.a.Children.only(this.props.children)}}])&&p(n.prototype,o),i&&p(n,i),t}(r.a.Component);b(g,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.a.createElement("span",null)}),b(g,"propTypes",{onChange:s.a.func,active:s.a.bool,partialVisibility:s.a.oneOfType([s.a.bool,s.a.oneOf(["top","right","bottom","left"])]),delayedCall:s.a.bool,offset:s.a.oneOfType([s.a.shape({top:s.a.number,left:s.a.number,bottom:s.a.number,right:s.a.number}),s.a.shape({direction:s.a.oneOf(["top","right","bottom","left"]),value:s.a.number})]),scrollCheck:s.a.bool,scrollDelay:s.a.number,scrollThrottle:s.a.number,resizeCheck:s.a.bool,resizeDelay:s.a.number,resizeThrottle:s.a.number,intervalCheck:s.a.bool,intervalDelay:s.a.number,containment:"undefined"!=typeof window?s.a.instanceOf(window.Element):s.a.any,children:s.a.oneOfType([s.a.element,s.a.func]),minTopValue:s.a.number})},function(e,t,n){"use strict";var o=n(6);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=o(n(5),n(29))},27:function(e,t){e.exports=window.wp.keycodes},277:function(e,t,n){"use strict";var o=n(0),r=n(8),i=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=i},278:function(e,t,n){"use strict";var o=n(0),r=n(8),i=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=i},29:function(e,t){e.exports=window.ReactDOM},3:function(e,t){e.exports=window.wp.components},33:function(e,t,n){"use strict";var o=n(5),r=n.n(o);t.a=r.a.createContext(null)},464:function(e,t,n){"use strict";n.r(t),n.d(t,"Navigation",(function(){return W})),n.d(t,"NavigationBackButton",(function(){return G})),n.d(t,"NavigationGroup",(function(){return q})),n.d(t,"NavigationMenu",(function(){return $})),n.d(t,"NavigationItem",(function(){return Y})),n.d(t,"Text",(function(){return K})),n.d(t,"useSlot",(function(){return X})),n.d(t,"ListItem",(function(){return l})),n.d(t,"List",(function(){return m})),n.d(t,"CollapsibleList",(function(){return y})),n.d(t,"TaskItem",(function(){return D})),n.d(t,"InboxNoteCard",(function(){return F})),n.d(t,"InboxDismissConfirmationModal",(function(){return U})),n.d(t,"InboxNotePlaceholder",(function(){return V})),n.d(t,"VerticalCSSTransition",(function(){return k}));var o=n(3),r=n(169),i=n(0),a=n(27),c=n(6),s=n.n(c);const l=({children:e,disableGutters:t=!1,animation:n="none",className:o="",exit:c,enter:l,onExited:u,in:m,...p})=>{const d=!!(null==p?void 0:p.onClick),f=d?{role:"button",onKeyDown:e=>{return t=e,void("function"==typeof(n=p.onClick)&&t.keyCode===a.ENTER&&n(t));var t,n},tabIndex:0}:{},h=s()({"has-action":d,"has-gutters":!t,"transitions-disabled":"slide-right"!==n});return Object(i.createElement)(r.a,{timeout:500,classNames:o||"woocommerce-list__item",in:m,exit:c,enter:l,onExited:u},Object(i.createElement)("li",Object.assign({},f,p,{className:`woocommerce-experimental-list__item ${h} ${o}`}),e))};var u=n(172);const m=({children:e,listType:t,animation:n="none",...o})=>Object(i.createElement)(u.a,Object.assign({component:t||"ul",className:"woocommerce-experimental-list"},o),i.Children.map(e,e=>{if(Object(i.isValidElement)(e)){const{onExited:t,in:o,enter:a,exit:c,...s}=e.props,l=s.animation||n;return Object(i.createElement)(r.a,{timeout:500,onExited:t,in:o,enter:a,exit:c,classNames:"woocommerce-list__item"},Object(i.cloneElement)(e,{animation:l,...s}))}return e}));var p=n(116),d=n(278),f=n(277),h=n(65);const b={transitionProperty:"max-height",transitionDuration:"500ms",maxHeight:0,overflow:"hidden"};function g(e,t,n){if(n.lengthe.key);return t.filter(t=>t.key&&e.includes(t.key))}const o=t.map(e=>e.key),r=e.map(e=>e.key);return n.filter(e=>e.key&&(o.includes(e.key)||!r.includes(e.key)))}const v=(e,t,n)=>{let o=0;"entered"!==e&&"entering"!==e||!n||(o=function(e){let t=0;if(e)for(const n of e.children){t+=n.clientHeight;const e=window.getComputedStyle(n);t+=parseInt(e.marginTop,10)||0,t+=parseInt(e.marginBottom,10)||0}return t}(n));const r={...b,maxHeight:o};return"entering"!==e&&"exiting"!==e&&(delete r.transitionDuration,delete r.transition,delete r.transitionProperty),"entered"!==e||t||delete r.maxHeight,r},y=({children:e,collapsed:t=!0,collapseLabel:n,expandLabel:o,show:a=0,onCollapse:c,onExpand:b,...y})=>{const[O,x]=Object(i.useState)(t),[E,w]=Object(i.useState)(t),[j,_]=Object(i.useState)({collapse:n,expand:o}),[k,T]=Object(i.useState)({all:[],shown:[],hidden:[]}),N=Object(i.useRef)(null),C=()=>{let t=[];const r=i.Children.map(e,e=>Object(i.isValidElement)(e)&&"key"in e?e:null)||[];let c=r;a>0&&(t=r.slice(0,a),c=r.slice(a)),c.length>0&&_({expand:o,collapse:n}),T({all:r,shown:t,hidden:c})};Object(i.useEffect)(()=>{w(O)},[O]),Object(i.useEffect)(()=>{const t=i.Children.map(e,e=>Object(i.isValidElement)(e)&&"key"in e?e:null)||[];k.all.length>0&&O&&"none"!==y.animation?(T({...k,shown:g(k.all,k.shown,t)}),setTimeout(()=>{C()},500)):C()},[e]);const S=Object(i.useCallback)(()=>{var e;x(!O),e=!O,c&&e&&c(),b&&!e&&b()},[O]),A=s()(y.className||"","woocommerce-experimental-list"),D=s()({"woocommerce-experimental-list-wrapper":!O});return Object(i.createElement)(m,Object.assign({},y,{className:A}),[...k.shown,Object(i.createElement)(h.a,{key:"remaining-children",timeout:500,in:!E,mountOnEnter:!0,unmountOnExit:!1},e=>{const t=v(e,O,N.current);return Object(i.createElement)("div",{className:D,ref:N,style:t},Object(i.createElement)(u.a,{className:"woocommerce-experimental-list"},i.Children.map(k.hidden,e=>{const{onExited:t,in:n,enter:o,exit:a,...c}=e.props,s=c.animation||y.animation;return Object(i.createElement)(r.a,{key:e.key,timeout:500,onExited:t,in:n,enter:o,exit:a,classNames:"woocommerce-list__item"},Object(i.cloneElement)(e,{animation:s,...c}))})))}),k.hidden.length>0?Object(i.createElement)(l,{key:"collapse-item",className:"list-item-collapse",onClick:S,animation:"none",disableGutters:!0},Object(i.createElement)("p",null,O?j.expand:j.collapse),Object(i.createElement)(p.a,{className:"list-item-collapse__icon",size:30,icon:O?d.a:f.a})):null])};var O=n(2),x=n(475),E=n(61),w=n.n(E),j=n(21),_=n(53);const k=({children:e,defaultStyle:t,...n})=>{const[o,a]=Object(i.useState)(0),[c,s]=Object(i.useState)(n.in||!1),l=Object(i.useRef)(null),u=Object(i.useCallback)(e=>{e&&a(function(e){let t=0;for(const n of e.children){t+=n.clientHeight;const e=window.getComputedStyle(n);t+=parseInt(e.marginTop,10)||0,t+=parseInt(e.marginBottom,10)||0}return t}(e))},[e]);Object(i.useEffect)(()=>{s(n.in||!1)},[n.in]);const m={entered:{maxHeight:o},entering:{maxHeight:o},exiting:{maxHeight:0},exited:{maxHeight:0}},p=e=>{const o=(()=>{const{timeout:e}=n;let t,o,r;return"number"==typeof e&&(t=o=r=e),void 0!==e&&"number"!=typeof e&&(t=e.exit,o=e.enter,r=void 0!==e.appear?e.appear:o),{exit:t,enter:o,appear:r}})(),r=l.current&&l.current.context&&l.current.context.isMounting;let i;i=e.startsWith("enter")?o[r?"enter":"appear"]:o.exit;const a={transitionProperty:"max-height",transitionDuration:void 0===i?"500ms":i+"ms",overflow:"hidden",...t||{},...m[e]};return"entering"!==e&&"exiting"!==e&&(delete a.transitionDuration,delete a.transition,delete a.transitionProperty),"entered"===e&&n.in&&delete a.maxHeight,a};return Object(i.createElement)(r.a,Object.assign({},n,{in:c,ref:l}),t=>Object(i.createElement)("div",{className:"vertical-css-transition-container",style:p(t),ref:u},e))},T=["a","b","em","i","strong","p","br"],N=["target","href","rel","name","download"],C=e=>({__html:Object(_.sanitize)(e,{ALLOWED_TAGS:T,ALLOWED_ATTR:N})}),S=({level:e,completed:t,children:n})=>{let r="";return 1!==e||t?2!==e||t||(r=Object(O.__)("This task is required to set up your extension",'woocommerce')):r=Object(O.__)("This task is required to keep your store running",'woocommerce'),""===r?n:Object(i.createElement)(o.Tooltip,{text:r},n)},A=({children:e,expandable:t,expanded:n})=>t?Object(i.createElement)(k,{timeout:500,in:n,classNames:"woocommerce-task-list__item-expandable-content",defaultStyle:{transitionProperty:"max-height, opacity"}},e):n?Object(i.createElement)(i.Fragment,null,e):null,D=({completed:e,title:t,onDelete:n,onCollapse:r,onDismiss:a,onSnooze:c,onExpand:u,onClick:m,additionalInfo:d,time:f,content:h,expandable:b=!1,expanded:g=!1,showActionButton:v,level:y=3,action:E,actionLabel:_,...k})=>{const[T,N]=Object(i.useState)(g);Object(i.useEffect)(()=>{N(g)},[g]);const D=s()("woocommerce-task-list__item",{complete:e,expanded:T,"level-2":2===y&&!e,"level-1":1===y&&!e});void 0===v&&(v=b);const R=(a||c)&&!e||n&&e;return Object(i.createElement)(l,Object.assign({disableGutters:!0,className:D,onClick:b&&v?()=>{N(!T),T&&u&&u(),!T&&r&&r()}:m},k),Object(i.createElement)(S,{level:y,completed:e},Object(i.createElement)("div",{className:"woocommerce-task-list__item-before"},1!==y||e?Object(i.createElement)("div",{className:"woocommerce-task__icon"},e&&Object(i.createElement)(p.a,{icon:x.a})):Object(i.createElement)(w.a,{size:36}))),Object(i.createElement)("div",{className:"woocommerce-task-list__item-text"},Object(i.createElement)(K,{as:"div",size:"14",lineHeight:e?"18px":"20px",weight:e?"normal":"600",variant:e?"body.small":"button"},Object(i.createElement)("span",{className:"woocommerce-task-list__item-title"},t),Object(i.createElement)(A,{expandable:b,expanded:T},Object(i.createElement)("div",{className:"woocommerce-task-list__item-expandable-content"},h,b&&!e&&d&&Object(i.createElement)("div",{className:"woocommerce-task__additional-info",dangerouslySetInnerHTML:C(d)}),!e&&v&&Object(i.createElement)(o.Button,{className:"woocommerce-task-list__item-action",isPrimary:!0,onClick:e=>{e.stopPropagation(),E(e,{isExpanded:!0})}},_||t))),!b&&!e&&d&&Object(i.createElement)("div",{className:"woocommerce-task__additional-info",dangerouslySetInnerHTML:C(d)}),f&&Object(i.createElement)("div",{className:"woocommerce-task__estimated-time"},f))),R&&Object(i.createElement)(j.EllipsisMenu,{label:Object(O.__)("Task Options",'woocommerce'),className:"woocommerce-task-list__item-after",onToggle:e=>e.stopPropagation(),renderContent:()=>Object(i.createElement)("div",{className:"woocommerce-task-card__section-controls"},a&&!e&&Object(i.createElement)(o.Button,{onClick:e=>{e.stopPropagation(),a()}},Object(O.__)("Dismiss",'woocommerce')),c&&!e&&Object(i.createElement)(o.Button,{onClick:e=>{e.stopPropagation(),c()}},Object(O.__)("Remind me later",'woocommerce')),n&&e&&Object(i.createElement)(o.Button,{onClick:e=>{e.stopPropagation(),n()}},Object(O.__)("Delete",'woocommerce')))}))};var R=n(265),L=n.n(R),M=n(9),P=n.n(M);const I=({label:e,onClick:t,href:n})=>{const[r,a]=Object(i.useState)(!1);return Object(i.createElement)(o.Button,{isSecondary:!0,isBusy:r,disabled:r,href:n,onClick:e=>{const n=e.currentTarget.href||"";let o=!0,r="";window.wcSettings&&(r=window.wcSettings.adminUrl),!n.length||r&&n.startsWith(r)||(e.preventDefault(),o=!1,window.open(n,"_blank")),a(o),t()}},e)};const z=["a","b","em","i","strong","p","br"],B=["target","href","rel","name","download"],H=o.Dropdown,F=({note:e,lastRead:t,onDismiss:n,onNoteActionClick:r,onBodyLinkClick:a,onNoteVisible:c,className:l})=>{const[u,m]=Object(i.useState)(!1),p=Object(i.useRef)(!1),d=Object(i.useRef)(null),f=function(e){const t=Object(i.useCallback)(t=>{const n=t.target;if(n&&"href"in n){const t=n.href;t&&e&&e(t)}},[e]);return Object(i.useCallback)(e=>(e&&e.addEventListener("click",t),()=>{e&&e.removeEventListener("click",t)}),[t])}(t=>{a&&a(e,t)}),h=(t,o)=>{n&&n(e,t),o()},{content:b,date_created:g,date_created_gmt:v,image:y,is_deleted:x,layout:E,status:w,title:k}=e;if(x)return null;const T=!t||!v||new Date(v+"Z").getTime()>t,N=g,C="plain"!==E&&""!==E,S=s()("woocommerce-inbox-message",l,E,{"message-is-unread":T&&"unactioned"===w});return Object(i.createElement)(L.a,{onChange:t=>{t&&!p.current&&(c&&c(e),p.current=!0)}},Object(i.createElement)("section",{className:S},C&&Object(i.createElement)("div",{className:"woocommerce-inbox-message__image"},Object(i.createElement)("img",{src:y,alt:""})),Object(i.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(i.createElement)("div",{className:"woocommerce-inbox-message__content"},T&&Object(i.createElement)("div",{className:"woocommerce-inbox-message__unread-indicator"}),N&&Object(i.createElement)("span",{className:"woocommerce-inbox-message__date"},P.a.utc(N).fromNow()),Object(i.createElement)(j.H,{className:"woocommerce-inbox-message__title"},k),Object(i.createElement)(j.Section,{className:"woocommerce-inbox-message__text"},Object(i.createElement)("span",{dangerouslySetInnerHTML:(A=b,{__html:Object(_.sanitize)(A,{ALLOWED_TAGS:z,ALLOWED_ATTR:B})}),ref:f}))),Object(i.createElement)("div",{className:"woocommerce-inbox-message__actions"},(()=>{const{actions:t}=e;return u||(t?Object(i.createElement)(i.Fragment,null,t.map(t=>Object(i.createElement)(I,{key:t.id,label:t.label,href:t&&t.url&&t.url.length?t.url:void 0,onClick:()=>(t=>{r&&r(e,t),t.actioned_text&&m(t.actioned_text)})(t)}))):void 0)})(),u?null:Object(i.createElement)(H,{contentClassName:"woocommerce-admin-dismiss-dropdown",position:"bottom right",renderToggle:({onClose:e,onToggle:t})=>Object(i.createElement)(o.Button,{isTertiary:!0,onClick:e=>{e.target.focus(),t()},ref:d,onBlur:t=>((e,t)=>{const n=["woocommerce-admin-dismiss-notification","components-popover__content","components-dropdown__content"];let o=null;if(e.relatedTarget)o=e.relatedTarget;else if(d.current){const e=d.current.ownerDocument;o=e?e.activeElement:null}let r=!1;if(o&&"className"in o){const e=o.className;r=n.some(t=>e.includes(t))}r?e.preventDefault():t()})(t,e)},Object(O.__)("Dismiss",'woocommerce')),focusOnMount:!1,popoverProps:{noArrow:!0},renderContent:({onToggle:e})=>Object(i.createElement)("ul",null,Object(i.createElement)("li",null,Object(i.createElement)(o.Button,{className:"woocommerce-admin-dismiss-notification",onClick:()=>h("note",e)},Object(O.__)("Dismiss this message",'woocommerce'))),Object(i.createElement)("li",null,Object(i.createElement)(o.Button,{className:"woocommerce-admin-dismiss-notification",onClick:()=>h("all",e)},Object(O.__)("Dismiss all messages",'woocommerce'))))})))));var A},U=({onClose:e,onDismiss:t,buttonLabel:n=Object(O.__)("Yes, I'm sure",'woocommerce')})=>{const[r,a]=Object(i.useState)(!1);return Object(i.createElement)(o.Modal,{title:Object(O.__)("Are you sure?",'woocommerce'),onRequestClose:()=>e(),className:"woocommerce-inbox-dismiss-confirmation_modal"},Object(i.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_wrapper"},Object(i.createElement)("p",null,Object(O.__)("Dismissed messages cannot be viewed again",'woocommerce')),Object(i.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_buttons"},Object(i.createElement)(o.Button,{isSecondary:!0,onClick:()=>e()},Object(O.__)("Cancel",'woocommerce')),Object(i.createElement)(o.Button,{isSecondary:!0,isBusy:r,disabled:r,onClick:()=>{a(!0),t()}},n))))},V=({className:e})=>Object(i.createElement)("div",{className:"woocommerce-inbox-message is-placeholder "+e,"aria-hidden":!0},Object(i.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(i.createElement)("div",{className:"woocommerce-inbox-message__content"},Object(i.createElement)("div",{className:"woocommerce-inbox-message__date"},Object(i.createElement)("div",{className:"sixth-line"})),Object(i.createElement)("div",{className:"woocommerce-inbox-message__title"},Object(i.createElement)("div",{className:"line"}),Object(i.createElement)("div",{className:"line"})),Object(i.createElement)("div",{className:"woocommerce-inbox-message__text"},Object(i.createElement)("div",{className:"line"}),Object(i.createElement)("div",{className:"third-line"}))),Object(i.createElement)("div",{className:"woocommerce-inbox-message__actions"},Object(i.createElement)("div",{className:"fifth-line"}),Object(i.createElement)("div",{className:"fifth-line"})))),W=o.Navigation||o.__experimentalNavigation,G=o.NavigationBackButton||o.__experimentalNavigationBackButton,q=o.NavigationGroup||o.__experimentalNavigationGroup,$=o.NavigationMenu||o.__experimentalNavigationMenu,Y=o.NavigationItem||o.__experimentalNavigationItem,K=o.Text||o.__experimentalText,X=o.useSlot||o.__experimentalUseSlot},47:function(e,t,n){"use strict";var o=n(48);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},475:function(e,t,n){"use strict";var o=n(0),r=n(8),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=i},48:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5:function(e,t){e.exports=window.React},53:function(e,t,n){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,o=Object.getPrototypeOf,r=Object.getOwnPropertyDescriptor,i=Object.freeze,a=Object.seal,c=Object.create,s="undefined"!=typeof Reflect&&Reflect,l=s.apply,u=s.construct;l||(l=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),u||(u=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),r=1;r/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),F=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=a(/^(?:\w+script|data):/i),V=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function G(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:q(),n=function(t){return e(t)};if(n.version="2.2.9",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var o=t.document,r=t.document,a=t.DocumentFragment,c=t.HTMLTemplateElement,s=t.Node,l=t.Element,u=t.NodeFilter,m=t.NamedNodeMap,E=void 0===m?t.NamedNodeMap||t.MozNamedAttrMap:m,Y=t.Text,K=t.Comment,X=t.DOMParser,Z=t.trustedTypes,J=l.prototype,Q=_(J,"cloneNode"),ee=_(J,"nextSibling"),te=_(J,"childNodes"),ne=_(J,"parentNode");if("function"==typeof c){var oe=r.createElement("template");oe.content&&oe.content.ownerDocument&&(r=oe.content.ownerDocument)}var re=$(Z,o),ie=re&&Pe?re.createHTML(""):"",ae=r,ce=ae.implementation,se=ae.createNodeIterator,le=ae.createDocumentFragment,ue=o.importNode,me={};try{me=j(r).documentMode?r.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof ne&&ce&&void 0!==ce.createHTMLDocument&&9!==me;var de=I,fe=z,he=B,be=H,ge=U,ve=V,ye=F,Oe=null,xe=w({},[].concat(G(k),G(T),G(N),G(S),G(D))),Ee=null,we=w({},[].concat(G(R),G(L),G(M),G(P))),je=null,_e=null,ke=!0,Te=!0,Ne=!1,Ce=!1,Se=!1,Ae=!1,De=!1,Re=!1,Le=!1,Me=!0,Pe=!1,Ie=!0,ze=!0,Be=!1,He={},Fe=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ue=null,Ve=w({},["audio","video","img","source","image","track"]),We=null,Ge=w({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Ke=Ye,Xe=!1,Ze=null,Je=r.createElement("form"),Qe=function(e){Ze&&Ze===e||(e&&"object"===(void 0===e?"undefined":W(e))||(e={}),e=j(e),Oe="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS):xe,Ee="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR):we,We="ADD_URI_SAFE_ATTR"in e?w(j(Ge),e.ADD_URI_SAFE_ATTR):Ge,Ue="ADD_DATA_URI_TAGS"in e?w(j(Ve),e.ADD_DATA_URI_TAGS):Ve,je="FORBID_TAGS"in e?w({},e.FORBID_TAGS):{},_e="FORBID_ATTR"in e?w({},e.FORBID_ATTR):{},He="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=e.SAFE_FOR_TEMPLATES||!1,Se=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Le=e.RETURN_DOM_FRAGMENT||!1,Me=!1!==e.RETURN_DOM_IMPORT,Pe=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Ie=!1!==e.SANITIZE_DOM,ze=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||ye,Ke=e.NAMESPACE||Ye,Ce&&(Te=!1),Le&&(Re=!0),He&&(Oe=w({},[].concat(G(D))),Ee=[],!0===He.html&&(w(Oe,k),w(Ee,R)),!0===He.svg&&(w(Oe,T),w(Ee,L),w(Ee,P)),!0===He.svgFilters&&(w(Oe,N),w(Ee,L),w(Ee,P)),!0===He.mathMl&&(w(Oe,S),w(Ee,M),w(Ee,P))),e.ADD_TAGS&&(Oe===xe&&(Oe=j(Oe)),w(Oe,e.ADD_TAGS)),e.ADD_ATTR&&(Ee===we&&(Ee=j(Ee)),w(Ee,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&w(We,e.ADD_URI_SAFE_ATTR),ze&&(Oe["#text"]=!0),Se&&w(Oe,["html","head","body"]),Oe.table&&(w(Oe,["tbody"]),delete je.tbody),i&&i(e),Ze=e)},et=w({},["mi","mo","mn","ms","mtext"]),tt=w({},["foreignobject","desc","title","annotation-xml"]),nt=w({},T);w(nt,N),w(nt,C);var ot=w({},S);w(ot,A);var rt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var n=h(e.tagName),o=h(t.tagName);if(e.namespaceURI===$e)return t.namespaceURI===Ye?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===o||et[o]):Boolean(nt[n]);if(e.namespaceURI===qe)return t.namespaceURI===Ye?"math"===n:t.namespaceURI===$e?"math"===n&&tt[o]:Boolean(ot[n]);if(e.namespaceURI===Ye){if(t.namespaceURI===$e&&!tt[o])return!1;if(t.namespaceURI===qe&&!et[o])return!1;var r=w({},["title","style","font","a","script"]);return!ot[n]&&(r[n]||!nt[n])}return!1},it=function(e){f(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},at=function(e,t){try{f(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Re||Le)try{it(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ct=function(e){var t=void 0,n=void 0;if(De)e=""+e;else{var o=b(e,/^[\r\n\t ]+/);n=o&&o[0]}var i=re?re.createHTML(e):e;if(Ke===Ye)try{t=(new X).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(Ke,"template",null);try{t.documentElement.innerHTML=Xe?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Se?t.documentElement:a},st=function(e){return se.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},lt=function(e){return!(e instanceof Y||e instanceof K||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof E&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},ut=function(e){return"object"===(void 0===s?"undefined":W(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":W(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},mt=function(e,t,o){pe[e]&&p(pe[e],(function(e){e.call(n,t,o,Ze)}))},pt=function(e){var t=void 0;if(mt("beforeSanitizeElements",e,null),lt(e))return it(e),!0;if(b(e.nodeName,/[\u0080-\uFFFF]/))return it(e),!0;var o=h(e.nodeName);if(mt("uponSanitizeElement",e,{tagName:o,allowedTags:Oe}),!ut(e.firstElementChild)&&(!ut(e.content)||!ut(e.content.firstElementChild))&&O(/<[/\w]/g,e.innerHTML)&&O(/<[/\w]/g,e.textContent))return it(e),!0;if(!Oe[o]||je[o]){if(ze&&!Fe[o]){var r=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&r)for(var a=i.length-1;a>=0;--a)r.insertBefore(Q(i[a],!0),ee(e))}return it(e),!0}return e instanceof l&&!rt(e)?(it(e),!0):"noscript"!==o&&"noembed"!==o||!O(/<\/no(script|embed)/i,e.innerHTML)?(Ce&&3===e.nodeType&&(t=e.textContent,t=g(t,de," "),t=g(t,fe," "),e.textContent!==t&&(f(n.removed,{element:e.cloneNode()}),e.textContent=t)),mt("afterSanitizeElements",e,null),!1):(it(e),!0)},dt=function(e,t,n){if(Ie&&("id"===t||"name"===t)&&(n in r||n in Je))return!1;if(Te&&O(he,t));else if(ke&&O(be,t));else{if(!Ee[t]||_e[t])return!1;if(We[t]);else if(O(ye,g(n,ve,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Ue[e])if(Ne&&!O(ge,g(n,ve,"")));else if(n)return!1}return!0},ft=function(e){var t=void 0,o=void 0,r=void 0,i=void 0;mt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};for(i=a.length;i--;){var s=t=a[i],l=s.name,u=s.namespaceURI;if(o=y(t.value),r=h(l),c.attrName=r,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,mt("uponSanitizeAttribute",e,c),o=c.attrValue,!c.forceKeepAttr&&(at(l,e),c.keepAttr))if(O(/\/>/i,o))at(l,e);else{Ce&&(o=g(o,de," "),o=g(o,fe," "));var m=e.nodeName.toLowerCase();if(dt(m,r,o))try{u?e.setAttributeNS(u,l,o):e.setAttribute(l,o),d(n.removed)}catch(e){}}}mt("afterSanitizeAttributes",e,null)}},ht=function e(t){var n=void 0,o=st(t);for(mt("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)mt("uponSanitizeShadowNode",n,null),pt(n)||(n.content instanceof a&&e(n.content),ft(n));mt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var i=void 0,c=void 0,l=void 0,u=void 0,m=void 0;if((Xe=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ut(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported){if("object"===W(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(ut(e))return t.toStaticHTML(e.outerHTML)}return e}if(Ae||Qe(r),n.removed=[],"string"==typeof e&&(Be=!1),Be);else if(e instanceof s)1===(c=(i=ct("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?i=c:i.appendChild(c);else{if(!Re&&!Ce&&!Se&&-1===e.indexOf("<"))return re&&Pe?re.createHTML(e):e;if(!(i=ct(e)))return Re?null:ie}i&&De&&it(i.firstChild);for(var p=st(Be?e:i);l=p.nextNode();)3===l.nodeType&&l===u||pt(l)||(l.content instanceof a&&ht(l.content),ft(l),u=l);if(u=null,Be)return e;if(Re){if(Le)for(m=le.call(i.ownerDocument);i.firstChild;)m.appendChild(i.firstChild);else m=i;return Me&&(m=ue.call(o,m,!0)),m}var d=Se?i.outerHTML:i.innerHTML;return Ce&&(d=g(d,de," "),d=g(d,fe," ")),re&&Pe?re.createHTML(d):d},n.setConfig=function(e){Qe(e),Ae=!0},n.clearConfig=function(){Ze=null,Ae=!1},n.isValidAttribute=function(e,t,n){Ze||Qe({});var o=h(e),r=h(t);return dt(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],f(pe[e],t))},n.removeHook=function(e){pe[e]&&d(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}()}()},6:function(e,t,n){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],o=0;o