js.hubspotfeedback.com
Open in
urlscan Pro
2606:4700::6811:f07c
Public Scan
URL:
https://js.hubspotfeedback.com/feedbackweb-new.js
Submission: On August 30 via api from IT — Scanned from IT
Submission: On August 30 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
!function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,n){return e(n={exports:{}},n.exports),n.exports}var t=function(e){return e&&e.Math==Math&&e},r=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,a={f:s&&!u.call({1:2},1)?function(e){var n=s(this,e);return!!n&&n.enumerable}:u},c=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}},d={}.toString,f=function(e){return d.call(e).slice(8,-1)},h="".split,l=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(e)?h.call(e,""):Object(e)}:Object,p=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},b=function(e){return l(p(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},g=function(e,n){if(!m(e))return e;var t,r;if(n&&"function"==typeof(t=e.toString)&&!m(r=t.call(e)))return r;if("function"==typeof(t=e.valueOf)&&!m(r=t.call(e)))return r;if(!n&&"function"==typeof(t=e.toString)&&!m(r=t.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(e,n){return y.call(e,n)},v=r.document,x=m(v)&&m(v.createElement),k=function(e){return x?v.createElement(e):{}},$=!i&&!o((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),E=Object.getOwnPropertyDescriptor,O={f:i?E:function(e,n){e=b(e);n=g(n,!0);if($)try{return E(e,n)}catch(e){}if(w(e,n))return c(!a.f.call(e,n),e[n])}},j=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},S=Object.defineProperty,I={f:i?S:function(e,n,t){j(e);n=g(n,!0);j(t);if($)try{return S(e,n,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");"value"in t&&(e[n]=t.value);return e}},_=i?function(e,n,t){return I.f(e,n,c(1,t))}:function(e,n,t){e[n]=t;return e},T=function(e,n){try{_(r,e,n)}catch(t){r[e]=n}return n},L="__core-js_shared__",M=r[L]||T(L,{}),P=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(e){return P.call(e)});var W,q,C,R=M.inspectSource,F=r.WeakMap,A="function"==typeof F&&/native code/.test(R(F)),N=!1,H=n((function(e){(e.exports=function(e,n){return M[e]||(M[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.5",mode:N?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),D=0,U=Math.random(),z=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++D+U).toString(36)},V=H("keys"),B=function(e){return V[e]||(V[e]=z(e))},Q={},G=r.WeakMap,J=function(e){return C(e)?q(e):W(e,{})},K=function(e){return function(n){var t;if(!m(n)||(t=q(n)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}};if(A){var Y=new G,Z=Y.get,X=Y.has,ee=Y.set;W=function(e,n){ee.call(Y,e,n);return n};q=function(e){return Z.call(Y,e)||{}};C=function(e){return X.call(Y,e)}}else{var ne=B("state");Q[ne]=!0;W=function(e,n){_(e,ne,n);return n};q=function(e){return w(e,ne)?e[ne]:{}};C=function(e){return w(e,ne)}}var te={set:W,get:q,has:C,enforce:J,getterFor:K},re=(te.set,te.get,te.has,te.enforce,te.getterFor,n((function(e){var n=te.get,t=te.enforce,o=String(String).split("String");(e.exports=function(e,n,i,u){var s=!!u&&!!u.unsafe,a=!!u&&!!u.enumerable,c=!!u&&!!u.noTargetGet;if("function"==typeof i){"string"!=typeof n||w(i,"name")||_(i,"name",n);t(i).source=o.join("string"==typeof n?n:"")}if(e!==r){s?!c&&e[n]&&(a=!0):delete e[n];a?e[n]=i:_(e,n,i)}else a?e[n]=i:T(n,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&n(this).source||R(this)}))}))),oe=r,ie=function(e){return"function"==typeof e?e:void 0},ue=function(e,n){return arguments.length<2?ie(oe[e])||ie(r[e]):oe[e]&&oe[e][n]||r[e]&&r[e][n]},se=Math.ceil,ae=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?ae:se)(e)},de=Math.min,fe=function(e){return e>0?de(ce(e),9007199254740991):0},he=Math.max,le=Math.min,pe=function(e,n){var t=ce(e);return t<0?he(t+n,0):le(t,n)},be=function(e){return function(n,t,r){var o,i=b(n),u=fe(i.length),s=pe(r,u);if(e&&t!=t){for(;u>s;)if((o=i[s++])!=o)return!0}else for(;u>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}},me={includes:be(!0),indexOf:be(!1)},ge=(me.includes,me.indexOf,me.indexOf),ye=function(e,n){var t,r=b(e),o=0,i=[];for(t in r)!w(Q,t)&&w(r,t)&&i.push(t);for(;n.length>o;)w(r,t=n[o++])&&(~ge(i,t)||i.push(t));return i},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ve=we.concat("length","prototype"),xe={f:Object.getOwnPropertyNames||function(e){return ye(e,ve)}},ke={f:Object.getOwnPropertySymbols},$e=ue("Reflect","ownKeys")||function(e){var n=xe.f(j(e)),t=ke.f;return t?n.concat(t(e)):n},Ee=function(e,n){for(var t=$e(n),r=I.f,o=O.f,i=0;i<t.length;i++){var u=t[i];w(e,u)||r(e,u,o(n,u))}},Oe=/#|\.prototype\./,je=function(e,n){var t=Ie[Se(e)];return t==Te||t!=_e&&("function"==typeof n?o(n):!!n)},Se=je.normalize=function(e){return String(e).replace(Oe,".").toLowerCase()},Ie=je.data={},_e=je.NATIVE="N",Te=je.POLYFILL="P",Le=je,Me=O.f,Pe=function(e,n){var t,o,i,u,s,a=e.target,c=e.global,d=e.stat;if(t=c?r:d?r[a]||T(a,{}):(r[a]||{}).prototype)for(o in n){u=n[o];i=e.noTargetGet?(s=Me(t,o))&&s.value:t[o];if(!Le(c?o:a+(d?".":"#")+o,e.forced)&&void 0!==i){if(typeof u==typeof i)continue;Ee(u,i)}(e.sham||i&&i.sham)&&_(u,"sham",!0);re(t,o,u,e)}},We=Object.keys||function(e){return ye(e,we)},qe=function(e){return Object(p(e))},Ce=Object.assign,Re=Object.defineProperty,Fe=!Ce||o((function(){if(i&&1!==Ce({b:1},Ce(Re({},"a",{enumerable:!0,get:function(){Re(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol(),r="abcdefghijklmnopqrst";e[t]=7;r.split("").forEach((function(e){n[e]=e}));return 7!=Ce({},e)[t]||We(Ce({},n)).join("")!=r}))?function(e,n){for(var t=qe(e),r=arguments.length,o=1,u=ke.f,s=a.f;r>o;)for(var c,d=l(arguments[o++]),f=u?We(d).concat(u(d)):We(d),h=f.length,p=0;h>p;){c=f[p++];i&&!s.call(d,c)||(t[c]=d[c])}return t}:Ce;Pe({target:"Object",stat:!0,forced:Object.assign!==Fe},{assign:Fe})}();!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};e[r].call(o.exports,o,o.exports,t);o.l=!0;return o.exports}var r=[{name:"head-dlb/bundle.production.js",path:"head-dlb/static-1.979/bundle.production.js",ids:{}},{name:"hubspot-dlb/bundle.production.js",path:"hubspot-dlb/static-1.836/bundle.production.js",ids:{enviro:3}}];t.dlbpr=function(e,n){var o=r[e];if(!o.r){o.r=window["__webpack_require_"+o.name+"__"];if(!o.r)throw new Error("dlb "+o.name+" not loaded");o.r.linkDlb(t,o.ids)}return o.r(n)};t.m=e;t.c=n;t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})};t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})};t.t=function(e,n){1&n&&(e=t(e));if(8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);t.r(r);Object.defineProperty(r,"default",{enumerable:!0,value:e});if(2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r};t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};t.d(n,"a",n);return n};t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};t.p="//static.hsappstatic.net/feedback-web-renderer-ui/static-1.21266/";t(t.s=364)}({139:function(e,n,t){"use strict";t.d(n,"b",(function(){return r}));t.d(n,"c",(function(){return o}));t.d(n,"a",(function(){return i}));t.d(n,"d",(function(){return u}));const r="PREVIEW_EDITOR",o="PREVIEW_UI",i="FETCHER",u="UI"},140:function(e,n,t){"use strict";t.d(n,"a",(function(){return r}));t.d(n,"d",(function(){return o}));t.d(n,"e",(function(){return i}));t.d(n,"f",(function(){return u}));t.d(n,"h",(function(){return s}));t.d(n,"i",(function(){return a}));t.d(n,"j",(function(){return c}));t.d(n,"k",(function(){return d}));t.d(n,"l",(function(){return f}));t.d(n,"m",(function(){return h}));t.d(n,"n",(function(){return l}));t.d(n,"p",(function(){return p}));t.d(n,"q",(function(){return b}));t.d(n,"r",(function(){return m}));t.d(n,"g",(function(){return g}));t.d(n,"c",(function(){return y}));t.d(n,"o",(function(){return w}));t.d(n,"b",(function(){return v}));t.d(n,"s",(function(){return x}));const r="change-expand",o="expand",i="focus",u="hide",s="load-survey",a="location-change",c="ready",d="reset",f="resize-popup",h="setup",l="show",p="stage-change",b="fetched",m="update",g="load-config-only",y="config-fetched",w="show-loaded-config",v="CHANGE_STATE",x="UPDATE_PREVIEW"},141:function(e,n,t){"use strict";t.d(n,"X",(function(){return r}));t.d(n,"Z",(function(){return o}));t.d(n,"R",(function(){return i}));t.d(n,"y",(function(){return u}));t.d(n,"q",(function(){return s}));t.d(n,"t",(function(){return a}));t.d(n,"s",(function(){return c}));t.d(n,"r",(function(){return d}));t.d(n,"p",(function(){return f}));t.d(n,"u",(function(){return h}));t.d(n,"w",(function(){return l}));t.d(n,"v",(function(){return p}));t.d(n,"x",(function(){return b}));t.d(n,"K",(function(){return m}));t.d(n,"L",(function(){return g}));t.d(n,"G",(function(){return y}));t.d(n,"I",(function(){return w}));t.d(n,"J",(function(){return v}));t.d(n,"H",(function(){return x}));t.d(n,"M",(function(){return k}));t.d(n,"d",(function(){return $}));t.d(n,"h",(function(){return E}));t.d(n,"i",(function(){return O}));t.d(n,"c",(function(){return j}));t.d(n,"F",(function(){return S}));t.d(n,"j",(function(){return I}));t.d(n,"k",(function(){return _}));t.d(n,"o",(function(){return T}));t.d(n,"n",(function(){return L}));t.d(n,"l",(function(){return M}));t.d(n,"m",(function(){return P}));t.d(n,"U",(function(){return W}));t.d(n,"T",(function(){return q}));t.d(n,"ab",(function(){return C}));t.d(n,"cb",(function(){return R}));t.d(n,"eb",(function(){return F}));t.d(n,"db",(function(){return A}));t.d(n,"W",(function(){return N}));t.d(n,"V",(function(){return H}));t.d(n,"Y",(function(){return D}));t.d(n,"bb",(function(){return U}));t.d(n,"O",(function(){return z}));t.d(n,"P",(function(){return V}));t.d(n,"a",(function(){return B}));t.d(n,"b",(function(){return Q}));t.d(n,"S",(function(){return G}));t.d(n,"Q",(function(){return J}));t.d(n,"N",(function(){return K}));t.d(n,"e",(function(){return Y}));t.d(n,"f",(function(){return Z}));t.d(n,"g",(function(){return X}));t.d(n,"E",(function(){return ee}));t.d(n,"D",(function(){return ne}));t.d(n,"z",(function(){return te}));t.d(n,"A",(function(){return re}));t.d(n,"C",(function(){return oe}));t.d(n,"B",(function(){return ie}));const r="16px",o="8px",i="12px",u="36px",s="8px",a="12px",c="24px",d="32px",f="64px",h="24px",l="12px",p="9px",b="5px",m="16px",g="14px",y="1px",w="10px",v="10px",x="40px",k="32px",$="24px",E="12px",O="6px",j="8px",S="16px",I="24px",_="12px",T="26px",L="32px",M="40px",P="3px",W="16px",q="24px",C="155px",R="20px",F="10px",A="16px",N="20px",H="24px",D="16px",U="20px",z="1280px",V="48px",B="10.1px",Q="20px",G="1",J="1070",K="1111",Y=".08",Z="24px",X="1px",ee="544px",ne="768px",te=".5",re=".3",oe="0 0 4px 1px",ie="0 0 0 1px"},142:function(e,n,t){"use strict";t.d(n,"a",(function(){return i}));t.d(n,"b",(function(){return s}));t.d(n,"d",(function(){return a}));t.d(n,"c",(function(){return c}));var r=t(143),o=t(140);const i="hubspot-servicehub-feedback",u=(e,n,t)=>(r,o)=>{n.postMessage(JSON.stringify({payload:{channel:e,payload:{messageType:r,payload:o}},type:i}),t||"*")},s=(e,n)=>u(n,e.contentWindow,e.src),a=e=>u(e,window.parent,document.referrer),c=(e,n,t)=>{const i=Object(r.a)(e,n),u=s(e,n),a=i(e=>{if(e===o.j){t({sender:u,subscribe:i});a()}})}},143:function(e,n,t){"use strict";t.d(n,"b",(function(){return s}));t.d(n,"a",(function(){return a}));var r=t(142),o=t(144),i=t(145);const u=(e,n)=>{const t=new RegExp("^"+Object(o.a)(e)),u=Object(i.a)(window,"message");return e=>u(({data:o,origin:i,source:u})=>{if(!o||!t.test(i))return;let s;try{s=JSON.parse(o)}catch(e){return}const{payload:a,type:c}=s;if(!a||c!==r.a)return;const{channel:d,payload:{messageType:f,payload:h}}=a;d===n&&e(f,h,i,u)})},s=e=>u(document.referrer,e),a=(e,n)=>u(e.src,n)},144:function(e,n,t){"use strict";t.d(n,"a",(function(){return r}));t.d(n,"b",(function(){return i}));const r=e=>{if(!e||""===e)return".*";const n=e.split("/");return`${n[0]}//${n[2]}`},o=(e,n)=>`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,i=e=>Object.keys(e).reduce((n,t)=>{const r=e[t];return[...n,...Array.isArray(r)?r.map(e=>o(t,e)):[o(t,r)]]},[]).join("&")},145:function(e,n,t){"use strict";var r=t(146);n.a=(e,n,t={})=>Object(r.a)(r=>{e.addEventListener(n,r,t);return()=>{e.removeEventListener(n,r,t)}})},146:function(e,n,t){"use strict";n.a=e=>{let n=!0,t=[];const r=(...e)=>{t.forEach(n=>{n(...e)})};return o=>{n&&0===t.length&&(n=e(r));t.push(o);return()=>{const e=t.length;t=t.filter(e=>e!==o);n&&0===t.length&&e>0&&n()}}}},147:function(e,n,t){"use strict";var r=t(146);n.a=(e,n)=>Object(r.a)(t=>{const r=setInterval(t,e);return()=>{n&&n();clearInterval(r)}})},152:function(e,n,t){"use strict";t.r(n);t.d(n,"LIVE_PREVIEW",(function(){return r}));t.d(n,"PREVIEW",(function(){return o}));t.d(n,"STANDARD",(function(){return i}));const r="live-preview",o="preview",i="standard"},159:function(e,n,t){"use strict";t.d(n,"c",(function(){return u}));t.d(n,"a",(function(){return a}));t.d(n,"g",(function(){return b}));t.d(n,"d",(function(){return m}));t.d(n,"e",(function(){return y}));t.d(n,"f",(function(){return w}));t.d(n,"b",(function(){return v}));t.d(n,"h",(function(){return k}));var r=t(141);const o=.4,i=350,u=i+200,s=480,a=450,c=Math.max(s,i,u,a),d=416,f=420,h=544,l=768,p=600,b="hs-feedback-ui",m="hs-feedback-fetcher",g="hs-feedback-extended-width",y="hs-feedback-shown",w="hs-feedback-slid-out",v="hs-feedback-expanded",x=(e,n)=>`\n @keyframes feedback-slide-in-${e} {\n from {transform: translate(0, ${100*n}%);}\n to {transform: translate(0, 0);}\n }\n\n @keyframes feedback-slide-out-${e} {\n from {transform: translate(0, 0);}\n to {transform: translate(0, ${100*n}%);}\n }\n\n #${b}.${e} {\n animation-name: feedback-slide-in-${e};\n }\n\n #${b}.${e}.${w} {\n animation-name: feedback-slide-out-${e};\n animation-fill-mode: forwards;\n }\n`,k=`\n #${b} {\n animation-duration: ${o}s;\n animation-timing-function: ease-out;\n display: none;\n height: 0;\n overflow: hidden;\n position: fixed;\n z-index: 2147483647;\n max-width: 100%;\n }\n\n .hubspot.space-sword #${b} {\n z-index: ${window.hsFeedbackWebZIndex||r.Q};\n }\n\n #${b}.${y} {\n display: block;\n }\n\n #${m} {\n display: none\n }\n\n ${x("hs-feedback-left",1)}\n ${x("hs-feedback-right",1)}\n ${x("hs-feedback-top",-1)}\n\n #${b} > iframe {\n width: 100%;\n height: 100%;\n }\n\n #${b}:not(.hs-feedback-top) {\n bottom: 0;\n }\n\n #${b}.hs-feedback-left {\n left: 0;\n }\n\n #${b}.hs-feedback-right {\n right: 0;\n }\n\n .zorse #${b}:not(.hs-feedback-top) {\n bottom: 6px;\n }\n\n .zorse #${b}.hs-feedback-right {\n right: 0;\n }\n\n #${b}.hs-feedback-top {\n left: 0;\n top: 0;\n width: 100%;\n }\n\n #${b}.hs-feedback-nps:not(.hs-feedback-top) {\n width: ${s}px;\n }\n\n #${b}.hs-feedback-csat:not(.hs-feedback-top) {\n width: ${i}px;\n }\n\n #${b}.hs-feedback-csat.${g}:not(.hs-feedback-top) {\n width: ${u}px;\n }\n\n @media only screen and (min-width: ${h}px) {\n #${b}.hs-feedback-csat:not(.hs-feedback-top):not(.${v}) {\n width: ${a}px;\n }\n }\n\n #${b}.hs-feedback-csat.${g}:not(.hs-feedback-top) {\n width: ${u}px !important;\n }\n\n #${b}.preview.hs-feedback-csat.hs-feedback-callout:not(.${v}):not(.hs-feedback-top) {\n width: ${a}px !important;\n }\n\n @media only screen and (max-width: ${l}px) {\n #${b}:not(.preview):not(.hs-feedback-callout):not(.hs-feedback-top),\n #${b}.${v}:not(.preview):not(.hs-feedback-top) {\n width: 100% !important;\n }\n }\n\n @media only screen and (max-width: ${p}px) {\n #${b}.preview:not(.hs-feedback-top),\n #${b}.${v}.preview:not(.hs-feedback-top) {\n width: 100% !important;\n }\n }\n\n #${b}.${y} ~ #tally-widget-container,\n #${b}.${y} ~ #wootric-modal {\n display: none !important;\n }\n\n /* hide all popups in the same position as us */\n @media only screen and (min-width: ${h}px) {\n #${b}.hs-feedback-right.${y} ~ #hubspot-messages-iframe-container,\n #${b}.hs-feedback-right.${y} ~ .leadinModal-theme-bottom-right-corner,\n #${b}.hs-feedback-left.${y} ~ .leadinModal-theme-bottom-left-corner,\n #${b}.hs-feedback-top.${y} ~ .leadinModal-theme-top {\n display: none !important;\n }\n }\n\n /* hide leadflows when we're tablet-stretched across from them */\n @media only screen and (min-width: ${h}px) and (max-width: ${Math.max(l,c+f)}px) {\n #${b}.hs-feedback-left.${y} ~ .leadinModal-theme-bottom-right-corner,\n #${b}.hs-feedback-right.${y} ~ .leadinModal-theme-bottom-left-corner {\n display: none !important;\n }\n }\n\n /* hide messages when we're tablet-stretched across from them */\n @media only screen and (max-width: ${Math.max(l,c+d)}px) {\n #${b}.hs-feedback-left.${y} ~ #hubspot-messages-iframe-container {\n display: none !important;\n }\n }\n\n @media only screen and (max-width: ${h}px) {\n\n /* repeat above rules for small screens when we're set to display on mobile */\n #${b}.hs-feedback-right.${y}:not(.hs-feedback-no-mobile) ~ #hubspot-messages-iframe-container,\n #${b}.hs-feedback-left.${y}:not(.hs-feedback-no-mobile) ~ #hubspot-messages-iframe-container,\n #${b}.hs-feedback-right.${y}:not(.hs-feedback-no-mobile) ~ .leadinModal-theme-bottom-right-corner,\n #${b}.hs-feedback-left.${y}:not(.hs-feedback-no-mobile) ~ .leadinModal-theme-bottom-left-corner,\n #${b}.hs-feedback-top.${y}:not(.hs-feedback-no-mobile) ~ .leadinModal-theme-top,\n #${b}.hs-feedback-left.${y}:not(.hs-feedback-no-mobile) ~ .leadinModal-theme-bottom-right-corner,\n #${b}.hs-feedback-right.${y}:not(.hs-feedback-no-mobile) ~ .leadinModal-theme-bottom-left-corner {\n display: none !important;\n }\n\n /* don't display us on small screens if we're set to not display on mobile */\n #${b}.hs-feedback-no-mobile {\n display: none;\n }\n }\n`},160:function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));const r="na1";function o(e=""){return e&&e!==r?"-"+e:""}},162:function(e,n,t){"use strict";t.d(n,"b",(function(){return o}));t.d(n,"c",(function(){return i}));t.d(n,"a",(function(){return s}));t.d(n,"d",(function(){return a}));const r=(e,n)=>{Object.keys(n).forEach(t=>{e.setAttribute(t,n[t])});return e},o=(e,n={})=>r(document.createElement(e),n),i=(e,n)=>{const t=(e.childNodes||{})[0];if(t){e.insertBefore(n,t);return e}e.appendChild(n);return e},u=e=>e.replace(/(^ *| *$)/g,"").replace(/ +/g," "),s=(e,n)=>{e.className=u(`${e.className} ${n}`)},a=(e,n)=>{e.className=u(e.className.replace(new RegExp(n,"g"),""))}},364:function(e,n,t){"use strict";t.r(n);var r=t(160),o=t(139),i=t(140),u=t(142),s=t(143),a=t(147);const c=(e,n)=>e===n;var d=((e,n=c,t=1e3)=>{let r,o=!0;const i=Object(a.a)(t,()=>{o=!0});return t=>i(()=>{const i=e();if(!n(i,r)){o||t(i);r=i}o=!1})})(()=>location.href),f=t(145),h=t(152);const l="feedback-web",p=l+"-fetcher",b=l+"-ui";var m=t(162),g=t(159);const y=Object(u.d)(o.a),w=1e3,v=()=>{const e=document.querySelector("#isc-zorse-widget")||document.querySelector("#chat-widget"),n=document.getElementById("hs-feedback-ui");if(e){const t=e.children[0];if(t){const e=t.clientWidth+20;n&&(n.style.marginRight=e+"px")}}else n&&(n.style.marginRight="0px")};class x{constructor(){this.setFetcher=e=>{this.fetcher=e;this._runQueuedEvents();return this};this.initialiseUI=({iframe:e,parent:n,sender:t})=>{this.iframe=e;this.sendToIframe=t;this.iframeWrapper=n;this._runQueuedEvents();setInterval(v,100)};this._runQueuedEvents=()=>{const e=this.queuedEvents;this.queuedEvents=[];e.forEach(e=>e(this))};this._onSurveyLoaded=e=>{this._setMetaData(e);this.onSurveyLoad&&this.onSurveyLoad(e)};this._queueEvent=e=>{this.queuedEvents.push(e);return this};this._push=e=>{this._queueEvent(e);this.fetcher&&this._runQueuedEvents()};this._setSurveyLanguage=e=>{this.surveyLanguage=e.config.language};this._setMetaData=e=>{this._setSurveyLanguage(e);this.config=e;return this};this._onConfigLoaded=e=>{this._setMetaData(e);this.onConfigLoaded&&this.onConfigLoaded(e);return this};this.hide=()=>{if(!this.iframeWrapper)return this._queueEvent(this.hide);m.a(this.iframeWrapper,g.f);window.setTimeout(()=>{m.d(this.iframeWrapper,g.e)},500);return this};this.show=()=>{if(!this.iframeWrapper)return this._queueEvent(this.show);m.d(this.iframeWrapper,g.f);m.a(this.iframeWrapper,g.e);return this};this.expand=()=>{if(!this.iframeWrapper)return this._queueEvent(this.expand);m.a(this.iframeWrapper,g.b);this.sendToIframe(i.a,!0);return this};this.minimize=()=>{if(!this.iframeWrapper)return this._queueEvent(this.minimize);m.d(this.iframeWrapper,g.b);this.sendToIframe(i.a,!1);return this};this.reset=()=>{if(!this.iframeWrapper)return this._queueEvent(this.reset);this.sendToIframe(i.k,!1);return this};this.showOnMouseLeave=(e=!1)=>{const n=()=>{e&&this.expand();this.show();document.removeEventListener("mouseleave",n)};document.addEventListener("mouseleave",n);return this};this.showOnScroll=(e=!1)=>{const n=Math.max(document.body.offsetHeight,document.body.scrollHeight),t=.5*(n-window.innerHeight),r=()=>{e&&this.expand();this.show()};if(n===window.innerHeight){setTimeout(r,w);return this}const o=()=>{const e=document.body.scrollTop||window.pageYOffset;if(window.innerHeight+e>t){r();document.removeEventListener("scroll",o)}};document.addEventListener("scroll",o);return this};this.loadConfigOnly=(e,n)=>{if(!this.fetcher)return this._queueEvent(()=>this.loadConfigOnly(e,n));this.fetcher(i.g,{surveyType:e,surveyId:n});return this};this.loadSurvey=(e,n)=>{if(!this.fetcher)return this._queueEvent(()=>this.loadSurvey(e,n));this.fetcher(i.h,{surveyType:e,surveyId:n});return this};this.showSurvey=e=>{if(!this.fetcher)return this._queueEvent(()=>this.showSurvey());if(!e)return this;this.fetcher(i.o,e);return this};this.checkIsLanguageValid=e=>e===this.surveyLanguage;this.renderSurvey=()=>{if(!this.config)return this._queueEvent(()=>this.renderSurvey());y(i.q,this.config);return this};this.getSurveyConfig=()=>this.config;this.fetcher=null;this.onSurveyLoad=null;this._onReady=null;this.iframeWrapper=null;this.iframe=null;this.sendToIframe=null;this.onConfigLoaded=null;this.surveyLanguage=null;this.config=null;this.queuedEvents=window.onHsFeedbackReady||[];window.hsFeedback=this;window.onHsFeedbackReady={push:this._push}}}var k=x,$=t(366);const E=document.head||document.getElementsByTagName("head")[0],O=e=>{const n=document.createElement("style");n.type="text/css";n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e));return n};const j=()=>location,S=()=>innerWidth;(e=>{E.appendChild(O(e))})(g.h);const I=window._hsq=window._hsq||[],_={portalId:$.n,isPreview:$.i,isTest:$.j},T=Object(r.a)($.f),L=`https://${$.i&&/local/.test(j().origin)||$.o?"local":"app"}${T}.hubspot${"prod"===$.c?"":"qa"}.com`,M={};let P;window.hsFeedbackLoaded||(P=new k);const W=(e,n)=>{switch(e){case i.q:U(o.d,i.m,{mode:h.STANDARD,payload:{isHubspot:$.h,portalId:$.n,response:n,pageTitle:document.title,pageUrl:location.href,utk:_.utk,windowWidth:S(),hublet:$.f,clientLoadOnly:$.a}});P._onSurveyLoaded(n);break;case i.c:P._onConfigLoaded(n)}},q=()=>{const e=M[o.d];return e&&e.data&&e.data.parent.className.indexOf(g.e)>=0},C=Object(u.d)(o.b),R=(e,n)=>{D(o.d,({parent:t})=>{switch(e){case i.n:{const{classes:e,displayOnScroll:r,surveyId:o,surveyLanguage:i,surveyType:u,userLocale:s}=n,a=$.e||s;if($.h&&i!==a||window.disabledHsPopups&&window.disabledHsPopups.indexOf("FEEDBACK")>-1)return;const c=[...e,...$.i?["preview"]:[]].join(" ").toLowerCase();$.l||void 0===o||I.push(["trackFeedbackView",{surveyId:o,surveyType:u}]);t.baseClasses=c;t.className=c;r?P.showOnScroll():P.show();break}case i.d:n?m.a(t,g.b):m.d(t,g.b);C(e,n);break;case i.f:P.hide();setTimeout(()=>{t.className=t.baseClasses},1e3);break;case i.l:{const{newHeight:e,newWidth:r}=n;t.style.width=r?r+"px":null;t.style.height=e+"px";break}default:C(e,n)}})},F=e=>()=>{e(i.r,{pageTitle:document.title,pageUrl:j().href,windowWidth:S()})},A=e=>{const{sender:n}=e,t=F(n);d(t);Object(f.a)(window,"resize")(t);Object(f.a)(document,"focus")(()=>{n(i.e)});P.initialiseUI(e);return{client:P}},N={FETCHER:{onInit:({sender:e})=>{d(n=>{q()||e(i.i,n)})},handleMessages:W,parentAttrs:{id:g.d,title:"submit hubspot feedback"},path:p},UI:{onInit:A,handleMessages:R,parentAttrs:{id:g.g,title:"submit hubspot feedback"},path:b}},H=e=>{const{path:n,parentAttrs:t}=N[e],r=m.b("iframe",{frameborder:0,title:"Submit HubSpot product feedback",src:`${L}/${n}`}),o=m.b("div",t);m.c(o,r);m.c(document.body,o);return[r,o]},D=(e,n)=>{if(M[e]){M[e](n);return}const t=[n];M[e]=e=>{t.push(e)};const[r,o]=H(e);Object(u.c)(r,e,({sender:n,subscribe:i})=>{const{handleMessages:u,onInit:s}=N[e];i(u);let a={frame:r,parent:o,subscribe:i,sender:n};a=Object.assign({},a,s(a)||{});const c=e=>{e(a)};M[e]=c;c.data=a;t.forEach(M[e])})},U=(e,n,t={})=>{D(e,({sender:e})=>{e(n,t)})},z=({frame:e})=>{const n=Object(u.b)(e,o.c);Object(s.b)(o.b)(n);C(i.j)};if(!$.g&&!$.k&&!window.hsFeedbackLoaded)if($.l||$.i){let e,n={pageUrl:j().href};D(o.d,t=>{const{sender:r}=t;if($.l){e=h.LIVE_PREVIEW;n={livePreviewId:$.m}}else{e=h.PREVIEW;z(t)}r(i.m,{mode:e,hublet:$.f,clientLoadOnly:$.a,windowWidth:S(),payload:Object.assign({},_,n)})})}else if($.h){_.hsEmail=$.d;D(o.a,({sender:e})=>{e(i.m,{email:$.d,portalId:$.b,pageUrl:j().href,targetPortalId:$.n,isHubspot:$.h,hublet:$.f,clientLoadOnly:$.a});P.setFetcher(e)})}else I.push(["addCookieListener",e=>{if(!e)return;const n=e.split(".")[1];_.utk=n;D(o.a,e=>{const{sender:t}=e;t(i.m,{pageUrl:j().href,portalId:$.n,utk:n,hublet:$.f,clientLoadOnly:$.a});P.setFetcher(t)})}]);window.hsFeedbackLoaded=!0},366:function(e,n,t){"use strict";var r=e=>{const n=document.querySelector(`script[${e}]`);return n?n.getAttribute(e):null};t.d(n,"c",(function(){return w}));t.d(n,"n",(function(){return v}));t.d(n,"b",(function(){return x}));t.d(n,"l",(function(){return k}));t.d(n,"m",(function(){return $}));t.d(n,"j",(function(){return E}));t.d(n,"i",(function(){return O}));t.d(n,"h",(function(){return j}));t.d(n,"d",(function(){return S}));t.d(n,"e",(function(){return I}));t.d(n,"f",(function(){return _}));t.d(n,"a",(function(){return T}));t.d(n,"o",(function(){return L}));t.d(n,"k",(function(){return M}));t.d(n,"g",(function(){return P}));const o="hsWebSurveyPreview",i="hsWebSurveyTestId",u="data-hubspot-feedback-portal-id",s="data-hubspot-feedback-customer-portal-id",a="data-hubspot-feedback-env",c="data-hubspot-feedback-hubspot-app",d="data-hubspot-feedback-hubspot-email",f="data-hubspot-feedback-user-lang",h="data-hubspot-feedback-client-load-only",l="data-hsjs-hublet",p={},b=window.location.hash,m=window.location.search;(()=>{if(b.length>0){const e=b.split("?");if(e.length>1)return"?"+e[1]}return m})().replace(/[(?|&)]([^=]+)=([^&#]+)/g,(e,n,t)=>{p[n]=t});const g=e=>{try{return"true"===localStorage.getItem(e)}catch(e){return!1}};function y(){return window.location.hostname.split(".")[0].split("-")[1]||""}const w=r(a),v=r(u),x=r(s),k=p[o],$=p[i],E=Boolean(window.feedbackTestPage)||Boolean(k),O=Boolean(window.hsFeedbackPreview),j=Boolean(r(c)),S=r(d),I=r(f),_=r(l)||y(),T="true"===r(h),L=g("LOCAL_RENDERER"),M=/MSIE\s/.test(navigator.userAgent)&&parseFloat(navigator.appVersion.split("MSIE")[1])<11,P=/bot|python-requests|hubspot|phantomjs|bingpreview/i.test(navigator.userAgent);/hsWebSurveyTestId/.test(document.referrer);if(L){const e=document.querySelector("body"),n=document.createElement("div");n.setAttribute("class","UIRibbon-sc-1wnhcos-0 hwuPWx");n.innerText="Web renderer local";n.style.top="130px";n.style.zIndex=5;e.appendChild(n)}}}); //# sourceMappingURL=//static.hsappstatic.net/feedback-web-renderer-ui/static-1.21266/bundles/popupInjector.js.map