JezK
Edit File: saved-for-later.js
import*as e from"@wordpress/interactivity";import*as t from"@woocommerce/stores/woocommerce/shopper-lists";import*as n from"@woocommerce/stores/woocommerce/cart";import*as o from"@woocommerce/stores/woocommerce/products";var r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const i=(a={getConfig:()=>e.getConfig,getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store},l={},r.d(l,a),l);var a,l;r.d({},{}),r.d({},{});const{entries:s,setPrototypeOf:c,isFrozen:u,getPrototypeOf:m,getOwnPropertyDescriptor:p}=Object;let{freeze:f,seal:d,create:g}=Object,{apply:h,construct:y}="undefined"!=typeof Reflect&&Reflect;f||(f=function(e){return e}),d||(d=function(e){return e}),h||(h=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),y||(y=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const T=x(Array.prototype.forEach),E=x(Array.prototype.lastIndexOf),b=x(Array.prototype.pop),A=x(Array.prototype.push),_=x(Array.prototype.splice),S=x(String.prototype.toLowerCase),w=x(String.prototype.toString),v=x(String.prototype.match),N=x(String.prototype.replace),C=x(String.prototype.indexOf),R=x(String.prototype.trim),k=x(Object.prototype.hasOwnProperty),D=x(RegExp.prototype.test),I=(L=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y(L,t)});var L;function x(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return h(e,t,o)}}function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;c&&c(e,null);let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(u(t)||(t[o]=e),r=e)}e[r]=!0}return e}function M(e){for(let t=0;t<e.length;t++)k(e,t)||(e[t]=null);return e}function P(e){const t=g(null);for(const[n,o]of s(e))k(e,n)&&(Array.isArray(o)?t[n]=M(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=P(o):t[n]=o);return t}function U(e,t){for(;null!==e;){const n=p(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=m(e)}return function(){return null}}const z=f(["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","search","section","select","shadow","slot","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"]),H=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),F=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=f(["animate","color-profile","cursor","discard","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"]),G=f(["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","mprescripts"]),W=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=f(["#text"]),j=f(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),q=f(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","mask-type","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","slope","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","tablevalues","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"]),X=f(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),K=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=d(/<%[\w\W]*|[\w\W]*%>/gm),Z=d(/\$\{[\w\W]*/gm),Q=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),J=d(/^aria-[\-\w]+$/),ee=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),te=d(/^(?:\w+script|data):/i),ne=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oe=d(/^html$/i),re=d(/^[a-z][.\w]*(-[.\w]+)+$/i);var ie=Object.freeze({__proto__:null,ARIA_ATTR:J,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:re,DATA_ATTR:Q,DOCTYPE_NAME:oe,ERB_EXPR:V,IS_ALLOWED_URI:ee,IS_SCRIPT_OR_DATA:te,MUSTACHE_EXPR:$,TMPLIT_EXPR:Z});const ae=function(){return"undefined"==typeof window?null:window};var le=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae();const n=t=>e(t);if(n.version="3.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const r=o,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:c,Element:u,NodeFilter:m,NamedNodeMap:p=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:y}=t,L=u.prototype,x=U(L,"cloneNode"),M=U(L,"remove"),$=U(L,"nextSibling"),V=U(L,"childNodes"),Z=U(L,"parentNode");if("function"==typeof l){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let Q,J="";const{implementation:te,createNodeIterator:ne,createDocumentFragment:re,getElementsByTagName:le}=o,{importNode:se}=r;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof s&&"function"==typeof Z&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:me,TMPLIT_EXPR:pe,DATA_ATTR:fe,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:he,CUSTOM_ELEMENT:ye}=ie;let{IS_ALLOWED_URI:Te}=ie,Ee=null;const be=O({},[...z,...H,...F,...G,...Y]);let Ae=null;const _e=O({},[...j,...q,...X,...K]);let Se=Object.seal(g(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}})),we=null,ve=null;const Ne=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ce=!0,Re=!0,ke=!1,De=!0,Ie=!1,Le=!0,xe=!1,Oe=!1,Me=!1,Pe=!1,Ue=!1,ze=!1,He=!0,Fe=!1,Be=!0,Ge=!1,We={},Ye=null;const je=O({},["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"]);let qe=null;const Xe=O({},["audio","video","img","source","image","track"]);let Ke=null;const $e=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Je=Qe,et=!1,tt=null;const nt=O({},[Ve,Ze,Qe],w);let ot=O({},["mi","mo","mn","ms","mtext"]),rt=O({},["annotation-xml"]);const it=O({},["title","style","font","a","script"]);let at=null;const lt=["application/xhtml+xml","text/html"];let st=null,ct=null;const ut=o.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=P(e),at=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===at?w:S,Ee=k(e,"ALLOWED_TAGS")?O({},e.ALLOWED_TAGS,st):be,Ae=k(e,"ALLOWED_ATTR")?O({},e.ALLOWED_ATTR,st):_e,tt=k(e,"ALLOWED_NAMESPACES")?O({},e.ALLOWED_NAMESPACES,w):nt,Ke=k(e,"ADD_URI_SAFE_ATTR")?O(P($e),e.ADD_URI_SAFE_ATTR,st):$e,qe=k(e,"ADD_DATA_URI_TAGS")?O(P(Xe),e.ADD_DATA_URI_TAGS,st):Xe,Ye=k(e,"FORBID_CONTENTS")?O({},e.FORBID_CONTENTS,st):je,we=k(e,"FORBID_TAGS")?O({},e.FORBID_TAGS,st):P({}),ve=k(e,"FORBID_ATTR")?O({},e.FORBID_ATTR,st):P({}),We=!!k(e,"USE_PROFILES")&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ie=e.SAFE_FOR_TEMPLATES||!1,Le=!1!==e.SAFE_FOR_XML,xe=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Fe=e.SANITIZE_NAMED_PROPS||!1,Be=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||ee,Je=e.NAMESPACE||Qe,ot=e.MATHML_TEXT_INTEGRATION_POINTS||ot,rt=e.HTML_INTEGRATION_POINTS||rt,Se=e.CUSTOM_ELEMENT_HANDLING||g(null),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Re=!1),Ue&&(Pe=!0),We&&(Ee=O({},Y),Ae=g(null),!0===We.html&&(O(Ee,z),O(Ae,j)),!0===We.svg&&(O(Ee,H),O(Ae,q),O(Ae,K)),!0===We.svgFilters&&(O(Ee,F),O(Ae,q),O(Ae,K)),!0===We.mathMl&&(O(Ee,G),O(Ae,X),O(Ae,K))),Ne.tagCheck=null,Ne.attributeCheck=null,e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Ne.tagCheck=e.ADD_TAGS:(Ee===be&&(Ee=P(Ee)),O(Ee,e.ADD_TAGS,st))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Ne.attributeCheck=e.ADD_ATTR:(Ae===_e&&(Ae=P(Ae)),O(Ae,e.ADD_ATTR,st))),e.ADD_URI_SAFE_ATTR&&O(Ke,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ye===je&&(Ye=P(Ye)),O(Ye,e.FORBID_CONTENTS,st)),e.ADD_FORBID_CONTENTS&&(Ye===je&&(Ye=P(Ye)),O(Ye,e.ADD_FORBID_CONTENTS,st)),Be&&(Ee["#text"]=!0),xe&&O(Ee,["html","head","body"]),Ee.table&&(O(Ee,["tbody"]),delete we.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,J=Q.createHTML("")}else void 0===Q&&(Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(y,i)),null!==Q&&"string"==typeof J&&(J=Q.createHTML(""));f&&f(e),ct=e}},ft=O({},[...H,...F,...B]),dt=O({},[...G,...W]),gt=function(e){A(n.removed,{element:e});try{Z(e).removeChild(e)}catch(t){M(e)}},ht=function(e,t){try{A(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){A(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Pe||Ue)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&Je===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=Q?Q.createHTML(e):e;if(Je===Qe)try{t=(new h).parseFromString(r,at)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?J:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Je===Qe?le.call(t,xe?"html":"body")[0]:xe?t.documentElement:i},Tt=function(e){return ne.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Et=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof c&&e instanceof c};function At(e,t,o){T(e,e=>{e.call(n,t,o,ct)})}const _t=function(e){let t=null;if(At(ce.beforeSanitizeElements,e,null),Et(e))return gt(e),!0;const o=st(e.nodeName);if(At(ce.uponSanitizeElement,e,{tagName:o,allowedTags:Ee}),Le&&e.hasChildNodes()&&!bt(e.firstElementChild)&&D(/<[/\w!]/g,e.innerHTML)&&D(/<[/\w!]/g,e.textContent))return gt(e),!0;if(Le&&e.namespaceURI===Qe&&"style"===o&&bt(e.firstElementChild))return gt(e),!0;if(7===e.nodeType)return gt(e),!0;if(Le&&8===e.nodeType&&D(/<[/\w]/g,e.data))return gt(e),!0;if(we[o]||!(Ne.tagCheck instanceof Function&&Ne.tagCheck(o))&&!Ee[o]){if(!we[o]&&wt(o)){if(Se.tagNameCheck instanceof RegExp&&D(Se.tagNameCheck,o))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(o))return!1}if(Be&&!Ye[o]){const t=Z(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=x(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,$(e))}}return gt(e),!0}return e instanceof u&&!function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});const n=S(e.tagName),o=S(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===o||ot[o]):Boolean(ft[n]):e.namespaceURI===Ve?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Ze?"math"===n&&rt[o]:Boolean(dt[n]):e.namespaceURI===Qe?!(t.namespaceURI===Ze&&!rt[o])&&!(t.namespaceURI===Ve&&!ot[o])&&!dt[n]&&(it[n]||!ft[n]):!("application/xhtml+xml"!==at||!tt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!D(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(t=e.textContent,T([ue,me,pe],e=>{t=N(t,e," ")}),e.textContent!==t&&(A(n.removed,{element:e.cloneNode()}),e.textContent=t)),At(ce.afterSanitizeElements,e,null),!1):(gt(e),!0)},St=function(e,t,n){if(ve[t])return!1;if(He&&("id"===t||"name"===t)&&(n in o||n in ut))return!1;if(Re&&!ve[t]&&D(fe,t));else if(Ce&&D(de,t));else if(Ne.attributeCheck instanceof Function&&Ne.attributeCheck(t,e));else if(!Ae[t]||ve[t]){if(!(wt(e)&&(Se.tagNameCheck instanceof RegExp&&D(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&D(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t,e))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&D(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ke[t]);else if(D(Te,N(n,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!qe[e])if(ke&&!D(ge,N(n,he,"")));else if(n)return!1;return!0},wt=function(e){return"annotation-xml"!==e&&v(e,ye)},vt=function(e){At(ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Et(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:s}=i,c=st(a),u=s;let m="value"===a?u:R(u);if(o.attrName=c,o.attrValue=m,o.keepAttr=!0,o.forceKeepAttr=void 0,At(ce.uponSanitizeAttribute,e,o),m=o.attrValue,!Fe||"id"!==c&&"name"!==c||(ht(a,e),m="user-content-"+m),Le&&D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){ht(a,e);continue}if("attributename"===c&&v(m,"href")){ht(a,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){ht(a,e);continue}if(!De&&D(/\/>/i,m)){ht(a,e);continue}Ie&&T([ue,me,pe],e=>{m=N(m,e," ")});const p=st(e.nodeName);if(St(p,c,m)){if(Q&&"object"==typeof y&&"function"==typeof y.getAttributeType)if(l);else switch(y.getAttributeType(p,c)){case"TrustedHTML":m=Q.createHTML(m);break;case"TrustedScriptURL":m=Q.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,a,m):e.setAttribute(a,m),Et(e)?gt(e):b(n.removed)}catch(t){ht(a,e)}}else ht(a,e)}At(ce.afterSanitizeAttributes,e,null)},Nt=function(e){let t=null;const n=Tt(e);for(At(ce.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)At(ce.uponSanitizeShadowNode,t,null),_t(t),vt(t),t.content instanceof a&&Nt(t.content);At(ce.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,l=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw I("toString is not a function");if("string"!=typeof(e=e.toString()))throw I("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Oe||pt(t),n.removed=[],"string"==typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=st(e.nodeName);if(!Ee[t]||we[t])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)o=yt("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!Pe&&!Ie&&!xe&&-1===e.indexOf("<"))return Q&&ze?Q.createHTML(e):e;if(o=yt(e),!o)return Pe?null:ze?J:""}o&&Me&>(o.firstChild);const u=Tt(Ge?e:o);for(;l=u.nextNode();)_t(l),vt(l),l.content instanceof a&&Nt(l.content);if(Ge)return e;if(Pe){if(Ie){o.normalize();let e=o.innerHTML;T([ue,me,pe],t=>{e=N(e,t," ")}),o.innerHTML=e}if(Ue)for(s=re.call(o.ownerDocument);o.firstChild;)s.appendChild(o.firstChild);else s=o;return(Ae.shadowroot||Ae.shadowrootmode)&&(s=se.call(r,s,!0)),s}let m=xe?o.outerHTML:o.innerHTML;return xe&&Ee["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&D(oe,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),Ie&&T([ue,me,pe],e=>{m=N(m,e," ")}),Q&&ze?Q.createHTML(m):m},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Oe=!0},n.clearConfig=function(){ct=null,Oe=!1},n.isValidAttribute=function(e,t,n){ct||pt({});const o=st(e),r=st(t);return St(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&A(ce[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=E(ce[e],t);return-1===n?void 0:_(ce[e],n,1)[0]}return b(ce[e])},n.removeHooks=function(e){ce[e]=[]},n.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();let se;const ce=["a","b","em","i","strong","p","br","abbr"],ue=["target","href","rel","name","download","title"];r.d({},{});const me=e=>e.replace(/^attribute_(pa_)?/,"").replace(/-/g," ").toLowerCase(),pe=(e,t)=>me(e)===me(t),{state:fe}=(0,i.store)("woocommerce/products",{},{lock:"I acknowledge that using a private store means my plugin will inevitably break on the next store release."}),de="I acknowledge that using a private store means my plugin will inevitably break on the next store release.",ge="saved-for-later",he=["a","b","em","i","strong","p","br","span","bdi","del","ins","img","picture","source"],ye=["class","target","href","rel","name","download","aria-hidden","src","srcset","sizes","alt","width","height","loading","decoding"],{state:Te,actions:Ee}=(0,i.store)("woocommerce/shopper-lists",{},{lock:de}),{state:be,actions:Ae}=(0,i.store)("woocommerce",{},{lock:de}),_e=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value},Se=e=>Te.lists[e]??null,we=(e,t,n)=>e.reduce((e,o)=>{let r;return r="variation"===o.type?t===o.id&&Array.isArray(o.variation)&&Array.isArray(n)&&o.variation.length===n.length&&((e,t)=>{if(!Array.isArray(e.variation)||!Array.isArray(t))return!1;if(e.variation.length!==t.length)return!1;const n=fe.productVariations[e.id]?.parent,o=fe.products[n]?.attributes??[];return e.variation.every(({attribute:e,value:n})=>t.some(t=>{const r=o.find(t=>pe(e,t.name))?.terms,i=r?.find(e=>e.name===n)?.slug||n;return pe(t.attribute,e)&&t.value.toLowerCase()===i?.toLowerCase()}))})(o,n):t===o.id,r?e+o.quantity:e},0);(0,i.store)("woocommerce/saved-for-later",{state:{get currentItems(){return Se(ge)?.items??[]},get isCurrentItemPending(){const{listItem:e,pendingKeys:t}=(0,i.getContext)();return!!e&&!!t[e.key]},get isEmpty(){const e=Se(ge);return!!e&&((0,i.getContext)().hasShownItems&&!e.isLoading&&0===e.items.length)},get isPriceHidden(){const{listItem:e}=(0,i.getContext)();return!e?.price_html},get isMoveToCartHidden(){const{listItem:e}=(0,i.getContext)();return!e||!e.is_purchasable},get currentItemDisplayName(){const{listItem:e}=(0,i.getContext)();return e?_e(e.name):""},get currentItemQuantityLabel(){const{listItem:e}=(0,i.getContext)();if(!e)return"";const{quantityLabelTemplate:t}=(0,i.getConfig)("woocommerce/saved-for-later");return t.replace("%d",String(e.quantity))},get currentItemRemoveLabel(){const{listItem:e}=(0,i.getContext)();if(!e)return"";const{removeLabelTemplate:t}=(0,i.getConfig)("woocommerce/saved-for-later");return t.replace("%s",_e(e.name))},get currentItemVariationLabel(){const{listItem:e}=(0,i.getContext)();return e&&(t=e).variation&&0!==t.variation.length?t.variation.map(e=>`${_e(e.attribute)}: ${_e(e.value)}`).join(", "):"";var t}},actions:{*onClickRemove(){const{listItem:e,pendingKeys:t}=(0,i.getContext)();if(e&&!t[e.key]){t[e.key]=!0;try{yield Ee.removeItem(ge,e.key)}finally{delete t[e.key]}}},*onClickMoveToCart(){const{listItem:e,pendingKeys:t}=(0,i.getContext)();if(!e||!e.is_purchasable||t[e.key])return;const n=e.variation.map(({raw_attribute:e,value:t,attribute:n})=>({attribute:e||n,value:t})),o=e.variation_id>0,r=we(be.cart.items,e.id,o?n:void 0);t[e.key]=!0;try{if(yield Ae.addCartItem({id:e.id,quantityToAdd:e.quantity,type:o?"variation":"simple",...o&&{variation:n}}),we(be.cart.items,e.id,o?n:void 0)<=r)return;yield Ee.removeItem(ge,e.key)}finally{delete t[e.key]}}},callbacks:{trackShownItems:()=>{const e=(0,i.getContext)(),t=Se(ge);t&&t.items.length>0&&!e.hasShownItems&&(e.hasShownItems=!0)},updateInnerHtml:()=>{const{ref:e}=(0,i.getElement)(),{listItem:t,htmlField:n}=(0,i.getContext)();if(!e||!t||!n)return;const o=t[n];"string"==typeof o&&(e.innerHTML=function(e,t){const n={ALLOWED_TAGS:[...t?.tags||ce],ALLOWED_ATTR:[...t?.attr||ue]},o=function(){if(void 0!==se)return se;if("undefined"==typeof window||!window.trustedTypes)return se=null,null;try{se=window.trustedTypes.createPolicy("woocommerce-sanitize-noop",{createHTML:e=>e})}catch(e){se=null,console.warn('Failed to create "woocommerce-sanitize-noop" trusted type policy:',e)}return se}();return o&&(n.TRUSTED_TYPES_POLICY=o),"HTMLBodyElement"===t?.returnType?n.RETURN_DOM=!0:"DocumentFragment"===t?.returnType&&(n.RETURN_DOM_FRAGMENT=!0),le.sanitize(e??"",n)}(o,{tags:he,attr:ye}))}}},{lock:de});