(function(e){function t(t){for(var n,i,a=t[0],c=t[1],u=t[2],d=0,l=[];d<a.length;d++)i=a[d],Object.prototype.hasOwnProperty.call(s,i)&&s[i]&&l.push(s[i][0]),s[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);f&&f(t);while(l.length)l.shift()();return o.push.apply(o,u||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==s[c]&&(n=!1)}n&&(o.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},s={frontend:0},o=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var a=window["webpackJsonp"]=window["webpackJsonp"]||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var u=0;u<a.length;u++)t(a[u]);var f=c;o.push([2,"chunk-vendors","chunk-common"]),r()})({2:function(e,t,r){e.exports=r("d67f")},ceb9:function(e,t,r){},d67f:function(e,t,r){"use strict";r.r(t);var n=r("a026"),s=(r("ceb9"),r("2f62")),o=r("6b96");n["a"].use(s["a"]);const i=()=>new s["a"].Store({modules:{widget:o["a"]}});var a=r("c0cc"),c=r("918d");const u=e=>{"function"===typeof __gtagTracker&&__gtagTracker("event","impression",{event_category:"userfeedback-survey",event_label:e.title,non_interaction:!0,survey_id:e.id})},f=e=>{"function"===typeof __gtagTracker&&__gtagTracker("event","submission",{event_category:"userfeedback-survey",event_label:e.title,non_interaction:!1,survey_id:e.id})},d={subscribeToStore(e){e.subscribe(t=>{const{type:r,payload:n}=t,{isPreview:s}=e.state.widget;if(!s)switch(r){case"widget/setSurvey":n.settings.enable_tracking&&u(n);break}}),e.subscribeAction((t,r)=>{const{type:n}=t,{survey:s}=r.widget,{isPreview:o}=e.state.widget;if(!o)switch(n){case"widget/saveResponse":s.settings.enable_tracking&&f(s);break}})}};var l=d,p=r("d4a7"),b=r("ed75");(()=>{const e="userfeedback_frontend";window.userfeedback_no_show_reasons={};const t=document.createElement("div");document.body.append(t),n["a"].use(a["a"],{componentPrefix:"UserFeedback",classPrefix:"user-feedback"}),window.userfeedback_addons_frontend&&window.userfeedback_addons_frontend.forEach(e=>{n["a"].use(e)});const r=i();n["a"].use(c["a"],{store:r,wpObjectKey:e});const{monsterinsights:s}=r.state.$uf.integrations;new n["a"]({store:r,mounted:()=>{if(r.state.$uf.is_preview)return;let e=r.state.$uf.surveys;if("1"===r.state.$uf.is_singular){if(""!==r.state.$uf.disable_all_surveys&&0===parseInt(r.state.$uf.show_specific_survey))return;if(0!==parseInt(r.state.$uf.show_specific_survey)){const t=e.find(e=>e.id===r.state.$uf.show_specific_survey);e=[t]}}const t=r.state.$uf.logic,n=Object(b["b"])(e,t);n&&!n.shortcode&&(s&&s.is_active&&l.subscribeToStore(r),r.dispatch("widget/init",n))},render:e=>r.state.$uf.is_preview?e(p["a"],{props:{isInline:!0,isPreview:!0,useSurvey:r.state.$uf.use_survey}}):e(p["a"])}).$mount(r.state.$uf.is_preview?"#"+r.state.$uf.preview_element_id:t);const o=document.querySelectorAll(".userfeedback-survey-container");o.forEach(e=>{const t=e.dataset.id;if(!t)return;const r=window.userfeedback_frontend.surveys,o=r.find(e=>e.id===t);if(!o)return;const a=i();c["a"].registerStoreModule(a,"userfeedback_frontend"),new n["a"]({store:a,mounted:()=>{const e=Object(b["b"])([o]);s&&s.is_active&&l.subscribeToStore(a),a.dispatch("widget/init",e)},render:e=>e(p["a"],{props:{isInline:!0}})}).$mount(e)})})()}});