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