(window.webpackJsonp=window.webpackJsonp||[]).push([[106,99],{0:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function a(){var e,t=navigator,n=t.userAgent;return n.match(/chrome|chromium|crios/i)?e="chrome":n.match(/firefox|fxios/i)?e="firefox":n.match(/safari/i)?e="safari":n.match(/opr\//i)?e="opera":n.match(/edg/i)&&(e="edge"),e}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/support/",n=new URL(window.location.href).pathname,r=n.split(t)[0];return r?"".concat(r).concat(e):e}function l(e,t,n){var r=e.hasAttribute("disabled"),i=JSON.stringify(t)!==JSON.stringify(n);i?r&&e.removeAttribute("disabled"):!r&&e.setAttribute("disabled",!0)}n.d(t,"h",function(){return o}),n.d(t,"d",function(){return v}),n.d(t,"o",function(){return m}),n.d(t,"u",function(){return b}),n.d(t,"q",function(){return y}),n.d(t,"H",function(){return C}),n.d(t,"F",function(){return w}),n.d(t,"s",function(){return E}),n.d(t,"D",function(){return k}),n.d(t,"C",function(){return _}),n.d(t,"b",function(){return S}),n.d(t,"j",function(){return L}),n.d(t,"f",function(){return x}),n.d(t,"J",function(){return T}),n.d(t,"y",function(){return A}),n.d(t,"n",function(){return O}),n.d(t,"v",function(){return M}),n.d(t,"A",function(){return g}),n.d(t,"l",function(){return D}),n.d(t,"E",function(){return N}),n.d(t,"z",function(){return I}),n.d(t,"m",function(){return R}),n.d(t,"e",function(){return P}),n.d(t,"k",function(){return B}),n.d(t,"i",function(){return j}),n.d(t,"c",function(){return H}),n.d(t,"x",function(){return $}),n.d(t,"g",function(){return z}),n.d(t,"I",function(){return F}),n.d(t,"G",function(){return l}),n.d(t,"p",function(){return V}),n.d(t,"r",function(){return q}),n.d(t,"B",function(){return U}),n.d(t,"a",function(){return a}),n.d(t,"w",function(){return s}),n.d(t,"t",function(){return K});var c=n(1),u=n.n(c),d=n(8),f=n.n(d),p=n(16),h=n(3),g=function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML.replace(/"/g,"&quot;")},m=function(){return window.localStorage.getItem("recentSearches")?JSON.parse(window.localStorage.getItem("recentSearches")):[]},v=function(){localStorage.setItem("recentSearches","")},b=function(){var e=document.querySelector(".fw-recent-searches"),t=m();e.innerHTML=t.map(function(e){return'<li><a class="ps-32 line-clamp-2" href="/support/search?term='.concat(e,'">').concat(g(e),"</a></li>")}).join("")},y=function(e,t){return e&&e.classList.contains(t)},C=function(e){var t=[].concat(e);t.forEach(function(e){e&&e.classList.toggle("d-none")})},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"primary",n=[].concat(e);n.forEach(function(e){y(e,"btn-".concat(t))?e.classList.replace("btn-".concat(t),"btn-outline-".concat(t)):e.classList.replace("btn-outline-".concat(t),"btn-".concat(t))})},E=function(e){var t=[].concat(e);t.forEach(function(e){e&&!e.classList.contains("d-none")&&e.classList.add("d-none")})},k=function(e){var t=[].concat(e);t.forEach(function(e){e&&e.classList.contains("d-none")&&e.classList.remove("d-none")})},_=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})},S=function(e){var t=document.createElement("input");_(t,{type:"hidden",name:"authenticity_token",value:window.csrfToken}),e.appendChild(t)},L=function(e,t){return fetch(e,i(i({},t),{},{headers:{"X-CSRF-Token":window.csrfToken}}))},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;r>o;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout(function(){e.apply(void 0,i)},t)}},T=function(e,t){e&&e.addEventListener("change",function(e){var t={};t[e.target.id]=e.target.value,Object(h.d)(e.target,Object(h.a)(e.target),t)}),t&&EventManager.on("click",t,function(){return e.dataset.formChanged=!1,Object(h.c)(e,Object(h.b)(e))?Promise.resolve():Promise.reject()})},A=function(e){[].concat(u()(e.querySelectorAll(".form-group .form-control")),u()(e.querySelectorAll(".form-group .form-check-input"))).forEach(function(e){y(e,"invalid")&&(e.classList.remove("invalid"),"checkbox"===e.type?(e.nextElementSibling.nextElementSibling.classList.remove("d-block"),e.nextElementSibling.nextElementSibling.classList.add("d-none")):(e.nextElementSibling.classList.remove("d-block"),e.nextElementSibling.classList.add("d-none")))})},O=function(e){return e.charCode?e.charCode:e.keyCode?e.keyCode:e.which?e.which:0},M=function(e){var t=O(e);return t>=48&&57>=t||t>=65&&90>=t||t>=96&&105>=t||8===t||32===t?!0:!1},N=function(e,t){return sessionStorage.setItem(e,JSON.stringify(t))},D=function(e){return sessionStorage.getItem(e)?JSON.parse(sessionStorage.getItem(e)):void 0},I=function(e){return sessionStorage.removeItem(e)},R=function(e){var t=["Bytes","KB","MB","GB","TB"];if(!e)return"0 Byte";var n=parseInt(Math.floor(Math.log(e)/Math.log(1024)));return"".concat(Math.round(e/Math.pow(1024,n),2)," ").concat(t[n])},P=function(e){return e.replace(/[A-Z]/g,function(e,t){return(0!==t?"-":"")+e.toLowerCase()})},B=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e&&e.tagName!==t.toUpperCase();){if(n&&e.tagName===n)return null;e=e.parentElement}return e},j={email:{presence:!0,email:!0}},H=50,$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={},n=new URLSearchParams(document.location.search);return n.forEach(function(n,r){var i=decodeURIComponent(n);e.includes(r)||(r in t?t[r].push(i):t[r]=[i])}),t},z=function(e){return JSON.parse(JSON.stringify(e))},F=function(e){if(window.history.replaceState){var t="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname,"?").concat(e);window.history.replaceState({path:t},"",t)}},V=function(e){return"choicesInstance"in e},q=function(e){return"_flatpickr"in e},U=function(e){return e.offsetHeight+e.scrollTop>=e.scrollHeight},K=function(e){var t={altInput:!0,altInputClass:"form-control alt-flatpickr-input",altFormat:"j M, Y",dateFormat:"Y-m-d"};e.querySelectorAll('input[type="date"]').forEach(function(e){Object(p.a)(e,t)})}},146:function(e,t,n){"use strict";function r(e){return i.apply(this,arguments)}function i(){return i=a()(l.a.mark(function e(t){var n,r,i;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),n=d.value,r=!0,!u||"true"!==n){e.next=7;break}return u.contentWindow.recaptchaV3(),e.next=7,new Promise(function(e){return setTimeout(e,700)});case 7:if(v(),i=document.querySelector("#g-recaptcha-response"),u&&(!i||i.value&&!i.value.length)&&(m(),r=!1),r){e.next=14;break}return e.abrupt("return",h?Promise.reject():t.stopImmediatePropagation());case 14:return e.abrupt("return",h?Promise.resolve():p.requestSubmit());case 15:case"end":return e.stop()}},e)})),i.apply(this,arguments)}n.r(t);var o=n(19),a=n.n(o),s=n(5),l=n.n(s),c=n(0),u=document.getElementById("recaptcha-frame"),d=document.getElementById("enterprise_enabled"),f=document.querySelector("#helpdesk_ticket_captcha-error"),p=d?d.form:null,h=window.EventManager?!0:!1,g=h?"d-none":"hide",m=function(){f.classList.remove(g)},v=function(){f.classList.add(g)};p&&(v(),h?Object(c.h)(function(){EventManager.on("submit",p,r)}):(u.onload=function(){console.log("recaptchaFrame loading"),captchaModule(u)},u.contentDocument&&"complete"==u.contentDocument.readyState&&(console.log("recaptchaFrame loaded completely"),captchaModule(u)),jQuery("[type=submit]",p).click(r)))},254:function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(l)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);t>n;n++)r[n]=e[n];return r}function a(e){var t=s();return function(){var n,r=F()(e);if(t){var i=F()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $()(this,n)}}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function l(e){var t=c();return function(){var n,r=F()(e);if(t){var i=F()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $()(this,n)}}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);t>n;n++)r[n]=e[n];return r}function p(e){var t=Le.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},Le.set(e.type,t));var n=t.stringsArray.get(e.strings);if(void 0!==n)return n;var r=e.strings.join(ee);return n=t.keyString.get(r),void 0===n&&(n=new ie(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}function h(){var e=document.querySelector(".fw-nav-wrapper"),t=e?e.offsetHeight:0,n=document.querySelector(".fw-searchbar-wrapper"),r=n?n.offsetHeight:0;return t+r}function g(e){var t;try{t=decodeURIComponent(e).replace("#","")}catch(n){t=e.replace("#","")}if(t){var r=document.getElementById(t).getBoundingClientRect().top-document.body.getBoundingClientRect().top-h();window.location.hash=e,window.scrollTo({behavior:"smooth",top:r})}}function m(){var e=document.querySelector(".fd-toc");if(e){var t=e.nextElementSibling.querySelectorAll("a");["click","keypress"].forEach(function(e){t.forEach(function(t){t.addEventListener(e,function(e){if(e.preventDefault(),Object(L.a)(e)===!0){var n=t.hash;g(n)}})})})}}function v(){var e=window.location.hash;g(e)}n.r(t);var b=n(19),y=n.n(b),C=n(2),w=n.n(C),E=n(5),k=n.n(E),_=n(10),S=n.n(_),L=(n(82),n(7)),x=n(0);n(146);Object(x.h)(function(){var e=document.querySelector(".fw-feedback-wrapper"),t=document.querySelector(".fw-feedback-negative-from"),n=document.querySelector(".fw-feedback-positive"),r=document.querySelector(".fw-feedback-negative"),i=document.querySelector(".fw-btn-feedback.fw-no"),o=document.querySelector(".fw-btn-feedback.fw-yes"),a=document.querySelector(".fw-feedback-cancel"),s=document.querySelector(".fw-feedback-send"),l=e&&e.dataset.id,c=function(e,t){e.classList.remove("invalid"),e.nextElementSibling.innerHTML="",e.nextElementSibling.classList.remove("d-block");var n={helpdesk_ticket_email:{presence:{message:window.I18n.translate("portal_validation.required"),allowEmpty:!1},email:{message:window.I18n.translate("portal_validation.email")}}},r=S()({helpdesk_ticket_email:e.value},n,{fullMessages:!1});if(r){t=!1;var i=w()(r[e.id],1),o=i[0];e.classList.add("invalid"),e.nextElementSibling.innerHTML=o,e.nextElementSibling.classList.add("d-block")}return t};if(e&&(window.store.user?Object(x.D)(e):!localStorage["vote_".concat(l,"_").concat(window.store.currentLocale)]&&Object(x.D)(e)),"article_view"===window.store.currentPageName){var u=Object(x.l)("seenArticlesArray"),d=window.location.href.split("/"),f=parseInt(d[d.length-1]).toString();if(u=u||[],u.indexOf(f)>=0){var p=u.indexOf(f);u.splice(p,1)}u.push(f),Object(x.E)("seenArticlesArray",u.slice().splice(-50))}["click","keypress"].forEach(function(r){e&&(i.addEventListener(r,function(r){Object(L.a)(r)===!0&&(Object(x.j)(this.dataset.href,{method:"PUT"}).then(function(){n.remove(),Object(x.H)([e,t])}),!window.store.user&&(localStorage["vote_".concat(l,"_").concat(window.store.currentLocale)]=!0))}),o.addEventListener(r,function(t){Object(L.a)(t)===!0&&(Object(x.j)(this.dataset.href,{method:"PUT"}).then(function(){Object(x.H)([e,n])}),!window.store.user&&(localStorage["vote_".concat(l,"_").concat(window.store.currentLocale)]=!0))}),a.addEventListener(r,function(e){Object(L.a)(e)===!0&&Object(x.H)(t)}))});var h=!0,g=document.querySelector("#helpdesk_ticket_email"),m=document.querySelector(".negative-form.invalid-feedback");m.classList.remove("d-block");var v=document.getElementById("negative-feedback-form"),b=document.getElementById("helpdesk_ticket_description");v.addEventListener("change",function(e){if(h=!0,g&&e.target===g)h=c(g,h);else if(e.target!==b){var t=null!==document.querySelector(".form-check-input:checked");h=t,m.classList.toggle("d-block",!t)}}),v&&EventManager.on("submit",v,function(){function e(e){return n.apply(this,arguments)}var n=y()(k.a.mark(function i(e){var n,o;return k.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(e.preventDefault(),Object(x.b)(v),g&&(h=c(g,h)),null==document.querySelector(".form-check-input:checked")&&(h=!1,m.classList.add("d-block")),!h){i.next=14;break}return s.setAttribute("disabled",!0),s.innerHTML=window.I18n.t("portal_js_translations.saving"),n=new FormData(v),o=v.action,i.next=11,Object(x.j)(o,{method:"POST",body:n}).then(function(){t.remove(),Object(x.H)(r)});case 11:return i.abrupt("return",Promise.reject());case 14:return i.abrupt("return",Promise.reject());case 15:case"end":return i.stop()}},i)}));return e}())});var T=n(36),A=n(93),O=n.n(A),M=n(4),N=n.n(M),D=n(6),I=n.n(D),R=n(32),P=n.n(R),B=n(11),j=n.n(B),H=n(29),$=n.n(H),z=n(14),F=n.n(z),V=n(22),q=n.n(V),U=new WeakMap,K=function(e){return"function"==typeof e&&U.has(e)},W="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,G=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t!==n;){var i=t.nextSibling;e.insertBefore(t,r),t=i}},Y=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t!==n;){var r=t.nextSibling;e.removeChild(t),t=r}},Z={},X={},J=n(1),Q=n.n(J),ee="{{lit-".concat(String(Math.random()).slice(2),"}}"),te="<!--".concat(ee,"-->"),ne=new RegExp("".concat(ee,"|").concat(te)),re="$lit$",ie=function Ge(e,t){N()(this,Ge),this.parts=[],this.element=t;for(var n=[],r=[],i=document.createTreeWalker(t.content,133,null,!1),o=0,a=-1,s=0,l=e.strings,c=e.values.length;c>s;){var u=i.nextNode();if(null!==u){if(a++,1===u.nodeType){if(u.hasAttributes()){for(var d=u.attributes,f=d.length,p=0,h=0;f>h;h++)oe(d[h].name,re)&&p++;for(;p-->0;){var g=l[s],m=le.exec(g)[2],v=m.toLowerCase()+re,b=u.getAttribute(v);u.removeAttribute(v);var y=b.split(ne);this.parts.push({type:"attribute",index:a,name:m,strings:y}),s+=y.length-1}}"TEMPLATE"===u.tagName&&(r.push(u),i.currentNode=u.content)}else if(3===u.nodeType){var C=u.data;if(C.indexOf(ee)>=0){for(var w=u.parentNode,E=C.split(ne),k=E.length-1,_=0;k>_;_++){var S=void 0,L=E[_];if(""===L)S=se();else{var x=le.exec(L);null!==x&&oe(x[2],re)&&(L=L.slice(0,x.index)+x[1]+x[2].slice(0,-re.length)+x[3]),S=document.createTextNode(L)}w.insertBefore(S,u),this.parts.push({type:"node",index:++a})}""===E[k]?(w.insertBefore(se(),u),n.push(u)):u.data=E[k],s+=k}}else if(8===u.nodeType)if(u.data===ee){var T=u.parentNode;(null===u.previousSibling||a===o)&&(a++,T.insertBefore(se(),u)),o=a,this.parts.push({type:"node",index:a}),null===u.nextSibling?u.data="":(n.push(u),a--),s++}else for(var A=-1;-1!==(A=u.data.indexOf(ee,A+1));)this.parts.push({type:"node",index:-1}),s++}else i.currentNode=r.pop()}for(var O=0,M=n;O<M.length;O++){var D=M[O];D.parentNode.removeChild(D)}},oe=function(e,t){var n=e.length-t.length;return n>=0&&e.slice(n)===t},ae=function(e){return-1!==e.index},se=function(){return document.createComment("")},le=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ce=function(){function e(t,n,r){N()(this,e),this.__parts=[],this.template=t,this.processor=n,this.options=r}return I()(e,[{key:"update",value:function(e){var t,n=0,i=r(this.__parts);try{for(i.s();!(t=i.n()).done;){var o=t.value;void 0!==o&&o.setValue(e[n]),n++}}catch(a){i.e(a)}finally{i.f()}var s,l=r(this.__parts);try{for(l.s();!(s=l.n()).done;){var c=s.value;void 0!==c&&c.commit()}}catch(a){l.e(a)}finally{l.f()}}},{key:"_clone",value:function(){for(var e,t=W?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,i=document.createTreeWalker(t,133,null,!1),o=0,a=0,s=i.nextNode();o<r.length;)if(e=r[o],ae(e)){for(;a<e.index;)a++,"TEMPLATE"===s.nodeName&&(n.push(s),i.currentNode=s.content),null===(s=i.nextNode())&&(i.currentNode=n.pop(),s=i.nextNode());if("node"===e.type){var l=this.processor.handleTextExpression(this.options);l.insertAfterNode(s.previousSibling),this.__parts.push(l)}else{var c;(c=this.__parts).push.apply(c,Q()(this.processor.handleAttributeExpressions(s,e.name,e.strings,this.options)))}o++}else this.__parts.push(void 0),o++;return W&&(document.adoptNode(t),customElements.upgrade(t)),t}}]),e}(),ue=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:function(e){return e}}),de=" ".concat(ee," "),fe=function(){function e(t,n,r,i){N()(this,e),this.strings=t,this.values=n,this.type=r,this.processor=i}return I()(e,[{key:"getHTML",value:function(){for(var e=this.strings.length-1,t="",n=!1,r=0;e>r;r++){var i=this.strings[r],o=i.lastIndexOf("<!--");n=(o>-1||n)&&-1===i.indexOf("-->",o+1);var a=le.exec(i);t+=null===a?i+(n?de:te):i.substr(0,a.index)+a[1]+a[2]+re+a[3]+ee}return t+=this.strings[e]}},{key:"getTemplateElement",value:function(){var e=document.createElement("template"),t=this.getHTML();return void 0!==ue&&(t=ue.createHTML(t)),e.innerHTML=t,e}}]),e}(),pe=(function(e){function t(){return N()(this,t),n.apply(this,arguments)}j()(t,e);var n=a(t);return I()(t,[{key:"getHTML",value:function(){return"<svg>".concat(P()(F()(t.prototype),"getHTML",this).call(this),"</svg>")}},{key:"getTemplateElement",value:function(){var e=P()(F()(t.prototype),"getTemplateElement",this).call(this),n=e.content,r=n.firstChild;return n.removeChild(r),G(n,r.firstChild),e}}]),t}(fe),function(e){return null===e||!("object"===q()(e)||"function"==typeof e)}),he=function(e){return Array.isArray(e)||!(!e||!e[Symbol.iterator])},ge=function(){function e(t,n,r){N()(this,e),this.dirty=!0,this.element=t,this.name=n,this.strings=r,this.parts=[];for(var i=0;i<r.length-1;i++)this.parts[i]=this._createPart()}return I()(e,[{key:"_createPart",value:function(){return new me(this)}},{key:"_getValue",value:function(){var e=this.strings,t=e.length-1,n=this.parts;if(1===t&&""===e[0]&&""===e[1]){var r=n[0].value;if("symbol"===q()(r))return String(r);if("string"==typeof r||!he(r))return r}for(var i="",o=0;t>o;o++){i+=e[o];var a=n[o];if(void 0!==a){var s=a.value;if(pe(s)||!he(s))i+="string"==typeof s?s:String(s);else{var l,c=u(s);try{for(c.s();!(l=c.n()).done;){var d=l.value;i+="string"==typeof d?d:String(d)}}catch(f){c.e(f)}finally{c.f()}}}}return i+=e[t]}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}]),e}(),me=function(){function e(t){N()(this,e),this.value=void 0,this.committer=t}return I()(e,[{key:"setValue",value:function(e){e===Z||pe(e)&&e===this.value||(this.value=e,K(e)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;K(this.value);){var e=this.value;this.value=Z,e(this)}this.value!==Z&&this.committer.commit()}}]),e}(),ve=function(){function e(t){N()(this,e),this.value=void 0,this.__pendingValue=void 0,this.options=t}return I()(e,[{key:"appendInto",value:function(e){this.startNode=e.appendChild(se()),this.endNode=e.appendChild(se())}},{key:"insertAfterNode",value:function(e){this.startNode=e,this.endNode=e.nextSibling}},{key:"appendIntoPart",value:function(e){e.__insert(this.startNode=se()),e.__insert(this.endNode=se())}},{key:"insertAfterPart",value:function(e){e.__insert(this.startNode=se()),this.endNode=e.endNode,e.endNode=this.startNode}},{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){if(null!==this.startNode.parentNode){for(;K(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=Z,e(this)}var t=this.__pendingValue;t!==Z&&(pe(t)?t!==this.value&&this.__commitText(t):t instanceof fe?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):he(t)?this.__commitIterable(t):t===X?(this.value=X,this.clear()):this.__commitText(t))}}},{key:"__insert",value:function(e){this.endNode.parentNode.insertBefore(e,this.endNode)}},{key:"__commitNode",value:function(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}},{key:"__commitText",value:function(e){var t=this.startNode.nextSibling;e=null==e?"":e;var n="string"==typeof e?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}},{key:"__commitTemplateResult",value:function(e){var t=this.options.templateFactory(e);if(this.value instanceof ce&&this.value.template===t)this.value.update(e.values);else{var n=new ce(t,e.processor,this.options),r=n._clone();n.update(e.values),this.__commitNode(r),this.value=n}}},{key:"__commitIterable",value:function(t){Array.isArray(this.value)||(this.value=[],this.clear());var n,r,i=this.value,o=0,a=u(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;n=i[o],void 0===n&&(n=new e(this.options),i.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(i[o-1])),n.setValue(s),n.commit(),o++}}catch(l){a.e(l)}finally{a.f()}o<i.length&&(i.length=o,this.clear(n&&n.endNode))}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;Y(this.startNode.parentNode,e.nextSibling,this.endNode)}}]),e}(),be=function(){function e(t,n,r){if(N()(this,e),this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=n,this.strings=r}return I()(e,[{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;K(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=Z,e(this)}if(this.__pendingValue!==Z){var t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=Z}}}]),e}(),ye=function(e){function t(e,r,i){var o;return N()(this,t),o=n.call(this,e,r,i),o.single=2===i.length&&""===i[0]&&""===i[1],o}j()(t,e);var n=l(t);return I()(t,[{key:"_createPart",value:function(){return new Ce(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:P()(F()(t.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),t}(ge),Ce=function(e){function t(){return N()(this,t),n.apply(this,arguments)}j()(t,e);var n=l(t);return t}(me),we=!1;!function(){try{var e={get capture(){return we=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(t){}}();var Ee=function(){function e(t,n,r){var i=this;N()(this,e),this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=r,this.__boundHandleEvent=function(e){return i.handleEvent(e)}}return I()(e,[{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;K(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=Z,e(this)}if(this.__pendingValue!==Z){var t=this.__pendingValue,n=this.value,r=null==t||null!=n&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),i=null!=t&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=ke(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=Z}}},{key:"handleEvent",value:function(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}]),e}(),ke=function(e){return e&&(we?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)},_e=function(){function e(){N()(this,e)}return I()(e,[{key:"handleAttributeExpressions",value:function(e,t,n,r){var i=t[0];if("."===i){var o=new ye(e,t.slice(1),n);return o.parts}if("@"===i)return[new Ee(e,t.slice(1),r.eventContext)];if("?"===i)return[new be(e,t.slice(1),n)];var a=new ge(e,t,n);return a.parts}},{key:"handleTextExpression",value:function(e){return new ve(e)}}]),e}(),Se=new _e,Le=new Map,xe=new WeakMap,Te=function(e,t,n){var r=xe.get(t);void 0===r&&(Y(t,t.firstChild),xe.set(t,r=new ve(Object.assign({templateFactory:p},n))),r.appendInto(t)),r.setValue(e),r.commit()};"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");var Ae,Oe,Me,Ne,De,Ie,Re,Pe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];return new fe(e,n,"html",Se)},Be={baseUrl:"/api/_/email-bots",get filterUrl(){return"".concat(window.origin).concat(this.baseUrl,"/").concat(window.store.currentLocale,"/support/bot_responses/filter")},get updateUrl(){return"".concat(window.origin).concat(this.baseUrl,"/").concat(window.store.currentLocale,"/support/bot_responses/update_response")}},je=new URLSearchParams(document.location.search),He=je.get("query_id")||!1,$e=window.store.article.id,ze=function(e){var t=e.target,n="SPAN"!==t.tagName?t.dataset:t.parentElement.dataset,r=n.useful;fetch(Be.updateUrl,{method:"PUT",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:"useful=".concat(r,"&query_id=").concat(He,"&solution_id=").concat($e)}).then(function(e){return e.json()}).then(function(e){e.other_articles&&"false"===r?Te(Ke("suggestionsMsg",e.other_articles),Re):"false"===r?Te(Ke("failureMsg"),Re):Te(Ke("successMsg"),Re)})},Fe=Pe(Ae||(Ae=O()(['\n  <p class="semi-bold fs-20">','</h5>\n  <p class="fs-16">','</p>\n  <div class="mt-8 pt-8">\n    <button type="button" class="btn btn-default btn-sm fw-btn-yes" data-useful="true" @click=',"><span class='icon-strongly-agree me-4'></span> ",'</button>\n    <button type="button" class="btn btn-default btn-sm fw-btn-no" data-useful="false" @click=',"><span class='icon-strongly-disagree me-4'></span> ","</button>\n  </div>\n"])),window.I18n.t("portal_js_translations.email_bot.heading"),window.I18n.t("portal_js_translations.email_bot.sub_text"),ze,window.I18n.t("portal_js_translations.email_bot.cta_yes"),ze,window.I18n.t("portal_js_translations.email_bot.cta_no")),Ve=Pe(Oe||(Oe=O()(['\n  <div class="fw-success-msg text-center">\n    <span class="icon-strongly-agree fs-24"></span>\n    <p class="fs-16 semi-bold">',"</p>\n  </div>\n"])),window.I18n.t("portal_js_translations.email_bot.success_msg")),qe=Pe(Me||(Me=O()(['\n  <div class="fw-failure-msg text-center">\n    <span class="icon-strongly-disagree fs-24"></span>\n    <p class="fs-16 semi-bold">',"</p>\n  </div>\n"])),window.I18n.t("portal_js_translations.email_bot.failure_msg")),Ue=function(e){return Pe(Ne||(Ne=O()(['\n  <div class="fw-suggestion-msg">\n    <p class="fs-16 semi-bold mb-16">',"</p>\n    <ul>\n      ","\n    </ul>\n  </div>\n"])),window.I18n.t("portal_js_translations.email_bot.other_articles"),e.map(function(e){return Pe(De||(De=O()(['<li class="fs-16 mb-8"><a href="',"?query_id=",'">',"</a></li>"])),e.url,He,e.title)}))},Ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Pe(Ie||(Ie=O()(['\n<div class="position-fixed p-3 fw-bots-popup-wrapper" style="z-index: 11">\n  <div class="toast show" role="alert" aria-live="assertive" aria-atomic="true">\n    <div class="toast-body p-16">\n',"\n    </div>\n  </div>\n</div>\n"])),function(){var n=Fe;return"successMsg"===e?n=Ve:"failureMsg"===e?n=qe:"suggestionsMsg"===e&&(n=Ue(t)),n}())},We=function(){He&&fetch("".concat(Be.filterUrl,"?query_id=").concat(He,"&solution_id=").concat($e),{method:"GET"}).then(function(e){return e.json()}).then(function(e){if(!e.ticket_closed&&!e.positive_feedback){var t=document.createElement("div");t.id="bot-widget",Re=document.body.appendChild(t),!e.useful&&e.other_articles?Te(Ke("suggestionsMsg",e.other_articles),Re):void 0===e.useful&&Te(Ke("helpfulArticle"),Re)}})};Object(x.h)(We());n(77);window.addEventListener("load",function(){"firefox"!==Object(x.a)()&&v()}),Object(x.h)(function(){m(),Object(T.a)(".fw-content--single-article"),"firefox"===Object(x.a)()&&v()})},3:function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"a",function(){return f}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return h});var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(10),l=n.n(s),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t;switch(e.type){case"email":""!==e.value&&(n.email={message:window.I18n.translate("portal_validation.email")});break;case"url":""!==e.value&&(n.url={message:window.I18n.translate("portal_validation.url")});break;case"text":""!==e.value&&(e.dataset.decimal||e.dataset.number)&&(e.dataset.decimal&&(n.format={pattern:/^-?\d+(\.\d{0,2})?$/i,message:window.I18n.translate("portal_validation.decimal")}),e.dataset.number&&(n.format={pattern:/^-?\d+$/i,message:window.I18n.translate("portal_validation.number")}))}return n},u=function(e,t){if(e){var n=document.getElementById(e),r=document.querySelector(".invalid-feedback.".concat(e));n&&n.classList.add("invalid"),r&&(r.innerHTML=t,r.classList.add("d-block"))}},d=function(e){if(e){var t=document.getElementById(e),n=document.querySelector(".invalid-feedback.".concat(e));t&&t.classList.remove("invalid"),n&&(n.classList.remove("d-block"),n.innerHTML="")}},f=function(e){var t={},n=c(e);return Object.keys(n).length&&(t[e.id]=n),t},p=function(e){var t={};return[].concat(a()(e.querySelectorAll(":not(.d-none).form-group .form-control")),a()(e.querySelectorAll(":not(.d-none).form-check .form-check-input")),a()(e.querySelectorAll(".nested_field :not(.d-none).form-check .form-check-input"))).forEach(function(e){var n=c(e);e.required&&""!==e.id&&(n.presence={message:window.I18n.translate("portal_validation.required"),allowEmpty:!1}),Object.keys(n).length&&(t[e.id]=n)}),t},h=function(e,t,n){d(e.id);var r=l()(n,t,{fullMessages:!1});if(r){var o=i()(r[e.id],1),a=o[0];u(e.id,a)}},g=function(e,t){var n={};[].concat(a()(e.querySelectorAll(":not(.d-none).form-group .form-control")),a()(e.querySelectorAll(":not(.d-none).form-check .form-check-input")),a()(e.querySelectorAll(".nested_field :not(.d-none).form-check .form-check-input"))).forEach(function(e){d(e.id),"checkbox"===e.type?n[e.id]=e.checked?"true":"":"textarea"===e.type&&e.classList.contains("rich-editor")?n[e.id]=e.previousElementSibling.querySelector(".fr-element").innerText:n[e.id]=e.value;
});var r=l()(n,t,{fullMessages:!1});return r?(e.dataset.errors=!0,Object.entries(r).forEach(function(e){var t=i()(e,2),n=t[0],r=t[1],o=i()(r,1),a=o[0];u(n,a)}),document.querySelector(".invalid").focus(),!1):(e.dataset.errors=!1,!0)}},36:function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=0,r=t.length>0?"".concat(e," img").concat(t.join(", ".concat(e," img"))):"".concat(e," img"),o=document.querySelectorAll(r),a=document.querySelector(".fw-lightbox-actions"),s=a.querySelector(".fw-prev"),l=a.querySelector(".fw-next"),c=a.querySelector(".fw-download"),u=document.querySelector(".fw-lightbox-gallery"),d=new i.b(u),f=u.querySelector("#fw-lightbox-preview"),p=u.querySelector(".fw-loading"),h=a.querySelector("#fw-ligthbox-count"),g=[],m=0,v=function(){p.classList.add("d-none"),f.classList.remove("d-none")},b=function(){p.classList.remove("d-none"),f.classList.add("d-none")},y=function(){h.innerHTML="".concat(m+1," ").concat(window.I18n.translate("portal_js_translations.lightbox.of")," ").concat(g.length)},C=function(){b(),f.setAttribute("src",g[m].src),f.setAttribute("alt",g[m].alt),f.complete?v():f.addEventListener("load",v),g[m].id?(c.setAttribute("href","/helpdesk/attachments/".concat(g[m].id,"?download=true")),c.classList.remove("d-none")):c.classList.add("d-none"),y()};o.forEach(function(e){var t=e.parentElement;"A"===t.nodeName||t.classList.contains("fw-attachment-type")||(e.dataset.index=n,e.classList.add("fw-lightbox-img"),g.push({src:e.src,id:e.dataset.id||e.dataset.attachment_id||e.dataset.fileid,alt:e.alt}),e.addEventListener("click",function(e){e.preventDefault(),m=parseInt(e.currentTarget.dataset.index),C(),d.show()}),n++)}),s.addEventListener("click",function(e){e.preventDefault(),m>0&&(m-=1,C())}),l.addEventListener("click",function(e){e.preventDefault(),m<g.length-1&&(m+=1,C())})}var i=n(26);t.a=r},7:function(e,t,n){"use strict";function r(e){var t;if("click"===e.type)t=!0;else if("keypress"===e.type){var n=e.charCode||e.keyCode;(32===n||13===n)&&(t=!0)}else t=!1;return t}t.a=r},77:function(e,t){var n=function(e,t){function n(n){var r=n.data;switch(r.type){case"token":if(t)t(r.token);else{var a="g-recaptcha-response",s=document.getElementById(a);if(!s){var l=jQuery("#recaptcha-frame").closest("form");s=document.createElement("input"),s.type="hidden",s.name=a,s.id=a,l.append(s)}s.value=r.token}break;case"expand":if(e.height=i.expand.height,e.width=i.expand.width,e.scrollIntoView(),r.recaptchaFixEnabled){var c=document.querySelector(".recaptcha-frame").contentWindow,u=c.document.querySelector("div:last-child div:last-child");u&&(u.style.height=o)}break;case"minimize":e.height=i.minimize.height,e.width=i.minimize.width}}var r={};r.channel=new MessageChannel,r.channel.port1.onmessage=n,e.contentWindow.postMessage("init",window.location.origin,[r.channel.port2]),"MutationObserver"in window||(e.style.resize="both");var i={minimize:{height:"100px",width:"320px"},expand:{height:"500px",width:"350px"}},o="490px"};window.onload=function(){var e=document.getElementById("recaptcha-frame");return e&&"false"!==e.dataset.selfinvoke?void n(e):!0}},82:function(e,t,n){"use strict";var r=n(84),i=n.n(r),o=n(111),a=(n.n(o),n(112)),s=(n.n(a),n(113)),l=(n.n(s),n(114)),c=(n.n(l),n(115)),u=(n.n(c),n(116)),d=(n.n(u),n(117)),f=(n.n(d),n(118)),p=(n.n(f),n(119)),h=(n.n(p),n(120)),g=(n.n(h),n(121)),m=(n.n(g),n(122)),v=(n.n(m),n(123)),b=(n.n(v),n(124)),y=(n.n(b),n(125)),C=(n.n(y),n(126)),w=(n.n(C),n(127)),E=(n.n(w),n(128)),k=(n.n(E),n(129)),_=(n.n(k),n(130)),S=(n.n(_),n(131)),L=(n.n(S),n(132)),x=(n.n(L),n(133)),T=(n.n(x),n(134)),A=(n.n(T),n(135)),O=(n.n(A),n(136)),M=(n.n(O),n(0));Object(M.h)(function(){document.querySelectorAll('[rel="highlighter"]').forEach(function(e){var t=e.dataset.codeBrush;if(void 0!==t){var n=e.innerHTML;e.innerHTML='<code class="language-'.concat(t,'">').concat(n,"</code>")}}),i.a.highlightAll()})},93:function(e,t){function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0}},[[254,0]]]);