!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){e.exports=React},function(e,t,n){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:b,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:b,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:b,lheading:/^([^\n]+)\n {0,3}(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||k.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.options.tables?this.rules=n.tables:this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=p(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=p(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=p(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=//,n.html=p(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=p(n.paragraph).replace("hr",n.hr).replace("heading",n.heading).replace("lheading",n.lheading).replace("tag",n._tag).getRegex(),n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=m({},n),n.gfm=m({},n.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),n.gfm.paragraph=p(n.paragraph).replace("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|").getRegex(),n.tables=m({},n.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=m({},n.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,i,s,a,o,l,c,u,h,p,g,d,f,b,m,v;for(e=e.replace(/^ +$/gm,"");e;)if((s=this.rules.newline.exec(e))&&(e=e.substring(s[0].length),s[0].length>1&&this.tokens.push({type:"space"})),s=this.rules.code.exec(e)){var k=this.tokens[this.tokens.length-1];e=e.substring(s[0].length),k&&"paragraph"===k.type?k.text+="\n"+s[0].trimRight():(s=s[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?s:_(s,"\n")}))}else if(s=this.rules.fences.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"code",lang:s[2]?s[2].trim():s[2],text:s[3]||""});else if(s=this.rules.heading.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"heading",depth:s[1].length,text:s[2]});else if((s=this.rules.nptable.exec(e))&&(l={type:"table",header:x(s[1].replace(/^ *| *\| *$/g,"")),align:s[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:s[3]?s[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(s[0].length),g=0;g ?/gm,""),this.token(s,t),this.tokens.push({type:"blockquote_end"});else if(s=this.rules.list.exec(e)){for(e=e.substring(s[0].length),c={type:"list_start",ordered:b=(a=s[2]).length>1,start:b?+a:"",loose:!1},this.tokens.push(c),u=[],r=!1,f=(s=s[0].match(this.rules.item)).length,g=0;g1?1===o.length:o.length>1||this.options.smartLists&&o!==a)&&(e=s.slice(g+1).join("\n")+e,g=f-1)),i=r||/\n\n(?!\s*$)/.test(l),g!==f-1&&(r="\n"===l.charAt(l.length-1),i||(i=r)),i&&(c.loose=!0),v=void 0,(m=/^\[[ xX]\] /.test(l))&&(v=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),h={type:"list_item_start",task:m,checked:v,loose:i},u.push(h),this.tokens.push(h),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(f=u.length,g=0;g?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:b,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:b,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",i.em=p(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=p(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=p(i.tag).replace("comment",n._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,i._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=p(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=p(i.reflink).replace("label",i._label).getRegex(),i.normal=m({},i),i.pedantic=m({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=m({},i.normal,{escape:p(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):u(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=v(a[2],"()");if(c>-1){var h=a[0].length-(a[2].length-c)-(a[3]||"").length;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,h).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],i=t[3]):i="":i=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(a,{href:s.escapes(r),title:s.escapes(i)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),l+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),l+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),l+=this.renderer.codespan(u(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),l+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),l+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=u(this.mangle(a[1]))):n=u(a[1]),l+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?l+=this.renderer.text(a[0]):l+=this.renderer.text(u(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=u(a[0]));else{do{o=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(o!==a[0]);n=u(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),l+=this.renderer.link(r,null,n)}return l},s.escapes=function(e){return e?e.replace(s.rules._escapes,"$1"):e},s.prototype.outputLink=function(e,t){var n=t.href,r=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))},s.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},s.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+=""+t+";";return n},a.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return r?''+(n?e:u(e,!0))+"
\n":""+(n?e:u(e,!0))+"
"},a.prototype.blockquote=function(e){return"\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,r){return this.options.headerIds?"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+""+r+">\n"},a.prototype.listitem=function(e){return""+e+"\n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return""+e+"
\n"},a.prototype.table=function(e,t){return t&&(t=""+t+""),"\n"},a.prototype.tablerow=function(e){return"\n"+e+"
\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+""+n+">\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+"
"},a.prototype.br=function(){return this.options.xhtml?"
":"
"},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=g(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"+n+""},a.prototype.image=function(e,t,n){if(null===(e=g(this.options.sanitize,this.options.baseUrl,e)))return n;var r='
":">"},a.prototype.text=function(e){return e},o.prototype.strong=o.prototype.em=o.prototype.codespan=o.prototype.del=o.prototype.text=function(e){return e},o.prototype.link=o.prototype.image=function(e,t,n){return""+n},o.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new s(e.links,this.options),this.inlineText=new s(e.links,m({},this.options,{renderer:new o})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop(),this.token},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,h(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",s="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},u.escapeTest=/[&<>"']/,u.escapeReplace=/[&<>"']/g,u.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},u.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,u.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var d={},f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(){}function m(e){for(var t,n,r=1;r=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:
"+u(e.message+"",!0)+"
";throw e}}b.exec=b,k.options=k.setOptions=function(e){return m(k.defaults,e),k},k.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},k.defaults=k.getDefaults(),k.Parser=l,k.parser=l.parse,k.Renderer=a,k.TextRenderer=o,k.Lexer=r,k.lexer=r.lex,k.InlineLexer=s,k.inlineLexer=s.output,k.Slugger=c,k.parse=k,e.exports=k}(this||("undefined"!=typeof window?window:global))},function(e,t,n){"use strict";var r={"&":"&","<":"<",">":">",'"':""","'":"'"},i={"&":"&","<":"<",">":">",""":'"',"'":"'"},s=/(&|<|>|"|')/g,a=/[&<>"']/g;function o(e){return r[e]}function l(e){return i[e]}function c(e){return null==e?"":String(e).replace(a,o)}function u(e){return null==e?"":String(e).replace(s,l)}c.options=u.options={},e.exports={encode:c,escape:c,decode:u,unescape:u,version:"1.0.0-browser"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var r="__RENDER_8_RUNTIME__",i="__RENDER_8_COMPONENTS__",s=!("undefined"==typeof window||!window.document);s&&!window.global&&(window.global=window),window[i]=window[i]||{},t.register=function(e,t,n,s,a){var o="".concat(n,"/").concat(a),l="".concat(s,"/").concat(a),c=function(){return function(e,t){try{var n=e();return n.__esModule?n.default:n.default||n}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,o)};if(window[r]&&window[r].registerComponent){var u=!!window.__RENDER_LAZY__;window[r].registerComponent(t,u?c:c(),n,a,u)}else{var h=c();window[r]&&window[r].withHMR?window[i][o]=window[i][l]=window[r].withHMR(t,h):window[i][o]=window[i][l]=h}return{}},t.getPublicPath=function(e){var t=window.__hostname__,n="/_v/public/assets/v1/published/";return s&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,n=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+n+"".concat(e,"/public/react/")}},function(e,t,n){"use strict";e.exports=function(e){return"string"==typeof e?e.toLowerCase():e}},function(e,t,n){"use strict";var r=n(6);e.exports={uris:r(["background","base","cite","href","longdesc","src","usemap"])}},function(e,t,n){"use strict";function r(e,t){return e[t]=!0,e}e.exports=function(e){return e.reduce(r,{})}},function(e,t,n){"use strict";var r=n(6);e.exports={voids:r(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])}},function(e,t){e.exports=ReactIntl},function(e,t,n){"use strict";var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,i=r.exec(n);if(!i)return n;var s="",a=0,o=0;for(a=i.index;a\s]+))?)*)\s*(\/?)\s*>/,o=/^<\s*\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,c=/^,u=/^/i,h=/^<\s*\//;e.exports=function(e,t){for(var n,p=function(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}(),g=e;e;)d();function d(){n=!0,function(){"\x3c!--"===e.substr(0,4)?(i=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,i)),e=e.substring(i+3),n=!1):u.test(e)?(r=e.match(u),n=!1,e=e.substring(r[0].length)):h.test(e)?f(o,m):c.test(e)&&f(a,b);var r;var i;!function(){if(!n)return;var r,i=e.indexOf("<");i>=0?(r=e.substring(0,i),e=e.substring(i)):(r=e,e="");t.chars&&t.chars(r)}()}();var r=e===g;g=e,r&&(e="")}function f(t,r){var i=e.match(t);i&&(e=e.substring(i[0].length),i[0].replace(t,r),n=!1)}function b(e,n,a,o){var c={},u=i(n),h=s.voids[u]||!!o;a.replace(l,(function(e,t,n,i,s){c[t]=void 0===n&&void 0===i&&void 0===s?void 0:r.decode(n||i||s||"")})),h||p.push(u),t.start&&t.start(u,c,h)}function m(e,n){var r,s=0,a=i(n);if(a)for(s=p.length-1;s>=0&&p[s]!==a;s--);if(s>=0){for(r=p.length-1;r>=s;r--)t.end&&t.end(p[r]);p.length=s}}m()}},function(e,t,n){"use strict";var r=n(2),i=n(4),s=n(5),a=n(7);e.exports=function(e,t){var n,o=t||{};return h(),{start:function(e,t,a){var u=i(e);if(n.ignoring)return void c(u);if(-1===(o.allowedTags||[]).indexOf(u))return void c(u);if(o.filter&&!o.filter({tag:u,attrs:t}))return void c(u);l("<"),l(u),Object.keys(t).forEach((function(e){var n=t[e],a=(o.allowedClasses||{})[u]||[],c=(o.allowedAttributes||{})[u]||[];c=c.concat((o.allowedAttributes||{})["*"]||[]);var h=i(e);("class"===h&&-1===c.indexOf(h)?(n=n.split(" ").filter((function(e){return a&&-1!==a.indexOf(e)})).join(" ").trim()).length:-1!==c.indexOf(h)&&(!0!==s.uris[h]||function(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var r=e.indexOf("?");if(-1!==r&&n>r)return!0;var i=e.indexOf("#");if(-1!==i&&n>i)return!0;return o.allowedSchemes.some((function(t){return 0===e.indexOf(t+":")}))}(n)))&&(l(" "),l(e),"string"==typeof n&&(l('="'),l(r.encode(n)),l('"')))})),l(a?"/>":">")},end:function(e){var t=i(e);-1!==(o.allowedTags||[]).indexOf(t)&&!1===n.ignoring?(l(""),l(t),l(">")):u(t)},chars:function(e){!1===n.ignoring&&l(o.transformText?o.transformText(e):e)}};function l(t){e.push(t)}function c(e){a.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function u(e){n.ignoring===e&&--n.depth<=0&&h()}function h(){n={ignoring:!1,depth:0}}}},function(e,t,n){"use strict";e.exports={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n').concat(e,"")},I.current.strong=function(e){return'').concat(e,"")},I.current.em=function(e){return'').concat(e,"")},I.current.heading=function(e){return function(t,n){var r=function(e){return e>0&&e<=6?e:6}(n),i="".concat(e.heading," t-heading-").concat(r," ").concat(function(e,t){return 1===t?e.headingLevel1:2===t?e.headingLevel2:3===t?e.headingLevel3:4===t?e.headingLevel4:5===t?e.headingLevel5:6===t?e.headingLevel6:""}(e,r)," ").concat(A.a["heading-level-".concat(r)]);return"').concat(t,"")}}(E),I.current.link=function(e,t,n){var r,s=(r=e.split("?")).length<2?"":i(r,2)[1].includes("target=_blank")?"target=_blank":"",a=(s?e.replace(/target=_blank/,"").replace(/\?&/,"?"):e).replace(/(\?|&)$/,""),o=t?'title="'.concat(t,'"'):"",l='".concat(n,"")},I.current.html=function(e){return d()(e)},I.current.table=function(e,t){return'\n \n \n ').concat(e,'\n \n \n ').concat(t,"\n \n
")},I.current.tablerow=function(e){return"\n").concat(e,"
\n")},I.current.tablecell=function(e,t){var n=t.header?"th":"td",r="<".concat(n,' class="').concat("th"===n?E.tableTh:E.tableTd,'"\n ').concat(t.align?' align="'.concat(t.align,'"'):"",">");return"".concat(r+e,"").concat(n,">\n")},I.current.image=function(e,t,n){return'
")},I.current.list=function(e,t){var n=t?"ol":"ul";return"<".concat(n,' class="').concat(E.list," ").concat(t?E.listOrdered:"",'">').concat(e,"").concat(n,">")},I.current.listitem=function(e){return'').concat(e,"")});var H=C(N,f,"textAlignment"),F=C(P,o,"textPosition"),G=C(L,o,"textPosition"),D=Object(l.useMemo)((function(){return p.a.setOptions({gfm:!0,breaks:!0,sanitize:!1,smartLists:!0,renderer:I.current}),b()(p()(y()({id:s,intl:T})),z)}),[s,T]);return c.a.createElement("div",{id:k,className:"".concat(E.container," flex ").concat(H," ").concat(F," ").concat(G," ").concat(M(q)," ").concat(Z(_))},c.a.createElement("div",{className:E.wrapper,dangerouslySetInnerHTML:{__html:D}}))}var H=Object(l.memo)(q);H.schema={title:"admin/editor.rich-text.title"};t.default=H}]);;
!function(e){function t(t){for(var n,u,a=t[0],c=t[1],l=t[2],d=0,s=[];de.length)&&(t=e.length);for(var r=0,n=new Array(t);r0}(p),n=null===g||function(e){return m.test(e)}(g);return _({type:"SET_INVALID_EMAIL",value:!e}),_({type:"SET_INVALID_NAME",value:!t}),_({type:"SET_INVALID_PHONE",value:!n}),t&&n&&e}return i.a.createElement("form",{className:S.newsletterForm,onSubmit:function(e){if(e.preventDefault(),A()){var t={name:p,email:N,phone:g};O(b?{id:b,event:"newsletterSubscription",data:t}:{event:"newsletterSubscription",data:t});var n=function(e){var t=e.email,n=e.name,a=e.phone,i=e.customFields,r={email:t,fields:{}};return n&&(r.fields.name=n),a&&(r.fields.phone=a),i&&i.forEach((function(e){r.fields[e.name]=e.value})),r}({email:N,name:p,phone:g,customFields:k});h({variables:n}).catch((function(){}))}}},f)}function b(e){return i.a.createElement(o.a,null,i.a.createElement(f,e,e.children))}b.schema={title:"admin/editor.newsletter-form.title"};t.default=b},4:function(e,t){e.exports=ReactApollo},5:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"subscribeNewsletter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NamedType",name:{kind:"Name",value:"NewsletterFieldsInput"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.store-graphql",block:!1}},{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-newsletter@1.3.0",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"7e8c62d8e9b26b7043954da16e970bdf3aaf854cd2c84344ee408386d70803d2",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscribeNewsletter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],directives:[]}]}}],loc:{start:0,end:302}};n.loc.source={body:'mutation subscribeNewsletter($email: String, $fields: NewsletterFieldsInput) @context(provider: "vtex.store-graphql", sender: "vtex.store-newsletter@1.3.0") @runtimeMeta(hash: "7e8c62d8e9b26b7043954da16e970bdf3aaf854cd2c84344ee408386d70803d2") {\n subscribeNewsletter(email: $email, fields: $fields)\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,t){for(var n=0;n0;){var u=l;l=new Set,u.forEach((function(e){s.has(e)||(s.add(e),(a[e]||new Set).forEach((function(e){l.add(e)})))}))}return s.forEach((function(t){var a=i(e,t);a&&n.definitions.push(a)})),n}(n,"subscribeNewsletter")},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},8:function(e,t){e.exports=ReactIntl}},[[28,"common"]]]);;
(window.webpackJsonpvtex_store_newsletter_1_3_0=window.webpackJsonpvtex_store_newsletter_1_3_0||[]).push([["FormConfirmationCheckbox"],[function(e,n){e.exports=React},function(e,n,t){"use strict";t.d(n,"a",(function(){return v})),t.d(n,"b",(function(){return f})),t.d(n,"c",(function(){return m}));var i=t(3),a=t(0),r=t.n(a),s=t(4),o=t(5),c=t.n(o),l=Object(a.createContext)(void 0),u=Object(a.createContext)(void 0);function d(e,n){switch(n.type){case"UPDATE_EMAIL":return Object.assign(Object.assign({},e),{email:n.value});case"UPDATE_NAME":return Object.assign(Object.assign({},e),{name:n.value});case"UPDATE_PHONE":return Object.assign(Object.assign({},e),{phone:n.value});case"UPDATE_CONFIRMATION":return Object.assign(Object.assign({},e),{confirmation:n.value});case"SET_INVALID_EMAIL":return Object.assign(Object.assign({},e),{invalidEmail:n.value});case"SET_INVALID_NAME":return Object.assign(Object.assign({},e),{invalidName:n.value});case"SET_INVALID_PHONE":return Object.assign(Object.assign({},e),{invalidPhone:n.value});case"SET_MUTATION_VALUES":return Object.assign(Object.assign({},e),{submission:n.value});case"SET_CUSTOM_VALUES":return Object.assign(Object.assign({},e),{customFields:n.value});default:return e}}function v(e){var n=Object(s.useMutation)(c.a),t=Object(i.a)(n,2),o=t[0],v=t[1],m=v.data,f=v.loading,b=v.error,k=Object(a.useReducer)(d,{email:"",name:null,phone:null,customFields:null,confirmation:null,invalidEmail:!1,invalidName:!1,invalidPhone:!1,subscribe:o,submission:{data:m,loading:f,error:b}}),N=Object(i.a)(k,2),h=N[0],O=N[1];return Object(a.useEffect)((function(){O({type:"SET_MUTATION_VALUES",value:{loading:f,error:b,data:m}})}),[b,f,m]),r.a.createElement(l.Provider,{value:h},r.a.createElement(u.Provider,{value:O},e.children))}function m(){var e=Object(a.useContext)(l);if(void 0===e)throw new Error("useNewsletterState must be used within a NewsletterContextProvider");return e}function f(){var e=Object(a.useContext)(u);if(void 0===e)throw new Error("useNewsletterDispatch must be used within a NewsletterContextProvider");return e}},,,function(e,n){e.exports=ReactApollo},function(e,n){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"subscribeNewsletter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NamedType",name:{kind:"Name",value:"NewsletterFieldsInput"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.store-graphql",block:!1}},{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-newsletter@1.3.0",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"7e8c62d8e9b26b7043954da16e970bdf3aaf854cd2c84344ee408386d70803d2",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscribeNewsletter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],directives:[]}]}}],loc:{start:0,end:302}};t.loc.source={body:'mutation subscribeNewsletter($email: String, $fields: NewsletterFieldsInput) @context(provider: "vtex.store-graphql", sender: "vtex.store-newsletter@1.3.0") @runtimeMeta(hash: "7e8c62d8e9b26b7043954da16e970bdf3aaf854cd2c84344ee408386d70803d2") {\n subscribeNewsletter(email: $email, fields: $fields)\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var t=0;t0;){var c=o;o=new Set,c.forEach((function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach((function(e){o.add(e)})))}))}return s.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(t,"subscribeNewsletter")},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},,,,,function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/IOMessage"]},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Checkbox"]},,,,function(e,n,t){"use strict";t.r(n),function(e){var n=t(2);t.p=Object(n.getPublicPath)("vtex.store-newsletter@1.3.0");var i=Object(n.register)((function(){return t(17)}),e,"vtex.store-newsletter@1.3.0","vtex.store-newsletter@1.x","FormConfirmationCheckbox");i.renderHotReload,i.setupHMR}.call(this,t(10)(e))},function(e,n,t){"use strict";t.r(n);var i=t(0),a=t.n(i),r=t(12),s=t.n(r),o=t(11),c=t.n(o),l=t(6),u=t.n(l),d=t(1),v=["confirmationCheckboxContainer","confirmationCheckboxLabel","labelLink"];function m(e){var n=e.checkboxLabel,t=void 0===n?"store/newsletter-checkbox-confirmation.checkboxLabel.default":n,r=e.firstLabelLink,o=e.secondLabelLink,l=e.classes,m=Object(d.b)(),f=Object(d.c)().confirmation,b=u()(v,{classes:l}),k=b.handles,N=b.withModifiers;Object(i.useEffect)((function(){return m({type:"UPDATE_CONFIRMATION",value:!1})}),[m]);return a.a.createElement("div",{className:k.confirmationCheckboxContainer},a.a.createElement(s.a,{id:"newsletter-checkbox-confirmation",name:"newsletter-confirmation",label:a.a.createElement(c.a,{id:t,values:{firstLink:a.a.createElement("a",{className:N("labelLink","first"),href:null==r?void 0:r.url},null==r?void 0:r.text),secondLink:a.a.createElement("a",{className:N("labelLink","second"),href:null==o?void 0:o.url},null==o?void 0:o.text)}}),onChange:function(e){m({type:"UPDATE_CONFIRMATION",value:e.target.checked})},checked:f,required:!0}))}m.schema={title:"admin/editor.newsletter-checkbox-confirmation.title"},n.default=m}],[[16,"common"]]]);;
(window.webpackJsonpvtex_store_newsletter_1_3_0=window.webpackJsonpvtex_store_newsletter_1_3_0||[]).push([["FormEmailInput"],[function(e,n){e.exports=React},function(e,n,t){"use strict";t.d(n,"a",(function(){return v})),t.d(n,"b",(function(){return f})),t.d(n,"c",(function(){return m}));var i=t(3),a=t(0),r=t.n(a),s=t(4),l=t(5),o=t.n(l),u=Object(a.createContext)(void 0),c=Object(a.createContext)(void 0);function d(e,n){switch(n.type){case"UPDATE_EMAIL":return Object.assign(Object.assign({},e),{email:n.value});case"UPDATE_NAME":return Object.assign(Object.assign({},e),{name:n.value});case"UPDATE_PHONE":return Object.assign(Object.assign({},e),{phone:n.value});case"UPDATE_CONFIRMATION":return Object.assign(Object.assign({},e),{confirmation:n.value});case"SET_INVALID_EMAIL":return Object.assign(Object.assign({},e),{invalidEmail:n.value});case"SET_INVALID_NAME":return Object.assign(Object.assign({},e),{invalidName:n.value});case"SET_INVALID_PHONE":return Object.assign(Object.assign({},e),{invalidPhone:n.value});case"SET_MUTATION_VALUES":return Object.assign(Object.assign({},e),{submission:n.value});case"SET_CUSTOM_VALUES":return Object.assign(Object.assign({},e),{customFields:n.value});default:return e}}function v(e){var n=Object(s.useMutation)(o.a),t=Object(i.a)(n,2),l=t[0],v=t[1],m=v.data,f=v.loading,b=v.error,p=Object(a.useReducer)(d,{email:"",name:null,phone:null,customFields:null,confirmation:null,invalidEmail:!1,invalidName:!1,invalidPhone:!1,subscribe:l,submission:{data:m,loading:f,error:b}}),N=Object(i.a)(p,2),E=N[0],O=N[1];return Object(a.useEffect)((function(){O({type:"SET_MUTATION_VALUES",value:{loading:f,error:b,data:m}})}),[b,f,m]),r.a.createElement(u.Provider,{value:E},r.a.createElement(c.Provider,{value:O},e.children))}function m(){var e=Object(a.useContext)(u);if(void 0===e)throw new Error("useNewsletterState must be used within a NewsletterContextProvider");return e}function f(){var e=Object(a.useContext)(c);if(void 0===e)throw new Error("useNewsletterDispatch must be used within a NewsletterContextProvider");return e}},,,function(e,n){e.exports=ReactApollo},function(e,n){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"subscribeNewsletter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NamedType",name:{kind:"Name",value:"NewsletterFieldsInput"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.store-graphql",block:!1}},{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-newsletter@1.3.0",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"7e8c62d8e9b26b7043954da16e970bdf3aaf854cd2c84344ee408386d70803d2",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscribeNewsletter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],directives:[]}]}}],loc:{start:0,end:302}};t.loc.source={body:'mutation subscribeNewsletter($email: String, $fields: NewsletterFieldsInput) @context(provider: "vtex.store-graphql", sender: "vtex.store-newsletter@1.3.0") @runtimeMeta(hash: "7e8c62d8e9b26b7043954da16e970bdf3aaf854cd2c84344ee408386d70803d2") {\n subscribeNewsletter(email: $email, fields: $fields)\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var t=0;t0;){var o=l;l=new Set,o.forEach((function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach((function(e){l.add(e)})))}))}return s.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(t,"subscribeNewsletter")},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/formatIOMessage"]},function(e,n){e.exports=ReactIntl},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Input"]},,,,,,,,,function(e,n,t){"use strict";t.r(n),function(e){var n=t(2);t.p=Object(n.getPublicPath)("vtex.store-newsletter@1.3.0");var i=Object(n.register)((function(){return t(19)}),e,"vtex.store-newsletter@1.3.0","vtex.store-newsletter@1.x","FormEmailInput");i.renderHotReload,i.setupHMR}.call(this,t(10)(e))},function(e,n,t){"use strict";t.r(n);var i=t(0),a=t.n(i),r=t(8),s=t(9),l=t.n(s),o=t(7),u=t.n(o),c=t(6),d=t.n(c),v=t(1),m=["emailInputContainer"];function f(e){var n=e.placeholderText,t=void 0===n?"store/newsletter-input-email.placeholderText.default":n,i=e.errorMessage,s=void 0===i?"store/newsletter-input-email.errorMessage.default":i,o=e.inputLabel,c=e.classes,f=Object(v.c)().invalidEmail,b=Object(v.b)(),p=d()(m,{classes:c}).withModifiers,N=Object(r.useIntl)();return a.a.createElement("div",{className:"".concat(p("emailInputContainer",f?"invalid":""))},a.a.createElement(l.a,{id:"newsletter-input-email",type:"email",name:"newsletter",label:u()({id:o,intl:N}),onChange:function(e){b({type:"UPDATE_EMAIL",value:e.target.value.trim()})},errorMessage:f?u()({id:s,intl:N}):null,placeholder:u()({id:t,intl:N})}))}f.schema={title:"admin/editor.newsletter-input-email.title"},n.default=f}],[[18,"common"]]]);;
(window.webpackJsonpvtex_store_newsletter_1_3_0=window.webpackJsonpvtex_store_newsletter_1_3_0||[]).push([["FormSubmit"],[function(e,n){e.exports=React},function(e,n,t){"use strict";t.d(n,"a",(function(){return m})),t.d(n,"b",(function(){return b})),t.d(n,"c",(function(){return v}));var i=t(3),a=t(0),r=t.n(a),s=t(4),o=t(5),l=t.n(o),u=Object(a.createContext)(void 0),c=Object(a.createContext)(void 0);function d(e,n){switch(n.type){case"UPDATE_EMAIL":return Object.assign(Object.assign({},e),{email:n.value});case"UPDATE_NAME":return Object.assign(Object.assign({},e),{name:n.value});case"UPDATE_PHONE":return Object.assign(Object.assign({},e),{phone:n.value});case"UPDATE_CONFIRMATION":return Object.assign(Object.assign({},e),{confirmation:n.value});case"SET_INVALID_EMAIL":return Object.assign(Object.assign({},e),{invalidEmail:n.value});case"SET_INVALID_NAME":return Object.assign(Object.assign({},e),{invalidName:n.value});case"SET_INVALID_PHONE":return Object.assign(Object.assign({},e),{invalidPhone:n.value});case"SET_MUTATION_VALUES":return Object.assign(Object.assign({},e),{submission:n.value});case"SET_CUSTOM_VALUES":return Object.assign(Object.assign({},e),{customFields:n.value});default:return e}}function m(e){var n=Object(s.useMutation)(l.a),t=Object(i.a)(n,2),o=t[0],m=t[1],v=m.data,b=m.loading,f=m.error,N=Object(a.useReducer)(d,{email:"",name:null,phone:null,customFields:null,confirmation:null,invalidEmail:!1,invalidName:!1,invalidPhone:!1,subscribe:o,submission:{data:v,loading:b,error:f}}),k=Object(i.a)(N,2),E=k[0],O=k[1];return Object(a.useEffect)((function(){O({type:"SET_MUTATION_VALUES",value:{loading:b,error:f,data:v}})}),[f,b,v]),r.a.createElement(u.Provider,{value:E},r.a.createElement(c.Provider,{value:O},e.children))}function v(){var e=Object(a.useContext)(u);if(void 0===e)throw new Error("useNewsletterState must be used within a NewsletterContextProvider");return e}function b(){var e=Object(a.useContext)(c);if(void 0===e)throw new Error("useNewsletterDispatch must be used within a NewsletterContextProvider");return e}},,,function(e,n){e.exports=ReactApollo},function(e,n){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"subscribeNewsletter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NamedType",name:{kind:"Name",value:"NewsletterFieldsInput"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.store-graphql",block:!1}},{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-newsletter@1.3.0",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"7e8c62d8e9b26b7043954da16e970bdf3aaf854cd2c84344ee408386d70803d2",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscribeNewsletter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],directives:[]}]}}],loc:{start:0,end:302}};t.loc.source={body:'mutation subscribeNewsletter($email: String, $fields: NewsletterFieldsInput) @context(provider: "vtex.store-graphql", sender: "vtex.store-newsletter@1.3.0") @runtimeMeta(hash: "7e8c62d8e9b26b7043954da16e970bdf3aaf854cd2c84344ee408386d70803d2") {\n subscribeNewsletter(email: $email, fields: $fields)\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var t=0;t0;){var l=o;o=new Set,l.forEach((function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach((function(e){o.add(e)})))}))}return s.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(t,"subscribeNewsletter")},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},,,,,function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/IOMessage"]},,,function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]},,,,,,,,,,,,function(e,n,t){"use strict";t.r(n),function(e){var n=t(2);t.p=Object(n.getPublicPath)("vtex.store-newsletter@1.3.0");var i=Object(n.register)((function(){return t(27)}),e,"vtex.store-newsletter@1.3.0","vtex.store-newsletter@1.x","FormSubmit");i.renderHotReload,i.setupHMR}.call(this,t(10)(e))},function(e,n,t){"use strict";t.r(n);var i=t(0),a=t.n(i),r=t(6),s=t.n(r),o=t(11),l=t.n(o),u=t(14),c=t.n(u),d=t(1),m=["formSubmitContainer"];function v(e){var n=e.submitButtonLabel,t=void 0===n?"store/newsletter-submit.submitButtonLabel.default":n,i=e.classes,r=Object(d.c)(),o=r.submission,u=r.invalidEmail,v=r.invalidName,b=r.invalidPhone,f=u||v||b,N=s()(m,{classes:i}).withModifiers;return a.a.createElement("div",{className:"".concat(N("formSubmitContainer",f?"invalid":""))},a.a.createElement(c.a,{type:"submit",isLoading:o.loading},a.a.createElement(l.a,{id:t})))}v.schema={title:"admin/editor.newsletter-submit.title"},n.default=v}],[[26,"common"]]]);;
!function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];st.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1?"submenu.accordion":"submenu"},b=n(9),h={x:null,y:null},O={x:null,y:null},g=0,k=0,j=0,E=function(e){if(O.x=e.pageX,O.y=e.pageY,null!=h.x&&null!=h.y){var t=e.timeStamp,n=Math.sqrt(Math.pow(O.x-h.x,2)+Math.pow(O.y-h.y,2)),i=t-k;j=Math.round(n/i*1e3),k=t}h.x=O.x,h.y=O.y},x=function(e,t){var n=t.delay,i=void 0===n?200:n,a=t.maxSpeed,o=void 0===a?450:a,l=Object(r.useRef)(null),c=(Object(r.useEffect)((function(){return 0===g&&window.addEventListener("mousemove",E),g+=1,function(){(g-=1)>0||(h.x=null,h.y=null,O.x=null,O.y=null,window.removeEventListener("mousemove",E))}}),[]),{getMouseSpeed:function(){return j||0}}).getMouseSpeed;return function(){for(var t=arguments.length,n=new Array(t),a=0;ao?e.apply(void 0,n):null!=r&&r===a||(l.current=window.setTimeout(t,i)),r=a}),i)}},w=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a0;){var c=l;l=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){l.add(e)})))}))}return o.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(n,"category")},8:function(e,t,n){"use strict";var i=n(4),a=n(6),r=n.n(a),o=n(0),l=n.n(o),c=n(1),u=n.n(c),s=n(2),d=n(16),m=n.n(d),f=n(11),p=n(9),v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a0;){var l=o;o=new Set,l.forEach((function(e){d.has(e)||(d.add(e),(t[e]||new Set).forEach((function(e){o.add(e)})))}))}return d.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(i,"categoryWithChildren")},,,,,,,,,,function(e,n,i){"use strict";i.r(n),function(e){var n=i(3);i.p=Object(n.getPublicPath)("vtex.menu@2.35.3");var t=Object(n.register)((function(){return i(35)}),e,"vtex.menu@2.35.3","vtex.menu@2.x","Menu");t.renderHotReload,t.setupHMR}.call(this,i(7)(e))},,,function(e,n,i){"use strict";i.r(n);var t,a=i(4),r=i(0),d=i.n(r),o=i(6),l=i.n(o),c=i(5),m=i(1),u=i.n(m),s=i(2),v=i(10),f=i(22),g=i.n(f),h=i(8),p=function(e){var n=e.href,i=e.titleTag,t=e.isTitle,a=e.name;return d.a.createElement(h.a,{title:i,to:n,isTitle:t},a)},k=function(e){var n=e.categoryId;return null==n?null:d.a.createElement(v.Query,{query:g.a,variables:{id:n}},(function(e){var n=e.data,i=e.loading;if(e.error||i)return null;var t=n.category,r=n.category.children;return d.a.createElement(d.a.Fragment,null,d.a.createElement(p,Object(a.a)({},t,{isTitle:!0})),null==r?void 0:r.map((function(e){return d.a.createElement("li",{key:e.id},d.a.createElement(p,e))})))}))},y=i(13),b=i(11),_=i(9),N=i(17),x=function(e,n){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(i[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a11?(n&&console.warn("Invalid ".concat(n," value. It should be an integer between 0 and ").concat(11,".")),0):t},b=function(e){var n=e.isOpen,t=e.width,a=e.children,u=e.classes,r=e.orientation,c=void 0===r?i.horizontal:r,b=e.paddingTop,p=void 0===b?4:b,v=e.paddingBottom,f=void 0===v?4:v,h=l()(d,{classes:u}),x=h.handles,w=h.withModifiers;return s.a.createElement("div",{className:"".concat(x.submenuContainer," ").concat("100%"===t?"":"relative")},s.a.createElement("div",{className:o()(w("submenuWrapper",n?"isOpen":"isClosed"),"absolute left-0 bg-base pt".concat(m(p,"paddingTop")," pb").concat(m(f,"paddingBottom")," bw1 bb b--muted-3 z-2"),n?"flex":"dn",{"100%":"w-100",auto:"w-auto ml6"}[t])},s.a.createElement("section",{className:o()(x.submenu,"w-100 flex justify-center",c===i.vertical&&"flex-column")},a)))};!function(e){e.horizontal="horizontal",e.vertical="vertical"}(i||(i={}));var p=Object(r.defineMessages)({submenuTitle:{id:"admin/editor.menu.submenu.title"},submenuWidthTitle:{id:"admin/editor.menu.item.submenuWidth.title"}});b.getSchema=function(){return{title:p.submenuTitle.id}},n.default=b},5:function(e,n){e.exports=ReactIntl},6:function(e,n){e.exports=Classnames}},[[29,"common"]]]);;
!function(e){function t(t){for(var r,c,u=t[0],a=t[1],l=t[2],p=0,w=[];pe.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!l(n))throw TypeError("Stringified UUID is invalid");return n};var f=function(e,t,n){var i=(e=e||{}).random||(e.rng||s)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return m(i)},v=n(12);const h=async()=>{},p=Object(r.createContext)({addItem:h,addItems:h,updateQuantity:h,removeItem:h,setManualPrice:h}),I=()=>Object(r.useContext)(p),g={queue:[]},y=e=>{var t;let n=null;try{n=JSON.parse(null!==(t=localStorage.getItem("orderQueue"))&&void 0!==t?t:"null")}catch{}if(!n)try{localStorage.setItem("orderQueue",JSON.stringify(g))}catch(t){null==e||e({type:"Error",level:"Critical",event:t,workflowType:"OrderItems",workflowInstance:"get-local-order-queue"})}return null!=n?n:g},w=(e,t)=>{try{localStorage.setItem("orderQueue",JSON.stringify(e))}catch(e){null==t||t({type:"Error",level:"Critical",event:e,workflowType:"OrderItems",workflowInstance:"save-local-order-queue"})}},b=(e,t)=>{const n=y(),i=n.queue.push(e);return w(n,t),i},k=(e=0,t)=>{const n=y(t),i=n.queue[e];if(i)return n.queue.splice(e,1),w(n,t),i},T="available",q=(e,t,n)=>{var i,r,a;const u=(null===(i=e.id)||void 0===i?void 0:i.toString())===t.id,s=e.seller===t.seller;if(t.isGift)return!1;if(null==e.options||!(null===(r=e.options)||void 0===r?void 0:r.length))return!(null===(a=t.attachments)||void 0===a?void 0:a.length)&&(u&&s);const o=e.options.every(e=>n.find(t=>t.id===e.id));return u&&s&&o},O=e=>{var t;return{id:+(null!==(t=e.id)&&void 0!==t?t:0),index:e.index,quantity:e.quantity,seller:e.seller,options:e.options}},M=(e,t)=>{var n,i,r,a;return{id:t.id,productId:t.productId,name:t.name,skuName:t.skuName,skuSpecifications:t.skuSpecifications,imageUrls:{at1x:t.imageUrl,at2x:t.imageUrl,at3x:t.imageUrl},price:t.price,listPrice:t.listPrice,sellingPrice:t.sellingPrice,measurementUnit:t.measurementUnit,quantity:null!==(n=t.quantity)&&void 0!==n?n:1,unitMultiplier:null!==(i=t.unitMultiplier)&&void 0!==i?i:1,uniqueId:null!==(r=e.uniqueId)&&void 0!==r?r:f(),detailUrl:t.detailUrl,availability:null!==(a=t.availability)&&void 0!==a?a:T,additionalInfo:t.additionalInfo,options:t.options,seller:t.seller,attachmentOfferings:[],attachments:[],bundleItems:[],offerings:[],priceTags:[],isGift:!1}},x=e=>void 0!==e;function C({useMutateAddItems:e,useOrderForm:t,useLogger:n}){return i=>{var a;const{setOrderForm:u}=t(),s=e(),{log:o}=null!==(a=null==n?void 0:n())&&void 0!==a?a:{};return Object(r.useCallback)(({mutationInputItems:e,mutationInputMarketingData:t,orderFormItems:n,salesChannel:r,allowedOutdatedData:a})=>({execute:async()=>{var l;const{data:d,errors:c}=await s({items:e,marketingData:t,salesChannel:r,allowedOutdatedData:a});if(!d||(null!==(l=null==c?void 0:c.length)&&void 0!==l?l:0)>0)throw null==c?void 0:c[0];return n.forEach(e=>{const t=null==d?void 0:d.items.find(t=>t.id===e.id);if(!t)return;const n=e.uniqueId;(({fakeUniqueId:e,uniqueId:t},n)=>{const i=y(n);i.queue=i.queue.map(n=>{if("update_mutation"!==n.type)return n;const i=n.variables.orderItems.findIndex(t=>"uniqueId"in t&&t.uniqueId===e);return i>-1&&(n.variables.orderItems[i]={...n.variables.orderItems[i],uniqueId:t}),n}),w(i,n)})({fakeUniqueId:n,uniqueId:t.uniqueId},o),i.current[n]=t.uniqueId}),u(n=>({...n,items:n.items.map(t=>{if(-1===e.findIndex(e=>q(e,t,n.items)))return t;const i=d.items.find(e=>e.id===t.id);return i?{...t,uniqueId:i.uniqueId}:null}).filter(e=>null!=e),marketingData:null!=t?t:n.marketingData})),d},rollback:()=>{u(t=>{const n=e.map(({id:e})=>e.toString());return{...t,items:t.items.filter(e=>!n.includes(e.id))}})}}),[i,o,s,u])}}const _=({totalizers:e,currentValue:t=0,newItem:n,oldItem:i})=>{var r,a,u,s,o;if((null==i?void 0:i.availability)!==T)return{totalizers:e,value:t};const l=(null!==(r=i.price)&&void 0!==r?r:0)*(null!==(a=i.unitMultiplier)&&void 0!==a?a:1),d=null!==(u=i.quantity)&&void 0!==u?u:0,c=null!==(s=i.sellingPrice)&&void 0!==s?s:0,m=l*d,f=n.price*(null!==(o=n.unitMultiplier)&&void 0!==o?o:1),v=f*n.quantity-m,h=(c-l)*d,p=(n.sellingPrice-f)*n.quantity-h,I=t+v+p;if(!e.length)return{totalizers:[{id:"Items",name:"Items Total",value:v},{id:"Discounts",name:"Discounts Total",value:p}],value:I};return{totalizers:e.map(e=>{switch(e.id){case"Items":return{...e,value:e.value+v};case"Discounts":return{...e,value:e.value+p};default:return e}}),value:I}},D=async()=>{};function E({useMutateAddItems:e,useMutateUpdateQuantity:t,useMutateSetManualPrice:n,useOrderForm:i,useLogger:u,useOrderQueue:s,useQueueStatus:o}){const l=C({useMutateAddItems:e,useOrderForm:i}),d=function({useMutateSetManualPrice:e}){return()=>{const t=e();return Object(r.useCallback)((e,n)=>{if(t)return{execute:async()=>{var i;const{data:r,errors:a}=await t({itemIndex:n,price:e});if(!r||(null!==(i=null==a?void 0:a.length)&&void 0!==i?i:0)>0)throw null==a?void 0:a[0];return r}}},[t])}}({useMutateSetManualPrice:n}),c=function({useMutateUpdateQuantity:e,useOrderForm:t}){return n=>{const{setOrderForm:i}=t(),a=e();return Object(r.useCallback)(({items:e,orderFormItems:t,id:r,allowedOutdatedData:u,splitItem:s})=>({id:r,execute:async()=>{var t;const i={orderItems:e.map(e=>{if("uniqueId"in e){return{uniqueId:n.current[e.uniqueId]||e.uniqueId,quantity:e.quantity}}return e}),allowedOutdatedData:u,splitItem:s},{data:r,errors:o}=await a(i);if(!r||(null!==(t=null==o?void 0:o.length)&&void 0!==t?t:0)>0)throw null==o?void 0:o[0];return r},rollback:()=>{const n=e.filter(({quantity:e})=>0===e),r=e.filter(({quantity:e})=>0!==e),a=n.map(e=>t.find((t,n)=>"uniqueId"in e?t.uniqueId===e.uniqueId:e.index===n)).filter(x);i(e=>({...e,items:e.items.map(e=>{const n=r.findIndex((t,n)=>"uniqueId"in t?e.uniqueId===t.uniqueId:n===t.index);if(-1!==n){const i=r[n],a=t.find((e,t)=>"uniqueId"in i?e.uniqueId===i.uniqueId:t===i.index);return{...e,quantity:a.quantity}}return e}).concat(a)}))}}),[n,a,i])}}({useMutateUpdateQuantity:t,useOrderForm:i});return{OrderItemsProvider:({children:e})=>{const{orderForm:t,setOrderForm:n}=i(),{log:m}=u(),h=function({useOrderQueue:e}){const t=Object(r.useRef)({}),{listen:n}=e();return Object(r.useEffect)(()=>n("Fulfilled",()=>{t.current={}}),[n]),t}({useOrderQueue:s}),I=(({useOrderForm:e,useLogger:t,useOrderQueue:n,useQueueStatus:i})=>{const{log:a}=t(),{enqueue:u}=n(),s=i(),{setOrderForm:o}=e();return Object(r.useCallback)(e=>u(e.execute,e.id).then(e=>{k(0,a),"Fulfilled"===s.current?o(e):o(t=>{var n;return{...t,messages:{...e.messages,generalMessages:null===(n=e.messages)||void 0===n?void 0:n.generalMessages}}})},e=>{if(!e||e.code!==v.a)throw k(0,a),a({type:"Error",level:"Critical",event:e,workflowType:"OrderItems",workflowInstance:"enqueue-task-error"}),e;k(e.index,a)}),[u,s,o,a])})({useOrderForm:i,useLogger:u,useOrderQueue:s,useQueueStatus:o}),g=l(h),w=c(h),T=d(),x=Object(r.useRef)(t.items);Object(r.useEffect)(()=>{x.current=t.items},[t.items]);const C=Object(r.useCallback)(async(e,t)=>{var i,r,a;let u,s="";const o=x.current;if(e.id?u=o.findIndex(t=>q(e,t,o)):e.uniqueId?(s=e.uniqueId,u=o.findIndex(t=>t.uniqueId===e.uniqueId)):u=null!==(i=null==e?void 0:e.index)&&void 0!==i?i:-1,u<0||u>=o.length)throw new Error(`Item ${null!==(r=e.id)&&void 0!==r?r:e.uniqueId} not found`);s||(s=o[u].uniqueId);const l=null!==(a=e.quantity)&&void 0!==a?a:1;let d;n(e=>{const t=e.items.slice(),n=t[u],i={...n,quantity:l};return l>0?t[u]=i:t.splice(u,1),{...e,..._({totalizers:e.totalizers,currentValue:e.value,newItem:i,oldItem:n}),items:t}});let c=f();if(l>0){const n=y(m).queue;let i=-1;const r=c;for(let e=1;ee.quantity>0)?(i=e,c=t.id):(i=-1,c=r)}const a=-1===i?void 0:n[i],o="update_mutation"===(null==a?void 0:a.type)?a.variables.orderItems:[],f=o.findIndex(e=>"uniqueId"in e?e.uniqueId===s:e.index===u);let v={uniqueId:s,quantity:l};"index"in e&&(v={index:u,quantity:l}),d={allowedOutdatedData:null==t?void 0:t.allowedOutdatedData,splitItem:null==t?void 0:t.splitItem,orderItems:f>-1?o.map((e,t)=>t===f?v:e):o.concat([v])}}else d={allowedOutdatedData:null==t?void 0:t.allowedOutdatedData,splitItem:null==t?void 0:t.splitItem,orderItems:[{uniqueId:s,quantity:l}]};return b({id:c,type:"update_mutation",variables:d,orderFormItems:o},m),I(w({items:d.orderItems,orderFormItems:o,id:c,allowedOutdatedData:null==t?void 0:t.allowedOutdatedData,splitItem:null==t?void 0:t.splitItem}))},[I,m,n,w]),E=Object(r.useCallback)(async(e,t)=>{const{salesChannel:i,marketingData:r,allowedOutdatedData:a,splitItem:u}=null!=t?t:{},{newItems:s,updatedItems:o}=e.reduce((t,n)=>{var i;const{newItems:r,updatedItems:a}=t,u=n.options&&n.options.length>0?void 0:x.current.find(t=>q(n,t,e));return null==u?r.push(n):a.push({...n,quantity:(null!==(i=n.quantity)&&void 0!==i?i:1)+u.quantity}),t},{newItems:[],updatedItems:[]}),l=[];if(o.length&&o.forEach(e=>{const t=C(e,{allowedOutdatedData:a,splitItem:u});l.push(t)}),0===s.length)return Promise.all(l).then(D);const d=s.map(O),c=s.map((e,t)=>M(d[t],e));n(e=>{var t;return{...e,items:[...x.current,...c],totalizers:c.reduce((e,t)=>_({totalizers:e,newItem:t}).totalizers,null!==(t=e.totalizers)&&void 0!==t?t:[]),marketingData:null!=r?r:e.marketingData,value:e.value+c.reduce((e,t)=>e+t.sellingPrice*t.quantity,0)}}),b({type:"add_mutation",variables:{items:d,marketingData:r,salesChannel:i,allowedOutdatedData:a},orderFormItems:c},m);const f=I(g({mutationInputItems:d,mutationInputMarketingData:r,orderFormItems:c,salesChannel:i,allowedOutdatedData:null==t?void 0:t.allowedOutdatedData}));return Promise.all([...l,f]).then(D)},[g,I,m,n,C]),F=Object(r.useCallback)((e,t,n)=>E(e,{marketingData:t,salesChannel:n}),[E]),S=Object(r.useCallback)((e,t)=>{const n=T(e,t);n&&I(n)},[I,T]),j=Object(r.useCallback)((e,t)=>C({...e,quantity:0},t),[C]),P=Object(r.useMemo)(()=>({addItem:F,addItems:E,updateQuantity:C,removeItem:j,setManualPrice:S}),[F,E,C,j,S]);return Object(r.useEffect)(()=>{y(m).queue.forEach(e=>{"add_mutation"===e.type?I(g({mutationInputItems:e.variables.items,mutationInputMarketingData:e.variables.marketingData,orderFormItems:e.orderFormItems,salesChannel:e.variables.salesChannel,allowedOutdatedData:e.variables.allowedOutdatedData})):"update_mutation"===e.type&&I(w({items:e.variables.orderItems,orderFormItems:e.orderFormItems,allowedOutdatedData:e.variables.allowedOutdatedData,splitItem:e.variables.splitItem,id:e.id}))})},[g,I,m,w]),a.a.createElement(p.Provider,{value:P},e)}}}function F({useMutateAddItems:e,useMutateUpdateQuantity:t,useMutateSetManualPrice:n,useOrderForm:i,useLogger:r,useOrderQueue:a,useQueueStatus:u}){return E({useMutateAddItems:e,useMutateUpdateQuantity:t,useMutateSetManualPrice:n,useOrderForm:i,useLogger:r,useOrderQueue:a,useQueueStatus:u})}},,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var i=n(0);const r={cancel:Object.create(null),timeout:Object.create(null)},a="drained",u="error",s="timeout";function o(){}class l{constructor(e){var t,n;this.queue=[],this._isClosed=!1,this.waiters=[],e||(e={}),this.defaultTimeout=e.timeout,this.name=null!==(t=e.name)&&void 0!==t?t:"SequentialTaskQueue",this.scheduler=null!==(n=e.scheduler)&&void 0!==n?n:l.defaultScheduler}get isClosed(){return this._isClosed}push(e,t){if(this._isClosed)throw new Error(this.name+" has been previously closed");const n={callback:e,args:(null==t?void 0:t.args)?Array.isArray(t.args)?t.args.slice():[t.args]:[],timeout:void 0!==(null==t?void 0:t.timeout)?t.timeout:this.defaultTimeout,cancellationToken:{cancel:e=>this.cancelTask(n,e)},resolve:void 0,reject:void 0};n.args.push(n.cancellationToken),this.queue.push(n),this.scheduler.schedule(()=>this.next());const i=new Promise((e,t)=>{n.resolve=e,n.reject=t});return i.cancel=e=>n.cancellationToken.cancel(e),i}cancel(){this.currentTask&&this.cancelTask(this.currentTask,r.cancel);const e=this.queue.splice(0);return e.length&&(e.forEach(e=>this.cancelTask(e,r.cancel)),this.emit(a)),this.wait()}indexOf(e){var t;if((null===(t=this.currentTask)||void 0===t?void 0:t.callback)===e)return 0;const n=this.queue.filter(e=>{var t;return!(null===(t=e.cancellationToken)||void 0===t?void 0:t.cancelled)}).findIndex(t=>t.callback===e);return n<0?n:n+(void 0!==this.currentTask?1:0)}close(e){return!this._isClosed&&(this._isClosed=!0,e)?this.cancel():this.wait()}async wait(){return this.currentTask||0!==this.queue.length?new Promise(e=>{this.waiters.push(e)}):Promise.resolve()}on(e,t){var n;this.events=null!==(n=this.events)&&void 0!==n?n:{},(this.events[e]||(this.events[e]=[])).push(t)}once(e,t){const n=(...i)=>{this.removeListener(e,n),t.apply(this,i)};this.on(e,n)}removeListener(e,t){if(this.events){const n=this.events[e];if(n){let e=0;for(;ee.apply(this,t))}catch(t){console.error(`${this.name}: Exception in '${e}' event handler`,t)}}next(){if(!this.currentTask){let t=this.queue.shift();for(;null==t?void 0:t.cancellationToken.cancelled;)t=this.queue.shift();if(t)try{this.currentTask=t,t.timeout&&(t.timeoutHandle=setTimeout(()=>{this.emit(s),this.cancelTask(t,r.timeout)},t.timeout));const n=t.callback.apply(void 0,t.args);n&&((e=n)&&"function"==typeof e.then)?n.then(e=>{t.result=e,this.doneTask(t)},e=>{this.doneTask(t,e)}):(t.result=n,this.doneTask(t))}catch(e){this.doneTask(t,e)}else this.callWaiters()}var e}cancelTask(e,t){e.cancellationToken.cancelled=!0,e.cancellationToken.reason=t,this.doneTask(e)}doneTask(e,t){e.timeoutHandle&&clearTimeout(e.timeoutHandle),e.cancellationToken.cancel=o,t?(this.emit(u,t),e.reject.call(void 0,t)):e.cancellationToken.cancelled?e.reject.call(void 0,e.cancellationToken.reason):e.resolve.call(void 0,e.result),this.currentTask===e&&(this.currentTask=void 0,this.queue.length?this.scheduler.schedule(()=>this.next()):(this.emit(a),this.callWaiters()))}callWaiters(){this.waiters.splice(0).forEach(e=>e())}}l.defaultScheduler={schedule:e=>setTimeout(()=>e(),0)},l.defaultScheduler={schedule:"function"==typeof e?t=>e(()=>t()):e=>setTimeout(()=>e(),0)};const d="TASK_CANCELLED",c={id:"default-order-form",items:[],value:-1,totalizers:[],marketingData:{},canEditData:!1,loggedIn:!1,paymentData:{isValid:!1,installmentOptions:[],paymentSystems:[],payments:[],availableAccounts:[]},messages:{couponMessages:[],generalMessages:[]},shipping:{isValid:!1,deliveryOptions:[],pickupOptions:[]}};Object(i.createContext)(void 0);var m,f,v,h,p;p=!("undefined"==typeof window||!window.document||!window.document.createElement)&&(null===(h=null===(v=null===(f=null===(m=window)||void 0===m?void 0:m.__RUNTIME__)||void 0===f?void 0:f.settings)||void 0===v?void 0:v["vtex.store"])||void 0===h?void 0:h.enableOrderFormOptimization),Object(i.createContext)({orderForm:c,setOrderForm:()=>{},error:void 0,loading:!1})}).call(this,n(15).setImmediate)},,,function(e,t,n){var i="undefined"!=typeof global&&global||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(r.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(r.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(16),t.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof global&&global.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof global&&global.clearImmediate||this&&this.clearImmediate},function(e,t,n){(function(e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,a,u,s,o=1,l={},d=!1,c=t.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(t);m=m&&m.setTimeout?m:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){v(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){v(e.data)},i=function(e){a.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,i=function(e){var t=c.createElement("script");t.onreadystatechange=function(){v(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(v,0,e)}:(u="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(u)&&v(+e.data.slice(u.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(u+e,"*")}),m.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;nt.length)&&(n=t.length);for(var e=0,r=new Array(n);e0&&"not-empty"===c||"always"===c;return o.a.createElement(_.a,{icon:o.a.createElement("span",{className:"".concat(v.minicartIconContainer," gray relative")},o.a.createElement(i,null),g&&o.a.createElement("span",{style:{userSelect:"none"},className:"".concat(v.minicartQuantityBadge," ").concat(C.a.minicartQuantityBadgeDefault," c-on-emphasis absolute t-mini bg-emphasis br4 w1 h1 pa1 flex justify-center items-center lh-solid")},N)),variation:"tertiary",onMouseEnter:"hover"===E?function(){return h({type:"OPEN_MINICART"})}:void 0,onClick:function(){if(O)return"popupWithLink"===u&&P(w),"hover"===E?void h({type:"SET_OPEN_BEHAVIOR",value:"click"}):(h({type:"CLOSE_MINICART"}),void h({type:"SET_OPEN_BEHAVIOR",value:"hover"}));h({type:x?"CLOSE_MINICART":"OPEN_MINICART"})}})},P=function(e){var t=e.children,n=e.quantityDisplay,a=e.Icon,i=e.itemCountMode,r=e.customPixelEventId,c=e.customPixelEventName,u=e.variation,l=Object(I.useMinicartState)(),s=l.open,d=l.openBehavior,p=l.hasBeenOpened,m=l.openOnHoverProp,f=Object(I.useMinicartDispatch)(),E=y().handles;x()({eventId:r,eventName:c,handler:function(){f({type:"OPEN_MINICART"})}});return o.a.createElement("div",{onMouseLeave:"hover"===d?function(){f({type:"CLOSE_MINICART"})}:void 0},o.a.createElement(w,{variation:u,Icon:a,itemCountMode:i,quantityDisplay:n}),s&&o.a.createElement(v.a,null,"click"===d&&o.a.createElement("div",{className:"fixed top-0 left-0 w-100 h-100",onClick:function(){m&&f({type:"SET_OPEN_BEHAVIOR",value:"hover"}),f({type:"CLOSE_MINICART"})}}),o.a.createElement("div",{className:"".concat(E.popupWrapper," ").concat(C.a.popupBoxPosition," absolute z-max flex flex-column")},o.a.createElement("div",{className:"".concat(E.popupContentContainer," w-100 shadow-3 bg-base")},o.a.createElement("div",{className:"".concat(E.arrowUp," ").concat(C.a.popupArrowUp," absolute top-0 bg-base h1 w1 pa4 rotate-45")}),o.a.createElement("div",{className:"".concat(E.popupChildrenContainer," mt3 bg-base relative flex flex-column ph5 pv3")},p&&t)))))},g=n(56),R=n.n(g),j=function(e){var t=e.Icon,n=e.children,a=e.maxDrawerWidth,i=e.quantityDisplay,r=e.itemCountMode,c=e.drawerSlideDirection,u=e.backdropMode,l=void 0===u?"visible":u,s=e.customPixelEventId,d=e.customPixelEventName,p=e.onVisibilityChanged,m=y().handles;return o.a.createElement(R.a,{maxWidth:a,backdropMode:l,slideDirection:c,customPixelEventId:s,customPixelEventName:d,onVisibilityChanged:p,customIcon:o.a.createElement(w,{Icon:t,itemCountMode:r,quantityDisplay:i})},o.a.createElement("div",{className:"".concat(m.minicartSideBarContentWrapper," flex flex-column w-100 h-100"),style:{height:window.innerHeight-58}},n))},D=n(33),S=n(34),k=[].concat(Object(i.a)(["popupWrapper","popupContentContainer","arrowUp","popupChildrenContainer"]),Object(i.a)(["minicartSideBarContentWrapper"]),Object(i.a)(["minicartIconContainer","minicartQuantityBadge"]),["minicartWrapperContainer","minicartContainer"]),T=function(e){var t=e.children,n=e.backdropMode,i=e.linkVariationUrl,c=e.maxDrawerWidth,d=void 0===c?400:c,m=e.MinicartIcon,v=void 0===m?u.a:m,f=e.quantityDisplay,x=void 0===f?"not-empty":f,E=e.itemCountMode,_=void 0===E?"distinct":E,O=e.drawerSlideDirection,C=void 0===O?"rightToLeft":O,h=e.customPixelEventId,b=e.customPixelEventName,y=e.classes,M=p()(k,{classes:y}),g=M.handles,R=M.withModifiers,D=Object(l.useOrderForm)().orderForm,T=Object(I.useMinicartState)(),B=T.variation,U=T.open,A=Object(r.useState)(null!=U&&U),H=Object(a.a)(A,2),W=H[0],q=H[1],L=Object(s.useCheckoutURL)().url,V=Object(r.useCallback)((function(e){q(e)}),[q]);return Object(S.a)("drawer"===B?W:U,null==D?void 0:D.items),"link"===B?o.a.createElement("aside",{className:"".concat(g.minicartWrapperContainer," relative fr flex items-center")},o.a.createElement("div",{className:"".concat(g.minicartContainer," flex flex-column")},o.a.createElement("a",{href:null!=i?i:L},o.a.createElement(N,{handles:g,withModifiers:R},o.a.createElement(w,{variation:B,Icon:v,itemCountMode:_,quantityDisplay:x}))))):"block"===B?o.a.createElement("aside",{className:"".concat(g.minicartWrapperContainer," relative fr flex items-center")},o.a.createElement("div",{className:"".concat(g.minicartContainer," flex flex-column")},t)):o.a.createElement("aside",{className:"".concat(g.minicartWrapperContainer," relative fr flex items-center")},o.a.createElement("div",{className:"".concat(g.minicartContainer," flex flex-column")},o.a.createElement(N,{handles:g,withModifiers:R},"drawer"===B?o.a.createElement(j,{Icon:v,backdropMode:n,itemCountMode:_,maxDrawerWidth:d,quantityDisplay:x,drawerSlideDirection:C,customPixelEventId:h,customPixelEventName:b,onVisibilityChanged:V},t):o.a.createElement(P,{Icon:v,itemCountMode:_,quantityDisplay:x,customPixelEventId:h,customPixelEventName:b,variation:B},t))))},B=function(){var e=Object(l.useOrderForm)(),t=e.orderForm,n=!e.loading&&t?t.id:void 0;return Object(D.a)(n),null};t.default=function(e){return o.a.createElement(I.MinicartContextProvider,{variation:e.variation,openOnHover:e.openOnHover},o.a.createElement(B,null),o.a.createElement(T,e))}},12:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixel"]},14:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},15:function(e,t,n){"use strict";n.r(t),n.d(t,"MinicartStateContext",(function(){return u})),n.d(t,"MinicartContextProvider",(function(){return p})),n.d(t,"useMinicartDispatch",(function(){return v})),n.d(t,"useMinicartState",(function(){return m}));var a=n(13),i=n(0),r=n.n(i),o=n(21),c=n.n(o),u=Object(i.createContext)(void 0),l=Object(i.createContext)(void 0);function s(e,t){switch(t.type){case"OPEN_MINICART":return Object.assign(Object.assign({},e),{open:!0,hasBeenOpened:!0});case"CLOSE_MINICART":return Object.assign(Object.assign({},e),{open:!1});case"SET_OPEN_BEHAVIOR":return Object.assign(Object.assign({},e),{openBehavior:t.value});default:return e}}var d=function(e){return"popup"===e||"popupWithLink"===e},p=function(e){var t=e.variation,n=void 0===t?"drawer":t,o=e.openOnHover,p=void 0!==o&&o,m=e.children,v=c()().isMobile,f=d(n)&&(v||window&&window.innerWidth<=480)?"drawer":n,x=Object(i.useReducer)(s,{variation:f,open:!1,hasBeenOpened:!1,openOnHoverProp:p,openBehavior:d(f)&&p?"hover":"click"}),E=Object(a.a)(x,2),_=E[0],O=E[1];return r.a.createElement(u.Provider,{value:_},r.a.createElement(l.Provider,{value:O},m))};function m(){var e=Object(i.useContext)(u);if(void 0===e)throw new Error("useMinicartState must be used within a MinicartContextProvider");return e}function v(){var e=Object(i.useContext)(l);if(void 0===e)throw new Error("useMinicartDispatch must be used within a MinicartContextProvider");return e}},19:function(e,t,n){e.exports={drawerStyles:"vtex-minicart-2-x-drawerStyles",popupStyles:"vtex-minicart-2-x-popupStyles",minicartEmptyStateContainerDefault:"vtex-minicart-2-x-minicartEmptyStateContainerDefault",minicartQuantityBadgeDefault:"vtex-minicart-2-x-minicartQuantityBadgeDefault",popupBoxPosition:"vtex-minicart-2-x-popupBoxPosition",popupArrowUp:"vtex-minicart-2-x-popupArrowUp"}},21:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},22:function(e,t){function n(e,t,n){var a,i,r,o,c;function u(){var l=Date.now()-o;l=0?a=setTimeout(u,t-l):(a=null,n||(c=e.apply(r,i),r=i=null))}null==t&&(t=100);var l=function(){r=this,i=arguments,o=Date.now();var l=n&&!a;return a||(a=setTimeout(u,t)),l&&(c=e.apply(r,i),r=i=null),c};return l.clear=function(){a&&(clearTimeout(a),a=null)},l.flush=function(){a&&(c=e.apply(r,i),r=i=null,clearTimeout(a),a=null)},l}n.debounce=n,e.exports=n},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(6),i=n(3);function r(){var e=Object(a.useCheckoutURL)(),t=e.url,n=e.major,r=Object(i.useRuntime)(),o=r.navigate,c=r.rootPath,u=void 0===c?"":c;return function(e){n>0&&e===t?o({to:e}):window.location.href="".concat(u).concat(e)}}},26:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconCart"]},27:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-portal@0.x/Overlay"]},28:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ButtonWithIcon"]},3:function(e,t){e.exports=__RENDER_8_RUNTIME__},33:function(e,t,n){"use strict";var a=n(0),i=n(12),r=n.n(i);t.a=function(e){var t=r()().push;Object(a.useEffect)((function(){e&&t({event:"cartId",cartId:e})}),[t,e])}},34:function(e,t,n){"use strict";var a=n(0),i=n(12),r=n.n(i),o=n(22),c=n(8);t.a=function(e,t){var n=r()().push,i=Object(c.c)(t),u=Object(a.useCallback)(Object(o.debounce)((function(e){n({event:"viewCart",items:e})}),1e3),[n]);Object(a.useEffect)((function(){e&&u(i)}),[u,e,i])}},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},54:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixelEventCallback"]},55:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/createCssHandlesContext"]},56:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-drawer@0.x/Drawer"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.checkout-resources@0.x/Utils"]},77:function(e,t,n){"use strict";n.r(t),function(e){var t=n(4);n.p=Object(t.getPublicPath)("vtex.minicart@2.68.0");var a=Object(t.register)((function(){return n(103)}),e,"vtex.minicart@2.68.0","vtex.minicart@2.x","Minicart");a.renderHotReload,a.setupHMR}.call(this,n(20)(e))},8:function(e,t,n){"use strict";function a(e){var t;return{skuId:e.id,variant:e.skuName,price:e.sellingPrice,priceIsInt:!0,name:o(e),quantity:e.quantity,productId:e.productId,productRefId:e.productRefId,brand:e.additionalInfo?e.additionalInfo.brandName:"",category:c(e),detailUrl:e.detailUrl,imageUrl:e.imageUrls?r(e.imageUrls.at3x):null!==(t=e.imageUrl)&&void 0!==t?t:"",referenceId:e.refId}}function i(e){var t=e.category?e.category.slice(1,-1):"";return{skuId:e.id,variant:e.skuName,price:e.sellingPrice,priceIsInt:!0,name:e.name,quantity:e.quantity,productId:e.productId,productRefId:e.productRefId,brand:e.brand,category:t,detailUrl:e.detailUrl,imageUrl:e.imageUrl,referenceId:e.refId}}function r(e){return e&&0!==e.indexOf("http")?"https:".concat(e):e}function o(e){if((null==e?void 0:e.name)&&!e.name.includes(e.skuName)||e.name===e.skuName)return e.name;var t=1+e.skuName.length;return e.name.slice(0,e.name.length-t)}function c(e){try{return e.productCategoryIds.split("/").filter((function(e){return e.length})).map((function(t){return e.productCategories[t]})).join("/")}catch(e){return""}}function u(e){return e&&e.length?e.map((function(e){return a(e)})):[]}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return u}))}},[[77,"common"]]]);;
!function(t){function n(n){for(var r,u,c=n[0],a=n[1],f=n[2],s=0,p=[];s=0||(o[e]=t[e]);return o}e.d(n,"a",(function(){return r}))},48:function(t,n,e){t.exports=e(89)},5:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",(function(){return r}))},57:function(t,n,e){"use strict";function r(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(n,"a",(function(){return r}))},59:function(t,n,e){"use strict";function r(t,n,e,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void e(t)}c.done?n(a):Promise.resolve(a).then(r,o)}function o(t){return function(){var n=this,e=arguments;return new Promise((function(o,i){var u=t.apply(n,e);function c(t){r(u,o,i,c,a,"next",t)}function a(t){r(u,o,i,c,a,"throw",t)}c(void 0)}))}}e.d(n,"a",(function(){return o}))},71:function(t,n,e){"use strict";function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e