File "marketing-coupons.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/marketing-coupons.js
File size: 79.54 KB
MIME-type: text/plain
Charset: utf-8

/*! For license information please see marketing-coupons.js.LICENSE.txt */
(()=>{var e={33561:function(e){e.exports=function(){"use strict";function e(t){return e="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(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},n.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=Object.hasOwnProperty,i=Object.setPrototypeOf,c=Object.isFrozen,l=Object.getPrototypeOf,s=Object.getOwnPropertyDescriptor,m=Object.freeze,u=Object.seal,d=Object.create,p="undefined"!=typeof Reflect&&Reflect,f=p.apply,g=p.construct;f||(f=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),u||(u=function(e){return e}),g||(g=function(e,t){return n(e,r(t))});var h,E=T(Array.prototype.forEach),w=T(Array.prototype.pop),v=T(Array.prototype.push),C=T(String.prototype.toLowerCase),y=T(String.prototype.toString),_=T(String.prototype.match),b=T(String.prototype.replace),N=T(String.prototype.indexOf),x=T(String.prototype.trim),k=T(RegExp.prototype.test),S=(h=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(h,t)});function T(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return f(e,t,r)}}function A(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:C,i&&i(e,null);for(var o=t.length;o--;){var a=t[o];if("string"==typeof a){var l=n(a);l!==a&&(c(t)||(t[o]=l),a=l)}e[a]=!0}return e}function L(e){var t,n=d(null);for(t in e)!0===f(a,e,[t])&&(n[t]=e[t]);return n}function M(e,t){for(;null!==e;){var n=s(e,t);if(n){if(n.get)return T(n.get);if("function"==typeof n.value)return T(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var P=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),O=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),V=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=m(["#text"]),U=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),G=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=u(/<%[\w\W]*|[\w\W]*%>/gm),$=u(/\${[\w\W]*}/gm),W=u(/^data-[\-\w.\u00B7-\uFFFF]/),Z=u(/^aria-[\-\w]+$/),q=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=u(/^(?:\w+script|data):/i),Y=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=u(/^html$/i),J=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),o=function(e){return t(e)};if(o.version="2.4.7",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var a=n.document,i=n.document,c=n.DocumentFragment,l=n.HTMLTemplateElement,s=n.Node,u=n.Element,d=n.NodeFilter,p=n.NamedNodeMap,f=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,g=n.HTMLFormElement,h=n.DOMParser,T=n.trustedTypes,Q=u.prototype,ee=M(Q,"cloneNode"),te=M(Q,"nextSibling"),ne=M(Q,"childNodes"),re=M(Q,"parentNode");if("function"==typeof l){var oe=i.createElement("template");oe.content&&oe.content.ownerDocument&&(i=oe.content.ownerDocument)}var ae=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(T,a),ie=ae?ae.createHTML(""):"",ce=i,le=ce.implementation,se=ce.createNodeIterator,me=ce.createDocumentFragment,ue=ce.getElementsByTagName,de=a.importNode,pe={};try{pe=L(i).documentMode?i.documentMode:{}}catch(e){}var fe={};o.isSupported="function"==typeof re&&le&&void 0!==le.createHTMLDocument&&9!==pe;var ge,he,Ee=B,we=j,ve=$,Ce=W,ye=Z,_e=K,be=Y,Ne=q,xe=null,ke=A({},[].concat(r(P),r(R),r(O),r(D),r(H))),Se=null,Te=A({},[].concat(r(U),r(G),r(z),r(F))),Ae=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Me=null,Pe=!0,Re=!0,Oe=!1,Ie=!0,De=!1,Ve=!1,He=!1,Ue=!1,Ge=!1,ze=!1,Fe=!1,Be=!0,je=!1,$e=!0,We=!1,Ze={},qe=null,Ke=A({},["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"]),Ye=null,Xe=A({},["audio","video","img","source","image","track"]),Je=null,Qe=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=nt,ot=!1,at=null,it=A({},[et,tt,nt],y),ct=["application/xhtml+xml","text/html"],lt=null,st=i.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(t){lt&&lt===t||(t&&"object"===e(t)||(t={}),t=L(t),ge=ge=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===ge?y:C,xe="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS,he):ke,Se="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR,he):Te,at="ALLOWED_NAMESPACES"in t?A({},t.ALLOWED_NAMESPACES,y):it,Je="ADD_URI_SAFE_ATTR"in t?A(L(Qe),t.ADD_URI_SAFE_ATTR,he):Qe,Ye="ADD_DATA_URI_TAGS"in t?A(L(Xe),t.ADD_DATA_URI_TAGS,he):Xe,qe="FORBID_CONTENTS"in t?A({},t.FORBID_CONTENTS,he):Ke,Le="FORBID_TAGS"in t?A({},t.FORBID_TAGS,he):{},Me="FORBID_ATTR"in t?A({},t.FORBID_ATTR,he):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Pe=!1!==t.ALLOW_ARIA_ATTR,Re=!1!==t.ALLOW_DATA_ATTR,Oe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,De=t.SAFE_FOR_TEMPLATES||!1,Ve=t.WHOLE_DOCUMENT||!1,Ge=t.RETURN_DOM||!1,ze=t.RETURN_DOM_FRAGMENT||!1,Fe=t.RETURN_TRUSTED_TYPE||!1,Ue=t.FORCE_BODY||!1,Be=!1!==t.SANITIZE_DOM,je=t.SANITIZE_NAMED_PROPS||!1,$e=!1!==t.KEEP_CONTENT,We=t.IN_PLACE||!1,Ne=t.ALLOWED_URI_REGEXP||Ne,rt=t.NAMESPACE||nt,Ae=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&mt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&mt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Re=!1),ze&&(Ge=!0),Ze&&(xe=A({},r(H)),Se=[],!0===Ze.html&&(A(xe,P),A(Se,U)),!0===Ze.svg&&(A(xe,R),A(Se,G),A(Se,F)),!0===Ze.svgFilters&&(A(xe,O),A(Se,G),A(Se,F)),!0===Ze.mathMl&&(A(xe,D),A(Se,z),A(Se,F))),t.ADD_TAGS&&(xe===ke&&(xe=L(xe)),A(xe,t.ADD_TAGS,he)),t.ADD_ATTR&&(Se===Te&&(Se=L(Se)),A(Se,t.ADD_ATTR,he)),t.ADD_URI_SAFE_ATTR&&A(Je,t.ADD_URI_SAFE_ATTR,he),t.FORBID_CONTENTS&&(qe===Ke&&(qe=L(qe)),A(qe,t.FORBID_CONTENTS,he)),$e&&(xe["#text"]=!0),Ve&&A(xe,["html","head","body"]),xe.table&&(A(xe,["tbody"]),delete Le.tbody),m&&m(t),lt=t)},dt=A({},["mi","mo","mn","ms","mtext"]),pt=A({},["foreignobject","desc","title","annotation-xml"]),ft=A({},["title","style","font","a","script"]),gt=A({},R);A(gt,O),A(gt,I);var ht=A({},D);A(ht,V);var Et=function(e){v(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},wt=function(e,t){try{v(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(Ge||ze)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(Ue)e="<remove></remove>"+e;else{var r=_(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(rt===nt)try{t=(new h).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(rt,"template",null);try{t.documentElement.innerHTML=ot?ie:o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),rt===nt?ue.call(t,Ve?"html":"body")[0]:Ve?t.documentElement:a},Ct=function(e){return se.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},yt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){fe[e]&&E(fe[e],(function(e){e.call(o,t,n,lt)}))},bt=function(e){var t,n;if(_t("beforeSanitizeElements",e,null),(n=e)instanceof g&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof f)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return Et(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return Et(e),!0;var r=he(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:r,allowedTags:xe}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return Et(e),!0;if("select"===r&&k(/<template/i,e.innerHTML))return Et(e),!0;if(!xe[r]||Le[r]){if(!Le[r]&&xt(r)){if(Ae.tagNameCheck instanceof RegExp&&k(Ae.tagNameCheck,r))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(r))return!1}if($e&&!qe[r]){var a=re(e)||e.parentNode,i=ne(e)||e.childNodes;if(i&&a)for(var c=i.length-1;c>=0;--c)a.insertBefore(ee(i[c],!0),te(e))}return Et(e),!0}return e instanceof u&&!function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});var n=C(e.tagName),r=C(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(gt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&pt[r]:Boolean(ht[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!pt[r])&&!(t.namespaceURI===et&&!dt[r])&&!ht[n]&&(ft[n]||!gt[n]):!("application/xhtml+xml"!==ge||!at[e.namespaceURI]))}(e)?(Et(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,t=b(t,Ee," "),t=b(t,we," "),t=b(t,ve," "),e.textContent!==t&&(v(o.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(Et(e),!0)},Nt=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in i||n in st))return!1;if(Re&&!Me[t]&&k(Ce,t));else if(Pe&&k(ye,t));else if(!Se[t]||Me[t]){if(!(xt(e)&&(Ae.tagNameCheck instanceof RegExp&&k(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&k(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&k(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(Je[t]);else if(k(Ne,b(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==N(n,"data:")||!Ye[e])if(Oe&&!k(_e,b(n,be,"")));else if(n)return!1;return!0},xt=function(e){return e.indexOf("-")>0},kt=function(t){var n,r,a,i;_t("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(i=c.length;i--;){var s=n=c[i],m=s.name,u=s.namespaceURI;if(r="value"===m?n.value:x(n.value),a=he(m),l.attrName=a,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,_t("uponSanitizeAttribute",t,l),r=l.attrValue,!l.forceKeepAttr&&(wt(m,t),l.keepAttr))if(Ie||!k(/\/>/i,r)){De&&(r=b(r,Ee," "),r=b(r,we," "),r=b(r,ve," "));var d=he(t.nodeName);if(Nt(d,a,r)){if(!je||"id"!==a&&"name"!==a||(wt(m,t),r="user-content-"+r),ae&&"object"===e(T)&&"function"==typeof T.getAttributeType)if(u);else switch(T.getAttributeType(d,a)){case"TrustedHTML":r=ae.createHTML(r);break;case"TrustedScriptURL":r=ae.createScriptURL(r)}try{u?t.setAttributeNS(u,m,r):t.setAttribute(m,r),w(o.removed)}catch(e){}}}else wt(m,t)}_t("afterSanitizeAttributes",t,null)}},St=function e(t){var n,r=Ct(t);for(_t("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)_t("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof c&&e(n.content),kt(n));_t("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(t){var r,i,l,m,u,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ot=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!yt(t)){if("function"!=typeof t.toString)throw S("toString is not a function");if("string"!=typeof(t=t.toString()))throw S("dirty is not a string, aborting")}if(!o.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(yt(t))return n.toStaticHTML(t.outerHTML)}return t}if(He||ut(d),o.removed=[],"string"==typeof t&&(We=!1),We){if(t.nodeName){var p=he(t.nodeName);if(!xe[p]||Le[p])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(i=(r=vt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Ge&&!De&&!Ve&&-1===t.indexOf("<"))return ae&&Fe?ae.createHTML(t):t;if(!(r=vt(t)))return Ge?null:Fe?ie:""}r&&Ue&&Et(r.firstChild);for(var f=Ct(We?t:r);l=f.nextNode();)3===l.nodeType&&l===m||bt(l)||(l.content instanceof c&&St(l.content),kt(l),m=l);if(m=null,We)return t;if(Ge){if(ze)for(u=me.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return(Se.shadowroot||Se.shadowrootmod)&&(u=de.call(a,u,!0)),u}var g=Ve?r.outerHTML:r.innerHTML;return Ve&&xe["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&k(X,r.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+g),De&&(g=b(g,Ee," "),g=b(g,we," "),g=b(g,ve," ")),ae&&Fe?ae.createHTML(g):g},o.setConfig=function(e){ut(e),He=!0},o.clearConfig=function(){lt=null,He=!1},o.isValidAttribute=function(e,t,n){lt||ut({});var r=he(e),o=he(t);return Nt(r,o,n)},o.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],v(fe[e],t))},o.removeHook=function(e){if(fe[e])return w(fe[e])},o.removeHooks=function(e){fe[e]&&(fe[e]=[])},o.removeAllHooks=function(){fe={}},o}()}()},31772:(e,t,n)=>{"use strict";var r=n(25148);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){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,bigint: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:a,resetWarningCache:o};return n.PropTypes=n,n}},7862:(e,t,n)=>{e.exports=n(31772)()},25148:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r);var e={};n.r(e),n.d(e,{amazonEbayIntegration:()=>y,automatewoo:()=>_,automatewooAlt:()=>b,automatewooBirthdays:()=>_,automatewooReferrals:()=>_,blank:()=>C,creativeMailByConstantContact:()=>H,facebook:()=>M,facebookForWoocommerce:()=>M,googleAds:()=>R,googleListingsAndAds:()=>R,hubspotForWoocommerce:()=>O,integrationWithSalesforce:()=>G,klaviyo:()=>V,mailchimpForWoocommerce:()=>I,mailpoet:()=>D,pinterest:()=>P,pinterestForWoocommerce:()=>P,tiktokForBusiness:()=>z,trustpilotReviews:()=>j,vimeo:()=>B,woocommerceAmazonEbayIntegration:()=>y,woocommerceFreeGiftCoupons:()=>W,woocommerceGroupCoupons:()=>q,woocommerceSmartCoupons:()=>K,woocommerceStoreCredit:()=>$,woocommerceUrlCoupons:()=>Z,woocommerceZapier:()=>F,zeroBsCrm:()=>U});var t={};n.r(t),n.d(t,{activateInstalledPlugin:()=>Et,handleFetchError:()=>ft,installAndActivateRecommendedPlugin:()=>wt,loadInstalledPluginsAfterActivation:()=>ht,receiveActivatingPlugin:()=>mt,receiveBlogPosts:()=>pt,receiveInstalledPlugins:()=>st,receiveRecommendedPlugins:()=>dt,removeActivatingPlugin:()=>ut,setError:()=>gt});var o={};n.r(o),n.d(o,{getActivatingPlugins:()=>Ct,getBlogPosts:()=>_t,getBlogPostsError:()=>bt,getInstalledPlugins:()=>vt,getRecommendedPlugins:()=>yt});var a={};n.r(a),n.d(a,{getBlogPosts:()=>xt,getRecommendedPlugins:()=>Nt});const i=window.wp.element,c=window.wp.i18n,l=window.wc.data;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const m=window.wp.compose;function u(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=u(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const d=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=u(e))&&(r&&(r+=" "),r+=t);return r},p=window.wp.data;var f=n(7862),g=n.n(f);const h=window.wc.tracks,E=function(e){let{icon:t,size:n=24,...r}=e;return(0,i.cloneElement)(t,{width:n,height:n,...r})},w=window.lodash,v=window.wp.primitives,C=(0,i.createElement)(v.SVG,{width:"36",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),y=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"},(0,i.createElement)("defs",null,(0,i.createElement)("clipPath",{id:"b"},(0,i.createElement)("rect",{width:"100",height:"100"}))),(0,i.createElement)("g",{id:"a",clipPath:"url(#b)"},(0,i.createElement)("rect",{width:"100",height:"100",fill:"#fff"}),(0,i.createElement)("rect",{width:"100",height:"100",fill:"#eee"}),(0,i.createElement)("g",{transform:"translate(9 25.655)"},(0,i.createElement)(v.Path,{d:"M179.753,195.8c-4.732,3.488-11.591,5.349-17.5,5.349a31.66,31.66,0,0,1-21.374-8.156c-.443-.4-.046-.946.486-.634a43.018,43.018,0,0,0,21.384,5.671,42.523,42.523,0,0,0,16.312-3.335c.8-.34,1.471.525.688,1.106",transform:"translate(-129.235 -176.611)",fill:"#f90",fillRule:"evenodd"}),(0,i.createElement)(v.Path,{d:"M577.807,183.949c-.6-.773-4-.365-5.522-.184-.464.057-.535-.347-.117-.638,2.7-1.9,7.142-1.354,7.66-.716s-.135,5.09-2.676,7.213c-.39.326-.762.152-.588-.28.571-1.425,1.85-4.619,1.244-5.395",transform:"translate(-525.323 -167.01)",fill:"#f90",fillRule:"evenodd"}),(0,i.createElement)(v.Path,{d:"M572.708,6.758V4.908a.457.457,0,0,1,.468-.468h8.284a.461.461,0,0,1,.479.468V6.493a2.605,2.605,0,0,1-.624,1.163l-4.292,6.129a9.146,9.146,0,0,1,4.725,1.014.843.843,0,0,1,.44.72v1.974c0,.269-.3.585-.61.422a9.542,9.542,0,0,0-8.752.014c-.287.156-.588-.156-.588-.425V15.627a2.238,2.238,0,0,1,.3-1.272l4.973-7.132h-4.328a.458.458,0,0,1-.479-.464",transform:"translate(-525.64 -4.078)",fillRule:"evenodd"}),(0,i.createElement)(v.Path,{d:"M173.431,15.624h-2.52a.476.476,0,0,1-.45-.429V2.261a.473.473,0,0,1,.486-.464h2.35a.475.475,0,0,1,.457.432V3.92h.046a3.463,3.463,0,0,1,6.589,0,3.722,3.722,0,0,1,6.4-.982c.8,1.088.634,2.669.634,4.055l0,8.163a.476.476,0,0,1-.486.468h-2.517a.479.479,0,0,1-.454-.468V8.3a16.192,16.192,0,0,0-.071-2.424,1.312,1.312,0,0,0-1.482-1.113,1.674,1.674,0,0,0-1.506,1.06,7.831,7.831,0,0,0-.234,2.478v6.855a.476.476,0,0,1-.486.468h-2.517a.476.476,0,0,1-.454-.468l0-6.855c0-1.443.238-3.566-1.553-3.566-1.811,0-1.74,2.07-1.74,3.566v6.855a.476.476,0,0,1-.486.468",transform:"translate(-156.58 -1.399)",fillRule:"evenodd"}),(0,i.createElement)(v.Path,{d:"M714.982,1.524c3.739,0,5.763,3.211,5.763,7.295,0,3.945-2.237,7.075-5.763,7.075-3.672,0-5.671-3.211-5.671-7.213,0-4.027,2.024-7.156,5.671-7.156M715,4.164c-1.857,0-1.974,2.531-1.974,4.108s-.025,4.955,1.953,4.955c1.953,0,2.045-2.722,2.045-4.381a11.959,11.959,0,0,0-.376-3.431A1.577,1.577,0,0,0,715,4.164",transform:"translate(-651.552 -1.399)",fillRule:"evenodd"}),(0,i.createElement)(v.Path,{d:"M875.817,15.624h-2.51a.479.479,0,0,1-.454-.468l0-12.938a.477.477,0,0,1,.486-.422h2.336a.482.482,0,0,1,.45.362V4.136h.046c.705-1.769,1.694-2.612,3.435-2.612a3.307,3.307,0,0,1,2.942,1.524c.659,1.035.659,2.775.659,4.027v8.142a.484.484,0,0,1-.486.408h-2.527a.477.477,0,0,1-.447-.408V8.191c0-1.414.163-3.484-1.577-3.484a1.647,1.647,0,0,0-1.457,1.035,5.724,5.724,0,0,0-.4,2.449v6.965a.485.485,0,0,1-.493.468",transform:"translate(-801.775 -1.399)",fillRule:"evenodd"}),(0,i.createElement)(v.Path,{d:"M413.163,8.046a4.93,4.93,0,0,1-.471,2.673,2.048,2.048,0,0,1-1.744,1.145c-.968,0-1.535-.737-1.535-1.825,0-2.148,1.925-2.538,3.75-2.538v.546m2.541,6.143a.526.526,0,0,1-.6.06,6.143,6.143,0,0,1-1.446-1.68,4.991,4.991,0,0,1-4.154,1.833,3.575,3.575,0,0,1-3.771-3.927,4.277,4.277,0,0,1,2.687-4.119,17.463,17.463,0,0,1,4.739-.876V5.154a3.214,3.214,0,0,0-.308-1.825,1.677,1.677,0,0,0-1.414-.656,1.917,1.917,0,0,0-2.024,1.514.527.527,0,0,1-.439.461l-2.442-.262a.444.444,0,0,1-.376-.528C406.719.893,409.4,0,411.795,0a5.714,5.714,0,0,1,3.8,1.255C416.818,2.4,416.7,3.928,416.7,5.59V9.517a3.447,3.447,0,0,0,.95,2.336.477.477,0,0,1-.011.67c-.514.429-1.428,1.226-1.932,1.673l0-.007",transform:"translate(-372.698 0)",fillRule:"evenodd"}),(0,i.createElement)(v.Path,{d:"M7.426,8.046a4.93,4.93,0,0,1-.471,2.673,2.043,2.043,0,0,1-1.744,1.145c-.968,0-1.531-.737-1.531-1.825C3.679,7.89,5.6,7.5,7.426,7.5v.546m2.541,6.143a.526.526,0,0,1-.6.06,6.2,6.2,0,0,1-1.446-1.68A4.986,4.986,0,0,1,3.771,14.4,3.576,3.576,0,0,1,0,10.474,4.282,4.282,0,0,1,2.687,6.356,17.462,17.462,0,0,1,7.426,5.48V5.154a3.243,3.243,0,0,0-.3-1.825,1.686,1.686,0,0,0-1.414-.656A1.921,1.921,0,0,0,3.679,4.186a.527.527,0,0,1-.436.461L.8,4.385a.446.446,0,0,1-.376-.528C.985.893,3.662,0,6.058,0a5.714,5.714,0,0,1,3.8,1.255C11.08,2.4,10.963,3.928,10.963,5.59V9.517a3.447,3.447,0,0,0,.95,2.336.473.473,0,0,1-.007.67c-.514.429-1.428,1.226-1.932,1.673l-.007-.007",transform:"translate(0 0)",fillRule:"evenodd"})),(0,i.createElement)("g",{transform:"translate(18.9 54.637)"},(0,i.createElement)(v.Path,{d:"M8.055,26.308C3.716,26.308.1,28.149.1,33.7c0,4.4,2.431,7.171,8.067,7.171,6.633,0,7.059-4.37,7.059-4.37H12.011s-.689,2.353-4.04,2.353a4.4,4.4,0,0,1-4.693-4.428H15.562V32.807c0-2.557-1.623-6.5-7.507-6.5Zm-.112,2.073c2.6,0,4.37,1.592,4.37,3.977H3.349C3.349,29.826,5.661,28.381,7.943,28.381Z",transform:"translate(0 -20.83)",fill:"#e53238"}),(0,i.createElement)(v.Path,{d:"M75.169.1V17.254c0,.974-.069,2.341-.069,2.341h3.066s.11-.982.11-1.879c0,0,1.515,2.37,5.633,2.37a6.961,6.961,0,0,0,7.283-7.325A6.922,6.922,0,0,0,83.915,5.52c-4.279,0-5.609,2.311-5.609,2.311V.1Zm7.955,7.542c2.945,0,4.818,2.186,4.818,5.119a4.857,4.857,0,0,1-4.8,5.2c-3.143,0-4.839-2.454-4.839-5.175C78.306,10.254,79.827,7.642,83.123,7.642Z",transform:"translate(-59.609)",fill:"#0064d2"}),(0,i.createElement)(v.Path,{d:"M159.834,26.308c-6.528,0-6.947,3.574-6.947,4.146h3.249s.17-2.087,3.473-2.087c2.146,0,3.809.982,3.809,2.871v.672h-3.809c-5.057,0-7.731,1.479-7.731,4.482,0,2.955,2.47,4.562,5.809,4.562,4.55,0,6.015-2.514,6.015-2.514,0,1,.077,1.985.077,1.985h2.888s-.112-1.221-.112-2V31.669c0-4.428-3.572-5.36-6.722-5.36Zm3.585,7.619v.9c0,1.169-.721,4.075-4.968,4.075-2.326,0-3.323-1.161-3.323-2.507C155.128,33.943,158.486,33.927,163.419,33.927Z",transform:"translate(-120.634 -20.83)",fill:"#f5af02"}),(0,i.createElement)(v.Path,{d:"M214.879,29.041h3.655l5.246,10.51,5.234-10.51h3.311l-9.533,18.711h-3.473l2.751-5.216Z",transform:"translate(-170.706 -23.002)",fill:"#86b817"})))),_=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"},(0,i.createElement)("defs",null,(0,i.createElement)("clipPath",{id:"b"},(0,i.createElement)("rect",{width:"100",height:"100"}))),(0,i.createElement)("g",{id:"a",clipPath:"url(#b)"},(0,i.createElement)("rect",{width:"100",height:"100",fill:"#fff"}),(0,i.createElement)("rect",{width:"100",height:"100",fill:"#7532e4"}),(0,i.createElement)("g",{transform:"translate(-43.503 -133.512)"},(0,i.createElement)(v.Path,{d:"M78.217,193.13H64.405l-2.823,7.764H54.6L67.648,166.9h7.669l12.934,33.995H81.059Zm-11.6-6.047h9.4L71.33,174.245Z",transform:"translate(0 0)",fill:"#1ff2e6"}),(0,i.createElement)(v.Path,{d:"M246.639,166.9h6.753l-9.4,33.995h-6.81l-7.764-24.208-7.764,24.208h-6.906L205.3,166.9h7l6.238,23.388,7.535-23.388h6.849l7.592,23.483Z",transform:"translate(-121.952)",fill:"#1ff2e6"})))),b=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(v.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.67708 14.1615h3.77084l.77604 2.1198h1.96354L7.65625 7H5.5625L2 16.2813h1.90625l.77083-2.1198zm3.17188-1.6511H5.28125l1.28646-3.50519 1.28125 3.50519zM22.9791 7h-1.8437l-1.6719 6.4115L17.3906 7h-1.8698l-2.0573 6.3854L11.7604 7H9.8489l2.5781 9.2813h1.8854l2.1198-6.60942 2.1198 6.60942h1.8594L22.9791 7z"})),N=window.wc.wcSettings,x=["wcAdminSettings","preloadSettings"],k=(0,N.getSetting)("admin",{}),S=Object.keys(k).reduce(((e,t)=>(x.includes(t)||(e[t]=k[t]),e)),{});function T(e,t=!1,n=(e=>e)){if(x.includes(e))throw new Error((0,c.__)("Mutable settings should be accessed via data store.","woocommerce"));return n(S.hasOwnProperty(e)?S[e]:t,t)}(0,N.getSetting)("adminUrl"),(0,N.getSetting)("countries"),(0,N.getSetting)("currency");const A=(0,N.getSetting)("locale"),L=((0,N.getSetting)("siteTitle"),(0,N.getSetting)("wcAssetUrl"));T("orderStatuses");const M=(0,i.createElement)("img",{src:`${L}images/marketing/facebook.svg`,alt:(0,c.__)("Facebook","woocommerce"),style:{padding:"4px"}}),P=(0,i.createElement)(v.SVG,{width:"303",height:"303",viewBox:"-30 -30 303 303",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,i.createElement)(v.Path,{fill:"#E60023",d:"M121.5,0C54.4,0,0,54.4,0,121.5C0,173,32,217,77.2,234.7c-1.1-9.6-2-24.4,0.4-34.9 c2.2-9.5,14.2-60.4,14.2-60.4s-3.6-7.3-3.6-18c0-16.9,9.8-29.5,22-29.5c10.4,0,15.4,7.8,15.4,17.1c0,10.4-6.6,26-10.1,40.5 c-2.9,12.1,6.1,22,18,22c21.6,0,38.2-22.8,38.2-55.6c0-29.1-20.9-49.4-50.8-49.4C86.3,66.5,66,92.4,66,119.2c0,10.4,4,21.6,9,27.7 c1,1.2,1.1,2.3,0.8,3.5c-0.9,3.8-3,12.1-3.4,13.8c-0.5,2.2-1.8,2.7-4.1,1.6c-15.2-7.1-24.7-29.2-24.7-47.1 c0-38.3,27.8-73.5,80.3-73.5c42.1,0,74.9,30,74.9,70.2c0,41.9-26.4,75.6-63,75.6c-12.3,0-23.9-6.4-27.8-14c0,0-6.1,23.2-7.6,28.9 c-2.7,10.6-10.1,23.8-15.1,31.9c11.4,3.5,23.4,5.4,36,5.4c67.1,0,121.5-54.4,121.5-121.5C243,54.4,188.6,0,121.5,0z"})),R=(0,i.createElement)("img",{src:`${L}images/marketing/google.svg`,alt:(0,c.__)("Google","woocommerce"),style:{padding:"4px"}}),O=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"},(0,i.createElement)("defs",null,(0,i.createElement)("clipPath",{id:"b"},(0,i.createElement)("rect",{width:"100",height:"100"}))),(0,i.createElement)("g",{id:"a",clipPath:"url(#b)"},(0,i.createElement)("rect",{width:"100",height:"100",fill:"#fff"}),(0,i.createElement)(v.Path,{d:"M100,100H0V0H100V100ZM40.665,75.539a6.446,6.446,0,1,0,6.447,6.447,6.376,6.376,0,0,0-.3-1.843L54.158,72.8A19.808,19.808,0,1,0,69.206,37.48h.015V28.455a6.959,6.959,0,0,0,4.013-6.273v-.211a6.971,6.971,0,0,0-6.952-6.953H66.07a6.97,6.97,0,0,0-6.952,6.953v.211a6.957,6.957,0,0,0,4.013,6.273V37.5a19.745,19.745,0,0,0-9.376,4.126L28.935,22.295a7.919,7.919,0,0,0-4.148-9.145,7.845,7.845,0,0,0-3.5-.817,7.919,7.919,0,1,0,3.938,14.786l24.4,19a19.775,19.775,0,0,0,.3,22.3l-7.426,7.427A6.362,6.362,0,0,0,40.665,75.539Zm25.522-8.321h0l-.023,0a10.164,10.164,0,0,1,.023-20.328H66.2a10.166,10.166,0,0,1-.012,20.333Z",fill:"#ff7a59"}))),I=(0,i.createElement)(v.SVG,{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)("rect",{width:"36",height:"36",rx:"3",fill:"#FFE071"}),(0,i.createElement)(v.Path,{d:"M24.0534 17.2863C24.2392 17.2638 24.4176 17.2625 24.5813 17.2863C24.6764 17.0647 24.6923 16.6823 24.6071 16.2661C24.4808 15.6471 24.3091 15.2728 23.9546 15.331C23.6002 15.3892 23.5873 15.8374 23.7143 16.4564C23.7848 16.8043 23.9117 17.1023 24.0534 17.2863Z",fill:"black"}),(0,i.createElement)(v.Path,{d:"M21.0119 17.7757C21.2652 17.8889 21.4209 17.9647 21.4823 17.899C21.5215 17.8576 21.5099 17.7794 21.4491 17.6786C21.3241 17.4702 21.0665 17.2587 20.7937 17.1404C20.2357 16.895 19.5697 16.9764 19.0559 17.3532C18.886 17.4802 18.7254 17.6555 18.7487 17.7625C18.756 17.7969 18.7812 17.8232 18.8413 17.8314C18.9811 17.8476 19.4698 17.5954 20.0321 17.5603C20.4294 17.5353 20.7587 17.6624 21.0119 17.7757Z",fill:"black"}),(0,i.createElement)(v.Path,{d:"M20.5024 18.073C20.1725 18.1262 19.9904 18.237 19.8733 18.3409C19.7733 18.4298 19.712 18.5281 19.7126 18.5975C19.7126 18.6307 19.7267 18.6495 19.7378 18.6589C19.7531 18.6726 19.7709 18.6802 19.7923 18.6802C19.8671 18.6802 20.0339 18.6119 20.0339 18.6119C20.4932 18.4442 20.7961 18.4642 21.0966 18.4993C21.2627 18.518 21.3406 18.5287 21.3774 18.4705C21.3884 18.4536 21.4013 18.4179 21.3682 18.3628C21.2903 18.2339 20.9568 18.0179 20.5024 18.073Z",fill:"black"}),(0,i.createElement)(v.Path,{d:"M23.0263 19.1626C23.2501 19.2753 23.4972 19.2309 23.5775 19.0644C23.6578 18.8973 23.5413 18.6713 23.3169 18.5587C23.0925 18.446 22.846 18.4904 22.7657 18.6569C22.6859 18.824 22.8025 19.0506 23.0263 19.1626Z",fill:"black"}),(0,i.createElement)(v.Path,{d:"M24.4673 17.8777C24.2851 17.8746 24.1343 18.0786 24.13 18.3334C24.1257 18.5881 24.2698 18.7971 24.4519 18.8003C24.634 18.8034 24.7849 18.5994 24.7892 18.3446C24.7935 18.0899 24.6494 17.8809 24.4673 17.8777Z",fill:"black"}),(0,i.createElement)(v.Path,{d:"M12.2373 22.4735C12.1919 22.4153 12.1177 22.4335 12.0454 22.4504C11.9951 22.4623 11.9381 22.476 11.8755 22.4748C11.7419 22.4723 11.6284 22.4134 11.5646 22.3139C11.4819 22.1837 11.4868 21.9903 11.5781 21.7682C11.5904 21.7381 11.6051 21.7049 11.6211 21.6686C11.767 21.3344 12.0117 20.7743 11.7369 20.241C11.5303 19.8398 11.1937 19.5895 10.7884 19.5369C10.3996 19.4868 9.99919 19.6339 9.7441 19.9212C9.34124 20.3749 9.27808 20.9921 9.35595 21.2099C9.38477 21.29 9.42892 21.3119 9.46142 21.3163C9.5301 21.3257 9.63127 21.275 9.69505 21.1003C9.69934 21.0878 9.70547 21.0684 9.71344 21.0434C9.74165 20.9514 9.79438 20.7799 9.88084 20.6422C9.98508 20.4763 10.147 20.3618 10.3371 20.3205C10.5308 20.2779 10.7289 20.3161 10.8944 20.4269C11.1765 20.6153 11.285 20.9683 11.1648 21.305C11.1023 21.479 11.0011 21.812 11.0238 22.0855C11.0692 22.6394 11.4028 22.8616 11.7026 22.8854C11.9939 22.8966 12.1981 22.7295 12.2496 22.6075C12.279 22.5361 12.2539 22.4923 12.2373 22.4735Z",fill:"black"}),(0,i.createElement)(v.Path,{d:"M29.0624 21.4609C29.0513 21.4209 28.979 21.1511 28.8796 20.8263C28.7803 20.5015 28.6773 20.2724 28.6773 20.2724C29.0759 19.6634 29.0826 19.1189 29.0299 18.8109C28.9735 18.4285 28.8177 18.1031 28.5031 17.7663C28.1892 17.4296 27.5466 17.0847 26.6434 16.8262C26.5403 16.7968 26.1994 16.7011 26.1694 16.6917C26.1669 16.6717 26.1442 15.5513 26.124 15.0706C26.1093 14.7233 26.0798 14.18 25.9149 13.6455C25.7181 12.922 25.3759 12.2886 24.9479 11.8836C26.1283 10.635 26.8647 9.25926 26.8629 8.07947C26.8592 5.81 24.1293 5.1234 20.7642 6.54542C20.7605 6.54667 20.0565 6.85147 20.051 6.8546C20.048 6.85147 18.7621 5.56402 18.7431 5.5465C14.907 2.13103 2.91255 15.7391 6.7474 19.0444L7.58562 19.7692C7.36794 20.3437 7.28271 21.0028 7.35261 21.7107C7.44213 22.6201 7.90202 23.4926 8.64704 24.166C9.35404 24.8057 10.2842 25.2106 11.1868 25.21C12.6793 28.72 16.0886 30.8737 20.0872 30.9951C24.3758 31.1253 27.9758 29.0711 29.4842 25.3815C29.583 25.1224 30.0018 23.9557 30.0018 22.9255C30.0005 21.8903 29.4272 21.4609 29.0624 21.4609ZM11.5161 24.2236C11.3861 24.2461 11.2531 24.2555 11.1188 24.2518C9.82374 24.2161 8.42445 23.0263 8.28526 21.6143C8.13135 20.054 8.91255 18.8535 10.2953 18.5687C10.4608 18.5349 10.6601 18.5149 10.876 18.5268C11.651 18.57 12.7928 19.1777 13.0534 20.9002C13.2845 22.4261 12.9172 23.9801 11.5161 24.2236ZM10.0696 17.6361C9.20872 17.807 8.45021 18.3052 7.98603 18.9931C7.70887 18.7571 7.19195 18.3002 7.10059 18.1218C6.35986 16.686 7.90877 13.8946 8.99104 12.318C11.6657 8.42245 15.8544 5.4739 17.7939 6.00903C18.1091 6.10041 19.1533 7.33591 19.1533 7.33591C19.1533 7.33591 17.2151 8.43372 15.4172 9.96402C12.9951 11.8667 11.1654 14.6338 10.0696 17.6361ZM23.6657 23.6403C23.694 23.6284 23.7136 23.5952 23.7099 23.5627C23.7056 23.5226 23.6706 23.4932 23.6314 23.4976C23.6314 23.4976 21.6024 23.8043 19.6856 23.0876C19.8941 22.3948 20.4496 22.6451 21.2884 22.714C22.8012 22.806 24.1563 22.5807 25.1582 22.2871C26.0265 22.033 27.1664 21.5317 28.0525 20.8182C28.3511 21.4879 28.4565 22.2252 28.4565 22.2252C28.4565 22.2252 28.6877 22.1832 28.8809 22.304C29.0636 22.4186 29.1973 22.657 29.1059 23.2735C28.9195 24.4252 28.44 25.3596 27.6343 26.2196C27.1437 26.7585 26.5477 27.2273 25.8665 27.5684C25.5047 27.7624 25.119 27.9301 24.7118 28.0659C21.6735 29.0786 18.5628 27.9652 17.5603 25.5737C17.4799 25.394 17.4125 25.2056 17.3592 25.0091C16.9318 23.4331 17.2948 21.5423 18.4285 20.3525V20.3519C18.4984 20.2761 18.5696 20.1866 18.5696 20.0746C18.5696 19.9807 18.5113 19.8818 18.4604 19.8111C18.0637 19.224 16.6896 18.2232 16.9655 16.2861C17.1635 14.8948 18.3556 13.9146 19.4673 13.9728C19.5611 13.9778 19.6549 13.9835 19.7487 13.9891C20.2307 14.0179 20.6507 14.0811 21.0468 14.098C21.7103 14.1274 22.3069 14.0285 23.0139 13.4277C23.2525 13.2249 23.4438 13.049 23.7669 12.9933C23.8006 12.9877 23.8853 12.9564 24.0545 12.9645C24.2268 12.9739 24.3911 13.0221 24.5389 13.1222C25.1055 13.5072 25.1858 14.4391 25.2153 15.1213C25.2318 15.5106 25.2778 16.4526 25.2937 16.7224C25.3299 17.3407 25.4887 17.4277 25.8113 17.536C25.9922 17.5967 26.1608 17.6424 26.4085 17.7131C27.1584 17.9278 27.603 18.1462 27.8838 18.426C28.0512 18.6013 28.1285 18.7872 28.153 18.9643C28.2413 19.6227 27.6521 20.4364 26.0921 21.1755C24.3868 21.9836 22.3174 22.1882 20.888 22.0255C20.7783 22.013 20.3883 21.9679 20.3871 21.9679C19.2435 21.8108 18.591 23.3192 19.2778 24.3525C19.7199 25.0185 20.9248 25.4522 22.1303 25.4522C24.8939 25.4529 27.0186 24.248 27.8084 23.2078C27.8323 23.1765 27.8342 23.1734 27.8716 23.1158C27.9102 23.0557 27.8783 23.0232 27.8299 23.057C27.1842 23.5076 24.3169 25.2976 21.2492 24.7594C21.2492 24.7594 20.8764 24.6968 20.5361 24.5616C20.2656 24.4546 19.6997 24.1886 19.631 23.5958C22.107 24.3788 23.6657 23.6403 23.6657 23.6403ZM19.7444 23.1677C19.7444 23.1684 19.7444 23.1684 19.7444 23.1677C19.745 23.169 19.745 23.169 19.745 23.1696C19.745 23.169 19.7444 23.1684 19.7444 23.1677ZM15.0088 12.3023C15.9599 11.1807 17.1304 10.2056 18.1784 9.65858C18.2145 9.6398 18.2532 9.67986 18.2336 9.71616C18.1502 9.87013 17.9901 10.1993 17.9392 10.4497C17.9313 10.4885 17.9729 10.5179 18.0048 10.4954C18.6573 10.0416 19.7916 9.55531 20.7875 9.49272C20.8304 9.49022 20.8506 9.54592 20.8169 9.57283C20.6654 9.69113 20.4999 9.85511 20.3791 10.021C20.3582 10.0491 20.3779 10.0898 20.4122 10.0898C21.1112 10.0948 22.0966 10.3446 22.7386 10.712C22.7821 10.737 22.7509 10.8227 22.7024 10.8115C21.7305 10.5843 20.1406 10.4115 18.488 10.8227C17.0133 11.1901 15.8875 11.7572 15.0665 12.3668C15.0254 12.3981 14.9757 12.3418 15.0088 12.3023Z",fill:"black"})),D=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-30 -30 212.02 216.4"},(0,i.createElement)(v.Path,{fill:"#fe5301",d:"M37.71,89.1c3.5,0,5.9-.8,7.2-2.3a8,8,0,0,0,2-5.4V35.7l17,45.1a12.68,12.68,0,0,0,3.7,5.4c1.6,1.3,4,2,7.2,2a12.54,12.54,0,0,0,5.9-1.4,8.41,8.41,0,0,0,3.9-5l18.1-50V81a8.53,8.53,0,0,0,2.1,6.1c1.4,1.4,3.7,2.2,6.9,2.2,3.5,0,5.9-.8,7.2-2.3a8,8,0,0,0,2-5.4V8.7a7.48,7.48,0,0,0-3.3-6.6c-2.1-1.4-5-2.1-8.6-2.1a19.3,19.3,0,0,0-9.4,2,11.63,11.63,0,0,0-5.1,6.8L74.91,67.1,54.41,8.4a12.4,12.4,0,0,0-4.5-6.2c-2.1-1.5-5-2.2-8.8-2.2a16.51,16.51,0,0,0-8.9,2.1c-2.3,1.5-3.5,3.9-3.5,7.2V80.8c0,2.8.7,4.8,2,6.2C32.21,88.4,34.41,89.1,37.71,89.1Z"}),(0,i.createElement)(v.Path,{fill:"#fe5301",d:"M149,116.6l-2.4-1.9a7.4,7.4,0,0,0-9.4.3,19.65,19.65,0,0,1-12.5,4.6h-21.4A37.08,37.08,0,0,0,77,130.5l-1.1,1.2-1.1-1.1a37.25,37.25,0,0,0-26.3-10.9H27a19.59,19.59,0,0,1-12.4-4.6,7.28,7.28,0,0,0-9.4-.3l-2.4,1.9A7.43,7.43,0,0,0,0,122.2a7.14,7.14,0,0,0,2.4,5.7A37.28,37.28,0,0,0,27,137.4h21.6a19.59,19.59,0,0,1,18.9,14.4v.2c.1.7,1.2,4.4,8.5,4.4s8.4-3.7,8.5-4.4v-.2a19.59,19.59,0,0,1,18.9-14.4H125a37.28,37.28,0,0,0,24.6-9.5,7.42,7.42,0,0,0,2.4-5.7A7.86,7.86,0,0,0,149,116.6Z"})),V=(0,i.createElement)("img",{src:`${L}images/marketing/klaviyo.png`,alt:(0,c.__)("Klaviyo","woocommerce")}),H=(0,i.createElement)("img",{src:`${L}images/marketing/creative-mail-by-constant-contact.png`,alt:(0,c.__)("Creative Mail by Constant Contact","woocommerce")}),U=(0,i.createElement)("img",{src:`${L}images/marketing/jetpack-crm.svg`,alt:(0,c.__)("Jetpack CRM","woocommerce")}),G=(0,i.createElement)("img",{src:`${L}images/marketing/salesforce.jpg`,alt:(0,c.__)("Salesforce","woocommerce")}),z=(0,i.createElement)("img",{src:`${L}images/marketing/tiktok.jpg`,alt:(0,c.__)("TikTok","woocommerce")}),F=(0,i.createElement)("img",{src:`${L}images/marketing/zapier.png`,alt:(0,c.__)("Zapier","woocommerce")}),B=(0,i.createElement)("img",{src:`${L}images/marketing/vimeo.png`,alt:(0,c.__)("Vimeo","woocommerce")}),j=(0,i.createElement)("img",{src:`${L}images/marketing/trustpilot.png`,alt:(0,c.__)("Trustpilot","woocommerce")}),$=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(v.Path,{d:"M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z"})),W=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(v.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.75 9C16.1307 9 17.25 7.88071 17.25 6.5C17.25 5.11929 16.1307 4 14.75 4C13.3693 4 12.25 5.11929 12.25 6.5C12.25 5.11929 11.1307 4 9.75 4C8.36929 4 7.25 5.11929 7.25 6.5C7.25 7.88071 8.36929 9 9.75 9H4V20L20 20V9L14.75 9ZM14.75 7.5C15.3023 7.5 15.75 7.05228 15.75 6.5C15.75 5.94772 15.3023 5.5 14.75 5.5C14.1977 5.5 13.75 5.94772 13.75 6.5V7.5H14.75ZM18.5 18.5V10.5H13V18.5H18.5ZM11.5 18.5H5.5L5.5 10.5H11.5L11.5 18.5ZM8.75 6.5C8.75 7.05228 9.19772 7.5 9.75 7.5H10.75V6.5C10.75 5.94772 10.3023 5.5 9.75 5.5C9.19772 5.5 8.75 5.94772 8.75 6.5Z"})),Z=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(v.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),q=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(v.Path,{d:"M17.5 9a2 2 0 11-4 0 2 2 0 014 0zm-4.25 8v-2a2.75 2.75 0 00-2.75-2.75h-4A2.75 2.75 0 003.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0120.25 15zM8.5 11a2 2 0 100-4 2 2 0 000 4z"})),K=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(v.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 16.5H9V15h6v1.5zM15.0052 5.99481c-1.6597-1.65973-4.3507-1.65973-6.0104 0-1.65973 1.65973-1.65973 4.35069 0 6.01039.29289.2929.29289.7678 0 1.0607-.2929.2929-.76777.2929-1.06066 0-2.24552-2.2455-2.24552-5.88624 0-8.13175 2.24556-2.24551 5.88616-2.24551 8.13176 0 2.2455 2.24551 2.2455 5.88625 0 8.13175-.2929.2929-.7678.2929-1.0607 0-.2929-.2929-.2929-.7678 0-1.0607 1.6597-1.6597 1.6597-4.35066 0-6.01039zM14 19.5h-4V18h4v1.5z"}));class Y extends i.Component{render(){const t=(0,w.camelCase)(this.props.product);let n=C;return t in e&&(n=e[t]),(0,i.createElement)("div",{className:d(this.props.className,"woocommerce-admin-marketing-product-icon")},(0,i.createElement)(E,{icon:n,size:36}))}}Y.propTypes={product:g().string.isRequired,className:g().string};const X=Y,J=window.wc.components,Q=window.React;var ee=n.n(Q);function te(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function ne(e,t){let n,r,o=[];for(let a=0;a<e.length;a++){const i=e[a];if("string"!==i.type){if(void 0===t[i.value])throw new Error(`Invalid interpolation, missing component node: \`${i.value}\``);if("object"!=typeof t[i.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${i.value}\``);if("componentClose"===i.type)throw new Error(`Missing opening component token: \`${i.value}\``);if("componentOpen"===i.type){n=t[i.value],r=a;break}o.push(t[i.value])}else o.push(i.value)}if(n){const a=function(e,t){const n=t[e];let r=0;for(let o=e+1;o<t.length;o++){const e=t[o];if(e.value===n.value){if("componentOpen"===e.type){r++;continue}if("componentClose"===e.type){if(0===r)return o;r--}}}throw new Error("Missing closing component token `"+n.value+"`")}(r,e),i=ne(e.slice(r+1,a),t),c=(0,Q.cloneElement)(n,{},i);if(o.push(c),a<e.length-1){const n=ne(e.slice(a+1),t);o=o.concat(n)}}return o=o.filter(Boolean),0===o.length?null:1===o.length?o[0]:(0,Q.createElement)(Q.Fragment,null,...o)}function re(e){const{mixedString:t,components:n,throwErrors:r}=e;if(!n)return t;if("object"!=typeof n){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const o=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(te)}(t);try{return ne(o,n)}catch(e){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}const oe=()=>re({mixedString:(0,c.__)("Read {{link}}the WooCommerce blog{{/link}} for more tips on marketing your store","woocommerce"),components:{link:(0,i.createElement)(J.Link,{type:"external",href:"https://woocommerce.com/blog/marketing/coupons/?utm_medium=product",target:"_blank"})}}),ae=window.wp.components,ie=window.wp.url,ce=({title:e,description:t,url:n,product:r,category:o})=>{const a="woocommerce-marketing-recommended-extensions-item",c=((e,t={})=>{const{pathname:n,search:r}=window.location,o=(0,N.getSetting)("connectNonce","");return t={"wccom-site":(0,N.getSetting)("siteUrl"),"wccom-back":n+r,"wccom-woo-version":(0,N.getSetting)("wcVersion"),"wccom-connect-nonce":o,...t},(0,ie.addQueryArgs)(e,t)})(n);return"coupons"===o&&"automatewoo"===r&&(r="automatewoo-alt"),(0,i.createElement)("a",{href:c,className:a,onClick:()=>{(0,h.recordEvent)("marketing_recommended_extension",{name:e,source:T("allowMarketplaceSuggestions",!1)?"woocommerce.com":"plugin-woocommerce"})}},(0,i.createElement)(X,{product:r}),(0,i.createElement)("div",{className:`${a}__text`},(0,i.createElement)("h4",null,e),(0,i.createElement)("p",null,t)))};ce.propTypes={title:g().string.isRequired,description:g().string.isRequired,url:g().string.isRequired,product:g().string.isRequired,category:g().string.isRequired};const le=ce,se=()=>{const e="is-loading woocommerce-marketing-recommended-extensions-item";return(0,i.createElement)("div",{className:e,"aria-hidden":"true"},(0,i.createElement)("div",{className:"woocommerce-admin-marketing-product-icon is-placeholder"}),(0,i.createElement)("div",{className:`${e}__text`},(0,i.createElement)("h4",{className:"is-placeholder","aria-hidden":"true"}),(0,i.createElement)("p",null,(0,i.createElement)("span",{className:"is-placeholder"}),(0,i.createElement)("span",{className:"is-placeholder"}),(0,i.createElement)("span",{className:"is-placeholder"}))))},me="wc/marketing",ue="/wc-admin/marketing",de=window.wc.experimental,pe=e=>{const{title:t,description:n,children:r,className:o}=e;return(0,i.createElement)(ae.Card,{className:d(o,"woocommerce-admin-marketing-card")},(0,i.createElement)(ae.CardHeader,null,(0,i.createElement)("div",null,(0,i.createElement)(de.Text,{variant:"title.small",as:"p",size:"20",lineHeight:"28px"},t),(0,i.createElement)(de.Text,{variant:"subtitle.small",as:"p",className:"woocommerce-admin-marketing-card-subtitle",size:"14",lineHeight:"20px"},n))),(0,i.createElement)(ae.CardBody,null,r))};pe.propTypes={title:g().string,description:g().string,className:g().string,children:g().node};const fe=pe,ge=({extensions:e,isLoading:t,title:n=(0,c.__)("Recommended extensions","woocommerce"),description:r=(0,c.__)("Great marketing requires the right tools. Take your marketing to the next level with our recommended marketing extensions.","woocommerce"),category:o})=>{if(0===e.length&&!t)return null;const a=o?`woocommerce-marketing-recommended-extensions-card__category-${o}`:"";return(0,i.createElement)(fe,{title:n,description:r,className:d("woocommerce-marketing-recommended-extensions-card",a)},t?(0,i.createElement)("div",{className:d("woocommerce-marketing-recommended-extensions-card__items","woocommerce-marketing-recommended-extensions-card__items--count-5")},[...Array(5).keys()].map((e=>(0,i.createElement)(se,{key:e})))):(0,i.createElement)("div",{className:d("woocommerce-marketing-recommended-extensions-card__items",`woocommerce-marketing-recommended-extensions-card__items--count-${e.length}`)},e.map((e=>(0,i.createElement)(le,s({key:e.product,category:o},e))))))};ge.propTypes={extensions:g().arrayOf(g().object).isRequired,isLoading:g().bool.isRequired,title:g().string,description:g().string,category:g().string};const he=(0,m.compose)((0,p.withSelect)(((e,t)=>{const{getRecommendedPlugins:n,isResolving:r}=e(me);return{extensions:n(t.category),isLoading:r("getRecommendedPlugins",[t.category])}})),(0,p.withDispatch)((e=>{const{createNotice:t}=e("core/notices");return{createNotice:t}})))(ge);function Ee(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(null,arguments)}function ve(e,t){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ve(e,t)}function Ce(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ve(e,t)}const ye=ee().createContext(null);function _e(e,t){var n=Object.create(null);return e&&Q.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,Q.isValidElement)(e)?t(e):e}(e)})),n}function be(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ne(e,t,n){var r=_e(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var c={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var s=o[l][r];c[o[l][r]]=n(s)}c[l]=n(l)}for(r=0;r<a.length;r++)c[a[r]]=n(a[r]);return c}(t,r);return Object.keys(o).forEach((function(a){var i=o[a];if((0,Q.isValidElement)(i)){var c=a in t,l=a in r,s=t[a],m=(0,Q.isValidElement)(s)&&!s.props.in;!l||c&&!m?l||!c||m?l&&c&&(0,Q.isValidElement)(s)&&(o[a]=(0,Q.cloneElement)(i,{onExited:n.bind(null,i),in:s.props.in,exit:be(i,"exit",e),enter:be(i,"enter",e)})):o[a]=(0,Q.cloneElement)(i,{in:!1}):o[a]=(0,Q.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:be(i,"exit",e),enter:be(i,"enter",e)})}})),o}var xe=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ke=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ce(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,_e(n.children,(function(e){return(0,Q.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:be(e,"appear",n),enter:be(e,"enter",n),exit:be(e,"exit",n)})}))):Ne(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=_e(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=we({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ee(e,["component","childFactory"]),o=this.state.contextValue,a=xe(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?ee().createElement(ye.Provider,{value:o},a):ee().createElement(ye.Provider,{value:o},ee().createElement(t,r,a))},t}(ee().Component);ke.propTypes={},ke.defaultProps={component:"div",childFactory:function(e){return e}};const Se=ke;function Te(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Ae=window.ReactDOM;var Le=n.n(Ae);var Me=function(e){return e.scrollTop},Pe="unmounted",Re="exited",Oe="entering",Ie="entered",De="exiting",Ve=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=Re,r.appearStatus=Oe):o=Ie:o=t.unmountOnExit||t.mountOnEnter?Pe:Re,r.state={status:o},r.nextCallback=null,r}Ce(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Pe?{status:Re}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Oe&&n!==Ie&&(t=Oe):n!==Oe&&n!==Ie||(t=De)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Oe){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Le().findDOMNode(this);n&&Me(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Re&&this.setState({status:Pe})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Le().findDOMNode(this),r],a=o[0],i=o[1],c=this.getTimeouts(),l=r?c.appear:c.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:Oe},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ie},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:Ie},(function(){t.props.onEntered(a)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Le().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:De},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Re},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Re},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Le().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Pe)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Ee(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return ee().createElement(ye.Provider,{value:null},"function"==typeof n?n(e,r):ee().cloneElement(ee().Children.only(n),r))},t}(ee().Component);function He(){}Ve.contextType=ye,Ve.propTypes={},Ve.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:He,onEntering:He,onEntered:He,onExit:He,onExiting:He,onExited:He},Ve.UNMOUNTED=Pe,Ve.EXITED=Re,Ve.ENTERING=Oe,Ve.ENTERED=Ie,Ve.EXITING=De;const Ue=Ve;var Ge=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Te(n.className,r):n.setAttribute("class",Te(n.className&&n.className.baseVal||"",r)));var n,r}))},ze=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1];t.removeClasses(o,"exit"),t.addClass(o,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.addClass(o,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.removeClasses(o,a),t.addClass(o,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Ce(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Me(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,a=n.done;this.appliedClasses[t]={},r&&Ge(e,r),o&&Ge(e,o),a&&Ge(e,a)},n.render=function(){var e=this.props,t=(e.classNames,Ee(e,["classNames"]));return ee().createElement(Ue,we({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ee().Component);ze.defaultProps={classNames:""},ze.propTypes={};const Fe=ze,Be=({children:e,animationKey:t,animate:n})=>{const[r,o]=(0,i.useState)(null),a=(0,i.useRef)(),c=d("woocommerce-marketing-slider",n&&`animate-${n}`),l={};r&&(l.height=r);const s=(0,w.debounce)((()=>{const e=a.current.querySelector(".woocommerce-marketing-slider__slide");o(e.clientHeight)}),50);return(0,i.useEffect)((()=>(window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)})),[]),(0,i.createElement)("div",{className:c,ref:a,style:l},(0,i.createElement)(Se,null,(0,i.createElement)(Fe,{timeout:320,classNames:"slide",key:t,onEnter:()=>{const e=a.current.querySelector(".slide-enter");o(e.clientHeight)}},(0,i.createElement)("div",{className:"woocommerce-marketing-slider__slide"},e))))};Be.propTypes={animationKey:g().any.isRequired,animate:g().oneOf([null,"left","right"])};const je=Be,$e=e=>{const t="woocommerce-marketing-knowledgebase-card__post";return(0,i.createElement)("div",{className:`is-loading ${t}`,key:e,"aria-hidden":"true"},(0,i.createElement)("div",{className:`${t}-img is-placeholder`}),(0,i.createElement)("div",{className:`${t}-text`},(0,i.createElement)("h3",{className:"is-placeholder","aria-hidden":"true"}),(0,i.createElement)("p",{className:`${t}-meta is-placeholder`})))},We=({posts:e,isLoading:t,error:n,title:r=(0,c.__)("WooCommerce knowledge base","woocommerce"),description:o=(0,c.__)("Learn the ins and outs of successful marketing from the experts at WooCommerce.","woocommerce"),category:a})=>{const[l,s]=(0,i.useState)(1),[m,u]=(0,i.useState)(null),p=a?`woocommerce-marketing-knowledgebase-card__category-${a}`:"";return(0,i.createElement)(fe,{title:r,description:o,className:d("woocommerce-marketing-knowledgebase-card",p)},t?(0,i.createElement)("div",{className:"woocommerce-marketing-knowledgebase-card__posts"},(0,i.createElement)("div",{className:"woocommerce-marketing-knowledgebase-card__page"},(0,i.createElement)($e,null),(0,i.createElement)($e,null))):n?(()=>{const e=(0,c.__)("Oops, our posts aren't loading right now","woocommerce");return(0,i.createElement)(J.EmptyContent,{title:e,message:(0,i.createElement)(oe,null),illustration:"",actionLabel:""})})():0===e.length?(()=>{const e=(0,c.__)("No posts yet","woocommerce");return(0,i.createElement)(J.EmptyContent,{title:e,message:(0,i.createElement)(oe,null),illustration:"",actionLabel:""})})():(0,i.createElement)("div",{className:"woocommerce-marketing-knowledgebase-card__posts"},(0,i.createElement)(je,{animationKey:l,animate:m},(()=>{const t=e.slice(2*(l-1),2*(l-1)+2),n=d("woocommerce-marketing-knowledgebase-card__page",{"page-with-single-post":1===t.length}),r=t.map(((e,t)=>(0,i.createElement)("a",{className:"woocommerce-marketing-knowledgebase-card__post",href:e.link,key:t,onClick:()=>{(e=>{(0,h.recordEvent)("marketing_knowledge_article",{title:e.title})})(e)},target:"_blank",rel:"noopener noreferrer"},!!e.image&&(0,i.createElement)("div",{className:"woocommerce-marketing-knowledgebase-card__post-img"},(0,i.createElement)("img",{src:e.image,alt:""})),(0,i.createElement)("div",{className:"woocommerce-marketing-knowledgebase-card__post-text"},(0,i.createElement)("h3",null,e.title),(0,i.createElement)("p",{className:"woocommerce-marketing-knowledgebase-card__post-meta"},(0,c.__)("By","woocommerce")+" ",e.author_name,!!e.author_avatar&&(0,i.createElement)("img",{src:e.author_avatar.replace("s=96","s=32"),className:"woocommerce-gravatar",alt:"",width:"16",height:"16"}))))));return(0,i.createElement)("div",{className:n},r)})()),(0,i.createElement)(J.Pagination,{page:l,perPage:2,total:e.length,onPageChange:e=>{let t;e>l?(t="left",(0,h.recordEvent)("marketing_knowledge_carousel",{direction:"forward",page:e})):(t="right",(0,h.recordEvent)("marketing_knowledge_carousel",{direction:"back",page:e})),s(e),u(t)},showPagePicker:!1,showPerPagePicker:!1,showPageArrowsLabel:!1})))};We.propTypes={posts:g().arrayOf(g().object).isRequired,isLoading:g().bool.isRequired,title:g().string,description:g().string,category:g().string};const Ze=(0,m.compose)((0,p.withSelect)(((e,t)=>{const{getBlogPosts:n,getBlogPostsError:r,isResolving:o}=e(me);return{posts:n(t.category),isLoading:o("getBlogPosts",[t.category]),error:r(t.category)}})),(0,p.withDispatch)((e=>{const{createNotice:t}=e("core/notices");return{createNotice:t}})))(We),qe=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(v.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Ke=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(v.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),Ye=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(v.Path,{fillRule:"evenodd",d:"M6.5 8a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zM8 5a3 3 0 100 6 3 3 0 000-6zm6.5 11a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zm1.5-3a3 3 0 100 6 3 3 0 000-6zM5.47 17.41a.75.75 0 001.06 1.06L18.47 6.53a.75.75 0 10-1.06-1.06L5.47 17.41z",clipRule:"evenodd"})),Xe=(0,i.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(v.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var Je=n(33561);const Qe=["a","b","em","i","strong","p","br"],et=["target","href","rel","name","download"],tt=e=>({__html:(0,Je.sanitize)(e,{ALLOWED_TAGS:Qe,ALLOWED_ATTR:et})}),nt={info:qe,check:Ke,percent:Ye};function rt(e){const{id:t,description:n,children:r,icon:o,isDismissible:a=!0,variant:c="info",onClose:l,onLoad:s}=e,[m,u]=(0,i.useState)("true"!==localStorage.getItem(`wc-marketplaceNoticeClosed-${t}`));if((0,i.useEffect)((()=>{m&&"function"==typeof s&&s()}),[m]),!m)return null;const p=d("woocommerce-marketplace__notice",`woocommerce-marketplace__notice--${c}`,{"is-dismissible":a}),f=nt[o||"info"],g=d("woocommerce-marketplace__notice-icon",`woocommerce-marketplace__notice-icon--${c}`);return(0,i.createElement)("div",{className:p},o&&(0,i.createElement)("span",{className:g},(0,i.createElement)(E,{icon:f})),(0,i.createElement)("div",{className:"woocommerce-marketplace__notice-content"},(0,i.createElement)("p",{className:"woocommerce-marketplace__notice-description",dangerouslySetInnerHTML:tt(n)}),r&&(0,i.createElement)("div",{className:"woocommerce-marketplace__notice-children"},r)),a&&(0,i.createElement)("button",{className:"woocommerce-marketplace__notice-close","aria-label":"Close",onClick:()=>{u(!1),localStorage.setItem(`wc-marketplaceNoticeClosed-${t}`,"true"),"function"==typeof l&&l()}},(0,i.createElement)(E,{icon:Xe})))}const ot={percent:function(){return(0,i.createElement)("svg",{width:"72",height:"60",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)("g",{clipPath:"url(#clip0_4074_10418)"},(0,i.createElement)("path",{d:"M68.5301 33.3144C68.0263 32.1006 66.3348 32.344 65.8443 31.1636C65.3538 29.9832 66.7251 28.9562 66.2213 27.7458C65.7175 26.5354 64.0259 26.7755 63.5355 25.5951C63.045 24.4147 64.4163 23.3877 63.9125 22.1773C63.4087 20.9669 61.7171 21.207 61.2267 20.0266C60.7362 18.8462 62.1075 17.8192 61.6037 16.6088C61.0999 15.395 59.4083 15.6385 58.9179 14.4581C58.4274 13.2777 59.7987 12.2507 59.2949 11.0403C58.7911 9.82652 57.0995 10.0699 56.6091 8.88955C56.1186 7.70915 57.4899 6.68214 56.9861 5.47174C56.4823 4.26134 54.7907 4.50142 54.3003 3.32102C53.8465 2.22733 55.0476 1.11696 54.8274 -0.00341797L0 22.5941C0.5038 23.8079 2.19537 23.5644 2.68582 24.7448C3.17627 25.9252 1.805 26.9522 2.3088 28.1626C2.8126 29.373 4.50417 29.133 4.99462 30.3134C5.48508 31.4937 4.11381 32.5208 4.61761 33.7312C5.12141 34.9416 6.81297 34.7015 7.30343 35.8819C7.79388 37.0623 6.42261 38.0893 6.92641 39.2997C7.43021 40.5134 9.12178 40.27 9.61223 41.4504C10.1027 42.6308 8.73142 43.6578 9.23522 44.8682C9.73902 46.0786 11.4306 45.8385 11.921 47.0189C12.4115 48.1993 11.0402 49.2263 11.544 50.4367C12.0478 51.6471 13.7394 51.4071 14.2298 52.5874C14.6836 53.6811 13.4825 54.7915 13.7027 55.9119L28.1928 49.9232L68.5368 33.3177L68.5301 33.3144Z",fill:"#674399"}),(0,i.createElement)("path",{d:"M13.696 55.912L28.1861 49.9234L52.3851 39.9634H7.46021C8.17086 40.4802 9.23852 40.5569 9.60886 41.4539C10.0993 42.6343 8.72805 43.6613 9.23185 44.8717C9.73565 46.0821 11.4272 45.842 11.9177 47.0224C12.4081 48.2028 11.0368 49.2298 11.5406 50.4402C12.0444 51.6506 13.736 51.4105 14.2265 52.5909C14.6802 53.6846 13.4791 54.795 13.6993 55.9154L13.696 55.912Z",fill:"#3C2861"}),(0,i.createElement)("path",{d:"M63.8523 41.9907C63.8523 37.4925 67.499 33.848 71.9998 33.848V23.988H17.873V33.848C22.3739 33.848 26.0206 37.4925 26.0206 41.9907C26.0206 46.4889 22.3739 50.1334 17.873 50.1334V59.9934H71.9998V50.1334C67.499 50.1334 63.8523 46.4889 63.8523 41.9907Z",fill:"#BEA0F2"}),(0,i.createElement)("path",{d:"M35.2527 37.676C35.2527 35.2051 37.0143 33.2878 39.6968 33.2878C42.3793 33.2878 44.1643 35.2051 44.1643 37.676C44.1643 40.1468 42.4026 42.0107 39.6968 42.0107C36.991 42.0107 35.2527 40.1201 35.2527 37.676ZM41.7954 37.676C41.7954 36.2288 40.9046 35.3385 39.6935 35.3385C38.4823 35.3385 37.6182 36.2288 37.6182 37.676C37.6182 39.1231 38.509 39.9601 39.6935 39.9601C40.8779 39.9601 41.7954 39.0664 41.7954 37.676ZM37.9852 51.0704L49.1789 33.5513H51.1774L39.9537 51.0704H37.9819H37.9852ZM44.8983 47.0524C44.8983 44.5849 46.6566 42.641 49.3391 42.641C52.0215 42.641 53.8065 44.5849 53.8065 47.0524C53.8065 49.5199 52.0182 51.3872 49.3391 51.3872C46.6599 51.3872 44.8983 49.4966 44.8983 47.0524ZM51.441 47.0524C51.441 45.6053 50.5468 44.715 49.3357 44.715C48.1246 44.715 47.2605 45.6053 47.2605 47.0524C47.2605 48.4996 48.1279 49.3365 49.3357 49.3365C50.5435 49.3365 51.441 48.4696 51.441 47.0524Z",fill:"#674399"})),(0,i.createElement)("defs",null,(0,i.createElement)("clipPath",{id:"clip0_4074_10418"},(0,i.createElement)("rect",{width:"72",height:"60",fill:"white"}))))}},at=({promotion:e})=>{var t,n;const r=window.location.pathname+window.location.search,o=()=>JSON.parse(localStorage.getItem("wc-marketplaceDismissedPromos")||"[]"),[a,l]=(0,i.useState)(!o().includes(r));if((0,i.useEffect)((()=>{a&&(0,h.recordEvent)("marketplace_promotion_viewed",{path:r,format:"promo-card"})}),[a]),!a)return null;const s="promo-card"+(e.style?` ${e.style}`:""),m=(0,i.createElement)("div",{className:"promo-content"},(0,i.createElement)("h2",{className:"promo-title"},e.title?.en_US),(0,i.createElement)("div",{className:"promo-text",dangerouslySetInnerHTML:tt(e.content?.en_US)})),u=(0,i.createElement)("div",{className:"promo-links"},(0,i.createElement)(ae.Button,{className:"promo-cta",href:null!==(t=e.cta_link)&&void 0!==t?t:"",onClick:()=>((0,h.recordEvent)("marketplace_promotion_actioned",{path:r,target_uri:e.cta_link,format:"promo-card"}),!0)},null!==(n=e.cta_label?.en_US)&&void 0!==n?n:""),(0,i.createElement)(ae.Button,{className:"promo-cta-link",onClick:()=>{l(!1),localStorage.setItem("wc-marketplaceDismissedPromos",JSON.stringify(o().concat(r))),(0,h.recordEvent)("marketplace_promotion_dismissed",{path:r,format:"promo-card"})}},(0,c.__)("Dismiss","woocommerce")));function d(){if(e.icon&&Object.hasOwn(ot,e.icon)){const t=ot[e.icon];return t?(0,i.createElement)("div",{className:"promo-image"},(0,i.createElement)(t)):null}return null}return(0,i.createElement)("div",{className:s},"has-background"===e?.style?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"promo-content-links"},m,u),d()):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"promo-content-image"},m,d()),u))},it=({format:e})=>{var t;if(!window?.wcMarketplace?.promotions||!Array.isArray(window?.wcMarketplace?.promotions))return null;const n=(null!==(t=window?.wcMarketplace?.promotions)&&void 0!==t?t:[]).filter((t=>t.format===e)),r=new URLSearchParams(window.location.search),o=r.get("page"),a=Date.now(),c=decodeURIComponent(r.get("path")||""),l=r.get("tab"),s=window.location.pathname+window.location.search,m=()=>{(0,h.recordEvent)("marketplace_promotion_viewed",{path:s,format:e})},u=()=>{(0,h.recordEvent)("marketplace_promotion_dismissed",{path:s,format:e})};return(0,i.createElement)(i.Fragment,null,n.map(((e,t)=>{if(!e.pages)return null;if(!e.pages.some((e=>{if(e.pathname)return e.pathname===s;if(!e.path)return!1;const t=e=>e.startsWith("/")?e:`/${e}`,n=t(e.path),r=t(c);return e.page===o&&n===r&&(e.tab?l:!l)})))return null;const n=new Date(e.date_from_gmt).getTime(),r=new Date(e.date_to_gmt).getTime();return a<n||a>r?null:"promo-card"===e.format?(0,i.createElement)(at,{key:t,promotion:e}):"notice"===e.format&&e?.content?(0,i.createElement)(rt,{key:t,id:null!==(d=e.menu_item_id)&&void 0!==d?d:`promotion-${t}`,description:e.content[A.userLocale]||e.content.en_US,variant:e.style?e.style:"info",icon:e?.icon||"",isDismissible:e.is_dismissible||!1,onLoad:m,onClose:u}):null;var d})))},ct=window.wp.dataControls,lt={SET_INSTALLED_PLUGINS:"SET_INSTALLED_PLUGINS",SET_ACTIVATING_PLUGIN:"SET_ACTIVATING_PLUGIN",REMOVE_ACTIVATING_PLUGIN:"REMOVE_ACTIVATING_PLUGIN",SET_RECOMMENDED_PLUGINS:"SET_RECOMMENDED_PLUGINS",INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN:"INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN",SET_BLOG_POSTS:"SET_BLOG_POSTS",SET_ERROR:"SET_ERROR"};function st(e){return{type:lt.SET_INSTALLED_PLUGINS,plugins:e}}function mt(e){return{type:lt.SET_ACTIVATING_PLUGIN,pluginSlug:e}}function ut(e){return{type:lt.REMOVE_ACTIVATING_PLUGIN,pluginSlug:e}}function dt(e,t){return{type:lt.SET_RECOMMENDED_PLUGINS,data:{plugins:e,category:t}}}function pt(e,t){return{type:lt.SET_BLOG_POSTS,data:{posts:e,category:t}}}function ft(e,t){const{createNotice:n}=(0,p.dispatch)("core/notices");n("error",t),console.log(e)}function gt(e,t){return{type:lt.SET_ERROR,category:e,error:t}}function*ht(e){try{const t=yield(0,ct.apiFetch)({path:`${ue}/overview/installed-plugins`});if(!t)throw new Error;yield st(t),yield ut(e)}catch(e){yield ft(e,(0,c.__)("There was an error loading installed extensions.","woocommerce"))}}function*Et(e){const{createNotice:t}=(0,p.dispatch)("core/notices");yield mt(e);try{if(!(yield(0,ct.apiFetch)({path:ue+"/overview/activate-plugin",method:"POST",data:{plugin:e}})))throw new Error;yield t("success",(0,c.__)("The extension has been successfully activated.","woocommerce")),yield ht(e)}catch(t){yield ft(t,(0,c.__)("There was an error trying to activate the extension.","woocommerce")),yield ut(e)}return!0}function*wt(e,t){return{type:lt.INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN,data:{pluginSlug:e,category:t}}}function vt(e){return e.installedPlugins}function Ct(e){return e.activatingPlugins}function yt(e,t){return e.recommendedPlugins[t]||[]}function _t(e,t){return e.blogPosts[t]||[]}function bt(e,t){return e.errors.blogPosts&&e.errors.blogPosts[t]}function*Nt(e){try{const t=yield e?`&category=${e}`:"",n=yield(0,ct.apiFetch)({path:`${ue}/recommended?per_page=50${t}`});if(!n)throw new Error;yield dt(n,e)}catch(e){yield ft(e,(0,c.__)("There was an error loading recommended extensions.","woocommerce"))}}function*xt(e){try{const t=yield e?`?category=${e}`:"",n=yield(0,ct.apiFetch)({path:`${ue}/knowledge-base${t}`,method:"GET"});if(!n)throw new Error;yield pt(n,e)}catch(t){yield gt(e,t)}}const{installedExtensions:kt}=T("marketing",{}),St={installedPlugins:kt,activatingPlugins:[],recommendedPlugins:{},blogPosts:{},errors:{}};(0,p.registerStore)(me,{actions:t,selectors:o,resolvers:a,controls:ct.controls,reducer:(e=St,t)=>{switch(t.type){case lt.SET_INSTALLED_PLUGINS:return{...e,installedPlugins:t.plugins};case lt.SET_ACTIVATING_PLUGIN:return{...e,activatingPlugins:[...e.activatingPlugins,t.pluginSlug]};case lt.REMOVE_ACTIVATING_PLUGIN:return{...e,activatingPlugins:(0,w.without)(e.activatingPlugins,t.pluginSlug)};case lt.SET_RECOMMENDED_PLUGINS:return{...e,recommendedPlugins:{...e.recommendedPlugins,[t.data.category]:t.data.plugins}};case lt.INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN:const n=e.recommendedPlugins[t.data.category]?.filter((e=>e.product!==t.data.pluginSlug));return{...e,recommendedPlugins:{...e.recommendedPlugins,[t.data.category]:n}};case lt.SET_BLOG_POSTS:return{...e,blogPosts:{...e.blogPosts,[t.data.category]:t.data.posts}};case lt.SET_ERROR:return{...e,errors:{...e.errors,blogPosts:{...e.errors.blogPosts,[t.category]:t.error}}};default:return e}}});const Tt=()=>{const{currentUserCan:e}=(0,l.useUser)(),t=!(!T("allowMarketplaceSuggestions",!1)||!e("install_plugins"));return(0,i.createElement)("div",{className:"woocommerce-marketing-coupons"},(0,i.createElement)(it,{format:"promo-card"}),t&&(0,i.createElement)(he,{title:(0,c.__)("Recommended coupon extensions","woocommerce"),description:(0,c.__)("Take your coupon marketing to the next level with our recommended coupon extensions.","woocommerce"),category:"coupons"}),(0,i.createElement)(Ze,{category:"coupons",description:(0,c.__)("Learn the ins and outs of successful coupon marketing from the experts at WooCommerce.","woocommerce")}))},At=document.getElementById("posts-filter");if(At){const e=document.createElement("div");e.setAttribute("id","coupon-root"),(0,i.createRoot)(At.parentNode.appendChild(e)).render((0,i.createElement)(Tt,null))}})(),(window.wc=window.wc||{}).marketingCoupons=r})();