@survicate/survicate-web-package 28.24.0-npm → 28.25.1-npm
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/survicate_widget.js +1 -1
package/survicate_widget.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Survicate=t():e.Survicate=t()}(globalThis,()=>(()=>{var e={54(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(s(733));t.default=class{static init({cookies:e}){e&&e.forEach(({cookie_name:e,cookie_random:t})=>{const s=Math.floor(Math.random()*parseInt(t,10)+1);i.default.set(e,`${s}`)})}}},974(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=s(890),i=s(656);t.default=new class{constructor(){this.isEnabled=!1,this.anonymizeAnswers=!1}init(e){this.isEnabled=!0,this.anonymizeAnswers=(null==e?void 0:e.anonymize_answers)||!1}pushEvent(e,t){if(window.FS&&this.isEnabled&&e===r.FullStoryEvents.SurveyPointAnswered){const e=t,s=this.anonymizeAnswers&&((null==e?void 0:e.answerType)===i.SurveyQuestionAnswerType.text||(null==e?void 0:e.answerType)===i.SurveyQuestionAnswerType.form);window.FS.event(r.FullStoryEvents.SurveyPointAnswered,{answer_str:s?"":e.textResponse,question_str:e.question,survey_name_str:e.surveyName}),window.FS.setUserVars({survey_id:t.survey.id,survicate_response_uuid_str:t.response_uuid,survicate_visitor_uuid_str:t.visitor_uuid})}}}},778(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=s(902),o=r(s(328));class n{constructor(){this.trackerRegex=/.*/,this.isEnabled=!1,this.settings={}}init(e){this.isEnabled=e.enabled,this.settings=e;let t=/.*/;e.tracker&&(e.regex?t=(0,o.default)(e.tracker_regex)||/.*/:e.tracker_names&&(t=new RegExp(`^(${e.tracker_names.map(e=>e.name).join("|")})$`))),this.trackerRegex=t}static getGA4MatchingDataStreams(e){return"object"==typeof window.google_tag_manager&&"/.*/"!==e.toString()&&this.areAnyGA4Trackers(e)?Object.keys(window.google_tag_manager).filter(t=>e.test(t)):null}static areAnyGA4Trackers(e){var t;return!!(null===(t=e.source.match(/G-\w+/g))||void 0===t?void 0:t.length)}static areOnlyGA4Trackers(e){const t=/^G-\w+$/,s=e.source,r=s.match(/\bG-\w+\b/g);return r?r.every(e=>t.test(e)):t.test(s)}static getGaMatchingTrackers(e){const t=window.ga.getAll().map(e=>e.get("name"));return this.areOnlyGA4Trackers(e)?t:t.filter(t=>e.test(t))}static getCategoryName(e){return`Survicate - ${e}`}static getActionName(e,t){let s;switch(e){case i.IntegrationEventTypes.SurveyClosed:s="Closed survey";break;case i.IntegrationEventTypes.SurveyMaximized:s="Maximized survey";break;case i.IntegrationEventTypes.SurveyMinimized:s="Minimized survey";break;case i.IntegrationEventTypes.SurveyPointAnswered:s=`Question answered - ${t}`;break;case i.IntegrationEventTypes.SurveyPointSeen:s=`Question seen - ${t}`;break;case i.IntegrationEventTypes.SurveySeen:s="Seen survey"}return s}static handleEvent(e){const{trackerNameRegex:t,eventType:s,pointContent:r,surveyName:i,pointResponses:o,interaction:a}=e,c=this.getActionName(s,r);if(!c)return;const l=this.getCategoryName(i),v=o,_={},u={};_.event_category=l,_.non_interaction=!a,v&&(_.event_label=v);const d=n.getGA4MatchingDataStreams(t);(null==d?void 0:d.length)&&(_.send_to=d),window.google_tag_manager&&Object.keys(window.google_tag_manager).some(e=>e.startsWith("GTM-"))&&"function"!=typeof window.gtag&&window.dataLayer&&(window.gtag=function(){window.dataLayer.push(arguments)}),"function"==typeof window.gtag&&window.gtag("event",c,_),"function"==typeof window.ga&&(u.hitType="event",u.eventCategory=l,u.eventAction=c,u.nonInteraction=!a,v&&(u.eventLabel=v),window.ga(()=>{n.getGaMatchingTrackers(t).forEach(e=>{window.ga(`${e}.send`,u)})}))}pushEvent(e,t,s){if(this.isEnabled&&s&&s.google_analytics&&s.google_analytics.on_response){let r;r=s.google_analytics.anonymize&&"anonymizedTextResponse"in t?t.anonymizedTextResponse:t.textResponse;let o=!0;e!==i.IntegrationEventTypes.SurveyPointSeen&&e!==i.IntegrationEventTypes.SurveySeen||(o=!1),n.handleEvent({eventType:e,interaction:o,pointContent:t.question,pointResponses:r,surveyName:t.surveyName,trackerNameRegex:this.trackerRegex})}}}t.default=new n},328(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{const t=/^\/(.*)\/(.*)$/;if(!e)return null;let s=e;t.test(s)||(s=`/${s}/`);const r=t.exec(s),i=r?r[1]:"",o=r?r[2]:void 0;try{s=new RegExp(i,o)}catch(e){return null}return s}},394(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=s(902),o=s(351),n=r(s(974)),a=r(s(778)),c=r(s(42)),l=r(s(898)),v=r(s(468)),_=[{classInstance:c.default,name:o.IntegrationNames.Segment},{classInstance:a.default,name:o.IntegrationNames.GoogleAnalytics},{classInstance:v.default,name:o.IntegrationNames.Woopra},{classInstance:n.default,name:o.IntegrationNames.Fullstory},{classInstance:l.default,name:o.IntegrationNames.Smartlook}];t.default=class{static pushEvent(e,t,s){_.forEach(({name:r,classInstance:n})=>{const a=r===o.IntegrationNames.GoogleAnalytics?e:i.EventNamesMap[r][e];n.pushEvent(a,t,s)})}}},326(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSalesforceWhitelist=t.extractSalesforceMergeTagKeys=void 0;t.extractSalesforceMergeTagKeys=e=>(null==e?void 0:e.merge_tags)&&Array.isArray(e.merge_tags)?e.merge_tags.map(e=>e.key).filter(e=>"string"==typeof e&&e.length>0):[];t.getSalesforceWhitelist=(e,s=[])=>{const r=(0,t.extractSalesforceMergeTagKeys)(e);return[...new Set([...s,...r])]}},42(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentEvents=void 0;const r=s(644);var i;!function(e){e.SurveySeen="survicate_survey_shown",e.SurveyPointAnswered="survicate_survey_answered"}(i||(t.SegmentEvents=i={}));class o{constructor(){this.isEnabledPerWorkspace=!1}init(){this.isEnabledPerWorkspace=!0}pushEvent(e,t){if(window.analytics&&this.isEnabledPerWorkspace){if(e===i.SurveyPointAnswered){if("contactForm"in t)return void o.identify(t.contactForm);o.trackAnswered(t)}e===i.SurveySeen&&o.trackSurveySeen(t.surveyName)}}static identify(e){window.analytics.identify(e)}static trackAnswered(e){e.pointType!==r.SurveyPointType.question?window.analytics.track(i.SurveyPointAnswered,{survey:e.surveyName,question:e.question,answer:e.textResponse,type:e.pointType,user_tag:e.user_tag}):window.analytics.track(i.SurveyPointAnswered,{survey:e.surveyName,question:e.question,answer:e.textResponse,type:e.pointType,answer_type:e.answer_type})}static trackSurveySeen(e){window.analytics.track(i.SurveySeen,{survey:e})}}t.default=new o},898(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.SmartlookEvents=void 0,function(e){e.SurveyPointAnswered="survicate.questionAnswered"}(s||(t.SmartlookEvents=s={}));t.default=new class{constructor(){this.isEnabled=!1}init(){this.isEnabled=!0}pushEvent(e,t){if(window.smartlook&&this.isEnabled&&e===s.SurveyPointAnswered){const e=t;if("function"!=typeof window.smartlook)return;window.smartlook("track",s.SurveyPointAnswered,{answer:e.textResponse,question:e.question,response_uuid:t.response_uuid,"survey.id":t.survey.id,"survey.name":e.surveyName})}}}},468(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WoopraEvents=void 0;const r=s(644);var i;!function(e){e.SurveySeen="survicate survey shown",e.SurveyPointAnswered="survicate survey answered"}(i||(t.WoopraEvents=i={}));class o{constructor(){this.isEnabledPerWorkspace=!1}init(){this.isEnabledPerWorkspace=!0}pushEvent(e,t){if(window.woopra&&this.isEnabledPerWorkspace){if(e===i.SurveyPointAnswered){if("contactForm"in t)return void o.identify(t.contactForm);o.trackAnswered(t)}e===i.SurveySeen&&o.trackSurveySeen(t.surveyName)}}static identify(e){window.woopra.identify(e).push()}static trackAnswered(e){e.pointType!==r.SurveyPointType.question?window.woopra.track(i.SurveyPointAnswered,{answer:e.textResponse,question:e.question,survey:e.surveyName,type:e.pointType,user_tag:e.user_tag}):window.woopra.track(i.SurveyPointAnswered,{answer:e.textResponse,answer_type:e.answer_type,question:e.question,survey:e.surveyName,type:e.pointType})}static trackSurveySeen(e){window.woopra.track(i.SurveySeen,{survey:e})}}t.default=new o},960(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAPIToAnsweredIntegrations=void 0;const r=s(124);t.getAPIToAnsweredIntegrations=({fullstory:e,sessionCam:t,smartlook:s})=>{const i={};let o=!1;if(e){const e=window.FS&&"function"==typeof window.FS.getCurrentSessionURL&&window.FS.getCurrentSessionURL(!0)||void 0;e&&(i[r.AnsweredIntegration.fullstory]=e,o=!0)}if(t){const e=window.sessionCamRecorder&&"function"==typeof window.sessionCamRecorder.sessionId&&window.sessionCamRecorder.sessionId()||void 0;e&&(i[r.AnsweredIntegration.sessionCam]=e,o=!0)}if(s){const e=null===(n=window.smartlook)||void 0===n?void 0:n.playUrl;e&&(i[r.AnsweredIntegration.smartlook]=e,o=!0)}var n;return o?i:null}},528(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.setIdentitiesFromURL=t.isIdentityProvider=void 0;const i=s(694),o=s(351),n=s(306);t.isIdentityProvider=e=>o.IdentityProvidersArray.includes(e);t.setIdentitiesFromURL=(e,s,a)=>r(void 0,void 0,void 0,function*(){const r=e[n.ReservedParams.p];if(!r||!(0,t.isIdentityProvider)(r))return;const c=(e=>{const t={};return Object.keys(e).filter(t=>{const s=!(t in n.ReservedParams)||t===n.ReservedParams.uid,r=!e[t].match(/{{.*}}/);return s&&r}).forEach(s=>{t[s]=e[s]}),t})(e);for(const e of Object.keys(c)){if(e===n.ReservedParams.uid&&r===o.Providers.Intercom){yield Promise.resolve(a.setVisitorIdentity({identityProvider:o.Providers.Intercom,key:"user_id",value:c[e]}));continue}if(e===i.USER_ID_TRAIT||e===n.ReservedParams.uid){yield Promise.resolve(a.setVisitorIdentity({identityProvider:o.Providers.Api,key:"id",value:c[e]}));continue}const t=(s.find(e=>e.provider===r)||{whitelist:[]}).whitelist||[];(i.PROVIDERS_TRAITS_WHITELIST[r]||[]).concat(t).includes(e)&&(yield Promise.resolve(a.setVisitorIdentity({identityProvider:r,key:e,value:c[e]})))}})},33(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setIdentityFromCookie=void 0;const o=i(s(733)),n=s(351),a={[n.IntegrationNames.Hubspot]:"hubspotutk",[n.IntegrationNames.Marketo]:"_mkto_trk"},c={[n.IntegrationNames.Pardot]:/^visitor_id[0-9]+$/g},l={[n.IntegrationNames.Hubspot]:"cookie",[n.IntegrationNames.Marketo]:"cookie",[n.IntegrationNames.Pardot]:"visitor_id"};t.setIdentityFromCookie=(e,t)=>r(void 0,void 0,void 0,function*(){e!==n.IntegrationNames.Pardot?yield((e,t)=>r(void 0,void 0,void 0,function*(){const s=o.default.get(a[e]);s&&(yield Promise.resolve(t.setVisitorIdentity({identityProvider:e,key:l[e],value:s})))}))(e,t):yield((e,t)=>r(void 0,void 0,void 0,function*(){for(const s of Object.keys(o.default.get()))c[e].test(s)&&(yield Promise.resolve(t.setVisitorIdentity({identityProvider:e,key:l[e],value:o.default.get(s)})))}))(e,t)})},777(e,t,s){"use strict";t.N=void 0;const r=s(306);t.N=e=>{const t={};return Object.keys(e).forEach(s=>{Object.values(r.ReservedParams).includes(s)||(t[s]=e[s])}),t}},133(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProvidersWhitelist=void 0;const r=s(694),i=s(326);t.getProvidersWhitelist=e=>{const t=Object.assign({},r.PROVIDERS_TRAITS_WHITELIST);if(e){const s=r.PROVIDERS_TRAITS_WHITELIST.salesforce||[];t.salesforce=(0,i.getSalesforceWhitelist)(e,s)}return t}},727(e,t,s){"use strict";t.S=void 0;const r=s(306);t.S=e=>{const t={};return Object.keys(e).forEach(s=>{Object.values(r.ReservedParams).includes(s)&&s!==r.ReservedParams.p||(t[s]=e[s])}),t}},32(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.setIdentitiesFromWindow=void 0;const i=s(970),o=s(351);t.setIdentitiesFromWindow=(e,t)=>r(void 0,void 0,void 0,function*(){const s=(0,i.safeGet)(()=>{var e,t,s,r;return null===(r=null===(s=null===(t=null===(e=window.amplitude)||void 0===e?void 0:e.getInstance)||void 0===t?void 0:t.call(e))||void 0===s?void 0:s.options)||void 0===r?void 0:r.userId}),r=(0,i.safeGet)(()=>{var e,t;return null===(t=null===(e=window.mixpanel)||void 0===e?void 0:e.get_distinct_id)||void 0===t?void 0:t.call(e)}),n=e.map(({provider:e,enabled:t})=>{if(e&&t)return e});n.includes(o.IntegrationNames.Amplitude)&&s&&(yield Promise.resolve(t.setVisitorIdentity({identityProvider:o.Providers.Amplitude,key:"user_id",value:s}))),n.includes(o.IntegrationNames.Mixpanel)&&r&&(yield Promise.resolve(t.setVisitorIdentity({identityProvider:o.Providers.Mixpanel,key:"distinct_id",value:r})))})},371(e,t,s){"use strict";t.dy=void 0;const r=s(133);t.dy=e=>({salesforce:(0,r.getProvidersWhitelist)(e).salesforce}),t.Ay=t.dy},621(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.setIdentitiesFromSVA=void 0;const i=s(694),o=s(351),n=s(528);t.setIdentitiesFromSVA=(e,...t)=>r(void 0,[e,...t],void 0,function*(e,t={},s={},r){for(const s of Object.keys(t)){if(!(0,n.isIdentityProvider)(s))continue;const o=t[s];for(const t of Object.keys(o)){const n=(e.find(e=>e.provider===s)||{whitelist:[]}).whitelist||[];(i.PROVIDERS_TRAITS_WHITELIST[s]||[]).concat(n).includes(t)&&(yield Promise.resolve(r.setVisitorIdentity({identityProvider:s,key:t,value:o[t]})))}}s[i.USER_ID_TRAIT]&&(yield Promise.resolve(r.setVisitorIdentity({identityProvider:o.Providers.Api,key:"id",value:s[i.USER_ID_TRAIT]})))})},885(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=s(351),n=i(s(54)),a=i(s(974)),c=i(s(778)),l=i(s(42)),v=i(s(898)),_=i(s(468)),u=s(960),d=s(33),p=s(32),m=s(621),h=s(528);t.default=class{constructor(){this.integrations=[],this.appliedURLIdentities=new Set}init(){return r(this,arguments,void 0,function*(e=[],t,s){this.integrations=e;const r=window._sva&&window._sva.integrations||{},i=window._sva&&window._sva.traits||{},u=JSON.stringify(null!=t?t:{});this.appliedURLIdentities.has(u)||(this.appliedURLIdentities.add(u),yield(0,h.setIdentitiesFromURL)(t,this.integrations,s)),yield(0,m.setIdentitiesFromSVA)(this.integrations,r,i,s),yield(0,p.setIdentitiesFromWindow)(this.integrations,s),this.integrations.forEach(e=>{if(e.enabled)switch(e.provider){case o.IntegrationNames.Marketo:case o.IntegrationNames.Hubspot:case o.IntegrationNames.Pardot:setTimeout(()=>{(0,d.setIdentityFromCookie)(e.provider,s)},5e3);break;case o.IntegrationNames.GoogleAnalytics:c.default.init(e);break;case o.IntegrationNames.Fullstory:a.default.init(e);break;case o.IntegrationNames.Segment:case o.IntegrationNames.SegmentWeb:l.default.init();break;case o.IntegrationNames.Woopra:_.default.init();break;case o.IntegrationNames.ABTesting:n.default.init(e);break;case o.IntegrationNames.Smartlook:v.default.init();case o.IntegrationNames.Salesforce:}})})}getAPIToAnsweredJsonIntegrations(){const e=this.integrations.find(e=>e.provider===o.IntegrationNames.Fullstory),t=this.integrations.find(e=>e.provider===o.IntegrationNames.SessionCam),s=this.integrations.find(e=>e.provider===o.IntegrationNames.Smartlook);return(0,u.getAPIToAnsweredIntegrations)({fullstory:!(!e||!e.enabled),sessionCam:!(!t||!t.enabled),smartlook:!(!s||!s.enabled)})}}},970(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.safeGet=function(e){try{return e()}catch(e){return}}},124(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AnsweredIntegration=void 0,function(e){e.fullstory="fullstory_url",e.sessionCam="sessioncam_id",e.smartlook="smartlook_url"}(s||(t.AnsweredIntegration=s={}))},694(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USER_ID_TRAIT=t.PROVIDERS_TRAITS_WHITELIST=void 0,t.PROVIDERS_TRAITS_WHITELIST={api:["id"],bloomreach:["registered"],braze:["braze_id","external_id"],customerio:["cio_id","external_id"],intercom:["user_id","uid"],marketo:["lead_id"],pardot:["prospect_id"],salesforce:["contact_id","lead_id","account_id","case_id","case_number","event_id","opportunity_id","contract_id","event_name","event_location"],zendesk:["t_id"]},t.USER_ID_TRAIT="user_id"},890(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.FullStoryEvents=void 0,function(e){e.SurveyPointAnswered="Survicate question answered"}(s||(t.FullStoryEvents=s={}))},902(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventNamesMap=t.IntegrationEventTypes=void 0;const r=s(351),i=s(890),o=s(798),n=s(158),a=s(499);var c;!function(e){e.SurveyMinimized="SurveyMinimized",e.SurveyClosed="SurveyClosed",e.SurveyMaximized="SurveyMaximized",e.SurveySeen="SurveySeen",e.SurveyPointAnswered="SurveyPointAnswered",e.SurveyPointSeen="SurveyPointSeen"}(c||(t.IntegrationEventTypes=c={})),t.EventNamesMap={[r.IntegrationNames.Woopra]:{[c.SurveySeen]:a.WoopraEvents.SurveySeen,[c.SurveyPointAnswered]:a.WoopraEvents.SurveyPointAnswered},[r.IntegrationNames.Segment]:{[c.SurveySeen]:o.SegmentEvents.SurveySeen,[c.SurveyPointAnswered]:o.SegmentEvents.SurveyPointAnswered},[r.IntegrationNames.Fullstory]:{[c.SurveyPointAnswered]:i.FullStoryEvents.SurveyPointAnswered},[r.IntegrationNames.Smartlook]:{[c.SurveyPointAnswered]:n.SmartlookEvents.SurveyPointAnswered}}},798(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentEvents=void 0,function(e){e.SurveySeen="survicate_survey_shown",e.SurveyPointAnswered="survicate_survey_answered"}(s||(t.SegmentEvents=s={}))},158(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.SmartlookEvents=void 0,function(e){e.SurveyPointAnswered="survicate.questionAnswered"}(s||(t.SmartlookEvents=s={}))},499(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.WoopraEvents=void 0,function(e){e.SurveySeen="survicate survey shown",e.SurveyPointAnswered="survicate survey answered"}(s||(t.WoopraEvents=s={}))},644(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.SurveyPointType=void 0,function(e){e.question="SurveyQuestion",e.nps="SurveyNps",e.form="SurveyForm",e.cta="SurveyCta"}(s||(t.SurveyPointType=s={}))},656(e,t){"use strict";var s,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.SmileyScalePossibleAnswers=t.SurveyQuestionAnswerType=t.TimeUnit=t.RatingShape=void 0,function(e){e.hearts="hearts",e.stars="stars",e.thumbs="thumbs"}(s||(t.RatingShape=s={})),function(e){e.day="DD",e.month="MM",e.year="YYYY"}(r||(t.TimeUnit=r={})),function(e){e.single="single",e.multiple="multiple",e.text="text",e.smileyScale="smiley_scale",e.date="date",e.rating="rating",e.dropdown="dropdown_list",e.form="form",e.matrix="matrix",e.ranking="ranking",e.numericalScale="numerical_scale",e.customerSatisfaction="csat"}(i||(t.SurveyQuestionAnswerType=i={})),function(e){e.verySad="Extremely unsatisfied",e.sad="Unsatisfied",e.neutral="Neutral",e.happy="Happy",e.veryHappy="Extremely happy"}(o||(t.SmileyScalePossibleAnswers=o={}))},306(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.ReservedParams=void 0,function(e){e.aid="aid",e.multiple_responses="multiple_responses",e.sid="sid",e.uid="uid",e.p="p",e.autofocus="autofocus"}(s||(t.ReservedParams=s={}))},351(e,t){"use strict";var s,r;Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityProvidersArray=t.IntegrationNames=t.Providers=void 0,function(e){e.Intercom="intercom",e.Api="api",e.Salesforce="salesforce",e.CustomerIO="customerio",e.Vero="vero",e.Boomtrain="boomtrain",e.Amplitude="amplitude",e.Mixpanel="mixpanel"}(s||(t.Providers=s={})),function(e){e.Marketo="marketo",e.Hubspot="hubspot",e.Pardot="pardot",e.GoogleAnalytics="google_analytics",e.Segment="segment",e.SegmentWeb="segment_web",e.Woopra="woopra",e.SessionCam="sessioncam",e.Fullstory="fullstory",e.ABTesting="ab_testing",e.Optimizely="optimizely",e.Intercom="intercom20",e.Zendesk="zendesk",e.Mixpanel="mixpanel",e.Amplitude="amplitude",e.Smartlook="smartlook",e.Salesforce="salesforce"}(r||(t.IntegrationNames=r={})),t.IdentityProvidersArray=[s.Intercom,s.Api,s.Salesforce,s.CustomerIO,s.Vero,s.Boomtrain,r.Marketo,r.Hubspot,r.Pardot,r.Zendesk]},880(e){e.exports=function(e){var t={};function s(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,s),i.l=!0,i.exports}return s.m=e,s.c=t,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)s.d(r,i,function(t){return e[t]}.bind(null,i));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=90)}({17:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r=s(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var s=t.match(e);return s&&s.length>0&&s[1]||""},e.getSecondMatch=function(e,t){var s=t.match(e);return s&&s.length>1&&s[2]||""},e.matchAndReturnConst=function(e,t,s){if(e.test(t))return s},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});t.push(0);var s=t[0],r=t[1];if(10===s)switch(r){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(s){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,s,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(s),n=Math.max(i,o),a=0,c=e.map([t,s],function(t){var s=n-e.getVersionPrecision(t),r=t+new Array(s+1).join(".0");return e.map(r.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(r&&(a=n-Math.min(i,o)),n-=1;n>=a;){if(c[0][n]>c[1][n])return 1;if(c[0][n]===c[1][n]){if(n===a)return 0;n-=1}else if(c[0][n]<c[1][n])return-1}},e.map=function(e,t){var s,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(s=0;s<e.length;s+=1)r.push(t(e[s]));return r},e.find=function(e,t){var s,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(s=0,r=e.length;s<r;s+=1){var i=e[s];if(t(i,s))return i}},e.assign=function(e){for(var t,s,r=e,i=arguments.length,o=new Array(i>1?i-1:0),n=1;n<i;n++)o[n-1]=arguments[n];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var a=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){r[t]=e[t]})};for(t=0,s=o.length;t<s;t+=1)a();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,s){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},t.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},t.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},t.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},t.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=s(91))&&r.__esModule?r:{default:r},o=s(18);function n(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){}var t,s,r;return e.getParser=function(e,t,s){if(void 0===t&&(t=!1),void 0===s&&(s=null),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t,s)},e.parse=function(e,t){return void 0===t&&(t=null),new i.default(e,t).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(s=null)&&n(t.prototype,s),r&&n(t,r),e}();t.default=a,e.exports=t.default},91:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r=c(s(92)),i=c(s(93)),o=c(s(94)),n=c(s(95)),a=c(s(17));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t,s){if(void 0===t&&(t=!1),void 0===s&&(s=null),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e;var r=!1;"boolean"==typeof t?(r=t,this._hints=s):this._hints=null!=t&&"object"==typeof t?t:null,this.parsedResult={},!0!==r&&this.parse()}var t=e.prototype;return t.getHints=function(){return this._hints},t.hasBrand=function(e){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var t=e.toLowerCase();return this._hints.brands.some(function(e){return e.brand&&e.brand.toLowerCase()===t})},t.getBrandVersion=function(e){if(this._hints&&Array.isArray(this._hints.brands)){var t=e.toLowerCase(),s=this._hints.brands.find(function(e){return e.brand&&e.brand.toLowerCase()===t});return s?s.version:void 0}},t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(r.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA(),this)),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,s={},r=0,i={},o=0;if(Object.keys(e).forEach(function(t){var n=e[t];"string"==typeof n?(i[t]=n,o+=1):"object"==typeof n&&(s[t]=n,r+=1)}),r>0){var n=Object.keys(s),c=a.default.find(n,function(e){return t.isOS(e)});if(c){var l=this.satisfies(s[c]);if(void 0!==l)return l}var v=a.default.find(n,function(e){return t.isPlatform(e)});if(v){var _=this.satisfies(s[v]);if(void 0!==_)return _}}if(o>0){var u=Object.keys(i),d=a.default.find(u,function(e){return t.isBrowser(e,!0)});if(void 0!==d)return this.compareVersion(i[d])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var s=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=a.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===s},t.compareVersion=function(e){var t=[0],s=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(s=e.substr(1),"="===e[1]?(r=!0,s=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?s=e.substr(1):"~"===e[0]&&(r=!0,s=e.substr(1)),t.indexOf(a.default.compareVersions(i,s,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=l,e.exports=t.default},92:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=s(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,n=[{test:[/gptbot/i],describe:function(e){var t={name:"GPTBot"},s=i.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/chatgpt-user/i],describe:function(e){var t={name:"ChatGPT-User"},s=i.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/oai-searchbot/i],describe:function(e){var t={name:"OAI-SearchBot"},s=i.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(e){var t={name:"ClaudeBot"},s=i.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(e){var t={name:"Omgilibot"},s=i.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/diffbot/i],describe:function(e){var t={name:"Diffbot"},s=i.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/perplexitybot/i],describe:function(e){var t={name:"PerplexityBot"},s=i.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/perplexity-user/i],describe:function(e){var t={name:"Perplexity-User"},s=i.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/youbot/i],describe:function(e){var t={name:"YouBot"},s=i.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/meta-webindexer/i],describe:function(e){var t={name:"Meta-WebIndexer"},s=i.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/meta-externalads/i],describe:function(e){var t={name:"Meta-ExternalAds"},s=i.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/meta-externalagent/i],describe:function(e){var t={name:"Meta-ExternalAgent"},s=i.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/meta-externalfetcher/i],describe:function(e){var t={name:"Meta-ExternalFetcher"},s=i.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},s=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/linespider/i],describe:function(e){var t={name:"Linespider"},s=i.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/amazonbot/i],describe:function(e){var t={name:"AmazonBot"},s=i.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/bingbot/i],describe:function(e){var t={name:"BingCrawler"},s=i.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/baiduspider/i],describe:function(e){var t={name:"BaiduSpider"},s=i.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/duckduckbot/i],describe:function(e){var t={name:"DuckDuckBot"},s=i.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/ia_archiver/i],describe:function(e){var t={name:"InternetArchiveCrawler"},s=i.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(e){var t={name:"SlackBot"},s=i.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},s=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/PaleMoon/i],describe:function(e){var t={name:"Pale Moon"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},s=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},s=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},s=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},s=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},s=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},s=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},s=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},s=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},s=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},s=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},s=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},s=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},s=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return s&&(t.version=s),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},s=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},s=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},s=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},s=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},s=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},s=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/librewolf/i],describe:function(e){var t={name:"LibreWolf"},s=i.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},s=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},s=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(e){var t={name:"Sogou Browser"},s=i.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,e),r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),o=i.default.getFirstMatch(/se ([\d.]+)x/i,e),n=s||r||o;return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},s=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){return!!e.hasBrand("DuckDuckGo")||e.test(/\sDdg\/[\d.]+$/i)},describe:function(e,t){var s={name:"DuckDuckGo"};if(t){var r=t.getBrandVersion("DuckDuckGo");if(r)return s.version=r,s}var o=i.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,e);return o&&(s.version=o),s}},{test:function(e){return e.hasBrand("Brave")},describe:function(e,t){var s={name:"Brave"};if(t){var r=t.getBrandVersion("Brave");if(r)return s.version=r,s}return s}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},s=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},s=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},s=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){var t=!e.test(/like android/i),s=e.test(/android/i);return t&&s},describe:function(e){var t={name:"Android Browser"},s=i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},s=i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},s=i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=n,e.exports=t.default},93:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=s(17))&&r.__esModule?r:{default:r},o=s(18),n=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),s=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:s}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},s=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return s&&(t.version=s),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),s=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return s&&(r.versionName=s),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:[/OpenHarmony/i],describe:function(e){var t=i.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.HarmonyOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),s=e.test(/android/i);return t&&s},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),s=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return s&&(r.versionName=s),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),s={name:o.OS_MAP.WebOS};return t&&t.length&&(s.version=t),s}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=n,e.exports=t.default},94:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=s(17))&&r.__esModule?r:{default:r},o=s(18),n=[{test:[/googlebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",s={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(s.model=t),s}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),s=e.test(/like (ipod|iphone)/i);return t&&!s},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(e){var t=i.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),s={type:o.PLATFORMS_MAP.mobile,vendor:"Nokia"};return t&&(s.model=t),s}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=n,e.exports=t.default},95:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=s(17))&&r.__esModule?r:{default:r},o=s(18),n=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},s=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},s=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){var t=e.test(/gecko/i),s=e.test(/like gecko/i);return t&&!s},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},s=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},s=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}}];t.default=n,e.exports=t.default}})},817(e,t,s){"use strict";s.d(t,{A:()=>a});var r=s(601),i=s.n(r),o=s(314),n=s.n(o)()(i());n.push([e.id,'.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#survicate-box h1,#survicate-box h2,#survicate-box h3,#survicate-box h4{color:#29292a;font-weight:400;margin:0 0 16px;padding:0}#survicate-box .h1,#survicate-box h1{font-size:24px}#survicate-box .h2,#survicate-box h2{font-size:18px}#survicate-box .h3,#survicate-box h3{font-size:16px}#survicate-box .h4,#survicate-box h4{font-size:14px}#survicate-box{/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */}#survicate-box html{line-height:1.15;-webkit-text-size-adjust:100%}#survicate-box body{margin:0}#survicate-box h1{font-size:2em;margin:.67em 0}#survicate-box hr{box-sizing:content-box;height:0;overflow:visible}#survicate-box pre{font-family:monospace,monospace;font-size:1em}#survicate-box a{background-color:transparent}#survicate-box abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}#survicate-box b,#survicate-box strong{font-weight:bolder}#survicate-box code,#survicate-box kbd,#survicate-box samp{font-family:monospace,monospace;font-size:1em}#survicate-box small{font-size:80%}#survicate-box sub,#survicate-box sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}#survicate-box sub{bottom:-.25em}#survicate-box sup{top:-.5em}#survicate-box img{border-style:none}#survicate-box button,#survicate-box input,#survicate-box optgroup,#survicate-box select,#survicate-box textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}#survicate-box button,#survicate-box input{overflow:visible}#survicate-box button,#survicate-box select{text-transform:none}#survicate-box [type=button],#survicate-box [type=reset],#survicate-box [type=submit],#survicate-box button{-webkit-appearance:button}#survicate-box [type=button]::-moz-focus-inner,#survicate-box [type=reset]::-moz-focus-inner,#survicate-box [type=submit]::-moz-focus-inner,#survicate-box button::-moz-focus-inner{border-style:none;padding:0}#survicate-box [type=button]:-moz-focusring,#survicate-box [type=reset]:-moz-focusring,#survicate-box [type=submit]:-moz-focusring,#survicate-box button:-moz-focusring{outline:1px dotted ButtonText}#survicate-box fieldset{padding:.35em .75em .625em}#survicate-box legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}#survicate-box progress{vertical-align:baseline}#survicate-box textarea{overflow:auto}#survicate-box [type=checkbox],#survicate-box [type=radio]{box-sizing:border-box;padding:0}#survicate-box [type=number]::-webkit-inner-spin-button,#survicate-box [type=number]::-webkit-outer-spin-button{height:auto}#survicate-box [type=search]{-webkit-appearance:textfield;outline-offset:-2px}#survicate-box [type=search]::-webkit-search-decoration{-webkit-appearance:none}#survicate-box ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}#survicate-box details{display:block}#survicate-box summary{display:list-item}#survicate-box [hidden],#survicate-box template{display:none}#survicate-box .sv__answer-hint{font-size:12px;font-weight:600;line-height:20px;margin-bottom:8px;text-align:left}#survicate-box .sv__answer-hint+.sv__choice-button-wrapper{margin-top:8px}#survicate-box .sv__multiple-choice .sv__choice-button .sv__textarea-wrapper .sv--color-answer.sv__answer-hint,#survicate-box .sv__single-choice .sv__choice-button .sv__textarea-wrapper .sv--color-answer.sv__answer-hint{font-size:14px;font-weight:600}#survicate-box .sv__footer{display:inline-block;font-size:11px;padding:0 5px}#survicate-box .sv__labels{display:flex;justify-content:space-between;margin:24px 0}#survicate-box .sv__labels .sv__label{font-size:12px}#survicate-box .sv__labels .sv__label--left{margin-right:5px}#survicate-box .sv__labels .sv__label--right{margin-left:5px}#survicate-box .sv__progress-bar{height:4px;left:0;position:absolute;top:0;width:100%}#survicate-box .sv__progress-bar>div{height:100%}#survicate-box .sv__opened-in-new-tab{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;text-align:center}#survicate-box :host .sv__opened-in-new-tab{height:100%}#survicate-box .sv__opened-in-new-tab p{font-family:Open sans,sans-serif!important;font-size:21px}#survicate-box .sv__branded-footer,#survicate-box .sv__branded-footer__content{align-items:center;display:flex}#survicate-box .sv__branded-footer{justify-content:center}#survicate-box .sv__branded-footer:before{border-top:1px solid #c2cbcb;content:"";left:24px;position:absolute;transform:translateY(-39px);width:calc(100% - 48px)}#survicate-box .sv__branded-footer__content{transform:translateX(16px)}#survicate-box .sv__branded-footer__content .sv__branded-footer__text{color:#7f8c8d;font-family:Open sans,sans-serif!important;font-size:12px}#survicate-box .sv__branded-footer__content .sv__survicate-wordmark{height:10px}#survicate-box .sv__disclaimer{padding-top:16px;text-align:left}#survicate-box .sv__disclaimer__body{border-top-style:solid;border-top-width:1px;padding-bottom:16px;padding-top:16px}#survicate-box .sv__disclaimer__text,#survicate-box .sv__disclaimer__title{font-size:12px;margin:0;overflow-wrap:break-word}#survicate-box .sv__disclaimer__text a,#survicate-box .sv__disclaimer__text b,#survicate-box .sv__disclaimer__text em,#survicate-box .sv__disclaimer__text i,#survicate-box .sv__disclaimer__text strong,#survicate-box .sv__disclaimer__title a,#survicate-box .sv__disclaimer__title b,#survicate-box .sv__disclaimer__title em,#survicate-box .sv__disclaimer__title i,#survicate-box .sv__disclaimer__title strong{color:inherit;font-size:inherit}#survicate-box .sv__disclaimer__text a,#survicate-box .sv__disclaimer__title a{cursor:pointer;text-decoration:underline}#survicate-box .sv__disclaimer__title{font-weight:600;padding-bottom:8px}#survicate-box .sv__rtl-lang .sv__disclaimer,#survicate-box .sv__rtl-lang .sv__disclaimer__body{text-align:right}#survicate-box .sv__tooltip-container{display:inline-block;position:relative}#survicate-box .sv__tooltip-container .sv__tooltip{background-color:#000;border-radius:4px;bottom:120%;color:#fff;font-size:14px;height:40px;left:50%;padding:8px 12px;position:absolute;text-align:center;transform:translateX(-50%);transition:opacity .2s ease-in-out;white-space:nowrap;z-index:2147483647}#survicate-box .sv__tooltip-container .sv__tooltip--with-caret.sv__tooltip:after{border:6px solid transparent;border-top-color:#000;content:"";left:50%;position:absolute;top:100%;transform:translateX(-50%)}#survicate-box .sv__confirmation.sv__confirmation--disclaimer{align-items:center;border-radius:0;border-top:1px solid;display:flex;margin:0;padding:16px 0}#survicate-box .sv__confirmation.sv__confirmation--disclaimer .checkbox-label{width:auto}#survicate-box .sv__confirmation.sv__confirmation--disclaimer .sv__checkbox{margin-left:0;transform:none}#survicate-box .sv__confirmation .sv__checkbox{min-width:20px}#survicate-box .sv__confirmation .sv__confirmation__agreement-label{overflow-wrap:break-word;overflow-x:auto}#survicate-box .sv__confirmation .sv__confirmation__agreement-label a,#survicate-box .sv__confirmation .sv__confirmation__agreement-label b,#survicate-box .sv__confirmation .sv__confirmation__agreement-label i,#survicate-box .sv__confirmation .sv__confirmation__agreement-label strong{color:inherit;font-size:inherit}#survicate-box .sv__confirmation .sv__confirmation__agreement-label a{cursor:pointer;text-decoration:underline}#survicate-box .sv__contact-form .sv__disclaimer .sv__confirmation.sv__confirmation--disclaimer{padding:16px 0}#survicate-box .sv__rtl-lang .sv__confirmation.sv__confirmation--disclaimer .sv__checkbox{margin-left:10px}#survicate-box .sv__point-image{border-radius:6px;height:auto}#survicate-box .sv__point-image__container{display:flex;justify-content:center;position:relative}#survicate-box .sv__point-image__container img{max-width:100%}#survicate-box .sv__point-image__container--loading{margin:20px 0;width:100%}@keyframes spinnerRotation{to{transform:rotate(1turn)}}#survicate-box .sv__spinner{left:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:100%;z-index:100}#survicate-box .sv__spinner:before{animation:spinnerRotation .9s linear infinite;aspect-ratio:1;border-radius:50%;border-style:solid;border-width:4px;box-sizing:border-box;content:"";display:inline-block;height:30px}#survicate-box .sv__submit-button__wrapper{display:flex}#survicate-box .sv__submit-button__wrapper .sv__navigation-button{margin:initial}#survicate-box .sv__submit-button__wrapper .sv__navigation-button--back{margin-right:16px}#survicate-box .sv__submit-button__wrapper .sv__submit-button.sv__navigation-button{overflow:auto;word-break:break-word}#survicate-box .sv__submit-button__wrapper .sv__submit-button.sv__navigation-button.sv__navigation-button--back{margin-right:16px}#survicate-box .sv__submit-button__wrapper .sv__submit-button.sv__navigation-button.sv__navigation-button--back .sv__navigation-button__arrow{border-style:solid;border-width:0 2px 2px 0;display:block;transform:rotate(135deg)}#survicate-box .sv__position-mobile .sv__navigation-button{width:48%}#survicate-box .sv__position-mobile .sv__navigation-button .sv__navigation-button__text{max-width:48%}#survicate-box .sv__position-mobile .sv__navigation-button:first-child{margin-left:0}#survicate-box .sv__position-mobile .sv__navigation-button:last-child{margin-right:0}#survicate-box .sv__dot-loader-container{border-top:1px solid;display:flex;justify-content:center;width:100%}#survicate-box .sv__dot-loader{display:flex;justify-content:space-between;margin:16px 0;width:13px}#survicate-box .sv__dot-loader__dot{animation:growShrink 1s infinite;border-radius:50%;height:3px;width:3px}#survicate-box .sv__dot-loader__dot:nth-child(2){animation-delay:.2s}#survicate-box .sv__dot-loader__dot:nth-child(3){animation-delay:.4s}@keyframes growShrink{0%,to{transform:scale(1)}50%{transform:scale(1.333)}}#survicate-box .sv__language-selector{position:relative}#survicate-box .sv__language-selector__trigger{align-items:center;background-color:transparent;border:none;border-radius:6px;box-sizing:border-box;cursor:pointer;display:inline-flex;justify-content:center;min-height:32px;min-width:32px;padding:4px}#survicate-box .sv__language-selector__trigger:focus,#survicate-box .sv__language-selector__trigger:hover,#survicate-box .sv__language-selector__trigger[aria-expanded=true]{outline:none}#survicate-box .sv__language-selector__trigger:focus-visible{outline:2px solid;outline-offset:2px}#survicate-box .sv__language-selector__icon{color:inherit;display:block;flex-shrink:0;height:20px;width:22px}#survicate-box .sv__language-selector__icon svg{display:block;height:100%;width:100%}#survicate-box .sv__language-selector__trigger--full{border:1px solid;border-radius:6px;min-height:40px;min-width:100px;padding:8px 12px}#survicate-box .sv__language-selector__trigger-inner{align-items:center;display:inline-flex;gap:6px}#survicate-box .sv__language-selector__trigger--full .sv__language-selector__label{font-size:12px}#survicate-box .sv__language-selector__trigger--full .sv__language-selector__chevron{flex-shrink:0;transition:transform .2s ease}#survicate-box .sv__language-selector__trigger--full .sv__language-selector__chevron--open{transform:rotate(180deg)}#survicate-box .sv__language-selector__trigger--full .sv__language-selector__chevron svg{display:block}#survicate-box .sv__language-selector__list{border:1px solid transparent;border-radius:6px;list-style:none;margin:4px 0 0;max-height:240px;min-width:120px;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;right:0;top:100%;z-index:10}#survicate-box .sv__language-selector__option{cursor:pointer;font-size:12px;padding:8px 12px;text-align:start}#survicate-box .sv__language-selector__option[dir=rtl]{text-align:right}#survicate-box .sv__language-selector__option--selected{font-weight:600}#survicate-box .sv__language-selector__option:focus{outline:none}#survicate-box .sv__language-selector__option:focus-visible{outline:2px solid currentColor;outline-offset:-2px}#survicate-box .sv__language-selector__option:first-child{border-radius:6px 6px 0 0}#survicate-box .sv__language-selector__option:last-child{border-radius:0 0 6px 6px}#survicate-box .sv__language-selector__option:only-child{border-radius:6px}#survicate-box .sv__rtl-lang .sv__language-selector__trigger{margin-right:0}#survicate-box .sv__rtl-lang .sv__language-selector__list{left:0;right:auto}#survicate-box .sv__notification-banner{align-items:center;background-color:#fff1d7;display:flex;height:64px;padding:16px 20px}#survicate-box .sv__notification-banner__text{color:#664a16}#survicate-box .sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#survicate-box .sv__choice-button{overflow-wrap:break-word}#survicate-box .sv__choice-button .sv__textarea{font-size:14px}#survicate-box .sv__rtl-lang .sv__choice-button-wrapper .sv__choice-button{text-align:right}#survicate-box .sv__date{border:2px solid transparent;border-radius:6px;display:block;justify-content:flex-start}#survicate-box .sv__date__input{background-color:transparent;border:none;font-weight:400}#survicate-box .sv__date__input:focus{border-color:transparent!important}#survicate-box .sv__date.sv__invalid{background-color:#ffedea!important;border-style:solid;border-width:2px}#survicate-box .sv__date.sv__invalid.focused{border-color:#e33a22!important}#survicate-box .sv__date.sv__invalid .sv__date__input{background-color:transparent}#survicate-box .sv__date.sv__invalid .sv__date__separator{color:#e33a22!important}#survicate-box .sv__dropdown__wrapper{margin:25px auto 0;position:relative}#survicate-box .sv__dropdown__wrapper .sv__select-buttons .sv__select-icon{align-items:center;display:flex;height:44px;justify-content:center;right:0;top:2px;width:46px}#survicate-box .sv__dropdown__wrapper .sv__select-buttons .sv__select-icon.sv__select__clear-input{right:0}#survicate-box .sv__dropdown__wrapper .sv__select input{cursor:text}#survicate-box .sv__dropdown__wrapper .sv__select input:focus{padding:14px}#survicate-box .sv__dropdown__wrapper .sv__select input,#survicate-box .sv__dropdown__wrapper .sv__select input:focus{padding-right:48px;text-overflow:ellipsis}#survicate-box .sv__dropdown__wrapper .sv__select .sv__caret svg{transform:scale(1.5)}#survicate-box .sv__dropdown__wrapper .sv__select--open .sv__caret svg{transform:scale(1.5) rotate(180deg) translateY(2px)}#survicate-box .sv__dropdown__wrapper .sv__select .sv__select-list{margin-top:8px}#survicate-box .sv__dropdown__wrapper .sv__validation{top:11px}@media(max-width:1181px){#survicate-box .sv-box-child .sv__dropdown__wrapper .sv__validation{top:-26px}}#survicate-box .sv__dropdown__wrapper .sv-invalid .sv__clear-input-icon svg g rect,#survicate-box .sv__dropdown__wrapper .sv-invalid .sv__clear-input-icon svg path{fill:#e33a22!important}#survicate-box .sv__nps .sv__buttons{display:flex;justify-content:space-between}#survicate-box .sv__nps--vertical{margin:auto;width:100%}#survicate-box .sv__rating{text-align:center}#survicate-box .sv__rating__wrapper{flex-direction:column;margin:0 auto}#survicate-box .sv__rating__wrapper .sv__buttons{flex-direction:row}#survicate-box .sv__rating__wrapper .sv__buttons .sv__button{background:none;margin-bottom:0;margin-top:0;padding:0}#survicate-box .sv__rating__wrapper .sv__buttons .sv__button:first-child{margin-left:0}#survicate-box .sv__rating__wrapper .sv__buttons .sv__button:last-child{margin-right:0}#survicate-box .sv__rating__wrapper .sv__buttons .sv__button--selected{border:none}#survicate-box .sv__rating__number{font-weight:400}#survicate-box .sv__smiley-scale{margin:auto;text-align:center}#survicate-box .sv__smiley-scale .sv__selected{transform:scale(1.2)}#survicate-box .sv__smiley-scale.sv__three-smileys{text-align:center}#survicate-box .sv__smiley-scale.sv__three-smileys .sv__smiley-scale__buttons .sv__smiley-scale__button:first-child{margin-right:22px}#survicate-box .sv__smiley-scale.sv__three-smileys .sv__smiley-scale__buttons .sv__smiley-scale__button:last-child{margin-left:22px}#survicate-box .sv__smiley-scale__wrapper{display:inline-flex;flex-direction:column;margin:0 auto}#survicate-box .sv__smiley-scale__buttons{display:flex;justify-content:center}#survicate-box .sv__smiley-scale__button{background:none;border-radius:50%;height:59px;margin:0 20px;padding:0;transition:transform .2s ease-out;width:59px}#survicate-box .sv__smiley-scale__button:first-child{margin-left:0}#survicate-box .sv__smiley-scale__button:last-child{margin-right:0}#survicate-box .sv__smiley-scale__button:hover{transform:scale(1.1)}#survicate-box .sv__smiley-scale__icon-container{background-repeat:no-repeat;background-size:contain;display:block;height:100%;position:relative;width:100%}#survicate-box .sv__matrix-widget .sv__choice-button-wrapper .sv__textarea-wrapper{height:max-content;padding-bottom:0}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-animation-wrapper{box-sizing:border-box}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown{height:unset;justify-content:space-between;margin-bottom:8px;min-height:64px;padding:16px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__matrix-answer{overflow:hidden;width:inherit}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__matrix-answer .sv__answer-text,#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__matrix-answer .sv__matrix-answer--selected{overflow:inherit;text-overflow:ellipsis;white-space:normal;width:95%}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__matrix-answer--selected{font-size:12px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__caret{align-items:center;display:flex;height:24px;justify-content:center;width:24px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__caret svg{height:12px;transform:rotate(180deg);width:20px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown--closed.sv__choice-button{height:64px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown--closed.sv__choice-button svg{transform:none}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown--closed.sv__choice-button .sv__matrix-answer .sv__answer-text,#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown--closed.sv__choice-button .sv__matrix-answer--selected{white-space:nowrap}#survicate-box .sv__matrix-row{border:2px solid transparent;border-radius:6px;display:flex;gap:5px;margin-bottom:12px;min-height:50px;padding:11px 0}#survicate-box .sv__matrix-row.sv__selected .sv__matrix-cell div{font-weight:600}#survicate-box .sv__matrix-row.sv__matrix-header{background-color:transparent}#survicate-box .sv__matrix-row:not(:first-child) .sv__matrix-cell:not(:first-child){cursor:pointer}#survicate-box .sv__matrix-cell{align-items:center;color:#7f8c8d;display:flex;flex-basis:50px;flex-grow:1;font-size:14px;font-weight:400;justify-content:center;text-align:center}#survicate-box .sv__matrix-cell:first-child{flex-basis:30%;justify-content:flex-start;padding:0 20px;text-align:left;word-break:break-word}#survicate-box .sv__matrix-cell .sv__checkbox{margin:0}#survicate-box .sv__matrix-cell .sv__checkbox.sv__circle{background-clip:content-box;border-style:solid;border-width:2px;padding:4px}#survicate-box .sv__ie .sv__matrix-cell{height:40px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown{display:flex}#survicate-box .sv-box-child.sv-mobile{font-size:16px}@media only screen and (max-device-width:812px)and (-webkit-min-device-pixel-ratio:3)and (orientation:landscape),only screen and (max-width:767px){#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop){font-size:16px}}@media only screen and (min-width:768px)and (-webkit-max-device-pixel-ratio:2),only screen and (min-width:813px){#survicate-box .sv-box-child:not(.sv-mobile) .sv__matrix-widget{max-width:256px}}#survicate-box .sv-box-child.sv-desktop .sv__matrix-widget,#survicate-box .sv-box-child.sv-tablet .sv__matrix-widget{max-width:256px}#survicate-box .sv__survey .sv__contact-form-field.sv__invalid .sv__input:focus{background-color:#ffedea!important;border-color:#c00!important;color:#e33a22!important}#survicate-box .sv__text-question .sv__text-container{position:relative}#survicate-box .sv__text-question .sv__text-container .sv__textarea.sv__has-followup-questions{margin-bottom:4px}#survicate-box .sv__text-question .sv__text-input-stats{display:flex;justify-content:flex-end;text-align:right}#survicate-box .sv__text-question .sv__text-input-stats-text{font-size:12px}#survicate-box .sv__text-question .sv__follow-up{border-top:1px solid}#survicate-box .sv__text-question .sv__follow-up .sv__point-text{margin-top:16px}#survicate-box .sv__buttons{display:flex;justify-content:center}#survicate-box .sv__buttons .sv__button{border-radius:6px}#survicate-box .sv__buttons--vertical.sv__buttons{display:flex;flex-direction:column-reverse;width:100%}#survicate-box .sv__buttons--vertical.sv__buttons .sv__button{border:none;font-weight:400;height:48px;margin:0 0 8px;overflow-wrap:break-word;width:100%}#survicate-box .sv__buttons--vertical.sv__buttons .sv__button--selected,#survicate-box .sv__buttons--vertical.sv__buttons .sv__button:active{border-style:solid;border-width:2px;font-weight:600}#survicate-box .sv__buttons--vertical.sv__buttons .sv__button--selected svg,#survicate-box .sv__buttons--vertical.sv__buttons .sv__button:active svg{margin-bottom:0}#survicate-box .sv__buttons__answer{overflow-wrap:break-word;overflow-x:auto}#survicate-box .sv__checkbox{cursor:pointer;display:inline-block;height:20px;margin-right:10px;position:relative;width:20px}#survicate-box .sv__checkbox.sv__circle{border-radius:50%}#survicate-box .sv__checkbox.sv__circle .sv__tick{border-radius:100%;height:5px;left:6px;top:4px;width:5px}#survicate-box .sv__checkbox.sv__circle label:after{background:initial;border:initial;height:auto;left:auto;position:static;top:auto;width:auto}#survicate-box .sv__checkbox.sv__square{border-radius:4px;border-style:solid;border-width:2px;margin-top:1px;transition:background-color .3s cubic-bezier(.4,0,.23,1)}#survicate-box .sv__checkbox.sv__square:after{border-radius:100%;content:"";height:36px;left:-10px;position:absolute;top:-10px;width:36px}#survicate-box .sv__checkbox.sv__square svg{border-radius:3px;height:100%;position:absolute;transform:scale(1.2);width:100%}#survicate-box .sv__checkbox .sv__tick{display:none;display:block;position:absolute}#survicate-box .sv__checkbox.sv__circle .sv__tick{background-color:#fff;display:none;height:8px;top:6px;width:8px}#survicate-box .sv__rtl-lang .sv__checkbox{margin-left:10px;margin-right:0}#survicate-box .sv__hide-input{height:0;opacity:0;pointer-events:none;position:absolute;width:0}#survicate-box .sv__outline .sv__checkbox.sv__checkbox--focused{box-shadow:0 0 0 8px rgba(26,109,85,.2);outline:2px solid #6f27f6}#survicate-box .sv__select{border-radius:6px;position:relative;width:100%;z-index:1}#survicate-box .sv__select-icon{position:absolute;right:16px;top:10px}#survicate-box .sv__select input{border-radius:6px;cursor:pointer;font-size:16px;font-weight:400;padding:16px;width:100%}#survicate-box .sv__select--open{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:6px;border-top-right-radius:6px;z-index:100}#survicate-box .sv__select .sv__clear-input-icon{background:none;font-weight:600}#survicate-box .sv__select .sv__caret{background:none;border:none;cursor:pointer}#survicate-box .sv__select .sv__select-list{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top-left-radius:0;border-top-right-radius:0;list-style:none;margin:0;max-height:180px;overflow:auto;padding:0;position:absolute;width:100%;z-index:100}#survicate-box .sv__select .sv__select-list .sv__select-button{border:none;border-radius:0;font-size:inherit;font-weight:400;height:auto;overflow-wrap:break-word;padding:10px 16px;text-align:left;transition:none;width:100%}#survicate-box .sv__select.sv-invalid{border:none}#survicate-box .sv__select.sv-invalid input,#survicate-box .sv__select.sv-invalid input:focus{background-color:#ffedea!important;border:2px;border-color:#e33a22!important;border-style:solid;color:#e33a22!important;padding:14px}#survicate-box .sv__select.sv-invalid+.sv__submit-button__wrapper{visibility:visible}#survicate-box .sv__outline .sv__select-list .sv__select-button.sv__select-button--focused{outline:2px solid #6f27f6;outline-offset:-4px}#survicate-box .sv__rtl-lang .sv__dropdown__wrapper .sv__select-list .sv__select-button{text-align:right}#survicate-box .sv__rtl-lang .sv__dropdown__wrapper .sv__select-icon{left:16px;right:unset}#survicate-box .sv__rtl-lang .sv__dropdown__wrapper .sv__select-icon.sv__select__clear-input{left:0}#survicate-box .sv__rtl-lang .sv__dropdown__wrapper .sv__select .sv__input{padding-right:16px}#survicate-box .sv__validation{align-items:center;background-color:#e33a22;border-radius:4px;display:flex;left:100%;padding:5px 6px;position:absolute;top:36px;white-space:nowrap;width:max-content}#survicate-box .sv__validation__message{color:#fff;font-size:12px;margin-left:3px}#survicate-box .sv__validation:after{border-color:transparent #e33a22 transparent transparent;border-style:solid;border-width:4px 8px 4px 0;content:" ";height:0;left:-7px;position:absolute;top:9px;width:0}#survicate-box .sv__survey .sv__invalid input{background-color:#ffedea!important;color:#e33a22!important}#survicate-box .sv__survey .sv__invalid input:focus{border-color:#e33a22;border-width:2px}@media(max-width:1181px){#survicate-box .sv-box-child .sv__validation{left:auto;right:0;top:1px}#survicate-box .sv-box-child .sv__validation:after{border-color:#e33a22 transparent transparent;border-width:8px 4px 0;bottom:-8px;left:auto;right:10px;top:auto}}#survicate-box :host .sv-mobile .sv__validation{left:auto;right:0;top:1px}#survicate-box :host .sv-mobile .sv__validation:after{border-color:#e33a22 transparent transparent;border-width:8px 4px 0;bottom:-8px;left:auto;right:10px;top:auto}#survicate-box .sv__comment-field{border:2px solid;border-radius:6px;margin-bottom:16px;padding:4px 8px}#survicate-box .sv__comment-field .sv__textarea{border:2px solid transparent;border-radius:6px;font-size:14px;margin-top:8px;max-height:200px;min-height:80px;padding:8px;resize:none;width:100%}#survicate-box .sv__comment-field__label{display:block;font-size:14px;font-weight:600;margin-top:4px;text-align:left;word-break:break-word}#survicate-box .sv__comment-field__label span{font-size:14px;font-weight:600}#survicate-box .sv__rtl-lang .sv__comment-field__label{text-align:right}#survicate-box .sv__point .sv__point-description a,#survicate-box .sv__point .sv__point-description b,#survicate-box .sv__point .sv__point-description em,#survicate-box .sv__point .sv__point-description h1,#survicate-box .sv__point .sv__point-description h2,#survicate-box .sv__point .sv__point-description h3,#survicate-box .sv__point .sv__point-description h4,#survicate-box .sv__point .sv__point-description h5,#survicate-box .sv__point .sv__point-description i,#survicate-box .sv__point .sv__point-description small,#survicate-box .sv__point .sv__point-description strong,#survicate-box .sv__point .sv__point-question a,#survicate-box .sv__point .sv__point-question b,#survicate-box .sv__point .sv__point-question em,#survicate-box .sv__point .sv__point-question h1,#survicate-box .sv__point .sv__point-question h2,#survicate-box .sv__point .sv__point-question h3,#survicate-box .sv__point .sv__point-question h4,#survicate-box .sv__point .sv__point-question h5,#survicate-box .sv__point .sv__point-question i,#survicate-box .sv__point .sv__point-question small,#survicate-box .sv__point .sv__point-question strong,#survicate-box .sv__point .sv__point-wrapper a,#survicate-box .sv__point .sv__point-wrapper b,#survicate-box .sv__point .sv__point-wrapper em,#survicate-box .sv__point .sv__point-wrapper h1,#survicate-box .sv__point .sv__point-wrapper h2,#survicate-box .sv__point .sv__point-wrapper h3,#survicate-box .sv__point .sv__point-wrapper h4,#survicate-box .sv__point .sv__point-wrapper h5,#survicate-box .sv__point .sv__point-wrapper i,#survicate-box .sv__point .sv__point-wrapper small,#survicate-box .sv__point .sv__point-wrapper strong{color:inherit}#survicate-box .sv__point .sv__point-description a.sv__social-button,#survicate-box .sv__point .sv__point-description b.sv__social-button,#survicate-box .sv__point .sv__point-description em.sv__social-button,#survicate-box .sv__point .sv__point-description h1.sv__social-button,#survicate-box .sv__point .sv__point-description h2.sv__social-button,#survicate-box .sv__point .sv__point-description h3.sv__social-button,#survicate-box .sv__point .sv__point-description h4.sv__social-button,#survicate-box .sv__point .sv__point-description h5.sv__social-button,#survicate-box .sv__point .sv__point-description i.sv__social-button,#survicate-box .sv__point .sv__point-description small.sv__social-button,#survicate-box .sv__point .sv__point-description strong.sv__social-button,#survicate-box .sv__point .sv__point-question a.sv__social-button,#survicate-box .sv__point .sv__point-question b.sv__social-button,#survicate-box .sv__point .sv__point-question em.sv__social-button,#survicate-box .sv__point .sv__point-question h1.sv__social-button,#survicate-box .sv__point .sv__point-question h2.sv__social-button,#survicate-box .sv__point .sv__point-question h3.sv__social-button,#survicate-box .sv__point .sv__point-question h4.sv__social-button,#survicate-box .sv__point .sv__point-question h5.sv__social-button,#survicate-box .sv__point .sv__point-question i.sv__social-button,#survicate-box .sv__point .sv__point-question small.sv__social-button,#survicate-box .sv__point .sv__point-question strong.sv__social-button,#survicate-box .sv__point .sv__point-wrapper a.sv__social-button,#survicate-box .sv__point .sv__point-wrapper b.sv__social-button,#survicate-box .sv__point .sv__point-wrapper em.sv__social-button,#survicate-box .sv__point .sv__point-wrapper h1.sv__social-button,#survicate-box .sv__point .sv__point-wrapper h2.sv__social-button,#survicate-box .sv__point .sv__point-wrapper h3.sv__social-button,#survicate-box .sv__point .sv__point-wrapper h4.sv__social-button,#survicate-box .sv__point .sv__point-wrapper h5.sv__social-button,#survicate-box .sv__point .sv__point-wrapper i.sv__social-button,#survicate-box .sv__point .sv__point-wrapper small.sv__social-button,#survicate-box .sv__point .sv__point-wrapper strong.sv__social-button{color:#fff}#survicate-box .sv__point .sv__point-description a.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description b.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description em.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description h1.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description h2.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description h3.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description h4.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description h5.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description i.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description small.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description strong.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question a.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question b.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question em.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question h1.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question h2.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question h3.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question h4.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question h5.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question i.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question small.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question strong.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper a.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper b.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper em.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper h1.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper h2.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper h3.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper h4.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper h5.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper i.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper small.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper strong.sv__social-button--disabled{cursor:not-allowed;opacity:.5}#survicate-box .sv__point .sv__point-description b,#survicate-box .sv__point .sv__point-description em,#survicate-box .sv__point .sv__point-description i,#survicate-box .sv__point .sv__point-description strong,#survicate-box .sv__point .sv__point-question b,#survicate-box .sv__point .sv__point-question em,#survicate-box .sv__point .sv__point-question i,#survicate-box .sv__point .sv__point-question strong,#survicate-box .sv__point .sv__point-wrapper b,#survicate-box .sv__point .sv__point-wrapper em,#survicate-box .sv__point .sv__point-wrapper i,#survicate-box .sv__point .sv__point-wrapper strong{font-size:inherit}#survicate-box .sv__point .sv__point-description b,#survicate-box .sv__point .sv__point-description strong,#survicate-box .sv__point .sv__point-question b,#survicate-box .sv__point .sv__point-question strong,#survicate-box .sv__point .sv__point-wrapper b,#survicate-box .sv__point .sv__point-wrapper strong{font-weight:600}#survicate-box .sv__point .sv__point-description small,#survicate-box .sv__point .sv__point-question small,#survicate-box .sv__point .sv__point-wrapper small{font-size:12px}#survicate-box .sv__point .sv__point-description small a,#survicate-box .sv__point .sv__point-description small b,#survicate-box .sv__point .sv__point-description small em,#survicate-box .sv__point .sv__point-description small i,#survicate-box .sv__point .sv__point-description small strong,#survicate-box .sv__point .sv__point-question small a,#survicate-box .sv__point .sv__point-question small b,#survicate-box .sv__point .sv__point-question small em,#survicate-box .sv__point .sv__point-question small i,#survicate-box .sv__point .sv__point-question small strong,#survicate-box .sv__point .sv__point-wrapper small a,#survicate-box .sv__point .sv__point-wrapper small b,#survicate-box .sv__point .sv__point-wrapper small em,#survicate-box .sv__point .sv__point-wrapper small i,#survicate-box .sv__point .sv__point-wrapper small strong{font-size:inherit}#survicate-box *{box-sizing:border-box;font-family:Open sans,sans-serif;font-size:14px;font-weight:400;line-height:normal;outline:none}#survicate-box .sv__outline :focus{outline:2px solid #6f27f6}#survicate-box button{border:none;cursor:pointer;display:inline-block;margin:0;padding:3px}#survicate-box p{margin:0}#survicate-box a{text-decoration:none}#survicate-box .sv-invalid.sv-invalid.sv-invalid{border:1px solid #c00}#survicate-box .sv__overlay,#sv-screenshot-controls .sv__overlay{height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:999995}#survicate-box :host .sv__overlay,#sv-screenshot-controls :host .sv__overlay{height:100%;position:absolute;width:100%}#survicate-box .sv__overlay--dark,#sv-screenshot-controls .sv__overlay--dark{background-color:#000;opacity:.35}#survicate-box .sv__overlay--light,#sv-screenshot-controls .sv__overlay--light{background-color:#fff;opacity:.5}#survicate-box .sv__submit-screenshot-button-container,#sv-screenshot-controls .sv__submit-screenshot-button-container{border-top:1px solid;display:flex;margin:0 auto;width:calc(100% - 48px)}#survicate-box .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20,#sv-screenshot-controls .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20{margin-left:12px}#survicate-box .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__navigation-button--back,#survicate-box .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__submit-button,#sv-screenshot-controls .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__navigation-button--back,#sv-screenshot-controls .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__submit-button{width:96px}#survicate-box .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__navigation-button--back,#sv-screenshot-controls .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__navigation-button--back{margin-right:12px}#survicate-box .sv__screenshot-button-wrapper,#sv-screenshot-controls .sv__screenshot-button-wrapper{display:flex;margin:23px auto 0}#survicate-box .sv__screenshot-button-wrapper .sv__screenshot-button,#sv-screenshot-controls .sv__screenshot-button-wrapper .sv__screenshot-button{height:40px;padding:8px 10px}#survicate-box .sv__color-picker-input-wrapper,#survicate-box .sv__screenshot-button-wrapper,#survicate-box .sv__screenshot-button__close,#sv-screenshot-controls .sv__color-picker-input-wrapper,#sv-screenshot-controls .sv__screenshot-button-wrapper,#sv-screenshot-controls .sv__screenshot-button__close{width:40px}#survicate-box .sv__color-picker-input-wrapper,#survicate-box .sv__screenshot-button-wrapper,#survicate-box .sv__screenshot-button__close,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__color-picker-input-wrapper,#sv-screenshot-controls .sv__screenshot-button-wrapper,#sv-screenshot-controls .sv__screenshot-button__close,#sv-screenshot-controls .sv__screenshot-button__save{height:40px}#survicate-box .sv__screenshot-button-overlay,#survicate-box .sv__screenshot-button__action-buttons,#survicate-box .sv__screenshot-button__color-picker,#survicate-box .sv__screenshot-button__remove-wrapper,#sv-screenshot-controls .sv__screenshot-button-overlay,#sv-screenshot-controls .sv__screenshot-button__action-buttons,#sv-screenshot-controls .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__screenshot-button__remove-wrapper{position:fixed}#survicate-box .sv__screenshot-button__action-buttons,#sv-screenshot-controls .sv__screenshot-button__action-buttons{gap:5px;padding:unset;right:24px;top:24px}#survicate-box .sv__screenshot-button__action-buttons,#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__screenshot-button__action-buttons,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__save{display:inline-flex}#survicate-box .sv__screenshot-button__action-buttons,#survicate-box .sv__screenshot-button__remove-wrapper,#sv-screenshot-controls .sv__screenshot-button__action-buttons,#sv-screenshot-controls .sv__screenshot-button__remove-wrapper{padding-bottom:8px}#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__save{align-items:center;gap:10px;padding:5px 10px}#survicate-box .sv__screenshot-button-overlay,#sv-screenshot-controls .sv__screenshot-button-overlay{background:rgba(0,0,0,.2);cursor:crosshair;height:100vh;left:0;top:0;width:100vw}#survicate-box .sv__screenshot-button,#survicate-box .sv__screenshot-button__close,#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__screenshot-button,#sv-screenshot-controls .sv__screenshot-button__close,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__save{border:2px solid}#survicate-box .sv__screenshot-button,#survicate-box .sv__screenshot-button__close,#survicate-box .sv__screenshot-button__color-picker,#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__screenshot-button,#sv-screenshot-controls .sv__screenshot-button__close,#sv-screenshot-controls .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__save{cursor:pointer}#survicate-box .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__screenshot-button__color-picker{border:none;height:50px;left:24px;top:24px;width:50px}#survicate-box .sv__screenshot-button-overlay,#survicate-box .sv__screenshot-button-overlay__rectangle,#survicate-box .sv__screenshot-button-overlay__rectangles,#survicate-box .sv__screenshot-button__action-buttons,#survicate-box .sv__screenshot-button__color-picker,#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__remove-wrapper,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__screenshot-button-overlay,#sv-screenshot-controls .sv__screenshot-button-overlay__rectangle,#sv-screenshot-controls .sv__screenshot-button-overlay__rectangles,#sv-screenshot-controls .sv__screenshot-button__action-buttons,#sv-screenshot-controls .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__remove-wrapper,#sv-screenshot-controls .sv__screenshot-button__save{z-index:2147483647}#survicate-box .sv__color-picker-input-wrapper,#survicate-box .sv__screenshot-button__close,#survicate-box .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__color-picker-input-wrapper,#sv-screenshot-controls .sv__screenshot-button__close,#sv-screenshot-controls .sv__screenshot-button__color-picker{align-items:center;display:flex;justify-content:center}#survicate-box .sv__color-picker-input-wrapper,#survicate-box .sv__screenshot-button,#survicate-box .sv__screenshot-button__close,#survicate-box .sv__screenshot-button__color-picker,#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__color-picker-input-wrapper,#sv-screenshot-controls .sv__screenshot-button,#sv-screenshot-controls .sv__screenshot-button__close,#sv-screenshot-controls .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__save{border-radius:5px}#survicate-box .sv__color-picker-input-wrapper,#sv-screenshot-controls .sv__color-picker-input-wrapper{position:relative}#survicate-box .sv__color-picker-input-wrapper .sv__color-picker-input,#sv-screenshot-controls .sv__color-picker-input-wrapper .sv__color-picker-input{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}#survicate-box .sv__point-image,#sv-screenshot-controls .sv__point-image{margin-bottom:24px}#survicate-box .sv__point-image.sv__image-position--bottom,#sv-screenshot-controls .sv__point-image.sv__image-position--bottom{margin-top:16px}#survicate-box .sv__survey--button_link .sv__branded-footer:before,#sv-screenshot-controls .sv__survey--button_link .sv__branded-footer:before{border-top-style:hidden}#survicate-box .sv__footer__wrapper.sv__branded-footer--with-border,#sv-screenshot-controls .sv__footer__wrapper.sv__branded-footer--with-border{background-color:#fff;border-bottom-left-radius:10px;border-bottom-right-radius:10px;padding:23px 0 24px;transform:translateY(16px);width:100%}#survicate-box .sv__footer__wrapper .sv__branded-footer,#sv-screenshot-controls .sv__footer__wrapper .sv__branded-footer{padding-bottom:8px;padding-top:8px;position:unset}#survicate-box .sv__footer__wrapper .sv__branded-footer .sv__survicate-wordmark,#sv-screenshot-controls .sv__footer__wrapper .sv__branded-footer .sv__survicate-wordmark{transform:translate(-8px)}#survicate-box .sv__footer__wrapper .sv__branded-footer .sv__arrow-forward,#sv-screenshot-controls .sv__footer__wrapper .sv__branded-footer .sv__arrow-forward{height:14px;transform:translate(-24px,1px)}#survicate-box .sv__position-mobile .sv__footer__wrapper.sv__branded-footer--with-border,#sv-screenshot-controls .sv__position-mobile .sv__footer__wrapper.sv__branded-footer--with-border{border-bottom-left-radius:0;border-bottom-right-radius:0}#survicate-box .sv__survey.sv__micro-theme,#sv-screenshot-controls .sv__survey.sv__micro-theme{border-radius:10px;box-shadow:0 0 10px 5px rgba(41,41,42,.07);display:flex;flex-direction:column;max-height:664px;max-width:304px;min-width:304px;overflow:hidden;padding:0 0 16px;position:fixed;width:unset;z-index:2147483646}#survicate-box .sv__survey.sv__micro-theme.sv__rtl-lang,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__rtl-lang{direction:rtl}#survicate-box .sv__survey.sv__micro-theme.sv__survey--hidden,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--hidden{display:none}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey{border-radius:10px;margin-left:0;margin-right:0;margin-top:0;top:50%;transform:translateY(-50%);z-index:2147483645}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right{right:24px}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right.sv__feedback-survey--minimized,#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right.sv__position-mobile.sv__feedback-survey--mobile.sv__feedback-survey--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right.sv__feedback-survey--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right.sv__position-mobile.sv__feedback-survey--mobile.sv__feedback-survey--minimized{border-radius:0 0 10px 10px;margin-right:0;right:0;transform:translateY(50%) rotateY(0deg) rotate(90deg);transform-origin:right top}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left{left:24px}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left.sv__feedback-survey--minimized,#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left.sv__position-mobile.sv__feedback-survey--mobile.sv__feedback-survey--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left.sv__feedback-survey--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left.sv__position-mobile.sv__feedback-survey--mobile.sv__feedback-survey--minimized{border-radius:0 0 10px 10px;left:0;margin-left:0;transform:translateY(-50%) rotate(270deg) translateX(-50%);transform-origin:left top}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-mobile.sv__feedback-survey--mobile:not(.sv__feedback-survey--minimized),#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-mobile.sv__feedback-survey--mobile:not(.sv__feedback-survey--minimized){bottom:unset;left:24px;margin-left:0;margin-right:0;max-width:unset;min-width:unset;right:24px;width:calc(100% - 48px)}#survicate-box :host .sv__survey.sv__micro-theme,#sv-screenshot-controls :host .sv__survey.sv__micro-theme{position:absolute}#survicate-box .sv__survey.sv__micro-theme.sv__position-top-left,#survicate-box .sv__survey.sv__micro-theme.sv__position-top-right,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-top-left,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-top-right{top:0}#survicate-box .sv__survey.sv__micro-theme.sv__position-left,#survicate-box .sv__survey.sv__micro-theme.sv__position-right,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-left,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-right{bottom:0}#survicate-box .sv__survey.sv__micro-theme.sv__position-right,#survicate-box .sv__survey.sv__micro-theme.sv__position-top-right,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-right,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-top-right{right:30px}#survicate-box .sv__survey.sv__micro-theme.sv__position-left,#survicate-box .sv__survey.sv__micro-theme.sv__position-top-left,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-left,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-top-left{left:30px}#survicate-box .sv__survey.sv__micro-theme.sv__position-center,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-center{bottom:50%;max-width:608px;right:50%;transform:translate(50%,50%)}#survicate-box .sv__survey.sv__micro-theme.sv__position-fullscreen,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-fullscreen{height:100vh;justify-content:space-between}#survicate-box :host .sv__survey.sv__micro-theme.sv__position-fullscreen,#sv-screenshot-controls :host .sv__survey.sv__micro-theme.sv__position-fullscreen{height:100%}#survicate-box .sv__survey.sv__micro-theme:not(.sv__position-center),#sv-screenshot-controls .sv__survey.sv__micro-theme:not(.sv__position-center){margin:24px -6px}#survicate-box .sv__survey.sv__micro-theme.sv__minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized{align-items:center;display:inline-flex;flex-direction:row;justify-content:space-between;min-height:39px;overflow-wrap:break-word;padding:16px 24px}#survicate-box .sv__survey.sv__micro-theme.sv__minimized.sv__position-center,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized.sv__position-center{bottom:50%;right:50%;transform:translate(50%);width:auto}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__expand-area,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__expand-area{align-items:center;cursor:pointer;display:flex;flex:1;flex-direction:row;min-width:0}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions{align-items:center;display:flex;margin-left:12px}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized-symbol{align-items:center;border-radius:6px;display:flex;height:40px;justify-content:center;margin-left:0;width:40px}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized-symbol:focus,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized-symbol:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #6f27f6;outline:none}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions .sv__btn-close,#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions .sv__minimized-symbol+.sv__btn-close,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions .sv__btn-close,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions .sv__minimized-symbol+.sv__btn-close{margin-left:6px}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__text,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__text{width:75%}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized,#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:active,#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:focus,#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:hover,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:active,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:focus,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:hover{background:none;background-color:transparent;border:none;box-shadow:none}#survicate-box .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__btn-close--minimized,#survicate-box .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized .sv__btn-close,#survicate-box .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized__actions .sv__btn-close,#survicate-box .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized__actions .sv__minimized-symbol+.sv__btn-close,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__btn-close--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized .sv__btn-close,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized__actions .sv__btn-close,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized__actions .sv__minimized-symbol+.sv__btn-close{margin-left:unset;margin-right:6px}#survicate-box .sv__survey.sv__micro-theme.sv__survey--nps,#survicate-box .sv__survey.sv__micro-theme.sv__survey--numerical_scale,#survicate-box .sv__survey.sv__micro-theme.sv__survey--rating,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--nps,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--numerical_scale,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--rating{max-width:520px}#survicate-box .sv__survey.sv__micro-theme.sv__survey--matrix,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--matrix{max-width:unset}#survicate-box .sv__survey.sv__micro-theme.sv__survey--matrix .sv__matrix-wrapper,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--matrix .sv__matrix-wrapper{max-width:608px;min-width:336px}#survicate-box .sv__survey.sv__micro-theme.sv__survey--finished,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--finished{width:304px}#survicate-box .sv__survey.sv__micro-theme.sv__survey--finished.sv__survey--branded,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--finished.sv__survey--branded{background-color:#fff!important;color:#000!important}#survicate-box .sv__survey.sv__micro-theme.sv__survey--slide-out,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--slide-out{animation-duration:.3s;animation-fill-mode:forwards;animation-name:slide-out}#survicate-box .sv__survey.sv__micro-theme.sv__survey--slide-in,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--slide-in{animation-duration:.3s;animation-fill-mode:forwards;animation-name:slide-in;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}#survicate-box .sv__survey.sv__micro-theme.sv__survey--slide-down,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--slide-down{animation-duration:.3s;animation-name:slide-down}#survicate-box .sv__micro-theme.sv__survey.sv__mobile-survey.sv__position-fullscreen .sv__point,#sv-screenshot-controls .sv__micro-theme.sv__survey.sv__mobile-survey.sv__position-fullscreen .sv__point{margin:auto 0}#survicate-box .sv__micro-theme .sv__point,#sv-screenshot-controls .sv__micro-theme .sv__point{max-height:none;overflow-y:auto;padding:0}#survicate-box .sv__micro-theme .sv__point::-webkit-scrollbar,#sv-screenshot-controls .sv__micro-theme .sv__point::-webkit-scrollbar{background-color:transparent;width:4px}#survicate-box .sv__micro-theme .sv__point::-webkit-scrollbar-thumb,#sv-screenshot-controls .sv__micro-theme .sv__point::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border-radius:4px}#survicate-box .sv__micro-theme .sv__point-wrapper,#sv-screenshot-controls .sv__micro-theme .sv__point-wrapper{box-sizing:content-box;overflow:hidden;padding-bottom:0;padding-left:24px;padding-right:24px}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper{display:flex;flex-direction:column}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper--image-bottom,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper--image-bottom{flex-direction:column-reverse}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text{hyphens:auto;margin:0 0 8px;overflow-wrap:anywhere;text-align:left}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-description,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-description{font-size:12px;line-height:19px;margin:4px 0}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-question,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-question{font-size:14px;font-weight:600;line-height:22px;margin-bottom:16px}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-description a,#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-question a,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-description a,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-question a{font-size:inherit;font-weight:inherit;text-decoration:underline}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__point .sv__point-wrapper .sv__point-text,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__point .sv__point-wrapper .sv__point-text{margin-right:4px;text-align:right}#survicate-box .sv__micro-theme .sv__contact-form,#sv-screenshot-controls .sv__micro-theme .sv__contact-form{display:flex;flex-direction:column}#survicate-box .sv__micro-theme .sv__contact-form-field,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field{border-radius:6px;margin-bottom:8px;margin-top:0;position:relative;width:100%}#survicate-box .sv__micro-theme .sv__contact-form-field:last-child,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field:last-child{margin-bottom:16px}#survicate-box .sv__micro-theme .sv__contact-form-field .sv__input,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field .sv__input{border:2px solid transparent;border-radius:4px;box-sizing:border-box;height:40px;outline-offset:3px;padding:0 16px;transition:none;width:100%}#survicate-box .sv__micro-theme .sv__contact-form-field .sv__input:focus,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field .sv__input:focus{border-style:solid;border-width:2px}#survicate-box .sv__micro-theme .sv__contact-form-field-label,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field-label{display:block;font-size:14px;font-weight:600;margin-bottom:8px;opacity:1;overflow-wrap:break-word;position:static;transition:opacity .5s}#survicate-box .sv__micro-theme .sv__contact-form-field .checkbox-label,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field .checkbox-label{margin-left:0;margin-right:0}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation,#survicate-box .sv__micro-theme .sv__contact-form-security,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security{align-items:center;display:flex;margin-top:16px;min-height:40px;padding:8px 16px}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__checkbox,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__checkbox{margin-right:16px}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox.sv__square.sv-invalid.sv-nested-bg-bw,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__checkbox.sv__square.sv-invalid.sv-nested-bg-bw,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox.sv__square.sv-invalid.sv-nested-bg-bw,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__checkbox.sv__square.sv-invalid.sv-nested-bg-bw{border-style:solid;border-width:2px}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox.sv__square svg,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__checkbox.sv__square svg,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox.sv__square svg,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__checkbox.sv__square svg{position:relative}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__lock-icon,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__lock-icon,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__lock-icon,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__lock-icon{margin-right:8px;padding-left:2px}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__lock-icon svg,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__lock-icon svg,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__lock-icon svg,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__lock-icon svg{height:20px;margin-right:8px}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__validation,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__validation,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__validation,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__validation{bottom:unset;top:-27px}#survicate-box .sv__micro-theme .sv__contact-form-security,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security{font-size:12px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__contact-form-security .sv__lock-icon,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__contact-form-security .sv__lock-icon{margin-left:8px;margin-right:0;padding-left:0;padding-right:2px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__contact-form-security .sv__lock-icon svg,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__contact-form-security .sv__lock-icon svg{margin-left:8px;margin-right:0}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__confirmation .sv__checkbox,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__confirmation .sv__checkbox{margin-right:0}#survicate-box .sv__micro-theme .sv__choice-button,#sv-screenshot-controls .sv__micro-theme .sv__choice-button{align-items:center;border:2px solid transparent;border-radius:6px;cursor:pointer;display:flex;font-weight:400;margin:0;min-height:40px;padding:10px;text-align:left;transition:background-color .3s;width:100%}#survicate-box .sv__micro-theme .sv__choice-button-wrapper,#sv-screenshot-controls .sv__micro-theme .sv__choice-button-wrapper{margin-bottom:8px}#survicate-box .sv__micro-theme .sv__choice-button-wrapper:last-child,#sv-screenshot-controls .sv__micro-theme .sv__choice-button-wrapper:last-child{margin-bottom:16px}#survicate-box .sv__micro-theme .sv__choice-button-question,#sv-screenshot-controls .sv__micro-theme .sv__choice-button-question{align-items:center;display:flex;overflow-x:initial;width:100%}#survicate-box .sv__micro-theme .sv__choice-button-question .sv-bg-bv,#sv-screenshot-controls .sv__micro-theme .sv__choice-button-question .sv-bg-bv{width:auto}#survicate-box .sv__micro-theme .sv__choice-button-question .sv-color-fa,#sv-screenshot-controls .sv__micro-theme .sv__choice-button-question .sv-color-fa{overflow-x:inherit;width:100%}#survicate-box .sv__micro-theme .sv__choice-button>div:last-child,#sv-screenshot-controls .sv__micro-theme .sv__choice-button>div:last-child{width:auto}#survicate-box .sv__micro-theme .sv__choice-button.sv__choice-button--selected--expanded,#sv-screenshot-controls .sv__micro-theme .sv__choice-button.sv__choice-button--selected--expanded{align-items:baseline}#survicate-box .sv__micro-theme .sv__choice-button.sv__choice-button--selected--expanded>div:last-child,#sv-screenshot-controls .sv__micro-theme .sv__choice-button.sv__choice-button--selected--expanded>div:last-child{width:100%}#survicate-box .sv__micro-theme .sv__choice-button.sv__choice-button--selected .sv-color-fa,#sv-screenshot-controls .sv__micro-theme .sv__choice-button.sv__choice-button--selected .sv-color-fa{font-weight:600}#survicate-box .sv__micro-theme .sv__choice-button:active .sv__circle,#sv-screenshot-controls .sv__micro-theme .sv__choice-button:active .sv__circle{background-color:transparent;border-style:solid;border-width:2px}#survicate-box .sv__micro-theme .sv__choice-button--selected--expanded,#sv-screenshot-controls .sv__micro-theme .sv__choice-button--selected--expanded{flex-direction:column}#survicate-box .sv__micro-theme .sv__choice-button--selected .sv__circle,#survicate-box .sv__micro-theme .sv__choice-button:active .sv__circle,#sv-screenshot-controls .sv__micro-theme .sv__choice-button--selected .sv__circle,#sv-screenshot-controls .sv__micro-theme .sv__choice-button:active .sv__circle{background-clip:content-box;padding:2px}#survicate-box .sv__micro-theme .sv__choice-button .sv__textarea-wrapper,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__textarea-wrapper{margin-top:16px}#survicate-box .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__answer-hint,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__answer-hint{font-size:12px}#survicate-box .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__textarea,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__textarea{border:2px solid transparent;border-radius:4px;margin-top:0;max-height:72px;min-height:64px;padding:8px;resize:none;width:100%}#survicate-box .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__textarea:active,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__textarea:active{border-width:2px}#survicate-box .sv__micro-theme .sv__choice-button .sv__checkbox,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__checkbox{flex:1 0 auto}#survicate-box .sv__micro-theme .sv__choice-button .sv__circle,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__circle{padding:3px;top:0}#survicate-box .sv__micro-theme .sv__choice-button .sv__answer-text,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__answer-text{overflow-wrap:anywhere;word-break:break-word}#survicate-box .sv__micro-theme.sv__mobile-survey .sv__circle:hover,#survicate-box .sv__micro-theme.sv__mobile-survey .sv__circle:hover:after,#survicate-box .sv__micro-theme.sv__mobile-survey .sv__square:hover,#survicate-box .sv__micro-theme.sv__mobile-survey .sv__square:hover:after,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__circle:hover,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__circle:hover:after,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__square:hover,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__square:hover:after{box-shadow:none!important}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__choice-button-wrapper .sv__choice-button,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__choice-button-wrapper .sv__choice-button{text-align:right}#survicate-box .sv__micro-theme .sv__customer-satisfaction .sv__buttons--vertical,#sv-screenshot-controls .sv__micro-theme .sv__customer-satisfaction .sv__buttons--vertical{margin-bottom:0}#survicate-box .sv__micro-theme .sv__date,#sv-screenshot-controls .sv__micro-theme .sv__date{box-sizing:border-box;display:block;height:40px;margin-bottom:16px;margin-top:0;padding:8px 10px 8px 8px;text-align:left}#survicate-box .sv__micro-theme .sv__date__input,#survicate-box .sv__micro-theme .sv__date__separator,#sv-screenshot-controls .sv__micro-theme .sv__date__input,#sv-screenshot-controls .sv__micro-theme .sv__date__separator{display:inline-block}#survicate-box .sv__micro-theme .sv__date__input,#sv-screenshot-controls .sv__micro-theme .sv__date__input{background:none;padding:0;text-align:center;width:30%}#survicate-box .sv__micro-theme .sv__date__separator,#sv-screenshot-controls .sv__micro-theme .sv__date__separator{padding:0}#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker{box-shadow:none;font-size:14px;margin:0 auto;padding:0;width:100%;width:max-content}#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker--selected,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker--selected{border:none;border-radius:6px;transform:translateY(-60%);width:100%}#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper{display:flex}#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper:after,#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper:before,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper:after,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper:before{background:inherit}#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__option,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__option{font-size:14px}#survicate-box .sv__micro-theme .sv__date.sv__invalid,#survicate-box .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10{background-color:#ffedea!important;position:relative}#survicate-box .sv__micro-theme .sv__date.sv__invalid .sv__date__input,#survicate-box .sv__micro-theme .sv__date.sv__invalid .sv__date__input::placeholder,#survicate-box .sv__micro-theme .sv__date.sv__invalid .sv__date__separator,#survicate-box .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__input,#survicate-box .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__input::placeholder,#survicate-box .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__separator,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid .sv__date__input,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid .sv__date__input::placeholder,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid .sv__date__separator,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__input,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__input::placeholder,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__separator{color:#e33a22!important}#survicate-box .sv__micro-theme .sv__date.sv__invalid.focused,#survicate-box .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10.focused,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.focused,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10.focused{border-color:#e33a22!important}#survicate-box .sv__micro-theme .sv__date .sv__validation,#sv-screenshot-controls .sv__micro-theme .sv__date .sv__validation{bottom:38px;display:flex;padding:5px 6px;right:0}#survicate-box .sv__micro-theme .sv__point-texts--empty+.sv__date,#sv-screenshot-controls .sv__micro-theme .sv__point-texts--empty+.sv__date{margin-top:26px}#survicate-box .sv__micro-theme.sv__outline .sv--background-answer-opacity-10.sv__date.focused,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv--background-answer-opacity-10.sv__date.focused{border-color:#6f27f6!important}#survicate-box .sv__micro-theme.sv__outline .sv--background-answer-opacity-10.sv__date.focused .sv__date__input,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv--background-answer-opacity-10.sv__date.focused .sv__date__input{outline:none}#survicate-box .sv__micro-theme .sv__dropdown__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper{margin-left:0;margin-right:0;margin-top:0}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid .sv__input,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid .sv__input{background-color:#ffedea!important;color:#e33a22!important}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid .sv__input:focus,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid .sv__input:focus{border-color:#e33a22!important}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid svg g g polygon,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid svg g g polygon{fill:#e33a22!important}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select{display:flex;flex-direction:column-reverse}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select-list,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select-list{margin-bottom:10px;margin-top:0;position:static}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select-icon,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select-icon{top:4px}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select-icon.sv__caret,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select-icon.sv__caret{border:0}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select .sv__clear-input-icon,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select .sv__clear-input-icon{right:0;top:2px}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select input,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select input{border:2px solid transparent;font-size:14px;height:50px;padding:16px}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select .sv__validation,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select .sv__validation{bottom:50px;top:auto}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__submit-button__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__submit-button__wrapper{bottom:auto}#survicate-box .sv__micro-theme .sv__outline .sv__select-list .sv__select-button.sv__select-button--focused,#sv-screenshot-controls .sv__micro-theme .sv__outline .sv__select-list .sv__select-button.sv__select-button--focused{outline:2px solid #6f27f6;outline-offset:-4px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__dropdown__wrapper .sv__select .sv__caret,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__dropdown__wrapper .sv__select .sv__caret{left:20px;right:unset}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__dropdown__wrapper .sv__select .sv__clear-input-icon,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__dropdown__wrapper .sv__select .sv__clear-input-icon{right:0}#survicate-box .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__wrapper{display:flex;flex-direction:column}#survicate-box .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__buttons,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__buttons{flex-direction:column-reverse}#survicate-box .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__button,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__button{margin:0 0 10px;width:100%}#survicate-box .sv__micro-theme .sv__numerical-scale .sv__point-text,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale .sv__point-text{min-width:100%;width:min-content}#survicate-box .sv__micro-theme .sv__numerical-scale__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale__wrapper{display:flex;flex-direction:column}#survicate-box .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons{display:flex;justify-content:center;margin-left:0;margin-right:0;width:100%}#survicate-box .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button{align-items:center;border-radius:6px;cursor:pointer;display:flex;justify-content:center;padding:initial;text-align:center}#survicate-box .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button:first-child,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button:first-child{margin-left:0}#survicate-box .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button:last-child,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button:last-child{margin-right:0}#survicate-box .sv__micro-theme .sv__rating .sv__point-text,#survicate-box .sv__micro-theme .sv__rating-survey-point .sv__point-wrapper--with-personalization .sv__micro-top-bar__row,#survicate-box .sv__micro-theme .sv__rating__micro-top-bar.sv__micro-top-bar--with-personalization .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__point-text,#sv-screenshot-controls .sv__micro-theme .sv__rating-survey-point .sv__point-wrapper--with-personalization .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__rating__micro-top-bar.sv__micro-top-bar--with-personalization .sv__micro-top-bar__row{min-width:100%;width:min-content}#survicate-box .sv__micro-theme .sv__rating__number,#sv-screenshot-controls .sv__micro-theme .sv__rating__number{font-weight:400}#survicate-box .sv__micro-theme .sv__rating .sv__buttons,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons{justify-content:center;margin-bottom:16px}#survicate-box .sv__micro-theme .sv__rating .sv__buttons .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons .sv__button{align-items:center;display:flex;flex-direction:column;height:unset;justify-content:center;min-height:unset;min-width:unset}#survicate-box .sv__micro-theme .sv__rating .sv__buttons .sv__button:hover,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons .sv__button:hover{background-color:transparent}#survicate-box .sv__micro-theme .sv__rating .sv__buttons .sv__button--selected,#survicate-box .sv__micro-theme .sv__rating .sv__buttons .sv__button:active,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons .sv__button--selected,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons .sv__button:active{border-width:0}#survicate-box .sv__micro-theme .sv__rating .sv__buttons .sv__button svg,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons .sv__button svg{height:32px;margin-bottom:8px;width:32px}#survicate-box .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons{flex-direction:column-reverse}#survicate-box .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button{flex-direction:row;height:40px;margin:0 0 8px}#survicate-box .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button:active,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button:active{border-width:2px}#survicate-box .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button svg,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button svg{height:20px;margin-bottom:0;width:20px}#survicate-box .sv__micro-theme.sv__outline .sv__rating .sv__rating__buttons .sv__button--selected,#survicate-box .sv__micro-theme.sv__outline .sv__rating .sv__rating__buttons .sv__button:focus,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__rating .sv__rating__buttons .sv__button--selected,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__rating .sv__rating__buttons .sv__button:focus{outline:none}#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__buttons,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__buttons{display:flex;justify-content:space-between;margin-bottom:32px;padding-left:3px;padding-right:3px}#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__wrapper{width:100%}#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__button,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__button{margin:0}#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__button,#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__icon-container,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__button,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__icon-container{height:38px;min-height:38px;min-width:38px;width:38px}#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale.sv__three-smileys .sv__smiley-scale__buttons,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale.sv__three-smileys .sv__smiley-scale__buttons{justify-content:center}#survicate-box .sv__micro-theme .sv__smiley_scale .sv__point-texts .sv__point-question,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale .sv__point-texts .sv__point-question{margin-bottom:32px}#survicate-box .sv__micro-theme.sv__mobile-survey .sv__smiley-scale__button:hover,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__smiley-scale__button:hover{transform:none}#survicate-box .sv__micro-theme .sv__point-texts--empty+.sv__smiley-scale__buttons,#sv-screenshot-controls .sv__micro-theme .sv__point-texts--empty+.sv__smiley-scale__buttons{margin-top:16px}#survicate-box .sv__micro-theme.sv__outline .sv__smiley-scale__button:focus,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__smiley-scale__button:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #6f27f6;outline:none;transform:scale(1.2)}#survicate-box .sv__micro-theme .sv-box-child.sv-mobile .sv__smiley-scale__button,#survicate-box .sv__micro-theme .sv-box-child.sv-mobile .sv__smiley-scale__icon-container,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-mobile .sv__smiley-scale__button,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-mobile .sv__smiley-scale__icon-container{height:48px;width:48px}@media only screen and (max-device-width:812px)and (-webkit-min-device-pixel-ratio:3)and (orientation:landscape),only screen and (max-width:767px){#survicate-box .sv__micro-theme .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__smiley-scale__button,#survicate-box .sv__micro-theme .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__smiley-scale__icon-container,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__smiley-scale__button,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__smiley-scale__icon-container{height:48px;width:48px}}#survicate-box .sv__micro-theme .sv__text-container,#sv-screenshot-controls .sv__micro-theme .sv__text-container{position:relative}#survicate-box .sv__micro-theme .sv__text-question .sv__text-input-stats,#sv-screenshot-controls .sv__micro-theme .sv__text-question .sv__text-input-stats{margin-bottom:16px}#survicate-box .sv__micro-theme .sv__text-question .sv__textarea,#sv-screenshot-controls .sv__micro-theme .sv__text-question .sv__textarea{border:2px solid transparent;border-radius:6px;font-size:14px;margin-bottom:16px;max-height:200px;min-height:80px;padding:8px;resize:none;width:100%}#survicate-box .sv__micro-theme .sv__text-question .sv__textarea:focus,#sv-screenshot-controls .sv__micro-theme .sv__text-question .sv__textarea:focus{border:2px solid}#survicate-box .sv__micro-theme .sv__text-question .sv__follow-up,#sv-screenshot-controls .sv__micro-theme .sv__text-question .sv__follow-up{border-top:1px solid}#survicate-box .sv__micro-theme .sv__text-question .sv__follow-up .sv__point-text,#sv-screenshot-controls .sv__micro-theme .sv__text-question .sv__follow-up .sv__point-text{margin-top:16px}#survicate-box .sv__micro-theme .sv__matrix-row,#sv-screenshot-controls .sv__micro-theme .sv__matrix-row{gap:8px}@media only screen and (min-width:768px)and (max-width:1181px)and (orientation:portrait){#survicate-box .sv__micro-theme.sv__survey.sv__survey--matrix .sv__matrix-wrapper,#sv-screenshot-controls .sv__micro-theme.sv__survey.sv__survey--matrix .sv__matrix-wrapper{max-width:unset}}#survicate-box .sv__micro-theme .sv__social-button,#sv-screenshot-controls .sv__micro-theme .sv__social-button{border-radius:4px;color:#fff;display:block;font-weight:600;margin-bottom:10px;padding:10px;position:relative;text-align:center;transition:background-color .3s}#survicate-box .sv__micro-theme .sv__social-button.sv__facebook,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__facebook{background-color:#3579ea;border-bottom:1px solid #11192b}#survicate-box .sv__micro-theme .sv__social-button.sv__facebook:hover,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__facebook:hover{background-color:#165ed6}#survicate-box .sv__micro-theme .sv__social-button.sv__twitter,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__twitter{background-color:#000}#survicate-box .sv__micro-theme .sv__social-button.sv__twitter:hover,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__twitter:hover{background-color:#1a1a1a}#survicate-box .sv__micro-theme .sv__social-button.sv__twitter svg,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__twitter svg{left:17px;top:12px}#survicate-box .sv__micro-theme .sv__social-button.sv__linkedin,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__linkedin{background-color:#2a66bc;border-bottom:1px solid #0f5f9b}#survicate-box .sv__micro-theme .sv__social-button.sv__linkedin:hover,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__linkedin:hover{background-color:#4480d5}#survicate-box .sv__micro-theme .sv__social-button.sv__linkedin svg,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__linkedin svg{left:17px}#survicate-box .sv__micro-theme .sv__social-button svg,#sv-screenshot-controls .sv__micro-theme .sv__social-button svg{fill:#fff;left:20px;position:absolute}#survicate-box .sv__micro-theme .sv__nps--horizontal .sv__buttons,#sv-screenshot-controls .sv__micro-theme .sv__nps--horizontal .sv__buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}#survicate-box .sv__micro-theme .sv__nps .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__nps .sv__button{border-radius:4px;min-height:40px;min-width:39px;padding:initial;text-align:center}#survicate-box .sv__micro-theme .sv__footer,#sv-screenshot-controls .sv__micro-theme .sv__footer{font-size:600px;justify-content:center}#survicate-box .sv__micro-theme .sv__footer__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__footer__wrapper{align-items:center;display:flex;justify-content:center;margin-top:0}#survicate-box .sv__micro-theme .sv__footer__button,#sv-screenshot-controls .sv__micro-theme .sv__footer__button{align-items:center;display:flex;padding:8px}#survicate-box .sv__micro-theme .sv__footer__button svg,#sv-screenshot-controls .sv__micro-theme .sv__footer__button svg{height:10px;margin-top:-2px;width:68px}#survicate-box .sv__micro-theme .sv__footer__small-text,#sv-screenshot-controls .sv__micro-theme .sv__footer__small-text{font-family:Open sans,sans-serif!important;font-size:12px;margin-right:4px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__footer__wrapper,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__footer__wrapper{direction:ltr}#survicate-box .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus{outline:none}#survicate-box .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus .sv__footer__small-text,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus .sv__footer__small-text{font-family:Open sans,sans-serif!important}#survicate-box .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus svg path,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus svg path{fill:#6f27f6!important}#survicate-box .sv__language-selector__list,#sv-screenshot-controls .sv__language-selector__list{box-shadow:0 0 10px 5px rgba(41,41,42,.07);max-height:160px}#survicate-box .sv__micro-theme .sv__micro-top-bar,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar{margin-left:24px;margin-right:24px;margin-top:24px}#survicate-box .sv__micro-theme .sv__micro-top-bar--with-personalization.sv__micro-top-bar--with-logo .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--with-personalization.sv__micro-top-bar--with-logo .sv__micro-top-bar__row{align-items:center}#survicate-box .sv__micro-theme .sv__micro-top-bar--with-personalization .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--with-personalization .sv__micro-top-bar__row{align-items:flex-start}#survicate-box .sv__micro-theme .sv__micro-top-bar__personalization,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__personalization{align-items:center;display:flex;margin-top:12px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row{align-items:center;display:flex;justify-content:space-between;position:relative;top:-10px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__logo,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__logo{margin-right:8px;max-height:24px;max-width:60%}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__avatar,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__avatar{border-radius:100%;border-style:none;height:24px;max-width:unset;object-fit:cover;object-position:center;width:24px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__short-text,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__short-text{line-height:1.3;margin-right:8px;word-break:break-word}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__actions,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__actions{align-items:center;display:flex;justify-content:flex-end}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons{color:#b3b3b3;display:flex;justify-content:flex-end}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv-color-small-button-bw,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv-color-small-button-bw{background:none;border:none;color:inherit;display:inline-block;font-family:Open sans,sans-serif;font-weight:600;padding:6px;transition:color .3s}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv-color-small-button-bw:focus,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv-color-small-button-bw:focus{border-radius:10px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-close,#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-close,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize{height:40px;padding:0;width:40px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-close,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-close{margin-right:-12px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize svg rect:first-child,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize svg rect:first-child{fill:transparent}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize:active svg g,#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize:hover svg g,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize:active svg g,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize:hover svg g{opacity:1}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat{align-items:flex-end;display:flex;flex-direction:row-reverse}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat .sv__micro-top-bar__row{flex-direction:row-reverse;justify-content:space-between}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat .sv__progress-bar__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat .sv__progress-bar__wrapper{width:100%}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat .sv__progress-bar__wrapper .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat .sv__progress-bar__wrapper .sv__progress-bar{top:2px}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat .sv__micro-top-bar__actions,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat .sv__micro-top-bar__actions{margin-left:16px;margin-right:unset}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat .sv__bar-buttons,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat .sv__bar-buttons{margin-left:unset;margin-right:unset}#survicate-box .sv__micro-theme .sv__micro-top-bar .sv__bar-buttons svg,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar .sv__bar-buttons svg{height:40px;width:40px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__micro-top-bar__actions,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__micro-top-bar__actions{margin-left:unset;margin-right:16px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__bar-buttons,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__bar-buttons{margin-left:unset;margin-right:unset}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__bar-buttons .sv__btn-close,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__bar-buttons .sv__btn-close{margin-left:-12px;margin-right:unset}#survicate-box .sv__micro-theme.sv__mobile-survey .sv__btn-close:hover svg g g,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__btn-close:hover svg g g{fill:inherit!important}#survicate-box .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded,#sv-screenshot-controls .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded{margin-bottom:24px}#survicate-box .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded .sv__micro-top-bar__row{flex-direction:row;justify-content:space-between;width:100%}#survicate-box .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded .sv__micro-top-bar__row .sv__survicate__logo,#sv-screenshot-controls .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded .sv__micro-top-bar__row .sv__survicate__logo{max-width:106px}#survicate-box .sv__micro-theme .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv__progress-bar{border-radius:4px;height:4px;position:relative;top:0}#survicate-box .sv__micro-theme .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv__progress-bar>div{border-radius:4px}#survicate-box .sv__micro-theme .sv__progress-bar__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__progress-bar__wrapper{height:28px}@media only screen and (min-width:768px)and (-webkit-max-device-pixel-ratio:2),only screen and (min-width:813px){#survicate-box .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-left .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-left .sv__progress-bar>div,#survicate-box .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-right .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-right .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-left .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-left .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-right .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-right .sv__progress-bar>div{border-radius:0}}#survicate-box .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-left .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-left .sv__progress-bar>div,#survicate-box .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-right .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-right .sv__progress-bar>div,#survicate-box .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-left .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-left .sv__progress-bar>div,#survicate-box .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-right .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-right .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-left .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-left .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-right .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-right .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-left .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-left .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-right .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-right .sv__progress-bar>div{border-radius:0}#survicate-box .sv__micro-theme.sv__survey--branded .sv__finish-view,#sv-screenshot-controls .sv__micro-theme.sv__survey--branded .sv__finish-view{overflow-x:hidden;overflow-y:auto}#survicate-box .sv__micro-theme.sv__survey--branded .sv__finish-view *,#sv-screenshot-controls .sv__micro-theme.sv__survey--branded .sv__finish-view *{font-family:Open sans,sans-serif!important}#survicate-box .sv__micro-theme .sv__branded-finish-view--content,#survicate-box .sv__micro-theme .sv__finish-view,#sv-screenshot-controls .sv__micro-theme .sv__branded-finish-view--content,#sv-screenshot-controls .sv__micro-theme .sv__finish-view{display:flex;flex-direction:column}#survicate-box .sv__micro-theme .sv__finish-view,#sv-screenshot-controls .sv__micro-theme .sv__finish-view{margin-left:24px;margin-right:24px}#survicate-box .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content{margin-right:-18px;overflow-y:auto;padding-right:14px}#survicate-box .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content::-webkit-scrollbar,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content::-webkit-scrollbar{background-color:transparent;width:4px}#survicate-box .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content::-webkit-scrollbar-thumb,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.15)!important;border-radius:4px}#survicate-box .sv__micro-theme .sv__finish-view .sv__introduction,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__introduction{margin-bottom:24px}#survicate-box .sv__micro-theme .sv__finish-view .sv__paragraph__item,#survicate-box .sv__micro-theme .sv__finish-view .sv__thank-you-message,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__paragraph__item,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__thank-you-message{font-weight:600}#survicate-box .sv__micro-theme .sv__finish-view .sv__thank-you-message,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__thank-you-message{align-items:flex-end;display:flex;margin-bottom:8px}#survicate-box .sv__micro-theme .sv__finish-view .sv__paragraph__container,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__paragraph__container{margin-bottom:32px}#survicate-box .sv__micro-theme .sv__finish-view .sv__paragraph__item,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__paragraph__item{margin-bottom:16px}#survicate-box .sv__micro-theme .sv__finish-view .sv__finish-logo,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__finish-logo{margin-bottom:48px;margin-left:auto;margin-right:auto;width:168px}#survicate-box .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper{border-top:1px solid #c2cbcb;padding-bottom:8px;padding-top:24px}#survicate-box .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper .sv__simple-link-button,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper .sv__simple-link-button{align-items:center;background-color:#6f27f6;border-radius:6px;color:#fff;display:flex;font-size:16px;font-weight:600;height:56px;justify-content:center;width:100%}#survicate-box .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper .sv__simple-link-button:hover,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper .sv__simple-link-button:hover{background-color:#390993}@media(max-width:1181px){#survicate-box .sv__micro-theme .sv-box-child .sv__finish-view,#sv-screenshot-controls .sv__micro-theme .sv-box-child .sv__finish-view{width:300px}}#survicate-box .sv__micro-theme .sv__buttons,#sv-screenshot-controls .sv__micro-theme .sv__buttons{margin-bottom:16px}#survicate-box .sv__micro-theme .sv__buttons--vertical.sv__buttons .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__buttons--vertical.sv__buttons .sv__button{align-items:center;display:flex;height:auto;justify-content:center;min-height:40px;padding:8px;width:100%}#survicate-box .sv__micro-theme .sv__buttons--vertical.sv__buttons .sv__button svg,#sv-screenshot-controls .sv__micro-theme .sv__buttons--vertical.sv__buttons .sv__button svg{margin-bottom:0;margin-right:10px;width:20px}#survicate-box .sv__micro-theme .sv__buttons .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__buttons .sv__button{font-size:14px;height:40px;margin-right:4px;width:40px}#survicate-box .sv__micro-theme .sv__buttons .sv__button:last-child,#sv-screenshot-controls .sv__micro-theme .sv__buttons .sv__button:last-child{margin-right:0}#survicate-box .sv__micro-theme .sv__buttons .sv__button--selected,#survicate-box .sv__micro-theme .sv__buttons .sv__button:active,#sv-screenshot-controls .sv__micro-theme .sv__buttons .sv__button--selected,#sv-screenshot-controls .sv__micro-theme .sv__buttons .sv__button:active{border:2px solid;border-color:unset}#survicate-box .sv__micro-theme .sv__social-button,#sv-screenshot-controls .sv__micro-theme .sv__social-button{border-radius:6px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__buttons .sv__button:last-child,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__buttons .sv__button:last-child{margin-right:4px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__buttons .sv__button:first-child,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__buttons .sv__button:first-child{margin-right:0}#survicate-box .sv__micro-theme .sv__checkbox,#sv-screenshot-controls .sv__micro-theme .sv__checkbox{background:transparent;height:20px;width:20px}#survicate-box .sv__micro-theme .sv__checkbox .checkbox-label:before,#survicate-box .sv__micro-theme .sv__checkbox input[type=checkbox]+.checkbox-label:before,#survicate-box .sv__micro-theme .sv__checkbox input[type=radio]+.checkbox-label:before,#sv-screenshot-controls .sv__micro-theme .sv__checkbox .checkbox-label:before,#sv-screenshot-controls .sv__micro-theme .sv__checkbox input[type=checkbox]+.checkbox-label:before,#sv-screenshot-controls .sv__micro-theme .sv__checkbox input[type=radio]+.checkbox-label:before{content:none!important}#survicate-box .sv__micro-theme .sv__checkbox.sv__square,#sv-screenshot-controls .sv__micro-theme .sv__checkbox.sv__square{border-radius:4px}#survicate-box .sv__micro-theme .sv__checkbox.sv__square svg,#sv-screenshot-controls .sv__micro-theme .sv__checkbox.sv__square svg{border-radius:0;transform:scale(1.2)}#survicate-box .sv__micro-theme .sv__checkbox.sv__square:after,#sv-screenshot-controls .sv__micro-theme .sv__checkbox.sv__square:after{height:20px;left:-2px;min-width:20px;top:-2px;width:20px}#survicate-box .sv__micro-theme .sv__checkbox .checkbox-label,#sv-screenshot-controls .sv__micro-theme .sv__checkbox .checkbox-label{display:block}#survicate-box .sv__micro-theme .sv__checkbox .checkbox-label:after,#sv-screenshot-controls .sv__micro-theme .sv__checkbox .checkbox-label:after{min-width:24px}#survicate-box .sv__micro-theme .sv__circle,#sv-screenshot-controls .sv__micro-theme .sv__circle{border-style:solid;border-width:2px;top:2px}#survicate-box .sv__micro-theme .sv__circle:active,#sv-screenshot-controls .sv__micro-theme .sv__circle:active{background-clip:content-box;padding:2px}#survicate-box .sv__micro-theme .sv__labels,#sv-screenshot-controls .sv__micro-theme .sv__labels{margin:0 0 16px;overflow-wrap:break-word}#survicate-box .sv__micro-theme .sv__labels .sv__label,#sv-screenshot-controls .sv__micro-theme .sv__labels .sv__label{font-size:14px;line-height:18px}#survicate-box .sv__micro-theme .sv__labels .sv__label--left,#survicate-box .sv__micro-theme .sv__labels .sv__label--right,#sv-screenshot-controls .sv__micro-theme .sv__labels .sv__label--left,#sv-screenshot-controls .sv__micro-theme .sv__labels .sv__label--right{max-width:120px}#survicate-box .sv__micro-theme .sv__labels .sv__label--right,#sv-screenshot-controls .sv__micro-theme .sv__labels .sv__label--right{margin-left:4px;text-align:right}#survicate-box .sv__micro-theme .sv__labels .sv__label--left,#sv-screenshot-controls .sv__micro-theme .sv__labels .sv__label--left{margin-right:4px;text-align:left}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__labels .sv__label--right,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__labels .sv__label--right{text-align:left}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__labels .sv__label--left,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__labels .sv__label--left{text-align:right}#survicate-box .sv__micro-theme .sv__select,#sv-screenshot-controls .sv__micro-theme .sv__select{margin-bottom:16px;position:relative}#survicate-box .sv__micro-theme .sv__select-icon,#sv-screenshot-controls .sv__micro-theme .sv__select-icon{top:16px}#survicate-box .sv__micro-theme .sv__select-list,#sv-screenshot-controls .sv__micro-theme .sv__select-list{border-radius:6px!important;border-style:solid;border-width:1px;bottom:calc(100% + 10px);box-shadow:0 0 10px 5px rgba(41,41,42,.07)}#survicate-box .sv__micro-theme .sv__select-list::-webkit-scrollbar,#sv-screenshot-controls .sv__micro-theme .sv__select-list::-webkit-scrollbar{background-color:transparent;width:4px}#survicate-box .sv__micro-theme .sv__select-list::-webkit-scrollbar-thumb,#sv-screenshot-controls .sv__micro-theme .sv__select-list::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border-radius:4px}#survicate-box .sv__micro-theme .sv__select .sv__input,#sv-screenshot-controls .sv__micro-theme .sv__select .sv__input{width:100%}#survicate-box .sv__micro-theme .sv__select .sv__input .sv__caret,#sv-screenshot-controls .sv__micro-theme .sv__select .sv__input .sv__caret{background:none}#survicate-box .sv__micro-theme .sv__select .sv__input,#survicate-box .sv__micro-theme .sv__select .sv__select-list .sv__select-button,#sv-screenshot-controls .sv__micro-theme .sv__select .sv__input,#sv-screenshot-controls .sv__micro-theme .sv__select .sv__select-list .sv__select-button{min-height:40px}#survicate-box .sv__micro-theme.sv__position-mobile .sv__dropdown__wrapper .sv__select-list,#sv-screenshot-controls .sv__micro-theme.sv__position-mobile .sv__dropdown__wrapper .sv__select-list{bottom:calc(100% + 10px);top:unset}#survicate-box .sv__micro-theme.sv__position-center .sv__dropdown__wrapper .sv__select-list,#survicate-box .sv__micro-theme.sv__position-top-left .sv__dropdown__wrapper .sv__select-list,#survicate-box .sv__micro-theme.sv__position-top-right .sv__dropdown__wrapper .sv__select-list,#sv-screenshot-controls .sv__micro-theme.sv__position-center .sv__dropdown__wrapper .sv__select-list,#sv-screenshot-controls .sv__micro-theme.sv__position-top-left .sv__dropdown__wrapper .sv__select-list,#sv-screenshot-controls .sv__micro-theme.sv__position-top-right .sv__dropdown__wrapper .sv__select-list{bottom:auto}#survicate-box .sv__micro-theme .sv__submit-button__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__submit-button__wrapper{border-top-style:solid;border-top-width:1px;bottom:0;margin-left:24px;margin-top:0;padding:23px 0 8px;width:calc(100% - 48px)}#survicate-box .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button,#sv-screenshot-controls .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button{align-items:center;border-bottom-width:0;border-radius:4px;border-style:none none solid;display:flex;font-weight:600;height:auto;justify-content:center;margin:auto;min-height:40px;outline-offset:3px;overflow-wrap:break-word;width:100%;word-break:break-word}#survicate-box .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:disabled,#sv-screenshot-controls .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:disabled{cursor:not-allowed;opacity:.5}#survicate-box .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:disabled:hover,#sv-screenshot-controls .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:disabled:hover{opacity:.5}#survicate-box .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:hover,#sv-screenshot-controls .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:hover{opacity:.8;text-decoration:none}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__submit-button__wrapper,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__submit-button__wrapper{margin-left:0;margin-right:24px}#survicate-box .sv__micro-theme.sv__mobile-survey .sv__submit-button:hover,#survicate-box .sv__micro-theme.sv__position-mobile .sv__submit-button:hover,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__submit-button:hover,#sv-screenshot-controls .sv__micro-theme.sv__position-mobile .sv__submit-button:hover{opacity:unset}#survicate-box .sv__micro-theme .sv__submit-screenshot-button-container .sv__submit-button__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__submit-screenshot-button-container .sv__submit-button__wrapper{border-top:none;width:100%}#survicate-box .sv__micro-theme .sv__validation,#sv-screenshot-controls .sv__micro-theme .sv__validation{bottom:40px;left:auto;right:0;top:auto}#survicate-box .sv__micro-theme .sv__validation:after,#sv-screenshot-controls .sv__micro-theme .sv__validation:after{border-color:#e33a22 transparent transparent;border-width:8px 4px 0;bottom:-8px;left:auto;right:10px;top:auto}#survicate-box .sv__micro-theme .sv-invalid.sv-invalid.sv-invalid,#sv-screenshot-controls .sv__micro-theme .sv-invalid.sv-invalid.sv-invalid{border:none}#survicate-box .sv__micro-theme.sv__feedback-survey.sv__feedback-survey--minimized,#sv-screenshot-controls .sv__micro-theme.sv__feedback-survey.sv__feedback-survey--minimized{border:2px solid transparent;cursor:pointer;display:flex;justify-content:center;max-height:80px;max-width:304px;min-width:112px;padding-bottom:0;transform:translateY(-50%) rotate(270deg);transform-origin:left center}#survicate-box .sv__micro-theme.sv__feedback-survey.sv__feedback-survey--minimized .sv__feedback-survey__text,#sv-screenshot-controls .sv__micro-theme.sv__feedback-survey.sv__feedback-survey--minimized .sv__feedback-survey__text{font-size:14px;font-weight:600;margin-left:unset;margin-right:unset;padding:8px 24px;word-break:break-word}#survicate-box .sv__micro-theme.sv__position-center-right.sv__feedback-survey.sv__feedback-survey--minimized .sv__feedback-survey__text,#sv-screenshot-controls .sv__micro-theme.sv__position-center-right.sv__feedback-survey.sv__feedback-survey--minimized .sv__feedback-survey__text{transform:rotate(180deg)}#survicate-box .sv__micro-theme.sv__outline.sv__feedback-survey.sv__feedback-survey--minimized:focus,#sv-screenshot-controls .sv__micro-theme.sv__outline.sv__feedback-survey.sv__feedback-survey--minimized:focus{border:2px solid #6f27f6}#survicate-box .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper--navigation,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper--navigation{justify-content:flex-end}#survicate-box .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button{margin:0;width:120px}#survicate-box .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back{border:2px solid;margin-right:16px}#survicate-box .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__arrow,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__arrow{margin-right:4px;padding:3px}#survicate-box .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__text,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__text{font-weight:600;max-width:80px}#survicate-box .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button{width:48%}#survicate-box .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button .sv__navigation-button__text,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button .sv__navigation-button__text{max-width:48%}#survicate-box .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button:first-child,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button:first-child{margin-left:0}#survicate-box .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button:last-child,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button:last-child{margin-right:0}#survicate-box .sv__micro-theme.sv__rtl-lang.sv__micro-theme .sv__navigation-button.sv__navigation-button--back,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang.sv__micro-theme .sv__navigation-button.sv__navigation-button--back{margin-left:16px;margin-right:0}#survicate-box .sv__micro-theme.sv__rtl-lang.sv__micro-theme .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__arrow,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang.sv__micro-theme .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__arrow{margin-left:8px;margin-right:0;transform:rotate(-45deg)}#survicate-box .sv__micro-theme .sv__disclaimer-container,#sv-screenshot-controls .sv__micro-theme .sv__disclaimer-container{padding:0 24px}#survicate-box .sv__micro-theme.sv__survey--matrix .sv__disclaimer,#sv-screenshot-controls .sv__micro-theme.sv__survey--matrix .sv__disclaimer{max-width:608px}#survicate-box .sv__micro-theme.sv__survey--matrix .sv__disclaimer--narrow,#sv-screenshot-controls .sv__micro-theme.sv__survey--matrix .sv__disclaimer--narrow{max-width:256px}#survicate-box .sv__micro-theme.sv__survey--matrix.sv__position-mobile .sv__disclaimer,#sv-screenshot-controls .sv__micro-theme.sv__survey--matrix.sv__position-mobile .sv__disclaimer{max-width:unset}#survicate-box .sv__micro-theme .sv__disclaimer__body,#sv-screenshot-controls .sv__micro-theme .sv__disclaimer__body{max-height:120px;overflow-y:auto}#survicate-box .sv__micro-theme .sv__notification-banner,#sv-screenshot-controls .sv__micro-theme .sv__notification-banner{border-radius:4px;margin:8px 0 24px}#survicate-box .sv-desktop .sv__survey.sv__micro-theme .sv__mobile-datepicker,#sv-screenshot-controls .sv-desktop .sv__survey.sv__micro-theme .sv__mobile-datepicker{width:100%}#survicate-box .sr-only,#sv-screenshot-controls .sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}@keyframes slide-out{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes slide-in{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slide-down{0%{transform:translateY(0)}to{transform:translateY(100%)}}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey),#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey){border-radius:4px;left:20px;margin:20px auto;right:20px;transform:none;width:calc(100% - 40px)}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-top-left,#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-top-right,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-top-left,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-top-right{top:0}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-left,#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-right,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-left,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-right{bottom:0}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-center,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-center{transform:translateY(50%)}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized{left:0;margin:0;right:0;width:100%}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized.sv__position-center,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized.sv__position-center{right:0;transform:none;width:100%}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol{background-color:transparent;bottom:10px;position:absolute;right:15px}@media only screen and (max-width:568px){#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey),#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey){border-radius:4px;left:20px;margin:20px auto;right:20px;transform:none;width:calc(100% - 40px)}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-top-left,#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-top-right,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-top-left,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-top-right{top:0}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-left,#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-right,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-left,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-right{bottom:0}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-center,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-center{transform:translateY(50%)}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized{left:0;margin:0;right:0;width:100%}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized.sv__position-center,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized.sv__position-center{right:0;transform:none;width:100%}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol{background-color:transparent;bottom:10px;position:absolute;right:15px}}@media only screen and (max-width:1181px)and (orientation:portrait){#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey){border-radius:10px 10px 0 0;bottom:0;display:flex;flex-direction:column;left:0;margin:0;max-height:85vh;max-width:100%;min-width:100%;right:auto;top:unset;transform:unset;width:100%}#survicate-box :host .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls :host .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey){max-height:90%!important}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden{display:none}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen{max-height:unset!important}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea{font-size:16px}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point{overflow-y:auto}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container{transition:max-height .3s ease-in-out}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper{max-width:unset}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description{font-size:14px;line-height:22px}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question{font-size:16px;line-height:24px}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button{min-height:48px}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized{align-items:center;flex-direction:row;height:104px}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions{margin-left:auto}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol{bottom:unset;position:relative;right:unset}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions{margin-left:unset;margin-right:auto}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar{max-width:none}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker{height:280px;overflow:hidden;position:relative}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker--selected,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker--selected{position:absolute;top:25%;width:100%}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker .sv__roller,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker .sv__roller{align-items:center;display:flex;flex-direction:column}}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey){border-radius:10px 10px 0 0;bottom:0;display:flex;flex-direction:column;left:0;margin:0;max-height:85vh;max-width:100%;min-width:100%;right:auto;top:unset;transform:unset;width:100%}#survicate-box :host .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls :host .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey){max-height:90%!important}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden{display:none}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen{max-height:unset!important}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea{font-size:16px}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point{overflow-y:auto}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container{transition:max-height .3s ease-in-out}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper{max-width:unset}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description{font-size:14px;line-height:22px}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question{font-size:16px;line-height:24px}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button{min-height:48px}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized{align-items:center;flex-direction:row;height:104px}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions{margin-left:auto}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol{bottom:unset;position:relative;right:unset}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions{margin-left:unset;margin-right:auto}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar{max-width:none}#survicate-box .sv-box-child.sv-mobile .sv__survey .sv__answer-picker,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey .sv__answer-picker{height:280px;overflow:hidden;position:relative}#survicate-box .sv-box-child.sv-mobile .sv__survey .sv__answer-picker--selected,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey .sv__answer-picker--selected{position:absolute;top:25%;width:100%}#survicate-box .sv-box-child.sv-mobile .sv__survey .sv__answer-picker .sv__roller,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey .sv__answer-picker .sv__roller{align-items:center;display:flex;flex-direction:column}@media only screen and (max-width:568px){#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey){border-radius:10px 10px 0 0;bottom:0;display:flex;flex-direction:column;left:0;margin:0;max-height:85vh;max-width:100%;min-width:100%;right:auto;top:unset;transform:unset;width:100%}#survicate-box :host .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls :host .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey){max-height:90%!important}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden{display:none}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen{max-height:unset!important}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea{font-size:16px}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point{overflow-y:auto}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container{transition:max-height .3s ease-in-out}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper{max-width:unset}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description{font-size:14px;line-height:22px}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question{font-size:16px;line-height:24px}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button{min-height:48px}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized{align-items:center;flex-direction:row;height:104px}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions{margin-left:auto}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol{bottom:unset;position:relative;right:unset}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions{margin-left:unset;margin-right:auto}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar{max-width:none}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker{height:280px;overflow:hidden;position:relative}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker--selected,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker--selected{position:absolute;top:25%;width:100%}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker .sv__roller,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker .sv__roller{align-items:center;display:flex;flex-direction:column}}#survicate-box .sv__survey-bottom-placeholder,#sv-screenshot-controls .sv__survey-bottom-placeholder{height:12px}#survicate-box .survicate_plus-button_OvC0J,#sv-screenshot-controls .survicate_plus-button_OvC0J{bottom:10px;position:absolute;right:15px}#survicate-box .sv__survey.sv-tablet.sv__micro-theme,#sv-screenshot-controls .sv__survey.sv-tablet.sv__micro-theme{min-height:285px}#survicate-box .sv__survey.sv-tablet.sv__micro-theme .sv__micro-top-bar,#sv-screenshot-controls .sv__survey.sv-tablet.sv__micro-theme .sv__micro-top-bar{max-width:none}#survicate-box input::-webkit-input-placeholder,#sv-screenshot-controls input::-webkit-input-placeholder{line-height:normal!important}',""]);const a=n.toString()},314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var s="",r=void 0!==t[5];return t[4]&&(s+="@supports (".concat(t[4],") {")),t[2]&&(s+="@media ".concat(t[2]," {")),r&&(s+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),s+=e(t),r&&(s+="}"),t[2]&&(s+="}"),t[4]&&(s+="}"),s}).join("")},t.i=function(e,s,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var n={};if(r)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(n[c]=!0)}for(var l=0;l<e.length;l++){var v=[].concat(e[l]);r&&n[v[0]]||(void 0!==o&&(void 0===v[5]||(v[1]="@layer".concat(v[5].length>0?" ".concat(v[5]):""," {").concat(v[1],"}")),v[5]=o),s&&(v[2]?(v[1]="@media ".concat(v[2]," {").concat(v[1],"}"),v[2]=s):v[2]=s),i&&(v[4]?(v[1]="@supports (".concat(v[4],") {").concat(v[1],"}"),v[4]=i):v[4]="".concat(i)),t.push(v))}},t}},601(e){"use strict";e.exports=function(e){return e[1]}},574(e){"use strict";e.exports=i,e.exports.isMobile=i,e.exports.default=i;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,s=/CrOS/,r=/android|ipad|playbook|silk/i;function i(e){e||(e={});let i=e.ua;if(i||"undefined"==typeof navigator||(i=navigator.userAgent),i&&i.headers&&"string"==typeof i.headers["user-agent"]&&(i=i.headers["user-agent"]),"string"!=typeof i)return!1;let o=t.test(i)&&!s.test(i)||!!e.tablet&&r.test(i);return!o&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==i.indexOf("Macintosh")&&-1!==i.indexOf("Safari")&&(o=!0),o}},733(e){e.exports=function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)"__proto__"!==r&&(e[r]=s[r])}return e}function t(s,r){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var n="";for(var a in o)o[a]&&(n+="; "+a,!0!==o[a]&&(n+="="+o[a].split(";")[0]));return document.cookie=t+"="+s.write(i,t)+n}}function o(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],r={},i=0;i<t.length;i++){var o=t[i].split("="),n=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(a in r||(r[a]=s.read(n,a)),e===a)break}catch{}}return e?r[e]:r}}return Object.create({set:i,get:o,remove:function(t,s){i(t,"",e({},s,{expires:-1}))},withAttributes:function(s){return t(this.converter,e({},this.attributes,s))},withConverter:function(s){return t(e({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(s)}})}return t({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},172(e,t,s){"use strict";s.r(t),s.d(t,{Component:()=>P,Fragment:()=>E,cloneElement:()=>J,createContext:()=>ee,createElement:()=>T,createRef:()=>O,h:()=>T,hydrate:()=>X,isValidElement:()=>n,options:()=>i,render:()=>Q,toChildArray:()=>F});var r,i,o,n,a,c,l,v,_,u,d,p,m,h,b,g,f={},y=[],w=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,x=Array.isArray;function S(e,t){for(var s in t)e[s]=t[s];return e}function k(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function T(e,t,s){var i,o,n,a={};for(n in t)"key"==n?i=t[n]:"ref"==n?o=t[n]:a[n]=t[n];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):s),"function"==typeof e&&null!=e.defaultProps)for(n in e.defaultProps)void 0===a[n]&&(a[n]=e.defaultProps[n]);return A(e,a,i,o,null)}function A(e,t,s,r,n){var a={type:e,props:t,key:s,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n??++o,__i:-1,__u:0};return null==n&&null!=i.vnode&&i.vnode(a),a}function O(){return{current:null}}function E(e){return e.children}function P(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var s;t<e.__k.length;t++)if(null!=(s=e.__k[t])&&null!=s.__e)return s.__e;return"function"==typeof e.type?C(e):null}function M(e){if(e.__P&&e.__d){var t=e.__v,s=t.__e,r=[],o=[],n=S({},t);n.__v=t.__v+1,i.vnode&&i.vnode(n),B(e.__P,n,t,e.__n,e.__P.namespaceURI,32&t.__u?[s]:null,r,s??C(t),!!(32&t.__u),o),n.__v=t.__v,n.__.__k[n.__i]=n,H(r,n,o),t.__e=t.__=null,n.__e!=s&&I(n)}}function I(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),I(e)}function N(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!j.__r++||c!=i.debounceRendering)&&((c=i.debounceRendering)||l)(j)}function j(){try{for(var e,t=1;a.length;)a.length>t&&a.sort(v),e=a.shift(),t=a.length,M(e)}finally{a.length=j.__r=0}}function R(e,t,s,r,i,o,n,a,c,l,v){var _,u,d,p,m,h,b,g=r&&r.__k||y,w=t.length;for(c=D(s,t,g,c,w),_=0;_<w;_++)null!=(d=s.__k[_])&&(u=-1!=d.__i&&g[d.__i]||f,d.__i=_,h=B(e,d,u,i,o,n,a,c,l,v),p=d.__e,d.ref&&u.ref!=d.ref&&(u.ref&&G(u.ref,null,d),v.push(d.ref,d.__c||p,d)),null==m&&null!=p&&(m=p),(b=!!(4&d.__u))||u.__k===d.__k?(c=L(d,c,e,b),b&&u.__e&&(u.__e=null)):"function"==typeof d.type&&void 0!==h?c=h:p&&(c=p.nextSibling),d.__u&=-7);return s.__e=m,c}function D(e,t,s,r,i){var o,n,a,c,l,v=s.length,_=v,u=0;for(e.__k=new Array(i),o=0;o<i;o++)null!=(n=t[o])&&"boolean"!=typeof n&&"function"!=typeof n?("string"==typeof n||"number"==typeof n||"bigint"==typeof n||n.constructor==String?n=e.__k[o]=A(null,n,null,null,null):x(n)?n=e.__k[o]=A(E,{children:n},null,null,null):void 0===n.constructor&&n.__b>0?n=e.__k[o]=A(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):e.__k[o]=n,c=o+u,n.__=e,n.__b=e.__b+1,a=null,-1!=(l=n.__i=z(n,s,c,_))&&(_--,(a=s[l])&&(a.__u|=2)),null==a||null==a.__v?(-1==l&&(i>v?u--:i<v&&u++),"function"!=typeof n.type&&(n.__u|=4)):l!=c&&(l==c-1?u--:l==c+1?u++:(l>c?u--:u++,n.__u|=4))):e.__k[o]=null;if(_)for(o=0;o<v;o++)null!=(a=s[o])&&!(2&a.__u)&&(a.__e==r&&(r=C(a)),Y(a,a));return r}function L(e,t,s,r){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=L(i[o],t,s,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=C(e)),s.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function F(e,t){return t=t||[],null==e||"boolean"==typeof e||(x(e)?e.some(function(e){F(e,t)}):t.push(e)),t}function z(e,t,s,r){var i,o,n,a=e.key,c=e.type,l=t[s],v=null!=l&&!(2&l.__u);if(null===l&&null==a||v&&a==l.key&&c==l.type)return s;if(r>(v?1:0))for(i=s-1,o=s+1;i>=0||o<t.length;)if(null!=(l=t[n=i>=0?i--:o++])&&!(2&l.__u)&&a==l.key&&c==l.type)return n;return-1}function q(e,t,s){"-"==t[0]?e.setProperty(t,s??""):e[t]=null==s?"":"number"!=typeof s||w.test(t)?s:s+"px"}function U(e,t,s,r,i){var o,n;e:if("style"==t)if("string"==typeof s)e.style.cssText=s;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)s&&t in s||q(e.style,t,"");if(s)for(t in s)r&&s[t]==r[t]||q(e.style,t,s[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(p,"$1")),n=t.toLowerCase(),t=n in e||"onFocusOut"==t||"onFocusIn"==t?n.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=s,s?r?s[d]=r[d]:(s[d]=m,e.addEventListener(t,o?b:h,o)):e.removeEventListener(t,o?b:h,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=s??"";break e}catch(e){}"function"==typeof s||(null==s||!1===s&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==s?"":s))}}function $(e){return function(t){if(this.l){var s=this.l[t.type+e];if(null==t[u])t[u]=m++;else if(t[u]<s[d])return;return s(i.event?i.event(t):t)}}}function B(e,t,s,r,o,n,a,c,l,v){var _,u,d,p,m,h,b,g,f,w,T,A,O,C,M,I=t.type;if(void 0!==t.constructor)return null;128&s.__u&&(l=!!(32&s.__u),n=[c=t.__e=s.__e]),(_=i.__b)&&_(t);e:if("function"==typeof I)try{if(g=t.props,f=I.prototype&&I.prototype.render,w=(_=I.contextType)&&r[_.__c],T=_?w?w.props.value:_.__:r,s.__c?b=(u=t.__c=s.__c).__=u.__E:(f?t.__c=u=new I(g,T):(t.__c=u=new P(g,T),u.constructor=I,u.render=Z),w&&w.sub(u),u.state||(u.state={}),u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),f&&null==u.__s&&(u.__s=u.state),f&&null!=I.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=S({},u.__s)),S(u.__s,I.getDerivedStateFromProps(g,u.__s))),p=u.props,m=u.state,u.__v=t,d)f&&null==I.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),f&&null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(f&&null==I.getDerivedStateFromProps&&g!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,T),t.__v==s.__v||!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,T)){t.__v!=s.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=s.__e,t.__k=s.__k,t.__k.some(function(e){e&&(e.__=t)}),y.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,T),f&&null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(p,m,h)})}if(u.context=T,u.props=g,u.__P=e,u.__e=!1,A=i.__r,O=0,f)u.state=u.__s,u.__d=!1,A&&A(t),_=u.render(u.props,u.state,u.context),y.push.apply(u.__h,u._sb),u._sb=[];else do{u.__d=!1,A&&A(t),_=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++O<25);u.state=u.__s,null!=u.getChildContext&&(r=S(S({},r),u.getChildContext())),f&&!d&&null!=u.getSnapshotBeforeUpdate&&(h=u.getSnapshotBeforeUpdate(p,m)),C=null!=_&&_.type===E&&null==_.key?W(_.props.children):_,c=R(e,x(C)?C:[C],t,s,r,o,n,a,c,l,v),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),b&&(u.__E=u.__=null)}catch(e){if(t.__v=null,l||null!=n)if(e.then){for(t.__u|=l?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;n[n.indexOf(c)]=null,t.__e=c}else{for(M=n.length;M--;)k(n[M]);V(t)}else t.__e=s.__e,t.__k=s.__k,e.then||V(t);i.__e(e,t,s)}else null==n&&t.__v==s.__v?(t.__k=s.__k,t.__e=s.__e):c=t.__e=K(s.__e,t,s,r,o,n,a,l,v);return(_=i.diffed)&&_(t),128&t.__u?void 0:c}function V(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(V))}function H(e,t,s){for(var r=0;r<s.length;r++)G(s[r],s[++r],s[++r]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function W(e){return"object"!=typeof e||null==e||e.__b>0?e:x(e)?e.map(W):void 0!==e.constructor?null:S({},e)}function K(e,t,s,o,n,a,c,l,v){var _,u,d,p,m,h,b,g=s.props||f,y=t.props,w=t.type;if("svg"==w?n="http://www.w3.org/2000/svg":"math"==w?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),null!=a)for(_=0;_<a.length;_++)if((m=a[_])&&"setAttribute"in m==!!w&&(w?m.localName==w:3==m.nodeType)){e=m,a[_]=null;break}if(null==e){if(null==w)return document.createTextNode(y);e=document.createElementNS(n,w,y.is&&y),l&&(i.__m&&i.__m(t,a),l=!1),a=null}if(null==w)g===y||l&&e.data==y||(e.data=y);else{if(a="textarea"==w&&null!=y.defaultValue?null:a&&r.call(e.childNodes),!l&&null!=a)for(g={},_=0;_<e.attributes.length;_++)g[(m=e.attributes[_]).name]=m.value;for(_ in g)m=g[_],"dangerouslySetInnerHTML"==_?d=m:"children"==_||_ in y||"value"==_&&"defaultValue"in y||"checked"==_&&"defaultChecked"in y||U(e,_,null,m,n);for(_ in y)m=y[_],"children"==_?p=m:"dangerouslySetInnerHTML"==_?u=m:"value"==_?h=m:"checked"==_?b=m:l&&"function"!=typeof m||g[_]===m||U(e,_,m,g[_],n);if(u)l||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),R("template"==t.type?e.content:e,x(p)?p:[p],t,s,o,"foreignObject"==w?"http://www.w3.org/1999/xhtml":n,a,c,a?a[0]:s.__k&&C(s,0),l,v),null!=a)for(_=a.length;_--;)k(a[_]);l&&"textarea"!=w||(_="value","progress"==w&&null==h?e.removeAttribute("value"):null!=h&&(h!==e[_]||"progress"==w&&!h||"option"==w&&h!=g[_])&&U(e,_,h,g[_],n),_="checked",null!=b&&b!=e[_]&&U(e,_,b,g[_],n))}return e}function G(e,t,s){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){i.__e(e,s)}}function Y(e,t,s){var r,o;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||G(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Y(r[o],t,s||"function"!=typeof e.type);s||k(e.__e),e.__c=e.__=e.__e=void 0}function Z(e,t,s){return this.constructor(e,s)}function Q(e,t,s){var o,n,a,c;t==document&&(t=document.documentElement),i.__&&i.__(e,t),n=(o="function"==typeof s)?null:s&&s.__k||t.__k,a=[],c=[],B(t,e=(!o&&s||t).__k=T(E,null,[e]),n||f,f,t.namespaceURI,!o&&s?[s]:n?null:t.firstChild?r.call(t.childNodes):null,a,!o&&s?s:n?n.__e:t.firstChild,o,c),H(a,e,c)}function X(e,t){Q(e,t,X)}function J(e,t,s){var i,o,n,a,c=S({},e.props);for(n in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==n?i=t[n]:"ref"==n?o=t[n]:c[n]=void 0===t[n]&&null!=a?a[n]:t[n];return arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):s),A(e.type,c,i||e.key,o||e.ref,null)}function ee(e){function t(e){var s,r;return this.getChildContext||(s=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&s.forEach(function(e){e.__e=!0,N(e)})},this.sub=function(e){s.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){s&&s.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+g++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=y.slice,i={__e:function(e,t,s,r){for(var i,o,n;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),n=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),n=i.__d),n)return i.__E=i}catch(t){e=t}throw e}},o=0,n=function(e){return null!=e&&void 0===e.constructor},P.prototype.setState=function(e,t){var s;s=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=S({},this.state),"function"==typeof e&&(e=e(S({},s),this.props)),e&&S(s,e),null!=e&&this.__v&&(t&&this._sb.push(t),N(this))},P.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),N(this))},P.prototype.render=E,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,v=function(e,t){return e.__v.__b-t.__v.__b},j.__r=0,_=Math.random().toString(8),u="__d"+_,d="__a"+_,p=/(PointerCapture)$|Capture$/i,m=0,h=$(!1),b=$(!0),g=0},635(e,t,s){var r=s(172);function i(e,t){for(var s in t)e[s]=t[s];return e}function o(e){this.getChildContext=function(){return{store:e.store}}}o.prototype.render=function(e){return e.children&&e.children[0]||e.children},t.N=function(e,t){var s;return"function"!=typeof e&&("string"==typeof(s=e||{})&&(s=s.split(/\s*,\s*/)),e=function(e){for(var t={},r=0;r<s.length;r++)t[s[r]]=e[s[r]];return t}),function(s){function o(o,n){var a=this,c=n.store,l=e(c?c.getState():{},o),v=t?function(e,t){"function"==typeof e&&(e=e(t));var s={};for(var r in e)s[r]=t.action(e[r]);return s}(t,c):{store:c},_=function(){var t=e(c?c.getState():{},o);for(var s in t)if(t[s]!==l[s])return l=t,a.setState({});for(var r in l)if(!(r in t))return l=t,a.setState({})};this.componentWillReceiveProps=function(e){o=e,_()},this.componentDidMount=function(){c.subscribe(_)},this.componentWillUnmount=function(){c.unsubscribe(_)},this.render=function(e){return r.h(s,i(i(i({},v),e),l))}}return(o.prototype=new r.Component).constructor=o}},t.K=o}},t={};function s(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";s.d(r,{default:()=>Od});const e=new Uint8Array(16);const t=[];for(let e=0;e<256;++e)t.push((e+256).toString(16).slice(1));function i(e,s=0){return(t[e[s+0]]+t[e[s+1]]+t[e[s+2]]+t[e[s+3]]+"-"+t[e[s+4]]+t[e[s+5]]+"-"+t[e[s+6]]+t[e[s+7]]+"-"+t[e[s+8]]+t[e[s+9]]+"-"+t[e[s+10]]+t[e[s+11]]+t[e[s+12]]+t[e[s+13]]+t[e[s+14]]+t[e[s+15]]).toLowerCase()}const o=function(t,s,r){return s||t||!crypto.randomUUID?function(t,s,r){t=t||{};const o=t.random??t.rng?.()??crypto.getRandomValues(e);if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,s){if((r=r||0)<0||r+16>s.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)s[r+e]=o[e];return s}return i(o)}(t,s,r):crypto.randomUUID()},n=()=>{try{if("function"==typeof Date.now){const e=Date.now();if("number"==typeof e&&Number.isFinite(e))return e}}catch(e){console.warn("[getTimestamp] Date.now is not a function")}return(new Date).getTime()},a=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e);function c(e,t){for(var s in t)e[s]=t[s];return e}function l(e){var t=[];function s(e){for(var s=[],r=0;r<t.length;r++)t[r]===e?e=null:s.push(t[r]);t=s}function r(s,r,i){e=r?s:c(c({},e),s);for(var o=t,n=0;n<o.length;n++)o[n](e,i)}return e=e||{},{action:function(t){function s(e){r(e,!1,t)}return function(){for(var r=arguments,i=[e],o=0;o<arguments.length;o++)i.push(r[o]);var n=t.apply(this,i);if(null!=n)return n.then?n.then(s):s(n)}},setState:r,subscribe:function(e){return t.push(e),function(){s(e)}},unsubscribe:s,getState:function(){return e}}}Object.defineProperty(l,"name",{value:"default",configurable:!0});const v=l({events:[],isEnabled:!1});class _{constructor(){this.localStorage=window.localStorage,this.persistent=!0,this.getItem=e=>this.localStorage.getItem(e),this.setItem=(e,t)=>this.localStorage.setItem(e,t),this.removeItem=e=>this.localStorage.removeItem(e),this.keys=()=>{const e=[];for(let t=0;t<this.localStorage.length;t++){const s=this.localStorage.key(t);null!==s&&e.push(s)}return e}}}const u=e=>{try{return JSON.parse(e)}catch(t){return e}};var d,p;!function(e){e.exact="exact",e.regexp="regexp",e.end="end",e.simple="simple",e.contains="contains"}(d||(d={})),function(e){e.WidgetSurvey="WidgetSurvey",e.PageSurvey="PageSurvey",e.MobileSurvey="MobileSurvey",e.FeedbackButton="FeedbackButton",e.IntercomSurvey="IntercomSurvey"}(p||(p={}));const m=[p.WidgetSurvey,p.FeedbackButton];class h{constructor(){this.store={},this.persistent=!1,this.getItem=e=>e in this.store?this.store[e]:null,this.setItem=(e,t)=>{this.store[e]=t},this.removeItem=e=>{delete this.store[e]},this.keys=()=>Object.keys(this.store)}}class b{constructor(e){this.storeType=e,this.storage=this.initStorage()}get prefix(){var e,t;return`survi::${null!==(t=null===(e=window._svc)||void 0===e?void 0:e.workspaceKey)&&void 0!==t?t:""}::${this.storeType===p.FeedbackButton?`${this.storeType}::`:""}`}safe(e,t=void 0){var s;try{return e()}catch(r){if(this.storage.persistent){const t=this.storage;return this.storage=new h,null===(s=this.migrateFrom)||void 0===s||s.call(this,t),e()}return console.warn("[BaseStore] Error:",r),t}}get(e,t=!1){const s=(t?"":this.prefix)+e;return this.safe(()=>u(this.storage.getItem(s)),null)}set(e,t,s=!1){const r=(s?"":this.prefix)+e,i=JSON.stringify(t);this.safe(()=>this.storage.setItem(r,i))}remove(e,t=!1){const s=(t?"":this.prefix)+e;this.safe(()=>this.storage.removeItem(s))}each(e){this.safe(()=>{this.storage.keys().filter(e=>e.startsWith(this.prefix)).forEach(t=>e(this.get(t,!0),t))})}}var g,f,y,w,x,S,k,T,A,O,E,P,C,M,I=s(574),N=s.n(I);!function(e){e.light="light",e.dark="dark"}(g||(g={})),function(e){e.immediately="immediately",e.delayed="delayed",e.exitIntent="leaveintent",e.scroll="scroll",e.event="event"}(f||(f={})),function(e){e.immediately="immediately",e.delayed="delayed",e.exitIntent="exitIntent",e.scroll="onScroll"}(y||(y={})),function(e){e.center="center",e.dialog="dialog",e.fullscreen="fullscreen",e.left="left",e.right="right",e.topLeft="topleft",e.topRight="topright"}(w||(w={})),function(e){e.visit="visit",e.visitor="visitor"}(x||(x={})),function(e){e.Widget="widget",e.Feedback="feedback",e.Braze="braze"}(S||(S={}));class j{static isMobile(){return N()({tablet:!1})&&this.isAvailable()}static inBrazePreview(){return!(null===window||void 0===window?void 0:window.brazeDashboardConfig)&&this.isSandboxed()}static isAvailable(){var e,t,s,r,i,o,n;if("undefined"==typeof window)return!1;const a=null===(s=null===(t=null===(e=window._sva)||void 0===e?void 0:e.responseTraits)||void 0===t?void 0:t.find(e=>"braze_id"===e.name))||void 0===s?void 0:s.value;return!(!(null===(i=null===(r=window._sva)||void 0===r?void 0:r.traits)||void 0===i?void 0:i.braze_id)&&!a||!(null===(n=null===(o=window._sva)||void 0===o?void 0:o.traits)||void 0===n?void 0:n.braze_survey_id))}static isSandboxed(){try{const e="__sandbox_test__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!1}catch(e){return!!(e instanceof DOMException&&("SecurityError"===e.name||e.message.includes("sandbox")||e.message.includes("allow-same-origin")||e.message.includes("insecure")))}}static findTargetedSurvey(e){var t,s;const r=null===(s=null===(t=window._sva)||void 0===t?void 0:t.traits)||void 0===s?void 0:s.braze_survey_id,i=e.filter(e=>e.settings.format===S.Braze);if(!r)return[];const o=i.find(e=>e.id===r);return o?[o]:[]}static removeSurveys(e){return e.filter(e=>e.settings.format!==S.Braze)}static cleanupBrazeSurvey(){try{"undefined"!=typeof window&&window.brazeBridge&&"function"==typeof window.brazeBridge.closeMessage?window.brazeBridge.closeMessage():console.warn("Braze JavaScript bridge not available - cannot close in-app message programmatically")}catch(e){console.error("Error during Braze survey cleanup:",e)}}}function R(e,t){if(j.isSandboxed())return new h;try{const s=e(),r="__probe__";return s.setItem(r,r),s.removeItem(r),t()}catch(e){return new h}}!function(e){e.requests="requests",e.requests_contacts="requests_contacts",e.status="status",e.all="all",e.visitor="",e.backendCache="backendCache",e.backendAttributes="backendAttributes"}(k||(k={})),function(e){e.visitor="visitor",e.requestHandler="requestHandler",e.identityUuidPairs="identityUuidPairs"}(T||(T={})),function(e){e.visitorAttributes="visitorAttributes",e.visitorIdentities="visitorIdentities",e.identityUuidPairs="identityUuidPairs"}(A||(A={})),function(e){e.EventStore="EventStore"}(O||(O={})),function(e){e.events="events"}(E||(E={})),function(e){e.UrlConfigStore="UrlConfigStore"}(P||(P={})),function(e){e.BackendAttributesStore="BackendAttributesStore"}(C||(C={})),function(e){e.VisitorStore="VisitorStore"}(M||(M={}));class D extends b{initStorage(){return R(()=>window.localStorage,()=>new _)}migrateFrom(e){try{e.keys()}catch(e){return void console.warn("[LocalStore] Migration aborted: Unable to enumerate keys, storage is blocked")}try{e.keys().filter(e=>e.startsWith(this.prefix)).forEach(t=>{if(t.includes(`${this.prefix}${k.requests}`))return void e.removeItem(t);const s=e.getItem(t);null!==s&&this.storage.setItem(t,s)})}catch(e){console.warn("[LocalStore] Migration aborted:",e)}}}const L=(()=>{const e={};return{getStore:t=>(e[t]||(e[t]=new D(t)),e[t])}})(),F="contactsUrl",z="contactsUrlFailure",q=L.getStore(P.UrlConfigStore),U=(()=>{const e=q.get(F);return e?{contactsUrl:e}:{contactsUrl:null}})(),$=l({contactsUrl:(null==U?void 0:U.contactsUrl)||null,respondentUrl:"https://respondent.survicate.com",surveysStaticUrl:"https://surveys-static.survicate.com"});var B=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const V=e=>({get:t=>B(void 0,void 0,void 0,function*(){const s=yield window.fetch(`${e}${t}`,{headers:{"Content-Type":"application/json"},method:"GET"}),r=s.headers.get("content-type");if("text/html"===r)return s.clone().text().then(e=>{/This survey is currently unavailable/.test(e)&&console.warn("Please verify your workspace key")}),{data:s,status:s.status};if(null==r?void 0:r.includes("text/plain"))return{data:null,status:s.status};return{data:yield s.json(),status:s.status}}),post:(t,s)=>B(void 0,void 0,void 0,function*(){return window.fetch(`${e}${t}`,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"},method:"POST"})})});var H=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const W=e=>H(void 0,void 0,void 0,function*(){try{200!==(yield V($.getState().respondentUrl).post(`/workspaces/${window._svc.workspaceKey}/targeting_event.json`,e)).status&&v.setState({isEnabled:!1})}catch(e){console.error("Error sending event to backend:",e),v.setState({isEnabled:!1})}});const K=function(e,t=255){return"string"!=typeof e?String(e).substring(0,t):e.substring(0,t)};var G,Y,Z,Q,X,J,ee,te,se,re,ie,oe,ne;!function(e){e.nps="nps"}(G||(G={})),function(e){e.default="default",e.horizontal="horizontal"}(Y||(Y={})),function(e){e.hearts="hearts",e.stars="stars",e.thumbs="thumbs"}(Z||(Z={})),function(e){e.day="DD",e.month="MM",e.year="YYYY"}(Q||(Q={})),function(e){e.single="single",e.multiple="multiple",e.text="text",e.smileyScale="smiley_scale",e.date="date",e.rating="rating",e.dropdown="dropdown_list",e.matrix="matrix",e.ranking="ranking",e.numericalScale="numerical_scale",e.customerSatisfaction="csat"}(X||(X={})),function(e){e.verySad="Extremely unsatisfied",e.sad="Unsatisfied",e.neutral="Neutral",e.happy="Happy",e.veryHappy="Extremely happy"}(J||(J={})),function(e){e.referrerUrl="visitReferrerUrl",e.initialUrl="visitInitialUrl",e.displayedSurveys="visitDisplayedSurveys",e.views="visitViews",e.engaged="visitEngaged",e.answers="visitAnswers",e.sampledSurveys="visitSampledSurveys",e.responseAttributes="visitResponseAttributes",e.forcedLanguage="visitForcedLanguage"}(ee||(ee={})),function(e){e.uuid="visitorUuid",e.attributes="visitorAttributes",e.engagedSurveys="visitorEngagedSurveys",e.displayedSurveys="visitorDisplayedSurveys",e.identities="visitorIdentities",e.tags="visitorTags",e.visitsCount="visitsCount",e.validation="validation"}(te||(te={})),function(e){e.requestHandler="requestHandler",e.savedVisitor="visitorSaved"}(se||(se={})),function(e){e.state="singleTabState",e.tabId="singleTabId"}(re||(re={})),function(e){e.errorSent="errorSent"}(ie||(ie={})),function(e){e.surveys="cacheSurveys",e.audiences="cacheAudiences"}(oe||(oe={})),function(e){e.sessionViews="unifiedSessionViews"}(ne||(ne={}));class ae{constructor(){this.sessionStorage=window.sessionStorage,this.persistent=!0,this.getItem=e=>this.sessionStorage.getItem(e),this.setItem=(e,t)=>this.sessionStorage.setItem(e,t),this.removeItem=e=>this.sessionStorage.removeItem(e),this.keys=()=>{const e=[];for(let t=0;t<this.sessionStorage.length;t++){const s=this.sessionStorage.key(t);null!==s&&e.push(s)}return e}}}class ce extends b{initStorage(){return R(()=>window.sessionStorage,()=>new ae)}}const le=(()=>{const e={};return{getStore:t=>(e[t]||(e[t]=new ce(t)),e[t])}})();var ve;!function(e){e.questionAnswered="question_answered",e.surveyDisplayed="survey_displayed",e.surveyCompleted="survey_completed",e.surveyClosed="survey_closed"}(ve||(ve={}));const _e=new class{constructor(){this.lastEventId=0,this.listeners={[ve.questionAnswered]:[],[ve.surveyClosed]:[],[ve.surveyCompleted]:[],[ve.surveyDisplayed]:[]}}add(e,t){if(this.lastEventId+=1,!this.listeners[e])throw new Error("Event Listeners: Wrong event name.");return this.listeners[e].push({callback:t,id:this.lastEventId}),this.lastEventId}removeEventById(e){const t=t=>t.id!==e;this.listeners[ve.questionAnswered]=this.listeners[ve.questionAnswered].filter(t),this.listeners[ve.surveyDisplayed]=this.listeners[ve.surveyDisplayed].filter(t),this.listeners[ve.surveyCompleted]=this.listeners[ve.surveyCompleted].filter(t),this.listeners[ve.surveyClosed]=this.listeners[ve.surveyClosed].filter(t)}removeAllEventListenersByName(e){if(!this.listeners[e])throw new Error("Event listeners of this name cannot be removed: wrong event name.");this.listeners[e]=[]}remove(e){"number"!=typeof e?this.removeAllEventListenersByName(e):this.removeEventById(e)}fireEvent(e,t){this.listeners[e].forEach(({callback:s})=>{const{surveyId:r,questionId:i,answer:o,surveyName:n}=t;try{e===ve.questionAnswered&&i&&o&&s(r,i,o),e===ve.surveyDisplayed&&n?s(r,n):s(r,o)}catch(t){console.error(`Your callback function to Survicate '${e}' event returned an error: ${t}`)}})}};class ue{static error(e,t){var s,r,i,o;if((null===(s=t.stack)||void 0===s?void 0:s.includes("Http.ts:"))||"Failed to fetch"===t.message||(null===(r=t.message)||void 0===r?void 0:r.toLowerCase().includes("fetch"))||(null===(i=t.stack)||void 0===i?void 0:i.toLowerCase().includes("fetch")))return void this.warn(`HTTP Error: ${t.message}`,t);if(le.getStore(e).get(ie.errorSent))return;le.getStore(e).set(ie.errorSent,!0);const n={errorDetails:t.errorDetails,installationMethod:null===(o=null===window||void 0===window?void 0:window._svx)||void 0===o?void 0:o.installation,message:t.message,stack:t.stack};this.log({error:n,level:"ERROR"})}static warn(e,t){this.log({error:t,level:"WARN",message:e})}static log(e){const t=window._svc||{};V($.getState().respondentUrl).post(`/workspaces/${t.workspaceKey}/logs.json`,Object.assign(Object.assign({},e),{url:document.location.toString(),user_agent:window.navigator.userAgent,version:"28.24.0"}))}static isSurvicateError(e=""){return!e.match(/https:\/\/(?!surveys)[^]*Generator\._invoke/)&&(e.includes("widget_core")||e.includes("page_core"))}static shouldLogError(e,t){return!(!t||!t.stack)&&(ue.isSurvicateError(t.stack)&&!le.getStore(e).get(ie.errorSent)&&![/Network Error/,/Navigating/,/quota/,/invalid security context/].some(e=>!!t.message.match(e)))}static initGlobalErrorsWatch(e){window.addEventListener("error",function t(s){ue.shouldLogError(e,s.error)&&(ue.error(e,s.error),window.removeEventListener("error",t))}),window.addEventListener("unhandledrejection",function t(s){s.reason&&s.reason.stack&&ue.shouldLogError(e,s.reason)&&(ue.error(e,s.reason),window.removeEventListener("unhandledrejection",t))})}}const de=ue;var pe,me,he;!function(e){e.answered="answered_v3.json",e.interactions="survey_interactions",e.seen="seen.json",e.targeting="targeting",e.userAttributes="user_attributes",e.userEvents="user_events",e.userVerification="verify_user"}(pe||(pe={})),function(e){e.answered="answered",e.closed="closed",e.completed="completed",e.seen="seen"}(me||(me={})),function(e){e.CONTACTS="/contacts",e.WORKSPACES="/workspaces",e.SURVEYS="/surveys"}(he||(he={}));const be=e=>new Promise(t=>{setTimeout(t,e)});(Object.getOwnPropertyDescriptor(be,"name")||{}).writable||Object.defineProperty(be,"name",{value:"default",configurable:!0});const ge=e=>{if(!e)return{};const t={};for(const[s,r]of Object.entries(e))t[s]=r.value;return t},fe="user_key",ye=e=>Object.assign(Object.assign({},e),{response_attributes:void 0}),we=e=>{const t=Object.assign({},e.attributes);return t&&fe in t&&delete t[fe],Object.assign(Object.assign({},e),{attributes:t})},xe=(e,t)=>{var s,r;return{attributes:ge(e.attributes),identities:e.identities,tags:t&&null!==(r=null===(s=e[t])||void 0===s?void 0:s.tags)&&void 0!==r?r:[],uuid:e.uuid}};class Se{isSuccess(){return!1}}class ke{constructor(e){this.responseData=e}isSuccess(){return!0}getResponseData(){return this.responseData}}const Te={audiences:[],integrations:[],permissions:null,surveys:[],targetingEvents:[],themes:[],translations:null,workspaceKey:null};var Ae;!function(e){e.empty="",e.mobile="mobile",e.tablet="tablet",e.desktop="desktop"}(Ae||(Ae={}));var Oe;!function(e){e.Light="Light",e.Dark="Dark",e.Auto="Auto"}(Oe||(Oe={}));const Ee={forceDisplay:!1,isAlreadyAnswered:!1,isAnimationActive:!1,isAnsweredByEmail:!1,isFinished:!1,isHidden:!1,isMinimized:!1,isOverlayActive:!1,isRTLLanguage:!1,isTabActive:!1,pointsAnswered:{},pointsDisplayed:[],pointsForward:[],responseUuid:"",screenshotState:{isEnabled:!1,screenshot:null},survey:null,theme:null,themeMode:Oe.Auto,translationLanguage:null,translations:null,triggeredPointPreview:null},Pe=(Ae.desktop,{backendData:Te,backendService:null,isPreview:!1,previewDevice:Ae.empty,rootElement:null,sampledSurveys:null,satisfiedTriggers:{},storageService:null,storeType:null,surveyApiState:{surveysTriggeredByApi:[]},surveyState:Ee,tabId:0,update:{}}),Ce=l(Pe),Me={getStore:(()=>{const e={};return t=>{if(!t)return Ce;const s=(e=>`store_${e}`)(t);return e[s]||(e[s]=l(Object.assign({},Pe))),e[s]}})()};class Ie{static ruleFulfilled(e,t,s){let r=s.href.replace("://www.","://").replace(`${s.protocol}//`,"");try{r=decodeURI(r)}catch(e){console.warn("Could not decode URL",e)}if(e)return!0;const i=t.filter(e=>!e.visible&&!!e.link&&!!e.regexp_text_pattern);if(this.linksMatchUrl(i,s.href,r))return!1;const o=t.filter(e=>e.visible&&!!e.link&&!!e.regexp_text_pattern);return!o.length||this.linksMatchUrl(o,s.href,r)}static linksMatchUrl(e,t,s){for(let r=0;r<e.length;r+=1){const i=new RegExp(e[r].regexp_text_pattern);if(i.test(t)||i.test(s))return!0}return!1}}var Ne=s(880),je=s.n(Ne);function Re(e){if(!e)return null;try{return je().getParser(e)}catch(e){return null}}var De,Le=s(694);!function(e){e.visitor="visitor",e.response="response"}(De||(De={}));const Fe=(e,t,s=De.visitor)=>{if(s===De.visitor&&t===Le.USER_ID_TRAIT)return!1;if("number"==typeof e||"boolean"==typeof e||e instanceof Date)return!0;return!/^({.*})|(\*\|.*\|\*)|(\[.*\])|(%.*%)|(~.*~)|(--.*--)|(\$.*\$)$/.test(e)},ze=()=>{var e,t,s,r;return null!==(r=(null===(e=window._sva)||void 0===e?void 0:e.disableSensitiveDataPersistence)||(null===(s=null===(t=window._svd)||void 0===t?void 0:t.flags)||void 0===s?void 0:s.disable_sensitive_data_persistence))&&void 0!==r&&r};class qe{static getStorage(e){return ze()?le.getStore(e):L.getStore(e)}}var Ue;!function(e){e.aid="aid",e.multiple_responses="multiple_responses",e.sid="sid",e.uid="uid",e.p="p",e.autofocus="autofocus"}(Ue||(Ue={}));class $e{constructor(){this.params={},this.identitiesParams={},this.searchString=window.location.search.substring(1),this.url=this.getUrl(),this.identitiesParams=this.searchString?this.parseIdentitiesParams(this.searchString):{},this.params=this.searchString?this.getParams():{}}hasEncodedParams(e){return!!this.parseParams(e)[$e.ENCODED_PARAMS_KEY]}getDecodedSearchString(e){if(!e)return"";const t=e.startsWith("?")?e.substring(1):e;if(t.includes(`${$e.ENCODED_PARAMS_KEY}=`))try{return atob(t.split(`${$e.ENCODED_PARAMS_KEY}=`)[1]).substring(1)}catch(e){return console.warn(`Error decoding search string: ${e}`),""}return t}getParams(){return this.getParamsFromSearchString(this.searchString)}getParamsFromSearchString(e){if(!e)return{};const t=this.getDecodedSearchString(e);return t?this.parseParams(t):{}}getPointId(){return this.getParams().pointId||null}getUrl(){const e=this.getDecodedSearchString(this.searchString);return`${window.location.origin}${window.location.pathname}${e?`?${e}`:""}${window.location.hash}`}static normalizeParamKey(e){return e.startsWith("amp;")?e.slice(4):e}parseParams(e){const t={};return e.split("&").forEach(e=>{const[s,r]=e.split("=");if(!r)return;const i=$e.normalizeParamKey(s);try{t[i]=decodeURIComponent(r)}catch(e){console.warn(e),t[i]=r}}),t}parseIdentitiesParams(e){const t={};return e.split("&").forEach(e=>{const[s,r]=e.split("="),i=$e.normalizeParamKey(s);if(s===$e.ENCODED_PARAMS_KEY&&r)try{atob(r).split("&").forEach(e=>{const[s,r]=e.split("="),i=$e.normalizeParamKey(s);r&&!r.includes("%")&&(t[i]=r)})}catch(e){console.warn(`Error decoding ${$e.ENCODED_PARAMS_KEY}: ${e}`)}r&&!r.includes("%")&&(t[i]=r)}),t}replaceWindowUrl(){if(Me.getStore(p.PageSurvey).getState().isPreview||this.hasEncodedParams(this.searchString)||!this.searchString)return;const e=`?${this.searchString}`,t=`?${$e.ENCODED_PARAMS_KEY}=`,s=e.includes(t)?t:`${t}${btoa(e)}`;window.history.replaceState({},"",s)}}$e.ENCODED_PARAMS_KEY="_svbep";const Be=new $e;var Ve;!function(e){e.Language="language",e.UserAgent="userAgent"}(Ve||(Ve={}));class He{constructor(e){this.surveyType=e,this.sessionStore=le.getStore(this.surveyType),this.answersStorage=qe.getStorage(this.surveyType);const t=this.sessionStore.get(ee.initialUrl),s=this.sessionStore.get(ee.referrerUrl);this.visitData=this.initializeVisitData(t,s),this.setCurrentView(),t!==this.visitData.initialUrl&&this.sessionStore.set(ee.initialUrl,this.visitData.initialUrl),s!==this.visitData.referrerUrl&&this.sessionStore.set(ee.referrerUrl,this.visitData.referrerUrl)}static getVisit(e){return new He(e)}getNavigatorProperty(e){var t,s;if("undefined"==typeof window)return"";try{return null!==(s=null===(t=window.navigator)||void 0===t?void 0:t[e])&&void 0!==s?s:""}catch(e){return""}}initializeVisitData(e,t){var s;const r="undefined"!=typeof window?Be.getUrl().replace(`${window.location.protocol}//`,""):"",i="undefined"!=typeof window&&(null===(s=window.optimizely)||void 0===s?void 0:s.get)?window.optimizely.get("state"):void 0;return{answers:this.getVisitAnswers(),device_type:this.getDeviceType(),displayedSurveys:this.getDisplayedSurveys(),engaged:this.getEngaged(),forcedLanguage:this.getForcedLanguageFromStorage(),initialUrl:e||r,language:this.getNavigatorProperty(Ve.Language),operating_system:this.getOperatingSystem(),optimizelyState:i,referrerUrl:t||this.getReferrer(),responseAttributes:this.getResponseAttributes(),sampledSurveys:this.getSampledSurveys(),user_agent:this.getNavigatorProperty(Ve.UserAgent),views:this.getViews()}}setCurrentView(){if("undefined"==typeof window)return;const e=Be.getUrl().replace(`${window.location.protocol}//`,"");Array.isArray(this.visitData.views)||(this.visitData.views=[],this.sessionStore.set(ee.views,this.visitData.views)),this.visitData.views.includes(e)||(this.visitData.views.push(e),this.sessionStore.set(ee.views,this.visitData.views))}get(){return this.visitData}getVisitAnswers(){return this.answersStorage.get(ee.answers)||{}}getAnswer(e){return this.visitData.answers[e]}getDisplayedSurveys(){return this.sessionStore.get(ee.displayedSurveys)||[]}getSampledSurveys(){return this.sessionStore.get(ee.sampledSurveys)||[]}getReferrer(){return document.referrer}getDeviceType(){const e=this.getNavigatorProperty(Ve.UserAgent);if(!e)return null;const t=Re(e);if(!t)return null;let s=(r=t.getPlatformType()).charAt(0).toUpperCase()+r.slice(1);var r;return["Desktop","Tablet","Mobile","Tv"].includes(s)||(s=null),s}getOperatingSystem(){const e=this.getNavigatorProperty(Ve.UserAgent);if(!e)return null;const t=Re(e);if(!t)return null;const s=t.getOSName();return s?["Windows","macOS","iOS","Android","Linux","Chrome OS"].includes(s)?s:"Other":null}getViews(){const e=this.sessionStore.get(ee.views);return Array.isArray(e)?e:[]}getEngaged(){return this.sessionStore.get(ee.engaged)||!1}getForcedLanguageFromStorage(){return this.sessionStore.get(ee.forcedLanguage)||null}getForcedLanguage(){return this.visitData.forcedLanguage}setForcedLanguage(e){this.visitData.forcedLanguage=e,this.sessionStore.set(ee.forcedLanguage,e)}addAnswer(e,t){const s=Object.assign(Object.assign({},this.visitData.answers),{[e]:t});this.answersStorage.set(ee.answers,s),this.visitData.answers=s}setEngaged(){this.visitData.engaged=!0,this.sessionStore.set(ee.engaged,!0)}addDisplayedSurvey(e){var t;const s=this.getDisplayedSurveys(),r={surveyId:e,timestamp:(new Date).getTime()},i=s.findIndex(t=>(t.surveyId||t)===e);-1!==i?s[i]=Object.assign(Object.assign({},r),{count:(null!==(t=s[i].count)&&void 0!==t?t:0)+1}):s.push(Object.assign(Object.assign({},r),{count:1})),this.sessionStore.set(ee.displayedSurveys,s),this.visitData.displayedSurveys=s}addSampledSurvey(e,t){const s=this.getSampledSurveys(),r={sampled:t,surveyId:e},i=s.findIndex(t=>(t.surveyId||t)===e);-1!==i?s[i]=r:s.push(r),this.sessionStore.set(ee.sampledSurveys,s),this.visitData.sampledSurveys=s}setResponseAttributes(e){if(!e||!Array.isArray(e))return;const t=[...this.visitData.responseAttributes||[]];e.forEach(e=>{if(!e.name)return;const s=K(e.name);let r=e.value;if("number"==typeof r||"boolean"==typeof r||r instanceof Date||(r=K(`${null!=r?r:""}`)),!Fe(r,s,De.response))return;const i=t.findIndex(e=>e.name===s),o=Object.assign({name:s,value:r},e.provider&&{provider:e.provider});i>=0?t[i]=o:t.push(o)}),this.sessionStore.set(ee.responseAttributes,t),this.visitData.responseAttributes=t}clearResponseAttributes(){this.sessionStore.remove(ee.responseAttributes),this.visitData.responseAttributes=void 0}getResponseAttributes(){var e;return null!==(e=this.sessionStore.get(ee.responseAttributes))&&void 0!==e?e:void 0}resetVisit(){this.answersStorage.remove(ee.answers),this.visitData.answers={},this.visitData.views=[],this.visitData.displayedSurveys=[],this.visitData.sampledSurveys=[],this.visitData.engaged=!1,this.clearResponseAttributes(),this.sessionStore.remove(ee.engaged),this.sessionStore.remove(ee.views),this.sessionStore.remove(ee.displayedSurveys),this.sessionStore.remove(ee.sampledSurveys),this.setCurrentView()}}const We=He;class Ke{static ruleFulfilled(e,{sampledSurveys:t},s){if(e.settings.display_percentage>=100||!s)return!0;const r=t.find(t=>(t.surveyId||t)===e.id);if(r)return r.sampled;const i=100*Math.random()<=e.settings.display_percentage;return We.getVisit(s).addSampledSurvey(e.id,i),i}}class Ge{static ruleFulfilled({storeType:e,survey:t,visitor:s}){var r,i,o;if(t.backendTargeted)return!0;const a=null!==(r=(null==t?void 0:t.settings).survey_throttle)&&void 0!==r?r:0,c=e?[...null!==(o=null===(i=s[e])||void 0===i?void 0:i.displayedSurveys)&&void 0!==o?o:[]]:[];if(a&&c.length>0){const e=Math.max(...c.map(e=>e.timestamp)),t=864e5*a;return n()-e>=t}return!0}}class Ye{static areFulfilled({survey:e,visit:t,visitor:s,storeType:r}){return ga.ruleFulfilled({storeType:r,survey:e,visit:t,visitor:s})&&Ge.ruleFulfilled({storeType:r,survey:e,visitor:s})&&Ie.ruleFulfilled(e.settings.display_all,e.links,document.location)&&Ke.ruleFulfilled(e,t,r)}}class Ze{static ruleFulfilled(e,{delayed:t},s){const r=e.settings;if((null==r?void 0:r.appear_method)!=f.delayed)return!0;if("number"==typeof t)return(null==r?void 0:r.display_delay)<=t;const i=null==s?void 0:s.delayed;return"number"==typeof i&&(null==r?void 0:r.display_delay)<=i}}class Qe{static ruleFulfilled(e,{eventTrigger:t,eventDelay:s}){var r;const i=null==e?void 0:e.settings;if((null==i?void 0:i.appear_method)!==f.event||"number"!=typeof s)return!0;const o=null!==(r=null==i?void 0:i.events)&&void 0!==r?r:[];return!!o.length&&o.some(e=>{var r,i;return(null!==(i=null===(r=e.settings)||void 0===r?void 0:r.delay)&&void 0!==i?i:0)===s&&e.name===(null==t?void 0:t.name)})}}var Xe,Je,et,tt,st,rt,it,ot;!function(e){e.on="on",e.before="before",e.after="after"}(Xe||(Xe={})),function(e){e.exact="exact",e.any="any",e.is_not_equal="is_not_equal",e.is_equal="is_equal",e.is_between="is_between",e.is_not_between="is_not_between",e.is_on_the_date="is_on_the_date",e.is_earlier_than="is_earlier_than",e.is_later_than="is_later_than",e.is_less_than="is_less_than",e.is_less_than_or_equal="is_less_than_or_equal",e.is_true="is_true",e.is_false="is_false",e.is_greater_than="is_greater_than",e.is_greater_than_or_equal="is_greater_than_or_equal",e.contains="contains",e.does_not_contain="does_not_contain",e.exists="exists",e.does_not_exist="does_not_exist"}(Je||(Je={})),function(e){e.and="and",e.or="or"}(et||(et={})),function(e){e.exact="exact",e.any="any"}(tt||(tt={})),function(e){e.all="All",e.mobile="Mobile",e.desktop="Desktop"}(st||(st={})),function(e){e.identified="identified",e.unidentified="unidentified"}(rt||(rt={})),function(e){e.search="search",e.referral="referral",e.direct="direct",e.utm="utm"}(it||(it={})),function(e){e.attributes="attributes",e.backendTargeting="backend_targeting",e.browser="browser",e.cookies="cookies",e.device="device",e.languages="languages",e.loggedInStatus="logged_in_status",e.operatingSystem="operating_system",e.optimizely="optimizely",e.tags="tags",e.visitDepth="visit_depth",e.visitedUrls="visited_urls",e.visitFrequency="visit_frequency",e.visitSource="visit_source"}(ot||(ot={}));const nt=(e,t)=>{const[s,r]=e;return t>=s&&t<=r};class at{static compareDates(e,t,s){switch(e){case Xe.on:return t===s;case Xe.before:return t>s;case Xe.after:return t<s}}static isPresent(e){return null!=e&&("string"!=typeof e||""!==e.trim())}static isEqual(e,t){return e.some(e=>e===t)}static isNotEqual(e,t){return e.every(e=>e!==t)}static isLessThan(e,t){return t<e}static isLessThanOrEqual(e,t){return t<=e}static isGreaterThan(e,t){return t>e}static isGreaterThanOrEqual(e,t){return t>=e}static getTimeThreshold(e){return(new Date).getTime()-e}}const ct=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),lt=(e,t)=>{const s=new Date(e[0]),r=new Date(e[1]),i=new Date(t);return i>=s&&i<=r||ct(i,s)||ct(i,r)},vt=({operator:e,storedValue:t,timeDifference:s,targetValue:r})=>{let i;const o=null!=s?s:t;if(Array.isArray(r))i=r.map(e=>"string"==typeof e?new Date(e).getTime():e);else if("number"==typeof r)i=r;else{if("string"!=typeof r)return console.error("Unsupported targetValue type: "+typeof r),!1;i=new Date(r).getTime()}const n="string"==typeof t?new Date(t).getTime():t;switch(e){case Je.is_equal:return n===i;case Je.is_not_equal:return n!==i;case Je.is_greater_than:return"number"==typeof i&&at.isGreaterThan(i,o);case Je.is_greater_than_or_equal:return"number"==typeof i&&at.isGreaterThanOrEqual(i,o);case Je.is_less_than:return"number"==typeof i&&at.isLessThan(i,o);case Je.is_less_than_or_equal:return"number"==typeof i&&at.isLessThanOrEqual(i,o);case Je.is_between:return Array.isArray(r)&&"string"==typeof t?lt(r,t):Array.isArray(i)&&nt([i[0],i[1]],n);case Je.is_not_between:return Array.isArray(r)&&"string"==typeof t?!lt(r,t):Array.isArray(i)&&!nt([i[0],i[1]],n);default:return console.error(`Unsupported EventTimeOperator: ${e}`),!1}};class _t{static ruleFulfilled(e,{eventTrigger:t}){var s;const r=null==e?void 0:e.settings;if(r.appear_method!==f.event)return!0;const i=null!==(s=r.events)&&void 0!==s?s:[];return!(!i.length||!t)&&i.some(e=>t.name===e.name&&this.evaluateEventOccurrenceMatch(e))}static evaluateEventOccurrenceMatch(e){var t;const s=null===(t=e.settings)||void 0===t?void 0:t.occurrences;if(!s)return!0;const{events:r}=v.getState(),i=r.find(t=>t.name===e.name);if(!i||!i.occurrences)return!1;return this.checkOccurrenceCondition({occurrences:i.occurrences,operator:s.operator,targetOccurrences:this.getTargetOccurrences(s)})}static checkOccurrenceCondition({operator:e,occurrences:t,targetOccurrences:s}){return!(!s||Array.isArray(s)&&!s.length)&&vt({operator:e,storedValue:t,targetValue:s})}static getTargetOccurrences(e){return e.operator===Je.is_between||e.operator===Je.is_not_between?e.value:e.value[0]}}var ut,dt;!function(e){e.and="and",e.or="or"}(ut||(ut={})),function(e){e.is="is",e.is_not="is_not",e.is_between="is_between",e.is_exactly="is_exactly",e.includes_any_of_the_following="includes_any_of_the_following",e.includes_all_of_the_following="includes_all_of_the_following",e.doesnt_include_any_of_the_following="doesnt_include_any_of_the_following",e.question_is_answered="question_is_answered",e.question_is_not_answered="question_is_not_answered",e.answer_contains="answer_contains",e.answer_doesnt_contain="answer_doesnt_contain",e.has_any_value="has_any_value",e.is_filled_in="is_filled_in",e.is_not_filled_in="is_not_filled_in",e.is_ranked_as="is_ranked_as",e.is_not_ranked_as="is_not_ranked_as",e.is_ranked_between="is_ranked_between"}(dt||(dt={}));const pt=(e,{value:t,operator:s,condition:r})=>{const i=e?e.toLowerCase():"",o=t.map(e=>e.toLowerCase()),n=o.every(e=>i.includes(e)),a=o.some(e=>i.includes(e));return s===ut.and?r===dt.answer_contains?n:a:r===dt.answer_contains?a:n},mt=({operator:e,userAttribute:t,clientAttributes:s,attribute_type:r="string"})=>{switch(e){case Je.any:return void 0!==t;case Je.exists:return at.isPresent(t);case Je.does_not_exist:return!at.isPresent(t)}if(!s.length)return!1;if((e===Je.is_between||e===Je.is_not_between)&&s.length<2)return console.error("Not enough values for 'is_between' checks"),!1;switch(e){case Je.is_equal:return at.isEqual(s,t);case Je.is_not_equal:return at.isNotEqual(s,t);case Je.is_between:return nt([s[0],s[1]],t);case Je.is_not_between:return!nt([s[0],s[1]],t);case Je.is_on_the_date:return at.compareDates(Xe.on,s[0],t);case Je.is_earlier_than:return at.compareDates(Xe.before,s[0],t);case Je.is_later_than:return at.compareDates(Xe.after,s[0],t);case Je.is_less_than:return"time_interval"===r?at.compareDates(Xe.after,at.getTimeThreshold(s[0]),t):at.isLessThan(s[0],t);case Je.is_less_than_or_equal:return at.isLessThanOrEqual(s[0],t);case Je.is_true:return!0===t;case Je.is_false:return!1===t;case Je.is_greater_than:return"time_interval"===r?at.compareDates(Xe.before,at.getTimeThreshold(s[0]),t):at.isGreaterThan(s[0],t);case Je.is_greater_than_or_equal:return at.isGreaterThanOrEqual(s[0],t);case Je.contains:return pt(t,{condition:dt.answer_contains,operator:ut.or,value:s});case Je.does_not_contain:return!pt(t,{condition:dt.answer_contains,operator:ut.and,value:s});default:return console.error(`Unsupported OperatorType: ${e}`),!1}};class ht{static ruleFulfilled(e,{eventTrigger:t}){var s;const r=e.settings;if(r.appear_method!==f.event)return!0;const i=null!==(s=r.events)&&void 0!==s?s:[];return!(!i.length||!t)&&i.some(e=>t.name===e.name&&this.evaluateEventPropsMatch(t.properties,e))}static evaluateEventPropsMatch(e,t){return!t.properties.length||this.compareEventProps(e,t)}static compareEventProps(e,t){if(!e)return!1;const s=t=>{const s=e[t.name];return this.evaluatePropertyCondition(s,t)},{relation:r,properties:i}=t;return r===et.and?i.every(s):i.some(s)}static evaluatePropertyCondition(e,t){const{operator:s,value:r}=t;return mt({attribute_type:"string",clientAttributes:[String(r)],operator:null!=s?s:Je.is_equal,userAttribute:void 0===e?void 0:String(e)})}}class bt{static ruleFulfilled(e,{eventTrigger:t}){var s;const r=null==e?void 0:e.settings;if(r.appear_method!==f.event)return!0;const i=null!==(s=r.events)&&void 0!==s?s:[];return!(!i.length||!t)&&i.some(e=>t.name===e.name&&t.timestamp&&this.evaluateEventOccurrenceMatch(t.timestamp,e))}static evaluateEventOccurrenceMatch(e,t){var s,r,i,o;const n=null===(s=t.settings)||void 0===s?void 0:s.first_occurrence,a=null===(r=t.settings)||void 0===r?void 0:r.last_occurrence;if(!(n&&(n.period||(null===(i=n.dates)||void 0===i?void 0:i.length))||a&&(a.period||(null===(o=a.dates)||void 0===o?void 0:o.length))))return!0;const{events:c}=v.getState(),l=c.find(e=>e.name===t.name);if(!l||!e)return!1;const _=!(!n||!l.firstSeen)&&this.checkTimeCondition({operator:n.operator,storedTime:l.firstSeen,targetTime:this.getTargetTime(n),triggerTime:e}),u=!(!a||!l.previousLastSeen)&&this.checkTimeCondition({operator:a.operator,storedTime:l.previousLastSeen,targetTime:this.getTargetTime(a),triggerTime:e});return n&&a?_&&u:_||u}static checkTimeCondition({operator:e,storedTime:t,triggerTime:s,targetTime:r}){if(!s||!t||!r||Array.isArray(r)&&!r.length)return!1;const i="number"==typeof s?Math.abs(t-s):0;return vt({operator:e,storedValue:t,targetValue:r,timeDifference:i})}static getTargetTime({operator:e,dates:t,period:s}){return e===Je.is_between||e===Je.is_not_between?t:s}}class gt{static ruleFulfilled(e,{exitIntent:t}){return e.settings.appear_method!==f.exitIntent||!!t}}class ft{static ruleFulfilled(e,{scroll:t}){return e.settings.appear_method!==f.scroll||!!t&&e.settings.display_scroll<=t}}class yt{static areFulfilled({satisfiedTriggers:e,survey:t,triggers:s}){switch(t.settings.appear_method){case f.delayed:return Ze.ruleFulfilled(t,s,e);case f.scroll:return ft.ruleFulfilled(t,s);case f.exitIntent:return gt.ruleFulfilled(t,s);case f.event:return ht.ruleFulfilled(t,s)&&bt.ruleFulfilled(t,s)&&_t.ruleFulfilled(t,s)&&Qe.ruleFulfilled(t,s);default:return!0}}}const wt={nb:"no",nn:"no"},xt=e=>wt[e.toLowerCase().split("-")[0]],St=(e,t)=>{if(!t)return null;const s=t.toLowerCase(),r=e.find(e=>e.toLowerCase()===s);if(r)return r;const i=e.find(e=>e.toLowerCase().startsWith(`${s}-`));if(i)return i;const o=s.split("-")[0];if(o!==s){const t=e.find(e=>e.toLowerCase()===o);if(t)return t}const n=xt(o);if(n){const t=e.find(e=>e.toLowerCase()===n);if(t)return t}return null},kt=(e,t,s)=>{if(t.length){const s=St(t,e);if(s)return s}if(s){if(St([s],e))return s}return null},Tt=(e,t)=>{var s,r;const i=null===(s=window.navigator.language)||void 0===s?void 0:s.toLowerCase();if(!i)return null!=t?t:null;const o=kt(i,e,t);if(o)return o;const n=i.substring(0,2);return null!==(r=kt(n,e,t))&&void 0!==r?r:null!=t?t:null},At=["lang","language","locale"],Ot="survi::";var Et;!function(e){e.TLD_TO_LANGUAGE_MAP="tldToLanguageMap",e.LANGUAGE_CODES="languageCodes"}(Et||(Et={}));let Pt=function(){if("undefined"==typeof window)return{languageCodes:null,tldToLanguageMap:null};try{const e=L.getStore(p.WidgetSurvey),t=e.get(`${Ot}${Et.TLD_TO_LANGUAGE_MAP}`,!0),s=e.get(`${Ot}${Et.LANGUAGE_CODES}`,!0);return{languageCodes:s?s.data:null,tldToLanguageMap:t?t.data:null}}catch(e){return{languageCodes:null,tldToLanguageMap:null}}}();function Ct(){return Pt}function Mt(e){Pt=Object.assign(Object.assign({},Pt),e)}const It=/^[a-z]{2,3}-[a-z]{2,8}$/,Nt=(e,t)=>{if(!t)return null;const s=new Set(t);if(!e||"string"!=typeof e)return null;const r=e.toLowerCase();if(s.has(r))return r;const i=r.split("-")[0];if(i.length<2)return null;if(s.has(i))return r.includes("-")&&It.test(r)?r:i;const o=xt(i);return o&&s.has(o)?o:null},jt=[p.WidgetSurvey,p.FeedbackButton,p.PageSurvey,p.MobileSurvey],Rt=({survey:e,location:t,forcedLanguage:s,preview:r})=>{var i,o,n;if(!e||!jt.includes(e.type))return null;const a=(null===(i=e.settings)||void 0===i?void 0:i.languages)||[],c=null===(o=e.settings)||void 0===o?void 0:o.survey_language;if(!(null==a?void 0:a.length)&&!c)return null;const l=s||We.getVisit(e.type).getForcedLanguage()||(null===(n=window._sva)||void 0===n?void 0:n.forcedLanguage);if(l)return kt(l,a,c);if(r)return null;const v=(e=>{var t;const s=null!=e?e:"undefined"!=typeof window?window.location:null;if(!s)return null;const{tldToLanguageMap:r,languageCodes:i}=Ct();if(!r||!i)return null;let o=null;try{const e=Be.getParamsFromSearchString(s.search);for(const[t,s]of Object.entries(e)){const e=t.toLowerCase();if(At.includes(e)){o=s;break}}}catch(e){console.warn("[Language Detection] Error parsing URL parameters:",e)}if(o){const e=Nt(o,i);if(e)return e}const n=s.pathname;if(n){const e=n.split("/").filter(Boolean)[0];if(e&&e.length>=2){const t=Nt(e,i);if(t)return t}}const a=null===(t=s.hostname)||void 0===t?void 0:t.toLowerCase();if(!a)return null;const c=a.split(".");if(c.length<2)return null;const l=c[c.length-1];if(!l)return null;const v=r[l.toLowerCase()];return v?Array.isArray(v)?null:v:null})(t);if(v){const e=kt(v,a,c);if(e)return e}return Tt(a,c)},Dt=e=>{var t;if(!e)return"en";const s=Rt({survey:e}),r=null===(t=null==e?void 0:e.settings)||void 0===t?void 0:t.survey_language;return s||r||"en"},Lt=["ar","he","fa","ur","ps","dv","ku","syr","ug","yi"],Ft=e=>{if(!e)return!1;const t=e.split("-")[0];return Lt.includes(t)},zt=()=>j.isMobile()?{height:screen.height,width:screen.width}:{height:window.innerHeight,width:window.innerWidth};const qt=new class{constructor(){this.MOBILE_BREAKPOINT=768,this.userAgent="",this.resetUserAgent()}isAppleOS(){return!!this.userAgent.match(/Mac/i)}isWidthMobile(){if(j.isMobile())return!0;const{width:e}=zt();return!!e&&e<this.MOBILE_BREAKPOINT}isBrowserIE(){return this.userAgent.includes("MSIE")||!!this.userAgent.match(/Trident.*rv\:11\./)}hasHover(){return!this.isDeviceMobileOrTablet()}isDeviceMobileOrTablet(e=""){let t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(e||this.userAgent),t}resetUserAgent(e){const t=e||window;this.userAgent=t.navigator.userAgent||t.navigator.vendor||t.opera}},Ut=e=>{Me.getStore(e.type)};var $t;!function(e){e.button="button_next",e.thankYouMessage="empty",e.buttonLink="button_link",e.buttonClose="button_close",e.redirect="redirect_timeout",e.social="social_cta"}($t||($t={}));const Bt=({answer:e,comment:t="",disclaimer_accepted:s})=>({anonymizedTextResponse:e.possible_answer,answers:[{comment:t,nextSurveyPointId:e.next_survey_point_id,survey_question_answer_id:e.id,user_tag:e.user_tag}],textResponse:e.possible_answer,value:{answer:e,comment:t,disclaimer_accepted:s}}),Vt=({answer:e,comment:t=""})=>({comment:t,nextSurveyPointId:e.next_survey_point_id,survey_question_answer_id:e.id,user_tag:e.user_tag}),Ht=({answer:e,point:t,comment:s="",disclaimer_accepted:r})=>({anonymizedTextResponse:e.possible_answer,answers:[Vt({answer:e,comment:s,point:t})],textResponse:e.possible_answer,value:{answer:e,comment:s,disclaimer_accepted:r}}),Wt=({point:e,disclaimer_accepted:t})=>Object.assign(Object.assign({anonymizedTextResponse:"",answers:[{nextSurveyPointId:e.settings.next_survey_point_id,user_tag:e.settings.user_tag}]},"boolean"==typeof t&&{value:{disclaimer_accepted:t}}),{textResponse:""}),Kt=({value:e,point:t,comment:s=""})=>{let r=null,i=null;const o=t.settings;return e.answer<=6?(r=o.first_range_goto_id,i=o.first_range_tag):e.answer<=8?(r=o.second_range_goto_id,i=o.second_range_tag):(r=o.third_range_goto_id,i=o.third_range_tag),{anonymizedTextResponse:`${e.answer}`,answers:[{comment:s,content:`${e.answer}`,nextSurveyPointId:r,user_tag:i}],textResponse:`${e.answer}`,value:e}},Gt=e=>{const t={anonymizedTextResponse:"",answers:[],textResponse:""};return e(t),t},Yt=(e,t=1)=>{const s=e.length;if(!s)return 0;const{point:r}=e&&e[s-1],i=[$t.buttonLink,$t.redirect,$t.social,$t.thankYouMessage].includes(e[e.length-1].point.answer_type),o="number"==typeof r.max_path?r.max_path:0;return i?100:Math.round((s-t)/(o+s)*100)},Zt=e=>Yt(e.pointsDisplayed,0);var Qt;!function(e){e.answered="answered",e.finished="finished",e.opened="opened",e.closed="closed",e.shouldUpdate="shouldUpdate",e.minimized="minimized",e.maximized="maximized"}(Qt||(Qt={}));var Xt,Jt,es,ts,ss=s(172),rs=0,is=[],os=ss.options,ns=os.__b,as=os.__r,cs=os.diffed,ls=os.__c,vs=os.unmount,_s=os.__;function us(e,t){os.__h&&os.__h(Jt,e,rs||t),rs=0;var s=Jt.__H||(Jt.__H={__:[],__h:[]});return e>=s.__.length&&s.__.push({}),s.__[e]}function ds(e){return rs=1,ps(Es,e)}function ps(e,t,s){var r=us(Xt++,2);if(r.t=e,!r.__c&&(r.__=[s?s(t):Es(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],s=r.t(t,e);t!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Jt,!Jt.__f)){var i=function(e,t,s){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return e.__c});if(i.every(function(e){return!e.__N}))return!o||o.call(this,e,t,s);var n=r.__c.props!==e;return i.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(n=!0)}}),o&&o.call(this,e,t,s)||n};Jt.__f=!0;var o=Jt.shouldComponentUpdate,n=Jt.componentWillUpdate;Jt.componentWillUpdate=function(e,t,s){if(this.__e){var r=o;o=void 0,i(e,t,s),o=r}n&&n.call(this,e,t,s)},Jt.shouldComponentUpdate=i}return r.__N||r.__}function ms(e,t){var s=us(Xt++,3);!os.__s&&Os(s.__H,t)&&(s.__=e,s.u=t,Jt.__H.__h.push(s))}function hs(e,t){var s=us(Xt++,4);!os.__s&&Os(s.__H,t)&&(s.__=e,s.u=t,Jt.__h.push(s))}function bs(e){return rs=5,gs(function(){return{current:e}},[])}function gs(e,t){var s=us(Xt++,7);return Os(s.__H,t)&&(s.__=e(),s.__H=t,s.__h=e),s.__}function fs(e,t){return rs=8,gs(function(){return e},t)}function ys(e){var t=Jt.context[e.__c],s=us(Xt++,9);return s.c=e,t?(null==s.__&&(s.__=!0,t.sub(Jt)),t.props.value):e.__}function ws(){var e=us(Xt++,11);if(!e.__){for(var t=Jt.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var s=t.__m||(t.__m=[0,0]);e.__="P"+s[0]+"-"+s[1]++}return e.__}function xs(){for(var e;e=is.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Ts),t.__h.some(As),t.__h=[]}catch(s){t.__h=[],os.__e(s,e.__v)}}}os.__b=function(e){Jt=null,ns&&ns(e)},os.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_s&&_s(e,t)},os.__r=function(e){as&&as(e),Xt=0;var t=(Jt=e.__c).__H;t&&(es===Jt?(t.__h=[],Jt.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(Ts),t.__h.some(As),t.__h=[],Xt=0)),es=Jt},os.diffed=function(e){cs&&cs(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==is.push(t)&&ts===os.requestAnimationFrame||((ts=os.requestAnimationFrame)||ks)(xs)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),es=Jt=null},os.__c=function(e,t){t.some(function(e){try{e.__h.some(Ts),e.__h=e.__h.filter(function(e){return!e.__||As(e)})}catch(s){t.some(function(e){e.__h&&(e.__h=[])}),t=[],os.__e(s,e.__v)}}),ls&&ls(e,t)},os.unmount=function(e){vs&&vs(e);var t,s=e.__c;s&&s.__H&&(s.__H.__.some(function(e){try{Ts(e)}catch(e){t=e}}),s.__H=void 0,t&&os.__e(t,s.__v))};var Ss="function"==typeof requestAnimationFrame;function ks(e){var t,s=function(){clearTimeout(r),Ss&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(s,35);Ss&&(t=requestAnimationFrame(s))}function Ts(e){var t=Jt,s=e.__c;"function"==typeof s&&(e.__c=void 0,s()),Jt=t}function As(e){var t=Jt;e.__c=e.__(),Jt=t}function Os(e,t){return!e||e.length!==t.length||t.some(function(t,s){return t!==e[s]})}function Es(e,t){return"function"==typeof t?t(e):t}const Ps=(e,t)=>null===t?e:e.filter(e=>{switch(t){case p.WidgetSurvey:return e.settings.format===S.Widget||e.settings.format===S.Braze;case p.FeedbackButton:return e.settings.format===S.Feedback;default:return e}});class Cs{constructor(){this.timeouts=new Map}fireEvent(e,t){const s=Me.getStore(e);if(!s.getState().surveyState.survey){const e=s.getState().satisfiedTriggers;s.setState({satisfiedTriggers:Object.assign(Object.assign({},e),{delayed:t})}),s.action(Kn)({delayed:t})}}startListening(e,t){if(!e||!(null==t?void 0:t.length))return;this.stopListening(e);const s=t.filter(e=>e.settings.appear_method===f.delayed);if(!s.length)return;const r=Me.getStore(e);r.setState({satisfiedTriggers:Object.assign(Object.assign({},r.getState().satisfiedTriggers),{delayed:void 0})});const i=s.map(e=>e.settings.display_delay),o=[...new Set(i)].sort((e,t)=>e-t),n=[];o.forEach(t=>{const s=window.setTimeout(()=>{Me.getStore(e).getState().surveyState.survey||this.fireEvent(e,t)},1e3*t);n.push(s)}),this.timeouts.set(e,n)}stopListening(e){const t=this.timeouts.get(e);t&&(t.forEach(e=>clearTimeout(e)),this.timeouts.delete(e))}}const Ms=(e,t)=>{let s=!1;return(...r)=>{const i=()=>{e.call(null,...r),s=!0,setTimeout(()=>{s=!1},t)};s?setTimeout(()=>{s||i()},t):i()}};class Is{constructor(){this.COOLDOWN_PERIOD=5e3,this.DEBOUNCE_DELAY=1e3,this.exitIntentListeners=new Map,this.lastFiredTime=new Map}fireEvent(e){const t=Date.now(),s=this.lastFiredTime.get(e);if(s&&t-s<this.COOLDOWN_PERIOD)return;const r=Me.getStore(e);r.getState().surveyState.survey||(this.lastFiredTime.set(e,t),r.action(Kn)({exitIntent:!0}))}exitIntentHandler(e){return Ms(t=>{(null==t?void 0:t.clientY)>20||this.fireEvent(e)},this.DEBOUNCE_DELAY)}startListening(e,t){this.stopListening(e);if(!t.filter(e=>e.settings.appear_method===f.exitIntent).length)return;const s=this.exitIntentHandler(e);this.exitIntentListeners.set(e,s),document.body.addEventListener("mouseleave",s)}stopListening(e){const t=this.exitIntentListeners.get(e);t&&(document.body.removeEventListener("mouseleave",t),this.exitIntentListeners.delete(e),this.lastFiredTime.delete(e))}}class Ns{constructor(){this.scrollListeners=new Map,this.firedScrolls=new Map}getScrolls(e){const t=e.filter(e=>e.settings.appear_method===f.scroll).map(e=>e.settings.display_scroll);return t.length?[...new Set(t)].sort((e,t)=>e-t):[]}calculateScrollPercent(){if("undefined"==typeof document||"undefined"==typeof window)return 0;const e=document.documentElement;if(!e)return 0;const{scrollHeight:t,clientHeight:s}=e,r=t-s;if(r<=0)return 0;const i=window.scrollY/r*100;return Math.min(100,Math.max(0,10*Math.round(i/10)))}createScrollHandler(e,t){return Ms(()=>{const s=Me.getStore(e),r=s.getState().surveyState.survey,i=this.firedScrolls.get(e);if(r||!i)return;const o=this.calculateScrollPercent(),n=t.find(e=>o>=e&&!i.has(e));"number"==typeof n&&(i.add(n),s.action(Kn)({scroll:n}))},100)}startListening(e,t){this.stopListening(e);const s=this.getScrolls(t);if(!s.length)return;this.firedScrolls.set(e,new Set);const r=this.createScrollHandler(e,s);this.scrollListeners.set(e,r),window.addEventListener("scroll",r)}stopListening(e){const t=this.scrollListeners.get(e);t&&(window.removeEventListener("scroll",t),this.scrollListeners.delete(e),this.firedScrolls.delete(e))}}class js{constructor(){this.triggerRegistry={}}static getInstance(){return js.instance||(js.instance=new js),js.instance}getTriggersForSurveyType(e){return e?(this.triggerRegistry[e]||(this.triggerRegistry[e]=[...qt.isDeviceMobileOrTablet()?[]:[new Is],new Ns,new Cs]),this.triggerRegistry[e]):[]}startTargeting(e,t){this.getTriggersForSurveyType(e).forEach(s=>{s.stopListening(e),s.startListening(e,t)})}stopTargeting(e){this.getTriggersForSurveyType(e).forEach(t=>t.stopListening(e))}}const Rs=js.getInstance();var Ds=s(394),Ls=s.n(Ds),Fs=s(902);const zs=(e,t)=>e&&t?`${e};${t}`:e||t||"";var qs=s(371),Us=s(885),$s=s.n(Us),Bs=s(351);const Vs=(e,t)=>t>0?Math.floor(e*((100-t)/100)):Math.floor(255-(100+t)/100*(255-e)),Hs=e=>Math.min(Math.max(e,0),255),Ws=e=>{let t=e;4===e.length&&(t=`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`);const s=parseInt(t.substring(1,3),16),r=parseInt(t.substring(3,5),16);return{B:parseInt(t.substring(5,7),16),G:r,R:s}},Ks=(e,t)=>{let{R:s,G:r,B:i}=Ws(e);s=Hs(Vs(s,t)),r=Hs(Vs(r,t)),i=Hs(Vs(i,t));return`#${1===s.toString(16).length?`0${s.toString(16)}`:s.toString(16)}${1===r.toString(16).length?`0${r.toString(16)}`:r.toString(16)}${1===i.toString(16).length?`0${i.toString(16)}`:i.toString(16)}`},Gs=(e,t)=>{const{R:s,G:r,B:i}=Ws(e);return`rgba(${s}, ${r}, ${i}, ${t})`};var Ys,Zs,Qs;!function(e){e.micro="MicroTheme",e.simple="SimpleTheme",e.mobile="MobileTheme",e.intercom="IntercomTheme",e.newMobile="NewMobileTheme"}(Ys||(Ys={})),function(e){e.cover="cover",e.repeat="repeat",e.contain="contain"}(Zs||(Zs={})),function(e){e.left="left",e.center="center",e.right="right",e.bottom="bottom",e.top="top"}(Qs||(Qs={}));const Xs="#7f8c8d",Js="#ffffff",er=(Ks("#7f8c8d",-90),"#70c84a"),tr="#70c84a",sr=(Ks("#7f8c8d",-10),"#ffffff"),rr="#70c84a",ir="#29292a";Ks("#7f8c8d",-90),Ks("#7f8c8d",-10);var or;!function(e){e.library="library",e.system="system"}(or||(or={}));const nr=e=>{const{href:t,id:s,nonce:r}=e;if("undefined"==typeof document||!document.head||document.head.querySelector(`#${s}`))return;const i=document.createElement("link");i.href=t,i.id=s,i.rel="stylesheet",i.type="text/css",r&&i.setAttribute("nonce",r),document.head.appendChild(i)},ar=e=>e.trim().toLowerCase().replace(/\s+/g,"-"),cr=e=>`survicate-font-${ar(e)}`,lr="Open Sans",vr=(e,t)=>{if("undefined"==typeof document||!document.head||!(null==e?void 0:e.trim())||e===lr)return;const s=ar(e);nr({href:`https://surveys-static.survicate.com/fonts/${encodeURIComponent(s)}/font.css`,id:cr(e),nonce:null==t?void 0:t.nonce})},_r=(e,t)=>{var s;if(!e)return null;const{font:r}=e;return(null===(s=null==r?void 0:r.name)||void 0===s?void 0:s.trim())?t&&t!==r.type?null:r.name:null};var ur;!function(e){e[e.mobile=767]="mobile",e[e.tablet=1080]="tablet"}(ur||(ur={}));const dr=ur,pr=e=>"#"===e.charAt(0)?e.substring(1,7):e,mr=(e,t)=>(299*parseInt(pr(e).substring(0,2),16)+597*(e=>parseInt(pr(e).substring(2,4),16))(e)+114*(e=>parseInt(pr(e).substring(4,6),16))(e))/1e3>130?(null==t?void 0:t.dark)||"#000000":(null==t?void 0:t.light)||"#ffffff";class hr{static addThemeCss(e,t,s=!1){t.forEach(({property:t,className:r,state:i,isTopLevelClass:o,value:n})=>{const a=s?o?".sv__micro-theme":".sv__micro-theme ":"";(Array.isArray(r)?r:[r]).forEach(s=>{e(`${a}${i?s+i:s}`,t,`${n} !important`)})})}static addMicroThemeCss(e,t){const s=(e=>{const{answer:t,button:s,background:r,progress_bar:i,question:o,bg_answer:n}=e,a="#171D1A",c="#F1F1F1",l=Gs(t,.1),v=Gs(t,.2),_=Gs(t,.5),u=Gs(o,.5),d=Gs(s,.7),p=`0 0 0 8px ${l}`;return[{className:".sv__survey",isTopLevelClass:!0,property:"background-color",value:r},{className:".sv__mobile-survey .sv__rating .sv__buttons .sv__button",isTopLevelClass:!0,property:"background-color",state:":hover",value:"transparent"},{className:[".sv__survey--finished.sv__survey--branded .sv__btn-close svg path",".sv__survey--finished.sv__survey--branded .sv__btn-close:hover svg path",".sv__survey--finished.sv__survey--branded .sv__btn-close:active svg path"],isTopLevelClass:!0,property:"fill",value:"black"},{className:[".sv__mobile-survey .sv__button:hover svg path"],isTopLevelClass:!0,property:"fill",value:t},{className:[".sv__mobile-survey .sv__rating--vertical .sv__buttons .sv__button",".sv__mobile-survey .sv__button",".sv__mobile-survey .sv__choice-button"],isTopLevelClass:!0,property:"background-color",state:":hover",value:l},{className:[".sv__feedback-survey--minimized.sv__feedback-survey .sv__feedback-survey__text"],isTopLevelClass:!0,property:"color",value:mr(s)},{className:".sv__contact-form .sv__contact-form-field.sv__light.sv__invalid input.sv-nested-bg-bw",property:"background-color",value:n},{className:[".sv__progress-bar","*::-webkit-scrollbar-thumb"],property:"background-color",value:Gs(o,.15)},{className:[".sv__choice-button--selected .sv__circle",".sv__choice-button:active .sv__circle"],property:"background-color",value:t},{className:[".sv__rating--vertical .sv__buttons .sv__button:active",".sv__rating.sv__rating--vertical .sv__buttons.sv__rating__buttons.sv__buttons--vertical\n .sv__button.sv__button--selected"],property:"background-color",value:v},{className:".sv__feedback-survey.sv__feedback-survey--minimized.sv--background-button",isTopLevelClass:!0,property:"background-color",value:s},{className:".sv__language-selector__trigger",property:"background-color",value:"transparent"},{className:".sv__language-selector__option",property:"background-color",state:":hover",value:Gs(o,.06)},{className:".sv__language-selector__option.sv__language-selector__option--selected",property:"background-color",value:Gs(o,.06)},{className:".sv--color-progress-bar",property:"color",value:i},{className:".sv__input::placeholder",property:"color",value:_},{className:".sv__footer__small-text",property:"color",value:mr(r,{dark:a,light:c})},{className:".sv__navigation-button--back.sv--color-button",property:"color",value:s},{className:".sv__language-selector__option",property:"color",value:Gs(o,.9)},{className:".sv__select-list",property:"border-color",value:v},{className:".sv__language-selector__trigger",property:"border-color",value:"transparent"},{className:".sv__language-selector__list",property:"border-color",value:"transparent"},{className:".sv__language-selector__list",property:"border-color",state:":hover",value:Gs(o,.4)},{className:".sv__navigation-button--back",property:"border-color",state:":disabled",value:o},{className:".sv__square",property:"box-shadow",state:":focus::after",value:p},{className:".sv__square",property:"box-shadow",state:":hover::after",value:p},{className:".sv__square",property:"box-shadow",state:":active::after",value:p},{className:".sv__circle",property:"box-shadow",state:":focus",value:p},{className:".sv__circle",property:"box-shadow",state:":hover",value:p},{className:".sv__circle",property:"box-shadow",state:":active",value:p},{className:".sv__btn-close svg path",property:"fill",value:u},{className:".sv__btn-close svg rect",property:"fill",value:"transparent"},{className:".sv__btn-minimize svg g rect",property:"fill",value:Gs(o,.85)},{className:".sv__button svg path",property:"fill",value:Gs(t,.3)},{className:".sv__minimized-symbol svg g g path",property:"fill",value:mr(s,{dark:"#000",light:"#FFF"})},{className:".sv__footer__button svg path",property:"fill",value:mr(r,{dark:a,light:c})},{className:[".sv__btn-close:hover svg path",".sv__btn-close:active svg path",".sv__btn-minimize:hover svg g rect"],property:"fill",value:o},{className:[".sv__dropdown__wrapper svg g g",".sv__button--vertical svg path"],property:"fill",value:_},{className:[".sv__btn-minimize--padded svg g rect",".sv__btn-minimize--padded svg rect:first-child"],property:"fill",value:u},{className:[".sv__btn-minimize--padded:hover svg rect",".sv__btn-minimize--padded:active svg rect"],property:"fill",value:Gs(o,.9)},{className:[".sv__checkbox g g path",".sv__button:hover svg path",".sv__button--selected svg path",".sv__buttons.sv__rating__buttons.sv__buttons--vertical .sv__button.sv__button--selected svg path",".sv__caret svg g g"],property:"fill",value:t},{className:[".sv__screenshot-button svg path",".sv--fill-button svg g g",".sv--fill-button svg path"],property:"fill",value:s},{className:".sv__micro-top-bar__actions .sv__language-selector .sv__language-selector__trigger svg path",property:"fill",value:u},{className:[".sv__micro-top-bar__actions .sv__language-selector .sv__language-selector__trigger:hover svg path",".sv__micro-top-bar__actions .sv__language-selector .sv__language-selector__trigger:active svg path"],property:"fill",value:o},{className:".sv__choice-button",property:"background-color",state:":active",value:v},{className:".sv__minimized-symbol",property:"background-color",state:":hover",value:d},{className:".sv__minimized-symbol",property:"background-color",state:":active",value:d},{className:".sv__rating .sv__button",property:"background-color",state:":hover",value:"transparent"},{className:".sv__choice-button",property:"border-color",state:":active",value:t},{className:".sv-bg-bs",property:"border-bottom",value:"none"},{className:".sv__select-button",property:"background-color",state:":hover",value:Gs(t,.15)},{className:[".sv__choice-button",".sv__button",".sv__rating--vertical .sv__buttons .sv__button"],property:"background-color",state:":hover",value:v},{className:[".sv__textarea",".sv__input",".sv__date-wrapper .sv__mobile-datepicker"],property:"border-color",state:":focus",value:t},{className:[".sv__position-mobile .sv__button",".sv__position-mobile .sv__rating--vertical .sv__buttons .sv__button",".sv__position-mobile .sv__rating--vertical.sv__rating--short .sv__buttons .sv__button"],isTopLevelClass:!0,property:"background-color",state:":hover",value:l},{className:[".sv__position-mobile .sv__rating--short .sv__buttons .sv__button"],isTopLevelClass:!0,property:"background-color",state:":hover",value:"transparent"},{className:[".sv__position-mobile .sv__rating .sv__button:not(.sv__button--selected):hover svg path"],isTopLevelClass:!0,property:"fill",value:Gs(t,.3)}]})(t);this.addThemeCss(e,s,!0)}static addCommonThemeCss(e,t){const s=(e=>{const{answer:t,button:s,background:r,progress_bar:i,question:o}=e,n=Gs(t,.5),a=Gs(o,.5);return[{className:".sv__date.focused",property:"border-color",value:t},{className:".sv--background-main",property:"background-color",value:r},{className:".sv--background-button",property:"background-color",value:s},{className:".sv--background-answer",property:"background-color",value:t},{className:".sv--background-progress-bar",property:"background-color",value:i},{className:".sv--background-answer-opacity-10",property:"background-color",value:Gs(t,.1)},{className:".sv--background-button-opacity-10",property:"background-color",value:Gs(s,.1)},{className:".sv--color-question",property:"color",value:o},{className:".sv--color-answer",property:"color",value:t},{className:".sv--color-button",property:"color",value:s},{className:[".sv__date input::placeholder",".sv__textarea.sv__textarea--disabled"],property:"color",value:n},{className:".sv--border-color-answer",property:"border-color",value:t},{className:".sv--border-color-button",property:"border-color",value:s},{className:".sv__submit-button",property:"color",value:mr(s)},{className:".sv--border-top-color-question-20",property:"border-top-color",value:Gs(o,.2)},{className:".sv__spinner",property:"border-color",state:":before",value:Gs(t,.1)},{className:".sv__spinner",property:"border-right-color",state:":before",value:s},{className:[".sv__textarea","sv__input"],property:"border-color",state:":focus",value:t},{className:".sv__textarea",property:"color",state:"::placeholder",value:n},{className:".sv__textarea",property:"color",state:"::-webkit-input-placeholder",value:n},{className:".sv__lock-icon g g path",property:"fill",value:t},{className:".sv__clear-input-icon svg path",property:"fill",value:t},{className:".sv__clear-input-icon svg g rect",property:"fill",value:t},{className:".sv__language-selector__list",property:"background-color",value:r},{className:".sv__language-selector__trigger",property:"color",value:a},{className:".sv__language-selector__trigger",property:"color",state:":hover",value:o},{className:".sv__language-selector__trigger",property:"color",state:":active",value:o},{className:'.sv__language-selector__trigger[aria-expanded="true"] + .sv__language-selector__list',property:"border-color",value:Gs(o,.4)}]})(t);this.addThemeCss(e,s)}static addPageThemeCss(e,t){const s=(e=>{const{answer:t,button:s,background:r,progress_bar:i,question:o}=e,n=Gs(t,.2),a=Gs(t,.1),c=`0 0 0 8px ${n}`,l=Gs(o,.5),v=[{className:".sv__submit-button",property:"background-color",state:":hover",value:Ks(s,-10)},{className:".sv__navigation-button.sv__navigation-button--back",property:"background-color",state:":hover",value:Gs(s,.2)},{className:[".sv__numerical-scale .sv__button",".sv__nps .sv__button",".sv__choice-button",".sv__dropdown__wrapper .sv__select .sv__select-button",".sv__dropdown__wrapper .sv__select .sv__select-button--focused"],property:"background-color",state:":hover",value:n},{className:".sv__nps__wrapper--vertical .sv__nps .sv__button",property:"background-color",state:":hover",value:a},{className:".sv__nps__wrapper--vertical .sv__nps .sv__button",property:"background-color",state:":active",value:a},{className:[".sv__choice-button .sv__circle",".sv__matrix-cell .sv__circle"],property:"box-shadow",state:":hover",value:`0 0 0 8px ${a}`},{className:[".sv__choice-button .sv__circle",".sv__matrix-cell .sv__circle"],property:"box-shadow",state:":focus",value:c},{className:[".sv__choice-button .sv__circle",".sv__matrix-cell .sv__circle"],property:"box-shadow",state:":active",value:c},{className:[".sv__choice-button .sv__square:focus",".sv__choice-button .sv__square:active"],property:"box-shadow",state:"::after",value:c},{className:".sv__choice-button .sv__square:hover",property:"box-shadow",state:"::after",value:c},{className:".sv__submit-button",property:"box-shadow",state:":focus",value:`0 0 0 2px white, 0 0 0 4px ${s};`},{className:"sv__rating .sv__button:hover svg path",property:"fill",value:t}];return[...qt.hasHover()?v:[],{className:[".sv__ranking-wrapper .sv__select",".sv__dropdown__wrapper .sv__select .sv__select-button",".sv__language-selector__trigger--full"],property:"background-color",value:a},{className:".sv__language-selector__trigger--full",property:"border-color",value:Gs(o,.2)},{className:".sv__language-selector__trigger--full .sv__language-selector__label",property:"color",value:o},{className:[".sv__language-selector__trigger--full .sv__language-selector__chevron g g"],property:"fill",value:l},{className:[".sv__language-selector__trigger--full:hover .sv__language-selector__chevron g g",'.sv__language-selector__trigger--full[aria-expanded="true"] .sv__language-selector__chevron svg g g'],property:"fill",value:o},{className:".sv__ranking-wrapper .sv__select .sv__input",property:"background-color",value:"transparent"},{className:".sv__ranking-wrapper .sv__select .sv__select-list .sv__select-button",property:"background-color",value:mr(t)},{className:".sv__language-selector__option",property:"background-color",state:":hover",value:a},{className:".sv__language-selector__option.sv__language-selector__option--selected",property:"background-color",value:a},{className:".sv-checkbox-tick-border-color",property:"border-color",value:r},{className:".sv-ranking-option .sv__caret",property:"border-bottom-color",value:s},{className:".sv-ranking-option .sv__caret",property:"border-top-color",value:s},{className:".sv__language-selector__list",property:"border-color",value:Gs(o,.2)},{className:".sv__square svg path",property:"color",value:t},{className:".sv__language-selector__option",property:"color",value:o},{className:[".sv__textarea","sv--color-answer",".sv__select input"],property:"color",state:"::placeholder",value:Gs(t,.6)},{className:".sv-navigation-mobile",property:"border-color",state:":before",value:i},{className:".sv-navigation",property:"border-color",state:":before",value:t},{className:".sv__input",property:"border-color",state:":focus",value:t},{className:".sv__rating .sv__button svg path",property:"fill",value:a},{className:".sv__language-selector-wrapper .sv__language-selector .sv__language-selector__trigger svg path",property:"fill",value:l},{className:[".sv__language-selector-wrapper .sv__language-selector .sv__language-selector__trigger:hover svg path",".sv__language-selector-wrapper .sv__language-selector .sv__language-selector__trigger:active svg path"],property:"fill",value:o},{className:[".sv__select svg g",".sv__rating .sv__button--selected svg path",".sv-ranking-option .sv__caret svg path:nth-child(2)",".sv__ranking-option-handler svg path:nth-child(2)"],property:"fill",value:t}]})(t);this.addThemeCss(e,s)}static customSimpleThemeCss(e){return`body{margin: 0 !important;}\n #survicate-box .sv-color-description * { color: ${e.font_widget} }\n html{position: relative; max-width: 100vw; background-color: white;}\n @media only screen and (max-width: ${dr.mobile}px) {\n html{height: 100%;}\n body{height: 100%;}\n #survicate-box{height: 100%;}\n #survicate-box .sv__submit-btn-present .sv__point-wrapper {padding-bottom: 50px;}\n }\n @media only screen and (min-width: ${dr.mobile+1}px) {\n #survicate-box .sv-bg-bs {\n border-radius: 6px;\n }\n }`}}const br=e=>!!e&&(e===p.WidgetSurvey||e===p.FeedbackButton);class gr{static getCssFromRules(e,t){var s,r;const i=Me.getStore(t),{isPreview:o}=i.getState(),n=null!==(r=null===(s=i.getState().surveyState.screenshotState)||void 0===s?void 0:s.isEnabled)&&void 0!==r&&r;let a="";const c=br(t)?`.survicate-box-${t}`:"";return Object.keys(e).forEach(t=>{a+=`#survicate-box${c} ${t}{`,e[t].forEach(({propertyName:e,value:t})=>{a+=`${e}: ${t};`}),a+="}"}),br(t)&&(o||n)&&Object.keys(e).forEach(s=>{const r=s.replace(".sv__micro-theme","");a+=`.survicate-box-${t} #sv-screenshot-controls ${r}{`,e[s].forEach(({propertyName:e,value:t})=>{a+=`${e}: ${t};`}),a+="}"}),a}static getFontFaceBlocksFromCss(e){if("string"!=typeof e||!e.trim())return[];let t;const s=[],r=new RegExp(gr.FONT_FACE_REGEX.source,"g");for(;null!==(t=r.exec(e));)s.push(t[0]);return s}static addImportantsToCustomCss(e=""){if("string"!=typeof e)return"";let t=e.replace(gr.IMPORTANT_REGEX,";");const s=[];t=t.replace(gr.KEYFRAMES_REGEX,e=>(s.push(e),`__KEYFRAMES_PLACEHOLDER_${s.length-1}__`));const r=[];t=t.replace(gr.FONT_FACE_REGEX,e=>(r.push(e),`__FONTFACE_PLACEHOLDER_${r.length-1}__`));const i=[];return t=t.replace(gr.BASE64_URL_REGEX,e=>(i.push(e),`__BASE64_PLACEHOLDER_${i.length-1}__`)),t=t.replace(gr.DECLARATION_REGEX,(e,t,s)=>/!important\s*$/i.test(t)?e:`${t} !important${s}`),t=t.replace(gr.PLACEHOLDER_REGEX,(e,t,o)=>{const n=Number(o);switch(t){case"BASE64":return i[n];case"FONTFACE":return r[n];case"KEYFRAMES":return s[n];default:return""}}),t}static getCss(e,t){const s={},r=(e,t,r)=>{s[e]||(s[e]=[]),s[e].push({propertyName:t,value:r})};let i="";switch(hr.addCommonThemeCss(r,e.color_scheme),e.type){case Ys.simple:hr.addPageThemeCss(r,e.color_scheme),i+=hr.customSimpleThemeCss(e.color_scheme);break;case Ys.micro:hr.addMicroThemeCss(r,e.color_scheme)}let o=this.getCssFromRules(s,t)+i;const n=_r(e),a=(null==e?void 0:e.custom_css_enabled)&&(null==e?void 0:e.custom_css),c=a&&this.getFontFaceBlocksFromCss(e.custom_css).length;if(n&&!c){o+=`${`${`#survicate-box${br(t)?`.survicate-box-${t}`:""}`} *`} {font-family: ${`'${n}', '${lr}', sans-serif !important`};}`}return a?o+this.addImportantsToCustomCss(e.custom_css):o}static getSimpleThemeColors(e){return{answer:e.answer||Xs,background:e.background||Js,bg_answer:Ks(e.answer||Xs,-90),bg_submit:e.button||e.main_color||er,bg_widget:e.background||Js,button:e.button||e.main_color||tr,font_answer:Ks(e.answer||Xs,-10),font_submit:sr,font_widget:e.question||ir,main_color:e.main_color||tr,progress_bar:e.progress_bar||e.main_color||rr,question:e.question||ir}}static getMicroThemeColors(e){return{answer:e.answer||Xs,background:e.background||Js,bg_answer:Ks(e.answer||Xs,-90),bg_submit:e.button||e.main_color||er,bg_widget:e.background||Js,button:e.button||e.main_color||tr,font_answer:Ks(e.answer||Xs,-10),font_submit:sr,font_widget:e.question||ir,main_color:e.main_color||tr,progress_bar:e.progress_bar||e.main_color||rr,question:e.question||ir}}static extendTheme(e){return e.type===Ys.simple?Object.assign(Object.assign({},e),{color_scheme:this.getSimpleThemeColors(e.color_scheme)}):Object.assign(Object.assign({},e),{color_scheme:this.getMicroThemeColors(e.color_scheme)})}static reloadCss(e,t){var s;const r=Me.getStore(t),{rootElement:i,isPreview:o}=r.getState();if(!i&&(o||"undefined"==typeof document||!document.head))return;const n=null!=i?i:document.head,a=t===p.FeedbackButton?"survicate-feedback-core-theme":"survicate-core-theme",c=null===(s=window._sva)||void 0===s?void 0:s.nonce;let l=n.querySelector(`#${a}`);l||(l=document.createElement("style"),l.id=a,c&&l.setAttribute("nonce",c),n.appendChild(l)),l.textContent=gr.getCss(e,t)}}gr.FONT_FACE_REGEX=/@font-face\s*{[^}]*}/g,gr.KEYFRAMES_REGEX=/@keyframes[^{]*\{([^{}]|{[^{}]*})*\}/g,gr.BASE64_URL_REGEX=/url\(([^)]+base64[^)]*)\)/g,gr.IMPORTANT_REGEX=/\s{0,10}!important;/g,gr.DECLARATION_REGEX=/([^;{}]{1,1000}:[^;{}]{1,1000})(;)/g,gr.PLACEHOLDER_REGEX=/__(FONTFACE|KEYFRAMES|BASE64)_PLACEHOLDER_(\d+)__/g;const fr=gr,yr=new Set(["undefined","unknown","null","false"]);function wr(e){return"string"==typeof e&&yr.has(e.trim().toLowerCase())}function xr(e){if(null!=e)return wr(e)?"":String(e)}const Sr=e=>{const{storageService:t}=pa.getState();t&&(null==t||t.put(M.VisitorStore,{key:T.visitor,table:k.visitor},e))},kr=e=>{if(pa.setState({visitor:e}),!pa.getState().visitor.isKioskMode)return ze()?(qe.getStorage(M.VisitorStore).set(A.visitorAttributes,e.attributes),qe.getStorage(M.VisitorStore).set(A.visitorIdentities,e.identities),void Sr(Object.assign(Object.assign({},e),{attributes:{},identities:{}}))):void Sr(e)},Tr=({visitor:e},{identityProvider:t,key:s,value:r})=>{var i,o;const n="api"===t&&"id"===s?null!==(i=xr(r))&&void 0!==i?i:"":r;if((null===(o=e.identities[t])||void 0===o?void 0:o[s])===n)return;const a=Object.assign({},e.identities);a[t]=Object.assign(Object.assign({},a[t]),{[s]:n});const c=Object.assign(Object.assign({},e),{identities:a});pa.setState({visitor:c}),kr(c)},Ar=new($s());function Or(e,t){const s=Me.getStore(e.storeType),r=Ps(t,e.storeType);s.setState({backendData:Object.assign(Object.assign({},e.backendData),{surveys:r})}),Rs.startTargeting(e.storeType,r),s.action(Kn)({force:!0})}function Er(e,t){e.storeType&&Me.getStore(e.storeType).setState({backendData:Object.assign(Object.assign({},e.backendData),{audiences:t})})}function Pr(e,t=[]){Me.getStore(e.storeType).setState({backendData:Object.assign(Object.assign({},e.backendData),{themes:t.map(e=>e.type===Ys.mobile?e:fr.extendTheme(e))})})}function Cr(e,t){const s=Me.getStore(e.storeType),r=t.find(e=>"object"==typeof e&&null!==e&&e.provider===Bs.IntegrationNames.Salesforce&&"salesforce"in e),i=null==r?void 0:r.salesforce,o=(0,qs.Ay)(i);s.setState(Object.assign({backendData:Object.assign(Object.assign({},e.backendData),{integrations:t})},Object.keys(o).length>0&&{integrationTags:Object.assign(Object.assign({},e.integrationTags),o)}));const n={setVisitorIdentity:e=>(pa.action(Tr)(e),Promise.resolve())};Ar.init(t,Be.identitiesParams,n)}function Mr(e,t){Me.getStore(e.storeType).setState({backendData:Object.assign(Object.assign({},e.backendData),{workspaceKey:t})})}function Ir(e,t){Me.getStore(e.storeType).setState({backendData:Object.assign(Object.assign({},e.backendData),{translations:t})})}function Nr(e,t){Me.getStore(e.storeType).setState({backendData:Object.assign(Object.assign({},e.backendData),{permissions:t})})}const jr={setAudiences:Er,setIntegrations:Cr,setSurveys:Or,setThemes:Pr,setTranslations:Ir,setWorkspaceKey:Mr},Rr=({answers:e,completionRate:t,survey:s,follow_ups:r})=>e.length?e.map(e=>{const{survey_question_answer_id:i,user_tag:o,content:n,answer_type:a,comment:c}=e;return{answer_type:a||void 0,comment:c||void 0,completion_rate:t,content:n||void 0,finished:100===t||void 0,follow_ups:r,survey_question_answer_id:i||void 0,user_tag:zs(o,s.global_tags)}}):[{completion_rate:t,finished:100===t||void 0}],Dr=(e,t)=>{var s;null===(s=e.backendService)||void 0===s||s.addRequest(pe.answered,(({answers:e,completionRate:t,core_version:s,disclaimer_accepted:r,enforced:i,follow_ups:o,overwrite:n,responseAttributes:a,response_uuid:c,screenshot_uuid:l,survey:v,version:_,surveyPointId:u},d,p)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l&&{screenshot_uuid:l}),i?{enforced:!0}:{}),{core_version:s,disclaimer_accepted:r,integrations:Ar.getAPIToAnsweredJsonIntegrations()||void 0,overwrite:n||void 0}),a&&{response_attributes:a}),{response_uuid:c,survey_point_id:u,version:_,visit_points:Rr({answers:e,completionRate:t,follow_ups:o,survey:v}),visitor:xe(d,p)}))(t,pa.getState().visitor,e.storeType),t.survey.id,e.storeType)};var Lr=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Fr=(e,t,s)=>Lr(void 0,void 0,void 0,function*(){const r=Me.getStore(s),{screenshot:i}=r.getState().surveyState.screenshotState;if(!i)return null;const{id:o}=i;try{const s=yield V("https://respondent.survicate.com").post(`/workspaces/${window._svc.workspaceKey}/surveys/${e}/generate_screenshot_url.json`,{response_uuid:t,screenshot_uuid:o});if(200!==s.status)return r.action(Do)(),null;const i=yield s.json();return(null==i?void 0:i.upload_url)||null}catch(e){return r.action(Do)(),console.error("Error generating screenshot:",e),null}});var zr=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const qr={block_ads:!0,block_urls:["*web_surveys.js*","*surveys-static*"],click_accept:!0,format:"png",hide_cookie_banners:!1,scroll_to:window.scrollY,wait_until:"domloaded"},Ur=new Set,$r=(e,t)=>zr(void 0,[e,t],void 0,function*({surveyId:e,visitorUUID:t,responseUUID:s},r){const i=Me.getStore(r),{screenshot:o}=i.getState().surveyState.screenshotState;if(!o||Ur.has(o.id))return{success:!1};Ur.add(o.id);const{config:n,id:a,pointId:c}=o,l={response_data:{point_id:c,response_uuid:s,screenshot_uuid:a,visitor_uuid:t},screenshot_config:Object.assign(Object.assign({},qr),n)},v=yield Fr(e,s,r);if(!v)return console.error("Could not generate a screenshot URL"),i.action(Ro)(null),{success:!1};try{const e=yield window.fetch(v,{body:JSON.stringify(l),headers:{"Access-Control-Request-Method":"PUT","Content-Type":"application/json"},method:"PUT"});if(200!==e.status)return i.action(Do)(),console.error(`Screenshot generating has failed: ${e.status}`),{success:!1}}catch(e){return i.action(Do)(),console.error("Error generating screenshot:",e),{success:!1}}return i.action(Ro)(null),{screenshotUUID:a,success:!0}});var Br;!function(e){e.question="SurveyQuestion",e.nps="SurveyNps",e.form="SurveyForm",e.cta="SurveyCta"}(Br||(Br={}));const Vr=(e,t)=>{const{answer_type:s,surveyId:r,questionId:i,textResponse:o}=t,n={answer_type:s};if(!e.length)return{questionId:i,surveyId:r};switch(s){case X.smileyScale:case X.rating:case X.matrix:n.answer_value=o;break;case X.single:case X.dropdown:n.answer_id=e[0].survey_question_answer_id;break;case X.multiple:n.answer_ids=e.map(e=>e.survey_question_answer_id);break;case X.text:case X.date:case G.nps:n.answer_value=e[0].content}return{answer:n,questionId:i,surveyId:r}};var Hr;!function(e){e.Identified="identified",e.Anonymous="anonymous"}(Hr||(Hr={}));class Wr{static ruleFulfilled({type:e},{visit:t}){return e===st.all||(e===st.mobile?this.isMobile(t.user_agent):!this.isMobile(t.user_agent))}static isMobile(e){return qt.isDeviceMobileOrTablet(e)}}class Kr{static ruleFulfilled({list:e},{visit:t}){var s,r;const i=null!==(r=null===(s=t.language)||void 0===s?void 0:s.toLowerCase())&&void 0!==r?r:"",o=i.split("-")[0],n=xt(o);return e.some(e=>e.includes("-")?i===e.toLowerCase():i.startsWith(e)||void 0!==n&&n===e)}}class Gr{static ruleFulfilled({type:e},{visitor:t}){var s;const r=t.identities&&t.identities.api&&t.identities.api.id,i=null===(s=t.attributes.email)||void 0===s?void 0:s.value;return e===rt.identified==!(!r&&!i)}}class Yr{static ruleFulfilled({experiment_id:e,variation_name:t},{visit:s}){return new Promise(r=>{e&&t.type||r(!0);let i=0;const o=setInterval(()=>{if(i+=100,i>=8e3)return clearInterval(o),r(!1);const n=s.optimizelyState||window.optimizely&&window.optimizely.get&&window.optimizely.get("state");if(!n)return!1;if(!n.getVariationMap)return clearInterval(o),r(!1);const a=n.getVariationMap();return a[e]?"any"===t.type?(clearInterval(o),r(!0)):(clearInterval(o),void r(a[e].name===t.value)):(clearInterval(o),r(!1))},100)})}}class Zr{static ruleFulfilled({list:e},{visitor:t,storeType:s}){var r;if(!s)return!1;const i=(null===(r=t[s])||void 0===r?void 0:r.tags)||[];return e.some(e=>i.includes(e))}}class Qr{static ruleFulfilled({count:e},{visit:t}){return e<t.views.length}}class Xr{static ruleFulfilled({urls:e},{visit:t}){return e.some(e=>t.views.some(t=>new RegExp(e.regexp_text_pattern).test(t.replace(/^(?:https?:\/\/)?(?:www\.)?/i,""))))}}class Jr{static ruleFulfilled({count:e},{visitor:t}){return 0===e?1===t.visitsCount:e<t.visitsCount}}const ei=[/\((?:[^()\\]|\\.)*?[+*}]\)\s*(?:[+*{])/,/\((?:[^()\\]|\\.)*?\.(?:\*|\+)(?:[^()\\]|\\.)*?\)\s*(?:[+*{])/,/\((?:[^()\\]|\\.)*?\|(?:[^()\\]|\\.)*?\)\s*(?:[+*{])/,/\((?:[^()\\]|\\.)*?\)\\\d+(?:[+*{])/],ti=e=>{if(!e||"string"!=typeof e||e.length>2e3||ei.some(t=>t.test(e)))return null;try{return new RegExp(e)}catch(e){return null}};var si=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class ri{static ruleFulfilled({type:e,urls:t,campaign:s},{visit:r}){switch(e){case it.direct:return!r.referrerUrl;case it.referral:return t.some(e=>{const t=ti(e.regexp_text_pattern);return!!t&&t.test(r.referrerUrl.replace(/^(?:https?:\/\/)?(?:www\.)?/i,""))});case it.utm:return this.isUTMCorrect(s,r);case it.search:return this.isReferrerSearchEngine(r.referrerUrl)}return!0}static isReferrerSearchEngine(e){return si(this,void 0,void 0,function*(){const{data:t}=yield V("https://surveys-static.survicate.com").get("/data/search_engine_regexes.json");if(!e||!t.length)return!1;for(let s=0;s<t.length;s+=1){const r=ti(t[s]);if(r&&r.test(e))return!0}return!1})}static isUTMCorrect(e,t){return this.isUTMParameterValid(e.medium,"utm_medium",t)&&this.isUTMParameterValid(e.content,"utm_content",t)&&this.isUTMParameterValid(e.name,"utm_campaign",t)&&this.isUTMParameterValid(e.source,"utm_source",t)&&this.isUTMParameterValid(e.term,"utm_term",t)}static isUTMParameterValid(e,t,s){if(!e.length)return!0;const r=this.getParameterByName(t,s.initialUrl);return e.some(e=>e===r)}static getParameterByName(e,t){if(!e||"string"!=typeof e)return null;const s=e.replace(/[\[\]]/g,"\\$&"),r=ti(`[?&]${s}(=([^&#]*)|&|#|$)`);if(!r)return null;const i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}}class ii{static ruleFulfilled({surveyAudiencesIds:e,audiencesIds:t},{checkBackendRule:s}){return!s||e.some(e=>t.includes(e))}}const oi=e=>e instanceof Date?e:new Date(e.toString()),ni=e=>"string"==typeof e&&/\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(([+-]\d{2}:\d{2})|Z))?/.test(e)?e.slice(0,10):"[object Date]"===Object.prototype.toString.call(e)?e.toISOString().slice(0,10):e,ai=(e,t)=>{switch(t){case"number":return Number(e);case"boolean":return e;case"datetime":{const t=ni(e);return"string"==typeof t&&10===t.length?t:(console.error("Invalid datetime attribute. Please provide date in ISO string or Date object."),null)}case"time_interval":return"number"==typeof e?e:oi(e).getTime();default:return String(e).trim()}};class ci{static ruleFulfilled({attributes:e,relation:t},{visitor:s}){var r,i;const o=Object.assign({},s.attributes);(null===(i=null===(r=null==s?void 0:s.identities)||void 0===r?void 0:r.api)||void 0===i?void 0:i.id)&&(o[Le.USER_ID_TRAIT]={throttledTo:null,timestamp:Date.now(),value:s.identities.api.id});const n=({name:e,operator:t,values:s,attribute_type:r})=>{var i;if(t===Je.any)return e in o;const n=null===(i=o[e])||void 0===i?void 0:i.value;if(t===Je.exists||t===Je.does_not_exist)return mt({attribute_type:r,clientAttributes:[],operator:t,userAttribute:n});if(!s||!Object.keys(o).length||!(e in o))return!1;if(void 0===n)return!1;const a=ai(n,r);if(null===a)return!1;const c=s.map(e=>ai(e,r)).filter(e=>null!==e);return!!c.length&&mt({attribute_type:r,clientAttributes:c,operator:t,userAttribute:a})};return t===et.and?e.every(n):e.some(n)}}function li(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)"__proto__"!==r&&(e[r]=s[r])}return e}var vi=function e(t,s){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=li({},s,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var n in i)i[n]&&(o+="; "+n,!0!==i[n]&&(o+="="+i[n].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var s=document.cookie?document.cookie.split("; "):[],r={},i=0;i<s.length;i++){var o=s[i].split("="),n=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(a in r||(r[a]=t.read(n,a)),e===a)break}catch{}}return e?r[e]:r}},remove:function(e,t){r(e,"",li({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,li({},this.attributes,t))},withConverter:function(t){return e(li({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(s)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});class _i{static isCookieFulfilled({name:e,type:t,value:s}){let r;try{r=vi.get(e)}catch(e){return!1}return t===tt.exact&&s?`${r}`==`${s}`:!!r}static ruleFulfilled({cookies:e,relation:t}){return t===et.and?e.every(e=>_i.isCookieFulfilled(e)):e.some(e=>_i.isCookieFulfilled(e))}}var ui=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class di{static areFulfilled(e){return ui(this,arguments,void 0,function*({audiences:e,checkBackendRule:t=!1,survey:s,visit:r,visitor:i,storeType:o}){const n=yield this.getFulfilledAudiences({audiences:e,checkBackendRule:t,survey:s,visit:r,visitor:i,storeType:o});return!!(null==n?void 0:n.length)})}static getFulfilledAudiences(e){return ui(this,arguments,void 0,function*({audiences:e,checkBackendRule:t=!1,survey:s,visit:r,visitor:i,storeType:o}){const n=e.filter(e=>s.audiences_ids.includes(e.id));t&&n.forEach(e=>{e.filters.forEach(e=>{if(e.name===ot.backendTargeting){const t=e.parameters;t.surveyAudiencesIds=s.audiences_ids,t.setByBackendManager||(t.audiencesIds=n.map(e=>e.id))}})});return(yield Promise.all(n.map(e=>ui(this,void 0,void 0,function*(){return(yield this.isUserInAudience(e,{checkBackendRule:t,visit:r,visitor:i,storeType:o}))?e:null})))).filter(e=>null!==e)})}static isUserInAudience(e,t){return ui(this,void 0,void 0,function*(){const s=yield Promise.all(e.filters.map(e=>this.userPassesRule(e,t)));if(!1===(null==e?void 0:e.has_backend_filters)&&!t.checkBackendRule){const t=s.filter((t,s)=>e.filters[s].name!==ot.backendTargeting);return e.filters_relation===et.and?t.every(e=>e):t.some(e=>e)}return e.filters_relation===et.and?s.every(e=>e):s.some(e=>e)})}static userPassesRule(e,t){return ui(this,void 0,void 0,function*(){const s={[ot.attributes]:ci,[ot.backendTargeting]:ii,[ot.cookies]:_i,[ot.device]:Wr,[ot.languages]:Kr,[ot.loggedInStatus]:Gr,[ot.tags]:Zr,[ot.visitDepth]:Qr,[ot.visitedUrls]:Xr,[ot.visitFrequency]:Jr,[ot.visitSource]:ri,[ot.optimizely]:Yr}[e.name];if(!s)return!0;return(yield s.ruleFulfilled(e.parameters,t))!==e.exclude})}}const pi=({uuid:e,identities:t,attributes:s},r)=>{var i,o,n;const a=null!==(o=null===(i=null==t?void 0:t.api)||void 0===i?void 0:i.id)&&void 0!==o?o:"",c=r||(null===(n=null==s?void 0:s.user_key)||void 0===n?void 0:n.value),l={metadata:{user_agent:window.navigator.userAgent,version:"1.0.0"},respondent:{uuid:e},user:{id:String(a)}};return c&&(l.user.key=String(c)),l},mi=e=>{var t,s,r,i;return!!(null===(t=e.identities.api)||void 0===t?void 0:t.id)&&(!(null===(r=null===(s=window._svd)||void 0===s?void 0:s.flags)||void 0===r?void 0:r.enforce_user_authentication)||!!(null===(i=e.validation)||void 0===i?void 0:i.timestamp))};class hi{static chunkArray(e,t=100){if(e.length<=t)return[e];const s=[];for(let r=0;r<e.length;r+=t)s.push(e.slice(r,r+t));return s}static createUserEventsPayloadChunks(e,t){return this.chunkArray(t).map(t=>Object.assign(Object.assign({},e),{events:t}))}static createUserAttributesPayloadChunks(e,t){return this.chunkArray(t).map(t=>Object.assign(Object.assign({},e),{attributes:t}))}}const bi=e=>{if(!mi(e)||!e.attributes||!Object.keys(e.attributes).length)return;const{backendService:t}=pa.getState(),s=pi(e),r=Object.entries(e.attributes).filter(([e])=>e!==fe).map(([e,t])=>({name:e,timestamp:t.timestamp,value:t.value instanceof Date?t.value.toISOString():String(t.value)}));if(r.length<=100){const e=Object.assign({attributes:r},s);null==t||t.addRequest(pe.userAttributes,e,"",null)}else{hi.createUserAttributesPayloadChunks(s,r).forEach(e=>{null==t||t.addRequest(pe.userAttributes,e,"",null)})}m.forEach(e=>{Me.getStore(e).action(Kn)()})};var gi,fi;!function(e){e.Verified="verified",e.Invalid="invalid",e.Error="error"}(gi||(gi={})),function(e){e.Idle="idle",e.Pending="pending",e.Fulfilled="fulfilled",e.Rejected="rejected"}(fi||(fi={}));var yi=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class wi{static getVerifyUserStatus(){return{error:this.verifyUserError,status:this.verifyUserStatus}}static verifyUserCredentials(e){return yi(this,void 0,void 0,function*(){var t,s;this.verifyUserStatus=fi.Pending,this.verifyUserError=null;const r=null===(s=null===(t=window._svd)||void 0===t?void 0:t.flags)||void 0===s?void 0:s.enforce_user_authentication;return new Promise(t=>{var s;try{null===(s=pa.getState().backendService)||void 0===s||s.addRequestWithCallback(pe.userVerification,e,e=>{if(!e)return this.verifyUserStatus=fi.Fulfilled,void t({type:gi.Verified});const{status:s,response:i,error:o}=e;switch(s){case 220:case 204:this.verifyUserStatus=fi.Fulfilled,t({type:gi.Verified});break;case 400:case 409:case 422:i.json().then(e=>{var i,o,n;this.verifyUserStatus=fi.Rejected,this.verifyUserError=null!==(i=e.message)&&void 0!==i?i:`HTTP ${s}`,r?console.error("Validation failed:",null!==(o=e.message)&&void 0!==o?o:`HTTP ${s}`):console.warn("Validation failed:",null!==(n=e.message)&&void 0!==n?n:`HTTP ${s}`),t({details:e.details,message:e.message,status:s,type:gi.Invalid})}).catch(()=>{this.verifyUserStatus=fi.Rejected,this.verifyUserError=`HTTP ${s}`,r?console.error("Validation failed:",`HTTP ${s}`):console.warn("Validation failed:",`HTTP ${s}`),t({message:`HTTP ${s}`,status:s,type:gi.Invalid})});break;default:this.verifyUserStatus=fi.Rejected,this.verifyUserError=`HTTP ${s}`,t({message:`HTTP ${s}`,type:gi.Error})}})}catch(e){this.verifyUserStatus=fi.Rejected,this.verifyUserError=e.message,t({message:e.message,type:gi.Error})}})})}static updateVisitor({visitor:e,result:t,userId:s,newAttributes:r,previousRespondentUUID:i}){var a;if(t.type===gi.Verified){const t=null===(a=e.validation)||void 0===a?void 0:a.previousValidatedUserId;return Object.assign(Object.assign({},e),{attributes:Object.assign(Object.assign({},e.attributes),null!=r?r:{}),validation:{previousValidatedUserId:t===s?t:s,timestamp:n()}})}return Object.assign(Object.assign({},e),{uuid:null!=i?i:o(),validation:{previousValidatedUserId:null,timestamp:null}})}static validateUser(e){return yi(this,arguments,void 0,function*({visitor:e,userId:t,userKey:s,newAttributes:r}){var i,o;const n=yield this.verifyUserCredentials(pi(e,s));let a=e;n.type===gi.Invalid&&409===n.status&&(a=Object.assign(Object.assign({},a),{validation:Object.assign(Object.assign({},a.validation),{timestamp:null})}));const c=this.updateVisitor({newAttributes:r,previousRespondentUUID:e.uuid,result:n,userId:t,visitor:a});switch(kr(c),n.type){case gi.Verified:bi(c);break;case gi.Invalid:409===n.status?console.warn("User authentication conflict (409) - user logged out:",n.message):console.error("User verification failed:",n.message),(null===(o=null===(i=window._svd)||void 0===i?void 0:i.flags)||void 0===o?void 0:o.enforce_user_authentication)||409===n.status||bi(c);break;case gi.Error:console.error("Error occurred while verifying user:",n.message)}})}static waitForVerificationToComplete(){return yi(this,void 0,void 0,function*(){return new Promise(e=>{const t=()=>{const{status:s}=wi.getVerifyUserStatus();s===fi.Pending?setTimeout(t,1e3):e()};t()})})}}wi.verifyUserStatus=fi.Idle,wi.verifyUserError=null;var xi=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Si{static getRequestKey(e,t){return`surveys:${[...e].sort().join(",")}|audiences:${[...t].sort().join(",")}`}static getInFlightRequest(e){return this.inFlightRequests.get(e)}static createAndTrackBackendRequest(e,t){const s=t();return this.inFlightRequests.set(e,s),s.finally(()=>{this.inFlightRequests.delete(e)}).catch(()=>{}),s}static getBackendRequest(e,t,s){return xi(this,void 0,void 0,function*(){const r=this.getRequestKey(e,t),i=this.getInFlightRequest(r);return i||this.createAndTrackBackendRequest(r,s)})}static clearInFlightRequests(){this.inFlightRequests.clear()}}Si.inFlightRequests=new Map;class ki{static isValidCacheUntil(e){if(!e||"number"!=typeof e)return!1;return n()<e-this.BUFFER_MS}static filterValidBackendResponse(e){if(!e)return null;const t=(e.surveys||[]).filter(e=>e&&e.can_show&&this.isValidCacheUntil(e.cache_until)),s=(e.audiences||[]).filter(e=>e&&e.is_satisfied&&this.isValidCacheUntil(e.cache_until));return t.length||s.length?{audiences:s,surveys:t}:null}}ki.BUFFER_MS=3e4;let Ti=[],Ai=!1;function Oi(e,t){const s={};return[...e,...t].forEach(e=>s[e.id]=e),Object.values(s)}var Ei;!function(e){e.Survey="survey",e.Audience="audience"}(Ei||(Ei={}));class Pi{constructor(){var e;this.sessionStore=le.getStore(p.WidgetSurvey);const t=(null===(e=window._svc)||void 0===e?void 0:e.workspaceKey)||"";this.cacheKey=`survi::${t}::backendCache`}getCachedSurveys(e){const t=this.getCache();return this.getCachedEntries({cachedData:t.surveys,entityType:Ei.Survey,ids:e})}getCachedAudiences(e){const t=this.getCache();return this.getCachedEntries({cachedData:t.audiences,entityType:Ei.Audience,ids:e})}getCache(){try{return this.sessionStore.get(this.cacheKey,!0)||{audiences:{},surveys:{}}}catch(e){return{audiences:{},surveys:{}}}}getCachedEntries(e){const{ids:t,cachedData:s}=e,r=[],i=[];if(!s||"object"!=typeof s)return{needsRefresh:t,valid:[]};for(const e of t){const t=s[String(e)];t&&this.isValidCacheEntry(t)?this.isExpired(t.cache_until)?i.push(e):r.push(Object.assign(Object.assign({},t),{id:e})):i.push(e)}return{needsRefresh:i,valid:r}}updateCache(e){if(e&&"object"==typeof e)try{const t=this.getCache();let s=!1;if(Array.isArray(e.surveys)&&e.surveys.length)for(const r of e.surveys)null!=(null==r?void 0:r.id)&&"boolean"==typeof r.can_show&&"number"==typeof r.cache_until&&(t.surveys[r.id]={cache_until:r.cache_until,can_show:r.can_show},s=!0);if(Array.isArray(e.audiences)&&e.audiences.length>0)for(const r of e.audiences)null!=(null==r?void 0:r.id)&&"boolean"==typeof r.is_satisfied&&"number"==typeof r.cache_until&&(t.audiences[String(r.id)]={cache_until:r.cache_until,is_satisfied:r.is_satisfied},s=!0);s&&this.sessionStore.set(this.cacheKey,t,!0)}catch(e){}}markSurveyDisplayed(e){var t;try{const s=this.getCache();(null===(t=null==s?void 0:s.surveys)||void 0===t?void 0:t[e])&&(s.surveys[e].can_show=!1,this.sessionStore.set(this.cacheKey,s,!0))}catch(e){}}isExpired(e){return!ki.isValidCacheUntil(e)}clearCache(){try{this.sessionStore.remove(this.cacheKey,!0)}catch(e){}}isValidCacheEntry(e){return"object"==typeof e&&null!==e&&"cache_until"in e&&"number"==typeof e.cache_until}}var Ci,Mi=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Ii{static initCacheService(){this.cacheService||(this.cacheService=new Pi)}static clearInFlightRequests(){Si.clearInFlightRequests()}static buildTargetingPayload(e,t){const{visitor:s}=pa.getState(),r=We.getVisit(e).get();return Object.assign(Object.assign(Object.assign({},pi(s)),{audiences:[],displayed_surveys:r.displayedSurveys.map(e=>e.surveyId),surveys:[]}),t)}static addFilter(e){return e.map(e=>e.visitor_type===Hr.Identified?Object.assign(Object.assign({},e),{filters:[...e.filters,{exclude:!1,name:ot.backendTargeting,parameters:{audiencesIds:[],surveyAudiencesIds:[]}}]}):e)}static markSurveyDisplayed(e){this.initCacheService(),this.cacheService&&this.cacheService.markSurveyDisplayed(e)}static clearCache(){this.initCacheService(),this.cacheService&&this.cacheService.clearCache()}static getBackendSurveysToDisplay(e){return Mi(this,arguments,void 0,function*({surveyType:e,surveysToDisplay:t,preCheckedBackendAudiences:s,updatedAudienceWithBackendTargeting:r,visit:i,visitor:o}){var n,a,c,l,v,_;if((null===(a=null===(n=window._svd)||void 0===n?void 0:n.flags)||void 0===a?void 0:a.enforce_user_authentication)&&!0===(null===(l=null===(c=window._svd)||void 0===c?void 0:c.flags)||void 0===l?void 0:l.backend_targeting_enabled)&&(yield wi.waitForVerificationToComplete()),!(e&&s.length&&t.length&&!0===(null===(_=null===(v=window._svd)||void 0===v?void 0:v.flags)||void 0===_?void 0:_.backend_targeting_enabled)&&mi(o)))return[];const u=t.filter(e=>e.backendTargeted);if(this.initCacheService(),!this.cacheService)return[];const d=u.map(e=>e.id),p=s.map(e=>e.id),m=this.cacheService.getCachedSurveys(d),h=this.cacheService.getCachedAudiences(p);let b=null;if(m.needsRefresh.length||h.needsRefresh.length)try{const t=yield Si.getBackendRequest(m.needsRefresh,h.needsRefresh,()=>Ci.verifyBackendTargeting({audiences:h.needsRefresh,surveyType:e,surveys:m.needsRefresh}));t&&this.cacheService&&this.cacheService.updateCache(t),b=ki.filterValidBackendResponse(t)}catch(e){return console.error("[BackendTargeting] Error in backend targeting verification:",e),[]}const g=Oi(m.valid,(null==b?void 0:b.surveys)||[]),f=Oi(h.valid,(null==b?void 0:b.audiences)||[]),y=new Set(g.filter(e=>e.can_show).map(e=>e.id)),w=new Set(f.filter(e=>e.is_satisfied).map(e=>e.id)),x=u.filter(e=>y.has(e.id)),S=function(e,t){return e.map(e=>Object.assign(Object.assign({},e),{filters:e.filters.map(s=>{if(s.name===ot.backendTargeting){const r=s.parameters;return Object.assign(Object.assign({},s),{parameters:Object.assign(Object.assign({},r),{audiencesIds:Array.from(t),setByBackendManager:!0,surveyAudiencesIds:[e.id]})})}return s})}))}(r,w);return(yield Promise.all(x.map(e=>Mi(this,void 0,void 0,function*(){try{return(yield di.getFulfilledAudiences({audiences:S,checkBackendRule:!0,survey:e,visit:i,visitor:o})).length?e:null}catch(e){return null}})))).filter(e=>null!==e)})}}Ci=Ii,Ii.cacheService=null,Ii.sendTargetingRequest=(e,t)=>Mi(void 0,void 0,void 0,function*(){const{backendService:s}=pa.getState();return s?(yield Ai?new Promise(e=>{Ti.push(e)}):Promise.resolve(),new Promise(r=>{s.addRequestWithCallback(pe.targeting,t,e=>{if(!e)return void r(null);const{status:t,response:s,error:i}=e;i||200!==t?r(null):s.json().then(e=>{r(e)}).catch(()=>{r(null)})},e)})):null}),Ii.verifyBackendTargeting=e=>Mi(void 0,[e],void 0,function*({surveyType:e,surveys:t,audiences:s}){if(!t.length||!e)return null;const r=Ci.buildTargetingPayload(e,{audiences:s,surveys:t});return Ci.sendTargetingRequest(e,r)}),Ii.verifyShowSurvey=(e,t)=>Mi(void 0,void 0,void 0,function*(){var s,r;const{visitor:i}=pa.getState();if(!mi(i))return!1;const o=Ci.buildTargetingPayload(e,{surveys:[t]}),n=yield Ci.sendTargetingRequest(e,o);return!0===(null===(r=null===(s=null==n?void 0:n.surveys)||void 0===s?void 0:s.find(e=>e.id===t))||void 0===r?void 0:r.can_show)});var Ni=s(777);const ji=e=>e&&"object"==typeof e?Object.fromEntries(Object.entries(e).filter(([e])=>e!==fe&&e!==Le.USER_ID_TRAIT)):{};class Ri{constructor(){this.intervalId=null,this.isSending=!1,this.CHECK_INTERVAL_WINDOW_MS=6e4}static getInstance(){return Ri.instance||(Ri.instance=new Ri),Ri.instance}start(){this.intervalId||(this.intervalId=setInterval(()=>{try{this.processThrottledAttributes()}catch(e){}},this.CHECK_INTERVAL_WINDOW_MS))}stop(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),this.isSending=!1}processThrottledAttributes(){const e=n();try{if(this.isSending)return;const{visitor:t}=pa.getState();if(!mi(t))return;const s={},r=Object.assign({},t);let i=!1;if(Object.entries(t.attributes).forEach(([t,o])=>{null!==o.throttledTo&&e>=o.throttledTo&&(s[t]={throttledTo:null,timestamp:o.timestamp,value:o.value},r.attributes[t]=Object.assign(Object.assign({},o),{throttledTo:null}),i=!0)}),i){this.isSending=!0;try{pa.setState({visitor:r}),kr(r);const e=Object.assign(Object.assign({},r),{attributes:Object.assign(Object.assign({},s),r.attributes.user_key&&{user_key:r.attributes.user_key})});bi(e)}finally{this.isSending=!1}}Object.values(r.attributes).every(e=>null===e.throttledTo)&&this.stop()}catch(e){}}processNow(){this.processThrottledAttributes()}}Ri.instance=null;const Di=function(e,t){if(!t)return{changedAttributes:Object.assign({},e),hasChanges:Object.keys(e).length>0,newAttributes:e};const s={};let r=!1;for(const[i,o]of Object.entries(e)){const e=Object.prototype.hasOwnProperty.call(t,i),n=e&&Object.is(t[i],o);e&&n||(s[i]=o,r=!0)}return{changedAttributes:s,hasChanges:r,newAttributes:e}},Li=3e5,Fi={shouldSendImmediately:!0,throttledTo:null};function zi(e,t){if(!t)return Fi;return e-t.timestamp>=Li?Fi:{shouldSendImmediately:!1,throttledTo:t.throttledTo||t.timestamp+Li}}let qi=null;class Ui{constructor(){var e,t;this.sessionStore=le.getStore(C.BackendAttributesStore);const s=null!==(t=null===(e=window._svc)||void 0===e?void 0:e.workspaceKey)&&void 0!==t?t:"";this.storageKey=`survi::${s}::${k.backendAttributes}`}static getInstance(){return qi||(qi=new Ui),qi}get(){try{return this.sessionStore.get(this.storageKey,!0)}catch(e){return null}}set(e){try{this.sessionStore.set(this.storageKey,e,!0)}catch(e){}}remove(){try{this.sessionStore.remove(this.storageKey,!0)}catch(e){}}}const $i=e=>null!==e&&"object"==typeof e&&!Array.isArray(e)&&Object.entries(e).every(([e,t])=>"string"==typeof e&&"string"==typeof t),Bi=()=>{if("undefined"==typeof window)return{};if(ze()){const e=qe.getStorage(M.VisitorStore).get(A.identityUuidPairs);return $i(e)?e:{}}const{storageService:e}=pa.getState();if(!e)return{};const t=e.get(M.VisitorStore,{key:T.identityUuidPairs,table:k.visitor});return $i(t)?t:{}},Vi=(e,t,s)=>{e&&!s&&!wr(e)&&t&&(e=>{if("undefined"==typeof window)return;if(ze())return void qe.getStorage(M.VisitorStore).set(A.identityUuidPairs,e);const{storageService:t}=pa.getState();t&&t.put(M.VisitorStore,{key:T.identityUuidPairs,table:k.visitor},e)})(Object.assign(Object.assign({},Bi()),{[e]:t}))},Hi=(e,t)=>{var s;let r;return r=!e||t||wr(e)?o():null!==(s=(e=>{if(e&&!wr(e))return Bi()[e]})(e))&&void 0!==s?s:o(),Object.assign(Object.assign({},{attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0}),{identities:{api:{id:e}},isKioskMode:t,uuid:r})};var Wi;function Ki(){if("undefined"==typeof window)return;const e=le.getStore(M.VisitorStore),t=Be.getUrl().replace(`${window.location.protocol}//`,""),s=e.get(ne.sessionViews),r=Array.isArray(s)?[...s]:[];if(r.includes(t)||(r.push(t),e.set(ne.sessionViews,r)),1!==r.length)return;const{visitor:i}=pa.getState();i.visitsCount=i.visitsCount+1,kr(i)}function Gi(e,t){var s,r,i,o,a,c;if(!t)return;let{visitor:l}=e;const v=n(),_=Ui.getInstance(),u=((e,t=De.visitor)=>{if(!e)return{};const s={};return Object.keys(e).forEach(r=>{const i=K(r);let o=e[r];"number"==typeof o||"boolean"==typeof o||o instanceof Date||(o=K(`${null!=o?o:""}`)),Fe(o,i,t)&&(s[i]=o)}),s})(t,De.visitor),d=t[Le.USER_ID_TRAIT],p=""===d||!!d;let h;p&&(h=null!==(s=xr(d))&&void 0!==s?s:"");const b=null!=(null===(r=l.identities.api)||void 0===r?void 0:r.id)?String(l.identities.api.id):void 0;b&&p&&b!==h&&(Vi(b,l.uuid,l.isKioskMode),l=Hi(null!=h?h:"",l.isKioskMode),Ii.clearCache(),_.remove()),p&&(l.identities.api={id:h});const g=_.get(),f=t[fe],y="string"==typeof f&&(null===(i=l.attributes[fe])||void 0===i?void 0:i.value)!==f;let w=Object.assign({},u);if(g&&mi(l)){const e=Di(ji(u),g);if(!e.hasChanges&&!y)return;w=e.changedAttributes,y&&(w[fe]=f);const t=Object.assign(Object.assign({},g),e.changedAttributes);_.set(t)}const x={};Object.keys(u).forEach(e=>{const t=l.attributes[e];if(e in w){const s=zi(v,t);l.attributes[e]={throttledTo:s.throttledTo,timestamp:v,value:u[e]},s.shouldSendImmediately&&(x[e]={throttledTo:null,timestamp:v,value:w[e]})}});if(Object.values(l.attributes).some(e=>null!==e.throttledTo)&&mi(l)&&Ri.getInstance().start(),!g&&h&&Object.keys(w).length){const e=ji(w);_.set(e)}const S=null===(o=l.identities.api)||void 0===o?void 0:o.id;if("undefined"!=typeof window&&!0===(null===(c=null===(a=window._svd)||void 0===a?void 0:a.flags)||void 0===c?void 0:c.backend_targeting_enabled)&&"string"==typeof S&&S&&"string"==typeof f){const e={};return Object.keys(w).forEach(t=>{var s,r;const i=l.attributes[t];e[t]={throttledTo:null!==(s=null==i?void 0:i.throttledTo)&&void 0!==s?s:null,timestamp:null!==(r=null==i?void 0:i.timestamp)&&void 0!==r?r:v,value:w[t]}}),void wi.validateUser({newAttributes:e,userId:S,userKey:f,visitor:l})}kr(l),mi(l)&&Object.keys(x).length&&bi(Object.assign(Object.assign({},l),{attributes:Object.assign(Object.assign({},x),l.attributes.user_key&&{user_key:l.attributes.user_key})})),m.forEach(e=>{Me.getStore(e).action(Kn)()})}function Yi(){var e,t,s;const r=Me.getStore(p.PageSurvey),i=Be.params,o=i[Ue.p],n=Object.values(Le.PROVIDERS_TRAITS_WHITELIST).reduce((e,t)=>e.concat(t),[]),a=new Set([...n,Le.USER_ID_TRAIT]),c=o&&null!==(e=Le.PROVIDERS_TRAITS_WHITELIST[o])&&void 0!==e?e:[],l=null!==(s=null===(t=r.getState().integrationTags)||void 0===t?void 0:t.salesforce)&&void 0!==s?s:[],v=new Set([...l,...c]),_={};Object.keys(i).forEach(e=>{e!==Ue.p&&(o&&v.has(e)||(_[e]=Be[a.has(e)?"identitiesParams":"params"][e]))}),Object.keys(_).length&&pa.action(Gi)((0,Ni.N)(_))}function Zi(e,t){const{visitor:s}=pa.getState();if(!e.storeType)return;const r=s[e.storeType],i=null!=r?r:{displayedSurveys:[],engagedSurveys:[],initialSurveysEngagement:[],tags:[]};i.tags.includes(t)||(s[e.storeType]=Object.assign(Object.assign({},i),{tags:[...i.tags,t]}),kr(s))}!function(e){e.engaged="engagedSurveys",e.displayed="displayedSurveys"}(Wi||(Wi={}));const Qi=(e,t,s)=>{var r;const i={surveyId:t,timestamp:s},o=[...e],n=o.findIndex(e=>(e.surveyId||e)===t);return-1===n?o.push(Object.assign(Object.assign({},i),{count:1})):o[n]=Object.assign(Object.assign({},i),{count:(null!==(r=o[n].count)&&void 0!==r?r:0)+1}),o};function Xi(e,{surveyId:t,interactionType:s}){const{visitor:r}=pa.getState(),i=n();if(!e.storeType)return;const o=e.storeType,a=r[o],c=null!=a?a:{displayedSurveys:[],engagedSurveys:[],initialSurveysEngagement:[],tags:[]};if(s===Wi.engaged){const e=c.initialSurveysEngagement||[],s=e.find(e=>e.surveyId===t)?e:[...e,{count:1,surveyId:t,timestamp:i}];r[o]=Object.assign(Object.assign({},c),{engagedSurveys:Qi([...c.engagedSurveys],t,i),initialSurveysEngagement:s})}else s===Wi.displayed&&(r[o]=Object.assign(Object.assign({},c),{displayedSurveys:Qi([...c.displayedSurveys],t,i)}));kr(r)}const Ji={addNewVisit:Ki,saveVisitor:kr,setSurveyInteraction:Xi,setVisitorAttributes:Gi,setVisitorAttributesFromURL:Yi,setVisitorIdentity:Tr,setVisitorTag:Zi},eo=e=>{var t,s;return(null===(s=null===(t=e.surveyState)||void 0===t?void 0:t.survey)||void 0===s?void 0:s.integrations)||{}};function to(e,t){var s,r,i;const o=Me.getStore(e.storeType);o.action(Xi)({interactionType:Wi.engaged,surveyId:t.survey.id}),e.storeType&&(We.getVisit(e.storeType).setEngaged(),We.getVisit(e.storeType).addAnswer(t.surveyPointId,t.textResponse));const n=eo(e);let a;if(t.pointType===Br.form){const e={};t.answers.forEach(t=>{t.answer_type&&t.content&&(e[t.answer_type]=t.content)}),pa.action(Gi)(e),a=Object.assign(Object.assign({},t),{contactForm:e})}else{const{surveyState:{survey:s}}=e,r=null==s?void 0:s.points.map(e=>e.id).indexOf(t.surveyPointId);a=Object.assign(Object.assign({},t),{question:void 0!==r&&-1!==r?`${r+1} - ${t.question}`:t.question})}if(e.storeType&&(null===(s=null==t?void 0:t.answers)||void 0===s?void 0:s.length)&&(null===(r=o.getState().surveyState.screenshotState)||void 0===r?void 0:r.isEnabled)&&(null===(i=o.getState().surveyState.screenshotState)||void 0===i?void 0:i.screenshot)){const s=pa.getState().visitor.uuid;$r({responseUUID:t.response_uuid,surveyId:t.survey.id,visitorUUID:s},e.storeType).then(s=>{const r=s.success&&s.screenshotUUID?Object.assign(Object.assign({},t),{screenshot_uuid:s.screenshotUUID}):t;Dr(e,r)}).catch(s=>{console.error("Screenshot upload failed:",s),Dr(e,t)})}else Dr(e,t);_e.fireEvent(ve.questionAnswered,Vr(t.answers,{answer_type:t.answerType,questionId:t.surveyPointId,surveyId:t.survey.id,textResponse:t.textResponse})),Ls().pushEvent(Fs.IntegrationEventTypes.SurveyPointAnswered,a,n)}function so(e){var t,s,r;const{survey:i}=e.surveyState,o=Me.getStore(e.storeType);if(!i||(null===(t=window._svc)||void 0===t?void 0:t.isPreview))return;const n=pa.getState().visitor,a={visitor:xe(n,e.storeType)},c=e.storeType?n[e.storeType]:void 0;!(null!==(s=null==c?void 0:c.displayedSurveys)&&void 0!==s?s:[]).some(e=>e.surveyId===i.id)&&(a.survey_first_seen=!0),null===(r=e.backendService)||void 0===r||r.addRequest(pe.seen,a,i.id,e.storeType),o.action(Xi)({interactionType:Wi.displayed,surveyId:i.id}),e.storeType&&We.getVisit(e.storeType).addDisplayedSurvey(i.id),Ii.markSurveyDisplayed(i.id),_e.fireEvent(ve.surveyDisplayed,{surveyId:i.id,surveyName:i.name});const l=eo(e);Ls().pushEvent(Fs.IntegrationEventTypes.SurveySeen,{surveyName:i.name},l)}function ro(e,t){const s=Me.getStore(e.storeType);s.action(Xi)({interactionType:Wi.engaged,surveyId:t.surveyId}),e.storeType&&We.getVisit(e.storeType).setEngaged(),s.action(Kn)(),_e.fireEvent(ve.surveyClosed,{surveyId:t.surveyId});const r=eo(e);Ls().pushEvent(Fs.IntegrationEventTypes.SurveyClosed,t,r)}function io(e,t){const s=eo(e);Ls().pushEvent(Fs.IntegrationEventTypes.SurveyMinimized,t,s)}function oo(e,t){const s=eo(e);Ls().pushEvent(Fs.IntegrationEventTypes.SurveyMaximized,t,s)}function no(e,t){const s=eo(e);Ls().pushEvent(Fs.IntegrationEventTypes.SurveyPointSeen,t,s)}const ao={answered:to,closed:ro,maximized:oo,minimized:io,seen:so,surveyPointSeen:no},co=({surveyState:e,storeType:t})=>{Me.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{pointsAnswered:{}})})},lo=e=>{if(!e||!e.length)return!1;const t=e[e.length-1].point.answer_type;return-1!==Object.values($t).filter(e=>e!==$t.button).indexOf(t)};class vo{constructor(e){this.prefix=e}getStoreKey({table:e,key:t}){const s=e===k.requests_contacts?"::":"";return`${this.prefix}${e}${s}${t}`}get(e,t){return L.getStore(e).get(this.getStoreKey(t),!0)}put(e,t,s){L.getStore(e).set(this.getStoreKey(t),s,!0)}getAll(e,t){const s=[],r=`${this.prefix}${t}`;return L.getStore(e).each((e,i)=>{i.startsWith(r)&&("requests"===t&&i.includes("requests_contacts")||s.push(u(e)))}),s}remove(e,t){L.getStore(e).remove(this.getStoreKey(t),!0)}}class _o{constructor(e){this.workspaceKey=e}getStorageInstance(e){const t=e===p.FeedbackButton||e===M.VisitorStore?`${e}::`:"";return new vo(`survi::${this.workspaceKey}::${t}`)}get(e,t){return this.getStorageInstance(e).get(e,t)}getAll(e,t){return this.getStorageInstance(e).getAll(e,t)}put(e,t,s){this.getStorageInstance(e).put(e,t,s)}remove(e,t){this.getStorageInstance(e).remove(e,t)}}var uo;!function(e){e[e.kiosk=0]="kiosk",e[e.normal=1]="normal"}(uo||(uo={}));const po=function(e){if(!e||"object"!=typeof e)return{};const t=Object.entries(e);if(!t.length)return{};if(t.every(([,e])=>e&&"object"==typeof e&&null!==e&&"value"in e&&"timestamp"in e&&"throttledTo"in e))return e;const s={},r=Date.now();for(const[e,i]of t){i&&"object"==typeof i&&null!==i&&"value"in i&&"timestamp"in i&&"throttledTo"in i?s[e]=i:("string"==typeof i||"number"==typeof i||"boolean"==typeof i||i instanceof Date)&&(s[e]={throttledTo:null,timestamp:r,value:i})}return s};function mo(e){var t,s,r,i;return{displayedSurveys:null!==(t=null==e?void 0:e.displayedSurveys)&&void 0!==t?t:[],engagedSurveys:null!==(s=null==e?void 0:e.engagedSurveys)&&void 0!==s?s:[],initialSurveysEngagement:null!==(r=null==e?void 0:e.initialSurveysEngagement)&&void 0!==r?r:[],tags:null!==(i=null==e?void 0:e.tags)&&void 0!==i?i:[]}}const ho=e=>{var t,s,r,i,n,a,c,l,v,_,u,d,m;const{storageService:h}=pa.getState();if(!h)return;let b=Object.assign(Object.assign({},{attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0}),{isKioskMode:e===uo.kiosk,uuid:o()});if(e===uo.normal&&h){const e=h.get(M.VisitorStore,{key:T.visitor,table:k.visitor});if(e&&e.uuid)b=Object.assign({},e);else{const e={key:T.visitor,table:k.all};if("undefined"!=typeof window&&!!(null===(t=window._svd)||void 0===t?void 0:t.survey)){const t=h.get(p.WidgetSurvey,e);t&&(b=Object.assign(Object.assign({},{attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0}),{attributes:po(null!==(s=t.attributes)&&void 0!==s?s:{}),identities:null!==(r=t.identities)&&void 0!==r?r:{},migrationTimestamp:Date.now(),uuid:t.uuid,validation:null!==(i=t.validation)&&void 0!==i?i:{previousValidatedUserId:null,timestamp:null},visitsCount:null!==(n=t.visitsCount)&&void 0!==n?n:0,[p.PageSurvey]:{displayedSurveys:null!==(a=t.displayedSurveys)&&void 0!==a?a:[],engagedSurveys:null!==(c=t.engagedSurveys)&&void 0!==c?c:[],initialSurveysEngagement:null!==(l=t.initialSurveysEngagement)&&void 0!==l?l:[],tags:null!==(v=t.tags)&&void 0!==v?v:[]}}))}else{const t=h.get(p.WidgetSurvey,e),s=h.get(p.FeedbackButton,e);(t||s)&&(b=function(e,t){const s={attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0};if(!e&&!t)return s;const r=e||t,i=Object.assign({},s.attributes);for(const s of[e,t])if(null==s?void 0:s.attributes)for(const[e,t]of Object.entries(s.attributes)){const s=t;(!i[e]||s.timestamp>i[e].timestamp)&&(i[e]=s)}const o=Object.assign(Object.assign(Object.assign({},s.identities),(null==t?void 0:t.identities)||{}),(null==e?void 0:e.identities)||{}),n=(null==e?void 0:e.visitsCount)||0,a=(null==t?void 0:t.visitsCount)||0,c=Math.max(n,a);let l=s.validation;(null==e?void 0:e.validation)&&(null==t?void 0:t.validation)?l=(e.validation.timestamp||0)>(t.validation.timestamp||0)?e.validation:t.validation:(null==e?void 0:e.validation)?l=e.validation:(null==t?void 0:t.validation)&&(l=t.validation);return{attributes:i,identities:o,migrationTimestamp:Date.now(),[p.FeedbackButton]:t?mo(t):void 0,uuid:r.uuid,validation:l,visitsCount:c,[p.WidgetSurvey]:mo(e)}}(t,s),b.attributes=po(b.attributes))}}if(null!=(null===(u=null===(_=b.identities)||void 0===_?void 0:_.api)||void 0===u?void 0:u.id)&&(wr(b.identities.api.id)?b=Object.assign(Object.assign({},{attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0}),{identities:{api:{id:null!==(d=xr(b.identities.api.id))&&void 0!==d?d:""}},isKioskMode:b.isKioskMode,uuid:o()}):b.identities=Object.assign(Object.assign({},b.identities),{api:Object.assign(Object.assign({},b.identities.api),{id:null!==(m=xr(b.identities.api.id))&&void 0!==m?m:""})})),ze()){const t=qe.getStorage(M.VisitorStore),s=t.get(A.visitorAttributes),r=t.get(A.visitorIdentities);!s&&!r&&(null==e?void 0:e.uuid)&&(b=Object.assign(Object.assign({},b),{uuid:o()})),s&&"object"==typeof s&&(b=Object.assign(Object.assign({},b),{attributes:po(s)})),r&&"object"==typeof r&&(b=Object.assign(Object.assign({},b),{identities:r}))}}kr(b),pa.action(Ki)()};class bo{constructor(){this.lastSent=0,this.throttleTimeout=null,this.resizeObserver=null,this.isInitialized=!1,this.intervalId=null,this.shouldInitialize()&&this.init()}shouldInitialize(){var e;return(()=>{try{return window.self!==window.top}catch(e){return!0}})()&&j.isAvailable()&&!j.inBrazePreview()&&!0===(null===(e=window._sva)||void 0===e?void 0:e.useBrazeIframeClipper)}init(){this.isInitialized||(this.isInitialized=!0,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>this.startReporting()):this.startReporting())}startReporting(){const e=this.findSurveyElement();e?(this.sendRect(),this.setupObservers(e)):setTimeout(()=>this.startReporting(),100)}findSurveyElement(){return document.querySelector(bo.SURVEY_SELECTOR)||document.querySelector(bo.MINIMIZED_SELECTOR)}getTargetOrigin(){try{if(window.parent&&window.parent!==window)try{return window.parent.location.origin}catch(e){if(document.referrer){return new URL(document.referrer).origin}}}catch(e){if(document.referrer)try{return new URL(document.referrer).origin}catch(e){console.warn("Survicate: Unable to determine target origin.")}}}setupObservers(e){try{this.resizeObserver=new ResizeObserver(()=>this.scheduleRectSend()),this.resizeObserver.observe(e)}catch(e){console.warn("Survicate: ResizeObserver not available, using fallback"),this.intervalId=window.setInterval(()=>this.scheduleRectSend(),200)}window.addEventListener("resize",()=>this.scheduleRectSend(),{passive:!0})}scheduleRectSend(){const e=Date.now(),t=bo.DEFAULT_THROTTLE_MS-(e-this.lastSent);this.throttleTimeout&&clearTimeout(this.throttleTimeout),t<=0?(this.lastSent=e,this.sendRect()):this.throttleTimeout=window.setTimeout(()=>{this.lastSent=Date.now(),this.sendRect()},t)}sendRect(){const e=this.findSurveyElement();if(!e)return;const t=e.getBoundingClientRect(),s={height:Math.max(0,Math.round(t.height+2*bo.DEFAULT_PADDING)),left:Math.max(0,Math.round(t.left-bo.DEFAULT_PADDING)),top:Math.max(0,Math.round(t.top-bo.DEFAULT_PADDING)),width:Math.max(0,Math.round(t.width+2*bo.DEFAULT_PADDING))};try{const e=this.getTargetOrigin();e&&window.parent.postMessage({payload:s,type:"sv__rect"},e)}catch(e){console.warn("Survicate: Failed to send rect message:",e)}}destroy(){this.throttleTimeout&&clearTimeout(this.throttleTimeout),this.resizeObserver&&this.resizeObserver.disconnect(),this.intervalId&&clearInterval(this.intervalId),this.isInitialized=!1}updateObservers(){this.destroy();const e=this.findSurveyElement();e&&this.setupObservers(e)}}bo.DEFAULT_PADDING=18,bo.DEFAULT_THROTTLE_MS=200,bo.SURVEY_SELECTOR=".sv__survey",bo.MINIMIZED_SELECTOR=".sv__minimized";const go=new bo;let fo=null;const yo=()=>fo;var wo=s(727);function xo(e,t){t&&Array.isArray(t)&&e.storeType&&We.getVisit(e.storeType).setResponseAttributes(t)}function So(){var e,t,s,r;const i=Me.getStore(p.PageSurvey),o=i.getState(),n=Be.params,a=n[Ue.p];if(!a)return;const c=null!==(t=null===(e=o.integrationTags)||void 0===e?void 0:e.salesforce)&&void 0!==t?t:[],l=null!==(s=Le.PROVIDERS_TRAITS_WHITELIST[a])&&void 0!==s?s:[],v=new Set([...c,...l]),_={};for(const e of Object.keys(n))e!==Ue.p&&v.has(e)&&(_[e]=n[e]);if(Object.keys(_).length){const e=(0,wo.S)(_),t=[];for(const s of Object.keys(e)){const i=K(s),o=K(`${null!==(r=e[s])&&void 0!==r?r:""}`);Fe(o,i,De.response)&&t.push({name:i,provider:a,value:o})}t.length&&i.action(xo)(t)}}const ko={clearResponseAttributes:function(e){e.storeType&&We.getVisit(e.storeType).clearResponseAttributes()},setResponseAttributes:xo,setResponseAttributesFromURL:So},To=e=>{e.action(co)(),e.action(Yi)(),e.action(So)()},Ao=(e,t,s)=>{var r;const i=Me.getStore(s),o=5e3,n=(null==t?void 0:t.answer_type)===$t.thankYouMessage;_e.fireEvent(ve.surveyCompleted,Object.assign({surveyId:e.id},n&&{answer:{answer_type:$t.thankYouMessage}})),Qo({eventType:Qt.finished,options:{surveyId:e.id},surveyType:s});const{backendData:a}=i.getState(),c=e.settings;return e.settings.format===S.Braze&&s?(j.cleanupBrazeSurvey(),null===(r=yo())||void 0===r||r.destroy(),void We.getVisit(s).resetVisit()):e.type!==p.WidgetSurvey&&e.type!==p.FeedbackButton||(null==e?void 0:e.settings.recurring)?(c.kiosk_enabled&&setTimeout(()=>{ho(uo.kiosk)},o),c.kiosk_refresh_enabled&&setTimeout(()=>{To(i),Qo({eventType:Qt.shouldUpdate,options:{surveyId:e.id},surveyType:s})},5010),void(c.retaking_respondent_enabled&&setTimeout(()=>{To(i),c.retaking_respondent_time||Qo({eventType:Qt.shouldUpdate,options:{surveyId:e.id},surveyType:s})},5010))):(Rs.startTargeting(s,a.surveys),void i.action(Kn)())},Oo=e=>{"undefined"!=typeof window&&(window.removeEventListener("pagehide",e),window.removeEventListener("beforeunload",e))},Eo=(e,t)=>{if(!t)return void e();let s=!1,r=null;const i=()=>{s||(s=!0,null!==r&&(clearTimeout(r),r=null),e(),Oo(i))};"undefined"!=typeof window&&(window.addEventListener("pagehide",i),window.addEventListener("beforeunload",i)),r=setTimeout(()=>{i()},t)},Po=({surveyState:e,isPreview:t,storeType:s})=>{const r=Me.getStore(s);if(!e.survey)return;const i=e.pointsDisplayed[e.pointsDisplayed.length-1].point,o=i.id===e.triggeredPointPreview,n=i.answer_type===$t.thankYouMessage,a=i.answer_type===$t.redirect;if(o&&(n||a))return;const c=e.survey.type===p.PageSurvey,l=e.survey.type===p.MobileSurvey,v=e.survey.settings.hide_footer,_=e.survey.type===p.WidgetSurvey||e.survey.type===p.FeedbackButton,u=c||l||n||v?3e3:500,d=_&&!lo(e.pointsDisplayed);if(t){if((c||d)&&r.setState({surveyState:Object.assign(Object.assign({},e),{isFinished:!0,survey:e.survey,theme:e.theme})}),l)return r.setState({surveyState:Object.assign(Object.assign({},e),{survey:null})}),void setTimeout(()=>{r.action($n)(e.survey)},u);if(!v&&d)return;const t=r.getState().surveyState.survey;return void setTimeout(()=>{r.action($n)(t)},u)}let m=0;if(_&&!lo(e.pointsDisplayed))return r.setState({surveyState:Object.assign(Object.assign({},r.getState().surveyState),{isFinished:!0})}),v&&(m=5e3,Eo(()=>{e.survey&&e.survey.settings.recurring&&Qo({eventType:Qt.shouldUpdate,options:{surveyId:e.survey.id},surveyType:s}),r.setState({surveyState:Object.assign(Object.assign({},r.getState().surveyState),{survey:null,theme:null})})},m)),void Eo(()=>{e.survey&&Ao(e.survey,i,s)},m);if(!c&&(n||a)){const{settings:e}=i;m=1e3*parseInt(e.timeout_display_count,10),Number.isNaN(m)&&(m=5e3)}e.survey&&Qo({eventType:Qt.finished,options:{surveyId:e.survey.id},surveyType:s}),setTimeout(()=>{var t,o,n;1!==(null===(t=r.getState().surveyState.pointsDisplayed)||void 0===t?void 0:t.length)||i.answer_type===$t.button||1!==(null===(n=null===(o=null==e?void 0:e.survey)||void 0===o?void 0:o.points)||void 0===n?void 0:n.length)||!e.isAnsweredByEmail||e.survey.settings.retaking_respondent_enabled?(r.setState({surveyState:Object.assign(Object.assign({},e),{isFinished:!0,survey:_?null:e.survey,theme:_?null:e.theme})}),e.survey&&(Ao(e.survey,i,s),e.survey.settings.recurring&&Qo({eventType:Qt.shouldUpdate,options:{surveyId:e.survey.id},surveyType:s}))):r.setState({surveyState:Object.assign(Object.assign({},e),{isFinished:!0})})},m)},Co=({isPreview:e,surveyState:t,storeType:s},r)=>{var i,o;if(!t.survey||!s||!r)return;if(e){const e=r.trim();return void Me.getStore(s).setState({surveyState:Object.assign(Object.assign({},t),{isRTLLanguage:Ft(e),translationLanguage:e})})}const n=Nt(r,Ct().languageCodes);if(!n)return void console.warn(`setForcedLanguage: Language "${r}" is not a valid IETF language tag`);const a=(null===(i=t.survey.settings)||void 0===i?void 0:i.languages)||[],c=null===(o=t.survey.settings)||void 0===o?void 0:o.survey_language,l=kt(n,a,c);if(!l)return void console.warn(`setForcedLanguage: Language "${n}" is not available in translations for survey "${t.survey.id}"`);We.getVisit(s).setForcedLanguage(l);const v=Rt({forcedLanguage:l,survey:t.survey});Me.getStore(s).setState({surveyState:Object.assign(Object.assign({},t),{isRTLLanguage:Ft(v),translationLanguage:v})})},Mo=({surveyState:e,storeType:t},s)=>{Me.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{responseUuid:s})})},Io=({surveyState:e,storeType:t},s,r)=>{var i;const o=Me.getStore(t),{survey:n}=e;if(!n)return;const a=null===(i=e.pointsForward)||void 0===i?void 0:i.find(e=>e.point.id===s.id),c=[...e.pointsDisplayed,Object.assign({point:s},a&&{value:a.value})];let l=[...e.pointsForward];l=l.length&&l[0].point.id===s.id?l.slice(1):[];const v=c[c.length-2].point,_=c.map((e,t)=>t===c.length-2?Object.assign(Object.assign({},e),{value:r}):e);o.setState({surveyState:Object.assign(Object.assign({},e),{pointsAnswered:Object.assign(Object.assign({},e.pointsAnswered),{[v.id]:!0}),pointsDisplayed:_,pointsForward:l})}),o.action(no)({question:s.content,surveyName:n.name})};const No=new class{constructor(){this.darkModeQuery=null,"undefined"!=typeof window&&window.matchMedia&&(this.darkModeQuery=window.matchMedia("(prefers-color-scheme: dark)"))}isDarkTheme(){return!!this.darkModeQuery&&this.darkModeQuery.matches}onThemeChange(e){if(!this.darkModeQuery)return()=>{};const t=t=>{e(t.matches)};return this.darkModeQuery.addEventListener?(this.darkModeQuery.addEventListener("change",t),()=>{var e;null===(e=this.darkModeQuery)||void 0===e||e.removeEventListener("change",t)}):()=>{}}},jo=(e,t)=>{var s,r;const i=Array.isArray(e.update.themes)&&e.update.themes.length?e.update.themes:e.backendData.themes,o=e.storeType;if(!o)return;const n=e.surveyState.themeMode,a=(br(o)||o===p.MobileSurvey)&&(n===Oe.Dark||n===Oe.Auto&&No.isDarkTheme()),c=t,l=i.find(e=>e.id===c.theme_id);if(!l||!l.settings)return;const v=a&&l.has_dark_mode&&l.color_scheme_dark&&l.color_scheme_dark?Object.assign(Object.assign({},l),{color_scheme:l.color_scheme_dark,custom_css:null!==(s=l.custom_css_dark)&&void 0!==s?s:"",custom_css_enabled:null!==(r=l.custom_css_enabled_dark)&&void 0!==r&&r,settings:(()=>{var e,t,s;return l.settings_dark?Object.assign(Object.assign({},l.settings),l.settings_dark):Object.assign(Object.assign({},l.settings),{avatar_image:null!==(e=l.settings.avatar_image_dark)&&void 0!==e?e:l.settings.avatar_image,company_logo:null!==(t=l.settings.company_logo_dark)&&void 0!==t?t:l.settings.company_logo,personalization:null!==(s=l.settings.personalization_dark)&&void 0!==s?s:l.settings.personalization})})()}):l,_=fr.extendTheme(v);Me.getStore(o).setState({surveyState:Object.assign(Object.assign({},e.surveyState),{theme:_})}),fr.reloadCss(_,o)};function Ro({surveyState:e,storeType:t},s){var r,i;Me.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{screenshotState:{isEnabled:null!==(i=null===(r=e.screenshotState)||void 0===r?void 0:r.isEnabled)&&void 0!==i&&i,screenshot:s}})})}function Do({surveyState:e,storeType:t}){Me.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{screenshotState:{isEnabled:!1,screenshot:null}})})}function Lo({surveyState:e,storeType:t},s){var r,i;Me.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{screenshotState:{isEnabled:s,screenshot:null!==(i=null===(r=e.screenshotState)||void 0===r?void 0:r.screenshot)&&void 0!==i?i:null}})})}function Fo(e,t){Me.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{survey:null,theme:null})})}function zo(e,t){setTimeout(()=>{Me.getStore(t).action($n)(e.survey)},3e3)}function qo(e){var t;const s=e.storeType,r=Me.getStore(s),{surveyState:i,isPreview:n}=e;if(i.survey&&i.survey.settings.format===S.Braze&&s)return j.cleanupBrazeSurvey(),null===(t=yo())||void 0===t||t.destroy(),void We.getVisit(s).resetVisit();if(!i.survey)return;Qo({eventType:Qt.closed,options:{surveyId:i.survey.id},surveyType:s}),Fo(i,e.storeType);const a=i.survey.global_close_tags;a&&a.split(";").forEach(e=>{r.action(Zi)(e)});const c=i.pointsDisplayed.length+i.pointsForward.length===1,l=c?o():i.responseUuid;c&&(r.action(Mo)(l),r.action(co)());const v=Me.getStore(s).getState().backendData;Rs.startTargeting(s,v.surveys),r.action(ro)({response_uuid:l,surveyId:i.survey.id,surveyName:i.survey.name,survey_point_id:i.pointsDisplayed[0].point.id,user_tag:i.survey.global_close_tags,visitor:xe(pa.getState().visitor,s)}),n&&zo(i,s),i.survey.type!==p.WidgetSurvey&&i.survey.type!==p.FeedbackButton||!i.survey.settings.recurring||Qo({eventType:Qt.shouldUpdate,options:{surveyId:i.survey.id},surveyType:s})}function Uo(e,t){Me.getStore(t).setState({surveyState:Object.assign({},Ee)})}function $o(e,t){Me.getStore(e.storeType).setState({surveyState:Object.assign(Object.assign({},e.surveyState),{isTabActive:t})})}function Bo(e,t){const s=Me.getStore(e.storeType);s.setState({surveyState:Object.assign(Object.assign({},e.surveyState),{themeMode:t})});const r=s.getState();r.surveyState.survey&&jo(r,r.surveyState.survey)}const Vo={clearPointsAnswered:co,clearSurveyState:Uo,close:qo,finish:Po,hideOverlay:function({surveyState:e,storeType:t}){Me.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{isOverlayActive:!1})})},navigateBackward:function({surveyState:e,storeType:t}){const s=Me.getStore(t),{pointsDisplayed:r,pointsForward:i}=e,o=null==r?void 0:r.length;if(!o||o<=1)return;const n=r[o-1];n&&s.setState({surveyState:Object.assign(Object.assign({},e),{pointsDisplayed:r.slice(0,-1),pointsForward:[n,...i||[]]})})},navigateForward:function({surveyState:e,storeType:t}){const s=Me.getStore(t),{pointsDisplayed:r,pointsForward:i}=e;if(!(null==i?void 0:i.length))return;const o=i[0];o&&s.setState({surveyState:Object.assign(Object.assign({},e),{pointsDisplayed:[...r||[],o],pointsForward:i.slice(1)})})},pointAnswer:qn,resetScreenshot:Do,setForcedLanguage:Co,setIsTabActive:$o,setResponseUuid:Mo,setScreenshot:Ro,setSurvey:$n,setSurveyPoint:Io,setTheme:jo,setThemeMode:Bo,toggleMinimize:function({surveyState:e,storeType:t},s){var r;const i=Me.getStore(t);if((null===(r=null==e?void 0:e.survey)||void 0===r?void 0:r.settings).format===S.Braze&&setTimeout(()=>{var e;null===(e=go.scheduleRectSend)||void 0===e||e.call(go),go.updateObservers()},200),i.setState({surveyState:Object.assign(Object.assign({},e),{isMinimized:s})}),e.survey){if(s)return i.action(io)({surveyName:e.survey.name}),void Qo({eventType:Qt.minimized,options:{surveyId:e.survey.id},surveyType:t});i.action(oo)({surveyName:e.survey.name}),Qo({eventType:Qt.maximized,options:{surveyId:e.survey.id},surveyType:t})}},toggleScreenshot:Lo};var Ho=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Wo=(0,ss.createContext)({}),Ko=({children:e,surveyType:t,initialSVDConfig:s,workspaceKey:r})=>{var i;const o=s||window._svd||{},n=window._svc||{},a=t===p.MobileSurvey,c=t===p.PageSurvey,l=t===p.WidgetSurvey,v=t===p.FeedbackButton,_=!!s,u=t===p.PageSurvey?`surveys/${null===(i=o.survey)||void 0===i?void 0:i.id}`:"web_surveys",d={initialSVDConfig:s,isFeedback:v,isMobileSurvey:a,isPage:c,isPreview:_,isWidget:l,pageSurvey:c?o.survey:null,surveyType:t,surveyUpdated:!1,themes:o.themes,update:{},widgetSurveys:o.survey&&(l||v)?[o.survey]:o.surveys,workspaceKey:r},[m,h]=ds(d),b=()=>{navigator.onLine&&(window.removeEventListener("online",b),f())},g=()=>Ho(void 0,void 0,void 0,function*(){if(navigator.onLine)return Ho(void 0,void 0,void 0,function*(){try{const e=yield V("https://survey.survicate.com").get(`/workspaces/${n.workspaceKey}/${u}.json`);return 404===(null==e?void 0:e.status)?null:null==e?void 0:e.data}catch(e){return console.error("Error retrieving survey data:",e),null}});window.addEventListener("online",b)}),f=fs(()=>Ho(void 0,void 0,void 0,function*(){var e,s;try{const r=(yield g())||{};if("object"==typeof r&&!(null===(e=Object.keys(r))||void 0===e?void 0:e.length))return void Me.getStore(t).action(Uo)(t);const i=(null===(s=r.surveys)||void 0===s?void 0:s.length)?Ps(r.surveys,t):[];h(e=>Object.assign(Object.assign({},e),{surveyUpdated:!0,update:Object.assign(Object.assign({},r),{surveys:i})})),setTimeout(()=>h(e=>Object.assign(Object.assign({},e),{surveyUpdated:!1})),100)}catch(e){console.error("Error updating survey:",e)}}),[t]);ms(()=>{if(_)return;const e=setInterval(f,18e5);return()=>{clearInterval(e),window.removeEventListener("online",b)}},[]),ms(()=>{s&&h(e=>Object.assign(Object.assign({},e),{initialSVDConfig:s,isPreview:!0,surveyType:t,widgetSurveys:[s.survey]}))},[t]),ms(()=>{r&&h(e=>Object.assign(Object.assign({},e),{workspaceKey:r}))},[r]);const y=gs(()=>Object.assign(Object.assign({},m),{triggerConfigUpdate:f}),[m,f]);return(0,ss.h)(Wo.Provider,{value:y},e)};var Go,Yo=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Zo{}Go=Zo,Zo.send=(e,t)=>Yo(void 0,void 0,void 0,function*(){var s,r,i;if(!e||!(null===(s=null==t?void 0:t.survey)||void 0===s?void 0:s.type))return;const{visitor:o,backendService:n}=pa.getState();if(!0!==(null===(i=null===(r=window._svd)||void 0===r?void 0:r.flags)||void 0===i?void 0:i.backend_targeting_enabled)||!mi(o))return;const a=Object.assign({surveys:[{id:t.survey.id,timestamp:t.survey.timestamp||0,type:t.survey.type}]},pi(o));null==n||n.addRequest(pe.interactions,a,"",null)}),Zo.mapInteraction=e=>{switch(e){case Qt.finished:return me.completed;case Qt.closed:return me.closed;case Qt.opened:return me.seen;case Qt.answered:return me.answered;default:return null}},Zo.processEvent=e=>{var t,s;if(!e||e.eventType===Qt.shouldUpdate)return;const{surveyId:r,eventType:i,storeType:o}=e;if(!o||!r)return;const{visitor:a}=pa.getState(),{surveyState:{survey:c}}=Me.getStore(o).getState();c&&(null==c?void 0:c.backendTargeted)&&!0===(null===(s=null===(t=window._svd)||void 0===t?void 0:t.flags)||void 0===s?void 0:s.backend_targeting_enabled)&&mi(a)&&Go.send(o,{survey:{id:r,timestamp:n(),type:Go.mapInteraction(i)},surveyType:o})};const Qo=({eventType:e,options:t,surveyType:s})=>{const r=Object.assign(Object.assign({eventType:e},t),{storeType:s}),i=new CustomEvent("onSurveyEvent",{detail:r});document.dispatchEvent(i)},Xo=(0,ss.createContext)({}),Jo=({children:e})=>{const{surveyType:t}=ys(Wo),[s,r]=ds();ms(()=>{const e=e=>{const{detail:s}=e;s.storeType===t&&(Zo.processEvent(s),r(s))};return document.addEventListener("onSurveyEvent",e),()=>{document.removeEventListener("onSurveyEvent",e)}},[t]);const i=gs(()=>({surveyEvent:s}),[s]);return(0,ss.h)(Xo.Provider,{value:i},e)},en=(e,t,s)=>{const r=s.includes(e);switch(t){case dt.is:case dt.is_ranked_as:return r;case dt.is_not:case dt.is_not_ranked_as:default:return!r}},tn=(e,t)=>{const{answer_id:s,value:r,answer_id_operator:i,condition:o}=e;let n=!1;const a=t.filter(e=>null==s?void 0:s.includes(e.answerId));if(!a.length)return!1;if(a.some(e=>0===e.value))return!1;const c=(e=>e.map(e=>`${e.answerId}-${e.value}`))(a),l=((e,t)=>Array.isArray(e)&&Array.isArray(t)&&(null==e?void 0:e.length)&&t.length?e.map(e=>t.map(t=>`${e}-${t}`)).flat():[])(s,r);switch(i){case ut.and:n=c.every(e=>en(e,o,l));break;case ut.or:n=c.some(e=>en(e,o,l))}return n},sn=e=>e?{ascending:(t,s)=>t[e]-s[e],descending:(t,s)=>s[e]-t[e]}:{ascending:(e,t)=>e-t,descending:(e,t)=>t-e},rn=(e,t)=>[...e].sort(sn().ascending).join("")===[...t].sort(sn().ascending).join(""),on=(e,t)=>t.find(t=>{const{condition:s,value:r}=t,i=r,o=t.operator||t.value_operator;return t.condition===dt.answer_contains&&pt(e,{condition:s,operator:o,value:i})})||null,nn=(e,t)=>{if(!(null==e?void 0:e.length))return null;return t.find(t=>{const{condition:s,value:r}=t,i=r,o=t.operator||t.value_operator;return t.condition===dt.answer_doesnt_contain&&!pt(e,{condition:s,operator:o,value:i})})||null},an=(e,t)=>(null==e?void 0:e.length)&&t.find(({condition:t,value:s})=>t===dt.doesnt_include_any_of_the_following&&s.every(t=>!e.includes(t)))||null,cn=e=>e.find(({condition:e})=>e===dt.has_any_value)||null,ln=(e,t)=>t.find(({condition:t,value:s})=>t===dt.includes_all_of_the_following&&s.every(t=>e.includes(t)))||null,vn=(e,t)=>t.find(({condition:t,value:s})=>t===dt.includes_any_of_the_following&&s.some(t=>e.includes(t)))||null,_n=(e,t)=>t.find(({condition:t,value:s})=>t===dt.is&&s.includes(e))||null,un=(e,t)=>t.find(({condition:t,value:s})=>t===dt.is_between&&nt(s,e))||null,dn=(e,t)=>t.find(({condition:t,value:s})=>t===dt.is_exactly&&rn(e,s))||null,pn=(e,{field_id:t,field_id_operator:s})=>{if(!(null==t?void 0:t.length))return!1;if(-1===t[0])return!!e.length;switch(s){case ut.and:return t.every(t=>e.includes(t));case ut.or:return t.some(t=>e.includes(t))}},mn=(e,t)=>e&&t.find(({condition:t,value:s})=>t===dt.is_not&&!s.includes(e))||null,hn=(e,{field_id:t,field_id_operator:s})=>{if(!(null==t?void 0:t.length))return!1;if(-1===t[0])return!!e.length;switch(s){case ut.and:return t.every(t=>!e.includes(t));case ut.or:return t.some(t=>!e.includes(t))}},bn=(e,t)=>t.find(({condition:t})=>t===dt.question_is_answered&&e)||null,gn=(e,t)=>t.find(({condition:t})=>t===dt.question_is_not_answered&&!e)||null,fn=(e,t,s=!1)=>(s?e.groups:e.group).map(r=>{const i=((e,t)=>{let s=!1;switch(t.condition){case dt.is_between:case dt.is_ranked_between:{const{answer_id:r,answer_id_operator:i,value:o}=t,n=r,a=e.filter(e=>null==n?void 0:n.includes(e.answerId)),c=a.map(({value:e})=>nt(o,e));s=!!a.length&&(i===ut.and?!c.includes(!1):c.includes(!0));break}case dt.is:case dt.is_ranked_as:case dt.is_not:case dt.is_not_ranked_as:s=tn(t,e);break;case dt.is_filled_in:{const{field_id:r,field_id_operator:i}=t;s=pn(e,{field_id:r,field_id_operator:i});break}case dt.is_not_filled_in:{const{field_id:r,field_id_operator:i}=t;s=hn(e,{field_id:r,field_id_operator:i});break}case dt.has_any_value:s=!0}return s})(t,r);return s?i:i?e.go_to:null}),yn=e=>{var t;return null!==(t=null==e?void 0:e.go_to)&&void 0!==t?t:null},wn=({condition:e,logic:t,answers:s,processor:r})=>{let i;const o=s,n=s;switch(e){case dt.is:i=_n(o[0],t);break;case dt.is_not:i=mn(o[0],t);break;case dt.is_between:i=un(o[0],t);break;case dt.is_exactly:i=dn(o,t);break;case dt.includes_any_of_the_following:i=vn(o,t);break;case dt.includes_all_of_the_following:i=ln(o,t);break;case dt.doesnt_include_any_of_the_following:i=an(o,t);break;case dt.question_is_answered:i=bn(n[0],t);break;case dt.question_is_not_answered:i=gn(n[0],t);break;case dt.answer_contains:i=on(n[0],t);break;case dt.answer_doesnt_contain:i=nn(n[0],t);break;case dt.has_any_value:i=cn(t)}return r(i)},xn=(e,t)=>{const s=null==t?void 0:t.map(s=>{var r;return(null===(r=s.group)||void 0===r?void 0:r.length)?((e,t)=>{const{group_operator:s}=e,r=fn(e,t);return s===ut.or?r.find(e=>e)||null:s===ut.and&&r.includes(null)?null:r[0]})(s,e):(null==s?void 0:s.condition)?wn({answers:e,condition:s.condition,logic:t,processor:e=>yn(e)}):null});return(null==s?void 0:s.filter(Number)[0])||null};var Sn,kn;!function(e){e.firstName="first_name",e.lastName="last_name",e.email="email",e.organization="organization",e.job="job_title",e.phone="phone",e.website="website",e.comment="comment",e.addressOne="address_one",e.addressTwo="address_two",e.city="city",e.state="state",e.zip="zip",e.fax="fax",e.annual_revenue="annual_revenue",e.employees="employees",e.industry="industry",e.confirmation="confirmation",e.security_info="security_info"}(Sn||(Sn={})),function(e){e.form="form"}(kn||(kn={}));const Tn=(e,t)=>t.map(({content:t,survey_question_answer_id:s=0,field_id:r})=>{switch(e){case X.text:case X.date:return t||"";case kn.form:return t&&r?r:"";case X.ranking:return{answerId:s,value:Number(t)+1};case X.matrix:return{answerId:s,value:Number(t)};case G.nps:return Number(t);default:return s}}),An=-1,On=(e,t)=>t.reduce((s,r,i)=>r.id===e.id?t[i+1]:s,null),En=[$t.social,$t.redirect,$t.buttonLink,$t.thankYouMessage],Pn=[X.smileyScale,X.numericalScale,X.rating],Cn=(e,t)=>{const s=Me.getStore(e).getState().surveyState.pointsDisplayed;if(!(null==s?void 0:s.length))return[];const r=[...s],i=r.length-1;return r[i]=Object.assign(Object.assign({},r[i]),{value:t}),r},Mn=e=>{var t,s,r,i,o;if(!(null==e?void 0:e.value))return[];const n=null===(t=e.value)||void 0===t?void 0:t.answer;switch(e.point.answer_type){case"matrix":{const t=null===(s=e.value)||void 0===s?void 0:s.answers;return!t||t.some(e=>0===e)?[]:t.map((t,s)=>({answerId:e.point.answers[s].id,value:t}))}case"ranking":return null===(r=e.value)||void 0===r?void 0:r.answers.map((t,s)=>({answerId:e.point.answers[t-1].id,value:s+1}));case"form":return n?n.map((t,s)=>{if(null==t?void 0:t.length)return e.point.fields[s].id}).filter(Boolean):[];case"multiple":return null===(i=e.value)||void 0===i?void 0:i.answers.map(e=>e.id);case"nps":case"text":return[null===(o=e.value)||void 0===o?void 0:o.answer];case"single":case"smiley_scale":case"numerical_scale":case"csat":case"rating":case"dropdown_list":return[e.value.answer.id];default:return[e.value]}},In=e=>{const{answers:t,answer_type:s}=e;return t.reduce((e,t)=>{const{id:r,possible_answer:i}=t,o=e;if(s===X.smileyScale){const e=[J.verySad,J.sad,J.neutral,J.happy,J.veryHappy];o[r]=e.findIndex(e=>e===i)}else o[r]=Number(i);return o},{})},Nn=[kn.form,X.matrix,X.ranking],jn=(e,t)=>e.map(e=>{var s;const r=t.find(t=>t.point.id===e.point_id);if(!r||!(null===(s=e.groups)||void 0===s?void 0:s.length))return!1;const i=Mn(r);if(Nn.includes(e.answer_type))return((e,t,s)=>{const{group_operator:r}=e,i=fn(e,t,s);return r===ut.and?i.every(e=>e):i.some(e=>e)})(e,i,!0);if(Pn.includes(e.answer_type)){const t=In(r.point),s=i[0],o=t[s];if(void 0===o)return!1;const n=e.groups.map(e=>{const s=e.value.map(e=>t[e]);return"is_between"===e.condition&&2===s.length?Object.assign(Object.assign({},e),{value:[Math.min(s[0],s[1]),Math.max(s[0],s[1])]}):Object.assign(Object.assign({},e),{value:s})});return wn({answers:[o],condition:e.groups[0].condition,logic:n,processor:e=>!!e})}return wn({answers:i,condition:e.groups[0].condition,logic:e.groups,processor:e=>!!e})}),Rn=(e,t)=>{const{display_logic:s,display_logic_operator:r}=e.settings;if(!(null==s?void 0:s.length))return!0;const i=jn(s,t);return"and"===r?i.every(e=>e):i.some(e=>e)},Dn=({point:e,points:t,pointsDisplayed:s})=>{let r=e;for(;r;){if(Rn(r,s))return r;const e=On(r,t);if(!e)break;r=e}return null},Ln=(e,t)=>{const s=In(e);if(!t.length)return[];const r=t[0].survey_question_answer_id;return"number"==typeof r?[s[r]]:[]},Fn=e=>{const t=In(e);return e.settings.logic.map(e=>Object.assign(Object.assign({},e),{value:e.value.map(e=>t[e])}))};const zn=()=>{Be.params.aid=""};function qn({surveyState:e,storeType:t},s){var r,i;if(!e.survey)return;const{answers:n,textResponse:a,anonymizedTextResponse:c}=s,{point:l}=e.pointsDisplayed[e.pointsDisplayed.length-1],v=Me.getStore(t),_=e.pointsDisplayed.length+e.pointsForward.length===1,u=_?o():e.responseUuid;_&&(v.action(Mo)(u),v.action(co)());const d=function({survey:{points:e},currentPoint:t,answers:s,value:r,surveyType:i}){var o;if(En.includes(t.answer_type)||!i)return null;let n=t.settings.logic,a=null;if(null==n?void 0:n.length){let r=Tn(t.answer_type,s);if(Pn.includes(t.answer_type)){const e=t;r=Ln(e,s),n=Fn(e)}const i=xn(r,n);if(i===An)return null;a=e.find(e=>e.id===i)}const c=null!=a?a:On(t,e);return c&&(null===(o=c.settings.display_logic)||void 0===o?void 0:o.length)?Dn({point:c,points:e,pointsDisplayed:Cn(i,r)}):c}({answers:s.answers,currentPoint:l,survey:e.survey,surveyType:t,value:s.value}),p=null===(r=s.value)||void 0===r?void 0:r.follow_ups,m=null==p?void 0:p.map(e=>({answer:e.answer,question:e.question})),h=Object.assign({anonymizedTextResponse:c,answerType:l.answer_type,answers:n,completionRate:d?Zt(e):100,core_version:"28.24.0",description:l.description||void 0,disclaimer_accepted:null===(i=s.value)||void 0===i?void 0:i.disclaimer_accepted,enforced:v.getState().surveyState.forceDisplay||!1,overwrite:v.getState().surveyState.pointsAnswered[l.id]||void 0,pointType:l.type,question:l.content,response_uuid:u,survey:e.survey,surveyName:e.survey.name,surveyPointId:l.id,textResponse:a,version:"4.1",visitor_uuid:pa.getState().visitor.uuid},m&&(null==m?void 0:m.length)>0&&{follow_ups:m});v.action(to)(h),Qo({eventType:Qt.answered,options:{pointId:l.id,surveyId:e.survey.id},surveyType:t}),function(e,t,s){const r=s.global_tags,i=Me.getStore(e);t.forEach(e=>{e.user_tag&&e.user_tag.split(";").forEach(e=>{i.action(Zi)(e)})}),r&&r.split(";").forEach(e=>{i.action(Zi)(e)})}(t,n,e.survey),1===e.pointsDisplayed.length&&zn(),d?v.action(Io)(d,s.value):v.action(Po)()}const Un=({surveyState:e},t)=>{var s,r;const i=Me.getStore(p.PageSurvey);if(!e.survey)return;if(!(!!(null===(s=e.survey.points)||void 0===s?void 0:s.length)&&Be.params.aid&&!e.isAlreadyAnswered&&!e.isAnsweredByEmail||t))return;const o=((e,t)=>{const s=parseInt(e,10);let r;switch(t.answer_type){case X.smileyScale:return r=t.answers.find(e=>e.id===s),r?Bt({answer:r,point:t}):null;case X.single:return r=t.answers.find(e=>e.id===s),r?Ht({answer:r,point:t}):null;case G.nps:return 0<=s&&s<=10?Kt({point:t,value:{answer:s}}):null;case $t.button:return Wt({point:t});case X.rating:case X.numericalScale:case X.customerSatisfaction:return r=t.answers.find(({id:e})=>e===s),r?Bt({answer:r,point:t}):null}return null})(t||Be.params.aid,e.survey.points[0]);if(!o)return;i.setState({surveyState:Object.assign(Object.assign({},i.getState().surveyState),{isAnsweredByEmail:!0})});const n=o.value,{embedded_question_confirmation:a}=e.survey.settings;(null===(r=null==n?void 0:n.answer)||void 0===r?void 0:r.add_comment)||a||i.action(qn)(o)},$n=(e,t)=>{var s;const r=Object.assign({},t),i=e.storeType;if((!(null===(s=r.points)||void 0===s?void 0:s.length)||!i)&&(r.activated=!1,br(i)))return;const o=Me.getStore(i),n=r.points&&r.points.length?[{point:r.points[0]}]:[],a=!(e.isPreview&&window.self!==window.top)&&!e.rootElement&&!ga.ruleFulfilled({storeType:i,survey:r,visit:We.getVisit(i).get(),visitor:pa.getState().visitor}),c=Dt(r);o.setState({surveyState:Object.assign(Object.assign({},e.surveyState),{isAlreadyAnswered:a,isFinished:!1,isMinimized:qt.isWidthMobile()?!!r.settings.run_minimalized_mobile:!!r.settings.run_minimalized,isOverlayActive:!!r.settings.overlay,isRTLLanguage:Ft(c),pointsDisplayed:n,pointsForward:[],survey:r,translationLanguage:Rt({survey:r}),translations:e.backendData.translations})}),r&&r.activated&&r.points.length&&r.type===p.PageSurvey&&o.action(so)({surveyId:r.id,surveyName:r.name}),o.action(jo)(r),r.type===p.PageSurvey&&(o.action(Un)(),Ut(r))};const Bn=(e,t,s=[])=>{for(let r=0;r<s.length;r+=1)if(s[r].id===e.id&&r<t)return!1;return!0};var Vn=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};var Hn=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Wn{static findSurveyToDisplay(e){return Hn(this,void 0,void 0,function*(){var t,s,r,i;let o=e.audiences,n=[];const a=function(e,t){const s=new Map(t.map(e=>[e.id,e]));return e.map(e=>{var t;const r=s.get(null===(t=e.audiences_ids)||void 0===t?void 0:t[0]);return(null==r?void 0:r.visitor_type)===Hr.Identified?Object.assign(Object.assign({},e),{backendTargeted:!0}):e})}(function({surveys:e,surveysTriggeredByApi:t}){var s,r,i;if(null===(s=window._sva)||void 0===s?void 0:s.disableTargeting)return null!=t?t:[];if(j.isAvailable())return j.findTargetedSurvey(e);const o=t?[...t,...e]:e,n=(null===(i=null===(r=window._sva)||void 0===r?void 0:r.hiddenSurveys)||void 0===i?void 0:i.length)?o.filter(e=>{var t,s;return!(null===(s=null===(t=window._sva)||void 0===t?void 0:t.hiddenSurveys)||void 0===s?void 0:s.includes(e.id))}):o;return j.removeSurveys(n).filter(Bn)}(e),o),{visitor:c}=e;!0===(null===(s=null===(t=window._svd)||void 0===t?void 0:t.flags)||void 0===s?void 0:s.backend_targeting_enabled)&&e.storeType&&mi(c)&&(o=Ii.addFilter(e.audiences),n=yield function(e){return Vn(this,arguments,void 0,function*({audiences:e,surveys:t,visit:s,visitor:r}){if(!(null==t?void 0:t.length))return[];const i=e.filter(e=>e.visitor_type===Hr.Identified);return(yield Promise.all(t.map(e=>di.getFulfilledAudiences({audiences:i,survey:e,visit:s,visitor:r})))).flat()})}({audiences:o,surveys:a,visit:e.visit,visitor:c}));const l=(yield Promise.all(a.map(t=>Hn(this,void 0,void 0,function*(){return(yield Wn.canDisplaySurvey({audiences:o,satisfiedTriggers:e.satisfiedTriggers,storeType:e.storeType,survey:t,surveysTriggeredByApi:e.surveysTriggeredByApi,triggers:e.triggers,visit:e.visit,visitor:c}))?t:null})))).filter(e=>null!==e),v=l.filter(t=>!t.backendTargeted||this.isTriggeredByApi(e.surveysTriggeredByApi,t)),_=Me.getStore(e.storeType);if(v.length)return _.action($n)(v[0]),void(this.isTriggeredByApi(e.surveysTriggeredByApi,v[0])&&this.clearSurveysTriggeredByAPI(e.storeType));const u=null===(r=_.getState().surveyState.survey)||void 0===r?void 0:r.id,d=yield Ii.getBackendSurveysToDisplay({preCheckedBackendAudiences:n,surveyType:e.storeType,surveysToDisplay:l,updatedAudienceWithBackendTargeting:o,visit:e.visit,visitor:c});if(d.length){if((null===(i=_.getState().surveyState.survey)||void 0===i?void 0:i.id)!==u)return;_.action($n)(d[0]),this.isTriggeredByApi(e.surveysTriggeredByApi,d[0])&&this.clearSurveysTriggeredByAPI(e.storeType)}})}static isTriggeredByApi(e,t){return e.some(e=>e.id===t.id)}static canDisplaySurvey(e){return Hn(this,void 0,void 0,function*(){var t;const{audiences:s,satisfiedTriggers:r,storeType:i,survey:o,surveysTriggeredByApi:n,triggers:a,visit:c,visitor:l}=e;return!!(null===(t=o.points)||void 0===t?void 0:t.length)&&(this.isTriggeredByApi(n,o)?yield this.canDisplayTriggeredSurvey({satisfiedTriggers:r,storeType:i,survey:o,triggers:a,visit:c,visitor:l}):yield this.evaluateSurveyRules({audiences:s,satisfiedTriggers:r,storeType:i,survey:o,triggers:a,visit:c,visitor:l}))})}static canDisplayTriggeredSurvey(e){return Hn(this,void 0,void 0,function*(){var t,s,r,i;const{storeType:o,survey:n,visitor:a}=e,c=Me.getStore(o).getState().surveyState.forceDisplay;return n.backendTargeted?((null===(s=null===(t=window._svd)||void 0===t?void 0:t.flags)||void 0===s?void 0:s.enforce_user_authentication)&&!0===(null===(i=null===(r=window._svd)||void 0===r?void 0:r.flags)||void 0===i?void 0:i.backend_targeting_enabled)&&(yield wi.waitForVerificationToComplete()),!(!o||!mi(a))&&(!!c||Ii.verifyShowSurvey(o,n.id))):c||this.evaluateTriggeredSurveyRules(e)})}static clearSurveysTriggeredByAPI(e){if(!e)return;const t=Me.getStore(e);t.setState({surveyApiState:Object.assign(Object.assign({},t.getState().surveyApiState),{surveysTriggeredByApi:[]})})}static evaluateSurveyRules(e){return Hn(this,arguments,void 0,function*({audiences:e,satisfiedTriggers:t,survey:s,triggers:r,storeType:i,visit:o,visitor:n}){return!!yt.areFulfilled({satisfiedTriggers:t,survey:s,triggers:r})&&(!!Ye.areFulfilled({storeType:i,survey:s,visit:o,visitor:n})&&!!(yield di.areFulfilled({audiences:e,storeType:i,survey:s,visit:o,visitor:n})))})}static evaluateTriggeredSurveyRules(e){const{satisfiedTriggers:t,survey:s,triggers:r,visit:i,visitor:o,storeType:n}=e;return yt.areFulfilled({satisfiedTriggers:t,survey:s,triggers:r})&&ga.ruleFulfilled({storeType:n,survey:s,visit:i,visitor:o})&&Ge.ruleFulfilled({storeType:n,survey:s,visitor:o})}}const Kn=({surveyApiState:e,backendData:t,surveyState:{survey:s},satisfiedTriggers:r,update:i,storeType:o},n={})=>{s||Wn.findSurveyToDisplay({audiences:t.audiences,integrations:t.integrations,satisfiedTriggers:null!=r?r:{},storeType:o,surveys:Array.isArray(i.surveys)&&i.surveys.length>0?i.surveys:t.surveys,surveysTriggeredByApi:e.surveysTriggeredByApi,triggers:n,visit:We.getVisit(o).get(),visitor:pa.getState().visitor})};class Gn{static start(e){this.timers.has(e)||this.timers.set(e,setInterval(()=>{Me.getStore(e).action(Kn)()},this.TIMER_DELAY))}static clear(){this.timers.forEach(e=>clearInterval(e)),this.timers.clear()}}Gn.timers=new Map,Gn.TIMER_DELAY=6e4;var Yn=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Zn=L.getStore(P.UrlConfigStore),Qn=le.getStore(P.UrlConfigStore),Xn=()=>Yn(void 0,void 0,void 0,function*(){if($.getState().contactsUrl)return;const e=Zn.get(F);if(e)return void $.setState({contactsUrl:e});if(Qn.get(z))$.setState({contactsUrl:null});else try{const e=yield V("https://hv.survicate.com/contacts").get("/healthcheck"),t=null==e?void 0:e.status;null!=t&&t>=200&&t<300?(Zn.set(F,"https://hv.survicate.com/contacts"),$.setState({contactsUrl:"https://hv.survicate.com/contacts"})):(Qn.set(z,!0),$.setState({contactsUrl:null}))}catch(e){Qn.set(z,!0),$.setState({contactsUrl:null})}}),Jn=[429,502,503,504],ea=(e,t)=>{var s;if(t){if(t instanceof TypeError&&"Failed to fetch"===t.message)return!0;const e=(null===(s=null==t?void 0:t.message)||void 0===s?void 0:s.toLowerCase())||"";if("network error"===e||e.includes("failed to fetch"))return!0}if(e){const t=e.status;if(!t||0===t||Jn.includes(t))return!0}return!1};var ta=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const sa=e=>ta(void 0,void 0,void 0,function*(){var t;const{job:s,response:r,retryCounter:i,persistRetryState:o}=e,n=i.getRetryCount(s);if(s.type===pe.targeting&&n>=7)return i.resetRetryCount(),delete s.persistedRetryCount,s.surveyType&&Gn.start(s.surveyType),new ke({error:!0,response:null,status:null!==(t=null==r?void 0:r.status)&&void 0!==t?t:0});const a=i.incrementRetryCount(s);s.persistedRetryCount=a,null==o||o(s);const c=(e=>{const t=4e3+1e3*Math.pow(2,e-1);return Math.min(t,9e5)+(Math.floor(1e3*Math.random())+1)})(a);return yield be(c),new Se}),ra=(e,t)=>{const s=(()=>{let e=0,t=null;return{getRetryCount:s=>{var r;return s.key!==t&&(t=s.key,e=null!==(r=s.persistedRetryCount)&&void 0!==r?r:0),e},incrementRetryCount:s=>{var r;return s.key!==t&&(t=s.key,e=null!==(r=s.persistedRetryCount)&&void 0!==r?r:0),e+=1,e},resetRetryCount:()=>{e=0,t=null}}})();return r=>ta(void 0,void 0,void 0,function*(){var i;let o;switch(((i=r.type)===pe.userAttributes||i===pe.userVerification||i===pe.targeting||i===pe.userEvents||i===pe.interactions)&&(yield Xn().catch(()=>{})),r.type){case pe.answered:o=((e,t)=>{var s;const{disclaimer_accepted:r,enforced:i,integrations:o,overwrite:n,screenshot_uuid:a,survey_point_id:c,visit_points:l,visitor:v}=e,_={core_version:null!==(s=e.core_version)&&void 0!==s?s:"28.24.0",disclaimer_accepted:r,integrations:o||void 0,response_attributes:t.response_attributes,response_uuid:e.response_uuid,screenshot_uuid:a,survey_point_id:c,version:e.version,visit:ye(t),visit_points:(u=l,u.map(e=>{const t={completion_rate:e.completion_rate,finished:e.finished||void 0,user_tag:e.user_tag||void 0};return Object.keys(e).forEach(s=>{const r=e[s];null!=r&&(t[s]=r)}),t})),visitor:we(v)};var u;return n&&(_.overwrite=!0),i&&(_.enforced=!0),_})(r.payload,r.visit);break;case pe.seen:o=(e=>{const{visitor:t}=e;return{survey_first_seen:e.survey_first_seen||void 0,visitor:we(t)}})(r.payload);break;case pe.userAttributes:case pe.userVerification:case pe.userEvents:case pe.targeting:case pe.interactions:o=r.payload;break;default:return new ke}return n={host:e,job:r,payload:o,persistRetryState:t,retryCounter:s},ta(void 0,void 0,void 0,function*(){const{job:e,host:t,payload:s,retryCounter:r,persistRetryState:i}=n;let o,a=t;switch(e.type){case pe.userAttributes:case pe.userVerification:case pe.targeting:case pe.userEvents:case pe.interactions:{const t=`${he.WORKSPACES}/${e.wId}/${e.type}`;o=`${he.CONTACTS}${t}`;const s=$.getState().contactsUrl;s&&(o=t,a=s);break}default:o=`${he.WORKSPACES}/${e.wId}${he.SURVEYS}/${e.surveyId}/${e.type}`}try{const t=yield V(a).post(o,s),n=!1===t.ok||void 0===t.ok&&void 0!==t.status&&t.status>=400,c=e.type===pe.userVerification||e.type===pe.targeting;if(n){const s=t.status;return ea(t,null)?sa({job:e,persistRetryState:i,response:t,retryCounter:r}):c?new ke({error:!0,response:t,status:s}):new ke}return r.resetRetryCount(),delete e.persistedRetryCount,e.type===pe.targeting&&e.surveyType&&Gn.start(e.surveyType),c?new ke({response:t,status:t.status}):new ke}catch(t){const s=null==t?void 0:t.response,o=e.type===pe.userVerification||e.type===pe.targeting;return ea(s,t)?sa({job:e,persistRetryState:i,response:s,retryCounter:r}):s&&o?new ke({error:!0,response:s,status:s.status}):new ke}});var n})};class ia{constructor(e,t,s=k.requests){this.storage=e,this.storeType=t,this.storageTable=s}add(e,t){const s=Object.assign(Object.assign({},e),{key:t});return this.storage.put(this.storeType,{key:t,table:this.storageTable},s),t}updateRequest(e){null!=e&&"object"==typeof e&&"string"==typeof e.key&&this.storage.put(this.storeType,{key:e.key,table:this.storageTable},e)}getAll(){const e=this.storage.getAll(this.storeType,this.storageTable),t=Array.isArray(e)?e:[];if(!t.length)return[];const s=t.filter(e=>null!=e&&"object"==typeof e&&"string"==typeof e.key).sort((e,t)=>e.key<t.key?-1:e.key>t.key?1:0);return s}remove(e){this.storage.remove(this.storeType,{key:e,table:this.storageTable})}}var oa=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const{REQUEST_HANDLER_TIMEOUT:na,REQUEST_HANDLER_REFRESH_INTERVAL:aa,CONSUMPTION_INTERVAL:ca,MUTEX_LOCK_INTERVAL:la}={CONSUMPTION_INTERVAL:200,MUTEX_LOCK_INTERVAL:30,REQUEST_HANDLER_REFRESH_INTERVAL:1e3,REQUEST_HANDLER_TIMEOUT:6e3};var va;!function(e){e.Contacts="contacts",e.Respondent="respondent"}(va||(va={}));class _a{constructor(e,t,s,r=va.Respondent){this.handlerId=o(),this.isProcessing=!1,this.callbacks=new Map,this.storage=t,this.queueType=r,this.mutexKey=`requestHandler_${this.queueType}`;const i=k[this.queueType===va.Contacts?"requests_contacts":"requests"];this.requestsStorage=new ia(t,e,i),this.consumer=s,this.storeType=e,this.consumeRequests()}addRequest(e){const t=String(n())+o();this.requestsStorage.add(e,t)}persistRequestUpdate(e){this.requestsStorage.updateRequest(e)}addRequestWithCallback(e,t){if(this.queueType===va.Contacts&&e.type===pe.targeting&&null!=e.surveyType&&this.hasTargetingRequestForSurveyType(e.surveyType))return void t(null);const s=String(Date.now())+o();this.callbacks.set(s,t),this.requestsStorage.add(e,s)}hasTargetingRequestForSurveyType(e){return this.requestsStorage.getAll().some(t=>t.type===pe.targeting&&t.surveyType===e)}setThisRequestHandlerActive(){this.storage.put(this.storeType,{key:this.mutexKey,table:k.status},{handlerId:this.handlerId,maximumTime:na+n()})}isThisRequestHandlerActive(){const e=this.storage.get(this.storeType,{key:this.mutexKey,table:k.status});return!(!e||e.handlerId!==this.handlerId)}isActiveRequestHandlerInstance(){return oa(this,void 0,void 0,function*(){const e=this.storage.get(this.storeType,{key:this.mutexKey,table:k.status});return e?e&&e.maximumTime<n()?(this.setThisRequestHandlerActive(),yield be(la),this.isThisRequestHandlerActive()):!(!e||e.handlerId!==this.handlerId)&&(!(e.maximumTime-n()<aa)||(this.setThisRequestHandlerActive(),yield be(la),this.isThisRequestHandlerActive())):(this.setThisRequestHandlerActive(),yield be(la),this.isThisRequestHandlerActive())})}consumeRequests(){setInterval(()=>oa(this,void 0,void 0,function*(){if(!this.isProcessing&&(yield this.isActiveRequestHandlerInstance())){this.isProcessing=!0;try{const e=this.requestsStorage.getAll();if(null==e?void 0:e.length){const t=e[0];if(null==t||"object"!=typeof t||"string"!=typeof t.key)return void(this.isProcessing=!1);const s=this.callbacks.get(t.key),r=yield this.consumer(t);if(!r.isSuccess())return void(this.isProcessing=!1);this.requestsStorage.remove(t.key),s&&r.getResponseData&&(s(r.getResponseData()),this.callbacks.delete(t.key))}}catch(e){e instanceof Error&&de.error(this.storeType,{message:`RequestHandler: ${e.message}`,stack:e.stack||""})}this.isProcessing=!1}}),ca)}}const ua={answers:{},device_type:"",displayedSurveys:[],engaged:!1,forcedLanguage:null,initialUrl:"",language:"",operating_system:"",optimizelyState:{getVariationMap:()=>({})},referrerUrl:"",sampledSurveys:[],user_agent:"",views:[]};class da{constructor(e,t){var s;const r=$.getState().respondentUrl,i=$.getState().contactsUrl||r;this.respondentHandler=new _a(t,e,ra(r,e=>this.respondentHandler.persistRequestUpdate(e)),va.Respondent),this.contactsHandler=new _a(t,e,ra(i,e=>this.contactsHandler.persistRequestUpdate(e)),va.Contacts),this.workspaceKey=null===(s=window._svc)||void 0===s?void 0:s.workspaceKey}isContactsEndpoint(e){return[pe.userAttributes,pe.userVerification,pe.targeting,pe.userEvents,pe.interactions].includes(e)}static getVisit(e){if(!e)return ua;const t=We.getVisit(e).get();return{device_type:t.device_type,operating_system:t.operating_system,page_url:e===p.PageSurvey?Be.url:window.location.href,platform:window.navigator.platform,referer:t.referrerUrl,response_attributes:t.responseAttributes,translation:Me.getStore(e).getState().surveyState.translationLanguage,user_agent:window.navigator.userAgent}}addRequest(e,t,s,r){var i;if(null===(i=window._svc)||void 0===i?void 0:i.isPreview)return;const o=this.isContactsEndpoint(e)?this.contactsHandler:this.respondentHandler;o||!r?o.addRequest({payload:t,surveyId:s,surveyType:r,type:e,visit:da.getVisit(r),wId:this.workspaceKey}):de.error(r,{message:"No requestsHandler when adding a request.",stack:"Backend.tsx"})}addRequestWithCallback(e,t,s,r){var i;if(null===(i=window._svc)||void 0===i?void 0:i.isPreview)return;(this.isContactsEndpoint(e)?this.contactsHandler:this.respondentHandler).addRequestWithCallback({payload:t,surveyType:r,type:e,wId:this.workspaceKey},s)}}const pa=l({backendService:null,storageService:null,visitor:{attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0}});function ma(){var e;const t=new _o(null===(e=window._svc)||void 0===e?void 0:e.workspaceKey),s=new da(t,M.VisitorStore);pa.setState({backendService:s,storageService:t})}const ha=e=>{var t,s;if(!(null==e?void 0:e.settings)||"number"!=typeof e.settings.retaking_respondent_time)return!0;const r=null===(s=null===(t=pa.getState().visitor[p.PageSurvey])||void 0===t?void 0:t.engagedSurveys)||void 0===s?void 0:s.find(t=>t.surveyId===e.id);return!r||n()-r.timestamp>=1e3*e.settings.retaking_respondent_time};var ba;!function(e){e[e.none=0]="none",e[e.expired=1]="expired",e[e.notExpired=2]="notExpired",e[e.recurringStopped=3]="recurringStopped",e[e.maxViewsNotExceeded=4]="maxViewsNotExceeded"}(ba||(ba={}));class ga{static ruleFulfilled({storeType:e,survey:t,visit:s,visitor:r}){var i,o,n,a;if(!t||t.backendTargeted)return!0;const c=br(t.type);if(!c&&(null===(i=t.settings)||void 0===i?void 0:i.retaking_respondent_enabled))return ha(t);if(!e)return!1;const l=null!==(o=r[e])&&void 0!==o?o:{displayedSurveys:[],engagedSurveys:[],initialSurveysEngagement:[],tags:[]};if(c&&this.isSurveyInteractionActive(t,l.initialSurveysEngagement,{checkRecurringLifespan:!0}))return!1;if(this.isSurveyInteractionActive(t,l.engagedSurveys))return!1;if(t.settings.display_not_engaged&&s.engaged)return!1;if(c&&!this.findSurvey(l.engagedSurveys,t.id)&&"number"==typeof(null===(n=null==t?void 0:t.settings)||void 0===n?void 0:n.recurring_max_views)&&(null===(a=null==t?void 0:t.settings)||void 0===a?void 0:a.display_per)!==x.visitor)return this.findMaxViewsStatus(t,s.displayedSurveys,l.displayedSurveys)===ba.maxViewsNotExceeded;const v=this.findInteractionStatus(t,l.engagedSurveys)===ba.none,_=this.isNotExpiredPerVisit(t,s)||this.isNotExpiredPerVisitor(t,l);return(!v||!_)&&(!t.settings.display_not_engaged||!s.engaged)}static findInteractionStatus(e,t,s){var r;if(!Array.isArray(t)||!(null==t?void 0:t.length)||!e)return ba.none;const i=null==e?void 0:e.settings,o=t.find(t=>(t.surveyId||t)===e.id);if(!o)return ba.none;if(i.recurring&&!(null==s?void 0:s.skipRecurringCheck)){if(null==s?void 0:s.checkRecurringLifespan){const e=1e3*(null!==(r=i.recurring_stop_after)&&void 0!==r?r:0);if(e>0&&o.timestamp+e<=n())return ba.recurringStopped}const e=1e3*i.recurring_period;if(o.timestamp+e<=n())return ba.expired}return ba.notExpired}static findMaxViewsStatus(e,t=[],s=[]){var r,i,o;if(!e)return ba.maxViewsNotExceeded;const n=null==e?void 0:e.settings,a=null!==(r=null==n?void 0:n.recurring_max_views)&&void 0!==r?r:0;if(!a)return ba.maxViewsNotExceeded;const c=this.findSurvey(t,e.id),l=this.findSurvey(s,e.id),v=null!==(i=null==l?void 0:l.count)&&void 0!==i?i:0,_=null!==(o=null==c?void 0:c.count)&&void 0!==o?o:0,u=v+1>a;if(n.display_per===x.visit)return v&&(1===_&&v>=1||u)?ba.expired:ba.maxViewsNotExceeded;if(!c&&!l)return ba.maxViewsNotExceeded;return u||_+1>a?ba.expired:ba.maxViewsNotExceeded}static findSurvey(e,t){if(Array.isArray(e))return e.find(e=>e.surveyId===t)}static isSurveyInteractionActive(e,t,s){const r=this.findInteractionStatus(e,t,s);return r===ba.notExpired||r===ba.recurringStopped}static isNotExpiredPerVisit(e,t){return e.settings.display_per===x.visit&&this.findInteractionStatus(e,t.displayedSurveys,{skipRecurringCheck:!0})===ba.notExpired}static isNotExpiredPerVisitor(e,t){return e.settings.display_per===x.visitor&&this.findInteractionStatus(e,t.displayedSurveys,{skipRecurringCheck:!0})===ba.notExpired}}const fa=(e,t=!1)=>{const s="string"==typeof e?e.trim().toLowerCase():String(e).toLowerCase();return"light"===s?Oe.Light:"dark"===s?Oe.Dark:t&&"auto"===s?Oe.Auto:null};function ya({surveyApiState:e,surveyState:t,backendData:s,storeType:r},i,o={}){const n=s.surveys.find(({id:e})=>e===i);if(!n)return;const a=Object.assign({},n),{settings:c}=a,{forceDisplay:l,displayMethod:v,displayOptions:_}=o,u=Me.getStore(r);"forceDisplay"in o&&u.setState({surveyState:Object.assign(Object.assign({},t),{forceDisplay:l,survey:null})}),v?(c.appear_method=(e=>{switch(e){case y.immediately:return f.immediately;case y.delayed:return f.delayed;case y.scroll:return f.scroll;case y.exitIntent:return f.exitIntent}return f.immediately})(v),c.appear_method===f.delayed&&_&&_.delay&&(c.display_delay=_.delay),c.appear_method===f.scroll&&_&&_.scrolledPercentage&&(c.display_scroll=_.scrolledPercentage)):c.appear_method=f.immediately;const d=l?[a]:[...e.surveysTriggeredByApi,a];u.setState({surveyApiState:Object.assign(Object.assign({},u.getState().surveyApiState),{surveysTriggeredByApi:d}),surveyState:Object.assign(Object.assign({},u.getState().surveyState),{forceDisplay:l})}),c.appear_method===f.immediately?u.action(Kn)():Rs.startTargeting(r,[...d,...s.surveys].filter(Bn))}const wa={retarget:Kn,triggerSurveyByApi:ya};var xa,Sa;!function(e){e.Segment="segment",e.JSApi="js_api"}(xa||(xa={})),function(e){e.SurveySeen="survicate_survey_shown",e.SurveyPointAnswered="survicate_survey_answered"}(Sa||(Sa={}));var ka=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Ta{static addEvent(e){const{visitor:t}=pa.getState();mi(t)&&(this.eventQueue.push({name:e,timestamp:n()}),Ai=!0,this.startThrottleTimer())}static startThrottleTimer(){null===this.throttleTimer&&(this.throttleTimer=setTimeout(()=>{this.flushEvents()},this.THROTTLE_INTERVAL))}static flushEvents(){return ka(this,void 0,void 0,function*(){if(!this.eventQueue.length||this.isFlushingEvents)return;this.isFlushingEvents=!0;const{visitor:e,backendService:t}=pa.getState(),s=[...this.eventQueue],r=pi(e);if(this.eventQueue=[],this.throttleTimer&&(clearTimeout(this.throttleTimer),this.throttleTimer=null),s.length<=100){const e=Object.assign({events:s},r);null==t||t.addRequest(pe.userEvents,e,"",null)}else{hi.createUserEventsPayloadChunks(r,s).forEach(e=>{null==t||t.addRequest(pe.userEvents,e,"",null)})}this.isFlushingEvents=!1,(()=>{Ai=!1;const e=Ti;Ti=[],e.forEach(e=>e())})(),this.eventQueue.length>0&&this.startThrottleTimer(),m.forEach(e=>{Me.getStore(e).action(Kn)()})})}}Ta.eventQueue=[],Ta.throttleTimer=null,Ta.THROTTLE_INTERVAL=3e3,Ta.isFlushingEvents=!1;const Aa=new class{constructor(){this.eventsWithDelays=null}fireDelays(e,t){var s;this.eventsWithDelays||(this.eventsWithDelays=this.createEventsWithDelays());const r=Me.getStore(e);!r.getState().surveyState.survey&&(null===(s=this.eventsWithDelays)||void 0===s?void 0:s[t.name])&&this.eventsWithDelays[t.name].forEach(e=>{setTimeout(()=>{r.action(Kn)({eventDelay:e,eventTrigger:t})},e)})}createEventsWithDelays(){var e;const t=(null===(e=window._svd)||void 0===e?void 0:e.surveys)||[];if(!t.length)return{};const s={};return t.forEach(e=>{const t=e.settings;t&&Array.isArray(t.events)&&t.events.forEach(({name:e,settings:t})=>{var r;s[e]||(s[e]=[]);const i=null!==(r=null==t?void 0:t.delay)&&void 0!==r?r:0;s[e].includes(i)||(s[e].push(i),s[e].sort((e,t)=>e-t))})}),s}};var Oa,Ea,Pa=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};!function(e){e.FeedbackSurvey="fb",e.WidgetSurvey="ws"}(Oa||(Oa={})),function(e){e.EventStore="EventStore"}(Ea||(Ea={}));const Ca=m,Ma=[X.text,G.nps],Ia=[...Ma,X.single,X.rating,X.numericalScale,X.customerSatisfaction],Na={addEventListener:(e,t)=>_e.add(e,t),closeSurvey:e=>{void 0===e||"string"==typeof e?Ca.forEach(t=>{const s=Me.getStore(t),r=s.getState().surveyState.survey;!r||void 0!==e&&r.id!==e||s.action(qo)()}):console.warn("closeSurvey: surveyId must be a string")},destroyVisitor:e=>Pa(void 0,void 0,void 0,function*(){const{storageService:t}=pa.getState();null==t||t.remove(M.VisitorStore,{key:T.visitor,table:k.visitor}),Ca.forEach(e=>{We.getVisit(e).resetVisit(),Me.getStore(e).action(Uo)(e)}),le.getStore(M.VisitorStore).remove(ne.sessionViews),ho(uo.kiosk),e&&"function"==typeof e&&e()}),getResponseUuid:(e,t)=>{var s;if(!e||"string"!=typeof e||!Ca.includes(e))return console.warn(`getResponseUuid: ${e} is not supported. Please use one of the following survey types: ${Ca.join(", ")}`),"";if(!t)return o();switch(e){case p.WidgetSurvey:case p.FeedbackButton:return(null===(s=Me.getStore(e).getState().surveyState)||void 0===s?void 0:s.responseUuid)||o();default:return o()}},getSurveyPointsMetadata:e=>{var t;const s=null===(t=window._svd)||void 0===t?void 0:t.surveys;if(!(null==s?void 0:s.length))return console.warn("No surveys found"),null;const r=s.find(t=>t.id===e);return r?r.points.map(e=>{var t;const s={answerType:e.answer_type,pointId:e.id},r=e;if(!(null===(t=r.answers)||void 0===t?void 0:t.length))return s;const i=r.answers.filter(e=>"id"in e);return Object.assign(Object.assign({},s),{answers:i.map(e=>({id:e.id}))})}):(console.warn(`Survey with ID ${e} not found in _svd configuration`),null)},getVisitorId:e=>pa.getState().visitor.uuid,invokeEvent(e,t){if(e===Sa.SurveySeen||e===Sa.SurveyPointAnswered)return;const s=K(String(e)),r=n(),i=(({name:e,properties:t={}})=>{const s={name:e,properties:Object.keys(t),type:xa.JSApi};return e.startsWith("segmentEvent-")&&(s.name=e.replace("segmentEvent-",""),s.type=xa.Segment),s})({name:s,properties:t}),{events:o,isEnabled:a}=v.getState(),c=o.find(e=>e.name===i.name),l=i.properties.filter(e=>{var t;return!(null===(t=null==c?void 0:c.properties)||void 0===t?void 0:t.includes(e))});let _;a&&(!c||c&&l.length)&&W(Object.assign(Object.assign({},i),{properties:l})),_=c?o.map(e=>e.name===i.name?(({storedEvent:e,timestamp:t,newProperties:s})=>{var r,i;return Object.assign(Object.assign({},e),{currentLastSeen:t,firstSeen:null!==(r=e.firstSeen)&&void 0!==r?r:t,occurrences:(e.occurrences||0)+1,previousLastSeen:null!==(i=e.currentLastSeen)&&void 0!==i?i:t,properties:[...e.properties||[],...s]})})({newProperties:l,storedEvent:c,timestamp:r}):e):[...o,Object.assign(Object.assign({},i),{currentLastSeen:r,firstSeen:r,occurrences:1,previousLastSeen:r,properties:[...i.properties]})],v.setState({events:_}),qe.getStorage(Ea.EventStore).set(E.events,_),Ca.forEach(e=>{Aa.fireDelays(e,{name:i.name,properties:t,timestamp:r}),Ta.addEvent(i.name)})},removeEventListener:e=>_e.remove(e),retarget:()=>{Ca.forEach(e=>{const{surveyApiState:t,backendData:s}=Me.getStore(e).getState();Rs.startTargeting(e,[...t.surveysTriggeredByApi,...s.surveys].filter(Bn)),Me.getStore(e).action(Kn)()})},setResponseTraits:e=>{Ca.forEach(t=>{Me.getStore(t).action(xo)(e)})},setSurveyLanguage:e=>{if("string"!=typeof e||!e.trim())return void console.warn("setSurveyLanguage: languageTag must be a non-empty string");const t=e.trim();Ca.forEach(e=>{const s=Me.getStore(e);s.getState().surveyState.survey&&s.action(Co)(t)})},setThemeMode:e=>{const t=e=>`setThemeMode: Invalid theme mode: "${String(e)}". Use one of: ${Oe.Light}, ${Oe.Dark}`;if("string"!=typeof e)return void console.warn(t(`Invalid type: ${typeof e}. String expected`));const s=fa(e);s?Ca.forEach(e=>{Me.getStore(e).action(Bo)(s)}):console.warn(t(e))},setVisitorTraits:e=>{pa.action(Gi)(e)},showSurvey:(e,t={})=>{let s=!1;return Ca.forEach(r=>{const i=Me.getStore(r),{backendData:o,surveyState:n}=i.getState(),a=o.surveys.find(t=>t.id===e);if(!a)return!1;if(!t.forceDisplay&&n.survey)return!1;i.action(ya)(e,t);const{visitor:c}=pa.getState();s=t.forceDisplay||ga.ruleFulfilled({storeType:r,survey:a,visit:We.getVisit(r).get(),visitor:c})}),s},submitAnswer:(()=>{let e=[];return({surveyId:t,pointId:s,answerId:r,answer:i},c)=>{var l,v;if(c&&("string"!=typeof c||!a(c)))return void console.warn(`Response UUID "${c}" is not a valid UUID`);const _=n();if(e=e.filter(e=>_-e<1e4),e.length>=10)return void console.warn("Rate limit exceeded.\n Only 10 submissions allowed per 10 seconds.");if(e.push(_),"string"!=typeof t)return void console.warn("Survey ID must be a string");if("number"!=typeof s)return void console.warn("Point ID must be a number");const u=null===(l=window._svd)||void 0===l?void 0:l.surveys;if(!Array.isArray(u)||!u.length)return void console.warn("No surveys found");const d=u.find(e=>e.id===t);if(!d)return void console.warn(`Survey with ID "${t}" not found`);const p=d.points.find(e=>e.id===s);if(!p)return void console.warn(`Point with ID "${s}" not found in survey "${t}"`);const m=p.answer_type;if(!Ia.includes(m))return void console.warn(`Answer type "${m}" is not supported. Allowed types are: ${Ia.join(", ")}`);if(!Ma.includes(m)&&"number"!=typeof r)return void console.warn(`Answer ID must be a number for point "${s}" of survey "${t}"`);const h=m===X.text,b=m===G.nps;if(h&&("string"!=typeof i||!i.trim()))return void console.warn("Text answer must be a non-empty string");if(b){if("number"!=typeof i)return void console.warn(`${m} answer must be a number`);if(i<0||i>10)return void console.warn("NPS score must be between 0 and 10")}if(!h&&!b){const e=null===(v=p.answers)||void 0===v?void 0:v.some(e=>"id"in e&&e.id===r);if(!e)return void console.warn(`Answer ID "${r}" not found in point "${s}" of survey "${t}"`)}const g={nextSurveyPointId:null,user_tag:""};Me.getStore(d.type).action(to)(Object.assign(Object.assign({anonymizedTextResponse:"",answerType:m,answers:h||b?[Object.assign({content:String(i)},g)]:[Object.assign({possible_answer:i,survey_question_answer_id:r},g)],completionRate:0,description:p.description||"",pointType:p.type,question:p.content,response_uuid:c||o(),survey:d,surveyName:d.name,surveyPointId:s},h&&{textResponse:String(i)}),{core_version:"28.24.0",version:"4.1",visitor_uuid:pa.getState().visitor.uuid}))}})()};var ja,Ra;!function(e){e.immediately="immediately",e.delayed="delayed",e.exitIntent="exitIntent",e.scroll="onScroll"}(ja||(ja={})),function(e){e.questionAnswered="question_answered",e.surveyDisplayed="survey_displayed",e.surveyCompleted="survey_completed",e.surveyClosed="survey_closed"}(Ra||(Ra={}));const Da=e=>{if("undefined"==typeof document||!document.head)return;const{id:t,link:s,nonce:r}=null!=e?e:{};nr({href:null!=s?s:"https://surveys-static.survicate.com/fonts/fonts.css",id:null!=t?t:"survicate-fonts",nonce:r})},La=(e,t)=>{const s=(e=>{var t,s,r;const i=Array.isArray(e)?e:e?[e]:[],o=new Set;for(const e of i)(null===(s=null===(t=e.font)||void 0===t?void 0:t.name)||void 0===s?void 0:s.trim())&&(null===(r=e.font)||void 0===r?void 0:r.type)===or.library&&o.add(e.font.name);return[...o]})(e);if(s.length)for(const e of s)vr(e,t)},Fa=JSON.parse('{"h":"This survey is currently unavailable."}'),za=e=>{if(!e)return"";const t=(e=>(null==e?void 0:e.background_layout)===Zs.repeat?"repeat":"no-repeat")(e);return`\n background-image: url('${(null==e?void 0:e.background_url)||""}');\n background-repeat: ${t};\n background-size: ${(null==e?void 0:e.background_layout)||""};\n background-position: ${(null==e?void 0:e.background_position)||""};\n `},qa=e=>Object.entries(e).filter(([,e])=>e).map(([e])=>e).join(" "),Ua=(0,ss.createContext)(null),$a=()=>{const e=ys(Ua);if(!e)throw new Error("useSubmitService must be used within SubmitSignalsProvider");return e};function Ba(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"90",height:"17",viewBox:"0 0 497 83",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n",(0,ss.h)("path",{d:"M19.7577 61.9935C19.7577 64.798 23.3382 66.4781 28.6099 66.4781C30.7371 66.4781 34.3176 66.1474 34.3176 64.1234C34.3176 62.0993 31.4109 61.6628 20.4315 58.8318C9.22756 55.9214 2.39682 50.5372 2.39682 40.9991C2.39682 29.9 13.4819 23.1797 25.69 23.1797C41.9279 23.1797 51.1104 32.1489 51.1104 42.3485H32.0715C32.0715 39.4381 28.1078 38.8692 26.3638 38.8692C24.131 38.8692 21.4357 39.4381 21.4357 40.9991C21.4357 42.5601 23.4571 42.6924 36.1145 46.6082C51.1104 51.2119 53.2904 58.8318 53.2904 64.5467C53.2904 76.3205 41.3994 82.1544 28.0946 82.1544C12.0285 82.1809 0.666016 75.8971 0.666016 61.9935H19.7577Z",fill:"#171D1A"},[]),"\n",(0,ss.h)("path",{d:"M119.195 24.3311V81.0569H101.279L100.156 74.244C94.5675 78.9535 87.9614 82.1813 80.5625 82.1813C66.2272 82.1813 60.0703 73.1063 60.0703 58.184V24.3311H79.1091V48.9899C79.1091 60.9885 82.2404 64.2429 88.3577 64.2429C93.7351 64.2429 100.117 61.4383 100.117 50.1143V24.3311H119.195Z",fill:"#171D1A"},[]),"\n",(0,ss.h)("path",{d:"M166.002 25.559L163.531 42.2672C161.868 41.5225 160.067 41.1392 158.246 41.1427C152.538 41.1427 148.284 45.8522 148.284 59.7559V81.0545H129.271V24.3287H147.187L147.967 29.3689C151.442 25.559 155.366 23.2042 159.501 23.2042C161.89 23.1183 164.22 23.9623 166.002 25.559",fill:"#171D1A"},[]),"\n",(0,ss.h)("path",{d:"M239.12 24.3311L215.272 81.0569H193.208L169.359 24.3311H190.644L204.306 60.6578L217.848 24.3311H239.12Z",fill:"#171D1A"},[]),"\n",(0,ss.h)("path",{d:"M263.762 81.0562H244.723V24.3304H263.762V81.0562ZM245.264 9.30226C245.264 7.52831 245.79 5.7942 246.774 4.31921C247.758 2.84423 249.157 1.69461 250.794 1.01575C252.431 0.336892 254.232 0.159274 255.97 0.505354C257.708 0.851434 259.304 1.70567 260.556 2.96004C261.809 4.21441 262.662 5.81258 263.008 7.55244C263.354 9.2923 263.176 11.0957 262.498 12.7346C261.82 14.3735 260.672 15.7744 259.199 16.7599C257.726 17.7455 255.994 18.2715 254.222 18.2715C251.877 18.2998 249.616 17.3947 247.936 15.7552C246.257 14.1156 245.296 11.8756 245.264 9.52715V9.30226Z",fill:"#171D1A"},[]),"\n",(0,ss.h)("path",{d:"M303.728 41.1715C298.245 41.1715 291.744 45.2063 291.744 52.7204C291.744 60.2344 298.245 64.2693 303.728 64.2693C305.974 64.3436 308.212 63.965 310.31 63.156C312.407 62.3469 314.32 61.1239 315.936 59.5597V77.4982C311.407 80.7368 305.934 82.3834 300.372 82.1813C283.46 82.1813 271.596 68.6216 271.596 52.6939C271.596 37.0044 283.487 23.2065 300.372 23.2065C305.94 23.0198 311.413 24.6852 315.936 27.9425V45.6561C314.296 44.1414 312.373 42.9656 310.278 42.1961C308.183 41.4265 305.957 41.0784 303.728 41.1715",fill:"#171D1A"},[]),"\n",(0,ss.h)("path",{d:"M350.091 23.2061C358.719 23.2061 364.876 27.1747 367.267 31.8446L368.39 24.3305H386.306V81.0563H368.337L367.228 73.5423C364.876 78.146 358.719 82.1808 350.052 82.1808C333.814 82.1808 322.623 68.9518 322.623 52.6934C322.623 36.435 333.814 23.2061 350.052 23.2061H350.091ZM353.408 64.2159C354.984 64.3247 356.566 64.108 358.056 63.5791C359.546 63.0502 360.911 62.2205 362.067 61.1413C363.223 60.0622 364.145 58.7568 364.776 57.306C365.407 55.8552 365.733 54.29 365.735 52.7076C365.737 51.1252 365.414 49.5592 364.786 48.107C364.159 46.6548 363.239 45.3472 362.086 44.2654C360.932 43.1837 359.569 42.3508 358.081 41.8185C356.593 41.2862 355.011 41.0658 353.434 41.171C350.375 41.171 347.441 42.3878 345.278 44.5536C343.115 46.7194 341.9 49.6569 341.9 52.7199C341.9 55.7828 343.115 58.7204 345.278 60.8862C347.441 63.052 350.375 64.2688 353.434 64.2688",fill:"#171D1A"},[]),"\n",(0,ss.h)("path",{d:"M436.671 42.2696H422.878V81.057H403.839V42.2696H394.102V24.3312H403.839V7.50391H422.878V24.3312H436.671V42.2696Z",fill:"#171D1A"},[]),"\n",(0,ss.h)("path",{d:"M496.664 58.5268H459.049C459.273 61.1726 461.625 65.3529 469.46 65.3529C471.345 65.399 473.215 65.0088 474.925 64.2126C476.634 63.4163 478.137 62.2356 479.316 60.7625L495.884 62.4426C494.801 70.0625 485.922 82.1802 469.341 82.1802C451.319 82.1802 440.01 68.2765 440.01 52.3489C440.01 36.6593 450.87 23.2451 468.337 23.2451C485.803 23.2451 496.664 37.0297 496.664 53.6718V58.5268ZM477.625 45.6285C477.4 42.7182 473.926 40.0195 468.376 40.0195C462.827 40.0195 459.313 42.6652 459.128 45.6285H477.625Z",fill:"#171D1A"},[]),"\n"])}Object.defineProperty(Ba,"name",{value:"default",configurable:!0});const Va=({progress:e,surveyType:t,text:s})=>{const r=t===p.PageSurvey;return(0,ss.h)("div",{className:"sv__progress-bar__wrapper"},r&&(0,ss.h)("div",{className:"sv__progress-bar-description","data-testid":"progress-bar-description"},(0,ss.h)("span",{className:"sv__progress-bar-number"},e,"% "),s),(0,ss.h)("div",{className:qa({"survicate_progress-bar_oTwfq":!0,"sv-progress-bar":!0,"sv__progress-bar":!0})},(0,ss.h)("div",{className:"sv__progress-bar-fill sv-progress-bar-fill sv--background-progress-bar",style:{width:`${e}%`}})))},Ha=({showBranding:e,showProgressBar:t,completionRate:s,progressBarText:r})=>{const i=e||t,{backendData:{workspaceKey:o},surveyState:{survey:n}}=Me.getStore(p.PageSurvey).getState(),a=qt.isWidthMobile()?void 0:`https://survicate.com/create-your-link-survey/?utm_source=Survey+branding&utm_medium=PageSurvey&utm_content=${o}&utm_term=${null==n?void 0:n.id}`;return i?(0,ss.h)("a",{className:"sv__footer-container",href:a,rel:"noopener noreferrer",tabIndex:0,target:"_blank",title:"Click to go to the Survicate homepage"},(0,ss.h)("div",{className:"sv__footer"},!t&&(0,ss.h)("div",{className:"sv__powered-by"},"Powered by"),e&&(0,ss.h)("div",{className:"sv__branding-logo","data-testid":"branding-logo"},(0,ss.h)(Ba,null))),t&&(0,ss.h)("div",{className:"sv__progress-bar-container"},(0,ss.h)(Va,{progress:s,surveyType:p.PageSurvey,text:r}))):null};var Wa;!function(e){e.Security="security",e.Unavailable="unavailable"}(Wa||(Wa={}));const Ka=({text:e,showBranding:t,screenType:s,theme:r})=>{var i;const o=$a();let n="#29292a",a=e,c={};(null==r?void 0:r.color_scheme)&&(n=r.color_scheme.answer),s===Wa.Security&&(a="Your browser doesn’t meet our security standards. Please update your browser to answer this survey."),s===Wa.Unavailable&&(c=za(null===(i=window._svd.themes[0])||void 0===i?void 0:i.settings));const l=qa({"sv__status-page":!0,[`sv__status-page--${s}`]:!!s});return ms(()=>{o.clearSubmitButtonState()},[o]),(0,ss.h)("div",{className:l,"data-testid":"survey-status-gate",style:c},(0,ss.h)("span",{className:"sv__main-text","data-testid":"survey-status-main-text",style:{color:n}},a),(0,ss.h)(Ha,{completionRate:100,showBranding:null!=t&&t,showProgressBar:!1}))},Ga=e=>"label"in e,Ya=(e,t)=>t?Object.keys(e).reduce((s,r)=>{var i,o,n,a,c,l,v,_,u,d,p,m;if(!t[r])return Object.assign(Object.assign({},s),{[r]:e[r]});let h;if("string"==typeof t[r]&&(h=t[r]),"settings"===r){const s=null===(i=e[r])||void 0===i?void 0:i.scale,b=null===(o=e[r])||void 0===o?void 0:o.choice,g=null===(n=e[r])||void 0===n?void 0:n.disclaimer_text,f=null===(a=e[r])||void 0===a?void 0:a.disclaimer_title,y=null===(c=e[r])||void 0===c?void 0:c.disclaimer_settings,w=null===(l=e[r])||void 0===l?void 0:l.point_image,x=null===(v=e[r])||void 0===v?void 0:v.answer_edits_remaining_text;if(s){const i=s.map(e=>{var s,i;const o={name:(null===(i=null===(s=t[r])||void 0===s?void 0:s.scale)||void 0===i?void 0:i[e.id])||e.name};return Ya(e,o)});h=Object.assign(Object.assign({},e[r]),{scale:i})}else h=Ya(e[r],t[r]);if(y&&(null===(_=t[r])||void 0===_?void 0:_.disclaimer_settings)){const s=Ya(e[r].disclaimer_settings,t[r].disclaimer_settings);h=Object.assign(Object.assign({},h),{disclaimer_settings:s})}if(b&&(null===(u=t[r])||void 0===u?void 0:u.choice)){const e=Object.assign(Object.assign({},b),{text:t[r].choice.text});h=Object.assign(Object.assign({},h),{choice:e})}(g||f)&&t[r]&&(h=Object.assign(Object.assign({},h),{disclaimer_text:t[r].disclaimer_text||g,disclaimer_title:t[r].disclaimer_title||f})),(null==w?void 0:w.image)&&"object"==typeof w.image&&(null===(p=null===(d=t[r])||void 0===d?void 0:d.point_image)||void 0===p?void 0:p.image)&&(h=Object.assign(Object.assign({},h),{point_image:Object.assign(Object.assign({},w),{image:Object.assign(Object.assign({},w.image),{description:t[r].point_image.image.description||w.image.description})})})),x&&(null===(m=t[r])||void 0===m?void 0:m.answer_edits_remaining_text)&&(h=Object.assign(Object.assign({},h),{answer_edits_remaining_text:t[r].answer_edits_remaining_text||x}))}return"answers"!==r&&"fields"!==r||(h=e[r].map(e=>{var s,i,o,n;let a;if("answers"===r)a={possible_answer:null!==(i=null===(s=t[r])||void 0===s?void 0:s[e.id])&&void 0!==i?i:(c=e,"possible_answer"in c?e.possible_answer:"")};else a={label:null!==(n=null===(o=t[r])||void 0===o?void 0:o[e.id])&&void 0!==n?n:Ga(e)?e.label:""};var c;return Ya(e,a)})),Object.assign(Object.assign({},s),{[r]:h||e[r]})},Object.assign({},e)):e,Za=(e,t)=>{var s,r,i,o,n;const a=Me.getStore(e),{surveyState:{translationLanguage:c,translations:l},isPreview:v}=a.getState(),_=c||Rt({preview:v,survey:t}),u=null!==(r=null===(s=t.settings)||void 0===s?void 0:s.survey_language)&&void 0!==r?r:"",d=null!=_?null===(n=null===(o=null===(i=null==l?void 0:l[t.id])||void 0===i?void 0:i[_])||void 0===o?void 0:o.settings)||void 0===n?void 0:n.messages:void 0;return l&&_&&u!==_&&d?Ya(t.settings.messages,d):t.settings.messages},Qa=()=>{const{surveyEvent:e}=ys(Xo),{surveyType:t}=ys(Wo),s=Me.getStore(t),r=qe.getStorage(t),i=e=>{var t;if(!e)return!1;const s=`${re.state}:${e}`,i=(null===(t=r.get(s))||void 0===t?void 0:t.timestamp)||0;return n()-i>2592e6};return ms(()=>{(null==e?void 0:e.eventType)!==Qt.answered&&(null==e?void 0:e.eventType)!==Qt.opened&&(null==e?void 0:e.eventType)!==Qt.minimized&&(null==e?void 0:e.eventType)!==Qt.maximized&&(null==e?void 0:e.surveyId)&&r.remove(`${re.state}:${e.surveyId}`)},[e]),{isCacheOutdated:i,preserveState:e=>{if(!e)return;const t=`${re.state}:${e}`,i={surveyApiState:s.getState().surveyApiState,surveyState:s.getState().surveyState,timestamp:n()};r.set(t,i)},retrieveState:e=>{var t,o,n,a,c;const l=s.getState();if(!e||l.isPreview||(null===(o=null===(t=l.surveyState.survey)||void 0===t?void 0:t.settings)||void 0===o?void 0:o.kiosk_enabled))return;const v=`${re.state}:${e}`,_=null===(n=r.get(v))||void 0===n?void 0:n.surveyApiState,u=null===(a=r.get(v))||void 0===a?void 0:a.surveyState;if(!u||!_)return;if(i(e))return void r.remove(`${re.state}:${e}`);const d=Object.assign(Object.assign(Object.assign({},Ee),u),_);if(null===(c=window._sva)||void 0===c?void 0:c.themeMode){const e=fa(window._sva.themeMode,!0);null!==e&&(d.themeMode=e)}d.survey&&(d.translationLanguage=Rt({survey:d.survey})),s.setState(Object.assign(Object.assign({},l),{surveyState:d})),d.survey&&l.storeType&&jo(s.getState(),d.survey)}}},Xa=({buttonLink:e,buttonText:t})=>(0,ss.h)("a",{className:"sv__simple-link-button",href:e,rel:"noopener noreferrer",target:"_blank",title:"Click to go to the page of the survey creator",type:"button"},t),Ja=JSON.parse('{"DD":"Uh-oh! This survey is currently unavailable","Zg":"😔","lO":{"z":"Don\'t let that stop you! Create your own survey in just a few clicks.","R":"With Survicate, a user journey survey software, you can get continuous user insights at all stages of the funnel:"},"qT":["Better understand your audience with website surveys","Validate your product ideas with in-app feedback surveys","Identify churn reasons to improve customer experience"],"x6":{"Q":"LEARN MORE","O":"https://survicate.com/?utm_source=Survey_unavailable&utm_medium=PageSurvey"},"Hw":{"l":{"R":"Find out how Survicate can help you gain valuable insights."}},"zC":{"wm":"https://surveys-static.survicate.com/images/surviLogoDark.svg","io":"https://surveys-static.survicate.com/images/iconTick.svg","Tp":"https://surveys-static.survicate.com/images/surveyUnavailable.svg","gY":"https://surveys-static.survicate.com/images/surveyUnavailableIcon.svg","_E":"https://surveys-static.survicate.com/images/mobileThankYou.svg"},"_2":{"wm":"Survicate Logo","io":"tick","Tp":"Background","gY":"Survey unavailable icon","_E":"Thank you icon"}}'),ec=()=>(ms(()=>{document.body.style.margin="0"},[]),(0,ss.h)("div",{className:"sv__survey-status-gate__wrapper"},N()()?(0,ss.h)("div",{className:"sv__is-mobile sv__survey-status-view","data-testid":"survey-status-gate"},(0,ss.h)("div",{className:"sv__survey-status-view--with-branding"},(0,ss.h)("img",{alt:Ja._2.wm,className:"sv__survi-logo",src:Ja.zC.wm}),(0,ss.h)("img",{alt:Ja._2.gY,className:"sv__status-emoji",src:Ja.zC.gY}),(0,ss.h)("div",{className:"sv__content"},(0,ss.h)("div",{className:"sv__title-wrapper"},(0,ss.h)("p",{className:"sv__title"},Ja.DD),(0,ss.h)("p",{className:"sv__emoji"},Ja.Zg)),(0,ss.h)("div",{className:"sv__paragraph"},(0,ss.h)("p",null,Ja.lO.z),(0,ss.h)("p",null,Ja.Hw.l.R))),(0,ss.h)("img",{alt:Ja._2._E,className:"sv__status-logo",src:Ja.zC._E}),(0,ss.h)(Xa,{buttonLink:Ja.x6.O,buttonText:Ja.x6.Q}))):(0,ss.h)("div",{className:"sv__survey-status-view","data-testid":"survey-status-gate"},(0,ss.h)("div",{className:"sv__survey-status-view--with-branding"},(0,ss.h)("div",{className:"sv__content"},(0,ss.h)("img",{alt:Ja._2.wm,className:"sv__content__logo",src:Ja.zC.wm}),(0,ss.h)("div",{className:"sv__title__wrapper"},(0,ss.h)("div",{className:"sv__title-emoji__wrapper"},(0,ss.h)("h1",{className:"sv__title"},Ja.DD),(0,ss.h)("p",{className:"sv__emoji"},Ja.Zg))),(0,ss.h)("div",{className:"sv__content__paragraph"},(0,ss.h)("div",null,Ja.lO.z),(0,ss.h)("div",null,Ja.lO.R)),(0,ss.h)("ul",{className:"sv__content__list"},Ja.qT.map(e=>(0,ss.h)("li",{className:"sv__content__list--element",key:e},(0,ss.h)("img",{alt:Ja._2.io,src:Ja.zC.io}),(0,ss.h)("div",null,e)))),(0,ss.h)(Xa,{buttonLink:Ja.x6.O,buttonText:Ja.x6.Q})),(0,ss.h)("a",{className:"sv__background__wrapper sv__background__wrapper--unclickable",href:Ja.x6.O,rel:"noopener noreferrer",target:"_blank"},(0,ss.h)("img",{alt:Ja._2.Tp,className:"sv__background",src:Ja.zC.Tp})))))),tc=(e,t)=>{const s=new Date(e);return s.setDate(s.getDate()+t),s},sc=()=>(console.error("Invalid date format"),null),rc=(e,t)=>{switch(e){case"salesforce":{if(10!==t.length||!t.includes("/"))return sc();const[e,s,r]=t.split("/").map(Number);return new Date(r,s-1,e)}case"klaviyo":{if(!t.includes("."))return sc();const[e,s,r]=t.split(".").map(Number);return new Date(r,s-1,e)}case"activecampaign":case"hubspot":{if(10!==t.length||!t.includes("/"))return sc();const[e,s,r]=t.split("/").map(Number);return new Date(r,e-1,s)}case"marketo":{const e=new Date(t);return e.getTime()?e:sc()}default:{if(10!==t.length||!t.includes("-"))return sc();const[e,s,r]=t.split("-").map(Number);return new Date(e,s-1,r)}}},ic=e=>{if(!(null==Be?void 0:Be.params))return!1;const{params:t}=Be;if(!t||!t.sent_date||!e)return!1;const s=rc(t.p,t.sent_date);if(!s)return!1;return tc(s,e)<new Date},oc=({children:e})=>{var t,s,r,i,o,n;const{pageSurvey:a,widgetSurveys:c,isPreview:l,update:v,surveyUpdated:_,isPage:u,surveyType:d}=ys(Wo),{isCacheOutdated:p}=Qa(),m=!!v&&Object.keys(v).length>0,h=u&&ic(null===(t=null==a?void 0:a.settings)||void 0===t?void 0:t.link_expiration_period),b=m?!!(null===(s=v.surveys)||void 0===s?void 0:s.length):!!(null==c?void 0:c.length),g=null===(r=m?v.survey:a)||void 0===r?void 0:r.activated,f=!(a&&(l||g&&(null===(i=a.points)||void 0===i?void 0:i.length))),y=!h&&!f||b,w=m&&_,x=br(d);if(w&&!j.isAvailable()){const e=null==v?void 0:v.survey;u&&(null===(o=e.settings)||void 0===o?void 0:o.kiosk_enabled)&&p(e.id)?Me.getStore(d).action($n)(e):x&&(null===(n=v.surveys)||void 0===n?void 0:n.length)&&(Rs.startTargeting(d,v.surveys),Me.getStore(d).action(Kn)())}const S=a?Za(d,a).disabled_text:Fa.h;return y?e:x?null:((e,t)=>{var s,r,i,o,n;return t===Wa.Unavailable?null===(i=null===(r=null===(s=window._svd)||void 0===s?void 0:s.survey)||void 0===r?void 0:r.settings)||void 0===i?void 0:i.hide_footer:null===(n=null===(o=Me.getStore(e).getState().surveyState.survey)||void 0===o?void 0:o.settings)||void 0===n?void 0:n.hide_footer})(d,Wa.Unavailable)?(0,ss.h)(Ka,{screenType:Wa.Unavailable,text:S}):(0,ss.h)(ec,null)};var nc,ac=/bot|crawl|http|lighthouse|scan|search|spider/i;function cc(){if(nc instanceof RegExp)return nc;try{nc=new RegExp(" daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<!cam)scan|24x7|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\b\\w+\\.ai|\\bcursor/|\\bmanus-user/|\\bort/|\\bperl\\b|\\bplaywright\\b|\\bsecurityheaders\\b|\\bselenium\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[\\w\\-]+/[\\w]+$|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^\\w+/\\d\\.\\d\\s\\([\\w@]+\\)$|^active|^ad muncher|^amaya|^apache/|^avsdevicesdk/|^azure|^biglotron|^bot|^bw/|^clamav[ /]|^claude-code/|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\((?:compatible;)?(?:\\s?[\\w\\d-.]+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|advisor|agent\\b|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|exaleadcloudview|feed|fetcher|firephp|functionize|grab|headless|httrack|hubspot marketing grader|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|mail\\.ru/|manager|measure|monitor\\b|neustar wpm|node\\b|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|xtate/","i")}catch(e){nc=ac}return nc}var lc=e=>"string"==typeof e&&""!==e;let vc;const _c=()=>{try{const e="function"==typeof crypto.getRandomValues,t=!!document.createEvent("Event"),s=e&&t;return s&&(vc=void 0),s}catch(e){vc=e;try{if("undefined"!=typeof console&&"function"==typeof console.error){const t=`hasBrowserAPISupport: ${(e=>e instanceof Error?e.message:"string"==typeof e?e:String(e))(e)}`;console.error(t,e)}}catch(e){}return!1}},uc={chrome:"<85",edge:"<85",firefox:"<79",opera:"<71",safari:"<14"},dc=()=>{const e=(()=>{var e,t;return null===(t=null===(e=window.location)||void 0===e?void 0:e.pathname)||void 0===t?void 0:t.endsWith("link_preview.html")})()||_c()&&(t=navigator.userAgent,!(lc(t)&&cc().test(t)))&&!(()=>{const e=window.navigator.userAgent;if(!e)return!1;const t=Re(e);if(!t)return!1;try{return!!t.satisfies(uc)}catch(e){return!1}})();var t;return{isSupportedBrowser:e}},pc=({children:e})=>{const{isSupportedBrowser:t}=dc(),{isPage:s}=ys(Wo);return t?e:s?(0,ss.h)(Ka,{screenType:Wa.Security}):null};var mc;!function(e){e.FIELD_REQUIRED="field_required",e.COMMENT_ANSWER="comment_answer",e.COMMENT_REQUIRED="comment_required",e.ANSWER_REQUIRED="answer_required",e.CLOSE_DROPDOWN="close_dropdown",e.OPEN_DROPDOWN="open_dropdown",e.SAVE_SCREENSHOT="save_screenshot",e.CLOSE_SCREENSHOT_MODE="close_screenshot_mode",e.PICK_SCREENSHOT_COLOR="pick_screenshot_color",e.SCREENSHOT_SELECTION="screenshot_selection",e.REMOVE_SCREENSHOT="remove_screenshot",e.CLOSE_SURVEY="close_survey",e.MINIMIZE_SURVEY="minimize_survey",e.MINIMIZED_SURVEY="minimized_survey",e.START_SURVEY="start_survey",e.FOLLOWUP_ADDED="followup_added",e.FOLLOWUP_REMOVED="followup_removed",e.EDITS="edits",e.SURVEY="survey",e.VALID_DATE="valid_date",e.VALID_EMAIL="valid_email",e.SELECT="select"}(mc||(mc={}));const hc={[mc.FIELD_REQUIRED]:"This field is required",[mc.COMMENT_ANSWER]:"Comment your answer",[mc.COMMENT_REQUIRED]:"Comment is required",[mc.ANSWER_REQUIRED]:"Answer is required",[mc.CLOSE_DROPDOWN]:"Close the dropdown list",[mc.OPEN_DROPDOWN]:"Open the dropdown list",[mc.SAVE_SCREENSHOT]:"Save the screenshot",[mc.CLOSE_SCREENSHOT_MODE]:"Close the screenshot capture mode",[mc.PICK_SCREENSHOT_COLOR]:"Pick the screenshot border color",[mc.SCREENSHOT_SELECTION]:"Screenshot selection area",[mc.REMOVE_SCREENSHOT]:"Remove the screenshot",[mc.CLOSE_SURVEY]:"Close the survey",[mc.MINIMIZE_SURVEY]:"Minimize the survey",[mc.MINIMIZED_SURVEY]:"Minimized Survey",[mc.START_SURVEY]:"Start the survey",[mc.FOLLOWUP_ADDED]:"Follow-up question added",[mc.FOLLOWUP_REMOVED]:"Follow-up question removed",[mc.EDITS]:"edits",[mc.SURVEY]:"Survey",[mc.VALID_DATE]:"Please enter a valid date.",[mc.VALID_EMAIL]:"Please enter a valid email address.",[mc.SELECT]:"Please select an option from the list"};var bc=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const gc=(0,ss.createContext)({staticMessages:hc}),fc=({children:e})=>{const{surveyType:t,isPreview:s}=ys(Wo),{survey:r,translationLanguage:i}=Me.getStore(t).getState().surveyState,[o,n]=ds(hc);ms(()=>{r&&i&&!s&&function(){bc(this,void 0,void 0,function*(){try{const e=(yield V("https://survey.survicate.com").get(`/translations/messages_${i}.json`)).data;n(Object.assign(Object.assign({},hc),e))}catch(e){console.warn("Error loading translations:",e)}})}()},[t,i,s]);const a=gs(()=>({staticMessages:o}),[o]);return(0,ss.h)(gc.Provider,{value:a},e)};var yc=Symbol.for("preact-signals");function wc(){if(Oc>1)Oc--;else{var e,t=!1;for(!function(){var e=Mc;for(Mc=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==Ac;){var s=Ac;for(Ac=void 0,Ec++;void 0!==s;){var r=s.u;if(s.u=void 0,s.f&=-3,!(8&s.f)&&Dc(s))try{s.c()}catch(s){t||(e=s,t=!0)}s=r}}if(Ec=0,Oc--,t)throw e}}function xc(e){if(Oc>0)return e();Cc=++Pc,Oc++;try{return e()}finally{wc()}}var Sc=void 0;function kc(e){var t=Sc;Sc=void 0;try{return e()}finally{Sc=t}}var Tc,Ac=void 0,Oc=0,Ec=0,Pc=0,Cc=0,Mc=void 0,Ic=0;function Nc(e){if(void 0!==Sc){var t=e.n;if(void 0===t||t.t!==Sc)return t={i:0,S:e,p:Sc.s,n:void 0,t:Sc,e:void 0,x:void 0,r:t},void 0!==Sc.s&&(Sc.s.n=t),Sc.s=t,e.n=t,32&Sc.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Sc.s,t.n=void 0,Sc.s.n=t,Sc.s=t),t}}function jc(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Rc(e,t){return new jc(e,t)}function Dc(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Lc(e){for(var t=e.s;void 0!==t;t=t.n){var s=t.S.n;if(void 0!==s&&(t.r=s),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Fc(e){for(var t=e.s,s=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):s=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=s}function zc(e,t){jc.call(this,void 0),this.x=e,this.s=void 0,this.g=Ic-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function qc(e,t){return new zc(e,t)}function Uc(e){var t=e.m;if(e.m=void 0,"function"==typeof t){Oc++;var s=Sc;Sc=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,$c(e),t}finally{Sc=s,wc()}}}function $c(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Uc(e)}function Bc(e){if(Sc!==this)throw new Error("Out-of-order effect");Fc(this),Sc=e,this.f&=-2,8&this.f&&$c(this),wc()}function Vc(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,Tc&&Tc.push(this)}function Hc(e,t){var s=new Vc(e,t);try{s.c()}catch(e){throw s.d(),e}var r=s.d.bind(s);return r[Symbol.dispose]=r,r}jc.prototype.brand=yc,jc.prototype.h=function(){return!0},jc.prototype.S=function(e){var t=this,s=this.t;s!==e&&void 0===e.e&&(e.x=s,this.t=e,void 0!==s?s.e=e:kc(function(){var e;null==(e=t.W)||e.call(t)}))},jc.prototype.U=function(e){var t=this;if(void 0!==this.t){var s=e.e,r=e.x;void 0!==s&&(s.x=r,e.e=void 0),void 0!==r&&(r.e=s,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&kc(function(){var e;null==(e=t.Z)||e.call(t)}))}},jc.prototype.subscribe=function(e){var t=this;return Hc(function(){var s=t.value,r=Sc;Sc=void 0;try{e(s)}finally{Sc=r}},{name:"sub"})},jc.prototype.valueOf=function(){return this.value},jc.prototype.toString=function(){return this.value+""},jc.prototype.toJSON=function(){return this.value},jc.prototype.peek=function(){var e=this;return kc(function(){return e.value})},Object.defineProperty(jc.prototype,"value",{get:function(){var e=Nc(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ec>100)throw new Error("Cycle detected");!function(e){0!==Oc&&0===Ec&&e.l!==Cc&&(e.l=Cc,Mc={S:e,v:e.v,i:e.i,o:Mc})}(this),this.v=e,this.i++,Ic++,Oc++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{wc()}}}}),zc.prototype=new jc,zc.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ic)return!0;if(this.g=Ic,this.f|=1,this.i>0&&!Dc(this))return this.f&=-2,!0;var e=Sc;try{Lc(this),Sc=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Sc=e,Fc(this),this.f&=-2,!0},zc.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}jc.prototype.S.call(this,e)},zc.prototype.U=function(e){if(void 0!==this.t&&(jc.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},zc.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(zc.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Nc(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Vc.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},Vc.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Uc(this),Lc(this),Oc++;var e=Sc;return Sc=this,Bc.bind(this,e)},Vc.prototype.N=function(){2&this.f||(this.f|=2,this.u=Ac,Ac=this)},Vc.prototype.d=function(){this.f|=8,1&this.f||$c(this)},Vc.prototype.dispose=function(){this.d()};var Wc,Kc,Gc="undefined"!=typeof window&&!!window.__PREACT_SIGNALS_DEVTOOLS__,Yc=[];function Zc(e,t){ss.options[e]=t.bind(null,ss.options[e]||function(){})}function Qc(e){if(Kc){var t=Kc;Kc=void 0,t()}Kc=e&&e.S()}function Xc(e){var t=this,s=e.data,r=function(e,t){return gs(function(){return Rc(e,t)},[])}(s);r.value=s;var i=gs(function(){for(var e=t,s=t.__v;s=s.__;)if(s.__c){s.__c.__$f|=4;break}var i=qc(function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}),o=qc(function(){return!Array.isArray(i.value)&&!(0,ss.isValidElement)(i.value)}),n=Hc(function(){if(this.N=rl,o.value){var t=i.value;e.__v&&e.__v.__e&&3===e.__v.__e.nodeType&&(e.__v.__e.data=t)}}),a=t.__$u.d;return t.__$u.d=function(){n(),a.call(this)},[o,i]},[]),o=i[0],n=i[1];return o.value?n.peek():n.value}function Jc(e,t,s,r){var i=t in e&&void 0===e.ownerSVGElement,o=Rc(s),n=s.peek();return{o:function(e,t){o.value=e,n=e.peek()},d:Hc(function(){this.N=rl;var s=o.value.value;n!==s?(n=void 0,i?e[t]=s:null==s||!1===s&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,s)):n=void 0})}}Hc(function(){Wc=this.N})(),Xc.displayName="ReactiveTextNode",Object.defineProperties(jc.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Xc},props:{configurable:!0,get:function(){var e=this;return{data:{get value(){return e.value}}}}},__b:{configurable:!0,value:1}}),Zc("__b",function(e,t){if("string"==typeof t.type){var s,r=t.props;for(var i in r)if("children"!==i){var o=r[i];o instanceof jc&&(s||(t.__np=s={}),s[i]=o,r[i]=o.peek())}}e(t)}),Zc("__r",function(e,t){if(e(t),t.type!==ss.Fragment){Qc();var s,r=t.__c;r&&(r.__$f&=-2,void 0===(s=r.__$u)&&(r.__$u=s=function(e,t){var s;return Hc(function(){s=this},{name:t}),s.c=e,s}(function(){var e;Gc&&(null==(e=s.y)||e.call(s)),r.__$f|=1,r.setState({})},"function"==typeof t.type?t.type.displayName||t.type.name:""))),Qc(s)}}),Zc("__e",function(e,t,s,r){Qc(),e(t,s,r)}),Zc("diffed",function(e,t){var s;if(Qc(),"string"==typeof t.type&&(s=t.__e)){var r=t.__np,i=t.props;if(r){var o=s.U;if(o)for(var n in o){var a=o[n];void 0===a||n in r||(a.d(),o[n]=void 0)}else o={},s.U=o;for(var c in r){var l=o[c],v=r[c];void 0===l?(l=Jc(s,c,v),o[c]=l):l.o(v,i)}for(var _ in r)i[_]=r[_]}}e(t)}),Zc("unmount",function(e,t){if("string"==typeof t.type){var s=t.__e;if(s){var r=s.U;if(r)for(var i in s.U=void 0,r){var o=r[i];o&&o.d()}}t.__np=void 0}else{var n=t.__c;if(n){var a=n.__$u;a&&(n.__$u=void 0,a.d())}}e(t)}),Zc("__h",function(e,t,s,r){(r<3||9===r)&&(t.__$f|=2),e(t,s,r)}),ss.Component.prototype.shouldComponentUpdate=function(e,t){if(this.__R)return!0;var s=this.__$u,r=s&&void 0!==s.s;for(var i in t)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){var o=2&this.__$f;if(!(r||o||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(r||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var n in e)if("__source"!==n&&e[n]!==this.props[n])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};"undefined"==typeof requestAnimationFrame&&setTimeout;var el,tl=function(e){queueMicrotask(function(){queueMicrotask(e)})};function sl(){xc(function(){for(var e;e=Yc.shift();)Wc.call(e)})}function rl(){1===Yc.push(this)&&(ss.options.requestAnimationFrame||tl)(sl)}!function(e){e.NotRendered="NotRendered",e.Submit="Submit",e.Navigation="Navigation"}(el||(el={}));const il=()=>{const e=Rc(null),t=Rc(null),s=qc(()=>((e,t)=>{var s;if(!e||!t)return{type:el.NotRendered};const r=t.isHidden||!1,i=null!==(s=t.submitButtonText)&&void 0!==s?s:e.submitButtonText;return e.hasNavigationButtons&&!e.isInitialView?t.shouldRender?{backText:e.backButtonText,isBackEnabled:!e.isFirstSurveyPoint,isHidden:r,isSubmitEnabled:t.canSubmit,submitText:i,type:el.Navigation}:{type:el.NotRendered}:t.shouldRender?{isHidden:r,isSubmitEnabled:t.canSubmit,submitText:i,type:el.Submit}:{type:el.NotRendered}})(e.value,t.value));return{pointConfig:t,submitState:s,surveyConfig:e}},ol=(0,ss.createContext)(null),nl=()=>{const e=ys(ol);if(!e)throw new Error("useSubmitSignals must be used within SubmitSignalsProvider");return e},al=({children:e})=>{const t=gs(()=>il(),[]),s=gs(()=>(e=>{const t=e,s=new Map;let r=null,i=!1,o=!1;const n=()=>{if(0===s.size)return void(t.pointConfig.value=null);const e=[...s.values()];t.pointConfig.value={canSubmit:s.size>1||e.every(e=>e.config.canSubmit),isHidden:i,shouldRender:e.some(e=>e.config.shouldRender),submitButtonText:1===s.size?e[0].config.submitButtonText:void 0}},a=()=>{t.surveyConfig.value=null,t.pointConfig.value=null,s.clear(),r=null,i=!1},c=()=>{var e;const t=new Map,r=[...s];for(const[s,i]of r){const r=null===(e=i.submit)||void 0===e?void 0:e.call(i);r&&t.set(s,r)}return t};return{clearSubmitButtonState:a,handleSubmit(){o=!1,r?r():c(),o||a()},hideSubmitButton(e){i=e,n()},removePoint(e){s.delete(e),n()},setGroupSubmitHandler(e){r=e},skipClearState(){o=!0},triggerAllSubmits:c,updatePointConfig(e,t,r){var i,o;s.set(e,{config:t,submit:null!==(o=null!=r?r:null===(i=s.get(e))||void 0===i?void 0:i.submit)&&void 0!==o?o:null}),n()},updateSurveyConfig(e){t.surveyConfig.value=e}}})(t),[t]);return(0,ss.h)(ol.Provider,{value:t},(0,ss.h)(Ua.Provider,{value:s},e))};var cl=s(635);const ll=(0,cl.N)(e=>{var t;return{isPreview:e.isPreview,state:e,surveyId:null===(t=e.surveyState.survey)||void 0===t?void 0:t.id}})(({surveyId:e,children:t,state:s})=>{const{update:r,surveyUpdated:i,isWidget:o,isFeedback:n,triggerConfigUpdate:a,isPreview:c,surveyType:l}=ys(Wo),{surveyEvent:v}=ys(Xo),{isCacheOutdated:_}=Qa(),u=Me.getStore(l);return ms(()=>{var t;if(!i||!e||!_(e))return;const a=Array.isArray(r.surveys)&&r.surveys.length>0?r.surveys.find(t=>t.id===e):null,c=o||n?a:r.survey;if(!c)return u.setState(Object.assign(Object.assign({},s),{surveyState:Object.assign(Object.assign({},s.surveyState),{survey:null}),update:r})),void u.action(Kn)();const v=o||n?null==a?void 0:a.theme_id:null===(t=r.survey)||void 0===t?void 0:t.theme_id,d=r.themes.find(e=>e.id===v);let p=s.surveyState.theme;d&&(p=fr.extendTheme(d),fr.reloadCss(p,l));const m=o||n?null==a?void 0:a.points[0]:r.survey.points[0],h=null==a?void 0:a.settings;let b=!1;(o||n)&&(b=qt.isWidthMobile()?!!(null==h?void 0:h.run_minimalized_mobile):!!(null==h?void 0:h.run_minimalized)),u.setState(Object.assign(Object.assign({},s),{surveyState:Object.assign(Object.assign({},s.surveyState),{isAlreadyAnswered:!1,isFinished:!1,isMinimized:b,isOverlayActive:!(!o&&!n||!h)&&!!h.overlay,pointsAnswered:[],pointsDisplayed:[{point:m}],pointsForward:[],responseUuid:"",survey:c,theme:p}),update:r}))},[i,r,s.surveyState]),ms(()=>{(null==v?void 0:v.eventType)===Qt.shouldUpdate&&a&&!c&&a()},[v]),t}),vl=()=>{const{pageSurvey:e}=ys(Wo),t=$a(),s=Za(p.PageSurvey,e);return ms(()=>{t.clearSubmitButtonState()},[t]),(0,ss.h)("div",{className:"sv__opened-in-new-tab"},(0,ss.h)("img",{alt:"Refresh icon",src:`${$.getState().surveysStaticUrl}/images/refresh.svg`}),(0,ss.h)("p",null,(null==s?void 0:s.opened_text)||"The survey was opened in a new tab. Refresh this page to continue filling out this survey."))},_l=e=>{const{isPreview:t,surveyType:s}=ys(Wo),r=bs(void 0),i=bs(void 0),[n,a]=ds(!1);return ms(()=>{if(t||!e)return;const n=`${re.tabId}:${e}`,c=o();return i.current=c,L.getStore(s).set(n,c),r.current=setInterval(()=>{(()=>{if(t||!e)return void a(!1);const r=`${re.tabId}:${e}`;L.getStore(s).get(r)!==i.current&&a(!0)})()},1e3),()=>{r.current&&clearInterval(r.current)}},[e,t,s]),{isMultiTab:n}},ul=(0,cl.N)(e=>{var t;return{surveyId:null===(t=e.surveyState.survey)||void 0===t?void 0:t.id}})(({children:e,surveyId:t})=>{const{isPage:s}=ys(Wo),{isMultiTab:r}=_l(t);return r?s?(0,ss.h)(vl,null):null:e});var dl=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const pl=Date.UTC(2026,0,28),ml=()=>L.getStore(p.WidgetSurvey);function hl(e){if("undefined"==typeof window)return null;try{return ml().get(`${Ot}${e}`,!0)}catch(e){return null}}function bl(e,t,s){return dl(this,void 0,void 0,function*(){const{invalidateBefore:r}=null!=s?s:{};if(void 0!==r){const t=hl(e);null!==t&&("number"!=typeof t.timestamp||t.timestamp<r)&&function(e){if("undefined"!=typeof window)try{ml().remove(`${Ot}${e}`,!0)}catch(e){}}(e)}const i=function(e){const t=hl(e);return t?t.data:null}(e);if(i)return i;const o=yield t();return function(e,t){if("undefined"!=typeof window)try{ml().set(`${Ot}${e}`,{data:t,timestamp:Date.now()},!0)}catch(e){}}(e,o),o})}var gl=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};function fl(e,t){Me.getStore(e.storeType).setState({tabId:t})}function yl(e,t){Me.getStore(e.storeType).setState({isPreview:t})}function wl(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wa),jr),Vo),ao),ko),Ji),{setTabId:fl})}const xl=e=>{const t=L.getStore(O.EventStore).get(E.events)||[],s=e.filter(e=>{return s=e.name,!t.some(e=>e.name===s);var s});return[...t,...s]},Sl=e=>{const t=L.getStore(e),s=t.get(ee.answers),r=t.get(E.events),i=pa.getState().visitor;i.attributes&&Object.keys(i.attributes).length&&Sr(Object.assign(Object.assign({},i),{attributes:{}})),s&&Object.keys(s).length&&t.remove(ee.answers),r&&Array.isArray(r)&&r.length&&t.remove(E.events),(e=>{const t=L.getStore(e);let s=0;const r=setInterval(()=>{var i,o;const n=null===(o=null===(i=Me.getStore(e).getState().surveyState)||void 0===i?void 0:i.survey)||void 0===o?void 0:o.id;if(n)return t.remove(`${re.state}:${n}`),void clearInterval(r);++s>=5&&clearInterval(r)},1e3)})(e)};var kl=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Tl=(e,t)=>kl(void 0,void 0,void 0,function*(){var s,r,i,n,a;const c=Me.getStore(e),{surveys:l,integrations:_,targeting_events:u=[],targeting_events_enabled:d,permissions:p}=t;if(ze()&&Sl(e),c.action(Cr)(j.inBrazePreview()?[]:_),c.action(Nr)(p||null),c.action(Lo)(null!==(s=null==p?void 0:p.surveys_screenshots)&&void 0!==s&&s),v.setState({events:xl(u),isEnabled:null!=d&&d}),(null===(r=window._sva)||void 0===r?void 0:r.responseTraits)&&c.action(xo)(window._sva.responseTraits),(null===(i=window._sva)||void 0===i?void 0:i.forcedLanguage)&&We.getVisit(e).setForcedLanguage(window._sva.forcedLanguage),null===(n=window._sva)||void 0===n?void 0:n.themeMode){const t=fa(window._sva.themeMode,!0);null!==t&&c.action(Bo)(t,e)}c.action(fl)(o()),c.action(Or)(l),No.onThemeChange(()=>{const t=c.getState();t.surveyState.themeMode===Oe.Auto&&t.surveyState.survey&&jo(Object.assign(Object.assign({},t),{storeType:e}),t.surveyState.survey)});(null==l?void 0:l.some(e=>e.settings.format===S.Braze))&&!0===(null===(a=window._sva)||void 0===a?void 0:a.useBrazeIframeClipper)&&(null!=fo||(fo=new bo))}),Al=(e,t)=>kl(void 0,void 0,void 0,function*(){var s,r;const i=Me.getStore(e),o=t||window._svd||{};if(0===Object.keys(o).length)return;const{audiences:n,themes:a,translations:c}=o,l=c&&Object.keys(c).length>0;t||(l?yield function(){return gl(this,void 0,void 0,function*(){try{const[e,t]=yield Promise.all([bl(Et.TLD_TO_LANGUAGE_MAP,()=>gl(this,void 0,void 0,function*(){const{data:e}=yield V($.getState().surveysStaticUrl).get(`/data/${Et.TLD_TO_LANGUAGE_MAP}.json`);return e}),{invalidateBefore:pl}),bl(Et.LANGUAGE_CODES,()=>gl(this,void 0,void 0,function*(){const{data:e}=yield V($.getState().surveysStaticUrl).get(`/data/${Et.LANGUAGE_CODES}.json`);return e}))]);Mt({languageCodes:t,tldToLanguageMap:e})}catch(e){}})}().catch(()=>{}):function(){if("undefined"!=typeof window)try{const e=ml();e.remove(`${Ot}${Et.TLD_TO_LANGUAGE_MAP}`,!0),e.remove(`${Ot}${Et.LANGUAGE_CODES}`,!0),Mt({languageCodes:null,tldToLanguageMap:null})}catch(e){}}()),i.action(Er)(null!=n?n:[]),i.action(Mr)(null!==(s=null==t?void 0:t.workspaceKey)&&void 0!==s?s:null===(r=window._svc)||void 0===r?void 0:r.workspaceKey),i.action(Pr)(a),i.action(Ir)(c),i.action(yl)(!!t),t||(function(e,t){const s=new _o(t),r=new da(s,e);Me.getStore(e).setState({backendService:r,storageService:s})}(e,window._svc.workspaceKey),(e=>{var t;const s=null===(t=e.permissions)||void 0===t?void 0:t.targeting_javascript_api,r=()=>{console.warn("The _sva object is unavailable on your current plan.\n \n Upgrade your account to get access to JavaScript targeting feature")};"undefined"!=typeof window?(window._sva=Object.assign(Object.assign({},window._sva),Object.keys(Na).reduce((e,t)=>{const i=Na[t],o="setVisitorTraits"===t||"setResponseTraits"===t||s?i:r;return Object.assign(Object.assign({},e),{[t]:o})},{})),window._svx={getEventsState:()=>v.getState(),getState:e=>{const t=e===Oa.FeedbackSurvey?p.FeedbackButton:p.WidgetSurvey;return Object.assign(Object.assign({},Me.getStore(t).getState()),{visit:We.getVisit(t).get()})},getSurvey:()=>{const e=Me.getStore(p.WidgetSurvey).getState().surveyState.survey,t=Me.getStore(p.FeedbackButton).getState().surveyState.survey;return Object.assign(Object.assign({},e&&{widget:{id:e.id,name:e.name}}),t&&{feedback:{id:t.id,name:t.name}})},getUrlState:()=>$.getState(),getVisitorState:()=>pa.getState(),showSurveyPoint:e=>{Ca.forEach(t=>{var s;const r=Me.getStore(t),i=null===(s=r.getState().surveyState.survey)||void 0===s?void 0:s.points.find(({id:t})=>t===Number(e));i&&r.setState({surveyState:Object.assign(Object.assign({},r.getState().surveyState),{pointsDisplayed:[{point:i}]})})})}}):console.warn("Survey API is available only in the browser environment")})(o)),br(e)&&o.surveys?yield Tl(e,o):o.survey&&(yield((e,t)=>kl(void 0,void 0,void 0,function*(){var s;const r=Me.getStore(e),i=Object.assign({},t);Be.params[Ue.multiple_responses]&&(i.survey.kiosk_enabled=!0),ma(),ho(i.survey.settings.kiosk_enabled?uo.kiosk:uo.normal),r.action(Cr)(i.integrations),r.action(Yi)(),r.action(So)(),Be.replaceWindowUrl(),(null===(s=window._sva)||void 0===s?void 0:s.traits)&&pa.action(Gi)(window._sva.traits),r.action($n)(i.survey)}))(e,o)),t||function(){const e=document.createEvent("Event");e.initEvent("SurvicateReady",!0,!0),window._svc.initialized=!0,EventTarget.prototype.dispatchEvent.call(window,e)}()}),Ol=e=>{const{surveyType:t,initialSVDConfig:s}=ys(Wo),[r,i]=ds(0),o=Me.getStore(t);return hs(()=>{o.setState({storeType:t}),Al(t,s),i(e=>e+1)},[t,s]),(0,ss.h)(cl.K,{key:r,store:o},e.children)},El=(0,cl.N)(e=>{var t;return{surveyId:null===(t=e.surveyState.survey)||void 0===t?void 0:t.id}})(e=>{const{surveyId:t}=e,{surveyEvent:s}=ys(Xo),{surveyType:r}=ys(Wo),i=bs(!0),{retrieveState:o,preserveState:n}=Qa(),[a,c]=ds(null);return ms(()=>{var t;o(null===(t=Me.getStore(r).getState().surveyState.survey)||void 0===t?void 0:t.id),c(e.children)},[t]),ms(()=>{i.current?i.current=!1:s&&s.eventType!==Qt.closed&&s.eventType!==Qt.finished&&s.eventType!==Qt.shouldUpdate&&n(t)},[s]),a}),Pl=({surveyType:e,surveyComponent:t,initialConfig:s,workspaceKey:r})=>(0,ss.h)(Ko,{initialSVDConfig:s,surveyType:e,workspaceKey:r},(0,ss.h)(al,null,(0,ss.h)(pc,null,(0,ss.h)(oc,null,(0,ss.h)(Ol,null,(0,ss.h)(Jo,null,(0,ss.h)(El,null,(0,ss.h)(ll,null,(0,ss.h)(ul,null,(0,ss.h)(fc,null,t))))))))));var Cl=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Ml="survicate-box",Il=(e,t)=>Cl(void 0,void 0,void 0,function*(){var s,r;if(de.initGlobalErrorsWatch(e),"undefined"==typeof window||"undefined"==typeof document)return;const{_svc:i}=window;let o;(null==i?void 0:i.surveysStaticUrl)&&$.setState({surveysStaticUrl:i.surveysStaticUrl}),(null==i?void 0:i.respondentUrl)&&$.setState({respondentUrl:i.respondentUrl});try{if(o=yield document.body?Promise.resolve(document.body):new Promise((e,t)=>{const s=setTimeout(()=>{i(),t(new Error("Timed out waiting for document.body"))},1e4);let r=null;const i=()=>{clearTimeout(s),r&&(clearInterval(r),r=null)},o=()=>{i(),e(document.body)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o,{once:!0}):r=setInterval(()=>{document.body&&o()},100)}),!o)return}catch(e){const t=e instanceof Error?e:new Error("Unknown error");return void de.warn(`Failed to load survey - unable to get document.body. Document ready state:\n ${document.readyState}, body exists: ${!!document.body}, in iframe: ${window.self!==window.top},\n error: ${null!==(s=null==t?void 0:t.message)&&void 0!==s?s:"Unknown error"}\n installation method: ${null===(r=null===window||void 0===window?void 0:window._svx)||void 0===r?void 0:r.installation}`)}const n=document.createElement("div");n.id=Ml,br(e)&&(n.className=`${Ml}-${e}`),document.body.appendChild(n),(0,ss.render)((0,ss.h)(Pl,{surveyComponent:t,surveyType:e}),n)}),Nl="Б",jl={ar:"ب",be:Nl,bg:Nl,el:"Σ",he:"א",ja:"あ",ko:"가",ru:Nl,th:"ก",uk:Nl,zh:"字"},Rl=({fontFamily:e,backgroundImageUrl:t,language:s})=>{const r={fontFamily:`'${e||lr}'`,height:"1px",left:"-9999px",overflow:"hidden",position:"absolute",top:"-9999px",visibility:"hidden",width:"1px"};t&&(r.backgroundImage=`url("${t}")`);const i=(e=>{var t;return e&&"string"==typeof e&&null!==(t=jl[e.slice(0,2).toLowerCase()])&&void 0!==t?t:"A"})(s);return(0,ss.h)("div",{"aria-hidden":"true",style:r},(0,ss.h)("span",{style:{fontStyle:"normal",fontWeight:400}},i),(0,ss.h)("span",{style:{fontStyle:"normal",fontWeight:600}},i),(0,ss.h)("span",{style:{fontStyle:"italic",fontWeight:400}},i))},Dl=(e,t,s={})=>{const{waitForBackgroundImage:r=!0}=s,[i,o]=ds(!1);return ms(()=>{var s,i,n;if(!t)return void o(!0);const a=_r(t)&&null!==(i=null===(s=document.fonts)||void 0===s?void 0:s.ready)&&void 0!==i?i:Promise.resolve(),c=r&&(null===(n=null==e?void 0:e.background_url)||void 0===n?void 0:n.trim()),l=c?(v=c,new Promise(e=>{const t=new Image,s=()=>{requestAnimationFrame(()=>{e()})};t.onload=s,t.onerror=()=>e(),t.src=v,t.complete&&t.naturalWidth&&s()})):Promise.resolve();var v;const _=new Promise(e=>{setTimeout(e,3e3)});Promise.race([Promise.all([a,l]),_]).then(()=>{requestAnimationFrame(()=>o(!0))})},[e,t,r]),i};const Ll=class{static watchTabs(e){const t=s=>{"Tab"!==s.key&&"Tab"!==s.code||(window.removeEventListener("keydown",t),e())};window.addEventListener("keydown",t)}};const Fl=(0,cl.N)(({surveyState:e})=>({overlay:e.survey&&e.isOverlayActive?e.survey.settings.overlay:null}),wl)(({overlay:e,hideOverlay:t})=>{if(!e)return null;const s={survicate_dark_Wdv2U:e===g.dark,survicate_light_JL8G_:e===g.light,survicate_overlay_stIWL:!0,sv__overlay:!0,"sv__overlay--dark":e===g.dark,"sv__overlay--light":e===g.light};return(0,ss.h)("div",{className:qa(s),onClick:t,onKeyDown:t,role:"button",tabIndex:0})}),zl=Fl;function ql(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"10px",height:"7px",viewBox:"0 0 10 7",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},t),["\n ",(0,ss.h)("title",{},["Path"]),"\n ",(0,ss.h)("g",{id:"svg-CaretDownIcon-OdlnnTv",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},["\n ",(0,ss.h)("g",{id:"svg-CaretDownIcon-1PxQxlW",transform:"translate(-5.000000, -7.000000)",fill:"#161616"},["\n ",(0,ss.h)("polygon",{id:"svg-CaretDownIcon-3jY1JFX",points:"13.825 7.15833333 10 10.975 6.175 7.15833333 5 8.33333333 10 13.3333333 15 8.33333333"},[]),"\n "]),"\n "]),"\n"])}function Ul(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"22",height:"20",viewBox:"12 14 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n ",(0,ss.h)("path",{d:"M23.9 34L28.45 22H30.55L35.1 34H33L31.925 30.95H27.075L26 34H23.9ZM16 31L14.6 29.6L19.65 24.55C19.0667 23.9667 18.5375 23.3 18.0625 22.55C17.5875 21.8 17.15 20.95 16.75 20H18.85C19.1833 20.65 19.5167 21.2167 19.85 21.7C20.1833 22.1833 20.5833 22.6667 21.05 23.15C21.6 22.6 22.1708 21.8292 22.7625 20.8375C23.3542 19.8458 23.8 18.9 24.1 18H13V16H20V14H22V16H29V18H26.1C25.75 19.2 25.225 20.4333 24.525 21.7C23.825 22.9667 23.1333 23.9333 22.45 24.6L24.85 27.05L24.1 29.1L21.05 25.975L16 31ZM27.7 29.2H31.3L29.5 24.1L27.7 29.2Z",fill:"currentColor"},[]),"\n"])}Object.defineProperty(ql,"name",{value:"default",configurable:!0}),Object.defineProperty(Ul,"name",{value:"default",configurable:!0});const $l=e=>e?e.charAt(0).toLocaleUpperCase()+e.slice(1):e,Bl=e=>{var t;if(null==e||"string"!=typeof e)return"";const s=e.toLowerCase().split(/[-_]/),r=s[0],i=s[1];if(r.length<2)return e;try{const s=null!==(t=new Intl.DisplayNames([r],{type:"language"}).of(r))&&void 0!==t?t:e,o=$l(s);if(i&&2===i.length){const e=new Intl.DisplayNames([r],{type:"region"}).of(i.toUpperCase());return`${o} (${e?$l(e):i.toUpperCase()})`}return o}catch(t){return e}},Vl=({currentLanguage:e,defaultLanguage:t,languages:s,onLanguageChange:r,variant:i="compact"})=>{var o;const[n,a]=ds(!1),[c,l]=ds(0),v=bs(null),_=bs(null),u=bs([]),d=null!==(o=null!=e?e:t)&&void 0!==o?o:null,p=d?Math.max(0,s.indexOf(d)):0,m=fs(e=>{r(e),a(!1)},[r]),h=fs(()=>{a(!1)},[]),b=fs(e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),a(e=>!e);break;case"Escape":e.preventDefault(),a(!1)}},[]),g=fs(e=>{var t,r;const i=s.length-1;switch(e.key){case"Escape":e.preventDefault(),h();break;case"Enter":case" ":e.preventDefault(),m(null!==(r=null!==(t=s[c])&&void 0!==t?t:d)&&void 0!==r?r:s[0]);break;case"ArrowDown":e.preventDefault(),l(e=>e>=i?0:e+1);break;case"ArrowUp":e.preventDefault(),l(e=>e<=0?i:e-1);break;case"Home":e.preventDefault(),l(0);break;case"End":e.preventDefault(),l(i)}},[s,c,d,m,h]);ms(()=>{if(!n)return;const e=e=>{v.current&&!v.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[n]),ms(()=>{if(!n)return;l(p);const e=u.current[p];e&&e.focus()},[n,p]);const f=bs(!1);if(ms(()=>{var e;n?f.current=!0:f.current&&(f.current=!1,null===(e=_.current)||void 0===e||e.focus())},[n]),ms(()=>{if(!n)return;const e=u.current[c];null==e||e.focus()},[n,c]),!s.length||!d)return null;const y="full"===i;return(0,ss.h)("div",{className:qa({"sv__language-selector":!0,"sv__language-selector--full":y}),"data-testid":"language-selector",ref:v},(0,ss.h)("button",{"aria-expanded":n,"aria-haspopup":"listbox","aria-label":"Select survey language",className:qa({"sv__language-selector__trigger":!0,"sv__language-selector__trigger--full":y}),onClick:()=>a(e=>!e),onKeyDown:b,ref:_,tabIndex:0,type:"button"},y?(0,ss.h)("span",{className:"sv__language-selector__trigger-inner"},(0,ss.h)("span",{className:"sv__language-selector__label"},Bl(d)),(0,ss.h)(ql,{"aria-hidden":"true",className:qa({"sv__language-selector__chevron":!0,"sv__language-selector__chevron--open":n})})):(0,ss.h)(Ul,{"aria-hidden":"true",className:"sv__language-selector__icon"})),n&&(0,ss.h)("ul",{"aria-label":"Survey language options",className:"sv__language-selector__list",role:"listbox"},s.map((e,t)=>(0,ss.h)("li",{"aria-selected":e===d,className:qa({"sv__language-selector__option":!0,"sv__language-selector__option--selected":e===d}),dir:Ft(e)?"rtl":"ltr",key:e,onClick:()=>m(e),onKeyDown:g,ref:e=>{u.current[t]=e},role:"option",tabIndex:c===t?0:-1},Bl(e)))))},Hl=e=>e===Ae.mobile||e!==Ae.desktop&&qt.isWidthMobile();var Wl;!function(e){e.length="length",e.iterable="iterable"}(Wl||(Wl={}));const Kl=e=>e.type===Wl.iterable?(e=>{if(!e)return console.warn("Iterable is null or undefined. Returning []."),[];try{return Array.from(e)}catch(e){return console.error("Failed to convert iterable:",e),[]}})(e.iterable):(({length:e,mapper:t,maxLength:s=1e4})=>{if(null==e)return console.warn("Length is null or undefined. Returning []."),[];const r=Number(e);if(!Number.isSafeInteger(r)||Number.isNaN(r))return console.warn("Length is not a safe integer. Returning [].",{length:e}),[];const i=Math.min(Math.max(0,r),s);i!==r&&console.warn("Adjusted array length.",{adjustedLength:i,originalLength:e});try{return t?Array.from({length:i},t):Array.from({length:i})}catch(e){return console.error("Failed to create array.",{error:e,length:i}),[]}})(e),Gl=e=>"touches"in e&&e.touches.length>0?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY},Yl=["#sv-remove-button","#sv-save-button","#sv-color-picker-button","#sv-close-button"],Zl="sv-screenshot-controls",Ql=()=>{const e=document.documentElement.cloneNode(!0);var t;t=e,Yl.forEach(e=>{t.querySelectorAll(e).forEach(e=>{(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)})});const s=e.querySelector("head");if(!s)return e.outerHTML;(e=>{e.querySelectorAll('link[rel="stylesheet"], style').forEach(e=>{var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)})})(s);const r=(()=>{let e="";return Kl({iterable:document.styleSheets,type:Wl.iterable}).forEach(t=>{try{Kl({iterable:t.cssRules,type:Wl.iterable}).forEach(t=>{e+=t.cssText+"\n"})}catch(s){if(console.error(`Could not get css rules due to: ${s}`),!t.href)return;e+=`@import url("${t.href}");\n`}}),e})();return((e,t)=>{var s;const r=document.createElement("style");r.id="sv-extracted-styles",r.textContent=t;const i=null===(s=window._sva)||void 0===s?void 0:s.nonce;i&&r.setAttribute("nonce",i),e.appendChild(r)})(s,r),(e=>{document.querySelectorAll('link[rel="stylesheet"]').forEach(t=>{const s=t.cloneNode(!0);e.appendChild(s)})})(s),(e=>{const t=document.querySelector(".sv__screenshot-button-overlay__rectangles");if(!t)return;const s=e.querySelector("body");s&&s.appendChild(t.cloneNode(!0))})(e),`<!DOCTYPE html>\n${e.outerHTML}`};var Xl=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Jl=(0,ss.createContext)(null),ev=({pointId:e,children:t})=>{var s;const{surveyType:r}=ys(Wo),i=Me.getStore(r),{surveyState:{theme:n},previewDevice:a}=i.getState(),c=Hl(a),l=bs(""),[v,_]=ds(!1),[u,d]=ds(null),[p,m]=ds(null),[h,b]=ds(!1),[g,f]=ds(!1),[y,w]=ds((null===(s=null==n?void 0:n.color_scheme)||void 0===s?void 0:s.button)||"#6f27f6");ms(()=>g?(l.current=document.body.style.overflow,void(document.body.style.overflow="hidden")):(document.body.style.overflow=l.current,()=>{document.body.style.overflow=l.current}),[g]);const x=()=>Xl(void 0,void 0,void 0,function*(){(()=>{const e=document.getElementById(Zl);if(E(!1),e)return;const t=document.createElement("div");t.id=Zl;const s=document.querySelector(`.survicate-box-${r}`);null==s||s.appendChild(t)})(),f(!0)}),S=e=>{const t=Gl(e);_(!0),d(t),m(null),b(!1)},k=()=>{d(null),m(null),b(!1)},T=e=>{v&&u&&m(Gl(e))},A=()=>{_(!1),b(!0)},O=()=>Xl(void 0,void 0,void 0,function*(){const t={height:window.innerHeight,html:Ql(),scroll_to:window.scrollY,user_agent:`${c?Ae.mobile:Ae.desktop}`,width:window.innerWidth};i.action(Ro)({config:t,id:o(),pointId:e})}),E=e=>{Ca.forEach(t=>{const s=Me.getStore(t);s.setState({surveyState:Object.assign(Object.assign({},s.getState().surveyState),{isHidden:!e})})})},P=()=>{E(!0),(()=>{const e=document.getElementById(Zl);null==e||e.remove()})(),f(!1),d(null),m(null),b(!1)},C=()=>{i.action(Ro)(null)},M=gs(()=>({closeOverlay:P,endPosition:p,handleEnd:A,handleMove:T,handleStart:S,isDrawing:v,removeScreenshot:C,removeSelection:k,saveScreenshot:O,selectedColor:y,selectionCompleted:h,setSelectedColor:w,showOverlay:g,startCapturingScreenshot:x,startPosition:u}),[p,v,y,h,g,u]);return(0,ss.h)(Jl.Provider,{value:M},t)},tv=({content:e,children:t,style:s,shouldShow:r,isMobile:i,showCaret:o})=>{const[n,a]=ds(!1),c={sv__tooltip:!0,"sv__tooltip--with-caret":!!o};return(0,ss.h)("div",{"aria-describedby":"tooltip-content",className:"sv__tooltip-container",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)},t,(r||n&&!i)&&(0,ss.h)("div",{className:qa(c),id:"tooltip-content",role:"tooltip",style:s},e))};function sv(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},t),["\n ",(0,ss.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.00008 15.8333C5.00008 16.75 5.75008 17.5 6.66675 17.5H13.3334C14.2501 17.5 15.0001 16.75 15.0001 15.8333V5.83333H5.00008V15.8333ZM15.8334 3.33333H12.9167L12.0834 2.5H7.91675L7.08341 3.33333H4.16675V5H15.8334V3.33333Z",fill:"#6F27F6"},[]),"\n ",(0,ss.h)("mask",{id:"svg-RemoveScreenshotIcon-1wvi7wb",style:"mask-type:luminance",maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"12",height:"16"},["\n ",(0,ss.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.00008 15.8333C5.00008 16.75 5.75008 17.5 6.66675 17.5H13.3334C14.2501 17.5 15.0001 16.75 15.0001 15.8333V5.83333H5.00008V15.8333ZM15.8334 3.33333H12.9167L12.0834 2.5H7.91675L7.08341 3.33333H4.16675V5H15.8334V3.33333Z",fill:"white"},[]),"\n "]),"\n ",(0,ss.h)("g",{mask:"url(#svg-RemoveScreenshotIcon-1wvi7wb)"},["\n "]),"\n"])}function rv(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n",(0,ss.h)("path",{d:"M4.16667 13.3333H2.5V17.5H6.66667V15.8333H4.16667V13.3333ZM2.5 6.66667H4.16667V4.16667H6.66667V2.5H2.5V6.66667ZM15.8333 15.8333H13.3333V17.5H17.5V13.3333H15.8333V15.8333ZM13.3333 2.5V4.16667H15.8333V6.66667H17.5V2.5H13.3333Z",fill:"#6F27F6"},[]),"\n",(0,ss.h)("path",{d:"M9.99996 10.8334C10.4602 10.8334 10.8333 10.4603 10.8333 10.0001C10.8333 9.53984 10.4602 9.16675 9.99996 9.16675C9.53972 9.16675 9.16663 9.53984 9.16663 10.0001C9.16663 10.4603 9.53972 10.8334 9.99996 10.8334Z",fill:"#6F27F6"},[]),"\n",(0,ss.h)("path",{d:"M8.75004 5.83325L7.98754 6.66659H6.66671C6.20837 6.66659 5.83337 7.04159 5.83337 7.49992V12.4999C5.83337 12.9583 6.20837 13.3333 6.66671 13.3333H13.3334C13.7917 13.3333 14.1667 12.9583 14.1667 12.4999V7.49992C14.1667 7.04159 13.7917 6.66659 13.3334 6.66659H12.0125L11.25 5.83325H8.75004ZM10 12.0833C8.85004 12.0833 7.91671 11.1499 7.91671 9.99992C7.91671 8.84992 8.85004 7.91659 10 7.91659C11.15 7.91659 12.0834 8.84992 12.0834 9.99992C12.0834 11.1499 11.15 12.0833 10 12.0833Z",fill:"#6F27F6"},[]),"\n"])}function iv(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},t),["\n ",(0,ss.h)("path",{d:"M14.1667 9.1665V9.1665C11.8655 9.1665 10 7.30102 10 4.99984V4.99984V4.1665H4.16667C3.25 4.1665 2.5 4.9165 2.5 5.83317V15.8332C2.5 16.7498 3.25 17.4998 4.16667 17.4998H14.1667C15.0833 17.4998 15.8333 16.7498 15.8333 15.8332V9.1665H14.1667ZM4.16667 15.8332L6.66667 12.4998L8.33333 14.9998L10.8333 11.6665L14.1667 15.8332H4.16667Z",fill:"#6F27F6"},[]),"\n ",(0,ss.h)("path",{d:"M14.1666 1.6665C12.3266 1.6665 10.8333 3.15984 10.8333 4.99984C10.8333 6.83984 12.3266 8.33317 14.1666 8.33317C16.0066 8.33317 17.4999 6.83984 17.4999 4.99984C17.4999 3.15984 16.0066 1.6665 14.1666 1.6665ZM13.4999 6.6665L11.8333 4.99984L12.3033 4.52984L13.4999 5.72317L16.0299 3.19317L16.4999 3.6665L13.4999 6.6665Z",fill:"#6F27F6"},[]),"\n"])}function ov(e,t){for(var s in t)e[s]=t[s];return e}function nv(e,t){for(var s in e)if("__source"!==s&&!(s in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}Object.defineProperty(sv,"name",{value:"default",configurable:!0}),Object.defineProperty(rv,"name",{value:"default",configurable:!0}),Object.defineProperty(iv,"name",{value:"default",configurable:!0});function av(e,t){this.props=e,this.context=t}(av.prototype=new ss.Component).isPureReactComponent=!0,av.prototype.shouldComponentUpdate=function(e,t){return nv(this.props,e)||nv(this.state,t)};var cv=ss.options.__b;ss.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cv&&cv(e)};var lv="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function vv(e){function t(t){var s=ov({},t);return delete s.ref,e(s,t.ref||null)}return t.$$typeof=lv,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var _v=function(e,t){return null==e?null:(0,ss.toChildArray)((0,ss.toChildArray)(e).map(t))},uv=(ss.toChildArray,ss.options.__e);ss.options.__e=function(e,t,s,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=s.__e,t.__k=s.__k),i.__c(e,t);uv(e,t,s,r)};var dv=ss.options.unmount;function pv(e,t,s){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=ov({},e)).__c&&(e.__c.__P===s&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return pv(e,t,s)})),e}function mv(e,t,s){return e&&s&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return mv(e,t,s)}),e.__c&&e.__c.__P===t&&(e.__e&&s.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=s)),e}function hv(){this.__u=0,this.o=null,this.__b=null}function bv(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function gv(){this.i=null,this.l=null}ss.options.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),dv&&dv(e)},(hv.prototype=new ss.Component).__c=function(e,t){var s=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(s);var i=bv(r.__v),o=!1,n=function(){o||r.__z||(o=!0,s.__R=null,i?i(c):c())};s.__R=n;var a=s.__P;s.__P=null;var c=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=mv(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=a,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(n,n)},hv.prototype.componentWillUnmount=function(){this.o=[]},hv.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var s=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=pv(this.__b,s,r.__O=r.__P)}this.__b=null}var i=t.__a&&(0,ss.createElement)(ss.Fragment,null,e.fallback);return i&&(i.__u&=-33),[(0,ss.createElement)(ss.Fragment,null,t.__a?null:e.children),i]};var fv=function(e,t,s){if(++s[1]===s[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(s=e.i;s;){for(;s.length>3;)s.pop()();if(s[1]<s[0])break;e.i=s=s[2]}};function yv(e){return this.getChildContext=function(){return e.context},e.children}function wv(e){var t=this,s=e.h;if(t.componentWillUnmount=function(){(0,ss.render)(null,t.v),t.v=null,t.h=null},t.h&&t.h!==s&&t.componentWillUnmount(),!t.v){for(var r=t.__v;null!==r&&!r.__m&&null!==r.__;)r=r.__;t.h=s,t.v={nodeType:1,parentNode:s,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:s.namespaceURI,insertBefore:function(e,s){this.childNodes.push(e),t.h.insertBefore(e,s)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}(0,ss.render)((0,ss.createElement)(yv,{context:t.context},e.__v),t.v)}function xv(e,t){var s=(0,ss.createElement)(wv,{__v:e,h:t});return s.containerInfo=t,s}(gv.prototype=new ss.Component).__a=function(e){var t=this,s=bv(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),fv(t,e,r)):i()};s?s(o):o()}},gv.prototype.render=function(e){this.i=null,this.l=new Map;var t=(0,ss.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var s=t.length;s--;)this.l.set(t[s],this.i=[1,0,this.i]);return e.children},gv.prototype.componentDidUpdate=gv.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,s){fv(e,s,t)})};var Sv="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,kv=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Tv=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Av=/[A-Z0-9]/g,Ov="undefined"!=typeof document,Ev=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};ss.Component.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ss.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Pv=ss.options.event;ss.options.event=function(e){return Pv&&(e=Pv(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Cv={configurable:!0,get:function(){return this.class}},Mv=ss.options.vnode;ss.options.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,s=e.type,r={},i=-1==s.indexOf("-");for(var o in t){var n=t[o];if(!("value"===o&&"defaultValue"in t&&null==n||Ov&&"children"===o&&"noscript"===s||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===n?n="":"translate"===a&&"no"===n?n=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==s&&"textarea"!==s||Ev(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Tv.test(o)&&(o=a):a=o="oninput":i&&kv.test(o)?o=o.replace(Av,"-$&").toLowerCase():null===n&&(n=void 0),"oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=n}}"select"==s&&(r.multiple&&Array.isArray(r.value)&&(r.value=(0,ss.toChildArray)(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),null!=r.defaultValue&&(r.value=(0,ss.toChildArray)(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Cv)):t.className&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Sv,Mv&&Mv(e)};var Iv=ss.options.__r;ss.options.__r=function(e){Iv&&Iv(e),e.__c};var Nv=ss.options.diffed;ss.options.diffed=function(e){Nv&&Nv(e);var t=e.props,s=e.__e;null!=s&&"textarea"===e.type&&"value"in t&&t.value!==s.value&&(s.value=null==t.value?"":t.value)};ss.createElement,ss.createContext,ss.createRef,ss.Fragment,ss.Component,ss.Fragment;function jv(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},t),["\n ",(0,ss.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 16.8129L31.1871 15L24 22.1871L16.8129 15L15 16.8129L22.1871 24L15 31.1871L16.8129 33L24 25.8129L31.1871 33L33 31.1871L25.8129 24L33 16.8129Z",fill:"#29292A"},[]),"\n ",(0,ss.h)("mask",{id:"svg-CloseIcon-3XN-Vfv",style:"mask-type:luminance",maskUnits:"userSpaceOnUse",x:"15",y:"15",width:"18",height:"18"},["\n ",(0,ss.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 16.8129L31.1871 15L24 22.1871L16.8129 15L15 16.8129L22.1871 24L15 31.1871L16.8129 33L24 25.8129L31.1871 33L33 31.1871L25.8129 24L33 16.8129Z",fill:"white"},[]),"\n "]),"\n ",(0,ss.h)("g",{mask:"url(#svg-CloseIcon-3XN-Vfv)"},["\n ",(0,ss.h)("rect",{x:"12",y:"12",width:"24",height:"24"},[]),"\n "]),"\n"])}function Rv(e){var t;const{staticMessages:s}=ys(gc);return void 0!==e?null!==(t=s[e])&&void 0!==t?t:e:s}function Dv(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n",(0,ss.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.125 3.75V13.5625C15.125 13.9922 14.972 14.36 14.666 14.666C14.36 14.972 13.9922 15.125 13.5625 15.125H2.0625C1.63281 15.125 1.26497 14.972 0.958979 14.666C0.652993 14.36 0.5 13.9922 0.5 13.5625V2.0625C0.5 1.63281 0.652993 1.26497 0.958979 0.958979C1.26497 0.652993 1.63281 0.5 2.0625 0.5H11.875L15.125 3.75ZM7.8125 12.6667C8.47222 12.6667 9.03299 12.4358 9.49479 11.974C9.9566 11.5122 10.1875 10.9514 10.1875 10.2917C10.1875 9.63194 9.9566 9.07118 9.49479 8.60937C9.03299 8.14757 8.47222 7.91667 7.8125 7.91667C7.15278 7.91667 6.59201 8.14757 6.13021 8.60937C5.6684 9.07118 5.4375 9.63194 5.4375 10.2917C5.4375 10.9514 5.6684 11.5122 6.13021 11.974C6.59201 12.4358 7.15278 12.6667 7.8125 12.6667ZM2.91667 6.125H10.2292V2.91667H2.91667V6.125Z",fill:"#6F27F6"},[]),"\n"])}Object.defineProperty(jv,"name",{value:"default",configurable:!0}),Object.defineProperty(Dv,"name",{value:"default",configurable:!0});const Lv=({onClose:e,onSave:t,saveButtonText:s})=>{const r=Rv();return(0,ss.h)("div",{className:"sv__screenshot-button__action-buttons"},(0,ss.h)("button",{"aria-label":r[mc.SAVE_SCREENSHOT],className:"sv__screenshot-button__save sv--background-main sv--border-color-button sv--color-button sv--fill-button",id:"sv-save-button",onClick:t,tabIndex:0,type:"button"},(0,ss.h)(Dv,null),s),(0,ss.h)("button",{"aria-label":r[mc.CLOSE_SCREENSHOT_MODE],className:"sv__screenshot-button__close sv--background-main sv--border-color-button sv--fill-button",id:"sv-close-button",onClick:e,tabIndex:0,type:"button"},(0,ss.h)(jv,null)))};function Fv(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n",(0,ss.h)("g",{"clip-path":"url(#svg-ColorPicker-3f5toIQ)"},["\n",(0,ss.h)("path",{d:"M14.1667 4.16667H12.5V2.5H14.1667V4.16667ZM12.5 17.5H14.1667V15.3417L16.325 17.5L17.5 16.325L15.3417 14.1667H17.5V12.5H12.5V17.5ZM15.8333 7.5H17.5V5.83333H15.8333V7.5ZM15.8333 10.8333H17.5V9.16667H15.8333V10.8333ZM9.16667 17.5H10.8333V15.8333H9.16667V17.5ZM5.83333 4.16667H7.5V2.5H5.83333V4.16667ZM2.5 14.1667H4.16667V12.5H2.5V14.1667ZM4.16667 17.5V15.8333H2.5C2.5 16.75 3.25 17.5 4.16667 17.5ZM15.8333 2.5V4.16667H17.5C17.5 3.25 16.75 2.5 15.8333 2.5ZM9.16667 4.16667H10.8333V2.5H9.16667V4.16667ZM2.5 7.5H4.16667V5.83333H2.5V7.5ZM5.83333 17.5H7.5V15.8333H5.83333V17.5ZM2.5 10.8333H4.16667V9.16667H2.5V10.8333ZM2.5 4.16667H4.16667V2.5C3.25 2.5 2.5 3.25 2.5 4.16667Z",fill:"white"},[]),"\n"]),"\n",(0,ss.h)("defs",{},["\n",(0,ss.h)("clipPath",{id:"svg-ColorPicker-3f5toIQ"},["\n",(0,ss.h)("rect",{width:"20",height:"20",fill:"white"},[]),"\n"]),"\n"]),"\n"])}Object.defineProperty(Fv,"name",{value:"default",configurable:!0});const zv=()=>{const e=ys(Jl),t=Rv(mc.PICK_SCREENSHOT_COLOR);if(!e)return null;const{selectedColor:s,setSelectedColor:r}=e;return(0,ss.h)("button",{"aria-label":t,className:"sv__screenshot-button__color-picker sv--background-main sv--border-color-button",id:"sv-color-picker-button",onClick:()=>{var e;null===(e=document.getElementById("sv-color-picker-input"))||void 0===e||e.click()},tabIndex:0,type:"button"},(0,ss.h)("div",{className:"sv__color-picker-input-wrapper",style:{backgroundColor:s}},(0,ss.h)(Fv,null),(0,ss.h)("input",{className:"sv__color-picker-input",id:"sv-color-picker-input",onChange:e=>{(({target:e})=>{r(null==e?void 0:e.value)})(e)},type:"color",value:s})))},qv=({startPosition:e,endPosition:t,selectedColor:s,handleStart:r,handleMove:i,handleEnd:o})=>{const n=(e,t,s,r)=>({background:"rgba(0, 0, 0, 0.5)",height:r,left:t,position:"fixed",top:e,width:s});return(0,ss.h)("div",{"aria-label":Rv(mc.SCREENSHOT_SELECTION),className:"sv__screenshot-button-overlay",onMouseDown:e=>r(e),onMouseMove:e=>i(e),onMouseUp:o,onTouchEnd:o,onTouchMove:e=>i(e),onTouchStart:e=>r(e),role:"button",tabIndex:-1},(0,ss.h)("div",{className:"sv__screenshot-button-overlay__rectangles",style:(()=>{if(!e||!t)return{};const r=Math.min(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(0,Math.abs(t.x-e.x)),n=Math.max(0,Math.abs(t.y-e.y));return{border:`2px solid ${s}`,height:`${n}px`,left:`${r}px`,position:"fixed",top:`${i}px`,width:`${o}px`}})()}),(()=>{if(!e||!t)return[n("0","0","100vw","100vh")];const s=Math.min(e.x,t.x),r=Math.min(e.y,t.y),i=Math.max(e.x,t.x),o=Math.max(e.y,t.y);return[n("0","0","100vw",`${r}px`),n(`${o}px`,"0","100vw",`calc(100vh - ${o}px)`),n(`${r}px`,"0",`${s}px`,o-r+"px"),n(`${r}px`,`${i}px`,`calc(100vw - ${i}px)`,o-r+"px")]})().map((e,t)=>(0,ss.h)("div",{className:"sv__screenshot-button-overlay__rectangle",key:`rectangle-${t+1}`,style:e})))};function Uv(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n",(0,ss.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.00008 15.8333C5.00008 16.75 5.75008 17.5 6.66675 17.5H13.3334C14.2501 17.5 15.0001 16.75 15.0001 15.8333V5.83333H5.00008V15.8333ZM15.8334 3.33333H12.9167L12.0834 2.5H7.91675L7.08341 3.33333H4.16675V5H15.8334V3.33333Z",fill:"#6F27F6"},[]),"\n",(0,ss.h)("mask",{id:"svg-BinIcon-J4enKt2",style:"mask-type:luminance",maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"12",height:"16"},["\n",(0,ss.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.00008 15.8333C5.00008 16.75 5.75008 17.5 6.66675 17.5H13.3334C14.2501 17.5 15.0001 16.75 15.0001 15.8333V5.83333H5.00008V15.8333ZM15.8334 3.33333H12.9167L12.0834 2.5H7.91675L7.08341 3.33333H4.16675V5H15.8334V3.33333Z",fill:"white"},[]),"\n"]),"\n",(0,ss.h)("g",{mask:"url(#svg-BinIcon-J4enKt2)"},["\n"]),"\n"])}Object.defineProperty(Uv,"name",{value:"default",configurable:!0});const $v=({onRemove:e,startPosition:t,endPosition:s})=>{const r={x:Math.min(t.x,s.x),y:Math.min(t.y,s.y)},i=r.y<100;return(0,ss.h)("div",{className:"sv__screenshot-button__remove-wrapper",id:"sv-screenshot-remove-wrapper",style:{left:r.x,top:i?Math.max(t.y,s.y)+10:r.y,transform:i?"none":"translateY(-100%)"}},(0,ss.h)("button",{"aria-label":Rv(mc.REMOVE_SCREENSHOT),className:"sv__screenshot-button__remove sv--background-main sv--border-color-button sv--fill-button",id:"sv-remove-button",onClick:e,tabIndex:0,type:"button"},(0,ss.h)(Uv,null)))},Bv=({dragTooltipText:e,isCapturingScreenshot:t,onClose:s,onSave:r,saveButtonText:i})=>{const o=ys(Jl);if(!o)return null;const{showOverlay:n,selectedColor:a,startPosition:c,endPosition:l,selectionCompleted:v,handleStart:_,handleMove:u,handleEnd:d,removeSelection:p}=o,m=document.getElementById(Zl);if(!m)return console.error(`Element with ID ${Zl} not found in the DOM.`),null;const[h,b]=ds({x:-500,y:-500});return ms(()=>{const e=e=>{c||b({x:e.clientX,y:e.clientY})};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)},[c]),(0,ss.h)(ss.Fragment,null,!c&&t&&xv((0,ss.h)(tv,{content:e,shouldShow:!0,style:{left:`${h.x}px`,pointerEvents:"none",position:"fixed",top:`${h.y}px`,transform:"translate(10px, -50%)"}},(0,ss.h)("div",null)),m),n&&xv((0,ss.h)(qv,{endPosition:l,handleEnd:d,handleMove:u,handleStart:_,selectedColor:a,startPosition:c}),m),v&&c&&l&&xv((0,ss.h)($v,{endPosition:l,onRemove:p,startPosition:c}),m),n&&xv((0,ss.h)("div",{id:"screenshot-portal"},(0,ss.h)(zv,null),(0,ss.h)(Lv,{onClose:s,onSave:()=>{r(),s()},saveButtonText:i})),m))},Vv=({pointId:e,saveButtonText:t,isPreview:s,takeScreenshotText:r,deleteScreenshotText:i,dragTooltipText:o})=>{const{surveyType:n}=ys(Wo),a=ys(Jl);if(!a)return null;const{previewDevice:c,surveyState:{screenshotState:{screenshot:l}}}=Me.getStore(n).getState(),v=Hl(c),{removeScreenshot:_,startCapturingScreenshot:u,closeOverlay:d,saveScreenshot:p}=a,[m,h]=ds(!1),[b,g]=ds(r),[f,y]=ds(!1);return ms(()=>{!s&&l&&_()},[e]),ms(()=>{g(s?"This feature is not available in the preview":l?i:r)},[s,l,e]),(0,ss.h)("div",{className:"sv__screenshot-button-wrapper"},(0,ss.h)(tv,{content:b,isMobile:v,showCaret:!0},(0,ss.h)("button",{"aria-label":b,className:"sv__screenshot-button sv--background-main sv--border-color-button",onClick:()=>{if(!s){if(l)return _(),void h(!1);u(),y(!0)}},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),tabIndex:0,type:"button"},l?m||v?(0,ss.h)(sv,null):(0,ss.h)(iv,null):(0,ss.h)(rv,null))),f&&(0,ss.h)(Bv,{dragTooltipText:o,isCapturingScreenshot:f,onClose:()=>{d(),y(!1)},onSave:()=>{p(),y(!1)},saveButtonText:t}))},Hv=e=>{e.stopPropagation(),e.preventDefault()},Wv=(e,t)=>{e instanceof KeyboardEvent&&"Tab"!==e.key&&Hv(e),t()},Kv=[[">",">"],["<","<"],[""",'"'],["'","'"],["&","&"]],Gv=e=>{if(!(null==e?void 0:e.length))return"";let t=e;for(const[e,s]of Kv)t=t.replace(new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),s);return t},Yv=(e,t,s={})=>{"Enter"!==e.key&&" "!==e.key||(s.preventDefault&&e.preventDefault(),s.stopPropagation&&e.stopPropagation(),t(e))},Zv=({sharedClasses:e,isDisabled:t,navigateBackward:s,backText:r})=>{const{isPage:i}=ys(Wo),o=qa(Object.assign(Object.assign({},e),{"sv--background-button-opacity-10":i,"sv--background-main":!0,"sv--border-color-button":!0,"sv--color-button":!t,"sv--color-question":t,"sv__navigation-button":!0,"sv__navigation-button--back":!0})),n=qa({"sv--color-button":!t,"sv--color-question":t,"sv__navigation-button__arrow":!0}),a=qa({"sv--color-button":!t,"sv--color-question":t,"sv__navigation-button__text":!0});return(0,ss.h)("button",{"aria-label":r,className:o,"data-testid":"back-button",disabled:t,id:"back-button",onClick:s,onKeyDown:e=>{"Tab"!==(null==e?void 0:e.key)&&s&&s()},tabIndex:0,title:"back",type:"button"},(0,ss.h)("span",{className:n}),(0,ss.h)("span",{className:a},r))},Qv=({navigateBackward:e})=>{const{isPage:t,surveyType:s}=ys(Wo),r=nl(),i=$a(),o=r.submitState.value,n=Me.getStore(s).getState(),a=Hl(n.previewDevice),c=fs(e=>{Wv(e,()=>{e.target instanceof HTMLButtonElement&&e.target.blur(),i.handleSubmit()})},[i]),l=fs(e=>{Wv(e,()=>{"Tab"!==e.key&&Yv(e,()=>{i.handleSubmit()},{preventDefault:!0})})},[i]),v=o.type===el.NotRendered,_=o.type===el.Navigation,u=!v&&o.isHidden,d=gs(()=>({"sv--border-top-color-question-20":!t,"sv__submit-button__wrapper":!0,"sv__submit-button__wrapper--navigation":_&&!t&&!a}),[_,t,a]),p=gs(()=>({"sv-color-fs":!0,"sv__submit-button":!0,"sv__submit-button--hidden":u,"sv__submit-button--navigated":_&&a}),[u,_,a]),m=gs(()=>Object.assign({"sv--background-button":!0,"sv-bg-bs":!0,"sv__navigation-button":_},p),[_,p]);if(v)return null;const h=Gv(o.submitText);return(0,ss.h)("div",{className:qa(d)},_&&(0,ss.h)(Zv,{backText:Gv(o.backText),isDisabled:!o.isBackEnabled,navigateBackward:e,sharedClasses:p}),(0,ss.h)("button",{"aria-label":h,className:qa(m),"data-testid":"submit-button",disabled:!o.isSubmitEnabled,onClick:c,onKeyDown:l,tabIndex:0,type:"button"},h,(0,ss.h)("span",{className:"sv__submit-button-next-arrow"})))},Xv=e=>{var t;return!!(null!==(t=null==e?void 0:e.disclaimer)&&void 0!==t?t:null==e?void 0:e.disclaimer_settings)};function Jv({languages:e,defaultLanguage:t,isPreview:s,surveyId:r,translations:i}){const o=s&&r?function(e,t){const s=null==e?void 0:e[t];return s?Object.keys(s):[]}(null!=i?i:null,r):[],n=(null==e?void 0:e.length)?e:o;return t?[t,...n.filter(e=>e.toLowerCase()!==t.toLowerCase())]:n}function e_(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"},t),["\n ",(0,ss.h)("rect",{fill:"#29292A",opacity:"0.1",x:"0",y:"0",width:"40",height:"40",rx:"3"},[]),"\n ",(0,ss.h)("g",{fill:"#29292A",opacity:"0.5"},["\n ",(0,ss.h)("rect",{x:"11",y:"27",width:"18",height:"2"},[]),"\n "]),"\n"])}Object.defineProperty(e_,"name",{value:"default",configurable:!0});const t_=({close:e,children:t,minimized:s})=>(0,ss.h)("button",{"aria-label":Rv(mc.CLOSE_SURVEY),className:qa({"sv-color-small-button-bw":!0,"sv__btn-close":!0,"sv__btn-close--minimized":!!s}),"data-testid":"close-button",onClick:e,onKeyDown:t=>Yv(t,e,{preventDefault:!0}),type:"button"},t),s_=({toggleMinimize:e,showBackground:t,children:s})=>{const r={"sv-color-small-button-bw":!0,"sv__btn-minimize":!0,"sv__btn-minimize--padded":t};return(0,ss.h)("button",{"aria-label":Rv(mc.MINIMIZE_SURVEY),className:qa(r),onClick:t=>{t.preventDefault(),t.stopPropagation(),e()},onKeyDown:t=>Yv(t,e,{preventDefault:!0}),title:"Minimize survey",type:"button"},s)},r_=e=>{const{close:t,showCloseBtn:s,showLanguageSelector:r,showMinimizeBtn:i,toggleMinimize:o}=e;if(!s&&!i)return null;return(0,ss.h)("div",{className:qa({"survicate_survey-buttons_3ws-x":!0,"sv__bar-buttons":!0})},i&&(0,ss.h)(s_,{showBackground:!s&&!r,toggleMinimize:o},(0,ss.h)(e_,null)),s&&(0,ss.h)(t_,{close:t},(0,ss.h)(jv,null)))},i_=(e,t)=>{const{translationLanguage:s,translations:r}=Me.getStore(e).getState().surveyState;return gs(()=>r&&s&&(null==t?void 0:t.id)?((e,t)=>{var s,r,i;const{translationLanguage:o,translations:n,survey:a}=Me.getStore(e).getState().surveyState;return n&&o&&(null==a?void 0:a.id)&&(null===(i=null===(r=null===(s=n[a.id])||void 0===s?void 0:s[o])||void 0===r?void 0:r.points)||void 0===i?void 0:i[t.id])?Ya(t,n[a.id][o].points[t.id]):t})(e,t):t,[t,s,r,e])},o_=(e,t)=>{var s;return(null!==(s=Me.getStore(t).getState().rootElement)&&void 0!==s?s:document).querySelector(e)},n_=Rc(Ae.empty);function a_(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},t),["\n ",(0,ss.h)("title",{},["Shape"]),"\n ",(0,ss.h)("g",{id:"svg-checkbox-WVa6d7V",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},["\n ",(0,ss.h)("g",{id:"svg-checkbox-21K9kaa",fill:"#161616","fill-rule":"nonzero"},["\n ",(0,ss.h)("path",{fill:"currentColor",d:"M16,0 L2,0 C0.8954305,0 0,0.8954305 0,2 L0,16 C0,17.1045695 0.8954305,18 2,18 L16,18 C17.1045695,18 18,17.1045695 18,16 L18,2 C18,0.8954305 17.1045695,0 16,0 Z M7,14 L2,9 L3.41,7.59 L7,11.17 L14.59,3.58 L16,5 L7,14 Z",id:"svg-checkbox-YnjGPzk"},[]),"\n "]),"\n "]),"\n"])}var c_,l_;Object.defineProperty(a_,"name",{value:"default",configurable:!0}),function(e){e[e.bw=0]="bw",e[e.nestedInBw=1]="nestedInBw"}(c_||(c_={})),function(e){e[e.circle=0]="circle",e[e.square=1]="square"}(l_||(l_={}));const v_=e=>{const{display:t,colors:s,invalid:r,isSelected:i,testId:o,shouldSkipTab:n,label:a}=e,{isPage:c}=ys(Wo),l=`${o}-${ws()}`,v=t===l_.circle,_=!c&&v,[u,d]=ds(!1),p={"sv--background-answer":v&&i,"sv--border-color-answer":!0,"sv--color-answer":v,"sv-bg-bw":!c&&s===c_.bw,"sv-bg-main":v&&i,"sv-invalid":r||!1,"sv-nested-bg-bw":!c&&s!==c_.bw,sv__checkbox:!0,"sv__checkbox--focused":u,sv__circle:v,sv__selected:(c||_)&&i,sv__square:!v},m={"sv--color-answer":c,"sv-bg-fa":c||_,"sv-checkbox-tick-border-color":!0,sv__tick:!0},h={"aria-checked":i,"aria-label":a,checked:i,className:"sv__hide-input sv__input-checkbox",id:l,onBlur:()=>d(!1),onClick:t=>e.onClick(t),onFocus:()=>d(!0),onKeyDown:t=>Yv(t,()=>e.onKeyboardClick(t),{preventDefault:!0,stopPropagation:!0}),tabIndex:n?-1:0,type:"checkbox"};return(0,ss.h)("div",{className:qa(p),"data-testid":o},(0,ss.h)("input",Object.assign({role:v?"radio":"checkbox"},h)),(0,ss.h)("label",{className:"checkbox-label",htmlFor:l},i&&(v?(0,ss.h)("span",{className:qa(m),"data-testid":"tick"}):(0,ss.h)(a_,null))))},__=({content:e,className:t="",id:s,inline:r=!1,skipReader:i=!1})=>r?(0,ss.h)("span",{"aria-hidden":i,className:t,dangerouslySetInnerHTML:{__html:e},id:s}):(0,ss.h)("div",{"aria-hidden":i,className:t,dangerouslySetInnerHTML:{__html:e},id:s});class u_{static isSurveyUp(e){const{survey:t}=Me.getStore(e).getState().surveyState;if(t)return t.presentation_style===w.topLeft||t.presentation_style===w.topRight;throw new Error("No survey, when looking at isSurveyUp.")}static isBackgroundLight(e){const{theme:t}=Me.getStore(e).getState().surveyState;return!t||(e=>{const{R:t,G:s,B:r}=Ws(e);return 1-(t+s+r)/765})(t.color_scheme.bg_widget)<.6}static isSimpleTheme(e){return u_.themeType(e)===Ys.simple}static isMicroTheme(e){return u_.themeType(e)===Ys.micro}static isMobileTheme(e){return u_.themeType(e)===Ys.mobile}static themeType(e){const{theme:t}=Me.getStore(e).getState().surveyState;return t?t.type:null}}function d_(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",height:"14px",viewBox:"0 0 24 24",width:"14px",fill:"#ffffff"},t),[(0,ss.h)("path",{d:"M0 0h24v24H0z",fill:"none"},[]),(0,ss.h)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},[])])}Object.defineProperty(d_,"name",{value:"default",configurable:!0});const p_=({children:e,id:t,invalid:s,type:r})=>{const[i,o]=ds(""),[n,a]=ds(!1),c=bs(null),{surveyType:l}=ys(Wo),v=Me.getStore(l).getState().surveyState.survey,_=v&&"PageSurvey"===v.type,u=u_.isMicroTheme(l),d=Rv();let p="";switch(r){case"email":p=d[mc.VALID_EMAIL];break;case"date":p=d[mc.VALID_DATE];break;case"select":p=d[mc.SELECT]}return ms(()=>{if(!s)return o(""),void a(!1);p!==i&&(o(p),a("select"!==r))},[s,r,i,p]),ms(()=>{n&&s&&i&&c.current&&c.current.focus()},[n,s,i]),(0,ss.h)(ss.Fragment,null,e,(_||u)&&s&&i&&(0,ss.h)("div",{className:"sv__validation",id:t,ref:c,role:"alert",tabIndex:-1},(0,ss.h)(d_,{"aria-hidden":"true"}),(0,ss.h)("span",{className:"sv__validation__message"},i)))},m_=({isConfirmed:e,isDisclaimer:t,isInvalid:s,setConfirmation:r,label:i})=>{const o={"sv--background-answer-opacity-10":!t,"sv--border-top-color-question-20":!!t,sv__confirmation:!0,"sv__confirmation--disclaimer":!!t,"sv__contact-form-field":!t},n=fs(e=>{e.stopPropagation(),r()},[r]);return(0,ss.h)("div",{className:qa(o),onClick:n,onKeyDown:e=>{e.stopPropagation()},role:"button",tabIndex:-1},(0,ss.h)(p_,{invalid:s,type:"confirmation"},(0,ss.h)(v_,{colors:c_.nestedInBw,display:l_.square,invalid:s,isSelected:e,key:e?"checked":"unchecked",label:i,onClick:n,onKeyboardClick:r,testId:"confirmation-checkbox"}),(0,ss.h)("div",{className:"sv__confirmation__agreement-label sv--color-answer sv-color-fw ","data-testid":"confirmation-label",onClick:n,onKeyDown:e=>{e.stopPropagation()},role:"button",tabIndex:-1},(0,ss.h)(__,{className:"sv__confirmation__content sv--color-answer",content:i}))))},h_=[$t.buttonLink,$t.buttonClose],b_=[$t.thankYouMessage,$t.redirect,$t.social];const g_=({point:e,shouldHide:t=!1,isDisclaimerAccepted:s,setIsDisclaimerAccepted:r,isNarrow:i})=>{var o,n,a,c,l;const{surveyType:v,isPage:_}=ys(Wo),u=i_(v,e),d=gs(()=>null==u?void 0:u.settings,[u]),p=gs(()=>{var t;return null===(t=null==e?void 0:e.settings)||void 0===t?void 0:t.disclaimer_settings},[e]),m=null!==(n=null===(o=null==e?void 0:e.settings)||void 0===o?void 0:o.consent)&&void 0!==n&&n,h=Hl(n_.value),b=gs(()=>{var t,s,r;return function(e){const{isPage:t,isMobile:s,hideFooter:r,answerType:i,pointSettings:o,hasConsent:n}=e;if(!t||!s||r||i===$t.button)return!1;const a=i,c=o,l=Xv(o),v=h_.includes(a)&&!!(null==c?void 0:c.link),_=b_.includes(a)&&!n&&l;return v||_}({answerType:e.answer_type,hasConsent:m,hideFooter:null!==(r=null===(s=null===(t=Me.getStore(v).getState().surveyState.survey)||void 0===t?void 0:t.settings)||void 0===s?void 0:s.hide_footer)&&void 0!==r&&r,isMobile:h,isPage:_,pointSettings:null==e?void 0:e.settings})},[v,_,null==e?void 0:e.answer_type,null==e?void 0:e.settings,m,h]),g=gs(()=>{var e,t,s;return"object"==typeof d.disclaimer_settings||null===(null==d?void 0:d.disclaimer_settings)?d.disclaimer_settings:{checkbox_label:null!==(e=null==d?void 0:d.consent_text)&&void 0!==e?e:"",checkbox_required:null!=m&&m,checkbox_visible:null!=m&&m,description:null!==(t=null==d?void 0:d.disclaimer_text)&&void 0!==t?t:"",title:null!==(s=null==d?void 0:d.disclaimer_title)&&void 0!==s?s:""}},[d,m]),f=null!==(c=null!==(a=null==p?void 0:p.checkbox_visible)&&void 0!==a?a:m)&&void 0!==c&&c,y=qa({"sv--border-top-color-question-20":!_,sv__disclaimer:!0,"sv__disclaimer--hidden":t,"sv__disclaimer--narrow":!!i,"sv__disclaimer--with-checkbox":f}),w=qa({"sv--border-top-color-question-20":!0,"sv--color-answer":!0,sv__disclaimer__body:!0,"sv__disclaimer__body-moved-up":b}),x=(null==g?void 0:g.title)||(null==p?void 0:p.title)||"",S=(null==g?void 0:g.description)||(null==p?void 0:p.description)||"",k=(null==g?void 0:g.checkbox_label)||(null==p?void 0:p.checkbox_label)||"",T=f||m,A=(null===(l=u.settings)||void 0===l?void 0:l.consent_text)||"",O=(0,ss.h)("aside",{"aria-live":"polite",className:y},T&&(0,ss.h)(m_,{isConfirmed:s,isDisclaimer:!0,isInvalid:!1,label:k||A,setConfirmation:()=>r(!s)}),(x||S)&&(0,ss.h)("div",{className:w},x&&(0,ss.h)("h2",{className:"sv__disclaimer__title sv--color-answer"},x),S&&(0,ss.h)(__,{className:"sv__disclaimer__text sv--color-answer",content:S}))),[E,P]=ds(null);return ms(()=>{const t=o_(`#survey-disclaimer-container-${e.id}`,v);P(t)},[e.id,h,v]),_&&!h?O:E?xv(O,E):null},f_=e=>{if(!(null==e?void 0:e.key)||"string"!=typeof e.key)return;e.key.match(/(^[\d+-]*$)|(Backspace|Tab|Delete|ArrowLeft|ArrowRight)/)||e.preventDefault()},y_=e=>{const t=bs(null),{label:s,required:r,value:i,invalid:n,titleId:a,type:c,placeholder:l}=e,{surveyType:v}=ys(Wo),_=`${s}${r?"*":""}`,u=Me.getStore(v).getState().surveyState.survey,d=u&&"PageSurvey"===u.type,p=u_.isMicroTheme(v),m=o(),h=u&&"MobileSurvey"===u.type,b={"sv__contact-form-field":!0,"sv__contact-form-field-filled":!!i,sv__dark:!h&&u_.isBackgroundLight(v),sv__invalid:!!n,[`sv__contact-form-${e.type}`]:!0,sv__light:!h&&!u_.isBackgroundLight(v)};return(0,ss.h)("div",{className:qa(b)},(0,ss.h)("label",{className:"sv__contact-form-field-label sv--color-answer",htmlFor:m,id:`${m}-label`},_),(0,ss.h)(p_,{id:`${m}-error`,invalid:n,type:c},(0,ss.h)("input",Object.assign({"aria-describedby":n?`${m}-error`:void 0,"aria-invalid":!!n,"aria-labelledby":a?`${a} ${m}-label`:void 0,className:"sv-nested-bg-bw sv-nested-bg-hover-bw sv-color-fw\n sv__input sv--color-answer sv--background-answer-opacity-10","data-testid":s,id:m,ref:t,type:"text"},"phone"===c&&{onKeyDown:f_},{onBlur:t=>{e.onBlur&&t.target instanceof HTMLInputElement&&e.onBlur&&e.onBlur(t.target.value)},onInput:t=>{t.target instanceof HTMLInputElement&&e.onInput&&e.onInput(t.target.value)},placeholder:p?"":l||(d?"":_),value:i}))))},w_=(e,t)=>{switch(t.type){case"setInvalid":return Object.assign(Object.assign({},e),{invalid:t.payload});case"setValues":return Object.assign(Object.assign({},e),{values:t.payload});case"setIsDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload})}};class x_{static reduceAnswers(e){return e.reduce((e,t)=>`${e}${t.possible_answer}${t.add_comment}${t.next_survey_point_id}`,"")}static reduceContactForm(e){const t=e.fields.reduce((e,t)=>`${e}${t.label}${t.required}`,"");let s;if(e.settings){const{consent:t,consent_text:r}=e.settings;s=t?r:""}return`${t}${s}`}static reorderContactFormValues(e,t,s){return t.map(t=>{const r=s.findIndex(e=>e.id===t.id);return-1!==r?e[r]:""})}}const S_=({disclaimer:e,disclaimer_settings:t,isDisclaimerAccepted:s})=>gs(()=>{var r;const i=!!e||!!t||!1,o=null!==(r=null==t?void 0:t.checkbox_visible)&&void 0!==r&&r;return{isRequiredDisclaimerNotAccepted:o&&!!(null==t?void 0:t.checkbox_required)&&!s,showCheckbox:o,showDisclaimer:i}},[e,t,s]);let k_=0;const T_=({selectedAnswer:e,isMandatory:t,submit:s,aid:r,mandatorySubmitButton:i=!1,screenshotEnabled:o=!1,isPage:n=!1,showCheckbox:a=!1,alwaysRender:c=!1,mandatoryComment:l=!1,comment:v="",isRequiredDisclaimerNotAccepted:_=!1,customCanSubmit:u,neverRender:d=!1,submitButtonText:p})=>{const m=$a(),[h]=ds(()=>"submit-"+ ++k_),b=bs(s);ms(()=>{b.current=s},[s]);const g=bs({canSubmit:!1,isInitialized:!1,shouldRender:!1,submitButtonText:void 0}),f=(({selectedAnswer:e,aid:t,mandatorySubmitButton:s=!1,screenshotEnabled:r=!1,isMandatory:i,isPage:o=!1,showCheckbox:n=!1,alwaysRender:a=!1,neverRender:c=!1})=>!c&&(a||!!e||!!t||s||r||!i&&!o||n))({aid:r,alwaysRender:c,isMandatory:t,isPage:n,mandatorySubmitButton:i,neverRender:d,screenshotEnabled:o,selectedAnswer:e,showCheckbox:a}),y=(({selectedAnswer:e,isMandatory:t,mandatoryComment:s=!1,comment:r="",isRequiredDisclaimerNotAccepted:i=!1,customCanSubmit:o})=>{const n=!(!e&&t||s&&(null==e?void 0:e.add_comment)&&!r||i);return(void 0===o||o)&&n})({comment:v,customCanSubmit:u,isMandatory:t,isRequiredDisclaimerNotAccepted:_,mandatoryComment:l,selectedAnswer:e});ms(()=>{const e=g.current,t=e.shouldRender!==f||e.canSubmit!==y||e.submitButtonText!==p;(!e.isInitialized||t)&&(m.updatePointConfig(h,Object.assign({canSubmit:y,shouldRender:f},void 0!==p&&{submitButtonText:p}),()=>{var e,t;return null!==(t=null===(e=b.current)||void 0===e?void 0:e.call(b))&&void 0!==t?t:null}),g.current={canSubmit:y,isInitialized:!0,shouldRender:f,submitButtonText:p})},[f,y,m,p,h]),ms(()=>()=>m.removePoint(h),[m,h])},A_=(e,t,s)=>{const r=t?o_(t,e):window;if(!r||"function"!=typeof r.scrollTo)return;let i=0;s&&(r instanceof HTMLElement&&(i=r.scrollHeight),r===window&&(i=document.documentElement.scrollHeight)),r.scrollTo(0,i)},O_=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,E_=e=>{var t,s,r;const{surveyType:i}=ys(Wo),o=$a(),n=bs(null),{answer:a,children:c,point:l,titleId:v,value:_}=e,{settings:{disclaimer_settings:u,disclaimer:d}}=l,p=()=>({values:m.map(()=>!1)}),m=[...l.fields].filter(({field_type:e})=>e!==Sn.confirmation&&e!==Sn.security_info).sort(sn("order_number").ascending),h={fields:m,invalid:p(),isDisclaimerAccepted:null!==(t=null==_?void 0:_.disclaimer_accepted)&&void 0!==t&&t,pointId:l.id,reducedState:x_.reduceContactForm(l),values:(null==_?void 0:_.answer)||m.map(()=>"")},[b,g]=ps(w_,h);ms(()=>{g({payload:p(),type:"setInvalid"})},[l]);const{values:f,invalid:y,isDisclaimerAccepted:w}=b,x=null!==(r=null===(s=l.settings)||void 0===s?void 0:s.consent)&&void 0!==r&&r,{showDisclaimer:S,showCheckbox:k,isRequiredDisclaimerNotAccepted:T}=S_({disclaimer:d,disclaimer_settings:u,isDisclaimerAccepted:w}),A=(e,t)=>{const s=[...f];s[t]=e;const r=[...y.values];r[t]=!1,g({payload:Object.assign(Object.assign({},y),{values:r}),type:"setInvalid"}),g({payload:s,type:"setValues"})},O=(e,t)=>{const s=e.trim();A(s,t),((e,t)=>{const s=[...y.values];s[t]=!1,m[t].field_type!==Sn.email&&m[t].required&&!e&&(s[t]=!0),m[t].field_type===Sn.email&&e&&!O_.test(e)&&(s[t]=!0),g({payload:Object.assign(Object.assign({},y),{values:s}),type:"setInvalid"})})(s,t)},E=m.length&&m.some((e,t)=>e.required&&!f[t]);return T_({alwaysRender:!0,customCanSubmit:!(E||x&&!w),isMandatory:!1,isRequiredDisclaimerNotAccepted:T,selectedAnswer:null,submit:()=>{if(!(()=>{const e=p();let t=!0;return m.forEach((s,r)=>{const i=f[r];s.required&&!i&&(e.values[r]=!0,t=!1),s.field_type===Sn.email&&i&&!O_.test(i)&&(e.values[r]=!0,t=!1)}),g({payload:e,type:"setInvalid"}),t})())return o.skipClearState(),setTimeout(()=>{var e,t;const s=null!==(t=null===(e=n.current)||void 0===e?void 0:e.querySelector(".sv__invalid input"))&&void 0!==t?t:null;s&&(s.focus(),A_(i))},0),null;const e={anonymizedTextResponse:"",answers:m.map((e,t)=>({answer_type:e.field_type,content:f[t],field_id:e.id,nextSurveyPointId:l.settings.next_survey_point_id,user_tag:l.settings.user_tag})),textResponse:"",value:Object.assign({answer:f},k||x?{disclaimer_accepted:w}:{})};return a(e),e}}),(0,ss.h)("div",{className:"sv__contact-form",ref:n},(0,ss.h)("div",{className:"sv__scroll-container"},c,m.map((e,t)=>(0,ss.h)(y_,{invalid:y.values[t],key:e.id,label:e.label,onBlur:e=>O(e,t),onInput:e=>A(e,t),required:e.required,titleId:v,type:e.field_type,value:f[t]}))),(S||x)&&(0,ss.h)(g_,{isDisclaimerAccepted:w,point:l,setIsDisclaimerAccepted:()=>g({payload:!w,type:"setIsDisclaimerAccepted"})}))},P_=(e,t)=>{const s=Gv(e);t?window.open(s,"_blank"):window.location.href=s},C_=({point:e,answer:t,close:s,children:r,value:i})=>{var o,n;const{isPreview:a,surveyType:c,isPage:l}=ys(Wo),v=null===(o=i_(c,e))||void 0===o?void 0:o.settings,[_,u]=ds(null!==(n=null==i?void 0:i.disclaimer_accepted)&&void 0!==n&&n),{settings:{disclaimer:d,disclaimer_settings:p}}=e,{showDisclaimer:m,showCheckbox:h,isRequiredDisclaimerNotAccepted:b}=S_({disclaimer:d,disclaimer_settings:p,isDisclaimerAccepted:_});return T_({alwaysRender:!0,isMandatory:!1,isPage:l,isRequiredDisclaimerNotAccepted:b,submit:()=>{if(e.answer_type===$t.buttonClose&&"function"==typeof s)return s(),null;const r=Wt(Object.assign({point:e},h?{disclaimer_accepted:_}:{}));t(r);const i=v,{link:o,open_new_card:n}=i;return o&&(a&&n||!a)&&P_(o,n),r},selectedAnswer:void 0,submitButtonText:(null==v?void 0:v.text)||void 0}),(0,ss.h)("div",{className:"sv__cta","data-testid":"button-next"},r&&(0,ss.h)("div",{className:"sv__scroll-container"},r),m&&(0,ss.h)(g_,{isDisclaimerAccepted:_,point:e,setIsDisclaimerAccepted:u}))};var M_;!function(e){e.FB="facebook",e.LI="linkedin",e.TW="twitter"}(M_||(M_={}));const I_=({facebook_link:e,linkedin_link:t,twitter_link:s})=>[{height:20,href:e,name:M_.FB,svgPath:"m6.49,20l0,-9.12l2.95,0l0.44,-3.56l-3.39,0l0,-2.27a1.45,1.45 0 0 1 1.7,-1.73l1.81,0l0,-3.18a23.39,23.39 0 0 0 -2.64,-0.14c-2.61,0 -4.4,1.66 -4.4,4.7l0,2.62l-3,0l0,3.56l3,0l0,9.12l3.54,0l-0.01,0z",width:20},{height:15,href:s,name:M_.TW,svgPath:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",viewBox:"0 0 1200 1227",width:17},{height:21,href:t,name:M_.LI,svgPath:"M1.06284545,7.43996625 L5.21369002,7.43996625 L5.21369002,20.793119 L1.06284545,20.793119 L1.06284545,7.43996625 Z M3.13521243,0.793994886 C4.45946716,0.793994886 5.53580603,1.87221749 5.53580603,3.19878807 C5.53580603,4.52535865 4.45946716,5.60620323 3.13608537,5.60620323 C1.80988051,5.60331939 0.735360446,4.52731106 0.732,3.19878807 C0.732,2.56054285 0.985278036,1.94847675 1.43604323,1.49741533 C1.88680842,1.0463539 2.4980818,0.793300051 3.13521243,0.793994886 M7.80545816,7.43996625 L11.7790953,7.43996625 L11.7790953,9.26498457 L11.8340907,9.26498457 C12.3875366,8.2156209 13.7388526,7.10854222 15.7623348,7.10854222 C19.9576994,7.10854222 20.732,9.87448997 20.732,13.469435 L20.732,20.7939935 L16.5916307,20.7939935 L16.5916307,14.2984323 C16.5916307,12.7506209 16.5636966,10.7568299 14.438953,10.7568299 C12.2827835,10.7568299 11.9510651,12.4445565 11.9510651,14.1847513 L11.9510651,20.7904956 L7.81156877,20.7904956 L7.81156877,7.43734284 L7.80545816,7.43996625 Z",width:21}],N_=({answer:e,disabled:t,height:s,href:r,name:i,svgPath:o,viewBox:n,width:a})=>(0,ss.h)("a",{className:`sv__${i} sv__social-button ${t?"sv__social-button--disabled":""}`,"data-testid":`social-${i}`,href:r,onClick:e,onKeyDown:t=>Yv(t,e,{preventDefault:!0}),rel:"noopener noreferrer",target:"_blank",title:`Go to ${i===M_.TW?"X, former ":""}${i}`},(0,ss.h)("svg",{height:s,viewBox:n,width:a,xmlns:"http://www.w3.org/2000/svg"},(0,ss.h)("path",{d:o})),i===M_.FB?"LIKE":"FOLLOW"),j_=({point:e,answer:t,children:s})=>{const r=$a(),{user_tag:i,facebook_link:o,twitter_link:n,linkedin_link:a,disclaimer:c,disclaimer_settings:l}=e.settings,[v,_]=ds(!1),{showDisclaimer:u,showCheckbox:d,isRequiredDisclaimerNotAccepted:p}=S_({disclaimer:c,disclaimer_settings:l,isDisclaimerAccepted:v}),m=Object.assign({anonymizedTextResponse:"",answers:[{nextSurveyPointId:-1,user_tag:i}],textResponse:""},d&&{value:{disclaimer_accepted:v}}),h=gs(()=>I_({facebook_link:o,linkedin_link:a,twitter_link:n}),[o,n,a]);return ms(()=>{r.clearSubmitButtonState()},[r]),(0,ss.h)("div",{className:"sv__social"},s&&(0,ss.h)("div",{className:"sv__scroll-container"},s),h.map(({height:e,href:s,name:r,svgPath:i,viewBox:o,width:n})=>s&&(0,ss.h)(N_,{answer:()=>t(m),disabled:p,height:e,href:s,key:`social-${r}`,name:r,svgPath:i,viewBox:o,width:n})),u&&(0,ss.h)(g_,{isDisclaimerAccepted:v,point:e,setIsDisclaimerAccepted:_}))},R_=(0,cl.N)(({isPreview:e})=>({isPreview:e}),wl)(({point:e,answer:t,children:s,isPreview:r})=>{const i=e.answer_type===$t.redirect,{timeout_display_count:o,user_tag:n,link:a,open_new_card:c}=e.settings,[l,v]=ds(!1),[_,u]=ds(!1),{settings:{disclaimer:d,disclaimer_settings:p}}=e,{showDisclaimer:m,showCheckbox:h,isRequiredDisclaimerNotAccepted:b}=S_({disclaimer:d,disclaimer_settings:p,isDisclaimerAccepted:l}),g=fs(()=>{const e=parseInt(o||"0",10);setTimeout(()=>{r||P_(a,c)},1e3*e)},[o,r,a,c]),f=fs(()=>{if(b)return null;const e=Object.assign({anonymizedTextResponse:"",answers:[{nextSurveyPointId:-1,user_tag:n}],textResponse:""},h&&{value:{disclaimer_accepted:l}});return t(e),i&&g(),e},[b,h,l,i,t,g,n]);return T_({alwaysRender:h,customCanSubmit:!b,isMandatory:!1,isRequiredDisclaimerNotAccepted:b,neverRender:!h,submit:f,selectedAnswer:void 0,showCheckbox:h}),ms(()=>{if(!_&&!b)return i&&!m?(u(!0),void f()):void(h||(u(!0),f()))},[_,b,i,m,h,f]),(0,ss.h)("div",{className:"sv__cta"+(i?"-redirect":""),"data-testid":i?"redirect-cta":"thank-you-cta"},s&&(0,ss.h)("div",{className:"sv__scroll-container"},s),m&&(0,ss.h)(g_,{isDisclaimerAccepted:l,point:e,setIsDisclaimerAccepted:v}))}),D_=({ref:e,shouldScroll:t,options:s={behavior:"smooth",block:"center"}})=>{ms(()=>{t&&e.current&&e.current.scrollIntoView(s)},[t,e,s])},L_=({text:e,shouldShow:t})=>t&&e?(0,ss.h)("p",{className:"sv__answer-hint sv--color-answer","data-testid":"answer-hint"},e):null,F_=e=>{const{answer:t,content:s,indexes:{current:r,last:i}}=e,{lowestValueText:o,highestValueText:n}=s||{};return`${t}${o&&0===r?` - ${o}`:n&&r===i?` - ${n}`:""}`},z_=(e,t)=>{ms(()=>{t&&e.current&&e.current.focus()},[t,e])},q_=(e,t=0)=>{e.style.height="5px",e.style.height=`${Math.max(t,e.scrollHeight)}px`},U_=vv((e,t)=>{const{isPage:s}=ys(Wo),{textPlaceholder:r,commentFieldLabel:i,setComment:o,value:n,shouldFocus:a=!0,mandatoryComment:c=!1}=e,l=bs(null),v=Rv();z_(l,a);const _={"sv--background-answer-opacity-10":!s,"sv--border-color-answer":!s,"sv__comment-field":!0};return(0,ss.h)("div",{className:qa(_),"data-testid":"comment-field"},(0,ss.h)("label",{className:qa({"sv--color-answer":!0,"sv__comment-field__label":!0}),htmlFor:i,ref:t},(0,ss.h)(__,{className:"sv--color-answer",content:i,inline:!0})),(0,ss.h)("textarea",{"aria-label":`${v[mc.COMMENT_ANSWER]}${c?` ${v[mc.COMMENT_REQUIRED]}`:""}`,className:qa({"sv--background-answer-opacity-10":!0,"sv--color-answer":!0,sv__textarea:!0}),"data-gramm_editor":"false","data-testid":"text-area",id:i,onInput:e=>{(e=>{e.preventDefault();let t="";e.target instanceof HTMLTextAreaElement&&(q_(e.target,0),t=e.target.value),o(t)})(e)},placeholder:r,ref:l,value:null!=n?n:""}))}),$_=({point:e,answer:t,value:s,children:r,previewDevice:i,navigationEnabled:o,answerRequiredText:n,textPlaceholder:a,titleId:c})=>{var l,v;const{surveyType:_,isPage:u}=ys(Wo),{pointsDisplayed:d,isRTLLanguage:p}=Me.getStore(_).getState().surveyState,{add_comment:m,answers_layout:h=Y.default,comment_label:b,mandatory:g,text_on_the_left:f,mandatory_submit_button:y,text_on_the_right:w,mandatory_comment:x,disclaimer:S,disclaimer_settings:k}=e.settings,T=Be.params.aid||void 0,A=1===d.length,O=A?T:void 0,E=(null==s?void 0:s.answer)||0===(null==s?void 0:s.answer)?String(s.answer):O,P=Hl(i),C=[0,1,2,3,4,5,6,7,8,9,10],M=P&&h===Y.default,I={left:`0 - ${f}`,right:`10 - ${w}`};p&&(I.left=`${f} - 0`,I.right=`${w} - 10`);const N=bs(null),[j,R]=ds(E),[D,L]=ds(null!==(l=null==s?void 0:s.comment)&&void 0!==l?l:""),[F,z]=ds(null!==(v=null==s?void 0:s.disclaimer_accepted)&&void 0!==v&&v),{showDisclaimer:q,showCheckbox:U,isRequiredDisclaimerNotAccepted:$}=S_({disclaimer:S,disclaimer_settings:k,isDisclaimerAccepted:F}),B=m&&!!j,V=s=>{j||m||y||o&&!A||!g||U||$?R(String(s)):t(Kt({comment:D,point:e,value:{answer:s,comment:D}}))},H={sv__nps:!0,"sv__nps--horizontal":!u&&P&&h===Y.horizontal,"sv__nps--vertical":M,"sv__nps-wrapper":!0,"sv__nps-wrapper--mobile":M},W={sv__buttons:!0,"sv__buttons--vertical":M},K=e=>{const t=e===Number(j);return qa({"sv--background-answer-opacity-10":!0,"sv--color-answer":!0,"sv-bg-hov-ba":!0,"sv-color-fa":!0,"sv-color-main":t,sv__button:!0,"sv__button--selected":t,"sv__nps--selected":t,"sv__nps-button":!0})},G=gs(()=>j?{add_comment:m}:void 0,[j,m]);return T_({aid:T,alwaysRender:!!o&&!A,comment:D,isMandatory:g,isPage:u,isRequiredDisclaimerNotAccepted:$,mandatoryComment:x,mandatorySubmitButton:y,selectedAnswer:G,showCheckbox:U,submit:()=>{if(j){const s=Kt({comment:D,point:e,value:Object.assign({answer:Number(j),comment:D},U&&{disclaimer_accepted:F})});return t(s),s}return g?null:Gt(t)}}),D_({ref:N,shouldScroll:B}),(0,ss.h)("div",{className:qa(H)},(0,ss.h)("div",{className:"sv__scroll-container"},r,(0,ss.h)(L_,{shouldShow:g,text:n}),(0,ss.h)("div",{"aria-labelledby":c,className:qa(W),role:"radiogroup"},C.map((e,t)=>{const s={current:t,last:C.length-1};return(0,ss.h)("button",{"aria-label":`${e}`,"aria-pressed":e===Number(j),className:K(e),"data-testid":`button-label-${e}`,"data-value":e,key:e,onClick:t=>{t.stopPropagation(),V(e)},onKeyDown:t=>Yv(t,()=>V(e),{preventDefault:!0}),type:"button"},(0,ss.h)(F_,Object.assign({},M&&{content:{highestValueText:w,lowestValueText:f}},{answer:e,indexes:s})))})),!M&&(0,ss.h)("div",{className:qa({"sv-color-fw":!0,sv__labels:!0,"sv__nps-labels":!0}),"data-testid":"nps-labels"},f&&(0,ss.h)("div",{className:"sv__label sv__label--left sv--color-answer"},I.left),w&&(0,ss.h)("div",{className:"sv__label sv__label--right sv--color-answer"},I.right))),B&&(0,ss.h)(U_,{commentFieldLabel:b||"",mandatoryComment:x,ref:N,setComment:e=>{L(e)},textPlaceholder:a,value:D}),q&&(0,ss.h)(g_,{isDisclaimerAccepted:F,point:e,setIsDisclaimerAccepted:()=>z(!F)}))},B_=e=>{const{answer:t,answerRequiredText:s,comment:r,display:i,isSelected:o,mandatoryComment:n,select:a,textPlaceholder:c,updateComment:l,dataTestid:v,shouldSkipTab:_,hideCommentField:u}=e,{isPage:d,surveyType:p}=ys(Wo),m=(0,ss.createRef)(),h=Rv(),b=e=>{e.currentTarget instanceof HTMLDivElement&&(e.currentTarget.blur(),e.stopPropagation()),a()},g=e=>{e.preventDefault();let t="";if(e.target instanceof HTMLTextAreaElement){const s=d||y?0:44;q_(e.target,s),t=e.target.value}l&&l(t)};ms(()=>{o&&(null==m?void 0:m.current)&&m.current.focus()},[o]);const f=o&&t.add_comment&&!u,y=u_.isMicroTheme(p),w={"sv--background-answer-opacity-10":!0,"sv--border-color-answer":o,"sv--color-answer":!0,"sv-bg-ba":!0,"sv-bg-shaded-ba":o,"sv-color-fa":!0,"sv__choice-button":!0,"sv__choice-button--selected":o,"sv__choice-button--selected--expanded":y&&!!f,sv__selected:d&&o},x={"sv--color-answer":!0,"sv-color-fa":!0,"sv-color-main":d&&e.isSelected,"sv__answer-text":y},S={"sv__textarea-wrapper":!0,"sv__textarea-wrapper--narrower":!!n&&!!f&&!!s},k=d||y?"sv__textarea sv-border-color-main sv--color-answer sv--background-answer-opacity-10":"sv-bg-bw sv-color-fw sv-border-top-ba";return(0,ss.h)("div",{className:"sv__choice-button-wrapper"},(0,ss.h)("div",{className:qa(w),"data-testid":null!=v?v:"choice-button",onClick:e=>b(e),onKeyDown:()=>{},tabIndex:-1},d||y?(0,ss.h)(ss.Fragment,null,(0,ss.h)("div",{className:"sv__choice-button-question"},(0,ss.h)(v_,{colors:c_.bw,display:i,isSelected:o,label:t.possible_answer,onClick:e=>b(e),onKeyboardClick:()=>a(),shouldSkipTab:_,testId:`checkbox-${t.id}`}),(0,ss.h)(__,{className:qa(x),content:t.possible_answer,skipReader:!0})),f&&(0,ss.h)("div",{className:qa(S)},(0,ss.h)(L_,{shouldShow:f,text:s||""}),(0,ss.h)("textarea",{"aria-label":`${h[mc.COMMENT_ANSWER]}\n ${n?h[mc.COMMENT_REQUIRED]:""}`,className:k,"data-gramm_editor":"false","data-testid":`comment-field-${t.id}`,name:"comment",onClick:e=>e.stopPropagation(),onInput:e=>{g(e)},onKeyDown:e=>e.stopPropagation(),placeholder:c,ref:m,title:"comment",value:r}))):(0,ss.h)(ss.Fragment,null,(0,ss.h)(v_,{colors:c_.bw,display:i,isSelected:o,label:t.possible_answer,onClick:e=>b(e),onKeyboardClick:()=>a(),testId:`checkbox-${t.id}`}),(0,ss.h)("div",null,(0,ss.h)(__,{className:qa(x),content:t.possible_answer,skipReader:!0}),f&&(0,ss.h)(ss.Fragment,null,(0,ss.h)(L_,{shouldShow:!!n,text:s||""}),(0,ss.h)("textarea",{"aria-label":h[mc.COMMENT_ANSWER],className:k,"data-gramm_editor":"false","data-testid":`comment-field-${t.id}`,name:"comment",onClick:e=>e.stopPropagation(),onInput:e=>{g(e)},onKeyDown:e=>e.stopPropagation(),placeholder:c,ref:m,title:"comment",value:r}))))))},V_=e=>{const t=e.slice(0);for(let s=e.length-1;s>0;s-=1){const e=Math.floor(Math.random()*(s+1));[t[s],t[e]]=[t[e],t[s]]}return t},H_=e=>{const t=e.answers,{randomize_answers:s,randomize_except_last:r}=e.settings;return W_(t,s,r)},W_=(e,t,s)=>t?s?[...V_(e.slice(0,-1)),e[e.length-1]]:V_(e):e,K_=(e,t)=>{switch(t.type){case"setAnswers":return Object.assign(Object.assign({},e),{answers:t.payload});case"setComments":return Object.assign(Object.assign({},e),{comments:t.payload});case"setPointId":return Object.assign(Object.assign({},e),{pointId:t.payload});case"setReducedAnswers":return Object.assign(Object.assign({},e),{reducedAnswers:t.payload});case"setSelectedAnswer":return Object.assign(Object.assign({},e),{selectedAnswer:t.payload});case"setSelectedAnswers":return Object.assign(Object.assign({},e),{selectedAnswers:t.payload});case"setIsDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload})}},G_=(e,t,s)=>e&&t.some(e=>e.add_comment&&!s[e.id]),Y_=(e,t)=>{const s={};e.answers.forEach(e=>{var r,i;e.add_comment&&(s[e.id]=null!==(i=null===(r=null==t?void 0:t.comments)||void 0===r?void 0:r[e.id])&&void 0!==i?i:"")});const r=t,i=null==r?void 0:r.comment;return r&&i&&(s[r.answer.id]=i),s},Z_=e=>{var t,s;const{point:r,value:i,answerRequiredText:o,textPlaceholder:n,titleId:a}=e,{mandatory_comment:c,next_survey_point_id:l,randomize_answers:v,randomize_except_last:_,comment_label:u,choice:d,disclaimer:p,disclaimer_settings:m}=r.settings,h=null===(t=r.settings.mandatory)||void 0===t||t,b={answers:H_(r),comments:Y_(r,i),isDisclaimerAccepted:null!==(s=null==i?void 0:i.disclaimer_accepted)&&void 0!==s&&s,pointId:r.id,reducedAnswers:x_.reduceAnswers(H_(r)),selectedAnswers:(null==i?void 0:i.answers)||[]},[g,f]=ps(K_,b),{isDisclaimerAccepted:y}=g,{showDisclaimer:w,showCheckbox:x,isRequiredDisclaimerNotAccepted:S}=S_({disclaimer:p,disclaimer_settings:m,isDisclaimerAccepted:g.isDisclaimerAccepted}),k=g.selectedAnswers.reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:g.comments[t.id]||""}),{}),T=gs(()=>G_(null!=c&&c,g.selectedAnswers,g.comments),[c,g.selectedAnswers,g.comments]);ms(()=>{g.reducedAnswers!==x_.reduceAnswers(r.answers)&&(f({payload:r.answers,type:"setAnswers"}),f({payload:x_.reduceAnswers(r.answers),type:"setReducedAnswers"}))},[r.answers]),ms(()=>{const e=g.answers.filter(e=>g.selectedAnswers.find(t=>e.id===t.id));f({payload:e,type:"setSelectedAnswers"})},[g.answers]),ms(()=>{f({payload:H_(r),type:"setAnswers"})},[v,_,r.id]);const A=(null==d?void 0:d.min)||1,O=(null==d?void 0:d.max)||0,E=A<=g.selectedAnswers.length&&(!O||O>=g.selectedAnswers.length),P=g.selectedAnswers.length?Object.assign(Object.assign({},g.selectedAnswers[0]),{add_comment:g.selectedAnswers.some(e=>e.add_comment)}):null;T_({alwaysRender:!0,comment:T?void 0:"comment",customCanSubmit:!h||E,isMandatory:h,isRequiredDisclaimerNotAccepted:S,mandatoryComment:c,selectedAnswer:P,submit:()=>{if(!g.selectedAnswers.length){const t={anonymizedTextResponse:"",answers:[],textResponse:""};return e.answer(t),t}const t=g.selectedAnswers.reduce((e,t)=>e?`${e}, ${t.possible_answer}`:`${t.possible_answer}`,""),s={anonymizedTextResponse:t,answers:g.selectedAnswers.map(e=>({comment:g.comments[e.id]||void 0,nextSurveyPointId:l,survey_question_answer_id:e.id,user_tag:e.user_tag})),textResponse:t,value:Object.assign(Object.assign({},x?{disclaimer_accepted:y}:{}),{answers:g.selectedAnswers,comments:k})};return e.answer(s),s}});const C=gs(()=>(null==d?void 0:d.text)||(h?o:""),[o,null==d?void 0:d.text,h]);return(0,ss.h)("div",{"aria-labelledby":a,className:"sv__multiple-choice",role:"group"},(0,ss.h)("div",{className:"sv__scroll-container"},e.children&&[...e.children],(0,ss.h)(L_,{shouldShow:!!C,text:C}),g.answers.map(e=>{const t=!!g.selectedAnswers.find(t=>t.id===e.id);return(0,ss.h)(B_,{answer:e,answerRequiredText:u,comment:g.comments[e.id],dataTestid:`choice-button-${e.id.toString()}`,display:l_.square,isSelected:t,key:e.id,mandatoryComment:c,select:()=>(e=>{let t=[...g.selectedAnswers];t.find(t=>t.id===e.id)?t=t.filter(t=>t.id!==e.id):t.push(e),f({payload:t,type:"setSelectedAnswers"})})(e),textPlaceholder:n,updateComment:t=>{return s=t,r=e.id,void f({payload:Object.assign(Object.assign({},g.comments),{[r]:s}),type:"setComments"});var s,r}})})),w&&(0,ss.h)(g_,{isDisclaimerAccepted:y,point:r,setIsDisclaimerAccepted:()=>f({payload:!y,type:"setIsDisclaimerAccepted"})}))},Q_=e=>{var t;const{isPage:s,surveyType:r}=ys(Wo),{answer:i,answerRequiredText:o,point:n,textPlaceholder:a,titleId:c,value:l,children:v,navigationEnabled:_}=e,{settings:{disclaimer:u,disclaimer_settings:d}}=n,{mandatory_submit_button:p,mandatory_comment:m,randomize_answers:h,randomize_except_last:b,comment_label:g}=n.settings,f=n.settings.mandatory,{pointsDisplayed:y}=Me.getStore(r).getState().surveyState,w=1===y.length,x=Be.params.aid,S=n.answers.find(({id:e})=>e===Number(x)),k={answers:H_(n),comments:Y_(n,l),isDisclaimerAccepted:null!==(t=null==l?void 0:l.disclaimer_accepted)&&void 0!==t&&t,pointId:n.id,reducedAnswers:x_.reduceAnswers(n.answers),selectedAnswer:S},[T,A]=ps(K_,k),{isDisclaimerAccepted:O}=T,{showDisclaimer:E,showCheckbox:P,isRequiredDisclaimerNotAccepted:C}=S_({disclaimer:u,disclaimer_settings:d,isDisclaimerAccepted:T.isDisclaimerAccepted}),{answers:M,selectedAnswer:I,comments:N}=T;return T_({aid:x,alwaysRender:!!_&&!w,comment:I?N[null==I?void 0:I.id]:void 0,isMandatory:f,isPage:s,isRequiredDisclaimerNotAccepted:C,mandatoryComment:m,mandatorySubmitButton:p,selectedAnswer:I,showCheckbox:P,submit:()=>{if(!I){const e={anonymizedTextResponse:"",answers:[],textResponse:""};return i(e),e}const e=T.comments[I.id];if(m&&!e&&I.add_comment)return null;const t=Ht(Object.assign({answer:I,comment:e,point:n},P?{disclaimer_accepted:O}:{}));return i(t),t}}),ms(()=>{S||A({payload:null==l?void 0:l.answer,type:"setSelectedAnswer"})},[l]),ms(()=>{A({payload:H_(n),type:"setAnswers"})},[h,b]),ms(()=>{const e=x_.reduceAnswers(n.answers);T.reducedAnswers!==e&&(A({payload:n.answers,type:"setAnswers"}),A({payload:e,type:"setReducedAnswers"}))},[n.answers]),(0,ss.h)("div",{"aria-labelledby":c,className:"sv__single-choice",role:"radiogroup"},(0,ss.h)("div",{className:"sv__scroll-container"},v,(0,ss.h)(L_,{shouldShow:f,text:o}),M.map(e=>(0,ss.h)(B_,{answer:e,answerRequiredText:g,comment:N[e.id],dataTestid:`choice-button-${e.id}`,display:l_.circle,isSelected:(null==I?void 0:I.id)===e.id,key:e.id,mandatoryComment:m,select:()=>(e=>{if(e.add_comment||p||_&&!w||!f||P)A({payload:e,type:"setSelectedAnswer"});else{if(!T.selectedAnswer){const t=T.comments[e.id]||"";return void i(Ht(Object.assign({answer:e,comment:t,point:n},P?{disclaimer_accepted:O}:{})))}A({payload:e,type:"setSelectedAnswer"})}})(e),textPlaceholder:a,updateComment:t=>{return s=t,r=e.id,void A({payload:Object.assign(Object.assign({},T.comments),{[r]:s}),type:"setComments"});var s,r}}))),E&&(0,ss.h)(g_,{isDisclaimerAccepted:O,point:n,setIsDisclaimerAccepted:()=>A({payload:!O,type:"setIsDisclaimerAccepted"})}))},X_=({answers:e,selectedAnswer:t,handleAnswer:s,titleId:r})=>(0,ss.h)("div",{"aria-labelledby":r,className:"sv__choice-buttons-wrapper",role:"group"},e.map(e=>(0,ss.h)(B_,{answer:e,dataTestid:`choice-button-${e.id.toString()}`,display:l_.circle,hideCommentField:!0,isSelected:(null==t?void 0:t.id)===e.id,key:e.id,select:()=>s(e)}))),J_=({answers:e,handleAnswer:t,selectedAnswer:s,titleId:r})=>{const{isPage:i}=ys(Wo);return(0,ss.h)("div",{"aria-labelledby":r,className:"sv__buttons sv__buttons--vertical",role:"radiogroup"},e.map(e=>{const r=!i&&(null==s?void 0:s.id)===e.id,o={"sv--background-answer-opacity-10":!0,"sv--border-color-answer":r,"sv--color-answer":!0,sv__button:!0,"sv__button--selected":r};return(0,ss.h)("button",{"aria-label":`${e.possible_answer}`,"aria-pressed":r,className:qa(o),"data-testid":`choice-button-${e.id}`,key:e.id,onClick:s=>{s.stopPropagation(),t(e)},type:"button"},(0,ss.h)("span",{className:"sv__buttons__answer"},e.possible_answer))}))},eu=e=>{var t,s;const{isPage:r,surveyType:i}=ys(Wo),o=bs(null),{point:n,value:a,navigationEnabled:c,answerRequiredText:l,textPlaceholder:v,titleId:_}=e,{mandatory_submit_button:u,mandatory:d,mandatory_comment:p,comment_label:m,screenshot:h,disclaimer:b,disclaimer_settings:g}=n.settings,f=Be.params.aid,y=n.answers.find(({id:e})=>e===Number(f)),[w,x]=ds((null==a?void 0:a.answer)||y),[S,k]=ds((null==a?void 0:a.comment)||""),[T,A]=ds(null!==(t=null==a?void 0:a.disclaimer_accepted)&&void 0!==t&&t),{showDisclaimer:O,showCheckbox:E,isRequiredDisclaimerNotAccepted:P}=S_({disclaimer:b,disclaimer_settings:g,isDisclaimerAccepted:T}),C=u_.isMicroTheme(i),{pointsDisplayed:M}=Me.getStore(i).getState().surveyState,I=1===M.length,N=!!c&&!I,j=w&&w.add_comment,R=t=>{w||u||t.add_comment||E||c&&!I||d&&(null==h?void 0:h.button_enabled)||!d?x(t):e.answer(Bt(Object.assign({answer:t,comment:S,point:n},E?{disclaimer_accepted:T}:{})))};return T_({aid:f,alwaysRender:N,comment:S,isMandatory:d,isPage:r,isRequiredDisclaimerNotAccepted:P,mandatoryComment:p,mandatorySubmitButton:u,screenshotEnabled:null!==(s=null==h?void 0:h.button_enabled)&&void 0!==s&&s,selectedAnswer:w,showCheckbox:E,submit:()=>{if(w){const t=Bt(Object.assign({answer:w,comment:S,point:n},E?{disclaimer_accepted:T}:{}));return e.answer(t),t}return d?null:Gt(e.answer)}}),D_({ref:o,shouldScroll:!!j}),(0,ss.h)("div",{className:"sv__customer-satisfaction"},(0,ss.h)("div",{className:"sv__scroll-container"},e.children&&[...e.children],(0,ss.h)(L_,{shouldShow:d,text:l}),C?(0,ss.h)(J_,{answers:n.answers,handleAnswer:R,selectedAnswer:w,titleId:_}):(0,ss.h)(X_,{answers:n.answers,handleAnswer:R,selectedAnswer:w,titleId:_})),j&&(0,ss.h)(U_,{commentFieldLabel:m||"",mandatoryComment:p,ref:o,setComment:e=>{k(e)},textPlaceholder:v,value:S}),O&&(0,ss.h)(g_,{isDisclaimerAccepted:T,point:n,setIsDisclaimerAccepted:()=>A(!T)}))},tu=(e,t)=>{switch(t.type){case"setError":return Object.assign(Object.assign({},e),{error:t.payload});case Q.day:return Object.assign(Object.assign({},e),{[Q.day]:t.payload});case Q.month:return Object.assign(Object.assign({},e),{[Q.month]:t.payload});case Q.year:return Object.assign(Object.assign({},e),{[Q.year]:t.payload});case"setContainerClass":return Object.assign(Object.assign({},e),{containerClass:t.payload});case"setPointId":return Object.assign(Object.assign({},e),{pointId:t.payload});case"setComment":return Object.assign(Object.assign({},e),{comment:t.payload});case"setIsDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload});default:return e}},su=(e,t)=>e.padStart(t,"0"),ru=()=>{const e=Kl({iterable:document.querySelectorAll(".sv__survey input"),type:Wl.iterable});if(e.length){const t=e.find(e=>!e.value);t&&t.focus()}};var iu,ou,nu;!function(e){e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e.RightFullScreen="right_full_screen",e.LeftFullScreen="left_full_screen"}(iu||(iu={})),function(e){e.YMD="YMD",e.MDY="MDY",e.DMY="DMY"}(ou||(ou={})),function(e){e.dash="-",e.slash="/",e.dot="."}(nu||(nu={}));const au=(e,t)=>{const s=parseInt(t[e],10);if(Number.isNaN(s))return!1;const r={[Q.day]:{max:31,min:1},[Q.month]:{max:12,min:1},[Q.year]:{max:5e3,min:1e3}}[e];if(!r)throw new Error("TimeUnit is incorrect.");return s>=r.min&&s<=r.max},cu=({point:e,answer:t,value:s,children:r,textPlaceholder:i,answerRequiredText:o,titleId:n})=>{var a,c,l,v,_;const{mandatory:u,next_survey_point_id:d,user_tag:p,date_separator:m,date_order:h,add_comment:b,comment_label:g,mandatory_comment:f,disclaimer:y,disclaimer_settings:w}=e.settings,x={[Q.day]:"day",[Q.month]:"month",[Q.year]:"year"},S=(e=>{switch(e){case ou.DMY:return[Q.day,Q.month,Q.year];case ou.MDY:return[Q.month,Q.day,Q.year];case ou.YMD:default:return[Q.year,Q.month,Q.day]}})(h),k=[bs(null),bs(null),bs(null)],T=Rv(mc.ANSWER_REQUIRED),A=$a(),O={[Q.day]:null!==(a=null==s?void 0:s[Q.day])&&void 0!==a?a:"",[Q.month]:null!==(c=null==s?void 0:s[Q.month])&&void 0!==c?c:"",[Q.year]:null!==(l=null==s?void 0:s[Q.year])&&void 0!==l?l:"",comment:null!==(v=null==s?void 0:s.comment)&&void 0!==v?v:"",containerClass:"",error:!1,isDisclaimerAccepted:null!==(_=null==s?void 0:s.disclaimer_accepted)&&void 0!==_&&_,pointId:e.id},[E,P]=ps(tu,O),{showDisclaimer:C,showCheckbox:M,isRequiredDisclaimerNotAccepted:I}=S_({disclaimer:y,disclaimer_settings:w,isDisclaimerAccepted:E.isDisclaimerAccepted}),N=[Q.day,Q.month,Q.year].some(e=>!E[e]),j=!(u&&N||b&&f&&!E.comment.trim()||b&&f&&!E.comment.trim());T_({alwaysRender:!0,comment:E.comment,customCanSubmit:j,isMandatory:u,isRequiredDisclaimerNotAccepted:I,mandatoryComment:f&&b,selectedAnswer:b?{add_comment:!0}:{},showCheckbox:M,submit:()=>{const e=au(Q.year,E)&&au(Q.month,E)&&au(Q.day,E),s=!E[Q.year]&&!E[Q.month]&&!E[Q.day];if(!e){if(!u&&s){const e={anonymizedTextResponse:"",answers:[{comment:E.comment,content:"",user_tag:p}],textResponse:""};return t(e),ru(),e}return A.skipClearState(),P({payload:!0,type:"setError"}),ru(),null}const r=su(E[Q.day],2),i=su(E[Q.month],2),o=E[Q.year],n={anonymizedTextResponse:`${o}-${i}-${r}`,answers:[{comment:E.comment,content:`${o}-${i}-${r}`,nextSurveyPointId:d,user_tag:p}],textResponse:`${o}-${i}-${r}`,value:Object.assign({[Q.day]:r,[Q.month]:i,[Q.year]:o,comment:E.comment},M&&{disclaimer_accepted:E.isDisclaimerAccepted})};return t(n),n}});const R=(e,t,s)=>{let r="";e.target instanceof HTMLInputElement&&(r=e.target.value),r=r.replace(/\D/g,""),P({payload:!1,type:"setError"}),P({payload:r,type:t});const i=k[s+1];((e,t)=>e===Q.year?4===t.length:e===Q.month?2===t.length||parseInt(t,10)>1:2===t.length||parseInt(t,10)>3)(t,r)&&s<2&&i&&i.current&&i.current.focus()},D=e=>{P({payload:e,type:"setContainerClass"})},L={"sv--background-answer-opacity-10":!0,sv__date:!0,sv__invalid:E.error,[E.containerClass]:!!E.containerClass},F={"sv--color-answer":!0,"sv-color-fw":!0,sv__date__input:!0};return(0,ss.h)("div",{className:qa({"sv__date-wrapper":!0,sv__date__wrapper:!0})},(0,ss.h)("div",{className:"sv__scroll-container"},r,(0,ss.h)(L_,{shouldShow:u,text:o}),(0,ss.h)("div",{"aria-labelledby":n,className:qa(L),role:"group"},S.map((e,t)=>[(0,ss.h)(p_,{"data-testid":`${e}-input-validation`,invalid:E.error,key:e,type:"date"},(0,ss.h)("input",{"aria-label":`${u?T:""} ${x[e]}`,className:qa(F),"data-testid":e,maxLength:e.length,onBlur:()=>D(""),onFocus:()=>D("focused"),onInput:s=>R(s,e,t),placeholder:e,ref:k[t],type:"text",value:E[e]})),2!==t?(0,ss.h)("div",{"aria-hidden":"true",className:"sv__date__separator sv--color-answer"},null!=m?m:"/"):null]))),b&&(0,ss.h)(U_,{commentFieldLabel:g||"",mandatoryComment:f,setComment:e=>{P({payload:e,type:"setComment"})},shouldFocus:!1,textPlaceholder:i,value:E.comment}),C&&(0,ss.h)(g_,{isDisclaimerAccepted:E.isDisclaimerAccepted,point:e,setIsDisclaimerAccepted:()=>{P({payload:!E.isDisclaimerAccepted,type:"setIsDisclaimerAccepted"})}}))},lu=(e,t)=>{switch(t.type){case"setAnswers":return Object.assign(Object.assign({},e),{answers:t.payload});case"setComment":return Object.assign(Object.assign({},e),{comment:t.payload});case"setError":return Object.assign(Object.assign({},e),{error:t.payload});case"setPointId":return Object.assign(Object.assign({},e),{pointId:t.payload});case"setReducedAnswers":return Object.assign(Object.assign({},e),{reducedAnswers:t.payload});case"setIsDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload});case"setValue":return Object.assign(Object.assign({},e),{value:t.payload})}},vu=(e,t)=>{switch(t.type){case"setFocusPosition":return Object.assign(Object.assign({},e),{focusPosition:t.payload});case"setIsOpen":return Object.assign(Object.assign({},e),{isOpen:t.payload});case"setSearch":return Object.assign(Object.assign({},e),{search:t.payload});case"setSelected":return Object.assign(Object.assign({},e),{selected:t.payload})}},_u=({shouldShowClearButton:e,clearInput:t,toggleDropdown:s,searchHandler:r,keyDownHandler:i,isFocusable:o})=>{const{isPage:n,surveyType:a}=ys(Wo),c=u_.isMicroTheme(a),l=Rv();return(0,ss.h)("div",{className:qa({"sv__select-buttons":!0,sv__select__buttons:!0})},e&&(n||c)?(0,ss.h)("button",{"aria-label":l[mc.CLOSE_DROPDOWN],className:qa({"sv__clear-input-icon":!0,"sv__select-icon":!0,"sv__select__clear-input":!0}),"data-testid":"clear-button",onClick:t,onKeyDown:t,tabIndex:0,title:"Close",type:"button"},(0,ss.h)(jv,{tabIndex:-1})):(0,ss.h)("div",{"aria-label":l[mc.OPEN_DROPDOWN],className:"sv__caret sv__select-icon",onClick:s,onInput:r,onKeyDown:e=>i(e,!0),role:"button",tabIndex:o?-1:0},ql&&(n||c)&&!e&&(0,ss.h)(ql,{"aria-hidden":"true"})))},uu=({text:e,highlight:t})=>{const s=t?e.toLowerCase().indexOf(t.toLowerCase()):-1;return-1===s?(0,ss.h)(__,{className:"sv--color-answer",content:e,inline:!0}):(0,ss.h)("span",{className:"sv--color-answer"},e.substring(0,s),(0,ss.h)("strong",null,e.substring(s,s+t.length)),e.substring(s+t.length,e.length)," ")},du=e=>{const{isPage:t}=ys(Wo),s=s=>{const r=s===e.position;return qa({"sv--background-main":!t,"sv--border-color-answer":r,"sv--color-answer":!0,"sv-color-fa":!t,"sv-nested-bg-bw":!t,"sv-nested-bg-hover-bw":!t,"sv-nested-bg-selected-bw":!t&&r,"sv__select-button":!0,"sv__select-button--focused":r})},r={"sv--background-main":!t,"sv--border-color-answer":t,"sv__select-list":!0};return(0,ss.h)("ul",{className:qa(r),"data-testid":"select-list"},e.options.map((t,r)=>(0,ss.h)("li",{className:"sv__select-list__element","data-testid":"select-list-element",key:t.value},(0,ss.h)("button",{"aria-label":`${t.label}`,className:s(r),"data-testid":`select-list-button-${r}`,onClick:s=>{s.stopPropagation(),e.selectOption(t)},onKeyDown:s=>Yv(s,()=>e.selectOption(t)),style:{"--tick-url":`url(${$.getState().surveysStaticUrl}/images/tick.svg)`},tabIndex:0,type:"button"},(0,ss.h)(uu,{highlight:e.search,text:t.label})))))},pu=({options:e,inputValue:t,onSelect:s,showClearButton:r,isFocusable:i,isError:o,allowSearch:n,dropdownPlaceholder:a,shouldHideSubmitButton:c,titleId:l})=>{var v,_;const u=$a(),{isWidget:d,surveyType:p,isPage:m}=ys(Wo),h=bs(null),b=bs(null),g=bs(!1),f=e.find(e=>e.value===t)||null,y={focusPosition:-1,isOpen:!1,search:f?f.label:"",selected:f},[w,x]=ps(vu,y),S=e=>{(null==h?void 0:h.current)&&(e.composedPath().includes(h.current)||(x({payload:-1,type:"setFocusPosition"}),x({payload:!1,type:"setIsOpen"})))},k=e=>{if(!i)return;const t=h.current;t&&t.classList.toggle("sv__select--border",e)},T=t=>e.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())),A=t=>{let r="";t.target instanceof HTMLInputElement&&(r=t.target.value),x({payload:!!P().length,type:"setIsOpen"}),x({payload:r,type:"setSearch"}),x({payload:null,type:"setSelected"});const i=r.trim(),o=i&&e.find(e=>e.label.toLowerCase()===i.toLowerCase());o?(x({payload:T(i).indexOf(o),type:"setFocusPosition"}),g.current=!0,s(o.value)):(x({payload:-1,type:"setFocusPosition"}),s(""))},O=e=>{w.isOpen&&e.target.blur(),x({payload:!w.isOpen,type:"setIsOpen"}),x({payload:"",type:"setSearch"})},E=e=>{x({payload:0,type:"setFocusPosition"}),x({payload:!1,type:"setIsOpen"}),x({payload:"",type:"setSearch"}),x({payload:e,type:"setSelected"}),s(e.value)},P=()=>{const{search:t,selected:s}=w;return(null==s?void 0:s.label)?e.filter(e=>e.value!==s.value):t?T(t):e},C=(e,t)=>{const s=P()[w.focusPosition];switch(e.key){case" ":if(!t&&n)return;return e.preventDefault(),t&&(O(e),x({payload:0,type:"setFocusPosition"})),void(w.isOpen&&s&&E(s));case"Enter":return e.preventDefault(),t&&(O(e),x({payload:0,type:"setFocusPosition"})),void(w.isOpen&&s&&E(s));case"Escape":return e.preventDefault(),void x({payload:!1,type:"setIsOpen"});case"Tab":return void(w.isOpen&&x({payload:!1,type:"setIsOpen"}));case"ArrowUp":return w.isOpen||x({payload:!0,type:"setIsOpen"}),void M(-1);case"ArrowDown":w.isOpen||x({payload:!0,type:"setIsOpen"}),M(1)}},M=e=>{const t=P().length;if(!t)return;const s=(w.focusPosition+e+t)%t;x({payload:s,type:"setFocusPosition"})},I=!(!w.search&&!(null===(v=w.selected)||void 0===v?void 0:v.label))&&r,N=!P().length||!!o,j={"sv--border-color-answer":m&&w.isOpen,"sv-invalid":N,sv__select:!0,"sv__select--open":w.isOpen,"sv__survey-up":d&&u_.isSurveyUp(p)};return ms(()=>(document.addEventListener("click",S,!1),()=>{document.removeEventListener("click",S,!1)}),[]),ms(()=>{if(g.current)return void(g.current=!1);const s=e.find(e=>e.value===t)||null;x({payload:s?s.label:"",type:"setSearch"}),x({payload:s,type:"setSelected"})},[t]),ms(()=>{c&&(m&&Hl(Me.getStore(p).getState().previewDevice)&&A_(p,'[data-id="scroll-container"]',!0),u.hideSubmitButton(w.isOpen))},[w.isOpen,c,m,p,u]),D_({ref:h,shouldScroll:w.isOpen}),(0,ss.h)("div",{className:qa(j),"data-testid":"select",ref:h},(0,ss.h)(p_,{invalid:N,type:"select"},(0,ss.h)("input",{"aria-label":a,"aria-labelledby":l,autoComplete:"off",className:"sv__input sv--color-answer sv--background-answer-opacity-10","data-testid":"select-input",onBlur:e=>{var t;(null===(t=h.current)||void 0===t?void 0:t.contains(e.relatedTarget))||k(!1)},onClick:O,onFocus:()=>k(!0),onInput:A,onKeyDown:C,placeholder:a,readOnly:!n,ref:b,tabIndex:0,type:"text",value:w.search||(null===(_=w.selected)||void 0===_?void 0:_.label)})),w.isOpen&&!!P().length&&(0,ss.h)(du,{options:P(),position:w.focusPosition,search:w.search,selectOption:E}),(0,ss.h)(_u,{clearInput:e=>{"Tab"!==(null==e?void 0:e.key)&&(x({payload:"",type:"setSearch"}),x({payload:null,type:"setSelected"}),I&&b.current&&(s(""),x({payload:-1,type:"setFocusPosition"}),b.current.value=""))},isFocusable:i,keyDownHandler:C,searchHandler:A,shouldShowClearButton:I,toggleDropdown:O}))},mu=e=>{var t,s,r,i,o,n,a,c,l;const{surveyType:v,isMobileSurvey:_}=ys(Wo),u=Me.getStore(v),d=Hl(u.getState().previewDevice),p=nl().submitState.value,m=p.type!==el.NotRendered&&p.isHidden,h=bs(null),{answerRequiredText:b,dropdownPlaceholder:g,textPlaceholder:f,titleId:y,point:w,value:x}=e,{answers:S,id:k,settings:{mandatory:T,comment_label:A,mandatory_comment:O,disclaimer:E,disclaimer_settings:P}}=w,C=S.reduce((e,t)=>`${e}${t.possible_answer}`,""),M={answers:H_(e.point),comment:(null==x?void 0:x.comment)||"",error:!1,isDisclaimerAccepted:null!==(t=null==x?void 0:x.disclaimer_accepted)&&void 0!==t&&t,pointId:k,reducedAnswers:C,value:x||null},[I,N]=ps(lu,M),{showDisclaimer:j,showCheckbox:R,isRequiredDisclaimerNotAccepted:D}=S_({disclaimer:E,disclaimer_settings:P,isDisclaimerAccepted:I.isDisclaimerAccepted}),L=!(!I.value&&T||O&&(null===(r=null===(s=I.value)||void 0===s?void 0:s.answer)||void 0===r?void 0:r.add_comment)&&!I.comment||D);T_({alwaysRender:!0,customCanSubmit:L,isMandatory:T,isRequiredDisclaimerNotAccepted:D,selectedAnswer:I.value?{add_comment:null===(i=I.value.answer)||void 0===i?void 0:i.add_comment}:void 0,showCheckbox:R,submit:()=>{var t;const s=null===(t=I.value)||void 0===t?void 0:t.answer;if(!s){if(T)return N({payload:!0,type:"setError"}),null;const t={anonymizedTextResponse:"",answers:[],textResponse:""};return e.answer(t),t}const r={anonymizedTextResponse:s.possible_answer,answers:[{comment:I.comment,nextSurveyPointId:s.next_survey_point_id,survey_question_answer_id:s.id,user_tag:s.user_tag}],textResponse:s.possible_answer,value:Object.assign({answer:s,comment:I.comment},R&&{disclaimer_accepted:I.isDisclaimerAccepted})};return e.answer(r),r}});const F=()=>null==I?void 0:I.answers.map(e=>({label:Gv(e.possible_answer),value:e.id})),z=!_&&(null===(n=null===(o=I.value)||void 0===o?void 0:o.answer)||void 0===n?void 0:n.add_comment);return ms(()=>{u.getState().rootElement&&N({payload:H_(e.point),type:"setAnswers"}),F()},[S]),D_({ref:h,shouldScroll:!!z}),(0,ss.h)("div",{className:"sv__dropdown-wrapper sv__dropdown__wrapper"},(0,ss.h)("div",{className:"sv__scroll-container"},e.children,(0,ss.h)(L_,{shouldShow:T,text:b}),(0,ss.h)(pu,{allowSearch:!0,dropdownPlaceholder:g||"Please select an answer",inputValue:null!==(l=null===(c=null===(a=I.value)||void 0===a?void 0:a.answer)||void 0===c?void 0:c.id)&&void 0!==l?l:null,isError:I.error,onSelect:e=>{const t=S.find(t=>t.id===e);N({payload:t?{answer:t,comment:I.comment}:null,type:"setValue"})},options:F(),pointId:I.pointId,shouldHideSubmitButton:!d,showClearButton:!0,titleId:y}),z&&(0,ss.h)(U_,{commentFieldLabel:A||"",mandatoryComment:O,ref:h,setComment:e=>{N({payload:e,type:"setComment"})},textPlaceholder:f,value:I.comment})),j&&(0,ss.h)(g_,{isDisclaimerAccepted:I.isDisclaimerAccepted,point:w,setIsDisclaimerAccepted:()=>N({payload:!I.isDisclaimerAccepted,type:"setIsDisclaimerAccepted"}),shouldHide:m&&!d}))},hu=({point:e})=>{const{isPage:t}=ys(Wo),s={"sv--color-answer":!t,"sv--color-question":t,"sv__matrix-cell":!0};return(0,ss.h)("div",{className:"sv__matrix-row sv__matrix-header"},["",...e.settings.scale.map(e=>e.name)].map(e=>(0,ss.h)(__,{className:qa(s),content:e,key:e})))},bu=e=>{const{isPage:t}=ys(Wo),{subQuestion:s,answersNumber:r,selectedAnswer:i,rowIndex:o,isSelected:n,scale:a,selectAnswer:c}=e,l={"sv--background-answer-opacity-10":!0,"sv--border-color-answer":t&&n,"sv__matrix-row":!0,sv__selected:n},v={"sv--color-answer":!0,"sv__matrix-cell":!0};return(0,ss.h)("div",{className:qa(l),"data-testid":`row-index=${o}`},(0,ss.h)("div",{className:qa(v)},(0,ss.h)(__,{className:"sv--color-answer",content:s})),Kl({length:r,type:Wl.length}).map((e,t)=>{const r=a[t].id;return(0,ss.h)("div",Object.assign({className:qa(v),"data-testid":r,key:r,onClick:()=>c(o,r),onKeyDown:()=>{}},i===r?{"data-answerid":r}:{}),(0,ss.h)(v_,{colors:c_.bw,display:l_.circle,isSelected:i===r,label:`${a[t].name} ${s}`,onClick:()=>c(o,r),onKeyboardClick:()=>c(o,r),testId:`checkbox-${o}-${r}`}))}))},gu=e=>{const{answerRequiredText:t,children:s,comments:r,isRequiredDisclaimerNotAccepted:i,mandatory:o,mandatoryComment:n,point:a,pointAnswers:c,selectAnswer:l,selectedAnswers:v,setComment:_,submit:u,textPlaceholder:d}=e,p=v.every(e=>!!e),m=gs(()=>G_(n,c,r),[n,c,r]),h=gs(()=>c.some((e,t)=>{if(!v[t])return!1;const s=e.id,i=r[s];return e.add_comment&&!i}),[c,v,r]);return T_({alwaysRender:!0,customCanSubmit:!(o&&m||!o&&n&&h),isMandatory:o,isRequiredDisclaimerNotAccepted:i,selectedAnswer:p?{}:void 0,submit:u}),(0,ss.h)("div",{className:"sv__matrix-wrapper sv__matrix-desktop"},(0,ss.h)("div",{className:"sv__scroll-container"},s,(0,ss.h)(L_,{shouldShow:o,text:t}),(0,ss.h)(hu,{point:a}),c.map((e,t)=>(0,ss.h)("div",{className:"sv__matrix-row-wrapper","data-testid":`matrix-row-wrapper-${t}`,key:e.id},(0,ss.h)(bu,{answersNumber:a.settings.scale.length,isSelected:!!v[t],key:e.id,rowIndex:t,scale:a.settings.scale,selectAnswer:l,selectedAnswer:v[t],subQuestion:e.possible_answer}),!!v[t]&&(null==e?void 0:e.add_comment)&&(0,ss.h)(U_,{commentFieldLabel:a.settings.comment_label||"",mandatoryComment:n,setComment:t=>{_(e.id,t)},textPlaceholder:d,value:r[e.id]})))))},fu=(e,t)=>{switch(t.type){case"setComments":return Object.assign(Object.assign({},e),{comments:t.payload});case"setPointId":return Object.assign(Object.assign({},e),{pointId:t.payload});case"setAnswers":return Object.assign(Object.assign({},e),{selectedAnswers:t.payload});case"setMobileQuestionNr":return Object.assign(Object.assign({},e),{mobileQuestionNr:t.payload});case"setPointAnswers":return Object.assign(Object.assign({},e),{pointAnswers:t.payload});case"setReducedAnswers":return Object.assign(Object.assign({},e),{reducedAnswers:t.payload});case"setIsDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload})}},yu=(e,t)=>({add_comment:t,id:e.id,next_survey_point_id:null,possible_answer:e.name,user_tag:null}),wu=({isOpen:e,setIsOpen:t,answer:s,selectedScaleText:r})=>{const i={"sv--background-answer-opacity-10":!0,"sv__choice-button":!0,"sv__matrix-dropdown":!0,"sv__matrix-dropdown--closed":!e};return(0,ss.h)("button",{"aria-label":`${s.possible_answer}`,className:qa(i),onClick:()=>t(),onKeyDown:()=>null,tabIndex:0,type:"button"},(0,ss.h)("div",{className:"sv__matrix-answer"},(0,ss.h)(__,{className:"sv__answer-text sv-color-fa sv--color-answer",content:s.possible_answer}),(0,ss.h)("div",{className:"sv--color-button sv__matrix-answer--selected"},r)),(0,ss.h)("div",{className:"sv__caret"},(0,ss.h)(ql,null)))},xu=({isOpen:e,children:t,hasNavigatedBackToQuestion:s})=>{const[r,i]=ds(s||!e?0:void 0),[o,n]=ds(!0),a=bs(null);ms(()=>{n(!1)},[]),ms(()=>{let t=null;if(!o)return a.current&&(i(a.current.scrollHeight),t=e?window.setTimeout(()=>i(void 0),500):window.setTimeout(()=>i(0),100)),()=>{t&&clearTimeout(t)}},[e]);const c={height:void 0!==r?`${r}px`:"auto",overflow:"hidden",transition:"height 500ms ease"};return(0,ss.h)("div",{className:"sv__matrix-animation-wrapper",ref:a,style:c},t)},Su=({textPlaceholder:e,answer:t,scale:s,selectAnswer:r,selectedAnswers:i,answerIndex:o,hasNavigatedBackToQuestion:n,toggleDropdown:a,isOpen:c,comment:l,setComment:v,commentFieldLabel:_,mandatoryComment:u})=>{var d,p;const m=bs(null),h=i[o],b=null!==(p=null===(d=s.find(e=>e.id===h))||void 0===d?void 0:d.name)&&void 0!==p?p:"",[g,f]=ds(!0),y=i.every(e=>!e);return ms(()=>{f(!1)},[]),ms(()=>{if(g)return;let e=null;return m.current&&c&&!y&&(e=window.setTimeout(()=>{var e;null===(e=m.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},600)),()=>{e&&clearTimeout(e)}},[c]),(0,ss.h)("div",{className:"sv__matrix-dropdown__wrapper",ref:m},(0,ss.h)(wu,{answer:t,isOpen:c,selectedScaleText:b,setIsOpen:()=>{a(o,!1)}}),(0,ss.h)(xu,{hasNavigatedBackToQuestion:n,isOpen:c},s.map(s=>(0,ss.h)(B_,{answer:yu(s,!!t.add_comment),answerRequiredText:_,comment:l,dataTestid:`choice-button-${o}-${s.name}`,display:l_.circle,isSelected:h===s.id,key:s.name,mandatoryComment:u,select:()=>{r(o,s.id),!!t.add_comment||a(o)},shouldSkipTab:!c,textPlaceholder:e,updateComment:e=>v(t.id,e)}))))},ku=({answerRequiredText:e,children:t,comments:s,hasNavigatedBackToQuestion:r,isRequiredDisclaimerNotAccepted:i,mandatory:o,mandatoryComment:n,navigationEnabled:a,point:c,pointAnswers:l,selectAnswer:v,selectedAnswers:_,setComment:u,showDisclaimerCheckbox:d,submit:p,textPlaceholder:m})=>{const{isPage:h,surveyType:b}=ys(Wo),g=bs(null),f=gs(()=>_.every(e=>!!e),[_]),y=gs(()=>G_(n,l,s),[n,l,s]);T_({alwaysRender:a,customCanSubmit:!y,isMandatory:o,isPage:h,isRequiredDisclaimerNotAccepted:i,selectedAnswer:f?{}:void 0,showCheckbox:d,submit:p});const[w,x]=ds(()=>Kl({length:Math.max(1,l.length),mapper:(e,t)=>0===t&&!r,type:Wl.length}));return ms(()=>{var e,t;const s=null===(e=g.current)||void 0===e?void 0:e.closest(".sv__survey-wrapper"),r=null===(t=g.current)||void 0===t?void 0:t.closest(".sv__survey"),i="mobile"===Me.getStore(b).getState().previewDevice;return(qt.isDeviceMobileOrTablet()||i)&&s&&r&&(s.style.height="100%",r.style.height="80%"),()=>{s&&r&&(s.style.height="",r.style.height="")}},[]),(0,ss.h)("div",{className:"sv__matrix-widget",ref:g,tabIndex:-1},t,(0,ss.h)(L_,{shouldShow:o,text:e}),l.map((e,t)=>(0,ss.h)(Su,{answer:e,answerIndex:t,comment:s[e.id],commentFieldLabel:c.settings.comment_label||"",hasNavigatedBackToQuestion:r,isOpen:w[t],key:e.id,mandatoryComment:c.settings.mandatory_comment||!1,scale:c.settings.scale,selectAnswer:v,selectedAnswers:_,setComment:u,textPlaceholder:m,toggleDropdown:(e,t)=>((e,t=!0)=>{x(s=>{const r=[...s];if(r[e]=!r[e],t){const t=_.findIndex((t,s)=>0===t&&s>e);-1!==t&&t<r.length&&(r[t]=!0)}return r})})(e,t)})))},Tu=e=>{var t,s,r,i,o,n,a,c,l,v;const{isPage:_,isWidget:u,isFeedback:d}=ys(Wo),{answer:p,answerRequiredText:m,children:h,navigationEnabled:b,point:g,previewDevice:f,textPlaceholder:y,value:w}=e,x=gs(()=>{var e;return(null===(e=null==g?void 0:g.answers)||void 0===e?void 0:e.length)?H_(g):[]},[g]),S={comments:Y_(g,w),isDisclaimerAccepted:null!==(t=null==w?void 0:w.disclaimer_accepted)&&void 0!==t&&t,mobileQuestionNr:0,pointAnswers:x,pointId:g.id,reducedAnswers:x_.reduceAnswers(x),selectedAnswers:(null==w?void 0:w.answers)||Kl({length:null!==(r=null===(s=g.answers)||void 0===s?void 0:s.length)&&void 0!==r?r:0,mapper:()=>0,type:Wl.length})},[k,T]=ps(fu,S),{showDisclaimer:A,showCheckbox:O}=S_({disclaimer:null===(i=g.settings)||void 0===i?void 0:i.disclaimer,disclaimer_settings:null===(o=g.settings)||void 0===o?void 0:o.disclaimer_settings,isDisclaimerAccepted:k.isDisclaimerAccepted}),E=!!(null==w?void 0:w.answers),P=(e,t)=>{var s;if(e<0||t<0||!(null===(s=k.pointAnswers)||void 0===s?void 0:s.length))return;const r=((e,t)=>s=>{const r=e.selectedAnswers.slice();return r[s]=t,r})(k,t)(e);(null==r?void 0:r.length)&&T({payload:r,type:"setAnswers"})},C=(e,t)=>{const s=Object.assign({},k.comments);s[e]=t,T({payload:s,type:"setComments"})},M=()=>{const t=((e,t,s)=>{const r=Object.assign({answers:e.selectedAnswers,comments:e.comments},s&&{disclaimer_accepted:e.isDisclaimerAccepted});if(e.selectedAnswers.some(e=>0===e))return{anonymizedTextResponse:"",answers:[],textResponse:"",value:r};let i="";return e.pointAnswers.forEach((s,r)=>{const o=t.point.settings.scale.find(t=>t.id===e.selectedAnswers[r]);i+=`${s.possible_answer}: ${null==o?void 0:o.name}, `}),i=i.trim().replace(/,\s*$/,""),{anonymizedTextResponse:i,answers:e.selectedAnswers.map((s,r)=>({comment:e.comments[e.pointAnswers[r].id],content:`${s}`,nextSurveyPointId:t.point.settings.next_survey_point_id,survey_question_answer_id:e.pointAnswers[r].id,user_tag:e.pointAnswers[r].user_tag})),textResponse:i,value:r}})(k,e,O);return p(t),t},I=Hl(f),{answers:N,settings:{mandatory:j,mandatory_comment:R,randomize_answers:D,randomize_except_last:L,scale:F,point_image:z}}=g;ms(()=>{if(!(null==N?void 0:N.length))return;const e=x_.reduceAnswers(N);if(k.reducedAnswers!==e&&(T({payload:N,type:"setPointAnswers"}),T({payload:e,type:"setReducedAnswers"})),N.length!==k.selectedAnswers.length){const e=Kl({length:N.length,mapper:(e,t)=>{var s;return null!==(s=k.selectedAnswers[t])&&void 0!==s?s:0},type:Wl.length});T({payload:e,type:"setAnswers"})}},[N]),ms(()=>{var e;(null===(e=null==g?void 0:g.answers)||void 0===e?void 0:e.length)&&T({payload:H_(g),type:"setPointAnswers"})},[D,L,null==g?void 0:g.answers]);const q=(u||d)&&(null!==(a=null===(n=k.pointAnswers)||void 0===n?void 0:n.length)&&void 0!==a?a:0)<6&&(null!==(c=null==F?void 0:F.length)&&void 0!==c?c:0)<6,U=!k.isDisclaimerAccepted&&!!(null===(v=null===(l=g.settings)||void 0===l?void 0:l.disclaimer_settings)||void 0===v?void 0:v.checkbox_required),$=!I&&(_||q)&&!(e=>{if(!e)return!1;const{desktop_position:t,show_on_desktop:s}=e;return(t===iu.RightFullScreen||t===iu.LeftFullScreen||t===iu.Right||t===iu.Left)&&s})(z);return(0,ss.h)(ss.Fragment,null,$?(0,ss.h)(gu,{answerRequiredText:m,comments:k.comments,isRequiredDisclaimerNotAccepted:U,mandatory:j,mandatoryComment:R,point:g,pointAnswers:k.pointAnswers,selectAnswer:P,selectedAnswers:k.selectedAnswers,setComment:C,submit:M,textPlaceholder:y},h):(0,ss.h)(ku,{answerRequiredText:m,comments:k.comments,hasNavigatedBackToQuestion:E,isRequiredDisclaimerNotAccepted:U,mandatory:j,mandatoryComment:R,navigationEnabled:b,point:g,pointAnswers:k.pointAnswers,selectAnswer:P,selectedAnswers:k.selectedAnswers,setComment:C,showDisclaimerCheckbox:O,submit:M,textPlaceholder:y},h),A&&(0,ss.h)(g_,{isDisclaimerAccepted:k.isDisclaimerAccepted,isNarrow:!$,point:g,setIsDisclaimerAccepted:()=>T({payload:!k.isDisclaimerAccepted,type:"setIsDisclaimerAccepted"})}))},Au=e=>{var t,s,r;const{isPage:i,surveyType:o}=ys(Wo),n=bs(null),{answerRequiredText:a,children:c,navigationEnabled:l,point:v,previewDevice:_,textPlaceholder:u,titleId:d,value:p}=e,{answers:m,settings:h}=v,{comment_label:b,disclaimer:g,disclaimer_settings:f,mandatory:y,mandatory_comment:w,mandatory_submit_button:x,screenshot:S,text_on_the_left:k,text_on_the_right:T}=h,A=Be.params.aid,O=m.find(({id:e})=>e===Number(A)),[E,P]=ds(null!==(t=null==p?void 0:p.answer)&&void 0!==t?t:O),[C,M]=ds((null==p?void 0:p.comment)||""),[I,N]=ds(null!==(s=null==p?void 0:p.disclaimer_accepted)&&void 0!==s&&s),{showDisclaimer:j,showCheckbox:R,isRequiredDisclaimerNotAccepted:D}=S_({disclaimer:g,disclaimer_settings:f,isDisclaimerAccepted:I}),L=_===Ae.mobile||_!==Ae.desktop&&qt.isWidthMobile(),F=L&&i||L&&e.point.answers.length>=6,{pointsDisplayed:z}=Me.getStore(o).getState().surveyState,q=1===z.length,U=!!l&&!q,$={"sv__numerical-scale":!0,"sv__numerical-scale--mobile":F,"sv__numerical-scale--vertical":F},B={sv__buttons:!0,"sv__buttons--vertical":F,"sv__numerical-scale__buttons":!0},V=e=>{const t=e.id===(null==E?void 0:E.id);return qa({"sv--background-answer-opacity-10":!0,"sv--border-color-answer":t,"sv--color-answer":!0,sv__button:!0,"sv__button--selected":!i&&t,sv__selected:t})},H=E&&m.length>0&&m[0].add_comment;return T_({aid:A,alwaysRender:U,comment:C,isMandatory:y,isPage:i,isRequiredDisclaimerNotAccepted:D,mandatoryComment:w,mandatorySubmitButton:x,screenshotEnabled:null!==(r=null==S?void 0:S.button_enabled)&&void 0!==r&&r,selectedAnswer:E,showCheckbox:R,submit:()=>{if(E){const t=Bt(Object.assign({answer:E,comment:C,point:e.point},R?{disclaimer_accepted:I}:{}));return e.answer(t),t}return y?null:Gt(e.answer)}}),D_({ref:n,shouldScroll:!H}),(0,ss.h)("div",{className:qa($)},(0,ss.h)("div",{className:"sv__numerical-scale__wrapper"},(0,ss.h)("div",{className:"sv__scroll-container"},c,(0,ss.h)(L_,{shouldShow:y,text:a}),(0,ss.h)("div",{"aria-labelledby":d,className:qa(B),role:"radiogroup"},m.map((t,s)=>(0,ss.h)("button",{"aria-pressed":t.id===(null==E?void 0:E.id),className:V(t),"data-testid":t.id,key:t.id,onClick:s=>{s.stopPropagation(),(t=>{E||x||t.add_comment||R||l&&!q||y&&(null==S?void 0:S.button_enabled)||!y?P(t):e.answer(Bt(Object.assign({answer:t,comment:C,point:e.point},R?{disclaimer_accepted:I}:{})))})(t)},type:"button"},((e,t)=>F?0===t&&k?`${e} - ${k}`:t===m.length-1&&T?`${e} - ${T}`:e:e)(t.possible_answer,s)))),!F&&(0,ss.h)("div",{className:"sv__labels"},k&&(0,ss.h)("div",{className:"sv__label sv__label--left sv--color-answer"},k),T&&(0,ss.h)("div",{className:"sv__label sv__label--right sv--color-answer"},T)))),H&&(0,ss.h)(U_,{commentFieldLabel:b||"",mandatoryComment:w,ref:n,setComment:e=>{M(e)},textPlaceholder:u,value:C}),j&&(0,ss.h)(g_,{isDisclaimerAccepted:I,point:v,setIsDisclaimerAccepted:()=>N(!I)}))},Ou=({shape:e})=>{switch(e.toLowerCase()){case Z.thumbs:return(0,ss.h)("svg",{viewBox:"3.90125 3.62625 55.96725 52.51425",xmlns:"http://www.w3.org/2000/svg"},(0,ss.h)("path",{d:"M45.958 55H19.703V21.919L37.622 4l3.085 3.02c.284.327.52.738.705 1.23.186.492.28.957.28 1.395v.853l-2.823 11.42h14.965c1.29 0 2.434.499 3.43 1.494.995.996 1.493 2.139 1.493 3.43v5.12c0 .306-.028.628-.082.968-.055.339-.137.65-.246.935l-7.746 18.05c-.372.875-1.012 1.608-1.92 2.199-.907.59-1.843.886-2.805.886zM14.78 21.919V55H5V21.919h9.78z",fill:"#D1D2D1","fill-rule":"nonzero"}));case Z.stars:return(0,ss.h)("svg",{viewBox:"4.33125 4.05625 54.3375 50.8875",xmlns:"http://www.w3.org/2000/svg"},(0,ss.h)("path",{d:"m15.255 55 4.394-18.874L5 23.453l19.317-1.67L31.846 4l7.529 17.784 19.316 1.669-14.649 12.673L48.437 55 31.846 44.984z",fill:"#D1D2D1","fill-rule":"nonzero"}));default:return(0,ss.h)("svg",{viewBox:"2.78125 2.50625 57.154375 53.431875",xmlns:"http://www.w3.org/2000/svg"},(0,ss.h)("path",{d:"m31.818 55-3.852-3.46c-4.72-4.259-8.622-7.933-11.707-11.022-3.085-3.09-5.537-5.856-7.358-8.3-1.82-2.445-3.092-4.691-3.816-6.74A18.742 18.742 0 0 1 4 19.193c0-4.328 1.45-7.942 4.35-10.842C11.252 5.45 14.866 4 19.194 4c2.439 0 4.76.523 6.965 1.57 2.204 1.045 4.091 2.543 5.66 4.493 1.64-1.95 3.543-3.448 5.706-4.494A15.69 15.69 0 0 1 44.444 4c4.327 0 7.941 1.45 10.842 4.35 2.9 2.901 4.35 6.515 4.35 10.843 0 2.142-.361 4.237-1.085 6.285-.723 2.049-1.996 4.295-3.816 6.74-1.82 2.444-4.273 5.21-7.358 8.3-3.084 3.089-6.987 6.763-11.707 11.023L31.818 55z",fill:"#D1D2D1","fill-rule":"nonzero"}))}},Eu=e=>{var t,s;const{surveyType:r,isPage:i}=ys(Wo),o=bs(null),{answerRequiredText:n,point:a,value:c,children:l,previewDevice:v,textPlaceholder:_,titleId:u,navigationEnabled:d}=e,{answers:p,settings:m}=a,{shape:h,text_on_the_left:b,text_on_the_right:g,mandatory_submit_button:f,mandatory:y,mandatory_comment:w,comment_label:x,screenshot:S,disclaimer:k,disclaimer_settings:T}=m,A=Be.params.aid,O=p.find(({id:e})=>e===Number(A)),[E,P]=ds((null==c?void 0:c.answer)||O),[C,M]=ds((null==c?void 0:c.comment)||""),[I,N]=ds(void 0),[j,R]=ds(null!==(t=null==c?void 0:c.disclaimer_accepted)&&void 0!==t&&t),{showDisclaimer:D,showCheckbox:L,isRequiredDisclaimerNotAccepted:F}=S_({disclaimer:k,disclaimer_settings:T,isDisclaimerAccepted:j}),z=u_.isMicroTheme(r),q=v===Ae.mobile||v!==Ae.desktop&&qt.isWidthMobile(),U=q&&z&&e.point.answers.length>=6,{pointsDisplayed:$}=Me.getStore(r).getState().surveyState,B=1===$.length,V=E&&p.length>0&&p[0].add_comment,H=t=>{E||t.add_comment||f||L||d&&!B||y&&(null==S?void 0:S.button_enabled)||!y?P(t):e.answer(Bt(Object.assign({answer:t,comment:C,point:e.point},L?{disclaimer_accepted:j}:{})))},W=e=>{N(e)},K={sv__rating:!0,"sv__rating--short":e.point.answers.length<=7,"sv__rating--vertical":U,"sv__short-rating":e.point.answers.length<=7},G={sv__buttons:!0,"sv__buttons--vertical":U,sv__rating__buttons:!0},Y=e=>{const t=e<=p.findIndex(({id:e})=>e===(null==E?void 0:E.id)),s=void 0!==I&&e<=I;return qa({"sv--background-answer-opacity-10":U,"sv-rating":!0,"sv-rating-selected":t||s,sv__button:!0,"sv__button--selected":t||s&&!q})};return T_({aid:A,alwaysRender:!!d&&!B,comment:C,isMandatory:y,isPage:i,isRequiredDisclaimerNotAccepted:F,mandatoryComment:w,mandatorySubmitButton:f,screenshotEnabled:null!==(s=null==S?void 0:S.button_enabled)&&void 0!==s&&s,selectedAnswer:E,showCheckbox:L,submit:()=>{if(E){const t=Bt(Object.assign({answer:E,comment:C,point:e.point},L?{disclaimer_accepted:j}:{}));return e.answer(t),t}return y?null:Gt(e.answer)}}),D_({ref:o,shouldScroll:!!V}),(0,ss.h)("div",{className:qa(K)},(0,ss.h)("div",{className:"sv__rating__wrapper"},(0,ss.h)("div",{className:"sv__scroll-container"},l,(0,ss.h)(L_,{shouldShow:y,text:n}),(0,ss.h)("div",{"aria-labelledby":u,className:qa(G),role:"radiogroup"},[...p].map((e,t)=>{const s={current:t,last:p.length-1};return(0,ss.h)("button",{"aria-label":`${e.possible_answer}`,"aria-pressed":e.id===(null==E?void 0:E.id),className:Y(t),"data-testid":e.id,"data-value":e.possible_answer,key:e.id,onBlur:()=>W(void 0),onClick:t=>{t.stopPropagation(),H(e)},onFocus:()=>W(t),onKeyDown:t=>Yv(t,()=>H(e),{preventDefault:!0}),onMouseOut:()=>W(void 0),onMouseOver:()=>W(t),type:"button"},(0,ss.h)(Ou,{shape:h}),(0,ss.h)("div",{className:"sv__rating__number sv-color-fa sv--color-answer"},(0,ss.h)(F_,Object.assign({},U&&{content:{highestValueText:g,lowestValueText:b}},{answer:e.possible_answer,indexes:s}))))})),!U&&(0,ss.h)("div",{className:"sv__labels sv-color-fw sv--color-answer"},b&&(0,ss.h)("div",{className:"sv__label sv__label--left sv--color-answer"},b),g&&(0,ss.h)("div",{className:"sv__label sv__label--right sv--color-answer"},g)))),V&&(0,ss.h)(U_,{commentFieldLabel:x||"",mandatoryComment:w,ref:o,setComment:e=>{M(e)},textPlaceholder:_,value:C}),D&&(0,ss.h)(g_,{isDisclaimerAccepted:j,point:a,setIsDisclaimerAccepted:()=>R(!j)}))},Pu=({smileyIcon:e,imageUrl:t})=>{if(!e)throw new Error("Invalid Smiley Type");return(0,ss.h)("div",{"aria-label":e.ariaLabel,className:`sv__smiley-scale__icon-container ${e.className}`,"data-testid":e.ariaLabel,role:"img",style:{backgroundImage:`url(${t})`}})};var Cu;!function(e){e.verySad="emojiAngry.png",e.sad="emojiSad.png",e.neutral="emojiNeutral.png",e.happy="emojiSmile.png",e.veryHappy="emojiHeartEyes.png"}(Cu||(Cu={}));const Mu={[J.verySad]:{ariaLabel:"very sad",className:"sv__very-sad",imagePath:`/images/${Cu.verySad}`},[J.sad]:{ariaLabel:"sad",className:"sv__sad",imagePath:`/images/${Cu.sad}`},[J.neutral]:{ariaLabel:"neutral",className:"sv__neutral",imagePath:`/images/${Cu.neutral}`},[J.happy]:{ariaLabel:"happy",className:"sv__happy",imagePath:`/images/${Cu.happy}`},[J.veryHappy]:{ariaLabel:"very happy",className:"sv__very-happy",imagePath:`/images/${Cu.veryHappy}`}},Iu=e=>{const{surveyType:t,isPage:s}=ys(Wo),{answerRequiredText:r,titleId:i,point:{answers:o,settings:{text_on_the_left:n,text_on_the_right:a,mandatory_submit_button:c,mandatory:l,mandatory_comment:v,comment_label:_,screenshot:u,disclaimer:d,disclaimer_settings:p}},value:m,point:h,children:b,navigationEnabled:g,textPlaceholder:f}=e,y=Be.params.aid,w=o.find(({id:e})=>e===Number(y)),x=bs(null),[S,k]=ds((null==m?void 0:m.answer)||w),[T,A]=ds((null==m?void 0:m.comment)||""),[O,E]=ds((null==m?void 0:m.disclaimer_accepted)||!1),{showDisclaimer:P,showCheckbox:C,isRequiredDisclaimerNotAccepted:M}=S_({disclaimer:d,disclaimer_settings:p,isDisclaimerAccepted:O}),{pointsDisplayed:I}=Me.getStore(t).getState().surveyState,N=1===I.length,j=!!S&&o.length>0&&o[0].add_comment,R=t=>{S||t.add_comment||j||c||C||g&&!N||l&&(null==u?void 0:u.button_enabled)||!l?k(t):e.answer(Bt(Object.assign({answer:t,comment:T,point:e.point},C?{disclaimer_accepted:O}:{})))},D={"sv__smiley-scale":!0,"sv__three-smileys":3===e.point.answers.length},L=e=>{const t={sv__selected:e.id===(null==S?void 0:S.id),"sv__smiley-scale__button":!0,[`sv__btn-${e.possible_answer.split(" ").join("_")}`]:!0};return qa(t)},F=e=>{const t={[J.happy]:3===o.length?`/images/${Cu.veryHappy}`:`/images/${Cu.happy}`,[J.neutral]:`/images/${Cu.neutral}`,[J.sad]:3===o.length?`/images/${Cu.verySad}`:`/images/${Cu.sad}`,[J.veryHappy]:`/images/${Cu.veryHappy}`,[J.verySad]:`/images/${Cu.verySad}`};return`${$.getState().surveysStaticUrl}${t[e]||""}`};return T_({aid:y,alwaysRender:!!g&&!N,comment:T,isMandatory:l,isPage:s,isRequiredDisclaimerNotAccepted:M,mandatoryComment:v,mandatorySubmitButton:c,screenshotEnabled:!!(null==u?void 0:u.button_enabled),selectedAnswer:S,showCheckbox:C,submit:()=>{if(S){const t=Bt(Object.assign({answer:S,comment:T,point:e.point},C?{disclaimer_accepted:O}:{}));return e.answer(t),t}return l?null:Gt(e.answer)}}),D_({ref:x,shouldScroll:j}),(0,ss.h)("div",{className:qa(D)},(0,ss.h)("div",{className:"sv__smiley-scale__wrapper"},(0,ss.h)("div",{className:"sv__scroll-container"},b,(0,ss.h)(L_,{shouldShow:l,text:r}),(0,ss.h)("div",{"aria-labelledby":i,className:"sv__smiley-scale__buttons",role:"radiogroup"},o.map(e=>(0,ss.h)("button",{"aria-label":`${e.possible_answer}`,"aria-pressed":e.id===(null==S?void 0:S.id),className:L(e),"data-testid":e.id,key:e.id,onClick:t=>{t.stopPropagation(),R(e)},onKeyDown:t=>Yv(t,()=>R(e),{preventDefault:!0}),type:"button"},(0,ss.h)(Pu,{imageUrl:F(e.possible_answer),smileyIcon:Mu[e.possible_answer]})))),(0,ss.h)("div",{className:"sv__labels sv-color-fw"},n&&(0,ss.h)("div",{className:"sv__label sv__label--left sv--color-answer"},n),a&&(0,ss.h)("div",{className:"sv__label sv__label--right sv--color-answer"},a)))),j&&(0,ss.h)(U_,{commentFieldLabel:_||"",mandatoryComment:v,ref:x,setComment:e=>{A(e)},textPlaceholder:f,value:T}),P&&(0,ss.h)(g_,{isDisclaimerAccepted:O,point:h,setIsDisclaimerAccepted:()=>E(!O)}))},Nu=({warningText:e})=>(0,ss.h)("div",{className:"sv__notification-banner"},(0,ss.h)("span",{className:"sv__notification-banner__text"},e)),ju=()=>(0,ss.h)("div",{className:"sv__dot-loader-container sv--border-top-color-question-20"},(0,ss.h)("div",{className:"sv__dot-loader"},[1,2,3].map(e=>(0,ss.h)("div",{className:"sv__dot-loader__dot sv--background-button",key:`dot-${e}`})))),Ru=/\{\{\s?([a-z]+)(?:\.([a-zA-Z0-9_-]+))?(?::([a-z0-9_-]+))?(?:\s?\|\s?"([^"]*)")?\s?\}\}/g;var Du,Lu;!function(e){e.visitor="visitor",e.answer="answer"}(Du||(Du={}));class Fu{static replaceTags(e,t){return t.replace(Ru,(t,s,r,i,o="")=>{let n;switch(s){case Du.visitor:n=this.getVisitorAttributeForMergeTag(e,r);break;case Du.answer:n=this.getAnswer(e,parseInt(i,10));break;default:n=""}return n||o})}static getVisitorAttributeForMergeTag(e,t){const s=((e,t)=>{var s;const{visitor:r}=pa.getState();return null===(s=r.attributes[t])||void 0===s?void 0:s.value})(0,t);return void 0===s?"":ni(s)}static getAnswer(e,t){return We.getVisit(e).getAnswer(t)}}!function(e){e[e.question=0]="question",e[e.description=1]="description"}(Lu||(Lu={}));const zu=({id:e,text:t,type:s,allowHTML:r=!0})=>{const{surveyType:i}=ys(Wo),o=s===Lu.question,n=s===Lu.description,a={"sv--color-question":o||n,"sv__point-description sv-color-description":n,"sv__point-question sv-color-question":o,"sv__point-text":!0};if(!r){const s=/&/g,r="&",o=t.replace(s,r);return(0,ss.h)("div",{className:qa(a),id:e},Fu.replaceTags(i,o))}return(0,ss.h)(__,{className:qa(a),content:Fu.replaceTags(i,t),id:e})},qu={answer:"",followUpAnswerLength:0,question:""},Uu=({characterCount:e=0})=>{const t=qa({"sv--color-answer":!0,"sv__text-input-stats":!0});return(0,ss.h)("div",{className:t},(0,ss.h)("span",{className:"sv__text-input-stats-text"},e,"/",1e3))},$u=({characterCount:e,content:t,edits:s,isLastWithNoFollowUps:r,loading:i,onInput:o,question:n,textClasses:a})=>{const c=bs(null),l=Rv(mc.EDITS);if(D_({ref:c,shouldScroll:!t&&n.length>0}),!n)return null;const v=Object.assign(Object.assign({},a),{"sv__textarea--disabled":i}),_=!r&&!s&&!!t.length;return(0,ss.h)("div",{className:"sv__follow-up sv__point-texts sv__point-texts-wrapper sv--border-top-color-question-20"},(0,ss.h)(zu,{text:n,type:Lu.question}),(0,ss.h)("div",{className:"sv__text-container"},(0,ss.h)("textarea",{"aria-label":`${n}${s>0?`(${s} ${l})`:""}`,className:qa(v),"data-gramm_editor":"false","data-testid":"text-area",disabled:i||_,maxLength:1e3,onInput:e=>{o(e)},readOnly:i||_,ref:c,style:{cursor:i?"not-allowed":"auto"},value:t}),!r&&(0,ss.h)(Uu,{characterCount:e})))},Bu=({message:e,condition:t=!0})=>{const s=bs(null);return ms(()=>{t&&s.current&&(s.current.textContent=e)},[e,t]),(0,ss.h)("div",{"aria-atomic":"true","aria-live":"assertive",className:"sr-only",ref:s,role:"status"})};var Vu=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Hu=e=>Vu(void 0,[e],void 0,function*({dialogs:e,language:t="en",workspaceKey:s}){var r;try{const i=yield window.fetch("https://respondent.survicate.com/boosted-questions/generate-questions",{body:JSON.stringify({dialogs:e,language:t,workspace_key:s}),headers:{"Content-Type":"application/json"},method:"POST"});if(403===(null==i?void 0:i.status)||429===(null==i?void 0:i.status)||500===(null==i?void 0:i.status))return null;const o=yield i.json();return null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.question}catch(e){return console.error("Error generating questions:",e),null}});var Wu=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Ku=(e,t)=>{var s;switch(t.type){case"setContent":return Object.assign(Object.assign({},e),{answerLength:t.payload.length,content:t.payload,error:!1});case"setError":return Object.assign(Object.assign({},e),{error:t.payload});case"setLoading":return Object.assign(Object.assign({},e),{loading:t.payload});case"setDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload});case"setLastEditedFollowUpIndex":return Object.assign(Object.assign({},e),{lastEditedFollowUpIndex:t.payload});case"updateFollowupAnswer":{const{index:r,answer:i,followUpAnswerLength:o}=t.payload;if(r>=(null===(s=e.followUps)||void 0===s?void 0:s.length))return e;const n=[...e.followUps];return n[r]=Object.assign(Object.assign({},n[r]),{answer:i,followUpAnswerLength:o}),Object.assign(Object.assign({},e),{followUps:n})}case"addFollowup":return Object.assign(Object.assign({},e),{followUps:[...e.followUps,Object.assign(Object.assign({},qu),{question:t.payload})]});case"resetAllFollowups":return Object.assign(Object.assign({},e),{followUps:[]});case"resetFollowupsAfterIndex":{const s=t.payload;return Object.assign(Object.assign({},e),{followUps:[...e.followUps.slice(0,s+1)]})}case"decrementRemainingEdits":return Object.assign(Object.assign({},e),{remainingEdits:e.remainingEdits-1});case"setFollowUpQuestions":return Object.assign(Object.assign({},e),{followUpQuestions:t.payload});case"setRemainingEdits":return Object.assign(Object.assign({},e),{remainingEdits:t.payload});default:return e}},Gu=({answer:e,answerRequiredText:t,point:s,textPlaceholder:r,titleId:i,children:o,value:n})=>{var a,c,l,v,_,u,d;const{surveyType:p,isPage:m,isPreview:h,workspaceKey:b}=ys(Wo),g=$a(),{surveyState:{survey:f,translationLanguage:y}}=Me.getStore(p).getState(),{settings:{disclaimer:w,disclaimer_settings:x,mandatory:S,followup_questions:k=null}}=s,T={answerLength:null!==(a=null==n?void 0:n.answer.length)&&void 0!==a?a:0,content:null!==(c=null==n?void 0:n.answer)&&void 0!==c?c:"",error:!1,followUpQuestions:k,followUps:null!==(l=null==n?void 0:n.follow_ups)&&void 0!==l?l:[],isDisclaimerAccepted:null!==(v=null==n?void 0:n.disclaimer_accepted)&&void 0!==v&&v,lastEditedFollowUpIndex:null,loading:!1,pointId:s.id,remainingEdits:null!==(d=null!==(_=null==n?void 0:n.remaining_edits)&&void 0!==_?_:null===(u=null==f?void 0:f.settings)||void 0===u?void 0:u.followup_limit)&&void 0!==d?d:10},[A,O]=ps(Ku,T),{error:E,content:P,isDisclaimerAccepted:C,loading:M,followUps:I,followUpQuestions:N,lastEditedFollowUpIndex:j,remainingEdits:R}=A,{showDisclaimer:D,showCheckbox:L,isRequiredDisclaimerNotAccepted:F}=S_({disclaimer:w,disclaimer_settings:x,isDisclaimerAccepted:C}),z=Rv(),q=e=>{O({payload:e,type:"setLoading"})},U=e=>{O({payload:e,type:"addFollowup"})},$=t=>{const r={anonymizedTextResponse:"",answers:[{content:t,nextSurveyPointId:s.settings.next_survey_point_id,user_tag:s.settings.user_tag}],textResponse:t,value:Object.assign(Object.assign({answer:t},L?{disclaimer_accepted:C}:{}),{follow_ups:I,remaining_edits:R})};return e(r),r},B={"sv--background-answer-opacity-10":!0,"sv--color-answer":!0,"sv-border-color-main":m,"sv-invalid":E,"sv__has-followup-questions":!!k,"sv__text-question":!0,sv__textarea:!0,"sv__textarea--disabled":M},V=bs(null),H=bs(I.length),[W,K]=ds({condition:!1,message:""});ms(()=>{if(H.current!==I.length){const e=I.length>H.current;K({condition:!0,message:e?z[mc.FOLLOWUP_ADDED]:z[mc.FOLLOWUP_REMOVED]}),H.current=I.length;const t=setTimeout(()=>{K(e=>Object.assign(Object.assign({},e),{condition:!1}))},0);return()=>clearTimeout(t)}},[I.length,z]),ms(()=>{h&&k!==N&&O({payload:k,type:"setFollowUpQuestions"})},[k,N,h]),ms(()=>{var e;(null===(e=V.current)||void 0===e?void 0:e.value)&&q_(V.current)},[]);const G=S&&(!P.trim()||N&&I.some(e=>{var t;return!(null===(t=e.answer)||void 0===t?void 0:t.trim())}));T_({alwaysRender:!0,isMandatory:S,isRequiredDisclaimerNotAccepted:F,selectedAnswer:G?null:{add_comment:!1},submit:()=>{var e,t,r;const i=null!==(e=null==P?void 0:P.trim())&&void 0!==e?e:"";if(i.length&&N){const e=I.filter(e=>e.question.length),o=(null==e?void 0:e.length)<N||R&&j&&j<N,n=I[I.length-1],a=n&&!n.followUpAnswerLength;if(!R||a&&!S)return $(i);if(o)return g.skipClearState(),O({type:"decrementRemainingEdits"}),(e=>{Wu(void 0,[e],void 0,function*({trimmedContent:e,content:t,pointContent:s,followUps:r,translationLanguage:i,workspaceKey:o,answerText:n,setLoading:a,addFollowUpQuestion:c}){var l;const v={dialogs:[{answer:t,question:s}],language:i,workspaceKey:o};if(r.length&&r[0].question.length){const e=[...r].filter(e=>e.question.length).pop();if(!(null===(l=null==e?void 0:e.answer)||void 0===l?void 0:l.length))return;v.dialogs.push({answer:e.answer,question:e.question})}a(!0);try{const t=yield Hu(v);if(!t)return void n(e);c(t)}finally{a(!1)}})})({addFollowUpQuestion:U,answerText:$,content:P,followUps:I,pointContent:s.content,setLoading:q,translationLanguage:h?null!=y?y:"en":Dt(f),trimmedContent:i,workspaceKey:h?null!=b?b:"":null!==(r=null===(t=window._svc)||void 0===t?void 0:t.workspaceKey)&&void 0!==r?r:""}),null}return S&&(!i||N&&I.some(e=>{var t;return!(null===(t=e.answer)||void 0===t?void 0:t.trim())}))?(g.skipClearState(),O({payload:!0,type:"setError"}),(()=>{const e=document.querySelector(".sv__survey textarea");e&&e.focus()})(),null):$(i)}});const Y="You've reached the limit of available answer edits";return(0,ss.h)("div",{className:"sv__text-question sv__text-question-wrapper"},(0,ss.h)("div",{className:"sv__scroll-container"},o,(0,ss.h)("div",{className:"sv__text-container"},(0,ss.h)(p_,{invalid:E,type:"text"},(0,ss.h)(L_,{shouldShow:S,text:t}),(0,ss.h)("textarea",{"aria-label":`${s.content} ${S?z[mc.ANSWER_REQUIRED]:""}${k?` (${R} ${z[mc.EDITS]})`:""}`,"aria-labelledby":i,className:qa(B),"data-gramm_editor":"false","data-testid":"text-area",disabled:M||!R&&!!P.length,maxLength:k?1e3:void 0,onInput:e=>{(e=>{var t;if(e.preventDefault(),M)return;let s="";e.target instanceof HTMLTextAreaElement&&(q_(e.target),s=e.target.value),O({payload:s,type:"setContent"}),N&&((null===(t=I[0])||void 0===t?void 0:t.question.length)&&O({type:"resetAllFollowups"}),O({payload:0,type:"setLastEditedFollowUpIndex"}))})(e)},placeholder:r,readOnly:M,ref:V,style:{cursor:M?"not-allowed":"auto"},value:P}),k&&(0,ss.h)(Uu,{characterCount:A.answerLength}))),k&&(0,ss.h)(Bu,{condition:W.condition,message:W.message}),k&&I.filter(e=>e.question.length).map((e,t)=>(0,ss.h)($u,{characterCount:e.followUpAnswerLength,content:e.answer,edits:R,followUpCount:k,isLastWithNoFollowUps:k===t+1||!R,key:e.question,loading:M,onInput:e=>((e,t)=>{var s;if(e.preventDefault(),M)return;let r="";e.target instanceof HTMLTextAreaElement&&(r=e.target.value),(null===(s=I[t+1])||void 0===s?void 0:s.question.length)&&O({payload:t,type:"resetFollowupsAfterIndex"}),O({payload:t+1,type:"setLastEditedFollowUpIndex"}),O({payload:{answer:r,followUpAnswerLength:r.length,index:t},type:"updateFollowupAnswer"})})(e,t),question:e.question,textClasses:B})),M&&(0,ss.h)(ju,null)),!R&&(0,ss.h)(ss.Fragment,null,(0,ss.h)(Nu,{warningText:Y}),(0,ss.h)(Bu,{condition:!R,message:Y})),D&&(0,ss.h)(g_,{isDisclaimerAccepted:C,point:s,setIsDisclaimerAccepted:()=>O({payload:!C,type:"setDisclaimerAccepted"})}))},Yu=({url:e,alt:t,position:s})=>{const[r,i]=ds(!1),[o,n]=ds(!1);ms(()=>{const e=setTimeout(()=>{n(!0)},200);return()=>clearTimeout(e)},[]);const a={"sv__point-image__container":!0,"sv__point-image__container--loading":!r};return(0,ss.h)("div",{className:qa(a)},!r&&o&&(0,ss.h)("div",{className:"sv__spinner"}),(0,ss.h)("img",{alt:t||"Image",className:`sv__point-image sv__image-position--${s}`,onLoad:()=>{i(!0),n(!1)},src:e}))},Zu=[X.smileyScale,X.numericalScale,X.customerSatisfaction,X.single,X.rating,G.nps,X.matrix],Qu=e=>{var t;const{surveyType:s}=ys(Wo),r=i_(s,e.point),{answer:i,close:o,previewDevice:n,value:a,answerRequiredText:c,dropdownPlaceholder:l,navigationEnabled:v,textPlaceholder:_}=e,u={"sv__point-texts":!0,"sv__point-texts--empty":!r.description&&!r.content},d=ws(),p=Hl(n),m=null===(t=r.settings)||void 0===t?void 0:t.point_image,h=!!(null==m?void 0:m.image.url)&&(p?m.show_on_mobile:m.show_on_desktop),b={"sv__point-texts-wrapper":!0,[`sv__point-texts-wrapper--image-${p?null==m?void 0:m.mobile_position:null==m?void 0:m.desktop_position}`]:!!(null==m?void 0:m.image.url)},g=(0,ss.h)("div",{className:qa(b)},h&&(0,ss.h)(Yu,{alt:m.image.description,position:m[""+(p?"mobile_position":"desktop_position")],url:m.image.url}),(0,ss.h)("div",{className:qa(u),"data-testid":"point-texts"},r.description&&(0,ss.h)(zu,{text:r.description,type:Lu.description}),r.content&&(0,ss.h)(zu,{id:d,text:r.content,type:Lu.question}))),f=`sv__point sv__${r.answer_type}-survey-point`;return ms(()=>{A_(s,".sv__point")},[r,s]),(0,ss.h)("div",{className:f,tabIndex:-1},(0,ss.h)("div",{className:"sv__point-wrapper"},(()=>{const e={[X.single]:Q_,[X.multiple]:Z_,[X.text]:Gu,[X.smileyScale]:Iu,[X.date]:cu,[X.dropdown]:mu,[X.rating]:Eu,[X.numericalScale]:Au,[X.customerSatisfaction]:eu,[G.nps]:$_,[$t.button]:C_,[$t.buttonLink]:C_,[$t.redirect]:R_,[$t.social]:j_,[$t.thankYouMessage]:R_,[$t.buttonClose]:C_,[kn.form]:E_,[X.matrix]:Tu}[r.answer_type||r.type];if(!e)return setTimeout(()=>i({anonymizedTextResponse:"",answers:[],textResponse:""})),null;const{answer_type:t}=r,s=[G.nps,X.date,X.numericalScale,X.rating,X.matrix].includes(t);return(0,ss.createElement)(e,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({answer:i},r.answer_type===$t.buttonClose&&{close:o}),{answerRequiredText:c}),r.answer_type===X.dropdown&&{dropdownPlaceholder:l}),{key:r.id,point:r}),s&&{previewDevice:n}),{titleId:d}),(u=t,Zu.includes(u)&&{navigationEnabled:v})),!(e=>[$t.buttonLink,$t.redirect,$t.social,$t.thankYouMessage,kn.form].includes(e))(t)&&{textPlaceholder:_}),{value:a}),[g]);var u})()))};const Xu=new class{constructor(){this.MAX_DESKTOP_SURVEY_HEIGHT=664,this.WINDOW_HEIGHT_PERCENTAGE=.9,this.PREVIEW_WINDOW_HEIGHT_PERCENTAGE=.65,this.PREVIEW_IFRAME_OFFSET=100,this.handleTouchMove=e=>{e.preventDefault()}}getSurvey(){return o_('[data-testid="survey"]',p.WidgetSurvey)}lockBodyScroll(){const e=this.getSurvey();e&&e.addEventListener("touchmove",this.handleTouchMove)}removeBodyScrollListeners(){const e=this.getSurvey();e&&e.removeEventListener("touchmove",this.handleTouchMove)}getSurveyMaxHeight(e,t,s){var r,i,o;if(Hl(e))return null;const{height:n}=zt(),a=t?"preview":"live",c=(null===(o=null===(i=null===(r=Me.getStore(s).getState().surveyState)||void 0===r?void 0:r.survey)||void 0===i?void 0:i.settings)||void 0===o?void 0:o.place_to_show)===w.fullscreen,l={live:n>this.MAX_DESKTOP_SURVEY_HEIGHT,preview:n-this.PREVIEW_IFRAME_OFFSET>this.MAX_DESKTOP_SURVEY_HEIGHT},v={default:this.MAX_DESKTOP_SURVEY_HEIGHT,live:n*this.WINDOW_HEIGHT_PERCENTAGE,preview:n*this.PREVIEW_WINDOW_HEIGHT_PERCENTAGE};let _=v.default;return l[a]||(_=v[a]),c&&(_=n),_}setSurveyHeight(e,t,s){const r=this.getSurvey();if(!r)return;const i=this.getSurveyMaxHeight(e,t,s);r.style.maxHeight=`${i}px`}};function Ju(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},t),["\n ",(0,ss.h)("title",{},["icon / basic / arrow forward"]),"\n ",(0,ss.h)("defs",{},["\n ",(0,ss.h)("polygon",{id:"svg-ArrowForward-1-iWS0H",points:"12 2 10.2375 3.7625 17.2125 10.75 2 10.75 2 13.25 17.2125 13.25 10.2375 20.2375 12 22 22 12"},[]),"\n "]),"\n ",(0,ss.h)("g",{id:"svg-ArrowForward-2QtnVG5",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},["\n ",(0,ss.h)("polygon",{id:"svg-ArrowForward-3jY1JFX",points:"0 0 24 0 24 24 0 24"},[]),"\n ",(0,ss.h)("mask",{id:"svg-ArrowForward-1zPcJy0",fill:"white"},["\n ",(0,ss.h)("use",{"xlink:href":"#svg-ArrowForward-1-iWS0H"},[]),"\n "]),"\n ",(0,ss.h)("use",{id:"svg-ArrowForward-3esRkKp",fill:"#747776","xlink:href":"#svg-ArrowForward-1-iWS0H"},[]),"\n "]),"\n"])}Object.defineProperty(Ju,"name",{value:"default",configurable:!0});const ed=({buttonLink:e})=>(0,ss.h)("a",{className:"sv__branded-footer",href:e,rel:"noopener noreferrer",target:"_blank",title:"Click to go to the Survicate homepage",type:"button"},(0,ss.h)("div",{className:"sv__branded-footer__content"},(0,ss.h)("p",{className:"sv__branded-footer__text"}," Your turn to use "),(0,ss.h)(Ba,{className:"sv__survicate-wordmark"}),(0,ss.h)(Ju,{className:"sv__arrow-forward"}))),td=[$t.buttonLink,$t.redirect,$t.social,$t.thankYouMessage,$t.buttonClose],sd=({buttonLink:e})=>(0,ss.h)("div",{className:"sv__footer"},(0,ss.h)("a",{className:qa({sv__footer__button:!0}),href:e,rel:"noopener noreferrer",target:"_blank",title:"Click to go to the Survicate homepage"},(0,ss.h)("small",{className:"sv__footer__small-text"},"Powered by"),(0,ss.h)(Ba,null))),rd=e=>{var t;const{hide:s,pointAnswerType:r}=e,{surveyType:i}=ys(Wo),o=null===(t=Me.getStore(i).getState().surveyState.survey)||void 0===t?void 0:t.id,n=(e=>td.includes(e))(r),a=`https://survicate.com/create-your-website-survey/?utm_source=${"Survey+branding"+(n?"+thank+you+screen":"")}&utm_medium=${i}&utm_content=${window.location.hostname}&utm_term=${o}`,c={"sv__branded-footer--with-border":n&&!s,sv__footer__wrapper:!0};return(0,ss.h)("div",{className:qa(c)},!s&&(n?(0,ss.h)(ed,{buttonLink:a}):(0,ss.h)(sd,{buttonLink:a,"data-testid":"footer"})))},id=JSON.parse('{"x6":"LEARN MORE","KC":"Thank you for taking part in our survey","rx":"Thanks for completing the survey! 🎉","FY":["Want to create surveys like this and gather feedback from your customers?","Discover how Survicate can help you collect insights in minutes."]}'),od=({message:e,hideBranding:t})=>{var s;const{surveyType:r}=ys(Wo),i=$a(),o=null===(s=Me.getStore(r).getState().surveyState.survey)||void 0===s?void 0:s.id,n=`https://survicate.com/create-your-website-survey/?utm_source=Survey+branding+thank+you+screen&utm_medium=${p.WidgetSurvey}&utm_content=${window.location.hostname}&utm_term=${o}`;return ms(()=>{i.clearSubmitButtonState()},[i]),(0,ss.h)("div",{className:"sv__finish-view"},t?(0,ss.h)("p",{className:"sv__thank-you-message sv--color-question","data-testid":"non-branded-finish-screen-message"},null!=e?e:id.KC):(0,ss.h)("div",{className:"sv__branded-finish-view--content"},(0,ss.h)("p",{className:"sv__introduction","data-testid":"branded-finish-screen-message"},id.rx),(0,ss.h)("div",{className:"sv__paragraph__container"},id.FY.map(e=>(0,ss.h)("p",{className:"sv__paragraph__item",key:e.substring(0,3)},e))),(0,ss.h)("img",{alt:"Survey completed logo",className:"sv__finish-logo",src:`${$.getState().surveysStaticUrl}/images/mobileCompleted.svg`})),!t&&(0,ss.h)("div",{className:"sv__simple-link-button__wrapper"},(0,ss.h)(Xa,{buttonLink:n,buttonText:id.x6})))},nd=e=>{const{avatar_image:t,children:s,company_logo:r,completionRate:i,personalization:o,className:n,short_text_message:a,showProgressBar:c,isFinished:l,hideBranding:v}=e,_={"sv--color-question":!0,"sv__micro-top-bar":!0,"sv__micro-top-bar--branded":!v,"sv__micro-top-bar--flat":![r,t,a].some(e=>!!e),"sv__micro-top-bar--with-logo":!!r,[e.className]:!!n,"sv__micro-top-bar--with-personalization":!!r||!!a};return(0,ss.h)("div",{className:qa(_)},(0,ss.h)("div",{className:"sv__micro-top-bar__row"},l&&!v&&(0,ss.h)("img",{alt:"Survicate logo",className:"sv__survicate__logo",src:`${$.getState().surveysStaticUrl}/images/surviLogoDark.svg`}),r&&(0,ss.h)("img",{alt:"Company logo",className:"sv__micro-top-bar__logo",src:r}),o&&(0,ss.h)("div",{className:"sv__micro-top-bar__personalization"},t&&(0,ss.h)("img",{alt:"Survey top bar avatar",className:"sv__micro-top-bar__logo sv__micro-top-bar__avatar",src:t}),a&&(0,ss.h)("div",{className:"sv__micro-top-bar__short-text"},a)),s),!l&&c&&(0,ss.h)(Va,{"data-testid":"progress-bar",progress:i}))};class ad{static MicroThemeSettings(e){const{theme:t}=Me.getStore(e).getState().surveyState;return(null==t?void 0:t.settings)||null}static getWidgetSurveyClasses(e){return{"sv__position-center":e===w.center,"sv__position-left":e===w.left,"sv__position-right":e===w.right,"sv__position-top-left":e===w.topLeft,"sv__position-top-right":e===w.topRight}}static getMobileSurveyClasses(e,t){return{"sv__mobile-survey":!0,"sv__position-fullscreen":t===w.fullscreen,"sv__survey--with-footer":e}}static getFeedbackSurveyClasses(e,t){return{"sv__feedback-survey":!0,"sv__feedback-survey--mobile":e,"sv__position-center-left":t===w.left,"sv__position-center-right":t===w.right}}static printSurveyClasses(e){var t;if(!e)return"";const{surveyState:{survey:s,pointsDisplayed:r,isFinished:i,isRTLLanguage:o,isHidden:n},previewDevice:a}=Me.getStore(e).getState();if(!(null==s?void 0:s.settings))return"";const{settings:c}=s,l=c,v=l.place_to_show,_=!l.hide_footer,u=null===(t=r[r.length-1])||void 0===t?void 0:t.point.answer_type,d=e===p.MobileSurvey,m=Hl(a),h={"sv--background-main":!0,"sv-bg-bw":!0,"sv__micro-theme":!0,"sv__position-mobile":d||m,"sv__rtl-lang":o,sv__survey:!0,"sv__survey--branded":_,"sv__survey--finished":!d&&i,[`sv__survey--${u}`]:!!u,"sv__survey--hidden":n},b={[p.WidgetSurvey]:this.getWidgetSurveyClasses(v),[p.MobileSurvey]:this.getMobileSurveyClasses(_,v),[p.FeedbackButton]:this.getFeedbackSurveyClasses(m,v)},g=Object.assign(Object.assign({},h),b[e]||{});return qa(g)}}const cd=e=>{var t;const s=bs(!1),r=bs(!0),i=gs(()=>({current:"",next:""}),[]),[o,n]=ds(e.surveyPoint),[a,c]=ds(null),[l,v]=ds(i),{isPreview:_,surveyType:u}=ys(Wo),d=Me.getStore(u),{surveyState:p}=d.getState();ms(()=>{r.current||n(e.surveyPoint)},[e.surveyPoint]);ms(()=>{var t;r.current?r.current=!1:e.surveyPoint&&e.previousPoint&&!s.current&&(e.previousPoint,t=e.surveyPoint,s.current||(s.current=!0,c(t),v({current:"sv__survey--slide-out",next:"sv__survey--slide-in"}),d.setState({surveyState:Object.assign(Object.assign({},p),{isAnimationActive:!0})}),setTimeout(()=>{n(t),c(null),v(i),d.setState({surveyState:Object.assign(Object.assign({},p),{isAnimationActive:!1})}),s.current=!1},400)))},[null===(t=e.surveyPoint)||void 0===t?void 0:t.point.id]);const m=Object.assign(Object.assign({},e),{className:l.current,close:()=>{v({current:"sv__survey--slide-down",next:i.next}),setTimeout(()=>{_?(Fo(p,u),zo(p,u)):e.close(),v(i)},400)},surveyPoint:o}),h=Object.assign(Object.assign({},e),{className:l.next,surveyPoint:a});return(0,ss.h)(ss.Fragment,null,a&&(0,ss.h)(ld,Object.assign({},h)),o&&(0,ss.h)(ld,Object.assign({},m)))},ld=({className:e,close:t,completionRate:s,isFinished:r,microThemeSettings:i,pointAnswer:o,pointsDisplayed:n,pointsForward:a,previewDevice:c,survey:l,surveyPoint:v,translations:_,translationLanguage:u,toggleMinimize:d,navigateBackward:m,navigationEnabled:h,isMinimized:b,isScreenshotEnabled:g,isTabActive:f})=>{var y,w,x,S,k,T;const{isPreview:A,surveyType:O}=ys(Wo),E=Me.getStore(O),P=$a();if(!l)return null;const C=fs(Ms(()=>{Xu.setSurveyHeight(c,A,O)},100),[c,A]),M=e=>{const t=e.composedPath(),s=t.some(e=>e instanceof HTMLElement&&"sv-screenshot-controls"===e.id),r=e.composedPath().some(e=>{var t,s;return e instanceof HTMLElement&&((null===(t=e.classList)||void 0===t?void 0:t.contains("sv__language-selector"))||(null===(s=e.closest)||void 0===s?void 0:s.call(e,".sv__language-selector")))});if(J.current&&(A&&t.includes(J.current)||!A&&(J.current.contains(e.target)||r)||s))return;t.some(e=>e instanceof HTMLElement&&e.className.includes("survicate-box-"))||!b&&(null==l?void 0:l.settings.show_minimize)&&d(!0)},{show_progress_bar:I,show_close:N,show_minimize:j,hide_footer:R,show_language_selector:D,languages:L,survey_language:F}=l.settings,z=Jv({defaultLanguage:F||Dt(l),isPreview:A,languages:null!=L?L:[],surveyId:l.id,translations:_}),q=r&&!lo(n),U=function(e){const{hasLanguages:t,isFinishScreenOrView:s,showLanguageSelectorSetting:r}=e;return!!r&&!!t&&!s}({hasLanguages:z.length>1,isFinishScreenOrView:q,showLanguageSelectorSetting:D}),$=Za(O,l),{answer_required_text:B,dropdown_placeholder:V,thankyou_text:H,text_placeholder:W,screenshot_save_text:K,screenshot_delete_tooltip_text:G,screenshot_take_tooltip_text:Y,drag_and_draw_tooltip_text:Z}=$,Q=`${e?` ${e}`:""}${f?" sv__outline":""}`,J=bs(null),ee=1===n.length,te=ee&&(!a||0===a.length);ms(()=>{P.updateSurveyConfig({backButtonText:$.navigation_back_text,hasNavigationButtons:h,isFirstSurveyPoint:ee,isInitialView:te,submitButtonText:$.submit_text})},[l,v,n,a,h,$,O,ee,te]),ms(()=>{!A&&l&&l.activated&&l.points.length&&(Me.getStore(O).action(so)({surveyId:l.id,surveyName:l.name}),Qo({eventType:Qt.opened,options:{surveyId:l.id},surveyType:O}))},[]),ms(()=>(window.addEventListener("resize",C),C(),()=>{window.removeEventListener("resize",C)}),[C]),ms(()=>{C(),Xu.removeBodyScrollListeners(),(null==v?void 0:v.point.answer_type)===X.date&&Xu.lockBodyScroll()},[C,v]),ms(()=>{if(A){const e=document.querySelector('[data-testid="surveyPreviewContainer"]');if(!(null==e?void 0:e.matches(":focus-within")))return}if(f&&J.current){const e=J.current.querySelector('input, button, [tabindex="0"]');e&&e.focus()}},[f,v,A]),ms(()=>(O===p.FeedbackButton&&(null==l?void 0:l.settings.show_minimize)&&window.addEventListener("click",M),()=>{window.removeEventListener("click",M)}),[J]);const se=(g||A)&&(null===(x=null===(w=null===(y=null==v?void 0:v.point)||void 0===y?void 0:y.settings)||void 0===w?void 0:w.screenshot)||void 0===x?void 0:x.button_enabled)&&!r,re={"sv--border-top-color-question-20":se,"sv__submit-screenshot-button-container":se},ie=!!v&&(Xv(null===(S=null==v?void 0:v.point)||void 0===S?void 0:S.settings)||(null===(T=null===(k=null==v?void 0:v.point)||void 0===k?void 0:k.settings)||void 0===T?void 0:T.consent));return v?(0,ss.h)("div",{"aria-label":Rv(mc.SURVEY),"aria-modal":"true",className:`${ad.printSurveyClasses(O)}${Q}`,"data-testid":O===p.FeedbackButton?"feedback-button-survey":"survey",lang:null!=u?u:"en",ref:J,role:"dialog"},(0,ss.h)(nd,Object.assign({},i,{className:`sv__${v.point.answer_type}__micro-top-bar`,completionRate:s,hideBranding:R,isFinished:r,showProgressBar:!r&&I}),(0,ss.h)("div",{className:"sv__micro-top-bar__actions"},U&&(0,ss.h)(Vl,{currentLanguage:u,defaultLanguage:null!=F?F:null,languages:z,onLanguageChange:e=>E.action(Co)(e)}),(0,ss.h)(r_,{close:t,showCloseBtn:r||!!N,showLanguageSelector:U,showMinimizeBtn:!r&&!!j,toggleMinimize:()=>d(!0)}))),q?(0,ss.h)(od,{hideBranding:R,message:H}):(0,ss.h)(Qu,{answer:o,answerRequiredText:B,close:t,dropdownPlaceholder:V,navigationEnabled:h,point:v.point,previewDevice:c,textPlaceholder:W,value:v.value}),ie&&(0,ss.h)("div",{className:"sv__disclaimer-container",id:`survey-disclaimer-container-${v.point.id}`}),(0,ss.h)("div",{className:qa(re)},se&&(0,ss.h)(ev,{pointId:v.point.id},(0,ss.h)(Vv,{deleteScreenshotText:G,dragTooltipText:Z,isPreview:A,pointId:v.point.id,saveButtonText:K,takeScreenshotText:Y})),(0,ss.h)(Qv,{close:t,navigateBackward:m})),(0,ss.h)(rd,{hide:r||R,pointAnswerType:v.point.answer_type})):null},vd=(0,cl.N)(({previewDevice:e,storeType:t,surveyState:{pointsDisplayed:s,pointsForward:r,screenshotState:i,isFinished:o,survey:n,isMinimized:a,isHidden:c,isRTLLanguage:l,translationLanguage:v,translations:_,isTabActive:u}})=>{var d,p,m;return{completionRate:Yt(s),isFinished:o,isHidden:c,isMinimized:a,isRTLLanguage:l,isScreenshotEnabled:null!==(d=null==i?void 0:i.isEnabled)&&void 0!==d&&d,isTabActive:null!=u&&u,microThemeSettings:ad.MicroThemeSettings(t),navigationEnabled:null!==(m=null===(p=null==n?void 0:n.settings)||void 0===p?void 0:p.navigation_enabled)&&void 0!==m&&m,pointsDisplayed:s,pointsForward:r,previewDevice:e,previousPoint:s[s.length-2],storeType:t,survey:n,surveyPoint:s[s.length-1],translations:_,translationLanguage:v}},wl)(e=>e.storeType===p.MobileSurvey?(0,ss.h)(cd,Object.assign({},e)):(0,ss.h)(ld,Object.assign({},e))),_d=vd;function ud(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},t),["\n ",(0,ss.h)("defs",{},["\n ",(0,ss.h)("path",{id:"svg-arrow-forward-1HGzT8b",d:"M10 0 8.238 1.762l6.975 6.988H0v2.5h15.213l-6.975 6.988L10 20l10-10z"},[]),"\n "]),"\n ",(0,ss.h)("g",{fill:"none","fill-rule":"evenodd"},["\n ",(0,ss.h)("path",{d:"M0 0h24v24H0z"},[]),"\n ",(0,ss.h)("g",{transform:"translate(2 2)"},["\n ",(0,ss.h)("mask",{id:"svg-arrow-forward-2GksUkA",fill:"#fff"},["\n ",(0,ss.h)("use",{"xlink:href":"#svg-arrow-forward-1HGzT8b"},[]),"\n "]),"\n ",(0,ss.h)("use",{fill:"#29292A","xlink:href":"#svg-arrow-forward-1HGzT8b"},[]),"\n ",(0,ss.h)("path",{fill:"#29292A",mask:"url(#svg-arrow-forward-2GksUkA)",d:"M-2-2h24v24H-2z"},[]),"\n "]),"\n "]),"\n"])}function dd(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,ss.h)("svg",Object.assign({width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n ",(0,ss.h)("g",{},["\n ",(0,ss.h)("g",{},["\n ",(0,ss.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.09375 12.0833L0 10.9896L9.41667 1.5625H3.84375V0H12.0729V8.22917H10.5104V2.65625L1.09375 12.0833Z",fill:"currentColor"},[]),"\n "]),"\n "]),"\n"])}Object.defineProperty(ud,"name",{value:"default",configurable:!0}),Object.defineProperty(dd,"name",{value:"default",configurable:!0});const pd=(0,cl.N)(e=>({storeType:e.storeType}),wl)(({close:e,showCloseWhenMinimized:t,tooltipText:s,toggleMinimize:r})=>{const i=Rv(),o={[ad.printSurveyClasses(p.WidgetSurvey)]:!0,"sv--color-question":!0,"sv-color-question":!0,sv__minimized:!0},n=!!t&&"function"==typeof e;return(0,ss.h)("div",{"aria-label":i[mc.MINIMIZED_SURVEY],"aria-modal":"true","data-id":"minimized-survey",role:"dialog"},(0,ss.h)("div",{className:qa(o)},(0,ss.h)("div",{className:"sv__minimized__expand-area",onClick:()=>r(!1),onFocus:e=>((e,t=".skip-target")=>{if(!e)return;const s=e.target;if(null==s?void 0:s.matches(t))return;const r=e.currentTarget.querySelector(t);null==r||r.focus(),e.stopPropagation()})(e,"sv__minimized-symbol"),onKeyDown:e=>Yv(e,()=>r(!1)),role:"button",tabIndex:0},(0,ss.h)("div",{className:"sv__minimized__text sv--color-answer"},s)),(0,ss.h)("div",{className:"sv__minimized__actions"},(0,ss.h)("button",{"aria-label":i[mc.START_SURVEY],className:qa({"sv--background-button":!0,"sv__btn-maximize-plus":!0,"sv__minimized-symbol":!0}),onClick:e=>{e.stopPropagation(),r(!1)},onKeyDown:e=>Yv(e,()=>r(!1)),tabIndex:0,type:"button"},n?(0,ss.h)(dd,{className:"sv__forward-arrow"}):(0,ss.h)(ud,{className:"sv__forward-arrow"})),n&&(0,ss.h)(t_,{close:e,minimized:!0},(0,ss.h)(jv,null)))))}),md=pd;const hd=new class{constructor(){this.urls={[p.FeedbackButton]:Be.getUrl(),[p.WidgetSurvey]:Be.getUrl()},this.intervals={[p.FeedbackButton]:null,[p.WidgetSurvey]:null}}clearInterval(e){const t=this.intervals[e];t&&(clearInterval(t),this.intervals[e]=null)}startInterval(e,t){this.clearInterval(t),this.intervals[t]=window.setInterval(()=>{this.hasUrlChanged(t)&&(this.urls[t]=Be.getUrl(),e())},1e3)}hasUrlChanged(e){return Be.getUrl()!==this.urls[e]}},bd=({toggleMinimize:e,tooltipText:t})=>{const s=bs(null),r=Rv(),i={[ad.printSurveyClasses(p.FeedbackButton)]:!0,"sv--background-button":!0,"sv__feedback-survey--minimized":!0};return ms(()=>{var e;(e=s.current)&&e.classList.add("sv__outline")},[]),(0,ss.h)("div",{"aria-label":r[mc.MINIMIZED_SURVEY],"aria-modal":"true",role:"dialog"},(0,ss.h)("button",{"aria-label":r[mc.START_SURVEY],className:qa(i),onClick:()=>e(!1),onKeyDown:t=>Yv(t,()=>e(!1)),ref:s,type:"button"},(0,ss.h)("div",{className:"sv__feedback-survey__text"},t)))},gd=(0,cl.N)(({previewDevice:e,surveyState:{isMinimized:t,survey:s,theme:r,isTabActive:i,translations:o,translationLanguage:n}})=>{var a,c;return{isMinimized:t,isTabActive:i,previewDevice:e,survey:s,theme:r,tooltipText:null===(c=null===(a=null==s?void 0:s.settings)||void 0===a?void 0:a.messages)||void 0===c?void 0:c.tooltip,translationLanguage:n,translations:o}},wl)(e=>{var t,s;const{isPreview:r,surveyType:i}=ys(Wo),{survey:o,theme:n,isMinimized:a,close:c,retarget:l,toggleMinimize:v,tooltipText:_}=e,u=(e=>e?_r(e):null)(n),d=Dl(null==n?void 0:n.settings,null!=n?n:void 0,{waitForBackgroundImage:!1}),m=Me.getStore(i),h=null===(t=m.getState().surveyState)||void 0===t?void 0:t.isTabActive,b=()=>{var e;(null==o?void 0:o.settings.close_on_urlchange)&&c();const t=We.getVisit(i);if(t.setCurrentView(),function(){if("undefined"==typeof window)return;const e=le.getStore(M.VisitorStore),t=Be.getUrl().replace(`${window.location.protocol}//`,""),s=e.get(ne.sessionViews),r=Array.isArray(s)?[...s]:[];r.includes(t)||(r.push(t),e.set(ne.sessionViews,r))}(),o&&(t.addDisplayedSurvey(null==o?void 0:o.id),null===(e=o.settings)||void 0===e?void 0:e.recurring_max_views)){const e=t.get().displayedSurveys.find(e=>e.surveyId===o.id);(null==e?void 0:e.count)&&e.count>=o.settings.recurring_max_views+1&&c()}Rs.startTargeting(i,m.getState().backendData.surveys),l()};ms(()=>{hd.startInterval(b,i)},[o]);const g={"sv-box-child":!0,[`sv-${e.previewDevice}`]:r&&!!e.previewDevice},f=o?Za(i,o).tooltip:_,y=fs(e=>{h||m.action($o)(e)},[h,m]);ms(()=>{Ll.watchTabs(()=>y(!0))},[y]);const w=i===p.WidgetSurvey?(0,ss.h)(md,{close:c,showCloseWhenMinimized:null===(s=null==o?void 0:o.settings)||void 0===s?void 0:s.show_close_when_minimized,tooltipText:f}):(0,ss.h)(bd,{toggleMinimize:v,tooltipText:f});return(0,ss.h)("div",{className:qa(g)},!!o&&u&&!d&&(0,ss.h)(Rl,{fontFamily:u,language:Dt(o)}),d&&(0,ss.h)(ss.Fragment,null,(0,ss.h)(zl,null),!!o&&(a?w:(0,ss.h)(_d,null))))}),fd=gd,yd=(e,t)=>{(null==e?void 0:e.installing)&&t.workspaceKey&&!j.isAvailable()&&V($.getState().respondentUrl).post(`/workspaces/${t.workspaceKey}/installed.json`,{platform:"web"})};var wd=s(817),xd=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Sd{constructor(){this.initialized=!1,this.initializationPromise=null}static getInstance(){return Sd.instance||(Sd.instance=new Sd),Sd.instance}init(e){return xd(this,void 0,void 0,function*(){var t;if("undefined"!=typeof window){if(!this.initialized)return this.initializationPromise?(console.warn("Survicate initialization is already in progress."),this.initializationPromise):(window._svc=null!==(t=window._svc)&&void 0!==t?t:{initialized:!1,isPreview:!1,workspaceKey:e.workspaceKey},this.initializationPromise=this.initializeSurvicate(e).then(()=>xd(this,void 0,void 0,function*(){yield this.waitForSurvicateReady(),this.initialized=!0})).catch(e=>{console.warn("Survicate could not be initialized due to:",e)}).finally(()=>{this.initializationPromise=null}),this.initializationPromise);console.warn("Survicate is already initialized.")}else console.error("Survicate can only be initialized in a browser environment.")})}initializeSurvicate(e){return xd(this,void 0,void 0,function*(){var t,s,r,i,o,n;const a=yield V("https://survey.survicate.com").get(`/workspaces/${e.workspaceKey}/web_surveys.json`).catch(e=>(console.warn("Error fetching survey data:",e),null));if(!a)return;e.nonce&&(window._sva=null!==(t=window._sva)&&void 0!==t?t:{},window._sva.nonce=e.nonce),((e,t)=>{if(!document.head)return;const s="survicate-core-styles";if(document.head.querySelector(`#${s}`))return;const r=document.createElement("style");r.id=s,r.textContent=e,t&&r.setAttribute("nonce",t),document.head.appendChild(r)})(wd.A,e.nonce),Da({nonce:e.nonce}),window._svd=a.data,La(null===(s=window._svd)||void 0===s?void 0:s.themes,{nonce:e.nonce}),window._sva=null!==(r=window._sva)&&void 0!==r?r:{},window._svx=null!==(i=window._svx)&&void 0!==i?i:{},window._svx.installation="survicateWidget",ma(),ho(uo.normal),e.traits&&(window._sva.traits=e.traits,pa.action(Gi)(e.traits)),e.responseTraits&&(window._sva.responseTraits=e.responseTraits),e.hiddenSurveys&&(window._sva.hiddenSurveys=e.hiddenSurveys),e.disableTargeting&&(window._sva.disableTargeting=!0),e.disableSensitiveDataPersistence&&(window._sva.disableSensitiveDataPersistence=!0),e.forcedLanguage&&(window._sva.forcedLanguage=e.forcedLanguage),e.themeMode&&(window._sva.themeMode=e.themeMode),yd(window._svd,window._svc);(null===(n=null===(o=window._svd)||void 0===o?void 0:o.surveys)||void 0===n?void 0:n.some(e=>"feedback"===e.settings.format))&&Il(p.FeedbackButton,(0,ss.createElement)(fd,{})),Il(p.WidgetSurvey,(0,ss.createElement)(fd,{}))})}waitForSurvicateReady(){return new Promise(e=>{const t=()=>{window.removeEventListener("SurvicateReady",t),e()};window.addEventListener("SurvicateReady",t)})}}const kd=Sd;var Td=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Ad=Object.assign(Object.assign({ApiEvent:Ra,AppearMethod:ja},Na),{init:e=>Td(void 0,void 0,void 0,function*(){const t=kd.getInstance();yield t.init(e)})}),Od=Ad})(),r=r.default})());
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Survicate=t():e.Survicate=t()}(globalThis,()=>(()=>{var e={8054(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(s(2733));t.default=class{static init({cookies:e}){e&&e.forEach(({cookie_name:e,cookie_random:t})=>{const s=Math.floor(Math.random()*parseInt(t,10)+1);try{i.default.set(e,`${s}`)}catch(e){}})}}},974(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=s(6890),i=s(1656);t.default=new class{constructor(){this.isEnabled=!1,this.anonymizeAnswers=!1}init(e){this.isEnabled=!0,this.anonymizeAnswers=(null==e?void 0:e.anonymize_answers)||!1}pushEvent(e,t){if(window.FS&&this.isEnabled&&e===r.FullStoryEvents.SurveyPointAnswered){const e=t,s=this.anonymizeAnswers&&((null==e?void 0:e.answerType)===i.SurveyQuestionAnswerType.text||(null==e?void 0:e.answerType)===i.SurveyQuestionAnswerType.form);window.FS.event(r.FullStoryEvents.SurveyPointAnswered,{answer_str:s?"":e.textResponse,question_str:e.question,survey_name_str:e.surveyName}),window.FS.setUserVars({survey_id:t.survey.id,survicate_response_uuid_str:t.response_uuid,survicate_visitor_uuid_str:t.visitor_uuid})}}}},1778(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=s(9902),o=r(s(328));class n{constructor(){this.trackerRegex=/.*/,this.isEnabled=!1,this.settings={}}init(e){this.isEnabled=e.enabled,this.settings=e;let t=/.*/;e.tracker&&(e.regex?t=(0,o.default)(e.tracker_regex)||/.*/:e.tracker_names&&(t=new RegExp(`^(${e.tracker_names.map(e=>e.name).join("|")})$`))),this.trackerRegex=t}static getGA4MatchingDataStreams(e){return"object"==typeof window.google_tag_manager&&"/.*/"!==e.toString()&&this.areAnyGA4Trackers(e)?Object.keys(window.google_tag_manager).filter(t=>e.test(t)):null}static areAnyGA4Trackers(e){var t;return!!(null===(t=e.source.match(/G-\w+/g))||void 0===t?void 0:t.length)}static areOnlyGA4Trackers(e){const t=/^G-\w+$/,s=e.source,r=s.match(/\bG-\w+\b/g);return r?r.every(e=>t.test(e)):t.test(s)}static getGaMatchingTrackers(e){const t=window.ga.getAll().map(e=>e.get("name"));return this.areOnlyGA4Trackers(e)?t:t.filter(t=>e.test(t))}static getCategoryName(e){return`Survicate - ${e}`}static getActionName(e,t){let s;switch(e){case i.IntegrationEventTypes.SurveyClosed:s="Closed survey";break;case i.IntegrationEventTypes.SurveyMaximized:s="Maximized survey";break;case i.IntegrationEventTypes.SurveyMinimized:s="Minimized survey";break;case i.IntegrationEventTypes.SurveyPointAnswered:s=`Question answered - ${t}`;break;case i.IntegrationEventTypes.SurveyPointSeen:s=`Question seen - ${t}`;break;case i.IntegrationEventTypes.SurveySeen:s="Seen survey"}return s}static handleEvent(e){const{trackerNameRegex:t,eventType:s,pointContent:r,surveyName:i,pointResponses:o,interaction:a}=e,c=this.getActionName(s,r);if(!c)return;const l=this.getCategoryName(i),v=o,_={},u={};_.event_category=l,_.non_interaction=!a,v&&(_.event_label=v);const d=n.getGA4MatchingDataStreams(t);(null==d?void 0:d.length)&&(_.send_to=d),window.google_tag_manager&&Object.keys(window.google_tag_manager).some(e=>e.startsWith("GTM-"))&&"function"!=typeof window.gtag&&window.dataLayer&&(window.gtag=function(){window.dataLayer.push(arguments)}),"function"==typeof window.gtag&&window.gtag("event",c,_),"function"==typeof window.ga&&(u.hitType="event",u.eventCategory=l,u.eventAction=c,u.nonInteraction=!a,v&&(u.eventLabel=v),window.ga(()=>{n.getGaMatchingTrackers(t).forEach(e=>{window.ga(`${e}.send`,u)})}))}pushEvent(e,t,s){if(this.isEnabled&&s&&s.google_analytics&&s.google_analytics.on_response){let r;r=s.google_analytics.anonymize&&"anonymizedTextResponse"in t?t.anonymizedTextResponse:t.textResponse;let o=!0;e!==i.IntegrationEventTypes.SurveyPointSeen&&e!==i.IntegrationEventTypes.SurveySeen||(o=!1),n.handleEvent({eventType:e,interaction:o,pointContent:t.question,pointResponses:r,surveyName:t.surveyName,trackerNameRegex:this.trackerRegex})}}}t.default=new n},328(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{const t=/^\/(.*)\/(.*)$/;if(!e)return null;let s=e;t.test(s)||(s=`/${s}/`);const r=t.exec(s),i=r?r[1]:"",o=r?r[2]:void 0;try{s=new RegExp(i,o)}catch(e){return null}return s}},1394(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=s(9902),o=s(5351),n=r(s(974)),a=r(s(1778)),c=r(s(6042)),l=r(s(5898)),v=r(s(468)),_=[{classInstance:c.default,name:o.IntegrationNames.Segment},{classInstance:a.default,name:o.IntegrationNames.GoogleAnalytics},{classInstance:v.default,name:o.IntegrationNames.Woopra},{classInstance:n.default,name:o.IntegrationNames.Fullstory},{classInstance:l.default,name:o.IntegrationNames.Smartlook}];t.default=class{static pushEvent(e,t,s){_.forEach(({name:r,classInstance:n})=>{const a=r===o.IntegrationNames.GoogleAnalytics?e:i.EventNamesMap[r][e];n.pushEvent(a,t,s)})}}},3326(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSalesforceWhitelist=t.extractSalesforceMergeTagKeys=void 0;t.extractSalesforceMergeTagKeys=e=>(null==e?void 0:e.merge_tags)&&Array.isArray(e.merge_tags)?e.merge_tags.map(e=>e.key).filter(e=>"string"==typeof e&&e.length>0):[];t.getSalesforceWhitelist=(e,s=[])=>{const r=(0,t.extractSalesforceMergeTagKeys)(e);return[...new Set([...s,...r])]}},6042(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentEvents=void 0;const r=s(3644);var i;!function(e){e.SurveySeen="survicate_survey_shown",e.SurveyPointAnswered="survicate_survey_answered"}(i||(t.SegmentEvents=i={}));class o{constructor(){this.isEnabledPerWorkspace=!1}init(){this.isEnabledPerWorkspace=!0}pushEvent(e,t){if(window.analytics&&this.isEnabledPerWorkspace){if(e===i.SurveyPointAnswered){if("contactForm"in t)return void o.identify(t.contactForm);o.trackAnswered(t)}e===i.SurveySeen&&o.trackSurveySeen(t.surveyName)}}static identify(e){window.analytics.identify(e)}static trackAnswered(e){e.pointType!==r.SurveyPointType.question?window.analytics.track(i.SurveyPointAnswered,{survey:e.surveyName,question:e.question,answer:e.textResponse,type:e.pointType,user_tag:e.user_tag}):window.analytics.track(i.SurveyPointAnswered,{survey:e.surveyName,question:e.question,answer:e.textResponse,type:e.pointType,answer_type:e.answer_type})}static trackSurveySeen(e){window.analytics.track(i.SurveySeen,{survey:e})}}t.default=new o},5898(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.SmartlookEvents=void 0,function(e){e.SurveyPointAnswered="survicate.questionAnswered"}(s||(t.SmartlookEvents=s={}));t.default=new class{constructor(){this.isEnabled=!1}init(){this.isEnabled=!0}pushEvent(e,t){if(window.smartlook&&this.isEnabled&&e===s.SurveyPointAnswered){const e=t;if("function"!=typeof window.smartlook)return;window.smartlook("track",s.SurveyPointAnswered,{answer:e.textResponse,question:e.question,response_uuid:t.response_uuid,"survey.id":t.survey.id,"survey.name":e.surveyName})}}}},468(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WoopraEvents=void 0;const r=s(3644);var i;!function(e){e.SurveySeen="survicate survey shown",e.SurveyPointAnswered="survicate survey answered"}(i||(t.WoopraEvents=i={}));class o{constructor(){this.isEnabledPerWorkspace=!1}init(){this.isEnabledPerWorkspace=!0}pushEvent(e,t){if(window.woopra&&this.isEnabledPerWorkspace){if(e===i.SurveyPointAnswered){if("contactForm"in t)return void o.identify(t.contactForm);o.trackAnswered(t)}e===i.SurveySeen&&o.trackSurveySeen(t.surveyName)}}static identify(e){window.woopra.identify(e).push()}static trackAnswered(e){e.pointType!==r.SurveyPointType.question?window.woopra.track(i.SurveyPointAnswered,{answer:e.textResponse,question:e.question,survey:e.surveyName,type:e.pointType,user_tag:e.user_tag}):window.woopra.track(i.SurveyPointAnswered,{answer:e.textResponse,answer_type:e.answer_type,question:e.question,survey:e.surveyName,type:e.pointType})}static trackSurveySeen(e){window.woopra.track(i.SurveySeen,{survey:e})}}t.default=new o},1960(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAPIToAnsweredIntegrations=void 0;const r=s(3124);t.getAPIToAnsweredIntegrations=({fullstory:e,sessionCam:t,smartlook:s})=>{const i={};let o=!1;if(e){const e=window.FS&&"function"==typeof window.FS.getCurrentSessionURL&&window.FS.getCurrentSessionURL(!0)||void 0;e&&(i[r.AnsweredIntegration.fullstory]=e,o=!0)}if(t){const e=window.sessionCamRecorder&&"function"==typeof window.sessionCamRecorder.sessionId&&window.sessionCamRecorder.sessionId()||void 0;e&&(i[r.AnsweredIntegration.sessionCam]=e,o=!0)}if(s){const e=null===(n=window.smartlook)||void 0===n?void 0:n.playUrl;e&&(i[r.AnsweredIntegration.smartlook]=e,o=!0)}var n;return o?i:null}},6528(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.setIdentitiesFromURL=t.isIdentityProvider=void 0;const i=s(3694),o=s(5351),n=s(3306);t.isIdentityProvider=e=>o.IdentityProvidersArray.includes(e);t.setIdentitiesFromURL=(e,s,a)=>r(void 0,void 0,void 0,function*(){const r=e[n.ReservedParams.p];if(!r||!(0,t.isIdentityProvider)(r))return;const c=(e=>{const t={};return Object.keys(e).filter(t=>{const s=!(t in n.ReservedParams)||t===n.ReservedParams.uid,r=!e[t].match(/{{.*}}/);return s&&r}).forEach(s=>{t[s]=e[s]}),t})(e);for(const e of Object.keys(c)){if(e===n.ReservedParams.uid&&r===o.Providers.Intercom){yield Promise.resolve(a.setVisitorIdentity({identityProvider:o.Providers.Intercom,key:"user_id",value:c[e]}));continue}if(e===i.USER_ID_TRAIT||e===n.ReservedParams.uid){yield Promise.resolve(a.setVisitorIdentity({identityProvider:o.Providers.Api,key:"id",value:c[e]}));continue}const t=(s.find(e=>e.provider===r)||{whitelist:[]}).whitelist||[];(i.PROVIDERS_TRAITS_WHITELIST[r]||[]).concat(t).includes(e)&&(yield Promise.resolve(a.setVisitorIdentity({identityProvider:r,key:e,value:c[e]})))}})},5033(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setIdentityFromCookie=void 0;const o=i(s(2733)),n=s(5351),a={[n.IntegrationNames.Hubspot]:"hubspotutk",[n.IntegrationNames.Marketo]:"_mkto_trk"},c={[n.IntegrationNames.Pardot]:/^visitor_id[0-9]+$/g},l={[n.IntegrationNames.Hubspot]:"cookie",[n.IntegrationNames.Marketo]:"cookie",[n.IntegrationNames.Pardot]:"visitor_id"};t.setIdentityFromCookie=(e,t)=>r(void 0,void 0,void 0,function*(){e!==n.IntegrationNames.Pardot?yield((e,t)=>r(void 0,void 0,void 0,function*(){let s;try{s=o.default.get(a[e])}catch(e){return}s&&(yield Promise.resolve(t.setVisitorIdentity({identityProvider:e,key:l[e],value:s})))}))(e,t):yield((e,t)=>r(void 0,void 0,void 0,function*(){let s;try{s=o.default.get()}catch(e){return}for(const r of Object.keys(s))if(c[e].test(r)){let s;try{s=o.default.get(r)}catch(e){continue}s&&(yield Promise.resolve(t.setVisitorIdentity({identityProvider:e,key:l[e],value:s})))}}))(e,t)})},2158(e,t,s){"use strict";t.N=void 0;const r=s(3306);t.N=e=>{const t={};return Object.keys(e).forEach(s=>{Object.values(r.ReservedParams).includes(s)||(t[s]=e[s])}),t}},2133(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProvidersWhitelist=void 0;const r=s(3694),i=s(3326);t.getProvidersWhitelist=e=>{const t=Object.assign({},r.PROVIDERS_TRAITS_WHITELIST);if(e){const s=r.PROVIDERS_TRAITS_WHITELIST.salesforce||[];t.salesforce=(0,i.getSalesforceWhitelist)(e,s)}return t}},727(e,t,s){"use strict";t.S=void 0;const r=s(3306);t.S=e=>{const t={};return Object.keys(e).forEach(s=>{Object.values(r.ReservedParams).includes(s)&&s!==r.ReservedParams.p||(t[s]=e[s])}),t}},5032(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.setIdentitiesFromWindow=void 0;const i=s(2970),o=s(5351);t.setIdentitiesFromWindow=(e,t)=>r(void 0,void 0,void 0,function*(){const s=(0,i.safeGet)(()=>{var e,t,s,r;return null===(r=null===(s=null===(t=null===(e=window.amplitude)||void 0===e?void 0:e.getInstance)||void 0===t?void 0:t.call(e))||void 0===s?void 0:s.options)||void 0===r?void 0:r.userId}),r=(0,i.safeGet)(()=>{var e,t;return null===(t=null===(e=window.mixpanel)||void 0===e?void 0:e.get_distinct_id)||void 0===t?void 0:t.call(e)}),n=e.map(({provider:e,enabled:t})=>{if(e&&t)return e});n.includes(o.IntegrationNames.Amplitude)&&s&&(yield Promise.resolve(t.setVisitorIdentity({identityProvider:o.Providers.Amplitude,key:"user_id",value:s}))),n.includes(o.IntegrationNames.Mixpanel)&&r&&(yield Promise.resolve(t.setVisitorIdentity({identityProvider:o.Providers.Mixpanel,key:"distinct_id",value:r})))})},3371(e,t,s){"use strict";t.dy=void 0;const r=s(2133);t.dy=e=>({salesforce:(0,r.getProvidersWhitelist)(e).salesforce}),t.Ay=t.dy},8621(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.setIdentitiesFromSVA=void 0;const i=s(3694),o=s(5351),n=s(6528);t.setIdentitiesFromSVA=(e,...t)=>r(void 0,[e,...t],void 0,function*(e,t={},s={},r){for(const s of Object.keys(t)){if(!(0,n.isIdentityProvider)(s))continue;const o=t[s];for(const t of Object.keys(o)){const n=(e.find(e=>e.provider===s)||{whitelist:[]}).whitelist||[];(i.PROVIDERS_TRAITS_WHITELIST[s]||[]).concat(n).includes(t)&&(yield Promise.resolve(r.setVisitorIdentity({identityProvider:s,key:t,value:o[t]})))}}s[i.USER_ID_TRAIT]&&(yield Promise.resolve(r.setVisitorIdentity({identityProvider:o.Providers.Api,key:"id",value:s[i.USER_ID_TRAIT]})))})},7885(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=s(5351),n=i(s(8054)),a=i(s(974)),c=i(s(1778)),l=i(s(6042)),v=i(s(5898)),_=i(s(468)),u=s(1960),d=s(5033),p=s(5032),m=s(8621),h=s(6528);t.default=class{constructor(){this.integrations=[],this.appliedURLIdentities=new Set}init(){return r(this,arguments,void 0,function*(e=[],t,s){this.integrations=e;const r=window._sva&&window._sva.integrations||{},i=window._sva&&window._sva.traits||{},u=JSON.stringify(null!=t?t:{});this.appliedURLIdentities.has(u)||(this.appliedURLIdentities.add(u),yield(0,h.setIdentitiesFromURL)(t,this.integrations,s)),yield(0,m.setIdentitiesFromSVA)(this.integrations,r,i,s),yield(0,p.setIdentitiesFromWindow)(this.integrations,s),this.integrations.forEach(e=>{if(e.enabled)switch(e.provider){case o.IntegrationNames.Marketo:case o.IntegrationNames.Hubspot:case o.IntegrationNames.Pardot:setTimeout(()=>{(0,d.setIdentityFromCookie)(e.provider,s)},5e3);break;case o.IntegrationNames.GoogleAnalytics:c.default.init(e);break;case o.IntegrationNames.Fullstory:a.default.init(e);break;case o.IntegrationNames.Segment:case o.IntegrationNames.SegmentWeb:l.default.init();break;case o.IntegrationNames.Woopra:_.default.init();break;case o.IntegrationNames.ABTesting:n.default.init(e);break;case o.IntegrationNames.Smartlook:v.default.init();case o.IntegrationNames.Salesforce:}})})}getAPIToAnsweredJsonIntegrations(){const e=this.integrations.find(e=>e.provider===o.IntegrationNames.Fullstory),t=this.integrations.find(e=>e.provider===o.IntegrationNames.SessionCam),s=this.integrations.find(e=>e.provider===o.IntegrationNames.Smartlook);return(0,u.getAPIToAnsweredIntegrations)({fullstory:!(!e||!e.enabled),sessionCam:!(!t||!t.enabled),smartlook:!(!s||!s.enabled)})}}},2970(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.safeGet=function(e){try{return e()}catch(e){return}}},3124(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AnsweredIntegration=void 0,function(e){e.fullstory="fullstory_url",e.sessionCam="sessioncam_id",e.smartlook="smartlook_url"}(s||(t.AnsweredIntegration=s={}))},3694(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USER_ID_TRAIT=t.PROVIDERS_TRAITS_WHITELIST=void 0,t.PROVIDERS_TRAITS_WHITELIST={api:["id","order_id"],bloomreach:["registered","order_id"],braze:["braze_id","external_id","order_id"],customerio:["cio_id","external_id","order_id"],intercom:["user_id","uid","order_id"],marketo:["lead_id","order_id"],pardot:["prospect_id","order_id"],salesforce:["contact_id","lead_id","account_id","case_id","case_number","event_id","opportunity_id","contract_id","event_name","event_location","order_id"],zendesk:["t_id","order_id"]},t.USER_ID_TRAIT="user_id"},6890(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.FullStoryEvents=void 0,function(e){e.SurveyPointAnswered="Survicate question answered"}(s||(t.FullStoryEvents=s={}))},9902(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventNamesMap=t.IntegrationEventTypes=void 0;const r=s(5351),i=s(6890),o=s(1798),n=s(1158),a=s(8880);var c;!function(e){e.SurveyMinimized="SurveyMinimized",e.SurveyClosed="SurveyClosed",e.SurveyMaximized="SurveyMaximized",e.SurveySeen="SurveySeen",e.SurveyPointAnswered="SurveyPointAnswered",e.SurveyPointSeen="SurveyPointSeen"}(c||(t.IntegrationEventTypes=c={})),t.EventNamesMap={[r.IntegrationNames.Woopra]:{[c.SurveySeen]:a.WoopraEvents.SurveySeen,[c.SurveyPointAnswered]:a.WoopraEvents.SurveyPointAnswered},[r.IntegrationNames.Segment]:{[c.SurveySeen]:o.SegmentEvents.SurveySeen,[c.SurveyPointAnswered]:o.SegmentEvents.SurveyPointAnswered},[r.IntegrationNames.Fullstory]:{[c.SurveyPointAnswered]:i.FullStoryEvents.SurveyPointAnswered},[r.IntegrationNames.Smartlook]:{[c.SurveyPointAnswered]:n.SmartlookEvents.SurveyPointAnswered}}},1798(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentEvents=void 0,function(e){e.SurveySeen="survicate_survey_shown",e.SurveyPointAnswered="survicate_survey_answered"}(s||(t.SegmentEvents=s={}))},1158(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.SmartlookEvents=void 0,function(e){e.SurveyPointAnswered="survicate.questionAnswered"}(s||(t.SmartlookEvents=s={}))},8880(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.WoopraEvents=void 0,function(e){e.SurveySeen="survicate survey shown",e.SurveyPointAnswered="survicate survey answered"}(s||(t.WoopraEvents=s={}))},3644(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.SurveyPointType=void 0,function(e){e.question="SurveyQuestion",e.nps="SurveyNps",e.form="SurveyForm",e.cta="SurveyCta"}(s||(t.SurveyPointType=s={}))},1656(e,t){"use strict";var s,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.SmileyScalePossibleAnswers=t.SurveyQuestionAnswerType=t.TimeUnit=t.RatingShape=void 0,function(e){e.hearts="hearts",e.stars="stars",e.thumbs="thumbs"}(s||(t.RatingShape=s={})),function(e){e.day="DD",e.month="MM",e.year="YYYY"}(r||(t.TimeUnit=r={})),function(e){e.single="single",e.multiple="multiple",e.text="text",e.smileyScale="smiley_scale",e.date="date",e.rating="rating",e.dropdown="dropdown_list",e.form="form",e.matrix="matrix",e.ranking="ranking",e.numericalScale="numerical_scale",e.customerSatisfaction="csat"}(i||(t.SurveyQuestionAnswerType=i={})),function(e){e.verySad="Extremely unsatisfied",e.sad="Unsatisfied",e.neutral="Neutral",e.happy="Happy",e.veryHappy="Extremely happy"}(o||(t.SmileyScalePossibleAnswers=o={}))},3306(e,t){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.ReservedParams=void 0,function(e){e.aid="aid",e.multiple_responses="multiple_responses",e.sid="sid",e.uid="uid",e.p="p",e.autofocus="autofocus"}(s||(t.ReservedParams=s={}))},5351(e,t){"use strict";var s,r;Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityProvidersArray=t.IntegrationNames=t.Providers=void 0,function(e){e.Intercom="intercom",e.Api="api",e.Salesforce="salesforce",e.CustomerIO="customerio",e.Vero="vero",e.Boomtrain="boomtrain",e.Amplitude="amplitude",e.Mixpanel="mixpanel"}(s||(t.Providers=s={})),function(e){e.Marketo="marketo",e.Hubspot="hubspot",e.Pardot="pardot",e.GoogleAnalytics="google_analytics",e.Segment="segment",e.SegmentWeb="segment_web",e.Woopra="woopra",e.SessionCam="sessioncam",e.Fullstory="fullstory",e.ABTesting="ab_testing",e.Optimizely="optimizely",e.Intercom="intercom20",e.Zendesk="zendesk",e.Mixpanel="mixpanel",e.Amplitude="amplitude",e.Smartlook="smartlook",e.Salesforce="salesforce"}(r||(t.IntegrationNames=r={})),t.IdentityProvidersArray=[s.Intercom,s.Api,s.Salesforce,s.CustomerIO,s.Vero,s.Boomtrain,r.Marketo,r.Hubspot,r.Pardot,r.Zendesk]},6880(e){e.exports=function(e){var t={};function s(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,s),i.l=!0,i.exports}return s.m=e,s.c=t,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)s.d(r,i,function(t){return e[t]}.bind(null,i));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=90)}({17:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r=s(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var s=t.match(e);return s&&s.length>0&&s[1]||""},e.getSecondMatch=function(e,t){var s=t.match(e);return s&&s.length>1&&s[2]||""},e.matchAndReturnConst=function(e,t,s){if(e.test(t))return s},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});t.push(0);var s=t[0],r=t[1];if(10===s)switch(r){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(s){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,s,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(s),n=Math.max(i,o),a=0,c=e.map([t,s],function(t){var s=n-e.getVersionPrecision(t),r=t+new Array(s+1).join(".0");return e.map(r.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(r&&(a=n-Math.min(i,o)),n-=1;n>=a;){if(c[0][n]>c[1][n])return 1;if(c[0][n]===c[1][n]){if(n===a)return 0;n-=1}else if(c[0][n]<c[1][n])return-1}},e.map=function(e,t){var s,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(s=0;s<e.length;s+=1)r.push(t(e[s]));return r},e.find=function(e,t){var s,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(s=0,r=e.length;s<r;s+=1){var i=e[s];if(t(i,s))return i}},e.assign=function(e){for(var t,s,r=e,i=arguments.length,o=new Array(i>1?i-1:0),n=1;n<i;n++)o[n-1]=arguments[n];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var a=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){r[t]=e[t]})};for(t=0,s=o.length;t<s;t+=1)a();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,s){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},t.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},t.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},t.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},t.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=s(91))&&r.__esModule?r:{default:r},o=s(18);function n(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){}var t,s,r;return e.getParser=function(e,t,s){if(void 0===t&&(t=!1),void 0===s&&(s=null),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t,s)},e.parse=function(e,t){return void 0===t&&(t=null),new i.default(e,t).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(s=null)&&n(t.prototype,s),r&&n(t,r),e}();t.default=a,e.exports=t.default},91:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r=c(s(92)),i=c(s(93)),o=c(s(94)),n=c(s(95)),a=c(s(17));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t,s){if(void 0===t&&(t=!1),void 0===s&&(s=null),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e;var r=!1;"boolean"==typeof t?(r=t,this._hints=s):this._hints=null!=t&&"object"==typeof t?t:null,this.parsedResult={},!0!==r&&this.parse()}var t=e.prototype;return t.getHints=function(){return this._hints},t.hasBrand=function(e){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var t=e.toLowerCase();return this._hints.brands.some(function(e){return e.brand&&e.brand.toLowerCase()===t})},t.getBrandVersion=function(e){if(this._hints&&Array.isArray(this._hints.brands)){var t=e.toLowerCase(),s=this._hints.brands.find(function(e){return e.brand&&e.brand.toLowerCase()===t});return s?s.version:void 0}},t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(r.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA(),this)),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,s={},r=0,i={},o=0;if(Object.keys(e).forEach(function(t){var n=e[t];"string"==typeof n?(i[t]=n,o+=1):"object"==typeof n&&(s[t]=n,r+=1)}),r>0){var n=Object.keys(s),c=a.default.find(n,function(e){return t.isOS(e)});if(c){var l=this.satisfies(s[c]);if(void 0!==l)return l}var v=a.default.find(n,function(e){return t.isPlatform(e)});if(v){var _=this.satisfies(s[v]);if(void 0!==_)return _}}if(o>0){var u=Object.keys(i),d=a.default.find(u,function(e){return t.isBrowser(e,!0)});if(void 0!==d)return this.compareVersion(i[d])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var s=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=a.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===s},t.compareVersion=function(e){var t=[0],s=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(s=e.substr(1),"="===e[1]?(r=!0,s=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?s=e.substr(1):"~"===e[0]&&(r=!0,s=e.substr(1)),t.indexOf(a.default.compareVersions(i,s,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=l,e.exports=t.default},92:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=s(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,n=[{test:[/gptbot/i],describe:function(e){var t={name:"GPTBot"},s=i.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/chatgpt-user/i],describe:function(e){var t={name:"ChatGPT-User"},s=i.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/oai-searchbot/i],describe:function(e){var t={name:"OAI-SearchBot"},s=i.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(e){var t={name:"ClaudeBot"},s=i.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(e){var t={name:"Omgilibot"},s=i.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/diffbot/i],describe:function(e){var t={name:"Diffbot"},s=i.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/perplexitybot/i],describe:function(e){var t={name:"PerplexityBot"},s=i.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/perplexity-user/i],describe:function(e){var t={name:"Perplexity-User"},s=i.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/youbot/i],describe:function(e){var t={name:"YouBot"},s=i.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/meta-webindexer/i],describe:function(e){var t={name:"Meta-WebIndexer"},s=i.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/meta-externalads/i],describe:function(e){var t={name:"Meta-ExternalAds"},s=i.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/meta-externalagent/i],describe:function(e){var t={name:"Meta-ExternalAgent"},s=i.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/meta-externalfetcher/i],describe:function(e){var t={name:"Meta-ExternalFetcher"},s=i.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},s=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/linespider/i],describe:function(e){var t={name:"Linespider"},s=i.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/amazonbot/i],describe:function(e){var t={name:"AmazonBot"},s=i.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/bingbot/i],describe:function(e){var t={name:"BingCrawler"},s=i.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/baiduspider/i],describe:function(e){var t={name:"BaiduSpider"},s=i.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/duckduckbot/i],describe:function(e){var t={name:"DuckDuckBot"},s=i.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/ia_archiver/i],describe:function(e){var t={name:"InternetArchiveCrawler"},s=i.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(e){var t={name:"SlackBot"},s=i.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},s=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/PaleMoon/i],describe:function(e){var t={name:"Pale Moon"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},s=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},s=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},s=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},s=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},s=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},s=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},s=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},s=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},s=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},s=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},s=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},s=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},s=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return s&&(t.version=s),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},s=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},s=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},s=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},s=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},s=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},s=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},s=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/librewolf/i],describe:function(e){var t={name:"LibreWolf"},s=i.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},s=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},s=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(e){var t={name:"Sogou Browser"},s=i.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,e),r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),o=i.default.getFirstMatch(/se ([\d.]+)x/i,e),n=s||r||o;return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},s=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){return!!e.hasBrand("DuckDuckGo")||e.test(/\sDdg\/[\d.]+$/i)},describe:function(e,t){var s={name:"DuckDuckGo"};if(t){var r=t.getBrandVersion("DuckDuckGo");if(r)return s.version=r,s}var o=i.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,e);return o&&(s.version=o),s}},{test:function(e){return e.hasBrand("Brave")},describe:function(e,t){var s={name:"Brave"};if(t){var r=t.getBrandVersion("Brave");if(r)return s.version=r,s}return s}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},s=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},s=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},s=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){var t=!e.test(/like android/i),s=e.test(/android/i);return t&&s},describe:function(e){var t={name:"Android Browser"},s=i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},s=i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},s=i.default.getFirstMatch(o,e);return s&&(t.version=s),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=n,e.exports=t.default},93:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=s(17))&&r.__esModule?r:{default:r},o=s(18),n=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),s=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:s}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},s=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return s&&(t.version=s),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),s=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return s&&(r.versionName=s),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:[/OpenHarmony/i],describe:function(e){var t=i.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.HarmonyOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),s=e.test(/android/i);return t&&s},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),s=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return s&&(r.versionName=s),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),s={name:o.OS_MAP.WebOS};return t&&t.length&&(s.version=t),s}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=n,e.exports=t.default},94:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=s(17))&&r.__esModule?r:{default:r},o=s(18),n=[{test:[/googlebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",s={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(s.model=t),s}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),s=e.test(/like (ipod|iphone)/i);return t&&!s},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(e){var t=i.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),s={type:o.PLATFORMS_MAP.mobile,vendor:"Nokia"};return t&&(s.model=t),s}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=n,e.exports=t.default},95:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=s(17))&&r.__esModule?r:{default:r},o=s(18),n=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},s=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},s=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){var t=e.test(/gecko/i),s=e.test(/like gecko/i);return t&&!s},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},s=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},s=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}}];t.default=n,e.exports=t.default}})},5817(e,t,s){"use strict";s.d(t,{A:()=>a});var r=s(1601),i=s.n(r),o=s(6314),n=s.n(o)()(i());n.push([e.id,'.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#survicate-box h1,#survicate-box h2,#survicate-box h3,#survicate-box h4{color:#29292a;font-weight:400;margin:0 0 16px;padding:0}#survicate-box .h1,#survicate-box h1{font-size:24px}#survicate-box .h2,#survicate-box h2{font-size:18px}#survicate-box .h3,#survicate-box h3{font-size:16px}#survicate-box .h4,#survicate-box h4{font-size:14px}#survicate-box{/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */}#survicate-box html{line-height:1.15;-webkit-text-size-adjust:100%}#survicate-box body{margin:0}#survicate-box h1{font-size:2em;margin:.67em 0}#survicate-box hr{box-sizing:content-box;height:0;overflow:visible}#survicate-box pre{font-family:monospace,monospace;font-size:1em}#survicate-box a{background-color:transparent}#survicate-box abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}#survicate-box b,#survicate-box strong{font-weight:bolder}#survicate-box code,#survicate-box kbd,#survicate-box samp{font-family:monospace,monospace;font-size:1em}#survicate-box small{font-size:80%}#survicate-box sub,#survicate-box sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}#survicate-box sub{bottom:-.25em}#survicate-box sup{top:-.5em}#survicate-box img{border-style:none}#survicate-box button,#survicate-box input,#survicate-box optgroup,#survicate-box select,#survicate-box textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}#survicate-box button,#survicate-box input{overflow:visible}#survicate-box button,#survicate-box select{text-transform:none}#survicate-box [type=button],#survicate-box [type=reset],#survicate-box [type=submit],#survicate-box button{-webkit-appearance:button}#survicate-box [type=button]::-moz-focus-inner,#survicate-box [type=reset]::-moz-focus-inner,#survicate-box [type=submit]::-moz-focus-inner,#survicate-box button::-moz-focus-inner{border-style:none;padding:0}#survicate-box [type=button]:-moz-focusring,#survicate-box [type=reset]:-moz-focusring,#survicate-box [type=submit]:-moz-focusring,#survicate-box button:-moz-focusring{outline:1px dotted ButtonText}#survicate-box fieldset{padding:.35em .75em .625em}#survicate-box legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}#survicate-box progress{vertical-align:baseline}#survicate-box textarea{overflow:auto}#survicate-box [type=checkbox],#survicate-box [type=radio]{box-sizing:border-box;padding:0}#survicate-box [type=number]::-webkit-inner-spin-button,#survicate-box [type=number]::-webkit-outer-spin-button{height:auto}#survicate-box [type=search]{-webkit-appearance:textfield;outline-offset:-2px}#survicate-box [type=search]::-webkit-search-decoration{-webkit-appearance:none}#survicate-box ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}#survicate-box details{display:block}#survicate-box summary{display:list-item}#survicate-box [hidden],#survicate-box template{display:none}#survicate-box .sv__answer-hint{font-size:12px;font-weight:600;line-height:20px;margin-bottom:8px;text-align:left}#survicate-box .sv__answer-hint+.sv__choice-button-wrapper{margin-top:8px}#survicate-box .sv__multiple-choice .sv__choice-button .sv__textarea-wrapper .sv--color-answer.sv__answer-hint,#survicate-box .sv__single-choice .sv__choice-button .sv__textarea-wrapper .sv--color-answer.sv__answer-hint{font-size:14px;font-weight:600}#survicate-box .sv__footer{display:inline-block;font-size:11px;padding:0 5px}#survicate-box .sv__labels{display:flex;justify-content:space-between;margin:24px 0}#survicate-box .sv__labels .sv__label{font-size:12px}#survicate-box .sv__labels .sv__label--left{margin-right:5px}#survicate-box .sv__labels .sv__label--right{margin-left:5px}#survicate-box .sv__progress-bar{height:4px;left:0;position:absolute;top:0;width:100%}#survicate-box .sv__progress-bar>div{height:100%}#survicate-box .sv__opened-in-new-tab{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;text-align:center}#survicate-box :host .sv__opened-in-new-tab{height:100%}#survicate-box .sv__opened-in-new-tab p{font-family:Open sans,sans-serif!important;font-size:21px}#survicate-box .sv__branded-footer,#survicate-box .sv__branded-footer__content{align-items:center;display:flex}#survicate-box .sv__branded-footer{justify-content:center}#survicate-box .sv__branded-footer:before{border-top:1px solid #c2cbcb;content:"";left:24px;position:absolute;transform:translateY(-39px);width:calc(100% - 48px)}#survicate-box .sv__branded-footer__content{transform:translateX(16px)}#survicate-box .sv__branded-footer__content .sv__branded-footer__text{color:#7f8c8d;font-family:Open sans,sans-serif!important;font-size:12px}#survicate-box .sv__branded-footer__content .sv__survicate-wordmark{height:10px}#survicate-box .sv__disclaimer{padding-top:16px;text-align:left}#survicate-box .sv__disclaimer__body{border-top-style:solid;border-top-width:1px;padding-bottom:16px;padding-top:16px}#survicate-box .sv__disclaimer__text,#survicate-box .sv__disclaimer__title{font-size:12px;margin:0;overflow-wrap:break-word}#survicate-box .sv__disclaimer__text a,#survicate-box .sv__disclaimer__text b,#survicate-box .sv__disclaimer__text em,#survicate-box .sv__disclaimer__text i,#survicate-box .sv__disclaimer__text strong,#survicate-box .sv__disclaimer__title a,#survicate-box .sv__disclaimer__title b,#survicate-box .sv__disclaimer__title em,#survicate-box .sv__disclaimer__title i,#survicate-box .sv__disclaimer__title strong{color:inherit;font-size:inherit}#survicate-box .sv__disclaimer__text a,#survicate-box .sv__disclaimer__title a{cursor:pointer;text-decoration:underline}#survicate-box .sv__disclaimer__title{font-weight:600;padding-bottom:8px}#survicate-box .sv__rtl-lang .sv__disclaimer,#survicate-box .sv__rtl-lang .sv__disclaimer__body{text-align:right}#survicate-box .sv__tooltip-container{display:inline-block;position:relative}#survicate-box .sv__tooltip-container .sv__tooltip{background-color:#000;border-radius:4px;bottom:120%;color:#fff;font-size:14px;height:40px;left:50%;padding:8px 12px;position:absolute;text-align:center;transform:translateX(-50%);transition:opacity .2s ease-in-out;white-space:nowrap;z-index:2147483647}#survicate-box .sv__tooltip-container .sv__tooltip--align-left{left:0;transform:none}#survicate-box .sv__tooltip-container .sv__tooltip--with-caret.sv__tooltip:after{border:6px solid transparent;border-top-color:#000;content:"";left:50%;position:absolute;top:100%;transform:translateX(-50%)}#survicate-box .sv__tooltip-container .sv__tooltip--align-left.sv__tooltip--with-caret:after{left:20px;transform:none}#survicate-box .sv__confirmation.sv__confirmation--disclaimer{align-items:center;border-radius:0;border-top:1px solid;display:flex;margin:0;padding:16px 0}#survicate-box .sv__confirmation.sv__confirmation--disclaimer .checkbox-label{width:auto}#survicate-box .sv__confirmation.sv__confirmation--disclaimer .sv__checkbox{margin-left:0;transform:none}#survicate-box .sv__confirmation .sv__checkbox{min-width:20px}#survicate-box .sv__confirmation .sv__confirmation__agreement-label{overflow-wrap:break-word;overflow-x:auto}#survicate-box .sv__confirmation .sv__confirmation__agreement-label a,#survicate-box .sv__confirmation .sv__confirmation__agreement-label b,#survicate-box .sv__confirmation .sv__confirmation__agreement-label i,#survicate-box .sv__confirmation .sv__confirmation__agreement-label strong{color:inherit;font-size:inherit}#survicate-box .sv__confirmation .sv__confirmation__agreement-label a{cursor:pointer;text-decoration:underline}#survicate-box .sv__contact-form .sv__disclaimer .sv__confirmation.sv__confirmation--disclaimer{padding:16px 0}#survicate-box .sv__rtl-lang .sv__confirmation.sv__confirmation--disclaimer .sv__checkbox{margin-left:10px}#survicate-box .sv__point-image{border-radius:6px;height:auto}#survicate-box .sv__point-image__container{display:flex;justify-content:center;position:relative}#survicate-box .sv__point-image__container img{max-width:100%}#survicate-box .sv__point-image__container--loading{margin:20px 0;width:100%}@keyframes spinnerRotation{to{transform:rotate(1turn)}}#survicate-box .sv__spinner{left:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:100%;z-index:100}#survicate-box .sv__spinner:before{animation:spinnerRotation .9s linear infinite;aspect-ratio:1;border-radius:50%;border-style:solid;border-width:4px;box-sizing:border-box;content:"";display:inline-block;height:30px}#survicate-box .sv__submit-button__wrapper{display:flex}#survicate-box .sv__submit-button__wrapper .sv__navigation-button{margin:initial}#survicate-box .sv__submit-button__wrapper .sv__navigation-button--back{margin-right:16px}#survicate-box .sv__submit-button__wrapper .sv__submit-button.sv__navigation-button{overflow:auto;word-break:break-word}#survicate-box .sv__submit-button__wrapper .sv__submit-button.sv__navigation-button.sv__navigation-button--back{margin-right:16px}#survicate-box .sv__submit-button__wrapper .sv__submit-button.sv__navigation-button.sv__navigation-button--back .sv__navigation-button__arrow{border-style:solid;border-width:0 2px 2px 0;display:block;transform:rotate(135deg)}#survicate-box .sv__position-mobile .sv__navigation-button{width:48%}#survicate-box .sv__position-mobile .sv__navigation-button .sv__navigation-button__text{max-width:48%}#survicate-box .sv__position-mobile .sv__navigation-button:first-child{margin-left:0}#survicate-box .sv__position-mobile .sv__navigation-button:last-child{margin-right:0}#survicate-box .sv__dot-loader-container{border-top:1px solid;display:flex;justify-content:center;width:100%}#survicate-box .sv__dot-loader{display:flex;justify-content:space-between;margin:16px 0;width:13px}#survicate-box .sv__dot-loader__dot{animation:growShrink 1s infinite;border-radius:50%;height:3px;width:3px}#survicate-box .sv__dot-loader__dot:nth-child(2){animation-delay:.2s}#survicate-box .sv__dot-loader__dot:nth-child(3){animation-delay:.4s}@keyframes growShrink{0%,to{transform:scale(1)}50%{transform:scale(1.333)}}#survicate-box .sv__language-selector{position:relative}#survicate-box .sv__language-selector__trigger{align-items:center;background-color:transparent;border:none;border-radius:6px;box-sizing:border-box;cursor:pointer;display:inline-flex;justify-content:center;min-height:32px;min-width:32px;padding:4px}#survicate-box .sv__language-selector__trigger:focus,#survicate-box .sv__language-selector__trigger:hover,#survicate-box .sv__language-selector__trigger[aria-expanded=true]{outline:none}#survicate-box .sv__language-selector__trigger:focus-visible{outline:2px solid;outline-offset:2px}#survicate-box .sv__language-selector__icon{color:inherit;display:block;flex-shrink:0;height:20px;width:22px}#survicate-box .sv__language-selector__icon svg{display:block;height:100%;width:100%}#survicate-box .sv__language-selector__trigger--full{border:1px solid;border-radius:6px;min-height:40px;min-width:100px;padding:8px 12px}#survicate-box .sv__language-selector__trigger-inner{align-items:center;display:inline-flex;gap:6px}#survicate-box .sv__language-selector__trigger--full .sv__language-selector__label{font-size:12px}#survicate-box .sv__language-selector__trigger--full .sv__language-selector__chevron{flex-shrink:0;transition:transform .2s ease}#survicate-box .sv__language-selector__trigger--full .sv__language-selector__chevron--open{transform:rotate(180deg)}#survicate-box .sv__language-selector__trigger--full .sv__language-selector__chevron svg{display:block}#survicate-box .sv__language-selector__list{border:1px solid transparent;border-radius:6px;list-style:none;margin:4px 0 0;max-height:240px;min-width:120px;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;right:0;top:100%;z-index:10}#survicate-box .sv__language-selector__option{cursor:pointer;font-size:12px;padding:8px 12px;text-align:start}#survicate-box .sv__language-selector__option[dir=rtl]{text-align:right}#survicate-box .sv__language-selector__option--selected{font-weight:600}#survicate-box .sv__language-selector__option:focus{outline:none}#survicate-box .sv__language-selector__option:focus-visible{outline:2px solid currentColor;outline-offset:-2px}#survicate-box .sv__language-selector__option:first-child{border-radius:6px 6px 0 0}#survicate-box .sv__language-selector__option:last-child{border-radius:0 0 6px 6px}#survicate-box .sv__language-selector__option:only-child{border-radius:6px}#survicate-box .sv__rtl-lang .sv__language-selector__trigger{margin-right:0}#survicate-box .sv__rtl-lang .sv__language-selector__list{left:0;right:auto}#survicate-box .sv__notification-banner{align-items:center;background-color:#fff1d7;display:flex;height:64px;padding:16px 20px}#survicate-box .sv__notification-banner__text{color:#664a16}#survicate-box .sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#survicate-box .sv__choice-button{overflow-wrap:break-word}#survicate-box .sv__choice-button .sv__textarea{font-size:14px}#survicate-box .sv__rtl-lang .sv__choice-button-wrapper .sv__choice-button{text-align:right}#survicate-box .sv__date{border:2px solid transparent;border-radius:6px;display:block;justify-content:flex-start}#survicate-box .sv__date__input{background-color:transparent;border:none;font-weight:400}#survicate-box .sv__date__input:focus{border-color:transparent!important}#survicate-box .sv__date.sv__invalid{background-color:#ffedea!important;border-style:solid;border-width:2px}#survicate-box .sv__date.sv__invalid.focused{border-color:#e33a22!important}#survicate-box .sv__date.sv__invalid .sv__date__input{background-color:transparent}#survicate-box .sv__date.sv__invalid .sv__date__separator{color:#e33a22!important}#survicate-box .sv__dropdown__wrapper{margin:25px auto 0;position:relative}#survicate-box .sv__dropdown__wrapper .sv__select-buttons .sv__select-icon{align-items:center;display:flex;height:44px;justify-content:center;right:0;top:2px;width:46px}#survicate-box .sv__dropdown__wrapper .sv__select-buttons .sv__select-icon.sv__select__clear-input{right:0}#survicate-box .sv__dropdown__wrapper .sv__select input{cursor:text}#survicate-box .sv__dropdown__wrapper .sv__select input:focus{padding:14px}#survicate-box .sv__dropdown__wrapper .sv__select input,#survicate-box .sv__dropdown__wrapper .sv__select input:focus{padding-right:48px;text-overflow:ellipsis}#survicate-box .sv__dropdown__wrapper .sv__select .sv__caret svg{transform:scale(1.5)}#survicate-box .sv__dropdown__wrapper .sv__select--open .sv__caret svg{transform:scale(1.5) rotate(180deg) translateY(2px)}#survicate-box .sv__dropdown__wrapper .sv__select .sv__select-list{margin-top:8px}#survicate-box .sv__dropdown__wrapper .sv__validation{top:11px}@media(max-width:1181px){#survicate-box .sv-box-child .sv__dropdown__wrapper .sv__validation{top:-26px}}#survicate-box .sv__dropdown__wrapper .sv-invalid .sv__clear-input-icon svg g rect,#survicate-box .sv__dropdown__wrapper .sv-invalid .sv__clear-input-icon svg path{fill:#e33a22!important}#survicate-box .sv__nps .sv__buttons{display:flex;justify-content:space-between}#survicate-box .sv__nps--vertical{margin:auto;width:100%}#survicate-box .sv__rating{text-align:center}#survicate-box .sv__rating__wrapper{flex-direction:column;margin:0 auto}#survicate-box .sv__rating__wrapper .sv__buttons{flex-direction:row}#survicate-box .sv__rating__wrapper .sv__buttons .sv__button{background:none;margin-bottom:0;margin-top:0;padding:0}#survicate-box .sv__rating__wrapper .sv__buttons .sv__button:first-child{margin-left:0}#survicate-box .sv__rating__wrapper .sv__buttons .sv__button:last-child{margin-right:0}#survicate-box .sv__rating__wrapper .sv__buttons .sv__button--selected{border:none}#survicate-box .sv__rating__number{font-weight:400}#survicate-box .sv__smiley-scale{margin:auto;text-align:center}#survicate-box .sv__smiley-scale .sv__selected{transform:scale(1.2)}#survicate-box .sv__smiley-scale.sv__three-smileys{text-align:center}#survicate-box .sv__smiley-scale.sv__three-smileys .sv__smiley-scale__buttons .sv__smiley-scale__button:first-child{margin-right:22px}#survicate-box .sv__smiley-scale.sv__three-smileys .sv__smiley-scale__buttons .sv__smiley-scale__button:last-child{margin-left:22px}#survicate-box .sv__smiley-scale__wrapper{display:inline-flex;flex-direction:column;margin:0 auto}#survicate-box .sv__smiley-scale__buttons{display:flex;justify-content:center}#survicate-box .sv__smiley-scale__button{background:none;border-radius:50%;height:59px;margin:0 20px;padding:0;transition:transform .2s ease-out;width:59px}#survicate-box .sv__smiley-scale__button:first-child{margin-left:0}#survicate-box .sv__smiley-scale__button:last-child{margin-right:0}#survicate-box .sv__smiley-scale__button:hover{transform:scale(1.1)}#survicate-box .sv__smiley-scale__icon-container{background-repeat:no-repeat;background-size:contain;display:block;height:100%;position:relative;width:100%}#survicate-box .sv__matrix-widget .sv__choice-button-wrapper .sv__textarea-wrapper{height:max-content;padding-bottom:0}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-animation-wrapper{box-sizing:border-box}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown{height:unset;justify-content:space-between;margin-bottom:8px;min-height:64px;padding:16px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__matrix-answer{overflow:hidden;width:inherit}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__matrix-answer .sv__answer-text,#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__matrix-answer .sv__matrix-answer--selected{overflow:inherit;text-overflow:ellipsis;white-space:normal;width:95%}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__matrix-answer--selected{font-size:12px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__caret{align-items:center;display:flex;height:24px;justify-content:center;width:24px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown .sv__caret svg{height:12px;transform:rotate(180deg);width:20px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown--closed.sv__choice-button{height:64px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown--closed.sv__choice-button svg{transform:none}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown--closed.sv__choice-button .sv__matrix-answer .sv__answer-text,#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown--closed.sv__choice-button .sv__matrix-answer--selected{white-space:nowrap}#survicate-box .sv__matrix-row{border:2px solid transparent;border-radius:6px;display:flex;gap:5px;margin-bottom:12px;min-height:50px;padding:11px 0}#survicate-box .sv__matrix-row.sv__selected .sv__matrix-cell div{font-weight:600}#survicate-box .sv__matrix-row.sv__matrix-header{background-color:transparent}#survicate-box .sv__matrix-row:not(:first-child) .sv__matrix-cell:not(:first-child){cursor:pointer}#survicate-box .sv__matrix-cell{align-items:center;color:#7f8c8d;display:flex;flex-basis:50px;flex-grow:1;font-size:14px;font-weight:400;justify-content:center;text-align:center}#survicate-box .sv__matrix-cell:first-child{flex-basis:30%;justify-content:flex-start;padding:0 20px;text-align:left;word-break:break-word}#survicate-box .sv__matrix-cell .sv__checkbox{margin:0}#survicate-box .sv__matrix-cell .sv__checkbox.sv__circle{background-clip:content-box;border-style:solid;border-width:2px;padding:4px}#survicate-box .sv__ie .sv__matrix-cell{height:40px}#survicate-box .sv__matrix-widget .sv__matrix-dropdown__wrapper .sv__matrix-dropdown{display:flex}#survicate-box .sv-box-child.sv-mobile{font-size:16px}@media only screen and (max-device-width:812px)and (-webkit-min-device-pixel-ratio:3)and (orientation:landscape),only screen and (max-width:767px){#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop){font-size:16px}}@media only screen and (min-width:768px)and (-webkit-max-device-pixel-ratio:2),only screen and (min-width:813px){#survicate-box .sv-box-child:not(.sv-mobile) .sv__matrix-widget{max-width:256px}}#survicate-box .sv-box-child.sv-desktop .sv__matrix-widget,#survicate-box .sv-box-child.sv-tablet .sv__matrix-widget{max-width:256px}#survicate-box .sv__survey .sv__contact-form-field.sv__invalid .sv__input:focus{background-color:#ffedea!important;border-color:#c00!important;color:#e33a22!important}#survicate-box .sv__text-question .sv__text-container{position:relative}#survicate-box .sv__text-question .sv__text-container .sv__textarea.sv__has-followup-questions{margin-bottom:4px}#survicate-box .sv__text-question .sv__text-input-stats{display:flex;justify-content:flex-end;text-align:right}#survicate-box .sv__text-question .sv__text-input-stats-text{font-size:12px}#survicate-box .sv__text-question .sv__follow-up{border-top:1px solid}#survicate-box .sv__text-question .sv__follow-up .sv__point-text{margin-top:16px}#survicate-box .sv__buttons{display:flex;justify-content:center}#survicate-box .sv__buttons .sv__button{border-radius:6px}#survicate-box .sv__buttons--vertical.sv__buttons{display:flex;flex-direction:column-reverse;width:100%}#survicate-box .sv__buttons--vertical.sv__buttons .sv__button{border:none;font-weight:400;height:48px;margin:0 0 8px;overflow-wrap:break-word;width:100%}#survicate-box .sv__buttons--vertical.sv__buttons .sv__button--selected,#survicate-box .sv__buttons--vertical.sv__buttons .sv__button:active{border-style:solid;border-width:2px;font-weight:600}#survicate-box .sv__buttons--vertical.sv__buttons .sv__button--selected svg,#survicate-box .sv__buttons--vertical.sv__buttons .sv__button:active svg{margin-bottom:0}#survicate-box .sv__buttons__answer{overflow-wrap:break-word;overflow-x:auto}#survicate-box .sv__checkbox{cursor:pointer;display:inline-block;height:20px;margin-right:10px;position:relative;width:20px}#survicate-box .sv__checkbox.sv__circle{border-radius:50%}#survicate-box .sv__checkbox.sv__circle .sv__tick{border-radius:100%;height:5px;left:6px;top:4px;width:5px}#survicate-box .sv__checkbox.sv__circle label:after{background:initial;border:initial;height:auto;left:auto;position:static;top:auto;width:auto}#survicate-box .sv__checkbox.sv__square{border-radius:4px;border-style:solid;border-width:2px;margin-top:1px;transition:background-color .3s cubic-bezier(.4,0,.23,1)}#survicate-box .sv__checkbox.sv__square:after{border-radius:100%;content:"";height:36px;left:-10px;position:absolute;top:-10px;width:36px}#survicate-box .sv__checkbox.sv__square svg{border-radius:3px;height:100%;position:absolute;transform:scale(1.2);width:100%}#survicate-box .sv__checkbox .sv__tick{display:none;display:block;position:absolute}#survicate-box .sv__checkbox.sv__circle .sv__tick{background-color:#fff;display:none;height:8px;top:6px;width:8px}#survicate-box .sv__rtl-lang .sv__checkbox{margin-left:10px;margin-right:0}#survicate-box .sv__hide-input{height:0;opacity:0;pointer-events:none;position:absolute;width:0}#survicate-box .sv__outline .sv__checkbox.sv__checkbox--focused{box-shadow:0 0 0 8px rgba(26,109,85,.2);outline:2px solid #6f27f6}#survicate-box .sv__select{border-radius:6px;position:relative;width:100%;z-index:1}#survicate-box .sv__select-icon{position:absolute;right:16px;top:10px}#survicate-box .sv__select input{border-radius:6px;cursor:pointer;font-size:16px;font-weight:400;padding:16px;width:100%}#survicate-box .sv__select--open{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:6px;border-top-right-radius:6px;z-index:100}#survicate-box .sv__select .sv__clear-input-icon{background:none;font-weight:600}#survicate-box .sv__select .sv__caret{background:none;border:none;cursor:pointer}#survicate-box .sv__select .sv__select-list{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top-left-radius:0;border-top-right-radius:0;list-style:none;margin:0;max-height:180px;overflow:auto;padding:0;position:absolute;width:100%;z-index:100}#survicate-box .sv__select .sv__select-list .sv__select-button{border:none;border-radius:0;font-size:inherit;font-weight:400;height:auto;overflow-wrap:break-word;padding:10px 16px;text-align:left;transition:none;width:100%}#survicate-box .sv__select.sv-invalid{border:none}#survicate-box .sv__select.sv-invalid input,#survicate-box .sv__select.sv-invalid input:focus{background-color:#ffedea!important;border:2px;border-color:#e33a22!important;border-style:solid;color:#e33a22!important;padding:14px}#survicate-box .sv__select.sv-invalid+.sv__submit-button__wrapper{visibility:visible}#survicate-box .sv__outline .sv__select-list .sv__select-button.sv__select-button--focused{outline:2px solid #6f27f6;outline-offset:-4px}#survicate-box .sv__rtl-lang .sv__dropdown__wrapper .sv__select-list .sv__select-button{text-align:right}#survicate-box .sv__rtl-lang .sv__dropdown__wrapper .sv__select-icon{left:16px;right:unset}#survicate-box .sv__rtl-lang .sv__dropdown__wrapper .sv__select-icon.sv__select__clear-input{left:0}#survicate-box .sv__rtl-lang .sv__dropdown__wrapper .sv__select .sv__input{padding-right:16px}#survicate-box .sv__validation{align-items:center;background-color:#e33a22;border-radius:4px;display:flex;left:100%;padding:5px 6px;position:absolute;top:36px;white-space:nowrap;width:max-content}#survicate-box .sv__validation__message{color:#fff;font-size:12px;margin-left:3px}#survicate-box .sv__validation:after{border-color:transparent #e33a22 transparent transparent;border-style:solid;border-width:4px 8px 4px 0;content:" ";height:0;left:-7px;position:absolute;top:9px;width:0}#survicate-box .sv__survey .sv__invalid input{background-color:#ffedea!important;color:#e33a22!important}#survicate-box .sv__survey .sv__invalid input:focus{border-color:#e33a22;border-width:2px}@media(max-width:1181px){#survicate-box .sv-box-child .sv__validation{left:auto;right:0;top:1px}#survicate-box .sv-box-child .sv__validation:after{border-color:#e33a22 transparent transparent;border-width:8px 4px 0;bottom:-8px;left:auto;right:10px;top:auto}}#survicate-box :host .sv-mobile .sv__validation{left:auto;right:0;top:1px}#survicate-box :host .sv-mobile .sv__validation:after{border-color:#e33a22 transparent transparent;border-width:8px 4px 0;bottom:-8px;left:auto;right:10px;top:auto}#survicate-box .sv__comment-field{border:2px solid;border-radius:6px;margin-bottom:16px;padding:4px 8px}#survicate-box .sv__comment-field .sv__textarea{border:2px solid transparent;border-radius:6px;font-size:14px;margin-top:8px;max-height:200px;min-height:80px;padding:8px;resize:none;width:100%}#survicate-box .sv__comment-field__label{display:block;font-size:14px;font-weight:600;margin-top:4px;text-align:left;word-break:break-word}#survicate-box .sv__comment-field__label span{font-size:14px;font-weight:600}#survicate-box .sv__rtl-lang .sv__comment-field__label{text-align:right}#survicate-box .sv__point .sv__point-description a,#survicate-box .sv__point .sv__point-description b,#survicate-box .sv__point .sv__point-description em,#survicate-box .sv__point .sv__point-description h1,#survicate-box .sv__point .sv__point-description h2,#survicate-box .sv__point .sv__point-description h3,#survicate-box .sv__point .sv__point-description h4,#survicate-box .sv__point .sv__point-description h5,#survicate-box .sv__point .sv__point-description i,#survicate-box .sv__point .sv__point-description small,#survicate-box .sv__point .sv__point-description strong,#survicate-box .sv__point .sv__point-question a,#survicate-box .sv__point .sv__point-question b,#survicate-box .sv__point .sv__point-question em,#survicate-box .sv__point .sv__point-question h1,#survicate-box .sv__point .sv__point-question h2,#survicate-box .sv__point .sv__point-question h3,#survicate-box .sv__point .sv__point-question h4,#survicate-box .sv__point .sv__point-question h5,#survicate-box .sv__point .sv__point-question i,#survicate-box .sv__point .sv__point-question small,#survicate-box .sv__point .sv__point-question strong,#survicate-box .sv__point .sv__point-wrapper a,#survicate-box .sv__point .sv__point-wrapper b,#survicate-box .sv__point .sv__point-wrapper em,#survicate-box .sv__point .sv__point-wrapper h1,#survicate-box .sv__point .sv__point-wrapper h2,#survicate-box .sv__point .sv__point-wrapper h3,#survicate-box .sv__point .sv__point-wrapper h4,#survicate-box .sv__point .sv__point-wrapper h5,#survicate-box .sv__point .sv__point-wrapper i,#survicate-box .sv__point .sv__point-wrapper small,#survicate-box .sv__point .sv__point-wrapper strong{color:inherit}#survicate-box .sv__point .sv__point-description a.sv__social-button,#survicate-box .sv__point .sv__point-description b.sv__social-button,#survicate-box .sv__point .sv__point-description em.sv__social-button,#survicate-box .sv__point .sv__point-description h1.sv__social-button,#survicate-box .sv__point .sv__point-description h2.sv__social-button,#survicate-box .sv__point .sv__point-description h3.sv__social-button,#survicate-box .sv__point .sv__point-description h4.sv__social-button,#survicate-box .sv__point .sv__point-description h5.sv__social-button,#survicate-box .sv__point .sv__point-description i.sv__social-button,#survicate-box .sv__point .sv__point-description small.sv__social-button,#survicate-box .sv__point .sv__point-description strong.sv__social-button,#survicate-box .sv__point .sv__point-question a.sv__social-button,#survicate-box .sv__point .sv__point-question b.sv__social-button,#survicate-box .sv__point .sv__point-question em.sv__social-button,#survicate-box .sv__point .sv__point-question h1.sv__social-button,#survicate-box .sv__point .sv__point-question h2.sv__social-button,#survicate-box .sv__point .sv__point-question h3.sv__social-button,#survicate-box .sv__point .sv__point-question h4.sv__social-button,#survicate-box .sv__point .sv__point-question h5.sv__social-button,#survicate-box .sv__point .sv__point-question i.sv__social-button,#survicate-box .sv__point .sv__point-question small.sv__social-button,#survicate-box .sv__point .sv__point-question strong.sv__social-button,#survicate-box .sv__point .sv__point-wrapper a.sv__social-button,#survicate-box .sv__point .sv__point-wrapper b.sv__social-button,#survicate-box .sv__point .sv__point-wrapper em.sv__social-button,#survicate-box .sv__point .sv__point-wrapper h1.sv__social-button,#survicate-box .sv__point .sv__point-wrapper h2.sv__social-button,#survicate-box .sv__point .sv__point-wrapper h3.sv__social-button,#survicate-box .sv__point .sv__point-wrapper h4.sv__social-button,#survicate-box .sv__point .sv__point-wrapper h5.sv__social-button,#survicate-box .sv__point .sv__point-wrapper i.sv__social-button,#survicate-box .sv__point .sv__point-wrapper small.sv__social-button,#survicate-box .sv__point .sv__point-wrapper strong.sv__social-button{color:#fff}#survicate-box .sv__point .sv__point-description a.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description b.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description em.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description h1.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description h2.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description h3.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description h4.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description h5.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description i.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description small.sv__social-button--disabled,#survicate-box .sv__point .sv__point-description strong.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question a.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question b.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question em.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question h1.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question h2.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question h3.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question h4.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question h5.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question i.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question small.sv__social-button--disabled,#survicate-box .sv__point .sv__point-question strong.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper a.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper b.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper em.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper h1.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper h2.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper h3.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper h4.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper h5.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper i.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper small.sv__social-button--disabled,#survicate-box .sv__point .sv__point-wrapper strong.sv__social-button--disabled{cursor:not-allowed;opacity:.5}#survicate-box .sv__point .sv__point-description b,#survicate-box .sv__point .sv__point-description em,#survicate-box .sv__point .sv__point-description i,#survicate-box .sv__point .sv__point-description strong,#survicate-box .sv__point .sv__point-question b,#survicate-box .sv__point .sv__point-question em,#survicate-box .sv__point .sv__point-question i,#survicate-box .sv__point .sv__point-question strong,#survicate-box .sv__point .sv__point-wrapper b,#survicate-box .sv__point .sv__point-wrapper em,#survicate-box .sv__point .sv__point-wrapper i,#survicate-box .sv__point .sv__point-wrapper strong{font-size:inherit}#survicate-box .sv__point .sv__point-description b,#survicate-box .sv__point .sv__point-description strong,#survicate-box .sv__point .sv__point-question b,#survicate-box .sv__point .sv__point-question strong,#survicate-box .sv__point .sv__point-wrapper b,#survicate-box .sv__point .sv__point-wrapper strong{font-weight:600}#survicate-box .sv__point .sv__point-description small,#survicate-box .sv__point .sv__point-question small,#survicate-box .sv__point .sv__point-wrapper small{font-size:12px}#survicate-box .sv__point .sv__point-description small a,#survicate-box .sv__point .sv__point-description small b,#survicate-box .sv__point .sv__point-description small em,#survicate-box .sv__point .sv__point-description small i,#survicate-box .sv__point .sv__point-description small strong,#survicate-box .sv__point .sv__point-question small a,#survicate-box .sv__point .sv__point-question small b,#survicate-box .sv__point .sv__point-question small em,#survicate-box .sv__point .sv__point-question small i,#survicate-box .sv__point .sv__point-question small strong,#survicate-box .sv__point .sv__point-wrapper small a,#survicate-box .sv__point .sv__point-wrapper small b,#survicate-box .sv__point .sv__point-wrapper small em,#survicate-box .sv__point .sv__point-wrapper small i,#survicate-box .sv__point .sv__point-wrapper small strong{font-size:inherit}#survicate-box *{box-sizing:border-box;font-family:Open sans,sans-serif;font-size:14px;font-weight:400;line-height:normal;outline:none}#survicate-box .sv__outline :focus{outline:2px solid #6f27f6}#survicate-box button{border:none;cursor:pointer;display:inline-block;margin:0;padding:3px}#survicate-box p{margin:0}#survicate-box a{text-decoration:none}#survicate-box .sv-invalid.sv-invalid.sv-invalid{border:1px solid #c00}#survicate-box .sv__overlay,#sv-screenshot-controls .sv__overlay{height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:999995}#survicate-box :host .sv__overlay,#sv-screenshot-controls :host .sv__overlay{height:100%;position:absolute;width:100%}#survicate-box .sv__overlay--dark,#sv-screenshot-controls .sv__overlay--dark{background-color:#000;opacity:.35}#survicate-box .sv__overlay--light,#sv-screenshot-controls .sv__overlay--light{background-color:#fff;opacity:.5}#survicate-box .sv__submit-screenshot-button-container,#sv-screenshot-controls .sv__submit-screenshot-button-container{border-top:1px solid;display:flex;margin:0 auto;width:calc(100% - 48px)}#survicate-box .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20,#sv-screenshot-controls .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20{margin-left:12px}#survicate-box .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__navigation-button--back,#survicate-box .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__submit-button,#sv-screenshot-controls .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__navigation-button--back,#sv-screenshot-controls .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__submit-button{width:96px}#survicate-box .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__navigation-button--back,#sv-screenshot-controls .sv__submit-screenshot-button-container .sv__submit-button__wrapper.sv--border-top-color-question-20 .sv__navigation-button.sv__navigation-button--back{margin-right:12px}#survicate-box .sv__screenshot-button-wrapper,#sv-screenshot-controls .sv__screenshot-button-wrapper{display:flex;margin:23px auto 0}#survicate-box .sv__screenshot-button-wrapper .sv__screenshot-button,#sv-screenshot-controls .sv__screenshot-button-wrapper .sv__screenshot-button{height:40px;padding:8px 10px}#survicate-box .sv__color-picker-input-wrapper,#survicate-box .sv__screenshot-button-wrapper,#survicate-box .sv__screenshot-button__close,#sv-screenshot-controls .sv__color-picker-input-wrapper,#sv-screenshot-controls .sv__screenshot-button-wrapper,#sv-screenshot-controls .sv__screenshot-button__close{width:40px}#survicate-box .sv__color-picker-input-wrapper,#survicate-box .sv__screenshot-button-wrapper,#survicate-box .sv__screenshot-button__close,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__color-picker-input-wrapper,#sv-screenshot-controls .sv__screenshot-button-wrapper,#sv-screenshot-controls .sv__screenshot-button__close,#sv-screenshot-controls .sv__screenshot-button__save{height:40px}#survicate-box .sv__screenshot-button-overlay,#survicate-box .sv__screenshot-button__action-buttons,#survicate-box .sv__screenshot-button__color-picker,#survicate-box .sv__screenshot-button__remove-wrapper,#sv-screenshot-controls .sv__screenshot-button-overlay,#sv-screenshot-controls .sv__screenshot-button__action-buttons,#sv-screenshot-controls .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__screenshot-button__remove-wrapper{position:fixed}#survicate-box .sv__screenshot-button__action-buttons,#sv-screenshot-controls .sv__screenshot-button__action-buttons{gap:5px;padding:unset;right:24px;top:24px}#survicate-box .sv__screenshot-button__action-buttons,#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__screenshot-button__action-buttons,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__save{display:inline-flex}#survicate-box .sv__screenshot-button__action-buttons,#survicate-box .sv__screenshot-button__remove-wrapper,#sv-screenshot-controls .sv__screenshot-button__action-buttons,#sv-screenshot-controls .sv__screenshot-button__remove-wrapper{padding-bottom:8px}#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__save{align-items:center;gap:10px;padding:5px 10px}#survicate-box .sv__screenshot-button-overlay,#sv-screenshot-controls .sv__screenshot-button-overlay{background:rgba(0,0,0,.2);cursor:crosshair;height:100vh;left:0;top:0;width:100vw}#survicate-box .sv__screenshot-button,#survicate-box .sv__screenshot-button__close,#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__screenshot-button,#sv-screenshot-controls .sv__screenshot-button__close,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__save{border:2px solid}#survicate-box .sv__screenshot-button,#survicate-box .sv__screenshot-button__close,#survicate-box .sv__screenshot-button__color-picker,#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__screenshot-button,#sv-screenshot-controls .sv__screenshot-button__close,#sv-screenshot-controls .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__save{cursor:pointer}#survicate-box .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__screenshot-button__color-picker{border:none;height:50px;left:24px;top:24px;width:50px}#survicate-box .sv__screenshot-button-overlay,#survicate-box .sv__screenshot-button-overlay__rectangle,#survicate-box .sv__screenshot-button-overlay__rectangles,#survicate-box .sv__screenshot-button__action-buttons,#survicate-box .sv__screenshot-button__color-picker,#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__remove-wrapper,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__screenshot-button-overlay,#sv-screenshot-controls .sv__screenshot-button-overlay__rectangle,#sv-screenshot-controls .sv__screenshot-button-overlay__rectangles,#sv-screenshot-controls .sv__screenshot-button__action-buttons,#sv-screenshot-controls .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__remove-wrapper,#sv-screenshot-controls .sv__screenshot-button__save{z-index:2147483647}#survicate-box .sv__color-picker-input-wrapper,#survicate-box .sv__screenshot-button__close,#survicate-box .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__color-picker-input-wrapper,#sv-screenshot-controls .sv__screenshot-button__close,#sv-screenshot-controls .sv__screenshot-button__color-picker{align-items:center;display:flex;justify-content:center}#survicate-box .sv__color-picker-input-wrapper,#survicate-box .sv__screenshot-button,#survicate-box .sv__screenshot-button__close,#survicate-box .sv__screenshot-button__color-picker,#survicate-box .sv__screenshot-button__remove,#survicate-box .sv__screenshot-button__save,#sv-screenshot-controls .sv__color-picker-input-wrapper,#sv-screenshot-controls .sv__screenshot-button,#sv-screenshot-controls .sv__screenshot-button__close,#sv-screenshot-controls .sv__screenshot-button__color-picker,#sv-screenshot-controls .sv__screenshot-button__remove,#sv-screenshot-controls .sv__screenshot-button__save{border-radius:5px}#survicate-box .sv__color-picker-input-wrapper,#sv-screenshot-controls .sv__color-picker-input-wrapper{position:relative}#survicate-box .sv__color-picker-input-wrapper .sv__color-picker-input,#sv-screenshot-controls .sv__color-picker-input-wrapper .sv__color-picker-input{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}#survicate-box .sv__point-image,#sv-screenshot-controls .sv__point-image{margin-bottom:24px}#survicate-box .sv__point-image.sv__image-position--bottom,#sv-screenshot-controls .sv__point-image.sv__image-position--bottom{margin-top:16px}#survicate-box .sv__survey--button_link .sv__branded-footer:before,#sv-screenshot-controls .sv__survey--button_link .sv__branded-footer:before{border-top-style:hidden}#survicate-box .sv__footer__wrapper.sv__branded-footer--with-border,#sv-screenshot-controls .sv__footer__wrapper.sv__branded-footer--with-border{background-color:#fff;border-bottom-left-radius:10px;border-bottom-right-radius:10px;padding:23px 0 24px;transform:translateY(16px);width:100%}#survicate-box .sv__footer__wrapper .sv__branded-footer,#sv-screenshot-controls .sv__footer__wrapper .sv__branded-footer{padding-bottom:8px;padding-top:8px;position:unset}#survicate-box .sv__footer__wrapper .sv__branded-footer .sv__survicate-wordmark,#sv-screenshot-controls .sv__footer__wrapper .sv__branded-footer .sv__survicate-wordmark{transform:translate(-8px)}#survicate-box .sv__footer__wrapper .sv__branded-footer .sv__arrow-forward,#sv-screenshot-controls .sv__footer__wrapper .sv__branded-footer .sv__arrow-forward{height:14px;transform:translate(-24px,1px)}#survicate-box .sv__position-mobile .sv__footer__wrapper.sv__branded-footer--with-border,#sv-screenshot-controls .sv__position-mobile .sv__footer__wrapper.sv__branded-footer--with-border{border-bottom-left-radius:0;border-bottom-right-radius:0}#survicate-box .sv__survey.sv__micro-theme,#sv-screenshot-controls .sv__survey.sv__micro-theme{border-radius:10px;box-shadow:0 0 10px 5px rgba(41,41,42,.07);display:flex;flex-direction:column;max-height:664px;max-width:304px;min-width:304px;overflow:hidden;padding:0 0 16px;position:fixed;width:unset;z-index:2147483646}#survicate-box .sv__survey.sv__micro-theme.sv__rtl-lang,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__rtl-lang{direction:rtl}#survicate-box .sv__survey.sv__micro-theme.sv__survey--hidden,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--hidden{display:none}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey{border-radius:10px;margin-left:0;margin-right:0;margin-top:0;top:50%;transform:translateY(-50%);z-index:2147483645}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right{right:24px}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right.sv__feedback-survey--minimized,#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right.sv__position-mobile.sv__feedback-survey--mobile.sv__feedback-survey--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right.sv__feedback-survey--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-right.sv__position-mobile.sv__feedback-survey--mobile.sv__feedback-survey--minimized{border-radius:0 0 10px 10px;margin-right:0;right:0;transform:translateY(50%) rotateY(0deg) rotate(90deg);transform-origin:right top}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left{left:24px}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left.sv__feedback-survey--minimized,#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left.sv__position-mobile.sv__feedback-survey--mobile.sv__feedback-survey--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left.sv__feedback-survey--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-center-left.sv__position-mobile.sv__feedback-survey--mobile.sv__feedback-survey--minimized{border-radius:0 0 10px 10px;left:0;margin-left:0;transform:translateY(-50%) rotate(270deg) translateX(-50%);transform-origin:left top}#survicate-box .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-mobile.sv__feedback-survey--mobile:not(.sv__feedback-survey--minimized),#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__feedback-survey.sv__position-mobile.sv__feedback-survey--mobile:not(.sv__feedback-survey--minimized){bottom:unset;left:24px;margin-left:0;margin-right:0;max-width:unset;min-width:unset;right:24px;width:calc(100% - 48px)}#survicate-box :host .sv__survey.sv__micro-theme,#sv-screenshot-controls :host .sv__survey.sv__micro-theme{position:absolute}#survicate-box .sv__survey.sv__micro-theme.sv__position-top-left,#survicate-box .sv__survey.sv__micro-theme.sv__position-top-right,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-top-left,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-top-right{top:0}#survicate-box .sv__survey.sv__micro-theme.sv__position-left,#survicate-box .sv__survey.sv__micro-theme.sv__position-right,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-left,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-right{bottom:0}#survicate-box .sv__survey.sv__micro-theme.sv__position-right,#survicate-box .sv__survey.sv__micro-theme.sv__position-top-right,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-right,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-top-right{right:30px}#survicate-box .sv__survey.sv__micro-theme.sv__position-left,#survicate-box .sv__survey.sv__micro-theme.sv__position-top-left,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-left,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-top-left{left:30px}#survicate-box .sv__survey.sv__micro-theme.sv__position-center,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-center{bottom:50%;max-width:608px;right:50%;transform:translate(50%,50%)}#survicate-box .sv__survey.sv__micro-theme.sv__position-fullscreen,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__position-fullscreen{height:100vh;justify-content:space-between}#survicate-box :host .sv__survey.sv__micro-theme.sv__position-fullscreen,#sv-screenshot-controls :host .sv__survey.sv__micro-theme.sv__position-fullscreen{height:100%}#survicate-box .sv__survey.sv__micro-theme:not(.sv__position-center),#sv-screenshot-controls .sv__survey.sv__micro-theme:not(.sv__position-center){margin:24px -6px}#survicate-box .sv__survey.sv__micro-theme.sv__minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized{align-items:center;display:inline-flex;flex-direction:row;justify-content:space-between;min-height:39px;overflow-wrap:break-word;padding:16px 24px}#survicate-box .sv__survey.sv__micro-theme.sv__minimized.sv__position-center,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized.sv__position-center{bottom:50%;right:50%;transform:translate(50%);width:auto}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__expand-area,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__expand-area{align-items:center;cursor:pointer;display:flex;flex:1;flex-direction:row;min-width:0}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions{align-items:center;display:flex;margin-left:12px}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized-symbol{align-items:center;border-radius:6px;display:flex;height:40px;justify-content:center;margin-left:0;width:40px}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized-symbol:focus,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized-symbol:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #6f27f6;outline:none}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions .sv__btn-close,#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions .sv__minimized-symbol+.sv__btn-close,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions .sv__btn-close,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__actions .sv__minimized-symbol+.sv__btn-close{margin-left:6px}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__text,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__minimized__text{width:75%}#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized,#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:active,#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:focus,#survicate-box .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:hover,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:active,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:focus,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized .sv__btn-close--minimized:hover{background:none;background-color:transparent;border:none;box-shadow:none}#survicate-box .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__btn-close--minimized,#survicate-box .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized .sv__btn-close,#survicate-box .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized__actions .sv__btn-close,#survicate-box .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized__actions .sv__minimized-symbol+.sv__btn-close,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__btn-close--minimized,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized .sv__btn-close,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized__actions .sv__btn-close,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__minimized.sv__rtl-lang .sv__minimized__actions .sv__minimized-symbol+.sv__btn-close{margin-left:unset;margin-right:6px}#survicate-box .sv__survey.sv__micro-theme.sv__survey--nps,#survicate-box .sv__survey.sv__micro-theme.sv__survey--numerical_scale,#survicate-box .sv__survey.sv__micro-theme.sv__survey--rating,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--nps,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--numerical_scale,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--rating{max-width:520px}#survicate-box .sv__survey.sv__micro-theme.sv__survey--matrix,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--matrix{max-width:unset}#survicate-box .sv__survey.sv__micro-theme.sv__survey--matrix .sv__matrix-wrapper,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--matrix .sv__matrix-wrapper{max-width:608px;min-width:336px}#survicate-box .sv__survey.sv__micro-theme.sv__survey--finished,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--finished{width:304px}#survicate-box .sv__survey.sv__micro-theme.sv__survey--finished.sv__survey--branded,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--finished.sv__survey--branded{background-color:#fff!important;color:#000!important}#survicate-box .sv__survey.sv__micro-theme.sv__survey--slide-out,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--slide-out{animation-duration:.3s;animation-fill-mode:forwards;animation-name:slide-out}#survicate-box .sv__survey.sv__micro-theme.sv__survey--slide-in,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--slide-in{animation-duration:.3s;animation-fill-mode:forwards;animation-name:slide-in;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}#survicate-box .sv__survey.sv__micro-theme.sv__survey--slide-down,#sv-screenshot-controls .sv__survey.sv__micro-theme.sv__survey--slide-down{animation-duration:.3s;animation-name:slide-down}#survicate-box .sv__micro-theme.sv__survey.sv__mobile-survey.sv__position-fullscreen .sv__point,#sv-screenshot-controls .sv__micro-theme.sv__survey.sv__mobile-survey.sv__position-fullscreen .sv__point{margin:auto 0}#survicate-box .sv__micro-theme .sv__point,#sv-screenshot-controls .sv__micro-theme .sv__point{max-height:none;overflow-y:auto;padding:0}#survicate-box .sv__micro-theme .sv__point::-webkit-scrollbar,#sv-screenshot-controls .sv__micro-theme .sv__point::-webkit-scrollbar{background-color:transparent;width:4px}#survicate-box .sv__micro-theme .sv__point::-webkit-scrollbar-thumb,#sv-screenshot-controls .sv__micro-theme .sv__point::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border-radius:4px}#survicate-box .sv__micro-theme .sv__point-wrapper,#sv-screenshot-controls .sv__micro-theme .sv__point-wrapper{box-sizing:content-box;overflow:hidden;padding-bottom:0;padding-left:24px;padding-right:24px}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper{display:flex;flex-direction:column}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper--image-bottom,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper--image-bottom{flex-direction:column-reverse}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text{hyphens:auto;margin:0 0 8px;overflow-wrap:anywhere;text-align:left}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-description,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-description{font-size:12px;line-height:19px;margin:4px 0}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-question,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-question{font-size:14px;font-weight:600;line-height:22px;margin-bottom:16px}#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-description a,#survicate-box .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-question a,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-description a,#sv-screenshot-controls .sv__micro-theme .sv__point .sv__point-texts-wrapper .sv__point-text.sv__point-question a{font-size:inherit;font-weight:inherit;text-decoration:underline}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__point .sv__point-wrapper .sv__point-text,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__point .sv__point-wrapper .sv__point-text{margin-right:4px;text-align:right}#survicate-box .sv__micro-theme .sv__contact-form,#sv-screenshot-controls .sv__micro-theme .sv__contact-form{display:flex;flex-direction:column}#survicate-box .sv__micro-theme .sv__contact-form-field,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field{border-radius:6px;margin-bottom:8px;margin-top:0;position:relative;width:100%}#survicate-box .sv__micro-theme .sv__contact-form-field:last-child,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field:last-child{margin-bottom:16px}#survicate-box .sv__micro-theme .sv__contact-form-field .sv__input,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field .sv__input{border:2px solid transparent;border-radius:4px;box-sizing:border-box;height:40px;outline-offset:3px;padding:0 16px;transition:none;width:100%}#survicate-box .sv__micro-theme .sv__contact-form-field .sv__input:focus,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field .sv__input:focus{border-style:solid;border-width:2px}#survicate-box .sv__micro-theme .sv__contact-form-field-label,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field-label{display:block;font-size:14px;font-weight:600;margin-bottom:8px;opacity:1;overflow-wrap:break-word;position:static;transition:opacity .5s}#survicate-box .sv__micro-theme .sv__contact-form-field .checkbox-label,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-field .checkbox-label{margin-left:0;margin-right:0}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation,#survicate-box .sv__micro-theme .sv__contact-form-security,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security{align-items:center;display:flex;margin-top:16px;min-height:40px;padding:8px 16px}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__checkbox,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__checkbox{margin-right:16px}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox.sv__square.sv-invalid.sv-nested-bg-bw,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__checkbox.sv__square.sv-invalid.sv-nested-bg-bw,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox.sv__square.sv-invalid.sv-nested-bg-bw,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__checkbox.sv__square.sv-invalid.sv-nested-bg-bw{border-style:solid;border-width:2px}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox.sv__square svg,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__checkbox.sv__square svg,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__checkbox.sv__square svg,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__checkbox.sv__square svg{position:relative}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__lock-icon,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__lock-icon,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__lock-icon,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__lock-icon{margin-right:8px;padding-left:2px}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__lock-icon svg,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__lock-icon svg,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__lock-icon svg,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__lock-icon svg{height:20px;margin-right:8px}#survicate-box .sv__micro-theme .sv__contact-form .sv__confirmation .sv__validation,#survicate-box .sv__micro-theme .sv__contact-form-security .sv__validation,#sv-screenshot-controls .sv__micro-theme .sv__contact-form .sv__confirmation .sv__validation,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security .sv__validation{bottom:unset;top:-27px}#survicate-box .sv__micro-theme .sv__contact-form-security,#sv-screenshot-controls .sv__micro-theme .sv__contact-form-security{font-size:12px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__contact-form-security .sv__lock-icon,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__contact-form-security .sv__lock-icon{margin-left:8px;margin-right:0;padding-left:0;padding-right:2px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__contact-form-security .sv__lock-icon svg,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__contact-form-security .sv__lock-icon svg{margin-left:8px;margin-right:0}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__confirmation .sv__checkbox,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__contact-form .sv__confirmation .sv__checkbox{margin-right:0}#survicate-box .sv__micro-theme .sv__choice-button,#sv-screenshot-controls .sv__micro-theme .sv__choice-button{align-items:center;border:2px solid transparent;border-radius:6px;cursor:pointer;display:flex;font-weight:400;margin:0;min-height:40px;padding:10px;text-align:left;transition:background-color .3s;width:100%}#survicate-box .sv__micro-theme .sv__choice-button-wrapper,#sv-screenshot-controls .sv__micro-theme .sv__choice-button-wrapper{margin-bottom:8px}#survicate-box .sv__micro-theme .sv__choice-button-wrapper:last-child,#sv-screenshot-controls .sv__micro-theme .sv__choice-button-wrapper:last-child{margin-bottom:16px}#survicate-box .sv__micro-theme .sv__choice-button-question,#sv-screenshot-controls .sv__micro-theme .sv__choice-button-question{align-items:center;display:flex;overflow-x:initial;width:100%}#survicate-box .sv__micro-theme .sv__choice-button-question .sv-bg-bv,#sv-screenshot-controls .sv__micro-theme .sv__choice-button-question .sv-bg-bv{width:auto}#survicate-box .sv__micro-theme .sv__choice-button-question .sv-color-fa,#sv-screenshot-controls .sv__micro-theme .sv__choice-button-question .sv-color-fa{overflow-x:inherit;width:100%}#survicate-box .sv__micro-theme .sv__choice-button>div:last-child,#sv-screenshot-controls .sv__micro-theme .sv__choice-button>div:last-child{width:auto}#survicate-box .sv__micro-theme .sv__choice-button.sv__choice-button--selected--expanded,#sv-screenshot-controls .sv__micro-theme .sv__choice-button.sv__choice-button--selected--expanded{align-items:baseline}#survicate-box .sv__micro-theme .sv__choice-button.sv__choice-button--selected--expanded>div:last-child,#sv-screenshot-controls .sv__micro-theme .sv__choice-button.sv__choice-button--selected--expanded>div:last-child{width:100%}#survicate-box .sv__micro-theme .sv__choice-button.sv__choice-button--selected .sv-color-fa,#sv-screenshot-controls .sv__micro-theme .sv__choice-button.sv__choice-button--selected .sv-color-fa{font-weight:600}#survicate-box .sv__micro-theme .sv__choice-button:active .sv__circle,#sv-screenshot-controls .sv__micro-theme .sv__choice-button:active .sv__circle{background-color:transparent;border-style:solid;border-width:2px}#survicate-box .sv__micro-theme .sv__choice-button--selected--expanded,#sv-screenshot-controls .sv__micro-theme .sv__choice-button--selected--expanded{flex-direction:column}#survicate-box .sv__micro-theme .sv__choice-button--selected .sv__circle,#survicate-box .sv__micro-theme .sv__choice-button:active .sv__circle,#sv-screenshot-controls .sv__micro-theme .sv__choice-button--selected .sv__circle,#sv-screenshot-controls .sv__micro-theme .sv__choice-button:active .sv__circle{background-clip:content-box;padding:2px}#survicate-box .sv__micro-theme .sv__choice-button .sv__textarea-wrapper,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__textarea-wrapper{margin-top:16px}#survicate-box .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__answer-hint,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__answer-hint{font-size:12px}#survicate-box .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__textarea,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__textarea{border:2px solid transparent;border-radius:4px;margin-top:0;max-height:72px;min-height:64px;padding:8px;resize:none;width:100%}#survicate-box .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__textarea:active,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__textarea-wrapper .sv__textarea:active{border-width:2px}#survicate-box .sv__micro-theme .sv__choice-button .sv__checkbox,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__checkbox{flex:1 0 auto}#survicate-box .sv__micro-theme .sv__choice-button .sv__circle,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__circle{padding:3px;top:0}#survicate-box .sv__micro-theme .sv__choice-button .sv__answer-text,#sv-screenshot-controls .sv__micro-theme .sv__choice-button .sv__answer-text{overflow-wrap:anywhere;word-break:break-word}#survicate-box .sv__micro-theme.sv__mobile-survey .sv__circle:hover,#survicate-box .sv__micro-theme.sv__mobile-survey .sv__circle:hover:after,#survicate-box .sv__micro-theme.sv__mobile-survey .sv__square:hover,#survicate-box .sv__micro-theme.sv__mobile-survey .sv__square:hover:after,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__circle:hover,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__circle:hover:after,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__square:hover,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__square:hover:after{box-shadow:none!important}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__choice-button-wrapper .sv__choice-button,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__choice-button-wrapper .sv__choice-button{text-align:right}#survicate-box .sv__micro-theme .sv__customer-satisfaction .sv__buttons--vertical,#sv-screenshot-controls .sv__micro-theme .sv__customer-satisfaction .sv__buttons--vertical{margin-bottom:0}#survicate-box .sv__micro-theme .sv__date,#sv-screenshot-controls .sv__micro-theme .sv__date{box-sizing:border-box;display:block;height:40px;margin-bottom:16px;margin-top:0;padding:8px 10px 8px 8px;text-align:left}#survicate-box .sv__micro-theme .sv__date__input,#survicate-box .sv__micro-theme .sv__date__separator,#sv-screenshot-controls .sv__micro-theme .sv__date__input,#sv-screenshot-controls .sv__micro-theme .sv__date__separator{display:inline-block}#survicate-box .sv__micro-theme .sv__date__input,#sv-screenshot-controls .sv__micro-theme .sv__date__input{background:none;padding:0;text-align:center;width:30%}#survicate-box .sv__micro-theme .sv__date__separator,#sv-screenshot-controls .sv__micro-theme .sv__date__separator{padding:0}#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker{box-shadow:none;font-size:14px;margin:0 auto;padding:0;width:100%;width:max-content}#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker--selected,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker--selected{border:none;border-radius:6px;transform:translateY(-60%);width:100%}#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper{display:flex}#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper:after,#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper:before,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper:after,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__wrapper:before{background:inherit}#survicate-box .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__option,#sv-screenshot-controls .sv__micro-theme .sv__date__wrapper .sv__mobile-datepicker .sv__roller__option{font-size:14px}#survicate-box .sv__micro-theme .sv__date.sv__invalid,#survicate-box .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10{background-color:#ffedea!important;position:relative}#survicate-box .sv__micro-theme .sv__date.sv__invalid .sv__date__input,#survicate-box .sv__micro-theme .sv__date.sv__invalid .sv__date__input::placeholder,#survicate-box .sv__micro-theme .sv__date.sv__invalid .sv__date__separator,#survicate-box .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__input,#survicate-box .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__input::placeholder,#survicate-box .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__separator,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid .sv__date__input,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid .sv__date__input::placeholder,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid .sv__date__separator,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__input,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__input::placeholder,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10 .sv__date__separator{color:#e33a22!important}#survicate-box .sv__micro-theme .sv__date.sv__invalid.focused,#survicate-box .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10.focused,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.focused,#sv-screenshot-controls .sv__micro-theme .sv__date.sv__invalid.sv--background-answer-opacity-10.focused{border-color:#e33a22!important}#survicate-box .sv__micro-theme .sv__date .sv__validation,#sv-screenshot-controls .sv__micro-theme .sv__date .sv__validation{bottom:38px;display:flex;padding:5px 6px;right:0}#survicate-box .sv__micro-theme .sv__point-texts--empty+.sv__date,#sv-screenshot-controls .sv__micro-theme .sv__point-texts--empty+.sv__date{margin-top:26px}#survicate-box .sv__micro-theme.sv__outline .sv--background-answer-opacity-10.sv__date.focused,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv--background-answer-opacity-10.sv__date.focused{border-color:#6f27f6!important}#survicate-box .sv__micro-theme.sv__outline .sv--background-answer-opacity-10.sv__date.focused .sv__date__input,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv--background-answer-opacity-10.sv__date.focused .sv__date__input{outline:none}#survicate-box .sv__micro-theme .sv__dropdown__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper{margin-left:0;margin-right:0;margin-top:0}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid .sv__input,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid .sv__input{background-color:#ffedea!important;color:#e33a22!important}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid .sv__input:focus,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid .sv__input:focus{border-color:#e33a22!important}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid svg g g polygon,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv-invalid.sv__select.sv-invalid svg g g polygon{fill:#e33a22!important}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select{display:flex;flex-direction:column-reverse}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select-list,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select-list{margin-bottom:10px;margin-top:0;position:static}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select-icon,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select-icon{top:4px}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select-icon.sv__caret,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select-icon.sv__caret{border:0}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select .sv__clear-input-icon,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select .sv__clear-input-icon{right:0;top:2px}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select input,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select input{border:2px solid transparent;font-size:14px;height:50px;padding:16px}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__select .sv__validation,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__select .sv__validation{bottom:50px;top:auto}#survicate-box .sv__micro-theme .sv__dropdown__wrapper .sv__submit-button__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__dropdown__wrapper .sv__submit-button__wrapper{bottom:auto}#survicate-box .sv__micro-theme .sv__outline .sv__select-list .sv__select-button.sv__select-button--focused,#sv-screenshot-controls .sv__micro-theme .sv__outline .sv__select-list .sv__select-button.sv__select-button--focused{outline:2px solid #6f27f6;outline-offset:-4px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__dropdown__wrapper .sv__select .sv__caret,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__dropdown__wrapper .sv__select .sv__caret{left:20px;right:unset}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__dropdown__wrapper .sv__select .sv__clear-input-icon,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__dropdown__wrapper .sv__select .sv__clear-input-icon{right:0}#survicate-box .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__wrapper{display:flex;flex-direction:column}#survicate-box .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__buttons,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__buttons{flex-direction:column-reverse}#survicate-box .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__button,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale--mobile .sv__numerical-scale__button{margin:0 0 10px;width:100%}#survicate-box .sv__micro-theme .sv__numerical-scale .sv__point-text,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale .sv__point-text{min-width:100%;width:min-content}#survicate-box .sv__micro-theme .sv__numerical-scale__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale__wrapper{display:flex;flex-direction:column}#survicate-box .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons{display:flex;justify-content:center;margin-left:0;margin-right:0;width:100%}#survicate-box .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button{align-items:center;border-radius:6px;cursor:pointer;display:flex;justify-content:center;padding:initial;text-align:center}#survicate-box .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button:first-child,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button:first-child{margin-left:0}#survicate-box .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button:last-child,#sv-screenshot-controls .sv__micro-theme .sv__numerical-scale__wrapper .sv__buttons .sv__button:last-child{margin-right:0}#survicate-box .sv__micro-theme .sv__rating .sv__point-text,#survicate-box .sv__micro-theme .sv__rating-survey-point .sv__point-wrapper--with-personalization .sv__micro-top-bar__row,#survicate-box .sv__micro-theme .sv__rating__micro-top-bar.sv__micro-top-bar--with-personalization .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__point-text,#sv-screenshot-controls .sv__micro-theme .sv__rating-survey-point .sv__point-wrapper--with-personalization .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__rating__micro-top-bar.sv__micro-top-bar--with-personalization .sv__micro-top-bar__row{min-width:100%;width:min-content}#survicate-box .sv__micro-theme .sv__rating__number,#sv-screenshot-controls .sv__micro-theme .sv__rating__number{font-weight:400}#survicate-box .sv__micro-theme .sv__rating .sv__buttons,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons{justify-content:center;margin-bottom:16px}#survicate-box .sv__micro-theme .sv__rating .sv__buttons .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons .sv__button{align-items:center;display:flex;flex-direction:column;height:unset;justify-content:center;min-height:unset;min-width:unset}#survicate-box .sv__micro-theme .sv__rating .sv__buttons .sv__button:hover,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons .sv__button:hover{background-color:transparent}#survicate-box .sv__micro-theme .sv__rating .sv__buttons .sv__button--selected,#survicate-box .sv__micro-theme .sv__rating .sv__buttons .sv__button:active,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons .sv__button--selected,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons .sv__button:active{border-width:0}#survicate-box .sv__micro-theme .sv__rating .sv__buttons .sv__button svg,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons .sv__button svg{height:32px;margin-bottom:8px;width:32px}#survicate-box .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons{flex-direction:column-reverse}#survicate-box .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button{flex-direction:row;height:40px;margin:0 0 8px}#survicate-box .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button:active,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button:active{border-width:2px}#survicate-box .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button svg,#sv-screenshot-controls .sv__micro-theme .sv__rating .sv__buttons--vertical.sv__buttons .sv__button svg{height:20px;margin-bottom:0;width:20px}#survicate-box .sv__micro-theme.sv__outline .sv__rating .sv__rating__buttons .sv__button--selected,#survicate-box .sv__micro-theme.sv__outline .sv__rating .sv__rating__buttons .sv__button:focus,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__rating .sv__rating__buttons .sv__button--selected,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__rating .sv__rating__buttons .sv__button:focus{outline:none}#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__buttons,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__buttons{display:flex;justify-content:space-between;margin-bottom:32px;padding-left:3px;padding-right:3px}#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__wrapper{width:100%}#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__button,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__button{margin:0}#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__button,#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__icon-container,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__button,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale__icon-container{height:38px;min-height:38px;min-width:38px;width:38px}#survicate-box .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale.sv__three-smileys .sv__smiley-scale__buttons,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale-survey-point .sv__smiley-scale.sv__three-smileys .sv__smiley-scale__buttons{justify-content:center}#survicate-box .sv__micro-theme .sv__smiley_scale .sv__point-texts .sv__point-question,#sv-screenshot-controls .sv__micro-theme .sv__smiley_scale .sv__point-texts .sv__point-question{margin-bottom:32px}#survicate-box .sv__micro-theme.sv__mobile-survey .sv__smiley-scale__button:hover,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__smiley-scale__button:hover{transform:none}#survicate-box .sv__micro-theme .sv__point-texts--empty+.sv__smiley-scale__buttons,#sv-screenshot-controls .sv__micro-theme .sv__point-texts--empty+.sv__smiley-scale__buttons{margin-top:16px}#survicate-box .sv__micro-theme.sv__outline .sv__smiley-scale__button:focus,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__smiley-scale__button:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #6f27f6;outline:none;transform:scale(1.2)}#survicate-box .sv__micro-theme .sv-box-child.sv-mobile .sv__smiley-scale__button,#survicate-box .sv__micro-theme .sv-box-child.sv-mobile .sv__smiley-scale__icon-container,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-mobile .sv__smiley-scale__button,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-mobile .sv__smiley-scale__icon-container{height:48px;width:48px}@media only screen and (max-device-width:812px)and (-webkit-min-device-pixel-ratio:3)and (orientation:landscape),only screen and (max-width:767px){#survicate-box .sv__micro-theme .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__smiley-scale__button,#survicate-box .sv__micro-theme .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__smiley-scale__icon-container,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__smiley-scale__button,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__smiley-scale__icon-container{height:48px;width:48px}}#survicate-box .sv__micro-theme .sv__text-container,#sv-screenshot-controls .sv__micro-theme .sv__text-container{position:relative}#survicate-box .sv__micro-theme .sv__text-question .sv__text-input-stats,#sv-screenshot-controls .sv__micro-theme .sv__text-question .sv__text-input-stats{margin-bottom:16px}#survicate-box .sv__micro-theme .sv__text-question .sv__textarea,#sv-screenshot-controls .sv__micro-theme .sv__text-question .sv__textarea{border:2px solid transparent;border-radius:6px;font-size:14px;margin-bottom:16px;max-height:200px;min-height:80px;padding:8px;resize:none;width:100%}#survicate-box .sv__micro-theme .sv__text-question .sv__textarea:focus,#sv-screenshot-controls .sv__micro-theme .sv__text-question .sv__textarea:focus{border:2px solid}#survicate-box .sv__micro-theme .sv__text-question .sv__follow-up,#sv-screenshot-controls .sv__micro-theme .sv__text-question .sv__follow-up{border-top:1px solid}#survicate-box .sv__micro-theme .sv__text-question .sv__follow-up .sv__point-text,#sv-screenshot-controls .sv__micro-theme .sv__text-question .sv__follow-up .sv__point-text{margin-top:16px}#survicate-box .sv__micro-theme .sv__matrix-row,#sv-screenshot-controls .sv__micro-theme .sv__matrix-row{gap:8px}@media only screen and (min-width:768px)and (max-width:1181px)and (orientation:portrait){#survicate-box .sv__micro-theme.sv__survey.sv__survey--matrix .sv__matrix-wrapper,#sv-screenshot-controls .sv__micro-theme.sv__survey.sv__survey--matrix .sv__matrix-wrapper{max-width:unset}}#survicate-box .sv__micro-theme .sv__social-button,#sv-screenshot-controls .sv__micro-theme .sv__social-button{border-radius:4px;color:#fff;display:block;font-weight:600;margin-bottom:10px;padding:10px;position:relative;text-align:center;transition:background-color .3s}#survicate-box .sv__micro-theme .sv__social-button.sv__facebook,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__facebook{background-color:#3579ea;border-bottom:1px solid #11192b}#survicate-box .sv__micro-theme .sv__social-button.sv__facebook:hover,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__facebook:hover{background-color:#165ed6}#survicate-box .sv__micro-theme .sv__social-button.sv__twitter,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__twitter{background-color:#000}#survicate-box .sv__micro-theme .sv__social-button.sv__twitter:hover,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__twitter:hover{background-color:#1a1a1a}#survicate-box .sv__micro-theme .sv__social-button.sv__twitter svg,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__twitter svg{left:17px;top:12px}#survicate-box .sv__micro-theme .sv__social-button.sv__linkedin,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__linkedin{background-color:#2a66bc;border-bottom:1px solid #0f5f9b}#survicate-box .sv__micro-theme .sv__social-button.sv__linkedin:hover,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__linkedin:hover{background-color:#4480d5}#survicate-box .sv__micro-theme .sv__social-button.sv__linkedin svg,#sv-screenshot-controls .sv__micro-theme .sv__social-button.sv__linkedin svg{left:17px}#survicate-box .sv__micro-theme .sv__social-button svg,#sv-screenshot-controls .sv__micro-theme .sv__social-button svg{fill:#fff;left:20px;position:absolute}#survicate-box .sv__micro-theme .sv__nps--horizontal .sv__buttons,#sv-screenshot-controls .sv__micro-theme .sv__nps--horizontal .sv__buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}#survicate-box .sv__micro-theme .sv__nps .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__nps .sv__button{border-radius:4px;min-height:40px;min-width:39px;padding:initial;text-align:center}#survicate-box .sv__micro-theme .sv__footer,#sv-screenshot-controls .sv__micro-theme .sv__footer{font-size:600px;justify-content:center}#survicate-box .sv__micro-theme .sv__footer__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__footer__wrapper{align-items:center;display:flex;justify-content:center;margin-top:0}#survicate-box .sv__micro-theme .sv__footer__button,#sv-screenshot-controls .sv__micro-theme .sv__footer__button{align-items:center;display:flex;padding:8px}#survicate-box .sv__micro-theme .sv__footer__button svg,#sv-screenshot-controls .sv__micro-theme .sv__footer__button svg{height:10px;margin-top:-2px;width:68px}#survicate-box .sv__micro-theme .sv__footer__small-text,#sv-screenshot-controls .sv__micro-theme .sv__footer__small-text{font-family:Open sans,sans-serif!important;font-size:12px;margin-right:4px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__footer__wrapper,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__footer__wrapper{direction:ltr}#survicate-box .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus{outline:none}#survicate-box .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus .sv__footer__small-text,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus .sv__footer__small-text{font-family:Open sans,sans-serif!important}#survicate-box .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus svg path,#sv-screenshot-controls .sv__micro-theme.sv__outline .sv__footer__wrapper .sv__footer .sv__footer__button:focus svg path{fill:#6f27f6!important}#survicate-box .sv__language-selector__list,#sv-screenshot-controls .sv__language-selector__list{box-shadow:0 0 10px 5px rgba(41,41,42,.07);max-height:160px}#survicate-box .sv__micro-theme .sv__micro-top-bar,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar{margin-left:24px;margin-right:24px;margin-top:24px}#survicate-box .sv__micro-theme .sv__micro-top-bar--with-personalization.sv__micro-top-bar--with-logo .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--with-personalization.sv__micro-top-bar--with-logo .sv__micro-top-bar__row{align-items:center}#survicate-box .sv__micro-theme .sv__micro-top-bar--with-personalization .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--with-personalization .sv__micro-top-bar__row{align-items:flex-start}#survicate-box .sv__micro-theme .sv__micro-top-bar__personalization,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__personalization{align-items:center;display:flex;margin-top:12px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row{align-items:center;display:flex;justify-content:space-between;position:relative;top:-10px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__logo,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__logo{margin-right:8px;max-height:24px;max-width:60%}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__avatar,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__avatar{border-radius:100%;border-style:none;height:24px;max-width:unset;object-fit:cover;object-position:center;width:24px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__short-text,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__short-text{line-height:1.3;margin-right:8px;word-break:break-word}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__actions,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__micro-top-bar__actions{align-items:center;display:flex;justify-content:flex-end}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons{color:#b3b3b3;display:flex;justify-content:flex-end}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv-color-small-button-bw,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv-color-small-button-bw{background:none;border:none;color:inherit;display:inline-block;font-family:Open sans,sans-serif;font-weight:600;padding:6px;transition:color .3s}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv-color-small-button-bw:focus,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv-color-small-button-bw:focus{border-radius:10px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-close,#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-close,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize{height:40px;padding:0;width:40px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-close,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-close{margin-right:-12px}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize svg rect:first-child,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize svg rect:first-child{fill:transparent}#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize:active svg g,#survicate-box .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize:hover svg g,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize:active svg g,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar__row .sv__bar-buttons .sv__btn-minimize:hover svg g{opacity:1}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat{align-items:flex-end;display:flex;flex-direction:row-reverse}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat .sv__micro-top-bar__row{flex-direction:row-reverse;justify-content:space-between}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat .sv__progress-bar__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat .sv__progress-bar__wrapper{width:100%}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat .sv__progress-bar__wrapper .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat .sv__progress-bar__wrapper .sv__progress-bar{top:2px}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat .sv__micro-top-bar__actions,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat .sv__micro-top-bar__actions{margin-left:16px;margin-right:unset}#survicate-box .sv__micro-theme .sv__micro-top-bar--flat .sv__bar-buttons,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar--flat .sv__bar-buttons{margin-left:unset;margin-right:unset}#survicate-box .sv__micro-theme .sv__micro-top-bar .sv__bar-buttons svg,#sv-screenshot-controls .sv__micro-theme .sv__micro-top-bar .sv__bar-buttons svg{height:40px;width:40px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__micro-top-bar__actions,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__micro-top-bar__actions{margin-left:unset;margin-right:16px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__bar-buttons,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__bar-buttons{margin-left:unset;margin-right:unset}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__bar-buttons .sv__btn-close,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__micro-top-bar .sv__bar-buttons .sv__btn-close{margin-left:-12px;margin-right:unset}#survicate-box .sv__micro-theme.sv__mobile-survey .sv__btn-close:hover svg g g,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__btn-close:hover svg g g{fill:inherit!important}#survicate-box .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded,#sv-screenshot-controls .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded{margin-bottom:24px}#survicate-box .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded .sv__micro-top-bar__row,#sv-screenshot-controls .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded .sv__micro-top-bar__row{flex-direction:row;justify-content:space-between;width:100%}#survicate-box .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded .sv__micro-top-bar__row .sv__survicate__logo,#sv-screenshot-controls .sv__micro-theme.sv__survey--finished .sv__micro-top-bar--branded .sv__micro-top-bar__row .sv__survicate__logo{max-width:106px}#survicate-box .sv__micro-theme .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv__progress-bar{border-radius:4px;height:4px;position:relative;top:0}#survicate-box .sv__micro-theme .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv__progress-bar>div{border-radius:4px}#survicate-box .sv__micro-theme .sv__progress-bar__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__progress-bar__wrapper{height:28px}@media only screen and (min-width:768px)and (-webkit-max-device-pixel-ratio:2),only screen and (min-width:813px){#survicate-box .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-left .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-left .sv__progress-bar>div,#survicate-box .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-right .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-right .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-left .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-left .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-right .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child:not(.sv-mobile) .sv__position-top-right .sv__progress-bar>div{border-radius:0}}#survicate-box .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-left .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-left .sv__progress-bar>div,#survicate-box .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-right .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-right .sv__progress-bar>div,#survicate-box .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-left .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-left .sv__progress-bar>div,#survicate-box .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-right .sv__progress-bar,#survicate-box .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-right .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-left .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-left .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-right .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-desktop .sv__position-top-right .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-left .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-left .sv__progress-bar>div,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-right .sv__progress-bar,#sv-screenshot-controls .sv__micro-theme .sv-box-child.sv-tablet .sv__position-top-right .sv__progress-bar>div{border-radius:0}#survicate-box .sv__micro-theme.sv__survey--branded .sv__finish-view,#sv-screenshot-controls .sv__micro-theme.sv__survey--branded .sv__finish-view{overflow-x:hidden;overflow-y:auto}#survicate-box .sv__micro-theme.sv__survey--branded .sv__finish-view *,#sv-screenshot-controls .sv__micro-theme.sv__survey--branded .sv__finish-view *{font-family:Open sans,sans-serif!important}#survicate-box .sv__micro-theme .sv__branded-finish-view--content,#survicate-box .sv__micro-theme .sv__finish-view,#sv-screenshot-controls .sv__micro-theme .sv__branded-finish-view--content,#sv-screenshot-controls .sv__micro-theme .sv__finish-view{display:flex;flex-direction:column}#survicate-box .sv__micro-theme .sv__finish-view,#sv-screenshot-controls .sv__micro-theme .sv__finish-view{margin-left:24px;margin-right:24px}#survicate-box .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content{margin-right:-18px;overflow-y:auto;padding-right:14px}#survicate-box .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content::-webkit-scrollbar,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content::-webkit-scrollbar{background-color:transparent;width:4px}#survicate-box .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content::-webkit-scrollbar-thumb,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__branded-finish-view--content::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.15)!important;border-radius:4px}#survicate-box .sv__micro-theme .sv__finish-view .sv__introduction,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__introduction{margin-bottom:24px}#survicate-box .sv__micro-theme .sv__finish-view .sv__paragraph__item,#survicate-box .sv__micro-theme .sv__finish-view .sv__thank-you-message,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__paragraph__item,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__thank-you-message{font-weight:600}#survicate-box .sv__micro-theme .sv__finish-view .sv__thank-you-message,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__thank-you-message{align-items:flex-end;display:flex;margin-bottom:8px}#survicate-box .sv__micro-theme .sv__finish-view .sv__paragraph__container,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__paragraph__container{margin-bottom:32px}#survicate-box .sv__micro-theme .sv__finish-view .sv__paragraph__item,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__paragraph__item{margin-bottom:16px}#survicate-box .sv__micro-theme .sv__finish-view .sv__finish-logo,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__finish-logo{margin-bottom:48px;margin-left:auto;margin-right:auto;width:168px}#survicate-box .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper{border-top:1px solid #c2cbcb;padding-bottom:8px;padding-top:24px}#survicate-box .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper .sv__simple-link-button,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper .sv__simple-link-button{align-items:center;background-color:#6f27f6;border-radius:6px;color:#fff;display:flex;font-size:16px;font-weight:600;height:56px;justify-content:center;width:100%}#survicate-box .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper .sv__simple-link-button:hover,#sv-screenshot-controls .sv__micro-theme .sv__finish-view .sv__simple-link-button__wrapper .sv__simple-link-button:hover{background-color:#390993}@media(max-width:1181px){#survicate-box .sv__micro-theme .sv-box-child .sv__finish-view,#sv-screenshot-controls .sv__micro-theme .sv-box-child .sv__finish-view{width:300px}}#survicate-box .sv__micro-theme .sv__buttons,#sv-screenshot-controls .sv__micro-theme .sv__buttons{margin-bottom:16px}#survicate-box .sv__micro-theme .sv__buttons--vertical.sv__buttons .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__buttons--vertical.sv__buttons .sv__button{align-items:center;display:flex;height:auto;justify-content:center;min-height:40px;padding:8px;width:100%}#survicate-box .sv__micro-theme .sv__buttons--vertical.sv__buttons .sv__button svg,#sv-screenshot-controls .sv__micro-theme .sv__buttons--vertical.sv__buttons .sv__button svg{margin-bottom:0;margin-right:10px;width:20px}#survicate-box .sv__micro-theme .sv__buttons .sv__button,#sv-screenshot-controls .sv__micro-theme .sv__buttons .sv__button{font-size:14px;height:40px;margin-right:4px;width:40px}#survicate-box .sv__micro-theme .sv__buttons .sv__button:last-child,#sv-screenshot-controls .sv__micro-theme .sv__buttons .sv__button:last-child{margin-right:0}#survicate-box .sv__micro-theme .sv__buttons .sv__button--selected,#survicate-box .sv__micro-theme .sv__buttons .sv__button:active,#sv-screenshot-controls .sv__micro-theme .sv__buttons .sv__button--selected,#sv-screenshot-controls .sv__micro-theme .sv__buttons .sv__button:active{border:2px solid;border-color:unset}#survicate-box .sv__micro-theme .sv__social-button,#sv-screenshot-controls .sv__micro-theme .sv__social-button{border-radius:6px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__buttons .sv__button:last-child,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__buttons .sv__button:last-child{margin-right:4px}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__buttons .sv__button:first-child,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__buttons .sv__button:first-child{margin-right:0}#survicate-box .sv__micro-theme .sv__checkbox,#sv-screenshot-controls .sv__micro-theme .sv__checkbox{background:transparent;height:20px;width:20px}#survicate-box .sv__micro-theme .sv__checkbox .checkbox-label:before,#survicate-box .sv__micro-theme .sv__checkbox input[type=checkbox]+.checkbox-label:before,#survicate-box .sv__micro-theme .sv__checkbox input[type=radio]+.checkbox-label:before,#sv-screenshot-controls .sv__micro-theme .sv__checkbox .checkbox-label:before,#sv-screenshot-controls .sv__micro-theme .sv__checkbox input[type=checkbox]+.checkbox-label:before,#sv-screenshot-controls .sv__micro-theme .sv__checkbox input[type=radio]+.checkbox-label:before{content:none!important}#survicate-box .sv__micro-theme .sv__checkbox.sv__square,#sv-screenshot-controls .sv__micro-theme .sv__checkbox.sv__square{border-radius:4px}#survicate-box .sv__micro-theme .sv__checkbox.sv__square svg,#sv-screenshot-controls .sv__micro-theme .sv__checkbox.sv__square svg{border-radius:0;transform:scale(1.2)}#survicate-box .sv__micro-theme .sv__checkbox.sv__square:after,#sv-screenshot-controls .sv__micro-theme .sv__checkbox.sv__square:after{height:20px;left:-2px;min-width:20px;top:-2px;width:20px}#survicate-box .sv__micro-theme .sv__checkbox .checkbox-label,#sv-screenshot-controls .sv__micro-theme .sv__checkbox .checkbox-label{display:block}#survicate-box .sv__micro-theme .sv__checkbox .checkbox-label:after,#sv-screenshot-controls .sv__micro-theme .sv__checkbox .checkbox-label:after{min-width:24px}#survicate-box .sv__micro-theme .sv__circle,#sv-screenshot-controls .sv__micro-theme .sv__circle{border-style:solid;border-width:2px;top:2px}#survicate-box .sv__micro-theme .sv__circle:active,#sv-screenshot-controls .sv__micro-theme .sv__circle:active{background-clip:content-box;padding:2px}#survicate-box .sv__micro-theme .sv__labels,#sv-screenshot-controls .sv__micro-theme .sv__labels{margin:0 0 16px;overflow-wrap:break-word}#survicate-box .sv__micro-theme .sv__labels .sv__label,#sv-screenshot-controls .sv__micro-theme .sv__labels .sv__label{font-size:14px;line-height:18px}#survicate-box .sv__micro-theme .sv__labels .sv__label--left,#survicate-box .sv__micro-theme .sv__labels .sv__label--right,#sv-screenshot-controls .sv__micro-theme .sv__labels .sv__label--left,#sv-screenshot-controls .sv__micro-theme .sv__labels .sv__label--right{max-width:120px}#survicate-box .sv__micro-theme .sv__labels .sv__label--right,#sv-screenshot-controls .sv__micro-theme .sv__labels .sv__label--right{margin-left:4px;text-align:right}#survicate-box .sv__micro-theme .sv__labels .sv__label--left,#sv-screenshot-controls .sv__micro-theme .sv__labels .sv__label--left{margin-right:4px;text-align:left}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__labels .sv__label--right,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__labels .sv__label--right{text-align:left}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__labels .sv__label--left,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__labels .sv__label--left{text-align:right}#survicate-box .sv__micro-theme .sv__select,#sv-screenshot-controls .sv__micro-theme .sv__select{margin-bottom:16px;position:relative}#survicate-box .sv__micro-theme .sv__select-icon,#sv-screenshot-controls .sv__micro-theme .sv__select-icon{top:16px}#survicate-box .sv__micro-theme .sv__select-list,#sv-screenshot-controls .sv__micro-theme .sv__select-list{border-radius:6px!important;border-style:solid;border-width:1px;bottom:calc(100% + 10px);box-shadow:0 0 10px 5px rgba(41,41,42,.07)}#survicate-box .sv__micro-theme .sv__select-list::-webkit-scrollbar,#sv-screenshot-controls .sv__micro-theme .sv__select-list::-webkit-scrollbar{background-color:transparent;width:4px}#survicate-box .sv__micro-theme .sv__select-list::-webkit-scrollbar-thumb,#sv-screenshot-controls .sv__micro-theme .sv__select-list::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border-radius:4px}#survicate-box .sv__micro-theme .sv__select .sv__input,#sv-screenshot-controls .sv__micro-theme .sv__select .sv__input{width:100%}#survicate-box .sv__micro-theme .sv__select .sv__input .sv__caret,#sv-screenshot-controls .sv__micro-theme .sv__select .sv__input .sv__caret{background:none}#survicate-box .sv__micro-theme .sv__select .sv__input,#survicate-box .sv__micro-theme .sv__select .sv__select-list .sv__select-button,#sv-screenshot-controls .sv__micro-theme .sv__select .sv__input,#sv-screenshot-controls .sv__micro-theme .sv__select .sv__select-list .sv__select-button{min-height:40px}#survicate-box .sv__micro-theme.sv__position-mobile .sv__dropdown__wrapper .sv__select-list,#sv-screenshot-controls .sv__micro-theme.sv__position-mobile .sv__dropdown__wrapper .sv__select-list{bottom:calc(100% + 10px);top:unset}#survicate-box .sv__micro-theme.sv__position-center .sv__dropdown__wrapper .sv__select-list,#survicate-box .sv__micro-theme.sv__position-top-left .sv__dropdown__wrapper .sv__select-list,#survicate-box .sv__micro-theme.sv__position-top-right .sv__dropdown__wrapper .sv__select-list,#sv-screenshot-controls .sv__micro-theme.sv__position-center .sv__dropdown__wrapper .sv__select-list,#sv-screenshot-controls .sv__micro-theme.sv__position-top-left .sv__dropdown__wrapper .sv__select-list,#sv-screenshot-controls .sv__micro-theme.sv__position-top-right .sv__dropdown__wrapper .sv__select-list{bottom:auto}#survicate-box .sv__micro-theme .sv__submit-button__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__submit-button__wrapper{border-top-style:solid;border-top-width:1px;bottom:0;margin-left:24px;margin-top:0;padding:23px 0 8px;width:calc(100% - 48px)}#survicate-box .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button,#sv-screenshot-controls .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button{align-items:center;border-bottom-width:0;border-radius:4px;border-style:none none solid;display:flex;font-weight:600;height:auto;justify-content:center;margin:auto;min-height:40px;outline-offset:3px;overflow-wrap:break-word;width:100%;word-break:break-word}#survicate-box .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:disabled,#sv-screenshot-controls .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:disabled{cursor:not-allowed;opacity:.5}#survicate-box .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:disabled:hover,#sv-screenshot-controls .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:disabled:hover{opacity:.5}#survicate-box .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:hover,#sv-screenshot-controls .sv__micro-theme .sv__submit-button__wrapper .sv__submit-button:hover{opacity:.8;text-decoration:none}#survicate-box .sv__micro-theme.sv__rtl-lang .sv__submit-button__wrapper,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang .sv__submit-button__wrapper{margin-left:0;margin-right:24px}#survicate-box .sv__micro-theme.sv__mobile-survey .sv__submit-button:hover,#survicate-box .sv__micro-theme.sv__position-mobile .sv__submit-button:hover,#sv-screenshot-controls .sv__micro-theme.sv__mobile-survey .sv__submit-button:hover,#sv-screenshot-controls .sv__micro-theme.sv__position-mobile .sv__submit-button:hover{opacity:unset}#survicate-box .sv__micro-theme .sv__submit-screenshot-button-container .sv__submit-button__wrapper,#sv-screenshot-controls .sv__micro-theme .sv__submit-screenshot-button-container .sv__submit-button__wrapper{border-top:none;width:100%}#survicate-box .sv__micro-theme .sv__validation,#sv-screenshot-controls .sv__micro-theme .sv__validation{bottom:40px;left:auto;right:0;top:auto}#survicate-box .sv__micro-theme .sv__validation:after,#sv-screenshot-controls .sv__micro-theme .sv__validation:after{border-color:#e33a22 transparent transparent;border-width:8px 4px 0;bottom:-8px;left:auto;right:10px;top:auto}#survicate-box .sv__micro-theme .sv-invalid.sv-invalid.sv-invalid,#sv-screenshot-controls .sv__micro-theme .sv-invalid.sv-invalid.sv-invalid{border:none}#survicate-box .sv__micro-theme.sv__feedback-survey.sv__feedback-survey--minimized,#sv-screenshot-controls .sv__micro-theme.sv__feedback-survey.sv__feedback-survey--minimized{border:2px solid transparent;cursor:pointer;display:flex;justify-content:center;max-height:80px;max-width:304px;min-width:112px;padding-bottom:0;transform:translateY(-50%) rotate(270deg);transform-origin:left center}#survicate-box .sv__micro-theme.sv__feedback-survey.sv__feedback-survey--minimized .sv__feedback-survey__text,#sv-screenshot-controls .sv__micro-theme.sv__feedback-survey.sv__feedback-survey--minimized .sv__feedback-survey__text{font-size:14px;font-weight:600;margin-left:unset;margin-right:unset;padding:8px 24px;word-break:break-word}#survicate-box .sv__micro-theme.sv__position-center-right.sv__feedback-survey.sv__feedback-survey--minimized .sv__feedback-survey__text,#sv-screenshot-controls .sv__micro-theme.sv__position-center-right.sv__feedback-survey.sv__feedback-survey--minimized .sv__feedback-survey__text{transform:rotate(180deg)}#survicate-box .sv__micro-theme.sv__outline.sv__feedback-survey.sv__feedback-survey--minimized:focus,#sv-screenshot-controls .sv__micro-theme.sv__outline.sv__feedback-survey.sv__feedback-survey--minimized:focus{border:2px solid #6f27f6}#survicate-box .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper--navigation,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper--navigation{justify-content:flex-end}#survicate-box .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button{margin:0;width:120px}#survicate-box .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back{border:2px solid;margin-right:16px}#survicate-box .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__arrow,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__arrow{margin-right:4px;padding:3px}#survicate-box .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__text,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme .sv__submit-button__wrapper .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__text{font-weight:600;max-width:80px}#survicate-box .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button{width:48%}#survicate-box .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button .sv__navigation-button__text,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button .sv__navigation-button__text{max-width:48%}#survicate-box .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button:first-child,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button:first-child{margin-left:0}#survicate-box .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button:last-child,#sv-screenshot-controls .sv__micro-theme.sv__micro-theme.sv__position-mobile .sv__navigation-button:last-child{margin-right:0}#survicate-box .sv__micro-theme.sv__rtl-lang.sv__micro-theme .sv__navigation-button.sv__navigation-button--back,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang.sv__micro-theme .sv__navigation-button.sv__navigation-button--back{margin-left:16px;margin-right:0}#survicate-box .sv__micro-theme.sv__rtl-lang.sv__micro-theme .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__arrow,#sv-screenshot-controls .sv__micro-theme.sv__rtl-lang.sv__micro-theme .sv__navigation-button.sv__navigation-button--back .sv__navigation-button__arrow{margin-left:8px;margin-right:0;transform:rotate(-45deg)}#survicate-box .sv__micro-theme .sv__disclaimer-container,#sv-screenshot-controls .sv__micro-theme .sv__disclaimer-container{padding:0 24px}#survicate-box .sv__micro-theme.sv__survey--matrix .sv__disclaimer,#sv-screenshot-controls .sv__micro-theme.sv__survey--matrix .sv__disclaimer{max-width:608px}#survicate-box .sv__micro-theme.sv__survey--matrix .sv__disclaimer--narrow,#sv-screenshot-controls .sv__micro-theme.sv__survey--matrix .sv__disclaimer--narrow{max-width:256px}#survicate-box .sv__micro-theme.sv__survey--matrix.sv__position-mobile .sv__disclaimer,#sv-screenshot-controls .sv__micro-theme.sv__survey--matrix.sv__position-mobile .sv__disclaimer{max-width:unset}#survicate-box .sv__micro-theme .sv__disclaimer__body,#sv-screenshot-controls .sv__micro-theme .sv__disclaimer__body{max-height:120px;overflow-y:auto}#survicate-box .sv__micro-theme .sv__notification-banner,#sv-screenshot-controls .sv__micro-theme .sv__notification-banner{border-radius:4px;margin:8px 0 24px}#survicate-box .sv-desktop .sv__survey.sv__micro-theme .sv__mobile-datepicker,#sv-screenshot-controls .sv-desktop .sv__survey.sv__micro-theme .sv__mobile-datepicker{width:100%}#survicate-box .sr-only,#sv-screenshot-controls .sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}@keyframes slide-out{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes slide-in{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slide-down{0%{transform:translateY(0)}to{transform:translateY(100%)}}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey),#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey){border-radius:4px;left:20px;margin:20px auto;right:20px;transform:none;width:calc(100% - 40px)}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-top-left,#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-top-right,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-top-left,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-top-right{top:0}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-left,#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-right,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-left,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-right{bottom:0}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-center,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__position-center{transform:translateY(50%)}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized{left:0;margin:0;right:0;width:100%}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized.sv__position-center,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized.sv__position-center{right:0;transform:none;width:100%}#survicate-box .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol{background-color:transparent;bottom:10px;position:absolute;right:15px}@media only screen and (max-width:568px){#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey),#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey){border-radius:4px;left:20px;margin:20px auto;right:20px;transform:none;width:calc(100% - 40px)}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-top-left,#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-top-right,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-top-left,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-top-right{top:0}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-left,#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-right,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-left,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-right{bottom:0}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-center,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__position-center{transform:translateY(50%)}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized{left:0;margin:0;right:0;width:100%}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized.sv__position-center,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized.sv__position-center{right:0;transform:none;width:100%}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol{background-color:transparent;bottom:10px;position:absolute;right:15px}}@media only screen and (max-width:1181px)and (orientation:portrait){#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey){border-radius:10px 10px 0 0;bottom:0;display:flex;flex-direction:column;left:0;margin:0;max-height:85vh;max-width:100%;min-width:100%;right:auto;top:unset;transform:unset;width:100%}#survicate-box :host .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls :host .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey){max-height:90%!important}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden{display:none}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen{max-height:unset!important}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea{font-size:16px}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point{overflow-y:auto}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container{transition:max-height .3s ease-in-out}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper{max-width:unset}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description{font-size:14px;line-height:22px}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question{font-size:16px;line-height:24px}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button{min-height:48px}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized{align-items:center;flex-direction:row;height:104px}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions{margin-left:auto}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol{bottom:unset;position:relative;right:unset}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions{margin-left:unset;margin-right:auto}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar{max-width:none}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker{height:280px;overflow:hidden;position:relative}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker--selected,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker--selected{position:absolute;top:25%;width:100%}#survicate-box .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker .sv__roller,#sv-screenshot-controls .sv-box-child:not(.sv-desktop) .sv__survey .sv__answer-picker .sv__roller{align-items:center;display:flex;flex-direction:column}}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey){border-radius:10px 10px 0 0;bottom:0;display:flex;flex-direction:column;left:0;margin:0;max-height:85vh;max-width:100%;min-width:100%;right:auto;top:unset;transform:unset;width:100%}#survicate-box :host .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls :host .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey){max-height:90%!important}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden{display:none}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen{max-height:unset!important}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea{font-size:16px}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point{overflow-y:auto}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container{transition:max-height .3s ease-in-out}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper{max-width:unset}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description{font-size:14px;line-height:22px}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question{font-size:16px;line-height:24px}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button{min-height:48px}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized{align-items:center;flex-direction:row;height:104px}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions{margin-left:auto}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol{bottom:unset;position:relative;right:unset}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions{margin-left:unset;margin-right:auto}#survicate-box .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar{max-width:none}#survicate-box .sv-box-child.sv-mobile .sv__survey .sv__answer-picker,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey .sv__answer-picker{height:280px;overflow:hidden;position:relative}#survicate-box .sv-box-child.sv-mobile .sv__survey .sv__answer-picker--selected,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey .sv__answer-picker--selected{position:absolute;top:25%;width:100%}#survicate-box .sv-box-child.sv-mobile .sv__survey .sv__answer-picker .sv__roller,#sv-screenshot-controls .sv-box-child.sv-mobile .sv__survey .sv__answer-picker .sv__roller{align-items:center;display:flex;flex-direction:column}@media only screen and (max-width:568px){#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey){border-radius:10px 10px 0 0;bottom:0;display:flex;flex-direction:column;left:0;margin:0;max-height:85vh;max-width:100%;min-width:100%;right:auto;top:unset;transform:unset;width:100%}#survicate-box :host .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey),#sv-screenshot-controls :host .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey){max-height:90%!important}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__survey--hidden{display:none}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__position-fullscreen{max-height:unset!important}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) input,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) textarea{font-size:16px}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point{overflow-y:auto}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__scroll-container{transition:max-height .3s ease-in-out}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper{max-width:unset}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-description{font-size:14px;line-height:22px}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__point-question{font-size:16px;line-height:24px}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__point .sv__point-wrapper .sv__choice-button{min-height:48px}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized{align-items:center;flex-direction:row;height:104px}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized__actions{margin-left:auto}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized .sv__minimized-symbol{bottom:unset;position:relative;right:unset}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey).sv__minimized.sv__rtl-lang .sv__minimized__actions{margin-left:unset;margin-right:auto}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey.sv__micro-theme:not(.sv__feedback-survey) .sv__micro-top-bar{max-width:none}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker{height:280px;overflow:hidden;position:relative}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker--selected,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker--selected{position:absolute;top:25%;width:100%}#survicate-box .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker .sv__roller,#sv-screenshot-controls .sv-box-child:not(.sv-tablet):not(.sv-desktop) .sv__survey .sv__answer-picker .sv__roller{align-items:center;display:flex;flex-direction:column}}#survicate-box .sv__survey-bottom-placeholder,#sv-screenshot-controls .sv__survey-bottom-placeholder{height:12px}#survicate-box .survicate_plus-button_OvC0J,#sv-screenshot-controls .survicate_plus-button_OvC0J{bottom:10px;position:absolute;right:15px}#survicate-box .sv__survey.sv-tablet.sv__micro-theme,#sv-screenshot-controls .sv__survey.sv-tablet.sv__micro-theme{min-height:285px}#survicate-box .sv__survey.sv-tablet.sv__micro-theme .sv__micro-top-bar,#sv-screenshot-controls .sv__survey.sv-tablet.sv__micro-theme .sv__micro-top-bar{max-width:none}#survicate-box input::-webkit-input-placeholder,#sv-screenshot-controls input::-webkit-input-placeholder{line-height:normal!important}',""]);const a=n.toString()},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var s="",r=void 0!==t[5];return t[4]&&(s+="@supports (".concat(t[4],") {")),t[2]&&(s+="@media ".concat(t[2]," {")),r&&(s+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),s+=e(t),r&&(s+="}"),t[2]&&(s+="}"),t[4]&&(s+="}"),s}).join("")},t.i=function(e,s,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var n={};if(r)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(n[c]=!0)}for(var l=0;l<e.length;l++){var v=[].concat(e[l]);r&&n[v[0]]||(void 0!==o&&(void 0===v[5]||(v[1]="@layer".concat(v[5].length>0?" ".concat(v[5]):""," {").concat(v[1],"}")),v[5]=o),s&&(v[2]?(v[1]="@media ".concat(v[2]," {").concat(v[1],"}"),v[2]=s):v[2]=s),i&&(v[4]?(v[1]="@supports (".concat(v[4],") {").concat(v[1],"}"),v[4]=i):v[4]="".concat(i)),t.push(v))}},t}},1601(e){"use strict";e.exports=function(e){return e[1]}},5574(e){"use strict";e.exports=i,e.exports.isMobile=i,e.exports.default=i;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,s=/CrOS/,r=/android|ipad|playbook|silk/i;function i(e){e||(e={});let i=e.ua;if(i||"undefined"==typeof navigator||(i=navigator.userAgent),i&&i.headers&&"string"==typeof i.headers["user-agent"]&&(i=i.headers["user-agent"]),"string"!=typeof i)return!1;let o=t.test(i)&&!s.test(i)||!!e.tablet&&r.test(i);return!o&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==i.indexOf("Macintosh")&&-1!==i.indexOf("Safari")&&(o=!0),o}},2733(e){e.exports=function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)"__proto__"!==r&&(e[r]=s[r])}return e}function t(s,r){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var n="";for(var a in o)o[a]&&(n+="; "+a,!0!==o[a]&&(n+="="+o[a].split(";")[0]));return document.cookie=t+"="+s.write(i,t)+n}}function o(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],r={},i=0;i<t.length;i++){var o=t[i].split("="),n=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(a in r||(r[a]=s.read(n,a)),e===a)break}catch{}}return e?r[e]:r}}return Object.create({set:i,get:o,remove:function(t,s){i(t,"",e({},s,{expires:-1}))},withAttributes:function(s){return t(this.converter,e({},this.attributes,s))},withConverter:function(s){return t(e({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(s)}})}return t({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},2994(e,t,s){"use strict";s.d(t,{A:()=>i}),Object.defineProperty(i,"name",{value:"default",configurable:!0});var r=s(172);function i(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,r.h)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},t),["\n ",(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 16.8129L31.1871 15L24 22.1871L16.8129 15L15 16.8129L22.1871 24L15 31.1871L16.8129 33L24 25.8129L31.1871 33L33 31.1871L25.8129 24L33 16.8129Z",fill:"#29292A"},[]),"\n ",(0,r.h)("mask",{id:"svg-CloseIcon-3XN-Vfv",style:"mask-type:luminance",maskUnits:"userSpaceOnUse",x:"15",y:"15",width:"18",height:"18"},["\n ",(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 16.8129L31.1871 15L24 22.1871L16.8129 15L15 16.8129L22.1871 24L15 31.1871L16.8129 33L24 25.8129L31.1871 33L33 31.1871L25.8129 24L33 16.8129Z",fill:"white"},[]),"\n "]),"\n ",(0,r.h)("g",{mask:"url(#svg-CloseIcon-3XN-Vfv)"},["\n ",(0,r.h)("rect",{x:"12",y:"12",width:"24",height:"24"},[]),"\n "]),"\n"])}},7402(e,t,s){"use strict";s.d(t,{J0:()=>i.J0,NT:()=>i.NT,RZ:()=>k,Rf:()=>h,d5:()=>P,tY:()=>x,vJ:()=>i.vJ});var r=s(172),i=s(5994);function o(e,t){for(var s in t)e[s]=t[s];return e}function n(e,t){for(var s in e)if("__source"!==s&&!(s in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function a(e,t){var s=t(),r=(0,i.J0)({t:{__:s,u:t}}),o=r[0].t,n=r[1];return(0,i.Nf)(function(){o.__=s,o.u=t,c(o)&&n({t:o})},[e,s,t]),(0,i.vJ)(function(){return c(o)&&n({t:o}),e(function(){c(o)&&n({t:o})})},[e]),s}function c(e){try{return!(e.__===e.u()&&(0!==t||1/t==1/s)||t!=t&&s!=s)}catch(e){return!0}var t,s}function l(e){e()}function v(e){return e}function _(){return[!1,l]}var u=i.Nf;function d(e,t){this.props=e,this.context=t}(d.prototype=new r.Component).isPureReactComponent=!0,d.prototype.shouldComponentUpdate=function(e,t){return n(this.props,e)||n(this.state,t)};var p=r.options.__b;r.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),p&&p(e)};var m="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function h(e){function t(t){var s=o({},t);return delete s.ref,e(s,t.ref||null)}return t.$$typeof=m,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var b=function(e,t){return null==e?null:(0,r.toChildArray)((0,r.toChildArray)(e).map(t))},g=(r.toChildArray,r.options.__e);r.options.__e=function(e,t,s,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=s.__e,t.__k=s.__k),i.__c(e,t);g(e,t,s,r)};var f=r.options.unmount;function y(e,t,s){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=o({},e)).__c&&(e.__c.__P===s&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return y(e,t,s)})),e}function w(e,t,s){return e&&s&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return w(e,t,s)}),e.__c&&e.__c.__P===t&&(e.__e&&s.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=s)),e}function x(){this.__u=0,this.o=null,this.__b=null}function S(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function k(e){var t,s,i,o=null;function n(n){if(t||(t=e()).then(function(e){e&&(o=e.default||e),i=!0},function(e){s=e,i=!0}),s)throw s;if(!i)throw t;return o?(0,r.createElement)(o,n):null}return n.displayName="Lazy",n.__f=!0,n}function A(){this.i=null,this.l=null}r.options.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),f&&f(e)},(x.prototype=new r.Component).__c=function(e,t){var s=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(s);var i=S(r.__v),o=!1,n=function(){o||r.__z||(o=!0,s.__R=null,i?i(c):c())};s.__R=n;var a=s.__P;s.__P=null;var c=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=w(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=a,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(n,n)},x.prototype.componentWillUnmount=function(){this.o=[]},x.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var s=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=y(this.__b,s,i.__O=i.__P)}this.__b=null}var o=t.__a&&(0,r.createElement)(r.Fragment,null,e.fallback);return o&&(o.__u&=-33),[(0,r.createElement)(r.Fragment,null,t.__a?null:e.children),o]};var T=function(e,t,s){if(++s[1]===s[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(s=e.i;s;){for(;s.length>3;)s.pop()();if(s[1]<s[0])break;e.i=s=s[2]}};function O(e){return this.getChildContext=function(){return e.context},e.children}function E(e){var t=this,s=e.h;if(t.componentWillUnmount=function(){(0,r.render)(null,t.v),t.v=null,t.h=null},t.h&&t.h!==s&&t.componentWillUnmount(),!t.v){for(var i=t.__v;null!==i&&!i.__m&&null!==i.__;)i=i.__;t.h=s,t.v={nodeType:1,parentNode:s,childNodes:[],__k:{__m:i.__m},contains:function(){return!0},namespaceURI:s.namespaceURI,insertBefore:function(e,s){this.childNodes.push(e),t.h.insertBefore(e,s)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}(0,r.render)((0,r.createElement)(O,{context:t.context},e.__v),t.v)}function P(e,t){var s=(0,r.createElement)(E,{__v:e,h:t});return s.containerInfo=t,s}(A.prototype=new r.Component).__a=function(e){var t=this,s=S(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),T(t,e,r)):i()};s?s(o):o()}},A.prototype.render=function(e){this.i=null,this.l=new Map;var t=(0,r.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var s=t.length;s--;)this.l.set(t[s],this.i=[1,0,this.i]);return e.children},A.prototype.componentDidUpdate=A.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,s){T(e,s,t)})};var C="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,N=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,M=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,I=/[A-Z0-9]/g,j="undefined"!=typeof document,R=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};r.Component.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(r.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var L=r.options.event;r.options.event=function(e){return L&&(e=L(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var D,F={configurable:!0,get:function(){return this.class}},z=r.options.vnode;r.options.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,s=e.type,i={},o=-1==s.indexOf("-");for(var n in t){var a=t[n];if(!("value"===n&&"defaultValue"in t&&null==a||j&&"children"===n&&"noscript"===s||"class"===n||"className"===n)){var c=n.toLowerCase();"defaultValue"===n&&"value"in t&&null==t.value?n="value":"download"===n&&!0===a?a="":"translate"===c&&"no"===a?a=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?n="ondblclick":"onchange"!==c||"input"!==s&&"textarea"!==s||R(t.type)?"onfocus"===c?n="onfocusin":"onblur"===c?n="onfocusout":M.test(n)&&(n=c):c=n="oninput":o&&N.test(n)?n=n.replace(I,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===c&&i[n=c]&&(n="oninputCapture"),i[n]=a}}"select"==s&&(i.multiple&&Array.isArray(i.value)&&(i.value=(0,r.toChildArray)(t.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),null!=i.defaultValue&&(i.value=(0,r.toChildArray)(t.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",F)):t.className&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=C,z&&z(e)};var q=r.options.__r;r.options.__r=function(e){q&&q(e),D=e.__c};var U=r.options.diffed;r.options.diffed=function(e){U&&U(e);var t=e.props,s=e.__e;null!=s&&"textarea"===e.type&&"value"in t&&t.value!==s.value&&(s.value=null==t.value?"":t.value),D=null};i.hb,i.NT,i.MN,i.vJ,i.Bi,i.Yn,i.Nf,i.Kr,i.WO,i.li,i.J0;i.J0,i.Bi,i.WO,i.vJ,i.Nf,i.li,i.Yn,i.Kr,i.hb,i.NT,i.MN,r.createElement,r.createContext,r.createRef,r.Fragment,r.Component,r.Fragment},172(e,t,s){"use strict";s.r(t),s.d(t,{Component:()=>P,Fragment:()=>E,cloneElement:()=>Z,createContext:()=>ee,createElement:()=>A,createRef:()=>O,h:()=>A,hydrate:()=>Q,isValidElement:()=>n,options:()=>i,render:()=>Y,toChildArray:()=>F});var r,i,o,n,a,c,l,v,_,u,d,p,m,h,b,g,f={},y=[],w=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,x=Array.isArray;function S(e,t){for(var s in t)e[s]=t[s];return e}function k(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function A(e,t,s){var i,o,n,a={};for(n in t)"key"==n?i=t[n]:"ref"==n?o=t[n]:a[n]=t[n];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):s),"function"==typeof e&&null!=e.defaultProps)for(n in e.defaultProps)void 0===a[n]&&(a[n]=e.defaultProps[n]);return T(e,a,i,o,null)}function T(e,t,s,r,n){var a={type:e,props:t,key:s,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n??++o,__i:-1,__u:0};return null==n&&null!=i.vnode&&i.vnode(a),a}function O(){return{current:null}}function E(e){return e.children}function P(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var s;t<e.__k.length;t++)if(null!=(s=e.__k[t])&&null!=s.__e)return s.__e;return"function"==typeof e.type?C(e):null}function N(e){if(e.__P&&e.__d){var t=e.__v,s=t.__e,r=[],o=[],n=S({},t);n.__v=t.__v+1,i.vnode&&i.vnode(n),B(e.__P,n,t,e.__n,e.__P.namespaceURI,32&t.__u?[s]:null,r,s??C(t),!!(32&t.__u),o),n.__v=t.__v,n.__.__k[n.__i]=n,H(r,n,o),t.__e=t.__=null,n.__e!=s&&M(n)}}function M(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),M(e)}function I(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!j.__r++||c!=i.debounceRendering)&&((c=i.debounceRendering)||l)(j)}function j(){try{for(var e,t=1;a.length;)a.length>t&&a.sort(v),e=a.shift(),t=a.length,N(e)}finally{a.length=j.__r=0}}function R(e,t,s,r,i,o,n,a,c,l,v){var _,u,d,p,m,h,b,g=r&&r.__k||y,w=t.length;for(c=L(s,t,g,c,w),_=0;_<w;_++)null!=(d=s.__k[_])&&(u=-1!=d.__i&&g[d.__i]||f,d.__i=_,h=B(e,d,u,i,o,n,a,c,l,v),p=d.__e,d.ref&&u.ref!=d.ref&&(u.ref&&J(u.ref,null,d),v.push(d.ref,d.__c||p,d)),null==m&&null!=p&&(m=p),(b=!!(4&d.__u))||u.__k===d.__k?(c=D(d,c,e,b),b&&u.__e&&(u.__e=null)):"function"==typeof d.type&&void 0!==h?c=h:p&&(c=p.nextSibling),d.__u&=-7);return s.__e=m,c}function L(e,t,s,r,i){var o,n,a,c,l,v=s.length,_=v,u=0;for(e.__k=new Array(i),o=0;o<i;o++)null!=(n=t[o])&&"boolean"!=typeof n&&"function"!=typeof n?("string"==typeof n||"number"==typeof n||"bigint"==typeof n||n.constructor==String?n=e.__k[o]=T(null,n,null,null,null):x(n)?n=e.__k[o]=T(E,{children:n},null,null,null):void 0===n.constructor&&n.__b>0?n=e.__k[o]=T(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):e.__k[o]=n,c=o+u,n.__=e,n.__b=e.__b+1,a=null,-1!=(l=n.__i=z(n,s,c,_))&&(_--,(a=s[l])&&(a.__u|=2)),null==a||null==a.__v?(-1==l&&(i>v?u--:i<v&&u++),"function"!=typeof n.type&&(n.__u|=4)):l!=c&&(l==c-1?u--:l==c+1?u++:(l>c?u--:u++,n.__u|=4))):e.__k[o]=null;if(_)for(o=0;o<v;o++)null!=(a=s[o])&&!(2&a.__u)&&(a.__e==r&&(r=C(a)),X(a,a));return r}function D(e,t,s,r){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=D(i[o],t,s,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=C(e)),s.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function F(e,t){return t=t||[],null==e||"boolean"==typeof e||(x(e)?e.some(function(e){F(e,t)}):t.push(e)),t}function z(e,t,s,r){var i,o,n,a=e.key,c=e.type,l=t[s],v=null!=l&&!(2&l.__u);if(null===l&&null==a||v&&a==l.key&&c==l.type)return s;if(r>(v?1:0))for(i=s-1,o=s+1;i>=0||o<t.length;)if(null!=(l=t[n=i>=0?i--:o++])&&!(2&l.__u)&&a==l.key&&c==l.type)return n;return-1}function q(e,t,s){"-"==t[0]?e.setProperty(t,s??""):e[t]=null==s?"":"number"!=typeof s||w.test(t)?s:s+"px"}function U(e,t,s,r,i){var o,n;e:if("style"==t)if("string"==typeof s)e.style.cssText=s;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)s&&t in s||q(e.style,t,"");if(s)for(t in s)r&&s[t]==r[t]||q(e.style,t,s[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(p,"$1")),n=t.toLowerCase(),t=n in e||"onFocusOut"==t||"onFocusIn"==t?n.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=s,s?r?s[d]=r[d]:(s[d]=m,e.addEventListener(t,o?b:h,o)):e.removeEventListener(t,o?b:h,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=s??"";break e}catch(e){}"function"==typeof s||(null==s||!1===s&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==s?"":s))}}function $(e){return function(t){if(this.l){var s=this.l[t.type+e];if(null==t[u])t[u]=m++;else if(t[u]<s[d])return;return s(i.event?i.event(t):t)}}}function B(e,t,s,r,o,n,a,c,l,v){var _,u,d,p,m,h,b,g,f,w,A,T,O,C,N,M=t.type;if(void 0!==t.constructor)return null;128&s.__u&&(l=!!(32&s.__u),n=[c=t.__e=s.__e]),(_=i.__b)&&_(t);e:if("function"==typeof M)try{if(g=t.props,f=M.prototype&&M.prototype.render,w=(_=M.contextType)&&r[_.__c],A=_?w?w.props.value:_.__:r,s.__c?b=(u=t.__c=s.__c).__=u.__E:(f?t.__c=u=new M(g,A):(t.__c=u=new P(g,A),u.constructor=M,u.render=G),w&&w.sub(u),u.state||(u.state={}),u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),f&&null==u.__s&&(u.__s=u.state),f&&null!=M.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=S({},u.__s)),S(u.__s,M.getDerivedStateFromProps(g,u.__s))),p=u.props,m=u.state,u.__v=t,d)f&&null==M.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),f&&null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(f&&null==M.getDerivedStateFromProps&&g!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,A),t.__v==s.__v||!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,A)){t.__v!=s.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=s.__e,t.__k=s.__k,t.__k.some(function(e){e&&(e.__=t)}),y.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,A),f&&null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(p,m,h)})}if(u.context=A,u.props=g,u.__P=e,u.__e=!1,T=i.__r,O=0,f)u.state=u.__s,u.__d=!1,T&&T(t),_=u.render(u.props,u.state,u.context),y.push.apply(u.__h,u._sb),u._sb=[];else do{u.__d=!1,T&&T(t),_=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++O<25);u.state=u.__s,null!=u.getChildContext&&(r=S(S({},r),u.getChildContext())),f&&!d&&null!=u.getSnapshotBeforeUpdate&&(h=u.getSnapshotBeforeUpdate(p,m)),C=null!=_&&_.type===E&&null==_.key?W(_.props.children):_,c=R(e,x(C)?C:[C],t,s,r,o,n,a,c,l,v),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),b&&(u.__E=u.__=null)}catch(e){if(t.__v=null,l||null!=n)if(e.then){for(t.__u|=l?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;n[n.indexOf(c)]=null,t.__e=c}else{for(N=n.length;N--;)k(n[N]);V(t)}else t.__e=s.__e,t.__k=s.__k,e.then||V(t);i.__e(e,t,s)}else null==n&&t.__v==s.__v?(t.__k=s.__k,t.__e=s.__e):c=t.__e=K(s.__e,t,s,r,o,n,a,l,v);return(_=i.diffed)&&_(t),128&t.__u?void 0:c}function V(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(V))}function H(e,t,s){for(var r=0;r<s.length;r++)J(s[r],s[++r],s[++r]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function W(e){return"object"!=typeof e||null==e||e.__b>0?e:x(e)?e.map(W):void 0!==e.constructor?null:S({},e)}function K(e,t,s,o,n,a,c,l,v){var _,u,d,p,m,h,b,g=s.props||f,y=t.props,w=t.type;if("svg"==w?n="http://www.w3.org/2000/svg":"math"==w?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),null!=a)for(_=0;_<a.length;_++)if((m=a[_])&&"setAttribute"in m==!!w&&(w?m.localName==w:3==m.nodeType)){e=m,a[_]=null;break}if(null==e){if(null==w)return document.createTextNode(y);e=document.createElementNS(n,w,y.is&&y),l&&(i.__m&&i.__m(t,a),l=!1),a=null}if(null==w)g===y||l&&e.data==y||(e.data=y);else{if(a="textarea"==w&&null!=y.defaultValue?null:a&&r.call(e.childNodes),!l&&null!=a)for(g={},_=0;_<e.attributes.length;_++)g[(m=e.attributes[_]).name]=m.value;for(_ in g)m=g[_],"dangerouslySetInnerHTML"==_?d=m:"children"==_||_ in y||"value"==_&&"defaultValue"in y||"checked"==_&&"defaultChecked"in y||U(e,_,null,m,n);for(_ in y)m=y[_],"children"==_?p=m:"dangerouslySetInnerHTML"==_?u=m:"value"==_?h=m:"checked"==_?b=m:l&&"function"!=typeof m||g[_]===m||U(e,_,m,g[_],n);if(u)l||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),R("template"==t.type?e.content:e,x(p)?p:[p],t,s,o,"foreignObject"==w?"http://www.w3.org/1999/xhtml":n,a,c,a?a[0]:s.__k&&C(s,0),l,v),null!=a)for(_=a.length;_--;)k(a[_]);l&&"textarea"!=w||(_="value","progress"==w&&null==h?e.removeAttribute("value"):null!=h&&(h!==e[_]||"progress"==w&&!h||"option"==w&&h!=g[_])&&U(e,_,h,g[_],n),_="checked",null!=b&&b!=e[_]&&U(e,_,b,g[_],n))}return e}function J(e,t,s){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){i.__e(e,s)}}function X(e,t,s){var r,o;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||J(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&X(r[o],t,s||"function"!=typeof e.type);s||k(e.__e),e.__c=e.__=e.__e=void 0}function G(e,t,s){return this.constructor(e,s)}function Y(e,t,s){var o,n,a,c;t==document&&(t=document.documentElement),i.__&&i.__(e,t),n=(o="function"==typeof s)?null:s&&s.__k||t.__k,a=[],c=[],B(t,e=(!o&&s||t).__k=A(E,null,[e]),n||f,f,t.namespaceURI,!o&&s?[s]:n?null:t.firstChild?r.call(t.childNodes):null,a,!o&&s?s:n?n.__e:t.firstChild,o,c),H(a,e,c)}function Q(e,t){Y(e,t,Q)}function Z(e,t,s){var i,o,n,a,c=S({},e.props);for(n in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==n?i=t[n]:"ref"==n?o=t[n]:c[n]=void 0===t[n]&&null!=a?a[n]:t[n];return arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):s),T(e.type,c,i||e.key,o||e.ref,null)}function ee(e){function t(e){var s,r;return this.getChildContext||(s=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&s.forEach(function(e){e.__e=!0,I(e)})},this.sub=function(e){s.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){s&&s.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+g++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=y.slice,i={__e:function(e,t,s,r){for(var i,o,n;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),n=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),n=i.__d),n)return i.__E=i}catch(t){e=t}throw e}},o=0,n=function(e){return null!=e&&void 0===e.constructor},P.prototype.setState=function(e,t){var s;s=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=S({},this.state),"function"==typeof e&&(e=e(S({},s),this.props)),e&&S(s,e),null!=e&&this.__v&&(t&&this._sb.push(t),I(this))},P.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),I(this))},P.prototype.render=E,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,v=function(e,t){return e.__v.__b-t.__v.__b},j.__r=0,_=Math.random().toString(8),u="__d"+_,d="__a"+_,p=/(PointerCapture)$|Capture$/i,m=0,h=$(!1),b=$(!0),g=0},5994(e,t,s){"use strict";s.d(t,{Bi:()=>P,J0:()=>g,Kr:()=>k,MN:()=>O,Md:()=>E,NT:()=>T,Nf:()=>w,WO:()=>f,Yn:()=>S,hb:()=>A,li:()=>x,vJ:()=>y});var r,i,o,n,a=s(172),c=0,l=[],v=a.options,_=v.__b,u=v.__r,d=v.diffed,p=v.__c,m=v.unmount,h=v.__;function b(e,t){v.__h&&v.__h(i,e,c||t),c=0;var s=i.__H||(i.__H={__:[],__h:[]});return e>=s.__.length&&s.__.push({}),s.__[e]}function g(e){return c=1,f(L,e)}function f(e,t,s){var o=b(r++,2);if(o.t=e,!o.__c&&(o.__=[s?s(t):L(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],s=o.t(t,e);t!==s&&(o.__N=[s,o.__[1]],o.__c.setState({}))}],o.__c=i,!i.__f)){var n=function(e,t,s){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter(function(e){return e.__c});if(r.every(function(e){return!e.__N}))return!a||a.call(this,e,t,s);var i=o.__c.props!==e;return r.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),a&&a.call(this,e,t,s)||i};i.__f=!0;var a=i.shouldComponentUpdate,c=i.componentWillUpdate;i.componentWillUpdate=function(e,t,s){if(this.__e){var r=a;a=void 0,n(e,t,s),a=r}c&&c.call(this,e,t,s)},i.shouldComponentUpdate=n}return o.__N||o.__}function y(e,t){var s=b(r++,3);!v.__s&&R(s.__H,t)&&(s.__=e,s.u=t,i.__H.__h.push(s))}function w(e,t){var s=b(r++,4);!v.__s&&R(s.__H,t)&&(s.__=e,s.u=t,i.__h.push(s))}function x(e){return c=5,k(function(){return{current:e}},[])}function S(e,t,s){c=6,w(function(){if("function"==typeof e){var s=e(t());return function(){e(null),s&&"function"==typeof s&&s()}}if(e)return e.current=t(),function(){return e.current=null}},null==s?s:s.concat(e))}function k(e,t){var s=b(r++,7);return R(s.__H,t)&&(s.__=e(),s.__H=t,s.__h=e),s.__}function A(e,t){return c=8,k(function(){return e},t)}function T(e){var t=i.context[e.__c],s=b(r++,9);return s.c=e,t?(null==s.__&&(s.__=!0,t.sub(i)),t.props.value):e.__}function O(e,t){v.useDebugValue&&v.useDebugValue(t?t(e):e)}function E(e){var t=b(r++,10),s=g();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e,r){t.__&&t.__(e,r),s[1](e)}),[s[0],function(){s[1](void 0)}]}function P(){var e=b(r++,11);if(!e.__){for(var t=i.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var s=t.__m||(t.__m=[0,0]);e.__="P"+s[0]+"-"+s[1]++}return e.__}function C(){for(var e;e=l.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(I),t.__h.some(j),t.__h=[]}catch(s){t.__h=[],v.__e(s,e.__v)}}}v.__b=function(e){i=null,_&&_(e)},v.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),h&&h(e,t)},v.__r=function(e){u&&u(e),r=0;var t=(i=e.__c).__H;t&&(o===i?(t.__h=[],i.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(I),t.__h.some(j),t.__h=[],r=0)),o=i},v.diffed=function(e){d&&d(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&n===v.requestAnimationFrame||((n=v.requestAnimationFrame)||M)(C)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),o=i=null},v.__c=function(e,t){t.some(function(e){try{e.__h.some(I),e.__h=e.__h.filter(function(e){return!e.__||j(e)})}catch(s){t.some(function(e){e.__h&&(e.__h=[])}),t=[],v.__e(s,e.__v)}}),p&&p(e,t)},v.unmount=function(e){m&&m(e);var t,s=e.__c;s&&s.__H&&(s.__H.__.some(function(e){try{I(e)}catch(e){t=e}}),s.__H=void 0,t&&v.__e(t,s.__v))};var N="function"==typeof requestAnimationFrame;function M(e){var t,s=function(){clearTimeout(r),N&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(s,35);N&&(t=requestAnimationFrame(s))}function I(e){var t=i,s=e.__c;"function"==typeof s&&(e.__c=void 0,s()),i=t}function j(e){var t=i;e.__c=e.__(),i=t}function R(e,t){return!e||e.length!==t.length||t.some(function(t,s){return t!==e[s]})}function L(e,t){return"function"==typeof t?t(e):t}},5595(e,t,s){"use strict";var r,i,o,n,a,c;s.d(t,{$7:()=>i,Ao:()=>n,Jp:()=>o,P8:()=>r,WO:()=>c,wr:()=>a}),function(e){e.light="light",e.dark="dark"}(r||(r={})),function(e){e.immediately="immediately",e.delayed="delayed",e.exitIntent="leaveintent",e.scroll="scroll",e.event="event"}(i||(i={})),function(e){e.immediately="immediately",e.delayed="delayed",e.exitIntent="exitIntent",e.scroll="onScroll"}(o||(o={})),function(e){e.center="center",e.dialog="dialog",e.fullscreen="fullscreen",e.left="left",e.right="right",e.topLeft="topleft",e.topRight="topright"}(n||(n={})),function(e){e.visit="visit",e.visitor="visitor"}(a||(a={})),function(e){e.Widget="widget",e.Feedback="feedback",e.Braze="braze"}(c||(c={}))},831(e,t,s){"use strict";s.d(t,{P:()=>n});var r=s(5574),i=s.n(r),o=s(5595);class n{static isMobile(){return i()({tablet:!1})&&this.isAvailable()}static inBrazePreview(){return!(null===window||void 0===window?void 0:window.brazeDashboardConfig)&&this.isSandboxed()}static isAvailable(){var e,t,s,r,i,o,n;if("undefined"==typeof window)return!1;const a=null===(s=null===(t=null===(e=window._sva)||void 0===e?void 0:e.responseTraits)||void 0===t?void 0:t.find(e=>"braze_id"===e.name))||void 0===s?void 0:s.value;return!(!(null===(i=null===(r=window._sva)||void 0===r?void 0:r.traits)||void 0===i?void 0:i.braze_id)&&!a||!(null===(n=null===(o=window._sva)||void 0===o?void 0:o.traits)||void 0===n?void 0:n.braze_survey_id))}static isSandboxed(){try{const e="__sandbox_test__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!1}catch(e){return!!(e instanceof DOMException&&("SecurityError"===e.name||e.message.includes("sandbox")||e.message.includes("allow-same-origin")||e.message.includes("insecure")))}}static findTargetedSurvey(e){var t,s;const r=null===(s=null===(t=window._sva)||void 0===t?void 0:t.traits)||void 0===s?void 0:s.braze_survey_id,i=e.filter(e=>e.settings.format===o.WO.Braze);if(!r)return[];const n=i.find(e=>e.id===r);return n?[n]:[]}static removeSurveys(e){return e.filter(e=>e.settings.format!==o.WO.Braze)}static cleanupBrazeSurvey(){try{"undefined"!=typeof window&&window.brazeBridge&&"function"==typeof window.brazeBridge.closeMessage?window.brazeBridge.closeMessage():console.warn("Braze JavaScript bridge not available - cannot close in-app message programmatically")}catch(e){console.error("Error during Braze survey cleanup:",e)}}}},7585(e,t,s){"use strict";s.r(t),s.d(t,{default:()=>q});var r=s(172),i=s(5994),o=s(9612),n=s(7057),a=s(5346),c=s(4397),l=s(9027),v=s(1002),_=s(1835),u=s(8477),d=s(7088);const p=e=>"touches"in e&&e.touches.length>0?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY},m=["#sv-remove-button","#sv-save-button","#sv-color-picker-button","#sv-close-button"],h="sv-screenshot-controls",b=()=>{const e=document.documentElement.cloneNode(!0);var t;t=e,m.forEach(e=>{t.querySelectorAll(e).forEach(e=>{(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)})});const s=e.querySelector("head");if(!s)return e.outerHTML;(e=>{e.querySelectorAll('link[rel="stylesheet"], style').forEach(e=>{var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)})})(s);return((e,t)=>{var s;const r=document.createElement("style");r.id="sv-extracted-styles",r.textContent=t;const i=null===(s=window._sva)||void 0===s?void 0:s.nonce;i&&r.setAttribute("nonce",i),e.appendChild(r)})(s,(()=>{let e="";return(0,u.j)({iterable:document.styleSheets,type:d.p.iterable}).forEach(t=>{try{(0,u.j)({iterable:t.cssRules,type:d.p.iterable}).forEach(t=>{e+=t.cssText+"\n"})}catch(s){if(console.error(`Could not get css rules due to: ${s}`),!t.href)return;e+=`@import url("${t.href}");\n`}}),e})()),(e=>{document.querySelectorAll('link[rel="stylesheet"]').forEach(t=>{const s=t.cloneNode(!0);e.appendChild(s)})})(s),(e=>{const t=document.querySelector(".sv__screenshot-button-overlay__rectangles");if(!t)return;const s=e.querySelector("body");s&&s.appendChild(t.cloneNode(!0))})(e),`<!DOCTYPE html>\n${e.outerHTML}`};var g=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const f=(0,r.createContext)(null),y=({pointId:e,children:t})=>{var s;const{surveyType:u}=(0,i.NT)(a.y),d=l.bX.getStore(u),{surveyState:{theme:m},previewDevice:y}=d.getState(),w=(0,_.A)(y),x=(0,i.li)(""),[S,k]=(0,i.J0)(!1),[A,T]=(0,i.J0)(null),[O,E]=(0,i.J0)(null),[P,C]=(0,i.J0)(!1),[N,M]=(0,i.J0)(!1),[I,j]=(0,i.J0)((null===(s=null==m?void 0:m.color_scheme)||void 0===s?void 0:s.button)||"#6f27f6");(0,i.vJ)(()=>N?(x.current=document.body.style.overflow,void(document.body.style.overflow="hidden")):(document.body.style.overflow=x.current,()=>{document.body.style.overflow=x.current}),[N]);const R=()=>g(void 0,void 0,void 0,function*(){(()=>{const e=document.getElementById(h);if(U(!1),e)return;const t=document.createElement("div");t.id=h;const s=document.querySelector(`.survicate-box-${u}`);null==s||s.appendChild(t)})(),M(!0)}),L=e=>{const t=p(e);k(!0),T(t),E(null),C(!1)},D=()=>{T(null),E(null),C(!1)},F=e=>{S&&A&&E(p(e))},z=()=>{k(!1),C(!0)},q=()=>g(void 0,void 0,void 0,function*(){const t={height:window.innerHeight,html:b(),scroll_to:window.scrollY,user_agent:`${w?c.t.mobile:c.t.desktop}`,width:window.innerWidth};d.action(v.dN)({config:t,id:(0,o.A)(),pointId:e})}),U=e=>{n.m5.forEach(t=>{const s=l.bX.getStore(t);s.setState({surveyState:Object.assign(Object.assign({},s.getState().surveyState),{isHidden:!e})})})},$=()=>{U(!0),(()=>{const e=document.getElementById(h);null==e||e.remove()})(),M(!1),T(null),E(null),C(!1)},B=()=>{d.action(v.dN)(null)},V=(0,i.Kr)(()=>({closeOverlay:$,endPosition:O,handleEnd:z,handleMove:F,handleStart:L,isDrawing:S,removeScreenshot:B,removeSelection:D,saveScreenshot:q,selectedColor:I,selectionCompleted:P,setSelectedColor:j,showOverlay:N,startCapturingScreenshot:R,startPosition:A}),[O,S,I,P,N,A]);return(0,r.h)(f.Provider,{value:V},t)};var w=s(3053);const x=({align:e="center",content:t,children:s,style:o,shouldShow:n,isMobile:a,showCaret:c})=>{const[l,v]=(0,i.J0)(!1),_={sv__tooltip:!0,"sv__tooltip--align-left":"left"===e,"sv__tooltip--with-caret":!!c};return(0,r.h)("div",{"aria-describedby":"tooltip-content",className:"sv__tooltip-container",onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)},s,(n||l&&!a)&&(0,r.h)("div",{className:(0,w.A)(_),id:"tooltip-content",role:"tooltip",style:o},t))};function S(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,r.h)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},t),["\n ",(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.00008 15.8333C5.00008 16.75 5.75008 17.5 6.66675 17.5H13.3334C14.2501 17.5 15.0001 16.75 15.0001 15.8333V5.83333H5.00008V15.8333ZM15.8334 3.33333H12.9167L12.0834 2.5H7.91675L7.08341 3.33333H4.16675V5H15.8334V3.33333Z",fill:"#6F27F6"},[]),"\n ",(0,r.h)("mask",{id:"svg-RemoveScreenshotIcon-1wvi7wb",style:"mask-type:luminance",maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"12",height:"16"},["\n ",(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.00008 15.8333C5.00008 16.75 5.75008 17.5 6.66675 17.5H13.3334C14.2501 17.5 15.0001 16.75 15.0001 15.8333V5.83333H5.00008V15.8333ZM15.8334 3.33333H12.9167L12.0834 2.5H7.91675L7.08341 3.33333H4.16675V5H15.8334V3.33333Z",fill:"white"},[]),"\n "]),"\n ",(0,r.h)("g",{mask:"url(#svg-RemoveScreenshotIcon-1wvi7wb)"},["\n "]),"\n"])}function k(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,r.h)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n",(0,r.h)("path",{d:"M4.16667 13.3333H2.5V17.5H6.66667V15.8333H4.16667V13.3333ZM2.5 6.66667H4.16667V4.16667H6.66667V2.5H2.5V6.66667ZM15.8333 15.8333H13.3333V17.5H17.5V13.3333H15.8333V15.8333ZM13.3333 2.5V4.16667H15.8333V6.66667H17.5V2.5H13.3333Z",fill:"#6F27F6"},[]),"\n",(0,r.h)("path",{d:"M9.99996 10.8334C10.4602 10.8334 10.8333 10.4603 10.8333 10.0001C10.8333 9.53984 10.4602 9.16675 9.99996 9.16675C9.53972 9.16675 9.16663 9.53984 9.16663 10.0001C9.16663 10.4603 9.53972 10.8334 9.99996 10.8334Z",fill:"#6F27F6"},[]),"\n",(0,r.h)("path",{d:"M8.75004 5.83325L7.98754 6.66659H6.66671C6.20837 6.66659 5.83337 7.04159 5.83337 7.49992V12.4999C5.83337 12.9583 6.20837 13.3333 6.66671 13.3333H13.3334C13.7917 13.3333 14.1667 12.9583 14.1667 12.4999V7.49992C14.1667 7.04159 13.7917 6.66659 13.3334 6.66659H12.0125L11.25 5.83325H8.75004ZM10 12.0833C8.85004 12.0833 7.91671 11.1499 7.91671 9.99992C7.91671 8.84992 8.85004 7.91659 10 7.91659C11.15 7.91659 12.0834 8.84992 12.0834 9.99992C12.0834 11.1499 11.15 12.0833 10 12.0833Z",fill:"#6F27F6"},[]),"\n"])}function A(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,r.h)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},t),["\n ",(0,r.h)("path",{d:"M14.1667 9.1665V9.1665C11.8655 9.1665 10 7.30102 10 4.99984V4.99984V4.1665H4.16667C3.25 4.1665 2.5 4.9165 2.5 5.83317V15.8332C2.5 16.7498 3.25 17.4998 4.16667 17.4998H14.1667C15.0833 17.4998 15.8333 16.7498 15.8333 15.8332V9.1665H14.1667ZM4.16667 15.8332L6.66667 12.4998L8.33333 14.9998L10.8333 11.6665L14.1667 15.8332H4.16667Z",fill:"#6F27F6"},[]),"\n ",(0,r.h)("path",{d:"M14.1666 1.6665C12.3266 1.6665 10.8333 3.15984 10.8333 4.99984C10.8333 6.83984 12.3266 8.33317 14.1666 8.33317C16.0066 8.33317 17.4999 6.83984 17.4999 4.99984C17.4999 3.15984 16.0066 1.6665 14.1666 1.6665ZM13.4999 6.6665L11.8333 4.99984L12.3033 4.52984L13.4999 5.72317L16.0299 3.19317L16.4999 3.6665L13.4999 6.6665Z",fill:"#6F27F6"},[]),"\n"])}Object.defineProperty(S,"name",{value:"default",configurable:!0}),Object.defineProperty(k,"name",{value:"default",configurable:!0}),Object.defineProperty(A,"name",{value:"default",configurable:!0});var T=s(7402),O=s(2994),E=s(8762),P=s(8647);function C(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,r.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n",(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.125 3.75V13.5625C15.125 13.9922 14.972 14.36 14.666 14.666C14.36 14.972 13.9922 15.125 13.5625 15.125H2.0625C1.63281 15.125 1.26497 14.972 0.958979 14.666C0.652993 14.36 0.5 13.9922 0.5 13.5625V2.0625C0.5 1.63281 0.652993 1.26497 0.958979 0.958979C1.26497 0.652993 1.63281 0.5 2.0625 0.5H11.875L15.125 3.75ZM7.8125 12.6667C8.47222 12.6667 9.03299 12.4358 9.49479 11.974C9.9566 11.5122 10.1875 10.9514 10.1875 10.2917C10.1875 9.63194 9.9566 9.07118 9.49479 8.60937C9.03299 8.14757 8.47222 7.91667 7.8125 7.91667C7.15278 7.91667 6.59201 8.14757 6.13021 8.60937C5.6684 9.07118 5.4375 9.63194 5.4375 10.2917C5.4375 10.9514 5.6684 11.5122 6.13021 11.974C6.59201 12.4358 7.15278 12.6667 7.8125 12.6667ZM2.91667 6.125H10.2292V2.91667H2.91667V6.125Z",fill:"#6F27F6"},[]),"\n"])}Object.defineProperty(C,"name",{value:"default",configurable:!0});const N=({onClose:e,onSave:t,saveButtonText:s})=>{const i=(0,E.B)();return(0,r.h)("div",{className:"sv__screenshot-button__action-buttons"},(0,r.h)("button",{"aria-label":i[P.Q.SAVE_SCREENSHOT],className:"sv__screenshot-button__save sv--background-main sv--border-color-button sv--color-button sv--fill-button",id:"sv-save-button",onClick:t,tabIndex:0,type:"button"},(0,r.h)(C,null),s),(0,r.h)("button",{"aria-label":i[P.Q.CLOSE_SCREENSHOT_MODE],className:"sv__screenshot-button__close sv--background-main sv--border-color-button sv--fill-button",id:"sv-close-button",onClick:e,tabIndex:0,type:"button"},(0,r.h)(O.A,null)))};function M(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,r.h)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n",(0,r.h)("g",{"clip-path":"url(#svg-ColorPicker-3f5toIQ)"},["\n",(0,r.h)("path",{d:"M14.1667 4.16667H12.5V2.5H14.1667V4.16667ZM12.5 17.5H14.1667V15.3417L16.325 17.5L17.5 16.325L15.3417 14.1667H17.5V12.5H12.5V17.5ZM15.8333 7.5H17.5V5.83333H15.8333V7.5ZM15.8333 10.8333H17.5V9.16667H15.8333V10.8333ZM9.16667 17.5H10.8333V15.8333H9.16667V17.5ZM5.83333 4.16667H7.5V2.5H5.83333V4.16667ZM2.5 14.1667H4.16667V12.5H2.5V14.1667ZM4.16667 17.5V15.8333H2.5C2.5 16.75 3.25 17.5 4.16667 17.5ZM15.8333 2.5V4.16667H17.5C17.5 3.25 16.75 2.5 15.8333 2.5ZM9.16667 4.16667H10.8333V2.5H9.16667V4.16667ZM2.5 7.5H4.16667V5.83333H2.5V7.5ZM5.83333 17.5H7.5V15.8333H5.83333V17.5ZM2.5 10.8333H4.16667V9.16667H2.5V10.8333ZM2.5 4.16667H4.16667V2.5C3.25 2.5 2.5 3.25 2.5 4.16667Z",fill:"white"},[]),"\n"]),"\n",(0,r.h)("defs",{},["\n",(0,r.h)("clipPath",{id:"svg-ColorPicker-3f5toIQ"},["\n",(0,r.h)("rect",{width:"20",height:"20",fill:"white"},[]),"\n"]),"\n"]),"\n"])}Object.defineProperty(M,"name",{value:"default",configurable:!0});const I=()=>{const e=(0,i.NT)(f),t=(0,E.B)(P.Q.PICK_SCREENSHOT_COLOR);if(!e)return null;const{selectedColor:s,setSelectedColor:o}=e;return(0,r.h)("button",{"aria-label":t,className:"sv__screenshot-button__color-picker sv--background-main sv--border-color-button",id:"sv-color-picker-button",onClick:()=>{var e;null===(e=document.getElementById("sv-color-picker-input"))||void 0===e||e.click()},tabIndex:0,type:"button"},(0,r.h)("div",{className:"sv__color-picker-input-wrapper",style:{backgroundColor:s}},(0,r.h)(M,null),(0,r.h)("input",{className:"sv__color-picker-input",id:"sv-color-picker-input",onChange:e=>{(({target:e})=>{o(null==e?void 0:e.value)})(e)},type:"color",value:s})))},j=({startPosition:e,endPosition:t,selectedColor:s,handleStart:i,handleMove:o,handleEnd:n})=>{const a=(e,t,s,r)=>({background:"rgba(0, 0, 0, 0.5)",height:r,left:t,position:"fixed",top:e,width:s});return(0,r.h)("div",{"aria-label":(0,E.B)(P.Q.SCREENSHOT_SELECTION),className:"sv__screenshot-button-overlay",onMouseDown:e=>i(e),onMouseMove:e=>o(e),onMouseUp:n,onTouchEnd:n,onTouchMove:e=>o(e),onTouchStart:e=>i(e),role:"button",tabIndex:-1},(0,r.h)("div",{className:"sv__screenshot-button-overlay__rectangles",style:(()=>{if(!e||!t)return{};const r=Math.min(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(0,Math.abs(t.x-e.x)),n=Math.max(0,Math.abs(t.y-e.y));return{border:`2px solid ${s}`,height:`${n}px`,left:`${r}px`,position:"fixed",top:`${i}px`,width:`${o}px`}})()}),(()=>{if(!e||!t)return[a("0","0","100vw","100vh")];const s=Math.min(e.x,t.x),r=Math.min(e.y,t.y),i=Math.max(e.x,t.x),o=Math.max(e.y,t.y);return[a("0","0","100vw",`${r}px`),a(`${o}px`,"0","100vw",`calc(100vh - ${o}px)`),a(`${r}px`,"0",`${s}px`,o-r+"px"),a(`${r}px`,`${i}px`,`calc(100vw - ${i}px)`,o-r+"px")]})().map((e,t)=>(0,r.h)("div",{className:"sv__screenshot-button-overlay__rectangle",key:`rectangle-${t+1}`,style:e})))};function R(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,r.h)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n",(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.00008 15.8333C5.00008 16.75 5.75008 17.5 6.66675 17.5H13.3334C14.2501 17.5 15.0001 16.75 15.0001 15.8333V5.83333H5.00008V15.8333ZM15.8334 3.33333H12.9167L12.0834 2.5H7.91675L7.08341 3.33333H4.16675V5H15.8334V3.33333Z",fill:"#6F27F6"},[]),"\n",(0,r.h)("mask",{id:"svg-BinIcon-J4enKt2",style:"mask-type:luminance",maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"12",height:"16"},["\n",(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.00008 15.8333C5.00008 16.75 5.75008 17.5 6.66675 17.5H13.3334C14.2501 17.5 15.0001 16.75 15.0001 15.8333V5.83333H5.00008V15.8333ZM15.8334 3.33333H12.9167L12.0834 2.5H7.91675L7.08341 3.33333H4.16675V5H15.8334V3.33333Z",fill:"white"},[]),"\n"]),"\n",(0,r.h)("g",{mask:"url(#svg-BinIcon-J4enKt2)"},["\n"]),"\n"])}Object.defineProperty(R,"name",{value:"default",configurable:!0});const L=({onRemove:e,startPosition:t,endPosition:s})=>{const i={x:Math.min(t.x,s.x),y:Math.min(t.y,s.y)},o=i.y<100;return(0,r.h)("div",{className:"sv__screenshot-button__remove-wrapper",id:"sv-screenshot-remove-wrapper",style:{left:i.x,top:o?Math.max(t.y,s.y)+10:i.y,transform:o?"none":"translateY(-100%)"}},(0,r.h)("button",{"aria-label":(0,E.B)(P.Q.REMOVE_SCREENSHOT),className:"sv__screenshot-button__remove sv--background-main sv--border-color-button sv--fill-button",id:"sv-remove-button",onClick:e,tabIndex:0,type:"button"},(0,r.h)(R,null)))},D=({dragTooltipText:e,isCapturingScreenshot:t,onClose:s,onSave:i,saveButtonText:o})=>{const n=(0,T.NT)(f);if(!n)return null;const{showOverlay:a,selectedColor:c,startPosition:l,endPosition:v,selectionCompleted:_,handleStart:u,handleMove:d,handleEnd:p,removeSelection:m}=n,b=document.getElementById(h);if(!b)return console.error(`Element with ID ${h} not found in the DOM.`),null;const[g,y]=(0,T.J0)({x:-500,y:-500});return(0,T.vJ)(()=>{const e=e=>{l||y({x:e.clientX,y:e.clientY})};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)},[l]),(0,r.h)(r.Fragment,null,!l&&t&&(0,T.d5)((0,r.h)(x,{content:e,shouldShow:!0,style:{left:`${g.x}px`,pointerEvents:"none",position:"fixed",top:`${g.y}px`,transform:"translate(10px, -50%)"}},(0,r.h)("div",null)),b),a&&(0,T.d5)((0,r.h)(j,{endPosition:v,handleEnd:p,handleMove:d,handleStart:u,selectedColor:c,startPosition:l}),b),_&&l&&v&&(0,T.d5)((0,r.h)(L,{endPosition:v,onRemove:m,startPosition:l}),b),a&&(0,T.d5)((0,r.h)("div",{id:"screenshot-portal"},(0,r.h)(I,null),(0,r.h)(N,{onClose:s,onSave:()=>{i(),s()},saveButtonText:o})),b))},F=({pointId:e,saveButtonText:t,isPreview:s,takeScreenshotText:o,deleteScreenshotText:n,dragTooltipText:c})=>{const{surveyType:v}=(0,i.NT)(a.y),u=(0,i.NT)(f);if(!u)return null;const{previewDevice:d,surveyState:{screenshotState:{screenshot:p}}}=l.bX.getStore(v).getState(),m=(0,_.A)(d),{removeScreenshot:h,startCapturingScreenshot:b,closeOverlay:g,saveScreenshot:y}=u,[w,T]=(0,i.J0)(!1),[O,E]=(0,i.J0)(o),[P,C]=(0,i.J0)(!1);return(0,i.vJ)(()=>{!s&&p&&h()},[e]),(0,i.vJ)(()=>{E(s?"This feature is not available in the preview":p?n:o)},[s,p,e]),(0,r.h)("div",{className:"sv__screenshot-button-wrapper"},(0,r.h)(x,{align:"left",content:O,isMobile:m,showCaret:!0},(0,r.h)("button",{"aria-label":O,className:"sv__screenshot-button sv--background-main sv--border-color-button",onClick:()=>{if(!s){if(p)return h(),void T(!1);b(),C(!0)}},onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),tabIndex:0,type:"button"},p?w||m?(0,r.h)(S,null):(0,r.h)(A,null):(0,r.h)(k,null))),P&&(0,r.h)(D,{dragTooltipText:c,isCapturingScreenshot:P,onClose:()=>{g(),C(!1)},onSave:()=>{y(),C(!1)},saveButtonText:t}))};var z=function(e,t){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(s[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(s[r[i]]=e[r[i]])}return s};const q=e=>{var{pointId:t}=e,s=z(e,["pointId"]);return(0,r.h)(y,{pointId:t},(0,r.h)(F,Object.assign({},s,{pointId:t})))}},8762(e,t,s){"use strict";s.d(t,{B:()=>o});var r=s(5994),i=s(1746);function o(e){var t;const{staticMessages:s}=(0,r.NT)(i.x);return void 0!==e?null!==(t=s[e])&&void 0!==t?t:e:s}},9160(e,t,s){"use strict";s.d(t,{A:()=>i});var r=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const i=e=>({get:t=>r(void 0,void 0,void 0,function*(){const s=yield window.fetch(`${e}${t}`,{headers:{"Content-Type":"application/json"},method:"GET"}),r=s.headers.get("content-type");if("text/html"===r)return s.clone().text().then(e=>{/This survey is currently unavailable/.test(e)&&console.warn("Please verify your workspace key")}),{data:s,status:s.status};if(null==r?void 0:r.includes("text/plain"))return{data:null,status:s.status};return{data:yield s.json(),status:s.status}}),post:(t,s)=>r(void 0,void 0,void 0,function*(){return window.fetch(`${e}${t}`,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"},method:"POST"})})})},4031(e,t,s){"use strict";s.d(t,{A:()=>o});var r=s(5595),i=s(7057);const o=(e,t)=>null===t?e:e.filter(e=>{switch(t){case i.L0.WidgetSurvey:return e.settings.format===r.WO.Widget||e.settings.format===r.WO.Braze;case i.L0.FeedbackButton:return e.settings.format===r.WO.Feedback;default:return e}})},3053(e,t,s){"use strict";s.d(t,{A:()=>r});const r=e=>Object.entries(e).filter(([,e])=>e).map(([e])=>e).join(" ")},2197(e,t,s){"use strict";s.d(t,{O:()=>i});var r=s(831);const i=()=>r.P.isMobile()?{height:screen.height,width:screen.width}:{height:window.innerHeight,width:window.innerWidth}},1835(e,t,s){"use strict";s.d(t,{A:()=>o});var r=s(579),i=s(4397);const o=e=>e===i.t.mobile||e!==i.t.desktop&&r.A.isWidthMobile()},8477(e,t,s){"use strict";s.d(t,{j:()=>i});var r=s(7088);const i=e=>e.type===r.p.iterable?(e=>{if(!e)return console.warn("Iterable is null or undefined. Returning []."),[];try{return Array.from(e)}catch(e){return console.error("Failed to convert iterable:",e),[]}})(e.iterable):(({length:e,mapper:t,maxLength:s=1e4})=>{if(null==e)return console.warn("Length is null or undefined. Returning []."),[];const r=Number(e);if(!Number.isSafeInteger(r)||Number.isNaN(r))return console.warn("Length is not a safe integer. Returning [].",{length:e}),[];const i=Math.min(Math.max(0,r),s);i!==r&&console.warn("Adjusted array length.",{adjustedLength:i,originalLength:e});try{return t?Array.from({length:i},t):Array.from({length:i})}catch(e){return console.error("Failed to create array.",{error:e,length:i}),[]}})(e)},7088(e,t,s){"use strict";var r;s.d(t,{p:()=>r}),function(e){e.length="length",e.iterable="iterable"}(r||(r={}))},7057(e,t,s){"use strict";var r,i;s.d(t,{L0:()=>i,m5:()=>o}),function(e){e.exact="exact",e.regexp="regexp",e.end="end",e.simple="simple",e.contains="contains"}(r||(r={})),function(e){e.WidgetSurvey="WidgetSurvey",e.PageSurvey="PageSurvey",e.MobileSurvey="MobileSurvey",e.FeedbackButton="FeedbackButton",e.IntercomSurvey="IntercomSurvey"}(i||(i={}));const o=[i.WidgetSurvey,i.FeedbackButton]},5346(e,t,s){"use strict";s.d(t,{s:()=>u,y:()=>_});var r=s(172),i=s(5994),o=s(4031),n=s(9160),a=s(7057),c=s(9027),l=s(2478),v=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const _=(0,r.createContext)({}),u=({children:e,surveyType:t,initialSVDConfig:s,workspaceKey:u})=>{var d;const p=s||window._svd||{},m=window._svc||{},h=t===a.L0.MobileSurvey,b=t===a.L0.PageSurvey,g=t===a.L0.WidgetSurvey,f=t===a.L0.FeedbackButton,y=!!s,w=t===a.L0.PageSurvey?`surveys/${null===(d=p.survey)||void 0===d?void 0:d.id}`:"web_surveys",x={initialSVDConfig:s,isFeedback:f,isMobileSurvey:h,isPage:b,isPreview:y,isWidget:g,pageSurvey:b?p.survey:null,surveyType:t,surveyUpdated:!1,themes:p.themes,update:{},widgetSurveys:p.survey&&(g||f)?[p.survey]:p.surveys,workspaceKey:u},[S,k]=(0,i.J0)(x),A=()=>{navigator.onLine&&(window.removeEventListener("online",A),O())},T=()=>v(void 0,void 0,void 0,function*(){if(navigator.onLine)return v(void 0,void 0,void 0,function*(){try{const e=yield(0,n.A)("https://survey.survicate.com").get(`/workspaces/${m.workspaceKey}/${w}.json`);return 404===(null==e?void 0:e.status)?null:null==e?void 0:e.data}catch(e){return console.error("Error retrieving survey data:",e),null}});window.addEventListener("online",A)}),O=(0,i.hb)(()=>v(void 0,void 0,void 0,function*(){var e,s;try{const r=(yield T())||{};if("object"==typeof r&&!(null===(e=Object.keys(r))||void 0===e?void 0:e.length))return void c.bX.getStore(t).action(l.D)(t);const i=(null===(s=r.surveys)||void 0===s?void 0:s.length)?(0,o.A)(r.surveys,t):[];k(e=>Object.assign(Object.assign({},e),{surveyUpdated:!0,update:Object.assign(Object.assign({},r),{surveys:i})})),setTimeout(()=>k(e=>Object.assign(Object.assign({},e),{surveyUpdated:!1})),100)}catch(e){console.error("Error updating survey:",e)}}),[t]);(0,i.vJ)(()=>{if(y)return;const e=setInterval(O,18e5);return()=>{clearInterval(e),window.removeEventListener("online",A)}},[]),(0,i.vJ)(()=>{s&&k(e=>Object.assign(Object.assign({},e),{initialSVDConfig:s,isPreview:!0,surveyType:t,widgetSurveys:[s.survey]}))},[t]),(0,i.vJ)(()=>{u&&k(e=>Object.assign(Object.assign({},e),{workspaceKey:u}))},[u]);const E=(0,i.Kr)(()=>Object.assign(Object.assign({},S),{triggerConfigUpdate:O}),[S,O]);return(0,r.h)(_.Provider,{value:E},e)}},1746(e,t,s){"use strict";s.d(t,{x:()=>_,D:()=>u});var r=s(172),i=s(5994),o=s(9160),n=s(5346),a=s(9027),c=s(8647);const l={[c.Q.FIELD_REQUIRED]:"This field is required",[c.Q.COMMENT_ANSWER]:"Comment your answer",[c.Q.COMMENT_REQUIRED]:"Comment is required",[c.Q.ANSWER_REQUIRED]:"Answer is required",[c.Q.CLOSE_DROPDOWN]:"Close the dropdown list",[c.Q.OPEN_DROPDOWN]:"Open the dropdown list",[c.Q.SAVE_SCREENSHOT]:"Save the screenshot",[c.Q.CLOSE_SCREENSHOT_MODE]:"Close the screenshot capture mode",[c.Q.PICK_SCREENSHOT_COLOR]:"Pick the screenshot border color",[c.Q.SCREENSHOT_SELECTION]:"Screenshot selection area",[c.Q.REMOVE_SCREENSHOT]:"Remove the screenshot",[c.Q.CLOSE_SURVEY]:"Close the survey",[c.Q.MINIMIZE_SURVEY]:"Minimize the survey",[c.Q.MINIMIZED_SURVEY]:"Minimized Survey",[c.Q.START_SURVEY]:"Start the survey",[c.Q.FOLLOWUP_ADDED]:"Follow-up question added",[c.Q.FOLLOWUP_REMOVED]:"Follow-up question removed",[c.Q.EDITS]:"edits",[c.Q.SURVEY]:"Survey",[c.Q.VALID_DATE]:"Please enter a valid date.",[c.Q.VALID_EMAIL]:"Please enter a valid email address.",[c.Q.SELECT]:"Please select an option from the list"};var v=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const _=(0,r.createContext)({staticMessages:l}),u=({children:e})=>{const{surveyType:t,isPreview:s}=(0,i.NT)(n.y),{survey:c,translationLanguage:u}=a.bX.getStore(t).getState().surveyState,[d,p]=(0,i.J0)(l);(0,i.vJ)(()=>{c&&u&&!s&&function(){v(this,void 0,void 0,function*(){try{const e=(yield(0,o.A)("https://survey.survicate.com").get(`/translations/messages_${u}.json`)).data;p(Object.assign(Object.assign({},l),e))}catch(e){console.warn("Error loading translations:",e)}})}()},[t,u,s]);const m=(0,i.Kr)(()=>({staticMessages:d}),[d]);return(0,r.h)(_.Provider,{value:m},e)}},8647(e,t,s){"use strict";var r;s.d(t,{Q:()=>r}),function(e){e.FIELD_REQUIRED="field_required",e.COMMENT_ANSWER="comment_answer",e.COMMENT_REQUIRED="comment_required",e.ANSWER_REQUIRED="answer_required",e.CLOSE_DROPDOWN="close_dropdown",e.OPEN_DROPDOWN="open_dropdown",e.SAVE_SCREENSHOT="save_screenshot",e.CLOSE_SCREENSHOT_MODE="close_screenshot_mode",e.PICK_SCREENSHOT_COLOR="pick_screenshot_color",e.SCREENSHOT_SELECTION="screenshot_selection",e.REMOVE_SCREENSHOT="remove_screenshot",e.CLOSE_SURVEY="close_survey",e.MINIMIZE_SURVEY="minimize_survey",e.MINIMIZED_SURVEY="minimized_survey",e.START_SURVEY="start_survey",e.FOLLOWUP_ADDED="followup_added",e.FOLLOWUP_REMOVED="followup_removed",e.EDITS="edits",e.SURVEY="survey",e.VALID_DATE="valid_date",e.VALID_EMAIL="valid_email",e.SELECT="select"}(r||(r={}))},579(e,t,s){"use strict";s.d(t,{A:()=>o});var r=s(831),i=s(2197);const o=new class{constructor(){this.MOBILE_BREAKPOINT=768,this.userAgent="",this.resetUserAgent()}isAppleOS(){return!!this.userAgent.match(/Mac/i)}isWidthMobile(){if(r.P.isMobile())return!0;const{width:e}=(0,i.O)();return!!e&&e<this.MOBILE_BREAKPOINT}isBrowserIE(){return this.userAgent.includes("MSIE")||!!this.userAgent.match(/Trident.*rv\:11\./)}hasHover(){return!this.isDeviceMobileOrTablet()}isDeviceMobileOrTablet(e=""){let t=!1;var s;return s=e||this.userAgent,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(s)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(s.substr(0,4)))&&(t=!0),t}resetUserAgent(e){const t=e||window;this.userAgent=t.navigator.userAgent||t.navigator.vendor||t.opera}}},5624(e,t,s){"use strict";s.d(t,{U:()=>r});const r={audiences:[],integrations:[],permissions:null,surveys:[],targetingEvents:[],themes:[],translations:null,workspaceKey:null}},4397(e,t,s){"use strict";var r;s.d(t,{t:()=>r}),function(e){e.empty="",e.mobile="mobile",e.tablet="tablet",e.desktop="desktop"}(r||(r={}))},9027(e,t,s){"use strict";s.d(t,{bX:()=>l});var r=s(9248),i=s(5624),o=s(4397),n=s(6787);const a={backendData:i.U,backendService:null,isPreview:!1,previewDevice:o.t.empty,rootElement:null,sampledSurveys:null,satisfiedTriggers:{},storageService:null,storeType:null,surveyApiState:{surveysTriggeredByApi:[]},surveyState:n.PL,tabId:0,update:{}},c=(0,r.A)(a),l={getStore:(()=>{const e={};return t=>{if(!t)return c;const s=(e=>`store_${e}`)(t);return e[s]||(e[s]=(0,r.A)(Object.assign({},a))),e[s]}})()}},2478(e,t,s){"use strict";s.d(t,{D:()=>o});var r=s(6787),i=s(9027);function o(e,t){i.bX.getStore(t).setState({surveyState:Object.assign({},r.PL)})}},6787(e,t,s){"use strict";s.d(t,{lG:()=>o,PL:()=>n});var r=s(4397),i=s(5624);var o;!function(e){e.Light="Light",e.Dark="Dark",e.Auto="Auto"}(o||(o={}));const n={forceDisplay:!1,isAlreadyAnswered:!1,isAnimationActive:!1,isAnsweredByEmail:!1,isFinished:!1,isHidden:!1,isMinimized:!1,isOverlayActive:!1,isRTLLanguage:!1,isTabActive:!1,pointsAnswered:{},pointsDisplayed:[],pointsForward:[],responseUuid:"",screenshotState:{isEnabled:!1,screenshot:null},survey:null,theme:null,themeMode:o.Auto,translationLanguage:null,translations:null,triggeredPointPreview:null};i.U,r.t.desktop},1002(e,t,s){"use strict";s.d(t,{UL:()=>o,dN:()=>i,p2:()=>n});var r=s(9027);function i({surveyState:e,storeType:t},s){var i,o;r.bX.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{screenshotState:{isEnabled:null!==(o=null===(i=e.screenshotState)||void 0===i?void 0:i.isEnabled)&&void 0!==o&&o,screenshot:s}})})}function o({surveyState:e,storeType:t}){r.bX.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{screenshotState:{isEnabled:!1,screenshot:null}})})}function n({surveyState:e,storeType:t},s){var i,o;r.bX.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{screenshotState:{isEnabled:s,screenshot:null!==(o=null===(i=e.screenshotState)||void 0===i?void 0:i.screenshot)&&void 0!==o?o:null}})})}},9248(e,t,s){"use strict";function r(e,t){for(var s in t)e[s]=t[s];return e}function i(e){var t=[];function s(e){for(var s=[],r=0;r<t.length;r++)t[r]===e?e=null:s.push(t[r]);t=s}function i(s,i,o){e=i?s:r(r({},e),s);for(var n=t,a=0;a<n.length;a++)n[a](e,o)}return e=e||{},{action:function(t){function s(e){i(e,!1,t)}return function(){for(var r=arguments,i=[e],o=0;o<arguments.length;o++)i.push(r[o]);var n=t.apply(this,i);if(null!=n)return n.then?n.then(s):s(n)}},setState:i,subscribe:function(e){return t.push(e),function(){s(e)}},unsubscribe:s,getState:function(){return e}}}s.d(t,{A:()=>i}),Object.defineProperty(i,"name",{value:"default",configurable:!0})},9635(e,t,s){var r=s(172);function i(e,t){for(var s in t)e[s]=t[s];return e}function o(e){this.getChildContext=function(){return{store:e.store}}}o.prototype.render=function(e){return e.children&&e.children[0]||e.children},t.N=function(e,t){var s;return"function"!=typeof e&&("string"==typeof(s=e||{})&&(s=s.split(/\s*,\s*/)),e=function(e){for(var t={},r=0;r<s.length;r++)t[s[r]]=e[s[r]];return t}),function(s){function o(o,n){var a=this,c=n.store,l=e(c?c.getState():{},o),v=t?function(e,t){"function"==typeof e&&(e=e(t));var s={};for(var r in e)s[r]=t.action(e[r]);return s}(t,c):{store:c},_=function(){var t=e(c?c.getState():{},o);for(var s in t)if(t[s]!==l[s])return l=t,a.setState({});for(var r in l)if(!(r in t))return l=t,a.setState({})};this.componentWillReceiveProps=function(e){o=e,_()},this.componentDidMount=function(){c.subscribe(_)},this.componentWillUnmount=function(){c.unsubscribe(_)},this.render=function(e){return r.h(s,i(i(i({},v),e),l))}}return(o.prototype=new r.Component).constructor=o}},t.K=o},9612(e,t,s){"use strict";s.d(t,{A:()=>n});const r=new Uint8Array(16);const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function o(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}const n=function(e,t,s){return t||e||!crypto.randomUUID?function(e,t,s){e=e||{};const i=e.random??e.rng?.()??crypto.getRandomValues(r);if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((s=s||0)<0||s+16>t.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[s+e]=i[e];return t}return o(i)}(e,t,s):crypto.randomUUID()}}},t={};function s(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var r={};return(()=>{"use strict";s.d(r,{default:()=>D_});var e=s(9612);const t=()=>{try{if("function"==typeof Date.now){const e=Date.now();if("number"==typeof e&&Number.isFinite(e))return e}}catch(e){console.warn("[getTimestamp] Date.now is not a function")}return(new Date).getTime()},i=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e);var o=s(9248);const n=(0,o.A)({events:[],isEnabled:!1});class a{constructor(){this.localStorage=window.localStorage,this.persistent=!0,this.getItem=e=>this.localStorage.getItem(e),this.setItem=(e,t)=>this.localStorage.setItem(e,t),this.removeItem=e=>this.localStorage.removeItem(e),this.keys=()=>{const e=[];for(let t=0;t<this.localStorage.length;t++){const s=this.localStorage.key(t);null!==s&&e.push(s)}return e}}}const c=e=>{try{return JSON.parse(e)}catch(t){return e}};var l=s(7057);class v{constructor(){this.store={},this.persistent=!1,this.getItem=e=>e in this.store?this.store[e]:null,this.setItem=(e,t)=>{this.store[e]=t},this.removeItem=e=>{delete this.store[e]},this.keys=()=>Object.keys(this.store)}}class _{constructor(e){this.storeType=e,this.storage=this.initStorage()}get prefix(){var e,t;return`survi::${null!==(t=null===(e=window._svc)||void 0===e?void 0:e.workspaceKey)&&void 0!==t?t:""}::${this.storeType===l.L0.FeedbackButton?`${this.storeType}::`:""}`}safe(e,t=void 0){var s;try{return e()}catch(r){if(this.storage.persistent){const t=this.storage;return this.storage=new v,null===(s=this.migrateFrom)||void 0===s||s.call(this,t),e()}return console.warn("[BaseStore] Error:",r),t}}get(e,t=!1){const s=(t?"":this.prefix)+e;return this.safe(()=>c(this.storage.getItem(s)),null)}set(e,t,s=!1){const r=(s?"":this.prefix)+e,i=JSON.stringify(t);this.safe(()=>this.storage.setItem(r,i))}remove(e,t=!1){const s=(t?"":this.prefix)+e;this.safe(()=>this.storage.removeItem(s))}each(e){this.safe(()=>{this.storage.keys().filter(e=>e.startsWith(this.prefix)).forEach(t=>e(this.get(t,!0),t))})}}var u,d,p,m,h,b,g,f,y=s(831);function w(e,t){if(y.P.isSandboxed())return new v;try{const s=e(),r="__probe__";return s.setItem(r,r),s.removeItem(r),t()}catch(e){return new v}}!function(e){e.requests="requests",e.requests_contacts="requests_contacts",e.status="status",e.all="all",e.visitor="",e.backendCache="backendCache",e.backendAttributes="backendAttributes"}(u||(u={})),function(e){e.visitor="visitor",e.requestHandler="requestHandler",e.identityUuidPairs="identityUuidPairs"}(d||(d={})),function(e){e.visitorAttributes="visitorAttributes",e.visitorIdentities="visitorIdentities",e.identityUuidPairs="identityUuidPairs"}(p||(p={})),function(e){e.EventStore="EventStore"}(m||(m={})),function(e){e.events="events"}(h||(h={})),function(e){e.UrlConfigStore="UrlConfigStore"}(b||(b={})),function(e){e.BackendAttributesStore="BackendAttributesStore"}(g||(g={})),function(e){e.VisitorStore="VisitorStore"}(f||(f={}));class x extends _{initStorage(){return w(()=>window.localStorage,()=>new a)}migrateFrom(e){try{e.keys()}catch(e){return void console.warn("[LocalStore] Migration aborted: Unable to enumerate keys, storage is blocked")}try{e.keys().filter(e=>e.startsWith(this.prefix)).forEach(t=>{if(t.includes(`${this.prefix}${u.requests}`))return void e.removeItem(t);const s=e.getItem(t);null!==s&&this.storage.setItem(t,s)})}catch(e){console.warn("[LocalStore] Migration aborted:",e)}}}const S=(()=>{const e={};return{getStore:t=>(e[t]||(e[t]=new x(t)),e[t])}})(),k="contactsUrl",A="contactsUrlFailure",T=S.getStore(b.UrlConfigStore),O=(()=>{const e=T.get(k);return e?{contactsUrl:e}:{contactsUrl:null}})(),E={contactsUrl:(null==O?void 0:O.contactsUrl)||null,respondentUrl:"https://respondent.survicate.com",surveysStaticUrl:"https://surveys-static.survicate.com"},P=(0,o.A)(E);var C=s(9160),N=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const M=e=>N(void 0,void 0,void 0,function*(){try{200!==(yield(0,C.A)(P.getState().respondentUrl).post(`/workspaces/${window._svc.workspaceKey}/targeting_event.json`,e)).status&&n.setState({isEnabled:!1})}catch(e){console.error("Error sending event to backend:",e),n.setState({isEnabled:!1})}});const I=function(e,t=255){return"string"!=typeof e?String(e).substring(0,t):e.substring(0,t)};var j,R,L,D,F,z,q,U,$,B,V,H,W;!function(e){e.nps="nps"}(j||(j={})),function(e){e.default="default",e.horizontal="horizontal"}(R||(R={})),function(e){e.hearts="hearts",e.stars="stars",e.thumbs="thumbs"}(L||(L={})),function(e){e.day="DD",e.month="MM",e.year="YYYY"}(D||(D={})),function(e){e.single="single",e.multiple="multiple",e.text="text",e.smileyScale="smiley_scale",e.date="date",e.rating="rating",e.dropdown="dropdown_list",e.matrix="matrix",e.ranking="ranking",e.numericalScale="numerical_scale",e.customerSatisfaction="csat"}(F||(F={})),function(e){e.verySad="Extremely unsatisfied",e.sad="Unsatisfied",e.neutral="Neutral",e.happy="Happy",e.veryHappy="Extremely happy"}(z||(z={})),function(e){e.referrerUrl="visitReferrerUrl",e.initialUrl="visitInitialUrl",e.displayedSurveys="visitDisplayedSurveys",e.views="visitViews",e.engaged="visitEngaged",e.answers="visitAnswers",e.sampledSurveys="visitSampledSurveys",e.responseAttributes="visitResponseAttributes",e.forcedLanguage="visitForcedLanguage"}(q||(q={})),function(e){e.uuid="visitorUuid",e.attributes="visitorAttributes",e.engagedSurveys="visitorEngagedSurveys",e.displayedSurveys="visitorDisplayedSurveys",e.identities="visitorIdentities",e.tags="visitorTags",e.visitsCount="visitsCount",e.validation="validation"}(U||(U={})),function(e){e.requestHandler="requestHandler",e.savedVisitor="visitorSaved"}($||($={})),function(e){e.state="singleTabState",e.tabId="singleTabId"}(B||(B={})),function(e){e.errorSent="errorSent"}(V||(V={})),function(e){e.surveys="cacheSurveys",e.audiences="cacheAudiences"}(H||(H={})),function(e){e.sessionViews="unifiedSessionViews"}(W||(W={}));class K{constructor(){this.sessionStorage=window.sessionStorage,this.persistent=!0,this.getItem=e=>this.sessionStorage.getItem(e),this.setItem=(e,t)=>this.sessionStorage.setItem(e,t),this.removeItem=e=>this.sessionStorage.removeItem(e),this.keys=()=>{const e=[];for(let t=0;t<this.sessionStorage.length;t++){const s=this.sessionStorage.key(t);null!==s&&e.push(s)}return e}}}class J extends _{initStorage(){return w(()=>window.sessionStorage,()=>new K)}}const X=(()=>{const e={};return{getStore:t=>(e[t]||(e[t]=new J(t)),e[t])}})();var G;!function(e){e.questionAnswered="question_answered",e.surveyDisplayed="survey_displayed",e.surveyCompleted="survey_completed",e.surveyClosed="survey_closed"}(G||(G={}));const Y=new class{constructor(){this.lastEventId=0,this.listeners={[G.questionAnswered]:[],[G.surveyClosed]:[],[G.surveyCompleted]:[],[G.surveyDisplayed]:[]}}add(e,t){if(this.lastEventId+=1,!this.listeners[e])throw new Error("Event Listeners: Wrong event name.");return this.listeners[e].push({callback:t,id:this.lastEventId}),this.lastEventId}removeEventById(e){const t=t=>t.id!==e;this.listeners[G.questionAnswered]=this.listeners[G.questionAnswered].filter(t),this.listeners[G.surveyDisplayed]=this.listeners[G.surveyDisplayed].filter(t),this.listeners[G.surveyCompleted]=this.listeners[G.surveyCompleted].filter(t),this.listeners[G.surveyClosed]=this.listeners[G.surveyClosed].filter(t)}removeAllEventListenersByName(e){if(!this.listeners[e])throw new Error("Event listeners of this name cannot be removed: wrong event name.");this.listeners[e]=[]}remove(e){"number"!=typeof e?this.removeAllEventListenersByName(e):this.removeEventById(e)}fireEvent(e,t){this.listeners[e].forEach(({callback:s})=>{const{surveyId:r,questionId:i,answer:o,surveyName:n}=t;try{e===G.questionAnswered&&i&&o&&s(r,i,o),e===G.surveyDisplayed&&n?s(r,n):s(r,o)}catch(t){console.error(`Your callback function to Survicate '${e}' event returned an error: ${t}`)}})}};class Q{static error(e,t){var s,r,i,o;if((null===(s=t.stack)||void 0===s?void 0:s.includes("Http.ts:"))||"Failed to fetch"===t.message||(null===(r=t.message)||void 0===r?void 0:r.toLowerCase().includes("fetch"))||(null===(i=t.stack)||void 0===i?void 0:i.toLowerCase().includes("fetch")))return void this.warn(`HTTP Error: ${t.message}`,t);if(X.getStore(e).get(V.errorSent))return;X.getStore(e).set(V.errorSent,!0);const n={errorDetails:t.errorDetails,installationMethod:null===(o=null===window||void 0===window?void 0:window._svx)||void 0===o?void 0:o.installation,message:t.message,stack:t.stack};this.log({error:n,level:"ERROR"})}static warn(e,t){this.log({error:t,level:"WARN",message:e})}static log(e){const t=window._svc||{};(0,C.A)(P.getState().respondentUrl).post(`/workspaces/${t.workspaceKey}/logs.json`,Object.assign(Object.assign({},e),{url:document.location.toString(),user_agent:window.navigator.userAgent,version:"28.25.1"}))}static isSurvicateError(e=""){return!e.match(/https:\/\/(?!surveys)[^]*Generator\._invoke/)&&(e.includes("widget_core")||e.includes("page_core"))}static shouldLogError(e,t){return!(!t||!t.stack)&&(Q.isSurvicateError(t.stack)&&!X.getStore(e).get(V.errorSent)&&![/Network Error/,/Navigating/,/quota/,/invalid security context/].some(e=>!!t.message.match(e)))}static initGlobalErrorsWatch(e){window.addEventListener("error",function t(s){Q.shouldLogError(e,s.error)&&(Q.error(e,s.error),window.removeEventListener("error",t))}),window.addEventListener("unhandledrejection",function t(s){s.reason&&s.reason.stack&&Q.shouldLogError(e,s.reason)&&(Q.error(e,s.reason),window.removeEventListener("unhandledrejection",t))})}}const Z=Q;var ee,te,se;!function(e){e.answered="answered_v3.json",e.interactions="survey_interactions",e.seen="seen.json",e.targeting="targeting",e.userAttributes="user_attributes",e.userEvents="user_events",e.userVerification="verify_user"}(ee||(ee={})),function(e){e.answered="answered",e.closed="closed",e.completed="completed",e.seen="seen"}(te||(te={})),function(e){e.CONTACTS="/contacts",e.WORKSPACES="/workspaces",e.SURVEYS="/surveys"}(se||(se={}));const re=e=>new Promise(t=>{setTimeout(t,e)});(Object.getOwnPropertyDescriptor(re,"name")||{}).writable||Object.defineProperty(re,"name",{value:"default",configurable:!0});const ie=e=>{if(!e)return{};const t={};for(const[s,r]of Object.entries(e))t[s]=r.value;return t},oe="user_key",ne=e=>Object.assign(Object.assign({},e),{response_attributes:void 0}),ae=e=>{const t=Object.assign({},e.attributes);return t&&oe in t&&delete t[oe],Object.assign(Object.assign({},e),{attributes:t})},ce=(e,t)=>{var s,r;return{attributes:ie(e.attributes),identities:e.identities,tags:t&&null!==(r=null===(s=e[t])||void 0===s?void 0:s.tags)&&void 0!==r?r:[],uuid:e.uuid}};class le{isSuccess(){return!1}}class ve{constructor(e){this.responseData=e}isSuccess(){return!0}getResponseData(){return this.responseData}}var _e=s(9027);class ue{static ruleFulfilled(e,t,s){let r=s.href.replace("://www.","://").replace(`${s.protocol}//`,"");try{r=decodeURI(r)}catch(e){console.warn("Could not decode URL",e)}if(e)return!0;const i=t.filter(e=>!e.visible&&!!e.link&&!!e.regexp_text_pattern);if(this.linksMatchUrl(i,s.href,r))return!1;const o=t.filter(e=>e.visible&&!!e.link&&!!e.regexp_text_pattern);return!o.length||this.linksMatchUrl(o,s.href,r)}static linksMatchUrl(e,t,s){for(let r=0;r<e.length;r+=1){const i=new RegExp(e[r].regexp_text_pattern);if(i.test(t)||i.test(s))return!0}return!1}}var de=s(6880),pe=s.n(de);function me(e){if(!e)return null;try{return pe().getParser(e)}catch(e){return null}}var he,be=s(3694);!function(e){e.visitor="visitor",e.response="response"}(he||(he={}));const ge=(e,t,s=he.visitor)=>{if(s===he.visitor&&t===be.USER_ID_TRAIT)return!1;if("number"==typeof e||"boolean"==typeof e||e instanceof Date)return!0;return!/^({.*})|(\*\|.*\|\*)|(\[.*\])|(%.*%)|(~.*~)|(--.*--)|(\$.*\$)$/.test(e)},fe=()=>{var e,t,s,r;return null!==(r=(null===(e=window._sva)||void 0===e?void 0:e.disableSensitiveDataPersistence)||(null===(s=null===(t=window._svd)||void 0===t?void 0:t.flags)||void 0===s?void 0:s.disable_sensitive_data_persistence))&&void 0!==r&&r};class ye{static getStorage(e){return fe()?X.getStore(e):S.getStore(e)}}var we;!function(e){e.aid="aid",e.multiple_responses="multiple_responses",e.sid="sid",e.uid="uid",e.p="p",e.autofocus="autofocus"}(we||(we={}));class xe{constructor(){this.params={},this.identitiesParams={},this.searchString=window.location.search.substring(1),this.url=this.getUrl(),this.identitiesParams=this.searchString?this.parseIdentitiesParams(this.searchString):{},this.params=this.searchString?this.getParams():{}}hasEncodedParams(e){return!!this.parseParams(e)[xe.ENCODED_PARAMS_KEY]}getDecodedSearchString(e){if(!e)return"";const t=e.startsWith("?")?e.substring(1):e;if(t.includes(`${xe.ENCODED_PARAMS_KEY}=`))try{return atob(t.split(`${xe.ENCODED_PARAMS_KEY}=`)[1]).substring(1)}catch(e){return console.warn(`Error decoding search string: ${e}`),""}return t}getParams(){return this.getParamsFromSearchString(this.searchString)}getParamsFromSearchString(e){if(!e)return{};const t=this.getDecodedSearchString(e);return t?this.parseParams(t):{}}getPointId(){return this.getParams().pointId||null}getUrl(){const e=this.getDecodedSearchString(this.searchString);return`${window.location.origin}${window.location.pathname}${e?`?${e}`:""}${window.location.hash}`}static normalizeParamKey(e){return e.startsWith("amp;")?e.slice(4):e}parseParams(e){const t={};return e.split("&").forEach(e=>{const[s,r]=e.split("=");if(!r)return;const i=xe.normalizeParamKey(s);try{t[i]=decodeURIComponent(r)}catch(e){console.warn(e),t[i]=r}}),t}parseIdentitiesParams(e){const t={};return e.split("&").forEach(e=>{const[s,r]=e.split("="),i=xe.normalizeParamKey(s);if(s===xe.ENCODED_PARAMS_KEY&&r)try{atob(r).split("&").forEach(e=>{const[s,r]=e.split("="),i=xe.normalizeParamKey(s);r&&!r.includes("%")&&(t[i]=r)})}catch(e){console.warn(`Error decoding ${xe.ENCODED_PARAMS_KEY}: ${e}`)}r&&!r.includes("%")&&(t[i]=r)}),t}replaceWindowUrl(){if(_e.bX.getStore(l.L0.PageSurvey).getState().isPreview||this.hasEncodedParams(this.searchString)||!this.searchString)return;const e=`?${this.searchString}`,t=`?${xe.ENCODED_PARAMS_KEY}=`,s=e.includes(t)?t:`${t}${btoa(e)}`;window.history.replaceState({},"",s)}}xe.ENCODED_PARAMS_KEY="_svbep";const Se=new xe;var ke;!function(e){e.Language="language",e.UserAgent="userAgent"}(ke||(ke={}));class Ae{constructor(e){this.surveyType=e,this.sessionStore=X.getStore(this.surveyType),this.answersStorage=ye.getStorage(this.surveyType);const t=this.sessionStore.get(q.initialUrl),s=this.sessionStore.get(q.referrerUrl);this.visitData=this.initializeVisitData(t,s),this.setCurrentView(),t!==this.visitData.initialUrl&&this.sessionStore.set(q.initialUrl,this.visitData.initialUrl),s!==this.visitData.referrerUrl&&this.sessionStore.set(q.referrerUrl,this.visitData.referrerUrl)}static getVisit(e){return new Ae(e)}getNavigatorProperty(e){var t,s;if("undefined"==typeof window)return"";try{return null!==(s=null===(t=window.navigator)||void 0===t?void 0:t[e])&&void 0!==s?s:""}catch(e){return""}}initializeVisitData(e,t){var s;const r="undefined"!=typeof window?Se.getUrl().replace(`${window.location.protocol}//`,""):"",i="undefined"!=typeof window&&(null===(s=window.optimizely)||void 0===s?void 0:s.get)?window.optimizely.get("state"):void 0;return{answers:this.getVisitAnswers(),device_type:this.getDeviceType(),displayedSurveys:this.getDisplayedSurveys(),engaged:this.getEngaged(),forcedLanguage:this.getForcedLanguageFromStorage(),initialUrl:e||r,language:this.getNavigatorProperty(ke.Language),operating_system:this.getOperatingSystem(),optimizelyState:i,referrerUrl:t||this.getReferrer(),responseAttributes:this.getResponseAttributes(),sampledSurveys:this.getSampledSurveys(),user_agent:this.getNavigatorProperty(ke.UserAgent),views:this.getViews()}}setCurrentView(){if("undefined"==typeof window)return;const e=Se.getUrl().replace(`${window.location.protocol}//`,"");Array.isArray(this.visitData.views)||(this.visitData.views=[],this.sessionStore.set(q.views,this.visitData.views)),this.visitData.views.includes(e)||(this.visitData.views.push(e),this.sessionStore.set(q.views,this.visitData.views))}get(){return this.visitData}getVisitAnswers(){return this.answersStorage.get(q.answers)||{}}getAnswer(e){return this.visitData.answers[e]}getDisplayedSurveys(){return this.sessionStore.get(q.displayedSurveys)||[]}getSampledSurveys(){return this.sessionStore.get(q.sampledSurveys)||[]}getReferrer(){return document.referrer}getDeviceType(){const e=this.getNavigatorProperty(ke.UserAgent);if(!e)return null;const t=me(e);if(!t)return null;let s=(r=t.getPlatformType()).charAt(0).toUpperCase()+r.slice(1);var r;return["Desktop","Tablet","Mobile","Tv"].includes(s)||(s=null),s}getOperatingSystem(){const e=this.getNavigatorProperty(ke.UserAgent);if(!e)return null;const t=me(e);if(!t)return null;const s=t.getOSName();return s?["Windows","macOS","iOS","Android","Linux","Chrome OS"].includes(s)?s:"Other":null}getViews(){const e=this.sessionStore.get(q.views);return Array.isArray(e)?e:[]}getEngaged(){return this.sessionStore.get(q.engaged)||!1}getForcedLanguageFromStorage(){return this.sessionStore.get(q.forcedLanguage)||null}getForcedLanguage(){return this.visitData.forcedLanguage}setForcedLanguage(e){this.visitData.forcedLanguage=e,this.sessionStore.set(q.forcedLanguage,e)}addAnswer(e,t){const s=Object.assign(Object.assign({},this.visitData.answers),{[e]:t});this.answersStorage.set(q.answers,s),this.visitData.answers=s}setEngaged(){this.visitData.engaged=!0,this.sessionStore.set(q.engaged,!0)}addDisplayedSurvey(e){var t;const s=this.getDisplayedSurveys(),r={surveyId:e,timestamp:(new Date).getTime()},i=s.findIndex(t=>(t.surveyId||t)===e);-1!==i?s[i]=Object.assign(Object.assign({},r),{count:(null!==(t=s[i].count)&&void 0!==t?t:0)+1}):s.push(Object.assign(Object.assign({},r),{count:1})),this.sessionStore.set(q.displayedSurveys,s),this.visitData.displayedSurveys=s}addSampledSurvey(e,t){const s=this.getSampledSurveys(),r={sampled:t,surveyId:e},i=s.findIndex(t=>(t.surveyId||t)===e);-1!==i?s[i]=r:s.push(r),this.sessionStore.set(q.sampledSurveys,s),this.visitData.sampledSurveys=s}setResponseAttributes(e){if(!e||!Array.isArray(e))return;const t=[...this.visitData.responseAttributes||[]];e.forEach(e=>{if(!e.name)return;const s=I(e.name);let r=e.value;if("number"==typeof r||"boolean"==typeof r||r instanceof Date||(r=I(`${null!=r?r:""}`)),!ge(r,s,he.response))return;const i=t.findIndex(e=>e.name===s),o=Object.assign({name:s,value:r},e.provider&&{provider:e.provider});i>=0?t[i]=o:t.push(o)}),this.sessionStore.set(q.responseAttributes,t),this.visitData.responseAttributes=t}clearResponseAttributes(){this.sessionStore.remove(q.responseAttributes),this.visitData.responseAttributes=void 0}getResponseAttributes(){var e;return null!==(e=this.sessionStore.get(q.responseAttributes))&&void 0!==e?e:void 0}resetVisit(){this.answersStorage.remove(q.answers),this.visitData.answers={},this.visitData.views=[],this.visitData.displayedSurveys=[],this.visitData.sampledSurveys=[],this.visitData.engaged=!1,this.clearResponseAttributes(),this.sessionStore.remove(q.engaged),this.sessionStore.remove(q.views),this.sessionStore.remove(q.displayedSurveys),this.sessionStore.remove(q.sampledSurveys),this.setCurrentView()}}const Te=Ae;class Oe{static ruleFulfilled(e,{sampledSurveys:t},s){if(e.settings.display_percentage>=100||!s)return!0;const r=t.find(t=>(t.surveyId||t)===e.id);if(r)return r.sampled;const i=100*Math.random()<=e.settings.display_percentage;return Te.getVisit(s).addSampledSurvey(e.id,i),i}}class Ee{static ruleFulfilled({storeType:e,survey:s,visitor:r}){var i,o,n;if(s.backendTargeted)return!0;const a=null!==(i=(null==s?void 0:s.settings).survey_throttle)&&void 0!==i?i:0,c=e?[...null!==(n=null===(o=r[e])||void 0===o?void 0:o.displayedSurveys)&&void 0!==n?n:[]]:[];if(a&&c.length>0){const e=Math.max(...c.map(e=>e.timestamp)),s=864e5*a;return t()-e>=s}return!0}}class Pe{static areFulfilled({survey:e,visit:t,visitor:s,storeType:r}){return _n.ruleFulfilled({storeType:r,survey:e,visit:t,visitor:s})&&Ee.ruleFulfilled({storeType:r,survey:e,visitor:s})&&ue.ruleFulfilled(e.settings.display_all,e.links,document.location)&&Oe.ruleFulfilled(e,t,r)}}var Ce,Ne,Me,Ie,je,Re,Le,De,Fe=s(5595);class ze{static ruleFulfilled(e,{delayed:t},s){const r=e.settings;if((null==r?void 0:r.appear_method)!=Fe.$7.delayed)return!0;if("number"==typeof t)return(null==r?void 0:r.display_delay)<=t;const i=null==s?void 0:s.delayed;return"number"==typeof i&&(null==r?void 0:r.display_delay)<=i}}class qe{static ruleFulfilled(e,{eventTrigger:t,eventDelay:s}){var r;const i=null==e?void 0:e.settings;if((null==i?void 0:i.appear_method)!==Fe.$7.event||"number"!=typeof s)return!0;const o=null!==(r=null==i?void 0:i.events)&&void 0!==r?r:[];return!!o.length&&o.some(e=>{var r,i;return(null!==(i=null===(r=e.settings)||void 0===r?void 0:r.delay)&&void 0!==i?i:0)===s&&e.name===(null==t?void 0:t.name)})}}!function(e){e.on="on",e.before="before",e.after="after"}(Ce||(Ce={})),function(e){e.exact="exact",e.any="any",e.is_not_equal="is_not_equal",e.is_equal="is_equal",e.is_between="is_between",e.is_not_between="is_not_between",e.is_on_the_date="is_on_the_date",e.is_earlier_than="is_earlier_than",e.is_later_than="is_later_than",e.is_less_than="is_less_than",e.is_less_than_or_equal="is_less_than_or_equal",e.is_true="is_true",e.is_false="is_false",e.is_greater_than="is_greater_than",e.is_greater_than_or_equal="is_greater_than_or_equal",e.contains="contains",e.does_not_contain="does_not_contain",e.exists="exists",e.does_not_exist="does_not_exist"}(Ne||(Ne={})),function(e){e.and="and",e.or="or"}(Me||(Me={})),function(e){e.exact="exact",e.any="any"}(Ie||(Ie={})),function(e){e.all="All",e.mobile="Mobile",e.desktop="Desktop"}(je||(je={})),function(e){e.identified="identified",e.unidentified="unidentified"}(Re||(Re={})),function(e){e.search="search",e.referral="referral",e.direct="direct",e.utm="utm"}(Le||(Le={})),function(e){e.attributes="attributes",e.backendTargeting="backend_targeting",e.browser="browser",e.cookies="cookies",e.device="device",e.languages="languages",e.loggedInStatus="logged_in_status",e.operatingSystem="operating_system",e.optimizely="optimizely",e.tags="tags",e.visitDepth="visit_depth",e.visitedUrls="visited_urls",e.visitFrequency="visit_frequency",e.visitSource="visit_source"}(De||(De={}));const Ue=(e,t)=>{const[s,r]=e;return t>=s&&t<=r};class $e{static compareDates(e,t,s){switch(e){case Ce.on:return t===s;case Ce.before:return t>s;case Ce.after:return t<s}}static isPresent(e){return null!=e&&("string"!=typeof e||""!==e.trim())}static isEqual(e,t){return e.some(e=>e===t)}static isNotEqual(e,t){return e.every(e=>e!==t)}static isLessThan(e,t){return t<e}static isLessThanOrEqual(e,t){return t<=e}static isGreaterThan(e,t){return t>e}static isGreaterThanOrEqual(e,t){return t>=e}static getTimeThreshold(e){return(new Date).getTime()-e}}const Be=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Ve=(e,t)=>{const s=new Date(e[0]),r=new Date(e[1]),i=new Date(t);return i>=s&&i<=r||Be(i,s)||Be(i,r)},He=({operator:e,storedValue:t,timeDifference:s,targetValue:r})=>{let i;const o=null!=s?s:t;if(Array.isArray(r))i=r.map(e=>"string"==typeof e?new Date(e).getTime():e);else if("number"==typeof r)i=r;else{if("string"!=typeof r)return console.error("Unsupported targetValue type: "+typeof r),!1;i=new Date(r).getTime()}const n="string"==typeof t?new Date(t).getTime():t;switch(e){case Ne.is_equal:return n===i;case Ne.is_not_equal:return n!==i;case Ne.is_greater_than:return"number"==typeof i&&$e.isGreaterThan(i,o);case Ne.is_greater_than_or_equal:return"number"==typeof i&&$e.isGreaterThanOrEqual(i,o);case Ne.is_less_than:return"number"==typeof i&&$e.isLessThan(i,o);case Ne.is_less_than_or_equal:return"number"==typeof i&&$e.isLessThanOrEqual(i,o);case Ne.is_between:return Array.isArray(r)&&"string"==typeof t?Ve(r,t):Array.isArray(i)&&Ue([i[0],i[1]],n);case Ne.is_not_between:return Array.isArray(r)&&"string"==typeof t?!Ve(r,t):Array.isArray(i)&&!Ue([i[0],i[1]],n);default:return console.error(`Unsupported EventTimeOperator: ${e}`),!1}};class We{static ruleFulfilled(e,{eventTrigger:t}){var s;const r=null==e?void 0:e.settings;if(r.appear_method!==Fe.$7.event)return!0;const i=null!==(s=r.events)&&void 0!==s?s:[];return!(!i.length||!t)&&i.some(e=>t.name===e.name&&this.evaluateEventOccurrenceMatch(e))}static evaluateEventOccurrenceMatch(e){var t;const s=null===(t=e.settings)||void 0===t?void 0:t.occurrences;if(!s)return!0;const{events:r}=n.getState(),i=r.find(t=>t.name===e.name);if(!i||!i.occurrences)return!1;return this.checkOccurrenceCondition({occurrences:i.occurrences,operator:s.operator,targetOccurrences:this.getTargetOccurrences(s)})}static checkOccurrenceCondition({operator:e,occurrences:t,targetOccurrences:s}){return!(!s||Array.isArray(s)&&!s.length)&&He({operator:e,storedValue:t,targetValue:s})}static getTargetOccurrences(e){return e.operator===Ne.is_between||e.operator===Ne.is_not_between?e.value:e.value[0]}}var Ke,Je;!function(e){e.and="and",e.or="or"}(Ke||(Ke={})),function(e){e.is="is",e.is_not="is_not",e.is_between="is_between",e.is_exactly="is_exactly",e.includes_any_of_the_following="includes_any_of_the_following",e.includes_all_of_the_following="includes_all_of_the_following",e.doesnt_include_any_of_the_following="doesnt_include_any_of_the_following",e.question_is_answered="question_is_answered",e.question_is_not_answered="question_is_not_answered",e.answer_contains="answer_contains",e.answer_doesnt_contain="answer_doesnt_contain",e.has_any_value="has_any_value",e.is_filled_in="is_filled_in",e.is_not_filled_in="is_not_filled_in",e.is_ranked_as="is_ranked_as",e.is_not_ranked_as="is_not_ranked_as",e.is_ranked_between="is_ranked_between"}(Je||(Je={}));const Xe=(e,{value:t,operator:s,condition:r})=>{const i=e?e.toLowerCase():"",o=t.map(e=>e.toLowerCase()),n=o.every(e=>i.includes(e)),a=o.some(e=>i.includes(e));return s===Ke.and?r===Je.answer_contains?n:a:r===Je.answer_contains?a:n},Ge=({operator:e,userAttribute:t,clientAttributes:s,attribute_type:r="string"})=>{switch(e){case Ne.any:return void 0!==t;case Ne.exists:return $e.isPresent(t);case Ne.does_not_exist:return!$e.isPresent(t)}if(!s.length)return!1;if((e===Ne.is_between||e===Ne.is_not_between)&&s.length<2)return console.error("Not enough values for 'is_between' checks"),!1;switch(e){case Ne.is_equal:return $e.isEqual(s,t);case Ne.is_not_equal:return $e.isNotEqual(s,t);case Ne.is_between:return Ue([s[0],s[1]],t);case Ne.is_not_between:return!Ue([s[0],s[1]],t);case Ne.is_on_the_date:return $e.compareDates(Ce.on,s[0],t);case Ne.is_earlier_than:return $e.compareDates(Ce.before,s[0],t);case Ne.is_later_than:return $e.compareDates(Ce.after,s[0],t);case Ne.is_less_than:return"time_interval"===r?$e.compareDates(Ce.after,$e.getTimeThreshold(s[0]),t):$e.isLessThan(s[0],t);case Ne.is_less_than_or_equal:return $e.isLessThanOrEqual(s[0],t);case Ne.is_true:return!0===t;case Ne.is_false:return!1===t;case Ne.is_greater_than:return"time_interval"===r?$e.compareDates(Ce.before,$e.getTimeThreshold(s[0]),t):$e.isGreaterThan(s[0],t);case Ne.is_greater_than_or_equal:return $e.isGreaterThanOrEqual(s[0],t);case Ne.contains:return Xe(t,{condition:Je.answer_contains,operator:Ke.or,value:s});case Ne.does_not_contain:return!Xe(t,{condition:Je.answer_contains,operator:Ke.and,value:s});default:return console.error(`Unsupported OperatorType: ${e}`),!1}};class Ye{static ruleFulfilled(e,{eventTrigger:t}){var s;const r=e.settings;if(r.appear_method!==Fe.$7.event)return!0;const i=null!==(s=r.events)&&void 0!==s?s:[];return!(!i.length||!t)&&i.some(e=>t.name===e.name&&this.evaluateEventPropsMatch(t.properties,e))}static evaluateEventPropsMatch(e,t){return!t.properties.length||this.compareEventProps(e,t)}static compareEventProps(e,t){if(!e)return!1;const s=t=>{const s=e[t.name];return this.evaluatePropertyCondition(s,t)},{relation:r,properties:i}=t;return r===Me.and?i.every(s):i.some(s)}static evaluatePropertyCondition(e,t){const{operator:s,value:r}=t;return Ge({attribute_type:"string",clientAttributes:[String(r)],operator:null!=s?s:Ne.is_equal,userAttribute:void 0===e?void 0:String(e)})}}class Qe{static ruleFulfilled(e,{eventTrigger:t}){var s;const r=null==e?void 0:e.settings;if(r.appear_method!==Fe.$7.event)return!0;const i=null!==(s=r.events)&&void 0!==s?s:[];return!(!i.length||!t)&&i.some(e=>t.name===e.name&&t.timestamp&&this.evaluateEventOccurrenceMatch(t.timestamp,e))}static evaluateEventOccurrenceMatch(e,t){var s,r,i,o;const a=null===(s=t.settings)||void 0===s?void 0:s.first_occurrence,c=null===(r=t.settings)||void 0===r?void 0:r.last_occurrence;if(!(a&&(a.period||(null===(i=a.dates)||void 0===i?void 0:i.length))||c&&(c.period||(null===(o=c.dates)||void 0===o?void 0:o.length))))return!0;const{events:l}=n.getState(),v=l.find(e=>e.name===t.name);if(!v||!e)return!1;const _=!(!a||!v.firstSeen)&&this.checkTimeCondition({operator:a.operator,storedTime:v.firstSeen,targetTime:this.getTargetTime(a),triggerTime:e}),u=!(!c||!v.previousLastSeen)&&this.checkTimeCondition({operator:c.operator,storedTime:v.previousLastSeen,targetTime:this.getTargetTime(c),triggerTime:e});return a&&c?_&&u:_||u}static checkTimeCondition({operator:e,storedTime:t,triggerTime:s,targetTime:r}){if(!s||!t||!r||Array.isArray(r)&&!r.length)return!1;const i="number"==typeof s?Math.abs(t-s):0;return He({operator:e,storedValue:t,targetValue:r,timeDifference:i})}static getTargetTime({operator:e,dates:t,period:s}){return e===Ne.is_between||e===Ne.is_not_between?t:s}}class Ze{static ruleFulfilled(e,{exitIntent:t}){return e.settings.appear_method!==Fe.$7.exitIntent||!!t}}class et{static ruleFulfilled(e,{scroll:t}){return e.settings.appear_method!==Fe.$7.scroll||!!t&&e.settings.display_scroll<=t}}class tt{static areFulfilled({satisfiedTriggers:e,survey:t,triggers:s}){switch(t.settings.appear_method){case Fe.$7.delayed:return ze.ruleFulfilled(t,s,e);case Fe.$7.scroll:return et.ruleFulfilled(t,s);case Fe.$7.exitIntent:return Ze.ruleFulfilled(t,s);case Fe.$7.event:return Ye.ruleFulfilled(t,s)&&Qe.ruleFulfilled(t,s)&&We.ruleFulfilled(t,s)&&qe.ruleFulfilled(t,s);default:return!0}}}const st={nb:"no",nn:"no"},rt=e=>st[e.toLowerCase().split("-")[0]],it=(e,t)=>{if(!t)return null;const s=t.toLowerCase(),r=e.find(e=>e.toLowerCase()===s);if(r)return r;const i=e.find(e=>e.toLowerCase().startsWith(`${s}-`));if(i)return i;const o=s.split("-")[0];if(o!==s){const t=e.find(e=>e.toLowerCase()===o);if(t)return t}const n=rt(o);if(n){const t=e.find(e=>e.toLowerCase()===n);if(t)return t}return null},ot=(e,t,s)=>{if(t.length){const s=it(t,e);if(s)return s}if(s){if(it([s],e))return s}return null},nt=(e,t)=>{var s,r;const i=null===(s=window.navigator.language)||void 0===s?void 0:s.toLowerCase();if(!i)return null!=t?t:null;const o=ot(i,e,t);if(o)return o;const n=i.substring(0,2);return null!==(r=ot(n,e,t))&&void 0!==r?r:null!=t?t:null},at=["lang","language","locale"],ct="survi::";var lt;!function(e){e.TLD_TO_LANGUAGE_MAP="tldToLanguageMap",e.LANGUAGE_CODES="languageCodes"}(lt||(lt={}));let vt=function(){if("undefined"==typeof window)return{languageCodes:null,tldToLanguageMap:null};try{const e=S.getStore(l.L0.WidgetSurvey),t=e.get(`${ct}${lt.TLD_TO_LANGUAGE_MAP}`,!0),s=e.get(`${ct}${lt.LANGUAGE_CODES}`,!0);return{languageCodes:s?s.data:null,tldToLanguageMap:t?t.data:null}}catch(e){return{languageCodes:null,tldToLanguageMap:null}}}();function _t(){return vt}function ut(e){vt=Object.assign(Object.assign({},vt),e)}const dt=/^[a-z]{2,3}-[a-z]{2,8}$/,pt=(e,t)=>{if(!t)return null;const s=new Set(t);if(!e||"string"!=typeof e)return null;const r=e.toLowerCase();if(s.has(r))return r;const i=r.split("-")[0];if(i.length<2)return null;if(s.has(i))return r.includes("-")&&dt.test(r)?r:i;const o=rt(i);return o&&s.has(o)?o:null},mt=[l.L0.WidgetSurvey,l.L0.FeedbackButton,l.L0.PageSurvey,l.L0.MobileSurvey],ht=({survey:e,location:t,forcedLanguage:s,preview:r})=>{var i,o,n;if(!e||!mt.includes(e.type))return null;const a=(null===(i=e.settings)||void 0===i?void 0:i.languages)||[],c=null===(o=e.settings)||void 0===o?void 0:o.survey_language;if(!(null==a?void 0:a.length)&&!c)return null;const l=s||Te.getVisit(e.type).getForcedLanguage()||(null===(n=window._sva)||void 0===n?void 0:n.forcedLanguage);if(l)return ot(l,a,c);if(r)return null;const v=(e=>{var t;const s=null!=e?e:"undefined"!=typeof window?window.location:null;if(!s)return null;const{tldToLanguageMap:r,languageCodes:i}=_t();if(!r||!i)return null;let o=null;try{const e=Se.getParamsFromSearchString(s.search);for(const[t,s]of Object.entries(e)){const e=t.toLowerCase();if(at.includes(e)){o=s;break}}}catch(e){console.warn("[Language Detection] Error parsing URL parameters:",e)}if(o){const e=pt(o,i);if(e)return e}const n=s.pathname;if(n){const e=n.split("/").filter(Boolean)[0];if(e&&e.length>=2){const t=pt(e,i);if(t)return t}}const a=null===(t=s.hostname)||void 0===t?void 0:t.toLowerCase();if(!a)return null;const c=a.split(".");if(c.length<2)return null;const l=c[c.length-1];if(!l)return null;const v=r[l.toLowerCase()];return v?Array.isArray(v)?null:v:null})(t);if(v){const e=ot(v,a,c);if(e)return e}return nt(a,c)},bt=e=>{var t;if(!e)return"en";const s=ht({survey:e}),r=null===(t=null==e?void 0:e.settings)||void 0===t?void 0:t.survey_language;return s||r||"en"},gt=["ar","he","fa","ur","ps","dv","ku","syr","ug","yi"],ft=e=>{if(!e)return!1;const t=e.split("-")[0];return gt.includes(t)};var yt=s(579);const wt=e=>{_e.bX.getStore(e.type)};var xt;!function(e){e.button="button_next",e.thankYouMessage="empty",e.buttonLink="button_link",e.buttonClose="button_close",e.redirect="redirect_timeout",e.social="social_cta"}(xt||(xt={}));const St=({answer:e,comment:t="",disclaimer_accepted:s})=>({anonymizedTextResponse:e.possible_answer,answers:[{comment:t,nextSurveyPointId:e.next_survey_point_id,survey_question_answer_id:e.id,user_tag:e.user_tag}],textResponse:e.possible_answer,value:{answer:e,comment:t,disclaimer_accepted:s}}),kt=({answer:e,comment:t=""})=>({comment:t,nextSurveyPointId:e.next_survey_point_id,survey_question_answer_id:e.id,user_tag:e.user_tag}),At=({answer:e,point:t,comment:s="",disclaimer_accepted:r})=>({anonymizedTextResponse:e.possible_answer,answers:[kt({answer:e,comment:s,point:t})],textResponse:e.possible_answer,value:{answer:e,comment:s,disclaimer_accepted:r}}),Tt=({point:e,disclaimer_accepted:t})=>Object.assign(Object.assign({anonymizedTextResponse:"",answers:[{nextSurveyPointId:e.settings.next_survey_point_id,user_tag:e.settings.user_tag}]},"boolean"==typeof t&&{value:{disclaimer_accepted:t}}),{textResponse:""}),Ot=({value:e,point:t,comment:s=""})=>{let r=null,i=null;const o=t.settings;return e.answer<=6?(r=o.first_range_goto_id,i=o.first_range_tag):e.answer<=8?(r=o.second_range_goto_id,i=o.second_range_tag):(r=o.third_range_goto_id,i=o.third_range_tag),{anonymizedTextResponse:`${e.answer}`,answers:[{comment:s,content:`${e.answer}`,nextSurveyPointId:r,user_tag:i}],textResponse:`${e.answer}`,value:e}},Et=e=>{const t={anonymizedTextResponse:"",answers:[],textResponse:""};return e(t),t},Pt=(e,t=1)=>{const s=e.length;if(!s)return 0;const{point:r}=e&&e[s-1],i=[xt.buttonLink,xt.redirect,xt.social,xt.thankYouMessage].includes(e[e.length-1].point.answer_type),o="number"==typeof r.max_path?r.max_path:0;return i?100:Math.round((s-t)/(o+s)*100)},Ct=e=>Pt(e.pointsDisplayed,0);var Nt;!function(e){e.answered="answered",e.finished="finished",e.opened="opened",e.closed="closed",e.shouldUpdate="shouldUpdate",e.minimized="minimized",e.maximized="maximized"}(Nt||(Nt={}));var Mt=s(172),It=s(5994),jt=s(5346);const Rt=e=>{var t,s,r,i;return!!(null===(t=e.identities.api)||void 0===t?void 0:t.id)&&(!(null===(r=null===(s=window._svd)||void 0===s?void 0:s.flags)||void 0===r?void 0:r.enforce_user_authentication)||!!(null===(i=e.validation)||void 0===i?void 0:i.timestamp))},Lt=({uuid:e,identities:t,attributes:s},r)=>{var i,o,n;const a=null!==(o=null===(i=null==t?void 0:t.api)||void 0===i?void 0:i.id)&&void 0!==o?o:"",c=r||(null===(n=null==s?void 0:s.user_key)||void 0===n?void 0:n.value),l={metadata:{user_agent:window.navigator.userAgent,version:"1.0.0"},respondent:{uuid:e},user:{id:String(a)}};return c&&(l.user.key=String(c)),l};var Dt,Ft=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class zt{}Dt=zt,zt.send=(e,t)=>Ft(void 0,void 0,void 0,function*(){var s,r,i;if(!e||!(null===(s=null==t?void 0:t.survey)||void 0===s?void 0:s.type))return;const{visitor:o,backendService:n}=an.getState();if(!0!==(null===(i=null===(r=window._svd)||void 0===r?void 0:r.flags)||void 0===i?void 0:i.backend_targeting_enabled)||!Rt(o))return;const a=Object.assign({surveys:[{id:t.survey.id,timestamp:t.survey.timestamp||0,type:t.survey.type}]},Lt(o));null==n||n.addRequest(ee.interactions,a,"",null)}),zt.mapInteraction=e=>{switch(e){case Nt.finished:return te.completed;case Nt.closed:return te.closed;case Nt.opened:return te.seen;case Nt.answered:return te.answered;default:return null}},zt.processEvent=e=>{var s,r;if(!e||e.eventType===Nt.shouldUpdate)return;const{surveyId:i,eventType:o,storeType:n}=e;if(!n||!i)return;const{visitor:a}=an.getState(),{surveyState:{survey:c}}=_e.bX.getStore(n).getState();c&&(null==c?void 0:c.backendTargeted)&&!0===(null===(r=null===(s=window._svd)||void 0===s?void 0:s.flags)||void 0===r?void 0:r.backend_targeting_enabled)&&Rt(a)&&Dt.send(n,{survey:{id:i,timestamp:t(),type:Dt.mapInteraction(o)},surveyType:n})};const qt=({eventType:e,options:t,surveyType:s})=>{const r=Object.assign(Object.assign({eventType:e},t),{storeType:s}),i=new CustomEvent("onSurveyEvent",{detail:r});document.dispatchEvent(i)},Ut=(0,Mt.createContext)({}),$t=({children:e})=>{const{surveyType:t}=(0,It.NT)(jt.y),[s,r]=(0,It.J0)();(0,It.vJ)(()=>{const e=e=>{const{detail:s}=e;s.storeType===t&&(zt.processEvent(s),r(s))};return document.addEventListener("onSurveyEvent",e),()=>{document.removeEventListener("onSurveyEvent",e)}},[t]);const i=(0,It.Kr)(()=>({surveyEvent:s}),[s]);return(0,Mt.h)(Ut.Provider,{value:i},e)};var Bt=s(1394),Vt=s.n(Bt),Ht=s(9902);const Wt=(e,t)=>e&&t?`${e};${t}`:e||t||"";var Kt=s(3371),Jt=s(7885),Xt=s.n(Jt),Gt=s(5351),Yt=s(4031);const Qt=(e,t)=>t>0?Math.floor(e*((100-t)/100)):Math.floor(255-(100+t)/100*(255-e)),Zt=e=>Math.min(Math.max(e,0),255),es=e=>{let t=e;4===e.length&&(t=`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`);const s=parseInt(t.substring(1,3),16),r=parseInt(t.substring(3,5),16);return{B:parseInt(t.substring(5,7),16),G:r,R:s}},ts=(e,t)=>{let{R:s,G:r,B:i}=es(e);s=Zt(Qt(s,t)),r=Zt(Qt(r,t)),i=Zt(Qt(i,t));return`#${1===s.toString(16).length?`0${s.toString(16)}`:s.toString(16)}${1===r.toString(16).length?`0${r.toString(16)}`:r.toString(16)}${1===i.toString(16).length?`0${i.toString(16)}`:i.toString(16)}`},ss=(e,t)=>{const{R:s,G:r,B:i}=es(e);return`rgba(${s}, ${r}, ${i}, ${t})`};var rs,is,os;!function(e){e.micro="MicroTheme",e.simple="SimpleTheme",e.mobile="MobileTheme",e.intercom="IntercomTheme",e.newMobile="NewMobileTheme"}(rs||(rs={})),function(e){e.cover="cover",e.repeat="repeat",e.contain="contain"}(is||(is={})),function(e){e.left="left",e.center="center",e.right="right",e.bottom="bottom",e.top="top"}(os||(os={}));const ns="#7f8c8d",as="#ffffff",cs=(ts("#7f8c8d",-90),"#70c84a"),ls="#70c84a",vs=(ts("#7f8c8d",-10),"#ffffff"),_s="#70c84a",us="#29292a";ts("#7f8c8d",-90),ts("#7f8c8d",-10);var ds;!function(e){e.library="library",e.system="system"}(ds||(ds={}));const ps=e=>{const{href:t,id:s,nonce:r}=e;if("undefined"==typeof document||!document.head||document.head.querySelector(`#${s}`))return;const i=document.createElement("link");i.href=t,i.id=s,i.rel="stylesheet",i.type="text/css",r&&i.setAttribute("nonce",r),document.head.appendChild(i)},ms=e=>e.trim().toLowerCase().replace(/\s+/g,"-"),hs=e=>`survicate-font-${ms(e)}`,bs="Open Sans",gs=(e,t)=>{if("undefined"==typeof document||!document.head||!(null==e?void 0:e.trim())||e===bs)return;const s=ms(e);ps({href:`https://surveys-static.survicate.com/fonts/${encodeURIComponent(s)}/font.css`,id:hs(e),nonce:null==t?void 0:t.nonce})},fs=(e,t)=>{var s;if(!e)return null;const{font:r}=e;return(null===(s=null==r?void 0:r.name)||void 0===s?void 0:s.trim())?t&&t!==r.type?null:r.name:null};var ys;!function(e){e[e.mobile=767]="mobile",e[e.tablet=1080]="tablet"}(ys||(ys={}));const ws=ys,xs=e=>"#"===e.charAt(0)?e.substring(1,7):e,Ss=(e,t)=>(299*parseInt(xs(e).substring(0,2),16)+597*(e=>parseInt(xs(e).substring(2,4),16))(e)+114*(e=>parseInt(xs(e).substring(4,6),16))(e))/1e3>130?(null==t?void 0:t.dark)||"#000000":(null==t?void 0:t.light)||"#ffffff";class ks{static addThemeCss(e,t,s=!1){t.forEach(({property:t,className:r,state:i,isTopLevelClass:o,value:n})=>{const a=s?o?".sv__micro-theme":".sv__micro-theme ":"";(Array.isArray(r)?r:[r]).forEach(s=>{e(`${a}${i?s+i:s}`,t,`${n} !important`)})})}static addMicroThemeCss(e,t){const s=(e=>{const{answer:t,button:s,background:r,progress_bar:i,question:o,bg_answer:n}=e,a="#171D1A",c="#F1F1F1",l=ss(t,.1),v=ss(t,.2),_=ss(t,.5),u=ss(o,.5),d=ss(s,.7),p=`0 0 0 8px ${l}`;return[{className:".sv__survey",isTopLevelClass:!0,property:"background-color",value:r},{className:".sv__mobile-survey .sv__rating .sv__buttons .sv__button",isTopLevelClass:!0,property:"background-color",state:":hover",value:"transparent"},{className:[".sv__survey--finished.sv__survey--branded .sv__btn-close svg path",".sv__survey--finished.sv__survey--branded .sv__btn-close:hover svg path",".sv__survey--finished.sv__survey--branded .sv__btn-close:active svg path"],isTopLevelClass:!0,property:"fill",value:"black"},{className:[".sv__mobile-survey .sv__button:hover svg path"],isTopLevelClass:!0,property:"fill",value:t},{className:[".sv__mobile-survey .sv__rating--vertical .sv__buttons .sv__button",".sv__mobile-survey .sv__button",".sv__mobile-survey .sv__choice-button"],isTopLevelClass:!0,property:"background-color",state:":hover",value:l},{className:[".sv__feedback-survey--minimized.sv__feedback-survey .sv__feedback-survey__text"],isTopLevelClass:!0,property:"color",value:Ss(s)},{className:".sv__contact-form .sv__contact-form-field.sv__light.sv__invalid input.sv-nested-bg-bw",property:"background-color",value:n},{className:[".sv__progress-bar","*::-webkit-scrollbar-thumb"],property:"background-color",value:ss(o,.15)},{className:[".sv__choice-button--selected .sv__circle",".sv__choice-button:active .sv__circle"],property:"background-color",value:t},{className:[".sv__rating--vertical .sv__buttons .sv__button:active",".sv__rating.sv__rating--vertical .sv__buttons.sv__rating__buttons.sv__buttons--vertical\n .sv__button.sv__button--selected"],property:"background-color",value:v},{className:".sv__feedback-survey.sv__feedback-survey--minimized.sv--background-button",isTopLevelClass:!0,property:"background-color",value:s},{className:".sv__language-selector__trigger",property:"background-color",value:"transparent"},{className:".sv__language-selector__option",property:"background-color",state:":hover",value:ss(o,.06)},{className:".sv__language-selector__option.sv__language-selector__option--selected",property:"background-color",value:ss(o,.06)},{className:".sv--color-progress-bar",property:"color",value:i},{className:".sv__input::placeholder",property:"color",value:_},{className:".sv__footer__small-text",property:"color",value:Ss(r,{dark:a,light:c})},{className:".sv__navigation-button--back.sv--color-button",property:"color",value:s},{className:".sv__language-selector__option",property:"color",value:ss(o,.9)},{className:".sv__select-list",property:"border-color",value:v},{className:".sv__language-selector__trigger",property:"border-color",value:"transparent"},{className:".sv__language-selector__list",property:"border-color",value:"transparent"},{className:".sv__language-selector__list",property:"border-color",state:":hover",value:ss(o,.4)},{className:".sv__navigation-button--back",property:"border-color",state:":disabled",value:o},{className:".sv__square",property:"box-shadow",state:":focus::after",value:p},{className:".sv__square",property:"box-shadow",state:":hover::after",value:p},{className:".sv__square",property:"box-shadow",state:":active::after",value:p},{className:".sv__circle",property:"box-shadow",state:":focus",value:p},{className:".sv__circle",property:"box-shadow",state:":hover",value:p},{className:".sv__circle",property:"box-shadow",state:":active",value:p},{className:".sv__btn-close svg path",property:"fill",value:u},{className:".sv__btn-close svg rect",property:"fill",value:"transparent"},{className:".sv__btn-minimize svg g rect",property:"fill",value:ss(o,.85)},{className:".sv__button svg path",property:"fill",value:ss(t,.3)},{className:".sv__minimized-symbol svg g g path",property:"fill",value:Ss(s,{dark:"#000",light:"#FFF"})},{className:".sv__footer__button svg path",property:"fill",value:Ss(r,{dark:a,light:c})},{className:[".sv__btn-close:hover svg path",".sv__btn-close:active svg path",".sv__btn-minimize:hover svg g rect"],property:"fill",value:o},{className:[".sv__dropdown__wrapper svg g g",".sv__button--vertical svg path"],property:"fill",value:_},{className:[".sv__btn-minimize--padded svg g rect",".sv__btn-minimize--padded svg rect:first-child"],property:"fill",value:u},{className:[".sv__btn-minimize--padded:hover svg rect",".sv__btn-minimize--padded:active svg rect"],property:"fill",value:ss(o,.9)},{className:[".sv__checkbox g g path",".sv__button:hover svg path",".sv__button--selected svg path",".sv__buttons.sv__rating__buttons.sv__buttons--vertical .sv__button.sv__button--selected svg path",".sv__caret svg g g"],property:"fill",value:t},{className:[".sv__screenshot-button svg path",".sv--fill-button svg g g",".sv--fill-button svg path"],property:"fill",value:s},{className:".sv__micro-top-bar__actions .sv__language-selector .sv__language-selector__trigger svg path",property:"fill",value:u},{className:[".sv__micro-top-bar__actions .sv__language-selector .sv__language-selector__trigger:hover svg path",".sv__micro-top-bar__actions .sv__language-selector .sv__language-selector__trigger:active svg path"],property:"fill",value:o},{className:".sv__choice-button",property:"background-color",state:":active",value:v},{className:".sv__minimized-symbol",property:"background-color",state:":hover",value:d},{className:".sv__minimized-symbol",property:"background-color",state:":active",value:d},{className:".sv__rating .sv__button",property:"background-color",state:":hover",value:"transparent"},{className:".sv__choice-button",property:"border-color",state:":active",value:t},{className:".sv-bg-bs",property:"border-bottom",value:"none"},{className:".sv__select-button",property:"background-color",state:":hover",value:ss(t,.15)},{className:[".sv__choice-button",".sv__button",".sv__rating--vertical .sv__buttons .sv__button"],property:"background-color",state:":hover",value:v},{className:[".sv__textarea",".sv__input",".sv__date-wrapper .sv__mobile-datepicker"],property:"border-color",state:":focus",value:t},{className:[".sv__position-mobile .sv__button",".sv__position-mobile .sv__rating--vertical .sv__buttons .sv__button",".sv__position-mobile .sv__rating--vertical.sv__rating--short .sv__buttons .sv__button"],isTopLevelClass:!0,property:"background-color",state:":hover",value:l},{className:[".sv__position-mobile .sv__rating--short .sv__buttons .sv__button"],isTopLevelClass:!0,property:"background-color",state:":hover",value:"transparent"},{className:[".sv__position-mobile .sv__rating .sv__button:not(.sv__button--selected):hover svg path"],isTopLevelClass:!0,property:"fill",value:ss(t,.3)}]})(t);this.addThemeCss(e,s,!0)}static addCommonThemeCss(e,t){const s=(e=>{const{answer:t,button:s,background:r,progress_bar:i,question:o}=e,n=ss(t,.5),a=ss(o,.5);return[{className:".sv__date.focused",property:"border-color",value:t},{className:".sv--background-main",property:"background-color",value:r},{className:".sv--background-button",property:"background-color",value:s},{className:".sv--background-answer",property:"background-color",value:t},{className:".sv--background-progress-bar",property:"background-color",value:i},{className:".sv--background-answer-opacity-10",property:"background-color",value:ss(t,.1)},{className:".sv--background-button-opacity-10",property:"background-color",value:ss(s,.1)},{className:".sv--color-question",property:"color",value:o},{className:".sv--color-answer",property:"color",value:t},{className:".sv--color-button",property:"color",value:s},{className:[".sv__date input::placeholder",".sv__textarea.sv__textarea--disabled"],property:"color",value:n},{className:".sv--border-color-answer",property:"border-color",value:t},{className:".sv--border-color-button",property:"border-color",value:s},{className:".sv__submit-button",property:"color",value:Ss(s)},{className:".sv--border-top-color-question-20",property:"border-top-color",value:ss(o,.2)},{className:".sv__spinner",property:"border-color",state:":before",value:ss(t,.1)},{className:".sv__spinner",property:"border-right-color",state:":before",value:s},{className:[".sv__textarea","sv__input"],property:"border-color",state:":focus",value:t},{className:".sv__textarea",property:"color",state:"::placeholder",value:n},{className:".sv__textarea",property:"color",state:"::-webkit-input-placeholder",value:n},{className:".sv__lock-icon g g path",property:"fill",value:t},{className:".sv__clear-input-icon svg path",property:"fill",value:t},{className:".sv__clear-input-icon svg g rect",property:"fill",value:t},{className:".sv__language-selector__list",property:"background-color",value:r},{className:".sv__language-selector__trigger",property:"color",value:a},{className:".sv__language-selector__trigger",property:"color",state:":hover",value:o},{className:".sv__language-selector__trigger",property:"color",state:":active",value:o},{className:'.sv__language-selector__trigger[aria-expanded="true"] + .sv__language-selector__list',property:"border-color",value:ss(o,.4)}]})(t);this.addThemeCss(e,s)}static addPageThemeCss(e,t){const s=(e=>{const{answer:t,button:s,background:r,progress_bar:i,question:o}=e,n=ss(t,.2),a=ss(t,.1),c=`0 0 0 8px ${n}`,l=ss(o,.5),v=[{className:".sv__submit-button",property:"background-color",state:":hover",value:ts(s,-10)},{className:".sv__navigation-button.sv__navigation-button--back",property:"background-color",state:":hover",value:ss(s,.2)},{className:[".sv__numerical-scale .sv__button",".sv__nps .sv__button",".sv__choice-button",".sv__dropdown__wrapper .sv__select .sv__select-button",".sv__dropdown__wrapper .sv__select .sv__select-button--focused"],property:"background-color",state:":hover",value:n},{className:".sv__nps__wrapper--vertical .sv__nps .sv__button",property:"background-color",state:":hover",value:a},{className:".sv__nps__wrapper--vertical .sv__nps .sv__button",property:"background-color",state:":active",value:a},{className:[".sv__choice-button .sv__circle",".sv__matrix-cell .sv__circle"],property:"box-shadow",state:":hover",value:`0 0 0 8px ${a}`},{className:[".sv__choice-button .sv__circle",".sv__matrix-cell .sv__circle"],property:"box-shadow",state:":focus",value:c},{className:[".sv__choice-button .sv__circle",".sv__matrix-cell .sv__circle"],property:"box-shadow",state:":active",value:c},{className:[".sv__choice-button .sv__square:focus",".sv__choice-button .sv__square:active"],property:"box-shadow",state:"::after",value:c},{className:".sv__choice-button .sv__square:hover",property:"box-shadow",state:"::after",value:c},{className:".sv__submit-button",property:"box-shadow",state:":focus",value:`0 0 0 2px white, 0 0 0 4px ${s};`},{className:"sv__rating .sv__button:hover svg path",property:"fill",value:t}];return[...yt.A.hasHover()?v:[],{className:[".sv__ranking-wrapper .sv__select",".sv__dropdown__wrapper .sv__select .sv__select-button",".sv__language-selector__trigger--full"],property:"background-color",value:a},{className:".sv__language-selector__trigger--full",property:"border-color",value:ss(o,.2)},{className:".sv__language-selector__trigger--full .sv__language-selector__label",property:"color",value:o},{className:[".sv__language-selector__trigger--full .sv__language-selector__chevron g g"],property:"fill",value:l},{className:[".sv__language-selector__trigger--full:hover .sv__language-selector__chevron g g",'.sv__language-selector__trigger--full[aria-expanded="true"] .sv__language-selector__chevron svg g g'],property:"fill",value:o},{className:".sv__ranking-wrapper .sv__select .sv__input",property:"background-color",value:"transparent"},{className:".sv__ranking-wrapper .sv__select .sv__select-list .sv__select-button",property:"background-color",value:Ss(t)},{className:".sv__language-selector__option",property:"background-color",state:":hover",value:a},{className:".sv__language-selector__option.sv__language-selector__option--selected",property:"background-color",value:a},{className:".sv-checkbox-tick-border-color",property:"border-color",value:r},{className:".sv-ranking-option .sv__caret",property:"border-bottom-color",value:s},{className:".sv-ranking-option .sv__caret",property:"border-top-color",value:s},{className:".sv__language-selector__list",property:"border-color",value:ss(o,.2)},{className:".sv__square svg path",property:"color",value:t},{className:".sv__language-selector__option",property:"color",value:o},{className:[".sv__textarea","sv--color-answer",".sv__select input"],property:"color",state:"::placeholder",value:ss(t,.6)},{className:".sv-navigation-mobile",property:"border-color",state:":before",value:i},{className:".sv-navigation",property:"border-color",state:":before",value:t},{className:".sv__input",property:"border-color",state:":focus",value:t},{className:".sv__rating .sv__button svg path",property:"fill",value:a},{className:".sv__language-selector-wrapper .sv__language-selector .sv__language-selector__trigger svg path",property:"fill",value:l},{className:[".sv__language-selector-wrapper .sv__language-selector .sv__language-selector__trigger:hover svg path",".sv__language-selector-wrapper .sv__language-selector .sv__language-selector__trigger:active svg path"],property:"fill",value:o},{className:[".sv__select svg g",".sv__rating .sv__button--selected svg path",".sv-ranking-option .sv__caret svg path:nth-child(2)",".sv__ranking-option-handler svg path:nth-child(2)"],property:"fill",value:t}]})(t);this.addThemeCss(e,s)}static customSimpleThemeCss(e){return`body{margin: 0 !important;}\n #survicate-box .sv-color-description * { color: ${e.font_widget} }\n html{position: relative; max-width: 100vw; background-color: white;}\n @media only screen and (max-width: ${ws.mobile}px) {\n html{height: 100%;}\n body{height: 100%;}\n #survicate-box{height: 100%;}\n #survicate-box .sv__submit-btn-present .sv__point-wrapper {padding-bottom: 50px;}\n }\n @media only screen and (min-width: ${ws.mobile+1}px) {\n #survicate-box .sv-bg-bs {\n border-radius: 6px;\n }\n }`}}const As=e=>!!e&&(e===l.L0.WidgetSurvey||e===l.L0.FeedbackButton);class Ts{static getCssFromRules(e,t){var s,r;const i=_e.bX.getStore(t),{isPreview:o}=i.getState(),n=null!==(r=null===(s=i.getState().surveyState.screenshotState)||void 0===s?void 0:s.isEnabled)&&void 0!==r&&r;let a="";const c=As(t)?`.survicate-box-${t}`:"";return Object.keys(e).forEach(t=>{a+=`#survicate-box${c} ${t}{`,e[t].forEach(({propertyName:e,value:t})=>{a+=`${e}: ${t};`}),a+="}"}),As(t)&&(o||n)&&Object.keys(e).forEach(s=>{const r=s.replace(".sv__micro-theme","");a+=`.survicate-box-${t} #sv-screenshot-controls ${r}{`,e[s].forEach(({propertyName:e,value:t})=>{a+=`${e}: ${t};`}),a+="}"}),a}static getFontFaceBlocksFromCss(e){if("string"!=typeof e||!e.trim())return[];let t;const s=[],r=new RegExp(Ts.FONT_FACE_REGEX.source,"g");for(;null!==(t=r.exec(e));)s.push(t[0]);return s}static addImportantsToCustomCss(e=""){if("string"!=typeof e)return"";let t=e.replace(Ts.IMPORTANT_REGEX,";");const s=[];t=t.replace(Ts.KEYFRAMES_REGEX,e=>(s.push(e),`__KEYFRAMES_PLACEHOLDER_${s.length-1}__`));const r=[];t=t.replace(Ts.FONT_FACE_REGEX,e=>(r.push(e),`__FONTFACE_PLACEHOLDER_${r.length-1}__`));const i=[];return t=t.replace(Ts.BASE64_URL_REGEX,e=>(i.push(e),`__BASE64_PLACEHOLDER_${i.length-1}__`)),t=t.replace(Ts.DECLARATION_REGEX,(e,t,s)=>/!important\s*$/i.test(t)?e:`${t} !important${s}`),t=t.replace(Ts.PLACEHOLDER_REGEX,(e,t,o)=>{const n=Number(o);switch(t){case"BASE64":return i[n];case"FONTFACE":return r[n];case"KEYFRAMES":return s[n];default:return""}}),t}static getCss(e,t){const s={},r=(e,t,r)=>{s[e]||(s[e]=[]),s[e].push({propertyName:t,value:r})};let i="";switch(ks.addCommonThemeCss(r,e.color_scheme),e.type){case rs.simple:ks.addPageThemeCss(r,e.color_scheme),i+=ks.customSimpleThemeCss(e.color_scheme);break;case rs.micro:ks.addMicroThemeCss(r,e.color_scheme)}let o=this.getCssFromRules(s,t)+i;const n=fs(e),a=(null==e?void 0:e.custom_css_enabled)&&(null==e?void 0:e.custom_css),c=a&&this.getFontFaceBlocksFromCss(e.custom_css).length;if(n&&!c){o+=`${`${`#survicate-box${As(t)?`.survicate-box-${t}`:""}`} *`} {font-family: ${`'${n}', '${bs}', sans-serif !important`};}`}return a?o+this.addImportantsToCustomCss(e.custom_css):o}static getSimpleThemeColors(e){return{answer:e.answer||ns,background:e.background||as,bg_answer:ts(e.answer||ns,-90),bg_submit:e.button||e.main_color||cs,bg_widget:e.background||as,button:e.button||e.main_color||ls,font_answer:ts(e.answer||ns,-10),font_submit:vs,font_widget:e.question||us,main_color:e.main_color||ls,progress_bar:e.progress_bar||e.main_color||_s,question:e.question||us}}static getMicroThemeColors(e){return{answer:e.answer||ns,background:e.background||as,bg_answer:ts(e.answer||ns,-90),bg_submit:e.button||e.main_color||cs,bg_widget:e.background||as,button:e.button||e.main_color||ls,font_answer:ts(e.answer||ns,-10),font_submit:vs,font_widget:e.question||us,main_color:e.main_color||ls,progress_bar:e.progress_bar||e.main_color||_s,question:e.question||us}}static extendTheme(e){return e.type===rs.simple?Object.assign(Object.assign({},e),{color_scheme:this.getSimpleThemeColors(e.color_scheme)}):Object.assign(Object.assign({},e),{color_scheme:this.getMicroThemeColors(e.color_scheme)})}static reloadCss(e,t){var s;const r=_e.bX.getStore(t),{rootElement:i,isPreview:o}=r.getState();if(!i&&(o||"undefined"==typeof document||!document.head))return;const n=null!=i?i:document.head,a=t===l.L0.FeedbackButton?"survicate-feedback-core-theme":"survicate-core-theme",c=null===(s=window._sva)||void 0===s?void 0:s.nonce;let v=n.querySelector(`#${a}`);v||(v=document.createElement("style"),v.id=a,c&&v.setAttribute("nonce",c),n.appendChild(v)),v.textContent=Ts.getCss(e,t)}}Ts.FONT_FACE_REGEX=/@font-face\s*{[^}]*}/g,Ts.KEYFRAMES_REGEX=/@keyframes[^{]*\{([^{}]|{[^{}]*})*\}/g,Ts.BASE64_URL_REGEX=/url\(([^)]+base64[^)]*)\)/g,Ts.IMPORTANT_REGEX=/\s{0,10}!important;/g,Ts.DECLARATION_REGEX=/([^;{}]{1,1000}:[^;{}]{1,1000})(;)/g,Ts.PLACEHOLDER_REGEX=/__(FONTFACE|KEYFRAMES|BASE64)_PLACEHOLDER_(\d+)__/g;const Os=Ts;class Es{constructor(){this.timeouts=new Map}fireEvent(e,t){const s=_e.bX.getStore(e);if(!s.getState().surveyState.survey){const e=s.getState().satisfiedTriggers;s.setState({satisfiedTriggers:Object.assign(Object.assign({},e),{delayed:t})}),s.action(zo)({delayed:t})}}startListening(e,t){if(!e||!(null==t?void 0:t.length))return;this.stopListening(e);const s=t.filter(e=>e.settings.appear_method===Fe.$7.delayed);if(!s.length)return;const r=_e.bX.getStore(e);r.setState({satisfiedTriggers:Object.assign(Object.assign({},r.getState().satisfiedTriggers),{delayed:void 0})});const i=s.map(e=>e.settings.display_delay),o=[...new Set(i)].sort((e,t)=>e-t),n=[];o.forEach(t=>{const s=window.setTimeout(()=>{_e.bX.getStore(e).getState().surveyState.survey||this.fireEvent(e,t)},1e3*t);n.push(s)}),this.timeouts.set(e,n)}stopListening(e){const t=this.timeouts.get(e);t&&(t.forEach(e=>clearTimeout(e)),this.timeouts.delete(e))}}const Ps=(e,t)=>{let s=!1;return(...r)=>{const i=()=>{e.call(null,...r),s=!0,setTimeout(()=>{s=!1},t)};s?setTimeout(()=>{s||i()},t):i()}};class Cs{constructor(){this.COOLDOWN_PERIOD=5e3,this.DEBOUNCE_DELAY=1e3,this.exitIntentListeners=new Map,this.lastFiredTime=new Map}fireEvent(e){const t=Date.now(),s=this.lastFiredTime.get(e);if(s&&t-s<this.COOLDOWN_PERIOD)return;const r=_e.bX.getStore(e);r.getState().surveyState.survey||(this.lastFiredTime.set(e,t),r.action(zo)({exitIntent:!0}))}exitIntentHandler(e){return Ps(t=>{(null==t?void 0:t.clientY)>20||this.fireEvent(e)},this.DEBOUNCE_DELAY)}startListening(e,t){this.stopListening(e);if(!t.filter(e=>e.settings.appear_method===Fe.$7.exitIntent).length)return;const s=this.exitIntentHandler(e);this.exitIntentListeners.set(e,s),document.body.addEventListener("mouseleave",s)}stopListening(e){const t=this.exitIntentListeners.get(e);t&&(document.body.removeEventListener("mouseleave",t),this.exitIntentListeners.delete(e),this.lastFiredTime.delete(e))}}class Ns{constructor(){this.scrollListeners=new Map,this.firedScrolls=new Map}getScrolls(e){const t=e.filter(e=>e.settings.appear_method===Fe.$7.scroll).map(e=>e.settings.display_scroll);return t.length?[...new Set(t)].sort((e,t)=>e-t):[]}calculateScrollPercent(){if("undefined"==typeof document||"undefined"==typeof window)return 0;const e=document.documentElement;if(!e)return 0;const{scrollHeight:t,clientHeight:s}=e,r=t-s;if(r<=0)return 0;const i=window.scrollY/r*100;return Math.min(100,Math.max(0,10*Math.round(i/10)))}createScrollHandler(e,t){return Ps(()=>{const s=_e.bX.getStore(e),r=s.getState().surveyState.survey,i=this.firedScrolls.get(e);if(r||!i)return;const o=this.calculateScrollPercent(),n=t.find(e=>o>=e&&!i.has(e));"number"==typeof n&&(i.add(n),s.action(zo)({scroll:n}))},100)}startListening(e,t){this.stopListening(e);const s=this.getScrolls(t);if(!s.length)return;this.firedScrolls.set(e,new Set);const r=this.createScrollHandler(e,s);this.scrollListeners.set(e,r),window.addEventListener("scroll",r)}stopListening(e){const t=this.scrollListeners.get(e);t&&(window.removeEventListener("scroll",t),this.scrollListeners.delete(e),this.firedScrolls.delete(e))}}class Ms{constructor(){this.triggerRegistry={}}static getInstance(){return Ms.instance||(Ms.instance=new Ms),Ms.instance}getTriggersForSurveyType(e){return e?(this.triggerRegistry[e]||(this.triggerRegistry[e]=[...yt.A.isDeviceMobileOrTablet()?[]:[new Cs],new Ns,new Es]),this.triggerRegistry[e]):[]}startTargeting(e,t){this.getTriggersForSurveyType(e).forEach(s=>{s.stopListening(e),s.startListening(e,t)})}stopTargeting(e){this.getTriggersForSurveyType(e).forEach(t=>t.stopListening(e))}}const Is=Ms.getInstance(),js=new Set(["undefined","unknown","null","false"]);function Rs(e){return"string"==typeof e&&js.has(e.trim().toLowerCase())}function Ls(e){if(null!=e)return Rs(e)?"":String(e)}const Ds=e=>{const{storageService:t}=an.getState();t&&(null==t||t.put(f.VisitorStore,{key:d.visitor,table:u.visitor},e))},Fs=e=>{if(an.setState({visitor:e}),!an.getState().visitor.isKioskMode)return fe()?(ye.getStorage(f.VisitorStore).set(p.visitorAttributes,e.attributes),ye.getStorage(f.VisitorStore).set(p.visitorIdentities,e.identities),void Ds(Object.assign(Object.assign({},e),{attributes:{},identities:{}}))):void Ds(e)},zs=({visitor:e},{identityProvider:t,key:s,value:r})=>{var i,o;const n="api"===t&&"id"===s?null!==(i=Ls(r))&&void 0!==i?i:"":r;if((null===(o=e.identities[t])||void 0===o?void 0:o[s])===n)return;const a=Object.assign({},e.identities);a[t]=Object.assign(Object.assign({},a[t]),{[s]:n});const c=Object.assign(Object.assign({},e),{identities:a});an.setState({visitor:c}),Fs(c)},qs=new(Xt());function Us(e,t){const s=_e.bX.getStore(e.storeType),r=(0,Yt.A)(t,e.storeType);s.setState({backendData:Object.assign(Object.assign({},e.backendData),{surveys:r})}),Is.startTargeting(e.storeType,r),s.action(zo)({force:!0})}function $s(e,t){e.storeType&&_e.bX.getStore(e.storeType).setState({backendData:Object.assign(Object.assign({},e.backendData),{audiences:t})})}function Bs(e,t=[]){_e.bX.getStore(e.storeType).setState({backendData:Object.assign(Object.assign({},e.backendData),{themes:t.map(e=>e.type===rs.mobile?e:Os.extendTheme(e))})})}function Vs(e,t){const s=_e.bX.getStore(e.storeType),r=t.find(e=>"object"==typeof e&&null!==e&&e.provider===Gt.IntegrationNames.Salesforce&&"salesforce"in e),i=null==r?void 0:r.salesforce,o=(0,Kt.Ay)(i);s.setState(Object.assign({backendData:Object.assign(Object.assign({},e.backendData),{integrations:t})},Object.keys(o).length>0&&{integrationTags:Object.assign(Object.assign({},e.integrationTags),o)}));const n={setVisitorIdentity:e=>(an.action(zs)(e),Promise.resolve())};qs.init(t,Se.identitiesParams,n)}function Hs(e,t){_e.bX.getStore(e.storeType).setState({backendData:Object.assign(Object.assign({},e.backendData),{workspaceKey:t})})}function Ws(e,t){_e.bX.getStore(e.storeType).setState({backendData:Object.assign(Object.assign({},e.backendData),{translations:t})})}function Ks(e,t){_e.bX.getStore(e.storeType).setState({backendData:Object.assign(Object.assign({},e.backendData),{permissions:t})})}const Js={setAudiences:$s,setIntegrations:Vs,setSurveys:Us,setThemes:Bs,setTranslations:Ws,setWorkspaceKey:Hs},Xs=({answers:e,completionRate:t,survey:s,follow_ups:r})=>e.length?e.map(e=>{const{survey_question_answer_id:i,user_tag:o,content:n,answer_type:a,comment:c}=e;return{answer_type:a||void 0,comment:c||void 0,completion_rate:t,content:n||void 0,finished:100===t||void 0,follow_ups:r,survey_question_answer_id:i||void 0,user_tag:Wt(o,s.global_tags)}}):[{completion_rate:t,finished:100===t||void 0}],Gs=(e,t)=>{var s;null===(s=e.backendService)||void 0===s||s.addRequest(ee.answered,(({answers:e,completionRate:t,core_version:s,disclaimer_accepted:r,enforced:i,follow_ups:o,overwrite:n,responseAttributes:a,response_uuid:c,screenshot_uuid:l,survey:v,version:_,surveyPointId:u},d,p)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l&&{screenshot_uuid:l}),i?{enforced:!0}:{}),{core_version:s,disclaimer_accepted:r,integrations:qs.getAPIToAnsweredJsonIntegrations()||void 0,overwrite:n||void 0}),a&&{response_attributes:a}),{response_uuid:c,survey_point_id:u,version:_,visit_points:Xs({answers:e,completionRate:t,follow_ups:o,survey:v}),visitor:ce(d,p)}))(t,an.getState().visitor,e.storeType),t.survey.id,e.storeType)};var Ys=s(1002),Qs=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Zs=(e,t,s)=>Qs(void 0,void 0,void 0,function*(){const r=_e.bX.getStore(s),{screenshot:i}=r.getState().surveyState.screenshotState;if(!i)return null;const{id:o}=i;try{const s=yield(0,C.A)("https://respondent.survicate.com").post(`/workspaces/${window._svc.workspaceKey}/surveys/${e}/generate_screenshot_url.json`,{response_uuid:t,screenshot_uuid:o});if(200!==s.status)return r.action(Ys.UL)(),null;const i=yield s.json();return(null==i?void 0:i.upload_url)||null}catch(e){return r.action(Ys.UL)(),console.error("Error generating screenshot:",e),null}});var er=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const tr={block_ads:!0,block_urls:["*web_surveys.js*","*surveys-static*"],click_accept:!0,format:"png",hide_cookie_banners:!1,scroll_to:window.scrollY,wait_until:"domloaded"},sr=new Set,rr=(e,t)=>er(void 0,[e,t],void 0,function*({surveyId:e,visitorUUID:t,responseUUID:s},r){const i=_e.bX.getStore(r),{screenshot:o}=i.getState().surveyState.screenshotState;if(!o||sr.has(o.id))return{success:!1};sr.add(o.id);const{config:n,id:a,pointId:c}=o,l={response_data:{point_id:c,response_uuid:s,screenshot_uuid:a,visitor_uuid:t},screenshot_config:Object.assign(Object.assign({},tr),n)},v=yield Zs(e,s,r);if(!v)return console.error("Could not generate a screenshot URL"),i.action(Ys.dN)(null),{success:!1};try{const e=yield window.fetch(v,{body:JSON.stringify(l),headers:{"Access-Control-Request-Method":"PUT","Content-Type":"application/json"},method:"PUT"});if(200!==e.status)return i.action(Ys.UL)(),console.error(`Screenshot generating has failed: ${e.status}`),{success:!1}}catch(e){return i.action(Ys.UL)(),console.error("Error generating screenshot:",e),{success:!1}}return i.action(Ys.dN)(null),{screenshotUUID:a,success:!0}});var ir;!function(e){e.question="SurveyQuestion",e.nps="SurveyNps",e.form="SurveyForm",e.cta="SurveyCta"}(ir||(ir={}));const or=(e,t)=>{const{answer_type:s,surveyId:r,questionId:i,textResponse:o}=t,n={answer_type:s};if(!e.length)return{questionId:i,surveyId:r};switch(s){case F.smileyScale:case F.rating:case F.matrix:n.answer_value=o;break;case F.single:case F.dropdown:n.answer_id=e[0].survey_question_answer_id;break;case F.multiple:n.answer_ids=e.map(e=>e.survey_question_answer_id);break;case F.text:case F.date:case j.nps:n.answer_value=e[0].content}return{answer:n,questionId:i,surveyId:r}};var nr=s(2158);const ar=e=>e&&"object"==typeof e?Object.fromEntries(Object.entries(e).filter(([e])=>e!==oe&&e!==be.USER_ID_TRAIT)):{};class cr{static chunkArray(e,t=100){if(e.length<=t)return[e];const s=[];for(let r=0;r<e.length;r+=t)s.push(e.slice(r,r+t));return s}static createUserEventsPayloadChunks(e,t){return this.chunkArray(t).map(t=>Object.assign(Object.assign({},e),{events:t}))}static createUserAttributesPayloadChunks(e,t){return this.chunkArray(t).map(t=>Object.assign(Object.assign({},e),{attributes:t}))}}const lr=e=>{if(!Rt(e)||!e.attributes||!Object.keys(e.attributes).length)return;const{backendService:t}=an.getState(),s=Lt(e),r=Object.entries(e.attributes).filter(([e])=>e!==oe).map(([e,t])=>({name:e,timestamp:t.timestamp,value:t.value instanceof Date?t.value.toISOString():String(t.value)}));if(r.length<=100){const e=Object.assign({attributes:r},s);null==t||t.addRequest(ee.userAttributes,e,"",null)}else{cr.createUserAttributesPayloadChunks(s,r).forEach(e=>{null==t||t.addRequest(ee.userAttributes,e,"",null)})}l.m5.forEach(e=>{_e.bX.getStore(e).action(zo)()})};class vr{constructor(){this.intervalId=null,this.isSending=!1,this.CHECK_INTERVAL_WINDOW_MS=6e4}static getInstance(){return vr.instance||(vr.instance=new vr),vr.instance}start(){this.intervalId||(this.intervalId=setInterval(()=>{try{this.processThrottledAttributes()}catch(e){}},this.CHECK_INTERVAL_WINDOW_MS))}stop(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),this.isSending=!1}processThrottledAttributes(){const e=t();try{if(this.isSending)return;const{visitor:t}=an.getState();if(!Rt(t))return;const s={},r=Object.assign({},t);let i=!1;if(Object.entries(t.attributes).forEach(([t,o])=>{null!==o.throttledTo&&e>=o.throttledTo&&(s[t]={throttledTo:null,timestamp:o.timestamp,value:o.value},r.attributes[t]=Object.assign(Object.assign({},o),{throttledTo:null}),i=!0)}),i){this.isSending=!0;try{an.setState({visitor:r}),Fs(r);const e=Object.assign(Object.assign({},r),{attributes:Object.assign(Object.assign({},s),r.attributes.user_key&&{user_key:r.attributes.user_key})});lr(e)}finally{this.isSending=!1}}Object.values(r.attributes).every(e=>null===e.throttledTo)&&this.stop()}catch(e){}}processNow(){this.processThrottledAttributes()}}vr.instance=null;var _r;!function(e){e.Identified="identified",e.Anonymous="anonymous"}(_r||(_r={}));class ur{static ruleFulfilled({type:e},{visit:t}){return e===je.all||(e===je.mobile?this.isMobile(t.user_agent):!this.isMobile(t.user_agent))}static isMobile(e){return yt.A.isDeviceMobileOrTablet(e)}}class dr{static ruleFulfilled({list:e},{visit:t}){var s,r;const i=null!==(r=null===(s=t.language)||void 0===s?void 0:s.toLowerCase())&&void 0!==r?r:"",o=i.split("-")[0],n=rt(o);return e.some(e=>e.includes("-")?i===e.toLowerCase():i.startsWith(e)||void 0!==n&&n===e)}}class pr{static ruleFulfilled({type:e},{visitor:t}){var s;const r=t.identities&&t.identities.api&&t.identities.api.id,i=null===(s=t.attributes.email)||void 0===s?void 0:s.value;return e===Re.identified==!(!r&&!i)}}class mr{static ruleFulfilled({experiment_id:e,variation_name:t},{visit:s}){return new Promise(r=>{e&&t.type||r(!0);let i=0;const o=setInterval(()=>{if(i+=100,i>=8e3)return clearInterval(o),r(!1);const n=s.optimizelyState||window.optimizely&&window.optimizely.get&&window.optimizely.get("state");if(!n)return!1;if(!n.getVariationMap)return clearInterval(o),r(!1);const a=n.getVariationMap();return a[e]?"any"===t.type?(clearInterval(o),r(!0)):(clearInterval(o),void r(a[e].name===t.value)):(clearInterval(o),r(!1))},100)})}}class hr{static ruleFulfilled({list:e},{visitor:t,storeType:s}){var r;if(!s)return!1;const i=(null===(r=t[s])||void 0===r?void 0:r.tags)||[];return e.some(e=>i.includes(e))}}class br{static ruleFulfilled({count:e},{visit:t}){return e<t.views.length}}class gr{static ruleFulfilled({urls:e},{visit:t}){return e.some(e=>t.views.some(t=>new RegExp(e.regexp_text_pattern).test(t.replace(/^(?:https?:\/\/)?(?:www\.)?/i,""))))}}class fr{static ruleFulfilled({count:e},{visitor:t}){return 0===e?1===t.visitsCount:e<t.visitsCount}}const yr=[/\((?:[^()\\]|\\.)*?[+*}]\)\s*(?:[+*{])/,/\((?:[^()\\]|\\.)*?\.(?:\*|\+)(?:[^()\\]|\\.)*?\)\s*(?:[+*{])/,/\((?:[^()\\]|\\.)*?\|(?:[^()\\]|\\.)*?\)\s*(?:[+*{])/,/\((?:[^()\\]|\\.)*?\)\\\d+(?:[+*{])/],wr=e=>{if(!e||"string"!=typeof e||e.length>2e3||yr.some(t=>t.test(e)))return null;try{return new RegExp(e)}catch(e){return null}};var xr=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Sr{static ruleFulfilled({type:e,urls:t,campaign:s},{visit:r}){switch(e){case Le.direct:return!r.referrerUrl;case Le.referral:return t.some(e=>{const t=wr(e.regexp_text_pattern);return!!t&&t.test(r.referrerUrl.replace(/^(?:https?:\/\/)?(?:www\.)?/i,""))});case Le.utm:return this.isUTMCorrect(s,r);case Le.search:return this.isReferrerSearchEngine(r.referrerUrl)}return!0}static isReferrerSearchEngine(e){return xr(this,void 0,void 0,function*(){const{data:t}=yield(0,C.A)("https://surveys-static.survicate.com").get("/data/search_engine_regexes.json");if(!e||!t.length)return!1;for(let s=0;s<t.length;s+=1){const r=wr(t[s]);if(r&&r.test(e))return!0}return!1})}static isUTMCorrect(e,t){return this.isUTMParameterValid(e.medium,"utm_medium",t)&&this.isUTMParameterValid(e.content,"utm_content",t)&&this.isUTMParameterValid(e.name,"utm_campaign",t)&&this.isUTMParameterValid(e.source,"utm_source",t)&&this.isUTMParameterValid(e.term,"utm_term",t)}static isUTMParameterValid(e,t,s){if(!e.length)return!0;const r=this.getParameterByName(t,s.initialUrl);return e.some(e=>e===r)}static getParameterByName(e,t){if(!e||"string"!=typeof e)return null;const s=e.replace(/[\[\]]/g,"\\$&"),r=wr(`[?&]${s}(=([^&#]*)|&|#|$)`);if(!r)return null;const i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}}class kr{static ruleFulfilled({surveyAudiencesIds:e,audiencesIds:t},{checkBackendRule:s}){return!s||e.some(e=>t.includes(e))}}const Ar=e=>e instanceof Date?e:new Date(e.toString()),Tr=e=>"string"==typeof e&&/\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(([+-]\d{2}:\d{2})|Z))?/.test(e)?e.slice(0,10):"[object Date]"===Object.prototype.toString.call(e)?e.toISOString().slice(0,10):e,Or=(e,t)=>{switch(t){case"number":return Number(e);case"boolean":return e;case"datetime":{const t=Tr(e);return"string"==typeof t&&10===t.length?t:(console.error("Invalid datetime attribute. Please provide date in ISO string or Date object."),null)}case"time_interval":return"number"==typeof e?e:Ar(e).getTime();default:return String(e).trim()}};class Er{static ruleFulfilled({attributes:e,relation:t},{visitor:s}){var r,i;const o=Object.assign({},s.attributes);(null===(i=null===(r=null==s?void 0:s.identities)||void 0===r?void 0:r.api)||void 0===i?void 0:i.id)&&(o[be.USER_ID_TRAIT]={throttledTo:null,timestamp:Date.now(),value:s.identities.api.id});const n=({name:e,operator:t,values:s,attribute_type:r})=>{var i;if(t===Ne.any)return e in o;const n=null===(i=o[e])||void 0===i?void 0:i.value;if(t===Ne.exists||t===Ne.does_not_exist)return Ge({attribute_type:r,clientAttributes:[],operator:t,userAttribute:n});if(!s||!Object.keys(o).length||!(e in o))return!1;if(void 0===n)return!1;const a=Or(n,r);if(null===a)return!1;const c=s.map(e=>Or(e,r)).filter(e=>null!==e);return!!c.length&&Ge({attribute_type:r,clientAttributes:c,operator:t,userAttribute:a})};return t===Me.and?e.every(n):e.some(n)}}function Pr(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)"__proto__"!==r&&(e[r]=s[r])}return e}var Cr=function e(t,s){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=Pr({},s,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var n in i)i[n]&&(o+="; "+n,!0!==i[n]&&(o+="="+i[n].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var s=document.cookie?document.cookie.split("; "):[],r={},i=0;i<s.length;i++){var o=s[i].split("="),n=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(a in r||(r[a]=t.read(n,a)),e===a)break}catch{}}return e?r[e]:r}},remove:function(e,t){r(e,"",Pr({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Pr({},this.attributes,t))},withConverter:function(t){return e(Pr({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(s)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});class Nr{static isCookieFulfilled({name:e,type:t,value:s}){let r;try{r=Cr.get(e)}catch(e){return!1}return t===Ie.exact&&s?`${r}`==`${s}`:!!r}static ruleFulfilled({cookies:e,relation:t}){return t===Me.and?e.every(e=>Nr.isCookieFulfilled(e)):e.some(e=>Nr.isCookieFulfilled(e))}}var Mr,Ir,jr=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Rr{static areFulfilled(e){return jr(this,arguments,void 0,function*({audiences:e,checkBackendRule:t=!1,survey:s,visit:r,visitor:i,storeType:o}){const n=yield this.getFulfilledAudiences({audiences:e,checkBackendRule:t,survey:s,visit:r,visitor:i,storeType:o});return!!(null==n?void 0:n.length)})}static getFulfilledAudiences(e){return jr(this,arguments,void 0,function*({audiences:e,checkBackendRule:t=!1,survey:s,visit:r,visitor:i,storeType:o}){const n=e.filter(e=>s.audiences_ids.includes(e.id));t&&n.forEach(e=>{e.filters.forEach(e=>{if(e.name===De.backendTargeting){const t=e.parameters;t.surveyAudiencesIds=s.audiences_ids,t.setByBackendManager||(t.audiencesIds=n.map(e=>e.id))}})});return(yield Promise.all(n.map(e=>jr(this,void 0,void 0,function*(){return(yield this.isUserInAudience(e,{checkBackendRule:t,visit:r,visitor:i,storeType:o}))?e:null})))).filter(e=>null!==e)})}static isUserInAudience(e,t){return jr(this,void 0,void 0,function*(){const s=yield Promise.all(e.filters.map(e=>this.userPassesRule(e,t)));if(!1===(null==e?void 0:e.has_backend_filters)&&!t.checkBackendRule){const t=s.filter((t,s)=>e.filters[s].name!==De.backendTargeting);return e.filters_relation===Me.and?t.every(e=>e):t.some(e=>e)}return e.filters_relation===Me.and?s.every(e=>e):s.some(e=>e)})}static userPassesRule(e,t){return jr(this,void 0,void 0,function*(){const s={[De.attributes]:Er,[De.backendTargeting]:kr,[De.cookies]:Nr,[De.device]:ur,[De.languages]:dr,[De.loggedInStatus]:pr,[De.tags]:hr,[De.visitDepth]:br,[De.visitedUrls]:gr,[De.visitFrequency]:fr,[De.visitSource]:Sr,[De.optimizely]:mr}[e.name];if(!s)return!0;return(yield s.ruleFulfilled(e.parameters,t))!==e.exclude})}}!function(e){e.Verified="verified",e.Invalid="invalid",e.Error="error"}(Mr||(Mr={})),function(e){e.Idle="idle",e.Pending="pending",e.Fulfilled="fulfilled",e.Rejected="rejected"}(Ir||(Ir={}));var Lr=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Dr{static getVerifyUserStatus(){return{error:this.verifyUserError,status:this.verifyUserStatus}}static verifyUserCredentials(e){return Lr(this,void 0,void 0,function*(){var t,s;this.verifyUserStatus=Ir.Pending,this.verifyUserError=null;const r=null===(s=null===(t=window._svd)||void 0===t?void 0:t.flags)||void 0===s?void 0:s.enforce_user_authentication;return new Promise(t=>{var s;try{null===(s=an.getState().backendService)||void 0===s||s.addRequestWithCallback(ee.userVerification,e,e=>{if(!e)return this.verifyUserStatus=Ir.Fulfilled,void t({type:Mr.Verified});const{status:s,response:i,error:o}=e;switch(s){case 220:case 204:this.verifyUserStatus=Ir.Fulfilled,t({type:Mr.Verified});break;case 400:case 409:case 422:i.json().then(e=>{var i,o,n;this.verifyUserStatus=Ir.Rejected,this.verifyUserError=null!==(i=e.message)&&void 0!==i?i:`HTTP ${s}`,r?console.error("Validation failed:",null!==(o=e.message)&&void 0!==o?o:`HTTP ${s}`):console.warn("Validation failed:",null!==(n=e.message)&&void 0!==n?n:`HTTP ${s}`),t({details:e.details,message:e.message,status:s,type:Mr.Invalid})}).catch(()=>{this.verifyUserStatus=Ir.Rejected,this.verifyUserError=`HTTP ${s}`,r?console.error("Validation failed:",`HTTP ${s}`):console.warn("Validation failed:",`HTTP ${s}`),t({message:`HTTP ${s}`,status:s,type:Mr.Invalid})});break;default:this.verifyUserStatus=Ir.Rejected,this.verifyUserError=`HTTP ${s}`,t({message:`HTTP ${s}`,type:Mr.Error})}})}catch(e){this.verifyUserStatus=Ir.Rejected,this.verifyUserError=e.message,t({message:e.message,type:Mr.Error})}})})}static updateVisitor({visitor:s,result:r,userId:i,newAttributes:o,previousRespondentUUID:n}){var a;if(r.type===Mr.Verified){const e=null===(a=s.validation)||void 0===a?void 0:a.previousValidatedUserId;return Object.assign(Object.assign({},s),{attributes:Object.assign(Object.assign({},s.attributes),null!=o?o:{}),validation:{previousValidatedUserId:e===i?e:i,timestamp:t()}})}return Object.assign(Object.assign({},s),{uuid:null!=n?n:(0,e.A)(),validation:{previousValidatedUserId:null,timestamp:null}})}static validateUser(e){return Lr(this,arguments,void 0,function*({visitor:e,userId:t,userKey:s,newAttributes:r}){var i,o;const n=yield this.verifyUserCredentials(Lt(e,s));let a=e;n.type===Mr.Invalid&&409===n.status&&(a=Object.assign(Object.assign({},a),{validation:Object.assign(Object.assign({},a.validation),{timestamp:null})}));const c=this.updateVisitor({newAttributes:r,previousRespondentUUID:e.uuid,result:n,userId:t,visitor:a});switch(Fs(c),n.type){case Mr.Verified:lr(c);break;case Mr.Invalid:409===n.status?console.warn("User authentication conflict (409) - user logged out:",n.message):console.error("User verification failed:",n.message),(null===(o=null===(i=window._svd)||void 0===i?void 0:i.flags)||void 0===o?void 0:o.enforce_user_authentication)||409===n.status||lr(c);break;case Mr.Error:console.error("Error occurred while verifying user:",n.message)}})}static waitForVerificationToComplete(){return Lr(this,void 0,void 0,function*(){return new Promise(e=>{const t=()=>{const{status:s}=Dr.getVerifyUserStatus();s===Ir.Pending?setTimeout(t,1e3):e()};t()})})}}Dr.verifyUserStatus=Ir.Idle,Dr.verifyUserError=null;var Fr=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class zr{static getRequestKey(e,t){return`surveys:${[...e].sort().join(",")}|audiences:${[...t].sort().join(",")}`}static getInFlightRequest(e){return this.inFlightRequests.get(e)}static createAndTrackBackendRequest(e,t){const s=t();return this.inFlightRequests.set(e,s),s.finally(()=>{this.inFlightRequests.delete(e)}).catch(()=>{}),s}static getBackendRequest(e,t,s){return Fr(this,void 0,void 0,function*(){const r=this.getRequestKey(e,t),i=this.getInFlightRequest(r);return i||this.createAndTrackBackendRequest(r,s)})}static clearInFlightRequests(){this.inFlightRequests.clear()}}zr.inFlightRequests=new Map;class qr{static isValidCacheUntil(e){if(!e||"number"!=typeof e)return!1;return t()<e-this.BUFFER_MS}static filterValidBackendResponse(e){if(!e)return null;const t=(e.surveys||[]).filter(e=>e&&e.can_show&&this.isValidCacheUntil(e.cache_until)),s=(e.audiences||[]).filter(e=>e&&e.is_satisfied&&this.isValidCacheUntil(e.cache_until));return t.length||s.length?{audiences:s,surveys:t}:null}}qr.BUFFER_MS=3e4;let Ur=[],$r=!1;function Br(e,t){const s={};return[...e,...t].forEach(e=>s[e.id]=e),Object.values(s)}var Vr;!function(e){e.Survey="survey",e.Audience="audience"}(Vr||(Vr={}));class Hr{constructor(){var e;this.sessionStore=X.getStore(l.L0.WidgetSurvey);const t=(null===(e=window._svc)||void 0===e?void 0:e.workspaceKey)||"";this.cacheKey=`survi::${t}::backendCache`}getCachedSurveys(e){const t=this.getCache();return this.getCachedEntries({cachedData:t.surveys,entityType:Vr.Survey,ids:e})}getCachedAudiences(e){const t=this.getCache();return this.getCachedEntries({cachedData:t.audiences,entityType:Vr.Audience,ids:e})}getCache(){try{return this.sessionStore.get(this.cacheKey,!0)||{audiences:{},surveys:{}}}catch(e){return{audiences:{},surveys:{}}}}getCachedEntries(e){const{ids:t,cachedData:s}=e,r=[],i=[];if(!s||"object"!=typeof s)return{needsRefresh:t,valid:[]};for(const e of t){const t=s[String(e)];t&&this.isValidCacheEntry(t)?this.isExpired(t.cache_until)?i.push(e):r.push(Object.assign(Object.assign({},t),{id:e})):i.push(e)}return{needsRefresh:i,valid:r}}updateCache(e){if(e&&"object"==typeof e)try{const t=this.getCache();let s=!1;if(Array.isArray(e.surveys)&&e.surveys.length)for(const r of e.surveys)null!=(null==r?void 0:r.id)&&"boolean"==typeof r.can_show&&"number"==typeof r.cache_until&&(t.surveys[r.id]={cache_until:r.cache_until,can_show:r.can_show},s=!0);if(Array.isArray(e.audiences)&&e.audiences.length>0)for(const r of e.audiences)null!=(null==r?void 0:r.id)&&"boolean"==typeof r.is_satisfied&&"number"==typeof r.cache_until&&(t.audiences[String(r.id)]={cache_until:r.cache_until,is_satisfied:r.is_satisfied},s=!0);s&&this.sessionStore.set(this.cacheKey,t,!0)}catch(e){}}markSurveyDisplayed(e){var t;try{const s=this.getCache();(null===(t=null==s?void 0:s.surveys)||void 0===t?void 0:t[e])&&(s.surveys[e].can_show=!1,this.sessionStore.set(this.cacheKey,s,!0))}catch(e){}}isExpired(e){return!qr.isValidCacheUntil(e)}clearCache(){try{this.sessionStore.remove(this.cacheKey,!0)}catch(e){}}isValidCacheEntry(e){return"object"==typeof e&&null!==e&&"cache_until"in e&&"number"==typeof e.cache_until}}var Wr,Kr=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Jr{static initCacheService(){this.cacheService||(this.cacheService=new Hr)}static clearInFlightRequests(){zr.clearInFlightRequests()}static buildTargetingPayload(e,t){const{visitor:s}=an.getState(),r=Te.getVisit(e).get();return Object.assign(Object.assign(Object.assign({},Lt(s)),{audiences:[],displayed_surveys:r.displayedSurveys.map(e=>e.surveyId),surveys:[]}),t)}static addFilter(e){return e.map(e=>e.visitor_type===_r.Identified?Object.assign(Object.assign({},e),{filters:[...e.filters,{exclude:!1,name:De.backendTargeting,parameters:{audiencesIds:[],surveyAudiencesIds:[]}}]}):e)}static markSurveyDisplayed(e){this.initCacheService(),this.cacheService&&this.cacheService.markSurveyDisplayed(e)}static clearCache(){this.initCacheService(),this.cacheService&&this.cacheService.clearCache()}static getBackendSurveysToDisplay(e){return Kr(this,arguments,void 0,function*({surveyType:e,surveysToDisplay:t,preCheckedBackendAudiences:s,updatedAudienceWithBackendTargeting:r,visit:i,visitor:o}){var n,a,c,l,v,_;if((null===(a=null===(n=window._svd)||void 0===n?void 0:n.flags)||void 0===a?void 0:a.enforce_user_authentication)&&!0===(null===(l=null===(c=window._svd)||void 0===c?void 0:c.flags)||void 0===l?void 0:l.backend_targeting_enabled)&&(yield Dr.waitForVerificationToComplete()),!(e&&s.length&&t.length&&!0===(null===(_=null===(v=window._svd)||void 0===v?void 0:v.flags)||void 0===_?void 0:_.backend_targeting_enabled)&&Rt(o)))return[];const u=t.filter(e=>e.backendTargeted);if(this.initCacheService(),!this.cacheService)return[];const d=u.map(e=>e.id),p=s.map(e=>e.id),m=this.cacheService.getCachedSurveys(d),h=this.cacheService.getCachedAudiences(p);let b=null;if(m.needsRefresh.length||h.needsRefresh.length)try{const t=yield zr.getBackendRequest(m.needsRefresh,h.needsRefresh,()=>Wr.verifyBackendTargeting({audiences:h.needsRefresh,surveyType:e,surveys:m.needsRefresh}));t&&this.cacheService&&this.cacheService.updateCache(t),b=qr.filterValidBackendResponse(t)}catch(e){return console.error("[BackendTargeting] Error in backend targeting verification:",e),[]}const g=Br(m.valid,(null==b?void 0:b.surveys)||[]),f=Br(h.valid,(null==b?void 0:b.audiences)||[]),y=new Set(g.filter(e=>e.can_show).map(e=>e.id)),w=new Set(f.filter(e=>e.is_satisfied).map(e=>e.id)),x=u.filter(e=>y.has(e.id)),S=function(e,t){return e.map(e=>Object.assign(Object.assign({},e),{filters:e.filters.map(s=>{if(s.name===De.backendTargeting){const r=s.parameters;return Object.assign(Object.assign({},s),{parameters:Object.assign(Object.assign({},r),{audiencesIds:Array.from(t),setByBackendManager:!0,surveyAudiencesIds:[e.id]})})}return s})}))}(r,w);return(yield Promise.all(x.map(e=>Kr(this,void 0,void 0,function*(){try{return(yield Rr.getFulfilledAudiences({audiences:S,checkBackendRule:!0,survey:e,visit:i,visitor:o})).length?e:null}catch(e){return null}})))).filter(e=>null!==e)})}}Wr=Jr,Jr.cacheService=null,Jr.sendTargetingRequest=(e,t)=>Kr(void 0,void 0,void 0,function*(){const{backendService:s}=an.getState();return s?(yield $r?new Promise(e=>{Ur.push(e)}):Promise.resolve(),new Promise(r=>{s.addRequestWithCallback(ee.targeting,t,e=>{if(!e)return void r(null);const{status:t,response:s,error:i}=e;i||200!==t?r(null):s.json().then(e=>{r(e)}).catch(()=>{r(null)})},e)})):null}),Jr.verifyBackendTargeting=e=>Kr(void 0,[e],void 0,function*({surveyType:e,surveys:t,audiences:s}){if(!t.length||!e)return null;const r=Wr.buildTargetingPayload(e,{audiences:s,surveys:t});return Wr.sendTargetingRequest(e,r)}),Jr.verifyShowSurvey=(e,t)=>Kr(void 0,void 0,void 0,function*(){var s,r;const{visitor:i}=an.getState();if(!Rt(i))return!1;const o=Wr.buildTargetingPayload(e,{surveys:[t]}),n=yield Wr.sendTargetingRequest(e,o);return!0===(null===(r=null===(s=null==n?void 0:n.surveys)||void 0===s?void 0:s.find(e=>e.id===t))||void 0===r?void 0:r.can_show)});const Xr=function(e,t){if(!t)return{changedAttributes:Object.assign({},e),hasChanges:Object.keys(e).length>0,newAttributes:e};const s={};let r=!1;for(const[i,o]of Object.entries(e)){const e=Object.prototype.hasOwnProperty.call(t,i),n=e&&Object.is(t[i],o);e&&n||(s[i]=o,r=!0)}return{changedAttributes:s,hasChanges:r,newAttributes:e}},Gr=3e5,Yr={shouldSendImmediately:!0,throttledTo:null};function Qr(e,t){if(!t)return Yr;return e-t.timestamp>=Gr?Yr:{shouldSendImmediately:!1,throttledTo:t.throttledTo||t.timestamp+Gr}}let Zr=null;class ei{constructor(){var e,t;this.sessionStore=X.getStore(g.BackendAttributesStore);const s=null!==(t=null===(e=window._svc)||void 0===e?void 0:e.workspaceKey)&&void 0!==t?t:"";this.storageKey=`survi::${s}::${u.backendAttributes}`}static getInstance(){return Zr||(Zr=new ei),Zr}get(){try{return this.sessionStore.get(this.storageKey,!0)}catch(e){return null}}set(e){try{this.sessionStore.set(this.storageKey,e,!0)}catch(e){}}remove(){try{this.sessionStore.remove(this.storageKey,!0)}catch(e){}}}const ti=e=>null!==e&&"object"==typeof e&&!Array.isArray(e)&&Object.entries(e).every(([e,t])=>"string"==typeof e&&"string"==typeof t),si=()=>{if("undefined"==typeof window)return{};if(fe()){const e=ye.getStorage(f.VisitorStore).get(p.identityUuidPairs);return ti(e)?e:{}}const{storageService:e}=an.getState();if(!e)return{};const t=e.get(f.VisitorStore,{key:d.identityUuidPairs,table:u.visitor});return ti(t)?t:{}},ri=(e,t,s)=>{e&&!s&&!Rs(e)&&t&&(e=>{if("undefined"==typeof window)return;if(fe())return void ye.getStorage(f.VisitorStore).set(p.identityUuidPairs,e);const{storageService:t}=an.getState();t&&t.put(f.VisitorStore,{key:d.identityUuidPairs,table:u.visitor},e)})(Object.assign(Object.assign({},si()),{[e]:t}))},ii=(t,s)=>{var r;let i;return i=!t||s||Rs(t)?(0,e.A)():null!==(r=(e=>{if(e&&!Rs(e))return si()[e]})(t))&&void 0!==r?r:(0,e.A)(),Object.assign(Object.assign({},{attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0}),{identities:{api:{id:t}},isKioskMode:s,uuid:i})};var oi;function ni(){if("undefined"==typeof window)return;const e=X.getStore(f.VisitorStore),t=Se.getUrl().replace(`${window.location.protocol}//`,""),s=e.get(W.sessionViews),r=Array.isArray(s)?[...s]:[];if(r.includes(t)||(r.push(t),e.set(W.sessionViews,r)),1!==r.length)return;const{visitor:i}=an.getState();i.visitsCount=i.visitsCount+1,Fs(i)}function ai(e,s){var r,i,o,n,a,c;if(!s)return;let{visitor:v}=e;const _=t(),u=ei.getInstance(),d=((e,t=he.visitor)=>{if(!e)return{};const s={};return Object.keys(e).forEach(r=>{const i=I(r);let o=e[r];"number"==typeof o||"boolean"==typeof o||o instanceof Date||(o=I(`${null!=o?o:""}`)),ge(o,i,t)&&(s[i]=o)}),s})(s,he.visitor),p=s[be.USER_ID_TRAIT],m=""===p||!!p;let h;m&&(h=null!==(r=Ls(p))&&void 0!==r?r:"");const b=null!=(null===(i=v.identities.api)||void 0===i?void 0:i.id)?String(v.identities.api.id):void 0;b&&m&&b!==h&&(ri(b,v.uuid,v.isKioskMode),v=ii(null!=h?h:"",v.isKioskMode),Jr.clearCache(),u.remove()),m&&(v.identities.api={id:h});const g=u.get(),f=s[oe],y="string"==typeof f&&(null===(o=v.attributes[oe])||void 0===o?void 0:o.value)!==f;let w=Object.assign({},d);if(g&&Rt(v)){const e=Xr(ar(d),g);if(!e.hasChanges&&!y)return;w=e.changedAttributes,y&&(w[oe]=f);const t=Object.assign(Object.assign({},g),e.changedAttributes);u.set(t)}const x={};Object.keys(d).forEach(e=>{const t=v.attributes[e];if(e in w){const s=Qr(_,t);v.attributes[e]={throttledTo:s.throttledTo,timestamp:_,value:d[e]},s.shouldSendImmediately&&(x[e]={throttledTo:null,timestamp:_,value:w[e]})}});if(Object.values(v.attributes).some(e=>null!==e.throttledTo)&&Rt(v)&&vr.getInstance().start(),!g&&h&&Object.keys(w).length){const e=ar(w);u.set(e)}const S=null===(n=v.identities.api)||void 0===n?void 0:n.id;if("undefined"!=typeof window&&!0===(null===(c=null===(a=window._svd)||void 0===a?void 0:a.flags)||void 0===c?void 0:c.backend_targeting_enabled)&&"string"==typeof S&&S&&"string"==typeof f){const e={};return Object.keys(w).forEach(t=>{var s,r;const i=v.attributes[t];e[t]={throttledTo:null!==(s=null==i?void 0:i.throttledTo)&&void 0!==s?s:null,timestamp:null!==(r=null==i?void 0:i.timestamp)&&void 0!==r?r:_,value:w[t]}}),void Dr.validateUser({newAttributes:e,userId:S,userKey:f,visitor:v})}Fs(v),Rt(v)&&Object.keys(x).length&&lr(Object.assign(Object.assign({},v),{attributes:Object.assign(Object.assign({},x),v.attributes.user_key&&{user_key:v.attributes.user_key})})),l.m5.forEach(e=>{_e.bX.getStore(e).action(zo)()})}function ci(){var e,t,s;const r=_e.bX.getStore(l.L0.PageSurvey),i=Se.params,o=i[we.p],n=Object.values(be.PROVIDERS_TRAITS_WHITELIST).reduce((e,t)=>e.concat(t),[]),a=new Set([...n,be.USER_ID_TRAIT]),c=o&&null!==(e=be.PROVIDERS_TRAITS_WHITELIST[o])&&void 0!==e?e:[],v=null!==(s=null===(t=r.getState().integrationTags)||void 0===t?void 0:t.salesforce)&&void 0!==s?s:[],_=new Set([...v,...c]),u={};Object.keys(i).forEach(e=>{e!==we.p&&(o&&_.has(e)||(u[e]=Se[a.has(e)?"identitiesParams":"params"][e]))}),Object.keys(u).length&&an.action(ai)((0,nr.N)(u))}function li(e,t){const{visitor:s}=an.getState();if(!e.storeType)return;const r=s[e.storeType],i=null!=r?r:{displayedSurveys:[],engagedSurveys:[],initialSurveysEngagement:[],tags:[]};i.tags.includes(t)||(s[e.storeType]=Object.assign(Object.assign({},i),{tags:[...i.tags,t]}),Fs(s))}!function(e){e.engaged="engagedSurveys",e.displayed="displayedSurveys"}(oi||(oi={}));const vi=(e,t,s)=>{var r;const i={surveyId:t,timestamp:s},o=[...e],n=o.findIndex(e=>(e.surveyId||e)===t);return-1===n?o.push(Object.assign(Object.assign({},i),{count:1})):o[n]=Object.assign(Object.assign({},i),{count:(null!==(r=o[n].count)&&void 0!==r?r:0)+1}),o};function _i(e,{surveyId:s,interactionType:r}){const{visitor:i}=an.getState(),o=t();if(!e.storeType)return;const n=e.storeType,a=i[n],c=null!=a?a:{displayedSurveys:[],engagedSurveys:[],initialSurveysEngagement:[],tags:[]};if(r===oi.engaged){const e=c.initialSurveysEngagement||[],t=e.find(e=>e.surveyId===s)?e:[...e,{count:1,surveyId:s,timestamp:o}];i[n]=Object.assign(Object.assign({},c),{engagedSurveys:vi([...c.engagedSurveys],s,o),initialSurveysEngagement:t})}else r===oi.displayed&&(i[n]=Object.assign(Object.assign({},c),{displayedSurveys:vi([...c.displayedSurveys],s,o)}));Fs(i)}const ui={addNewVisit:ni,saveVisitor:Fs,setSurveyInteraction:_i,setVisitorAttributes:ai,setVisitorAttributesFromURL:ci,setVisitorIdentity:zs,setVisitorTag:li};function di(e){var t,s,r;const{survey:i}=e.surveyState,o=_e.bX.getStore(e.storeType);if(!i||(null===(t=window._svc)||void 0===t?void 0:t.isPreview))return;const n=an.getState().visitor,a={visitor:ce(n,e.storeType)},c=e.storeType?n[e.storeType]:void 0;!(null!==(s=null==c?void 0:c.displayedSurveys)&&void 0!==s?s:[]).some(e=>e.surveyId===i.id)&&(a.survey_first_seen=!0),null===(r=e.backendService)||void 0===r||r.addRequest(ee.seen,a,i.id,e.storeType),o.action(_i)({interactionType:oi.displayed,surveyId:i.id}),e.storeType&&Te.getVisit(e.storeType).addDisplayedSurvey(i.id),Jr.markSurveyDisplayed(i.id),Y.fireEvent(G.surveyDisplayed,{surveyId:i.id,surveyName:i.name});const l=(e=>{var t,s;return(null===(s=null===(t=e.surveyState)||void 0===t?void 0:t.survey)||void 0===s?void 0:s.integrations)||{}})(e);Vt().pushEvent(Ht.IntegrationEventTypes.SurveySeen,{surveyName:i.name},l)}const pi=e=>{var t,s;return(null===(s=null===(t=e.surveyState)||void 0===t?void 0:t.survey)||void 0===s?void 0:s.integrations)||{}};function mi(e,t){var s,r,i;const o=_e.bX.getStore(e.storeType);o.action(_i)({interactionType:oi.engaged,surveyId:t.survey.id}),e.storeType&&(Te.getVisit(e.storeType).setEngaged(),Te.getVisit(e.storeType).addAnswer(t.surveyPointId,t.textResponse));const n=pi(e);let a;if(t.pointType===ir.form){const e={};t.answers.forEach(t=>{t.answer_type&&t.content&&(e[t.answer_type]=t.content)}),an.action(ai)(e),a=Object.assign(Object.assign({},t),{contactForm:e})}else{const{surveyState:{survey:s}}=e,r=null==s?void 0:s.points.map(e=>e.id).indexOf(t.surveyPointId);a=Object.assign(Object.assign({},t),{question:void 0!==r&&-1!==r?`${r+1} - ${t.question}`:t.question})}if(e.storeType&&(null===(s=null==t?void 0:t.answers)||void 0===s?void 0:s.length)&&(null===(r=o.getState().surveyState.screenshotState)||void 0===r?void 0:r.isEnabled)&&(null===(i=o.getState().surveyState.screenshotState)||void 0===i?void 0:i.screenshot)){const s=an.getState().visitor.uuid;rr({responseUUID:t.response_uuid,surveyId:t.survey.id,visitorUUID:s},e.storeType).then(s=>{const r=s.success&&s.screenshotUUID?Object.assign(Object.assign({},t),{screenshot_uuid:s.screenshotUUID}):t;Gs(e,r)}).catch(s=>{console.error("Screenshot upload failed:",s),Gs(e,t)})}else Gs(e,t);Y.fireEvent(G.questionAnswered,or(t.answers,{answer_type:t.answerType,questionId:t.surveyPointId,surveyId:t.survey.id,textResponse:t.textResponse})),Vt().pushEvent(Ht.IntegrationEventTypes.SurveyPointAnswered,a,n)}function hi(e,t){const s=_e.bX.getStore(e.storeType);s.action(_i)({interactionType:oi.engaged,surveyId:t.surveyId}),e.storeType&&Te.getVisit(e.storeType).setEngaged(),s.action(zo)(),Y.fireEvent(G.surveyClosed,{surveyId:t.surveyId});const r=pi(e);Vt().pushEvent(Ht.IntegrationEventTypes.SurveyClosed,t,r)}function bi(e,t){const s=pi(e);Vt().pushEvent(Ht.IntegrationEventTypes.SurveyMinimized,t,s)}function gi(e,t){const s=pi(e);Vt().pushEvent(Ht.IntegrationEventTypes.SurveyMaximized,t,s)}function fi(e,t){const s=pi(e);Vt().pushEvent(Ht.IntegrationEventTypes.SurveyPointSeen,t,s)}const yi={answered:mi,closed:hi,maximized:gi,minimized:bi,seen:di,surveyPointSeen:fi},wi=e=>{if(!e||!e.length)return!1;const t=e[e.length-1].point.answer_type;return-1!==Object.values(xt).filter(e=>e!==xt.button).indexOf(t)};class xi{constructor(e){this.prefix=e}getStoreKey({table:e,key:t}){const s=e===u.requests_contacts?"::":"";return`${this.prefix}${e}${s}${t}`}get(e,t){return S.getStore(e).get(this.getStoreKey(t),!0)}put(e,t,s){S.getStore(e).set(this.getStoreKey(t),s,!0)}getAll(e,t){const s=[],r=`${this.prefix}${t}`;return S.getStore(e).each((e,i)=>{i.startsWith(r)&&("requests"===t&&i.includes("requests_contacts")||s.push(c(e)))}),s}remove(e,t){S.getStore(e).remove(this.getStoreKey(t),!0)}}class Si{constructor(e){this.workspaceKey=e}getStorageInstance(e){const t=e===l.L0.FeedbackButton||e===f.VisitorStore?`${e}::`:"";return new xi(`survi::${this.workspaceKey}::${t}`)}get(e,t){return this.getStorageInstance(e).get(e,t)}getAll(e,t){return this.getStorageInstance(e).getAll(e,t)}put(e,t,s){this.getStorageInstance(e).put(e,t,s)}remove(e,t){this.getStorageInstance(e).remove(e,t)}}var ki;!function(e){e[e.kiosk=0]="kiosk",e[e.normal=1]="normal"}(ki||(ki={}));const Ai=function(e){if(!e||"object"!=typeof e)return{};const t=Object.entries(e);if(!t.length)return{};if(t.every(([,e])=>e&&"object"==typeof e&&null!==e&&"value"in e&&"timestamp"in e&&"throttledTo"in e))return e;const s={},r=Date.now();for(const[e,i]of t){i&&"object"==typeof i&&null!==i&&"value"in i&&"timestamp"in i&&"throttledTo"in i?s[e]=i:("string"==typeof i||"number"==typeof i||"boolean"==typeof i||i instanceof Date)&&(s[e]={throttledTo:null,timestamp:r,value:i})}return s};function Ti(e){var t,s,r,i;return{displayedSurveys:null!==(t=null==e?void 0:e.displayedSurveys)&&void 0!==t?t:[],engagedSurveys:null!==(s=null==e?void 0:e.engagedSurveys)&&void 0!==s?s:[],initialSurveysEngagement:null!==(r=null==e?void 0:e.initialSurveysEngagement)&&void 0!==r?r:[],tags:null!==(i=null==e?void 0:e.tags)&&void 0!==i?i:[]}}const Oi=t=>{var s,r,i,o,n,a,c,v,_,m,h,b,g;const{storageService:y}=an.getState();if(!y)return;let w=Object.assign(Object.assign({},{attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0}),{isKioskMode:t===ki.kiosk,uuid:(0,e.A)()});if(t===ki.normal&&y){const t=y.get(f.VisitorStore,{key:d.visitor,table:u.visitor});if(t&&t.uuid)w=Object.assign({},t);else{const e={key:d.visitor,table:u.all};if("undefined"!=typeof window&&!!(null===(s=window._svd)||void 0===s?void 0:s.survey)){const t=y.get(l.L0.WidgetSurvey,e);t&&(w=Object.assign(Object.assign({},{attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0}),{attributes:Ai(null!==(r=t.attributes)&&void 0!==r?r:{}),identities:null!==(i=t.identities)&&void 0!==i?i:{},migrationTimestamp:Date.now(),uuid:t.uuid,validation:null!==(o=t.validation)&&void 0!==o?o:{previousValidatedUserId:null,timestamp:null},visitsCount:null!==(n=t.visitsCount)&&void 0!==n?n:0,[l.L0.PageSurvey]:{displayedSurveys:null!==(a=t.displayedSurveys)&&void 0!==a?a:[],engagedSurveys:null!==(c=t.engagedSurveys)&&void 0!==c?c:[],initialSurveysEngagement:null!==(v=t.initialSurveysEngagement)&&void 0!==v?v:[],tags:null!==(_=t.tags)&&void 0!==_?_:[]}}))}else{const t=y.get(l.L0.WidgetSurvey,e),s=y.get(l.L0.FeedbackButton,e);(t||s)&&(w=function(e,t){const s={attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0};if(!e&&!t)return s;const r=e||t,i=Object.assign({},s.attributes);for(const s of[e,t])if(null==s?void 0:s.attributes)for(const[e,t]of Object.entries(s.attributes)){const s=t;(!i[e]||s.timestamp>i[e].timestamp)&&(i[e]=s)}const o=Object.assign(Object.assign(Object.assign({},s.identities),(null==t?void 0:t.identities)||{}),(null==e?void 0:e.identities)||{}),n=(null==e?void 0:e.visitsCount)||0,a=(null==t?void 0:t.visitsCount)||0,c=Math.max(n,a);let v=s.validation;(null==e?void 0:e.validation)&&(null==t?void 0:t.validation)?v=(e.validation.timestamp||0)>(t.validation.timestamp||0)?e.validation:t.validation:(null==e?void 0:e.validation)?v=e.validation:(null==t?void 0:t.validation)&&(v=t.validation);return{attributes:i,identities:o,migrationTimestamp:Date.now(),[l.L0.FeedbackButton]:t?Ti(t):void 0,uuid:r.uuid,validation:v,visitsCount:c,[l.L0.WidgetSurvey]:Ti(e)}}(t,s),w.attributes=Ai(w.attributes))}}if(null!=(null===(h=null===(m=w.identities)||void 0===m?void 0:m.api)||void 0===h?void 0:h.id)&&(Rs(w.identities.api.id)?w=Object.assign(Object.assign({},{attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0}),{identities:{api:{id:null!==(b=Ls(w.identities.api.id))&&void 0!==b?b:""}},isKioskMode:w.isKioskMode,uuid:(0,e.A)()}):w.identities=Object.assign(Object.assign({},w.identities),{api:Object.assign(Object.assign({},w.identities.api),{id:null!==(g=Ls(w.identities.api.id))&&void 0!==g?g:""})})),fe()){const s=ye.getStorage(f.VisitorStore),r=s.get(p.visitorAttributes),i=s.get(p.visitorIdentities);!r&&!i&&(null==t?void 0:t.uuid)&&(w=Object.assign(Object.assign({},w),{uuid:(0,e.A)()})),r&&"object"==typeof r&&(w=Object.assign(Object.assign({},w),{attributes:Ai(r)})),i&&"object"==typeof i&&(w=Object.assign(Object.assign({},w),{identities:i}))}}Fs(w),an.action(ni)()},Ei=({surveyState:e,storeType:t})=>{_e.bX.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{pointsAnswered:{}})})};class Pi{constructor(){this.lastSent=0,this.throttleTimeout=null,this.resizeObserver=null,this.isInitialized=!1,this.intervalId=null,this.shouldInitialize()&&this.init()}shouldInitialize(){var e;return(()=>{try{return window.self!==window.top}catch(e){return!0}})()&&y.P.isAvailable()&&!y.P.inBrazePreview()&&!0===(null===(e=window._sva)||void 0===e?void 0:e.useBrazeIframeClipper)}init(){this.isInitialized||(this.isInitialized=!0,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>this.startReporting()):this.startReporting())}startReporting(){const e=this.findSurveyElement();e?(this.sendRect(),this.setupObservers(e)):setTimeout(()=>this.startReporting(),100)}findSurveyElement(){return document.querySelector(Pi.SURVEY_SELECTOR)||document.querySelector(Pi.MINIMIZED_SELECTOR)}getTargetOrigin(){try{if(window.parent&&window.parent!==window)try{return window.parent.location.origin}catch(e){if(document.referrer){return new URL(document.referrer).origin}}}catch(e){if(document.referrer)try{return new URL(document.referrer).origin}catch(e){console.warn("Survicate: Unable to determine target origin.")}}}setupObservers(e){try{this.resizeObserver=new ResizeObserver(()=>this.scheduleRectSend()),this.resizeObserver.observe(e)}catch(e){console.warn("Survicate: ResizeObserver not available, using fallback"),this.intervalId=window.setInterval(()=>this.scheduleRectSend(),200)}window.addEventListener("resize",()=>this.scheduleRectSend(),{passive:!0})}scheduleRectSend(){const e=Date.now(),t=Pi.DEFAULT_THROTTLE_MS-(e-this.lastSent);this.throttleTimeout&&clearTimeout(this.throttleTimeout),t<=0?(this.lastSent=e,this.sendRect()):this.throttleTimeout=window.setTimeout(()=>{this.lastSent=Date.now(),this.sendRect()},t)}sendRect(){const e=this.findSurveyElement();if(!e)return;const t=e.getBoundingClientRect(),s={height:Math.max(0,Math.round(t.height+2*Pi.DEFAULT_PADDING)),left:Math.max(0,Math.round(t.left-Pi.DEFAULT_PADDING)),top:Math.max(0,Math.round(t.top-Pi.DEFAULT_PADDING)),width:Math.max(0,Math.round(t.width+2*Pi.DEFAULT_PADDING))};try{const e=this.getTargetOrigin();e&&window.parent.postMessage({payload:s,type:"sv__rect"},e)}catch(e){console.warn("Survicate: Failed to send rect message:",e)}}destroy(){this.throttleTimeout&&clearTimeout(this.throttleTimeout),this.resizeObserver&&this.resizeObserver.disconnect(),this.intervalId&&clearInterval(this.intervalId),this.isInitialized=!1}updateObservers(){this.destroy();const e=this.findSurveyElement();e&&this.setupObservers(e)}}Pi.DEFAULT_PADDING=18,Pi.DEFAULT_THROTTLE_MS=200,Pi.SURVEY_SELECTOR=".sv__survey",Pi.MINIMIZED_SELECTOR=".sv__minimized";const Ci=new Pi;let Ni=null;const Mi=()=>Ni;var Ii=s(727);function ji(e,t){t&&Array.isArray(t)&&e.storeType&&Te.getVisit(e.storeType).setResponseAttributes(t)}function Ri(){var e,t,s,r;const i=_e.bX.getStore(l.L0.PageSurvey),o=i.getState(),n=Se.params,a=n[we.p];if(!a)return;const c=null!==(t=null===(e=o.integrationTags)||void 0===e?void 0:e.salesforce)&&void 0!==t?t:[],v=null!==(s=be.PROVIDERS_TRAITS_WHITELIST[a])&&void 0!==s?s:[],_=new Set([...c,...v]),u={};for(const e of Object.keys(n))e!==we.p&&_.has(e)&&(u[e]=n[e]);if(Object.keys(u).length){const e=(0,Ii.S)(u),t=[];for(const s of Object.keys(e)){const i=I(s),o=I(`${null!==(r=e[s])&&void 0!==r?r:""}`);ge(o,i,he.response)&&t.push({name:i,provider:a,value:o})}t.length&&i.action(ji)(t)}}const Li={clearResponseAttributes:function(e){e.storeType&&Te.getVisit(e.storeType).clearResponseAttributes()},setResponseAttributes:ji,setResponseAttributesFromURL:Ri},Di=e=>{e.action(Ei)(),e.action(ci)(),e.action(Ri)()},Fi=(e,t,s)=>{var r;const i=_e.bX.getStore(s),o=5e3,n=(null==t?void 0:t.answer_type)===xt.thankYouMessage;Y.fireEvent(G.surveyCompleted,Object.assign({surveyId:e.id},n&&{answer:{answer_type:xt.thankYouMessage}})),qt({eventType:Nt.finished,options:{surveyId:e.id},surveyType:s});const{backendData:a}=i.getState(),c=e.settings;return e.settings.format===Fe.WO.Braze&&s?(y.P.cleanupBrazeSurvey(),null===(r=Mi())||void 0===r||r.destroy(),void Te.getVisit(s).resetVisit()):e.type!==l.L0.WidgetSurvey&&e.type!==l.L0.FeedbackButton||(null==e?void 0:e.settings.recurring)?(c.kiosk_enabled&&setTimeout(()=>{Oi(ki.kiosk)},o),c.kiosk_refresh_enabled&&setTimeout(()=>{Di(i),qt({eventType:Nt.shouldUpdate,options:{surveyId:e.id},surveyType:s})},5010),void(c.retaking_respondent_enabled&&setTimeout(()=>{Di(i),c.retaking_respondent_time||qt({eventType:Nt.shouldUpdate,options:{surveyId:e.id},surveyType:s})},5010))):(Is.startTargeting(s,a.surveys),void i.action(zo)())},zi=e=>{"undefined"!=typeof window&&(window.removeEventListener("pagehide",e),window.removeEventListener("beforeunload",e))},qi=(e,t)=>{if(!t)return void e();let s=!1,r=null;const i=()=>{s||(s=!0,null!==r&&(clearTimeout(r),r=null),e(),zi(i))};"undefined"!=typeof window&&(window.addEventListener("pagehide",i),window.addEventListener("beforeunload",i)),r=setTimeout(()=>{i()},t)},Ui=({surveyState:e,isPreview:t,storeType:s})=>{const r=_e.bX.getStore(s);if(!e.survey)return;const i=e.pointsDisplayed[e.pointsDisplayed.length-1].point,o=i.id===e.triggeredPointPreview,n=i.answer_type===xt.thankYouMessage,a=i.answer_type===xt.redirect;if(o&&(n||a))return;const c=e.survey.type===l.L0.PageSurvey,v=e.survey.type===l.L0.MobileSurvey,_=e.survey.settings.hide_footer,u=e.survey.type===l.L0.WidgetSurvey||e.survey.type===l.L0.FeedbackButton,d=c||v||n||_?3e3:500,p=u&&!wi(e.pointsDisplayed);if(t){if((c||p)&&r.setState({surveyState:Object.assign(Object.assign({},e),{isFinished:!0,survey:e.survey,theme:e.theme})}),v)return r.setState({surveyState:Object.assign(Object.assign({},e),{survey:null})}),void setTimeout(()=>{r.action(jo)(e.survey)},d);if(!_&&p)return;const t=r.getState().surveyState.survey;return void setTimeout(()=>{r.action(jo)(t)},d)}let m=0;if(u&&!wi(e.pointsDisplayed))return r.setState({surveyState:Object.assign(Object.assign({},r.getState().surveyState),{isFinished:!0})}),_&&(m=5e3,qi(()=>{e.survey&&e.survey.settings.recurring&&qt({eventType:Nt.shouldUpdate,options:{surveyId:e.survey.id},surveyType:s}),r.setState({surveyState:Object.assign(Object.assign({},r.getState().surveyState),{survey:null,theme:null})})},m)),void qi(()=>{e.survey&&Fi(e.survey,i,s)},m);if(!c&&(n||a)){const{settings:e}=i;m=1e3*parseInt(e.timeout_display_count,10),Number.isNaN(m)&&(m=5e3)}e.survey&&qt({eventType:Nt.finished,options:{surveyId:e.survey.id},surveyType:s}),setTimeout(()=>{var t,o,n;1!==(null===(t=r.getState().surveyState.pointsDisplayed)||void 0===t?void 0:t.length)||i.answer_type===xt.button||1!==(null===(n=null===(o=null==e?void 0:e.survey)||void 0===o?void 0:o.points)||void 0===n?void 0:n.length)||!e.isAnsweredByEmail||e.survey.settings.retaking_respondent_enabled?(r.setState({surveyState:Object.assign(Object.assign({},e),{isFinished:!0,survey:u?null:e.survey,theme:u?null:e.theme})}),e.survey&&(Fi(e.survey,i,s),e.survey.settings.recurring&&qt({eventType:Nt.shouldUpdate,options:{surveyId:e.survey.id},surveyType:s}))):r.setState({surveyState:Object.assign(Object.assign({},e),{isFinished:!0})})},m)},$i=(e,t,s)=>{const r=s.includes(e);switch(t){case Je.is:case Je.is_ranked_as:return r;case Je.is_not:case Je.is_not_ranked_as:default:return!r}},Bi=(e,t)=>{const{answer_id:s,value:r,answer_id_operator:i,condition:o}=e;let n=!1;const a=t.filter(e=>null==s?void 0:s.includes(e.answerId));if(!a.length)return!1;if(a.some(e=>0===e.value))return!1;const c=(e=>e.map(e=>`${e.answerId}-${e.value}`))(a),l=((e,t)=>Array.isArray(e)&&Array.isArray(t)&&(null==e?void 0:e.length)&&t.length?e.map(e=>t.map(t=>`${e}-${t}`)).flat():[])(s,r);switch(i){case Ke.and:n=c.every(e=>$i(e,o,l));break;case Ke.or:n=c.some(e=>$i(e,o,l))}return n},Vi=e=>e?{ascending:(t,s)=>t[e]-s[e],descending:(t,s)=>s[e]-t[e]}:{ascending:(e,t)=>e-t,descending:(e,t)=>t-e},Hi=(e,t)=>[...e].sort(Vi().ascending).join("")===[...t].sort(Vi().ascending).join(""),Wi=(e,t)=>t.find(t=>{const{condition:s,value:r}=t,i=r,o=t.operator||t.value_operator;return t.condition===Je.answer_contains&&Xe(e,{condition:s,operator:o,value:i})})||null,Ki=(e,t)=>{if(!(null==e?void 0:e.length))return null;return t.find(t=>{const{condition:s,value:r}=t,i=r,o=t.operator||t.value_operator;return t.condition===Je.answer_doesnt_contain&&!Xe(e,{condition:s,operator:o,value:i})})||null},Ji=(e,t)=>(null==e?void 0:e.length)&&t.find(({condition:t,value:s})=>t===Je.doesnt_include_any_of_the_following&&s.every(t=>!e.includes(t)))||null,Xi=e=>e.find(({condition:e})=>e===Je.has_any_value)||null,Gi=(e,t)=>t.find(({condition:t,value:s})=>t===Je.includes_all_of_the_following&&s.every(t=>e.includes(t)))||null,Yi=(e,t)=>t.find(({condition:t,value:s})=>t===Je.includes_any_of_the_following&&s.some(t=>e.includes(t)))||null,Qi=(e,t)=>t.find(({condition:t,value:s})=>t===Je.is&&s.includes(e))||null,Zi=(e,t)=>t.find(({condition:t,value:s})=>t===Je.is_between&&Ue(s,e))||null,eo=(e,t)=>t.find(({condition:t,value:s})=>t===Je.is_exactly&&Hi(e,s))||null,to=(e,{field_id:t,field_id_operator:s})=>{if(!(null==t?void 0:t.length))return!1;if(-1===t[0])return!!e.length;switch(s){case Ke.and:return t.every(t=>e.includes(t));case Ke.or:return t.some(t=>e.includes(t))}},so=(e,t)=>e&&t.find(({condition:t,value:s})=>t===Je.is_not&&!s.includes(e))||null,ro=(e,{field_id:t,field_id_operator:s})=>{if(!(null==t?void 0:t.length))return!1;if(-1===t[0])return!!e.length;switch(s){case Ke.and:return t.every(t=>!e.includes(t));case Ke.or:return t.some(t=>!e.includes(t))}},io=(e,t)=>t.find(({condition:t})=>t===Je.question_is_answered&&e)||null,oo=(e,t)=>t.find(({condition:t})=>t===Je.question_is_not_answered&&!e)||null,no=(e,t,s=!1)=>(s?e.groups:e.group).map(r=>{const i=((e,t)=>{let s=!1;switch(t.condition){case Je.is_between:case Je.is_ranked_between:{const{answer_id:r,answer_id_operator:i,value:o}=t,n=r,a=e.filter(e=>null==n?void 0:n.includes(e.answerId)),c=a.map(({value:e})=>Ue(o,e));s=!!a.length&&(i===Ke.and?!c.includes(!1):c.includes(!0));break}case Je.is:case Je.is_ranked_as:case Je.is_not:case Je.is_not_ranked_as:s=Bi(t,e);break;case Je.is_filled_in:{const{field_id:r,field_id_operator:i}=t;s=to(e,{field_id:r,field_id_operator:i});break}case Je.is_not_filled_in:{const{field_id:r,field_id_operator:i}=t;s=ro(e,{field_id:r,field_id_operator:i});break}case Je.has_any_value:s=!0}return s})(t,r);return s?i:i?e.go_to:null}),ao=e=>{var t;return null!==(t=null==e?void 0:e.go_to)&&void 0!==t?t:null},co=({condition:e,logic:t,answers:s,processor:r})=>{let i;const o=s,n=s;switch(e){case Je.is:i=Qi(o[0],t);break;case Je.is_not:i=so(o[0],t);break;case Je.is_between:i=Zi(o[0],t);break;case Je.is_exactly:i=eo(o,t);break;case Je.includes_any_of_the_following:i=Yi(o,t);break;case Je.includes_all_of_the_following:i=Gi(o,t);break;case Je.doesnt_include_any_of_the_following:i=Ji(o,t);break;case Je.question_is_answered:i=io(n[0],t);break;case Je.question_is_not_answered:i=oo(n[0],t);break;case Je.answer_contains:i=Wi(n[0],t);break;case Je.answer_doesnt_contain:i=Ki(n[0],t);break;case Je.has_any_value:i=Xi(t)}return r(i)},lo=(e,t)=>{const s=null==t?void 0:t.map(s=>{var r;return(null===(r=s.group)||void 0===r?void 0:r.length)?((e,t)=>{const{group_operator:s}=e,r=no(e,t);return s===Ke.or?r.find(e=>e)||null:s===Ke.and&&r.includes(null)?null:r[0]})(s,e):(null==s?void 0:s.condition)?co({answers:e,condition:s.condition,logic:t,processor:e=>ao(e)}):null});return(null==s?void 0:s.filter(Number)[0])||null};var vo,_o;!function(e){e.firstName="first_name",e.lastName="last_name",e.email="email",e.organization="organization",e.job="job_title",e.phone="phone",e.website="website",e.comment="comment",e.addressOne="address_one",e.addressTwo="address_two",e.city="city",e.state="state",e.zip="zip",e.fax="fax",e.annual_revenue="annual_revenue",e.employees="employees",e.industry="industry",e.confirmation="confirmation",e.security_info="security_info"}(vo||(vo={})),function(e){e.form="form"}(_o||(_o={}));const uo=(e,t)=>t.reduce((s,r,i)=>r.id===e.id?t[i+1]:s,null),po=[xt.social,xt.redirect,xt.buttonLink,xt.thankYouMessage],mo=[F.smileyScale,F.numericalScale,F.rating],ho=(e,t)=>{const s=_e.bX.getStore(e).getState().surveyState.pointsDisplayed;if(!(null==s?void 0:s.length))return[];const r=[...s],i=r.length-1;return r[i]=Object.assign(Object.assign({},r[i]),{value:t}),r},bo=e=>{var t,s,r,i,o;if(!(null==e?void 0:e.value))return[];const n=null===(t=e.value)||void 0===t?void 0:t.answer;switch(e.point.answer_type){case"matrix":{const t=null===(s=e.value)||void 0===s?void 0:s.answers;return!t||t.some(e=>0===e)?[]:t.map((t,s)=>({answerId:e.point.answers[s].id,value:t}))}case"ranking":return null===(r=e.value)||void 0===r?void 0:r.answers.map((t,s)=>({answerId:e.point.answers[t-1].id,value:s+1}));case"form":return n?n.map((t,s)=>{if(null==t?void 0:t.length)return e.point.fields[s].id}).filter(Boolean):[];case"multiple":return null===(i=e.value)||void 0===i?void 0:i.answers.map(e=>e.id);case"nps":case"text":return[null===(o=e.value)||void 0===o?void 0:o.answer];case"single":case"smiley_scale":case"numerical_scale":case"csat":case"rating":case"dropdown_list":return[e.value.answer.id];default:return[e.value]}},go=e=>{const{answers:t,answer_type:s}=e;return t.reduce((e,t)=>{const{id:r,possible_answer:i}=t,o=e;if(s===F.smileyScale){const e=[z.verySad,z.sad,z.neutral,z.happy,z.veryHappy];o[r]=e.findIndex(e=>e===i)}else o[r]=Number(i);return o},{})},fo=[_o.form,F.matrix,F.ranking],yo=(e,t)=>e.map(e=>{var s;const r=t.find(t=>t.point.id===e.point_id);if(!r||!(null===(s=e.groups)||void 0===s?void 0:s.length))return!1;const i=bo(r);if(fo.includes(e.answer_type))return((e,t,s)=>{const{group_operator:r}=e,i=no(e,t,s);return r===Ke.and?i.every(e=>e):i.some(e=>e)})(e,i,!0);if(mo.includes(e.answer_type)){const t=go(r.point),s=i[0],o=t[s];if(void 0===o)return!1;const n=e.groups.map(e=>{const s=e.value.map(e=>t[e]);return"is_between"===e.condition&&2===s.length?Object.assign(Object.assign({},e),{value:[Math.min(s[0],s[1]),Math.max(s[0],s[1])]}):Object.assign(Object.assign({},e),{value:s})});return co({answers:[o],condition:e.groups[0].condition,logic:n,processor:e=>!!e})}return co({answers:i,condition:e.groups[0].condition,logic:e.groups,processor:e=>!!e})}),wo=(e,t)=>{const{display_logic:s,display_logic_operator:r}=e.settings;if(!(null==s?void 0:s.length))return!0;const i=yo(s,t);return"and"===r?i.every(e=>e):i.some(e=>e)},xo=({point:e,points:t,pointsDisplayed:s})=>{let r=e;for(;r;){if(wo(r,s))return r;const e=uo(r,t);if(!e)break;r=e}return null},So=(e,t)=>{const s=go(e);if(!t.length)return[];const r=t[0].survey_question_answer_id;return"number"==typeof r?[s[r]]:[]},ko=e=>{const t=go(e);return e.settings.logic.map(e=>Object.assign(Object.assign({},e),{value:e.value.map(e=>t[e])}))};function Ao({survey:{points:e},currentPoint:t,answers:s,value:r,surveyType:i}){var o;if(po.includes(t.answer_type)||!i)return null;let n=t.settings.logic,a=null;if(null==n?void 0:n.length){let r=((e,t)=>t.map(({content:t,survey_question_answer_id:s=0,field_id:r})=>{switch(e){case F.text:case F.date:return t||"";case _o.form:return t&&r?r:"";case F.ranking:return{answerId:s,value:Number(t)+1};case F.matrix:return{answerId:s,value:Number(t)};case j.nps:return Number(t);default:return s}}))(t.answer_type,s);if(mo.includes(t.answer_type)){const e=t;r=So(e,s),n=ko(e)}const i=lo(r,n);if(-1===i)return null;a=e.find(e=>e.id===i)}const c=null!=a?a:uo(t,e);return c&&(null===(o=c.settings.display_logic)||void 0===o?void 0:o.length)?xo({point:c,points:e,pointsDisplayed:ho(i,r)}):c}const To=({surveyState:e,storeType:t},s,r)=>{var i;const o=_e.bX.getStore(t),{survey:n}=e;if(!n)return;const a=null===(i=e.pointsForward)||void 0===i?void 0:i.find(e=>e.point.id===s.id),c=[...e.pointsDisplayed,Object.assign({point:s},a&&{value:a.value})];let l=[...e.pointsForward];l=l.length&&l[0].point.id===s.id?l.slice(1):[];const v=c[c.length-2].point,_=c.map((e,t)=>t===c.length-2?Object.assign(Object.assign({},e),{value:r}):e);o.setState({surveyState:Object.assign(Object.assign({},e),{pointsAnswered:Object.assign(Object.assign({},e.pointsAnswered),{[v.id]:!0}),pointsDisplayed:_,pointsForward:l})}),o.action(fi)({question:s.content,surveyName:n.name})},Oo=({surveyState:e,storeType:t},s)=>{_e.bX.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{responseUuid:s})})},Eo=()=>{Se.params.aid=""};function Po({surveyState:t,storeType:s},r){var i,o;if(!t.survey)return;const{answers:n,textResponse:a,anonymizedTextResponse:c}=r,{point:l}=t.pointsDisplayed[t.pointsDisplayed.length-1],v=_e.bX.getStore(s),_=t.pointsDisplayed.length+t.pointsForward.length===1,u=_?(0,e.A)():t.responseUuid;_&&(v.action(Oo)(u),v.action(Ei)());const d=Ao({answers:r.answers,currentPoint:l,survey:t.survey,surveyType:s,value:r.value}),p=null===(i=r.value)||void 0===i?void 0:i.follow_ups,m=null==p?void 0:p.map(e=>({answer:e.answer,question:e.question})),h=Object.assign({anonymizedTextResponse:c,answerType:l.answer_type,answers:n,completionRate:d?Ct(t):100,core_version:"28.25.1",description:l.description||void 0,disclaimer_accepted:null===(o=r.value)||void 0===o?void 0:o.disclaimer_accepted,enforced:v.getState().surveyState.forceDisplay||!1,overwrite:v.getState().surveyState.pointsAnswered[l.id]||void 0,pointType:l.type,question:l.content,response_uuid:u,survey:t.survey,surveyName:t.survey.name,surveyPointId:l.id,textResponse:a,version:"4.1",visitor_uuid:an.getState().visitor.uuid},m&&(null==m?void 0:m.length)>0&&{follow_ups:m});v.action(mi)(h),qt({eventType:Nt.answered,options:{pointId:l.id,surveyId:t.survey.id},surveyType:s}),function(e,t,s){const r=s.global_tags,i=_e.bX.getStore(e);t.forEach(e=>{e.user_tag&&e.user_tag.split(";").forEach(e=>{i.action(li)(e)})}),r&&r.split(";").forEach(e=>{i.action(li)(e)})}(s,n,t.survey),1===t.pointsDisplayed.length&&Eo(),d?v.action(To)(d,r.value):v.action(Ui)()}const Co=({surveyState:e},t)=>{var s,r;const i=_e.bX.getStore(l.L0.PageSurvey);if(!e.survey)return;if(!(!!(null===(s=e.survey.points)||void 0===s?void 0:s.length)&&Se.params.aid&&!e.isAlreadyAnswered&&!e.isAnsweredByEmail||t))return;const o=((e,t)=>{const s=parseInt(e,10);let r;switch(t.answer_type){case F.smileyScale:return r=t.answers.find(e=>e.id===s),r?St({answer:r,point:t}):null;case F.single:return r=t.answers.find(e=>e.id===s),r?At({answer:r,point:t}):null;case j.nps:return 0<=s&&s<=10?Ot({point:t,value:{answer:s}}):null;case xt.button:return Tt({point:t});case F.rating:case F.numericalScale:case F.customerSatisfaction:return r=t.answers.find(({id:e})=>e===s),r?St({answer:r,point:t}):null}return null})(t||Se.params.aid,e.survey.points[0]);if(!o)return;i.setState({surveyState:Object.assign(Object.assign({},i.getState().surveyState),{isAnsweredByEmail:!0})});const n=o.value,{embedded_question_confirmation:a}=e.survey.settings;(null===(r=null==n?void 0:n.answer)||void 0===r?void 0:r.add_comment)||a||i.action(Po)(o)};const No=new class{constructor(){this.darkModeQuery=null,"undefined"!=typeof window&&window.matchMedia&&(this.darkModeQuery=window.matchMedia("(prefers-color-scheme: dark)"))}isDarkTheme(){return!!this.darkModeQuery&&this.darkModeQuery.matches}onThemeChange(e){if(!this.darkModeQuery)return()=>{};const t=t=>{e(t.matches)};return this.darkModeQuery.addEventListener?(this.darkModeQuery.addEventListener("change",t),()=>{var e;null===(e=this.darkModeQuery)||void 0===e||e.removeEventListener("change",t)}):()=>{}}};var Mo=s(6787);const Io=(e,t)=>{var s,r;const i=Array.isArray(e.update.themes)&&e.update.themes.length?e.update.themes:e.backendData.themes,o=e.storeType;if(!o)return;const n=e.surveyState.themeMode,a=(As(o)||o===l.L0.MobileSurvey)&&(n===Mo.lG.Dark||n===Mo.lG.Auto&&No.isDarkTheme()),c=t,v=i.find(e=>e.id===c.theme_id);if(!v||!v.settings)return;const _=a&&v.has_dark_mode&&v.color_scheme_dark&&v.color_scheme_dark?Object.assign(Object.assign({},v),{color_scheme:v.color_scheme_dark,custom_css:null!==(s=v.custom_css_dark)&&void 0!==s?s:"",custom_css_enabled:null!==(r=v.custom_css_enabled_dark)&&void 0!==r&&r,settings:(()=>{var e,t,s;return v.settings_dark?Object.assign(Object.assign({},v.settings),v.settings_dark):Object.assign(Object.assign({},v.settings),{avatar_image:null!==(e=v.settings.avatar_image_dark)&&void 0!==e?e:v.settings.avatar_image,company_logo:null!==(t=v.settings.company_logo_dark)&&void 0!==t?t:v.settings.company_logo,personalization:null!==(s=v.settings.personalization_dark)&&void 0!==s?s:v.settings.personalization})})()}):v,u=Os.extendTheme(_);_e.bX.getStore(o).setState({surveyState:Object.assign(Object.assign({},e.surveyState),{theme:u})}),Os.reloadCss(u,o)},jo=(e,t)=>{var s;const r=Object.assign({},t),i=e.storeType;if((!(null===(s=r.points)||void 0===s?void 0:s.length)||!i)&&(r.activated=!1,As(i)))return;const o=_e.bX.getStore(i),n=r.points&&r.points.length?[{point:r.points[0]}]:[],a=!(e.isPreview&&window.self!==window.top)&&!e.rootElement&&!_n.ruleFulfilled({storeType:i,survey:r,visit:Te.getVisit(i).get(),visitor:an.getState().visitor}),c=bt(r);o.setState({surveyState:Object.assign(Object.assign({},e.surveyState),{isAlreadyAnswered:a,isFinished:!1,isMinimized:yt.A.isWidthMobile()?!!r.settings.run_minimalized_mobile:!!r.settings.run_minimalized,isOverlayActive:!!r.settings.overlay,isRTLLanguage:ft(c),pointsDisplayed:n,pointsForward:[],survey:r,translationLanguage:ht({survey:r}),translations:e.backendData.translations})}),r&&r.activated&&r.points.length&&r.type===l.L0.PageSurvey&&o.action(di)({surveyId:r.id,surveyName:r.name}),o.action(Io)(r),r.type===l.L0.PageSurvey&&(o.action(Co)(),wt(r))};const Ro=(e,t,s=[])=>{for(let r=0;r<s.length;r+=1)if(s[r].id===e.id&&r<t)return!1;return!0};var Lo=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};var Do=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Fo{static findSurveyToDisplay(e){return Do(this,void 0,void 0,function*(){var t,s,r,i;let o=e.audiences,n=[];const a=function(e,t){const s=new Map(t.map(e=>[e.id,e]));return e.map(e=>{var t;const r=s.get(null===(t=e.audiences_ids)||void 0===t?void 0:t[0]);return(null==r?void 0:r.visitor_type)===_r.Identified?Object.assign(Object.assign({},e),{backendTargeted:!0}):e})}(function({surveys:e,surveysTriggeredByApi:t}){var s,r,i;if(null===(s=window._sva)||void 0===s?void 0:s.disableTargeting)return null!=t?t:[];if(y.P.isAvailable())return y.P.findTargetedSurvey(e);const o=t?[...t,...e]:e,n=(null===(i=null===(r=window._sva)||void 0===r?void 0:r.hiddenSurveys)||void 0===i?void 0:i.length)?o.filter(e=>{var t,s;return!(null===(s=null===(t=window._sva)||void 0===t?void 0:t.hiddenSurveys)||void 0===s?void 0:s.includes(e.id))}):o;return y.P.removeSurveys(n).filter(Ro)}(e),o),{visitor:c}=e;!0===(null===(s=null===(t=window._svd)||void 0===t?void 0:t.flags)||void 0===s?void 0:s.backend_targeting_enabled)&&e.storeType&&Rt(c)&&(o=Jr.addFilter(e.audiences),n=yield function(e){return Lo(this,arguments,void 0,function*({audiences:e,surveys:t,visit:s,visitor:r}){if(!(null==t?void 0:t.length))return[];const i=e.filter(e=>e.visitor_type===_r.Identified);return(yield Promise.all(t.map(e=>Rr.getFulfilledAudiences({audiences:i,survey:e,visit:s,visitor:r})))).flat()})}({audiences:o,surveys:a,visit:e.visit,visitor:c}));const l=(yield Promise.all(a.map(t=>Do(this,void 0,void 0,function*(){return(yield Fo.canDisplaySurvey({audiences:o,satisfiedTriggers:e.satisfiedTriggers,storeType:e.storeType,survey:t,surveysTriggeredByApi:e.surveysTriggeredByApi,triggers:e.triggers,visit:e.visit,visitor:c}))?t:null})))).filter(e=>null!==e),v=l.filter(t=>!t.backendTargeted||this.isTriggeredByApi(e.surveysTriggeredByApi,t)),_=_e.bX.getStore(e.storeType);if(v.length)return _.action(jo)(v[0]),void(this.isTriggeredByApi(e.surveysTriggeredByApi,v[0])&&this.clearSurveysTriggeredByAPI(e.storeType));const u=null===(r=_.getState().surveyState.survey)||void 0===r?void 0:r.id,d=yield Jr.getBackendSurveysToDisplay({preCheckedBackendAudiences:n,surveyType:e.storeType,surveysToDisplay:l,updatedAudienceWithBackendTargeting:o,visit:e.visit,visitor:c});if(d.length){if((null===(i=_.getState().surveyState.survey)||void 0===i?void 0:i.id)!==u)return;_.action(jo)(d[0]),this.isTriggeredByApi(e.surveysTriggeredByApi,d[0])&&this.clearSurveysTriggeredByAPI(e.storeType)}})}static isTriggeredByApi(e,t){return e.some(e=>e.id===t.id)}static canDisplaySurvey(e){return Do(this,void 0,void 0,function*(){var t;const{audiences:s,satisfiedTriggers:r,storeType:i,survey:o,surveysTriggeredByApi:n,triggers:a,visit:c,visitor:l}=e;return!!(null===(t=o.points)||void 0===t?void 0:t.length)&&(this.isTriggeredByApi(n,o)?yield this.canDisplayTriggeredSurvey({satisfiedTriggers:r,storeType:i,survey:o,triggers:a,visit:c,visitor:l}):yield this.evaluateSurveyRules({audiences:s,satisfiedTriggers:r,storeType:i,survey:o,triggers:a,visit:c,visitor:l}))})}static canDisplayTriggeredSurvey(e){return Do(this,void 0,void 0,function*(){var t,s,r,i;const{storeType:o,survey:n,visitor:a}=e,c=_e.bX.getStore(o).getState().surveyState.forceDisplay;return n.backendTargeted?((null===(s=null===(t=window._svd)||void 0===t?void 0:t.flags)||void 0===s?void 0:s.enforce_user_authentication)&&!0===(null===(i=null===(r=window._svd)||void 0===r?void 0:r.flags)||void 0===i?void 0:i.backend_targeting_enabled)&&(yield Dr.waitForVerificationToComplete()),!(!o||!Rt(a))&&(!!c||Jr.verifyShowSurvey(o,n.id))):c||this.evaluateTriggeredSurveyRules(e)})}static clearSurveysTriggeredByAPI(e){if(!e)return;const t=_e.bX.getStore(e);t.setState({surveyApiState:Object.assign(Object.assign({},t.getState().surveyApiState),{surveysTriggeredByApi:[]})})}static evaluateSurveyRules(e){return Do(this,arguments,void 0,function*({audiences:e,satisfiedTriggers:t,survey:s,triggers:r,storeType:i,visit:o,visitor:n}){return!!tt.areFulfilled({satisfiedTriggers:t,survey:s,triggers:r})&&(!!Pe.areFulfilled({storeType:i,survey:s,visit:o,visitor:n})&&!!(yield Rr.areFulfilled({audiences:e,storeType:i,survey:s,visit:o,visitor:n})))})}static evaluateTriggeredSurveyRules(e){const{satisfiedTriggers:t,survey:s,triggers:r,visit:i,visitor:o,storeType:n}=e;return tt.areFulfilled({satisfiedTriggers:t,survey:s,triggers:r})&&_n.ruleFulfilled({storeType:n,survey:s,visit:i,visitor:o})&&Ee.ruleFulfilled({storeType:n,survey:s,visitor:o})}}const zo=({surveyApiState:e,backendData:t,surveyState:{survey:s},satisfiedTriggers:r,update:i,storeType:o},n={})=>{s||Fo.findSurveyToDisplay({audiences:t.audiences,integrations:t.integrations,satisfiedTriggers:null!=r?r:{},storeType:o,surveys:Array.isArray(i.surveys)&&i.surveys.length>0?i.surveys:t.surveys,surveysTriggeredByApi:e.surveysTriggeredByApi,triggers:n,visit:Te.getVisit(o).get(),visitor:an.getState().visitor})};class qo{static start(e){this.timers.has(e)||this.timers.set(e,setInterval(()=>{_e.bX.getStore(e).action(zo)()},this.TIMER_DELAY))}static clear(){this.timers.forEach(e=>clearInterval(e)),this.timers.clear()}}qo.timers=new Map,qo.TIMER_DELAY=6e4;var Uo=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const $o=S.getStore(b.UrlConfigStore),Bo=X.getStore(b.UrlConfigStore),Vo=()=>Uo(void 0,void 0,void 0,function*(){if(P.getState().contactsUrl)return;const e=$o.get(k);if(e)return void P.setState({contactsUrl:e});if(Bo.get(A))P.setState({contactsUrl:null});else try{const e=yield(0,C.A)("https://hv.survicate.com/contacts").get("/healthcheck"),t=null==e?void 0:e.status;null!=t&&t>=200&&t<300?($o.set(k,"https://hv.survicate.com/contacts"),P.setState({contactsUrl:"https://hv.survicate.com/contacts"})):(Bo.set(A,!0),P.setState({contactsUrl:null}))}catch(e){Bo.set(A,!0),P.setState({contactsUrl:null})}}),Ho=[429,502,503,504],Wo=(e,t)=>{var s;if(t){if(t instanceof TypeError&&"Failed to fetch"===t.message)return!0;const e=(null===(s=null==t?void 0:t.message)||void 0===s?void 0:s.toLowerCase())||"";if("network error"===e||e.includes("failed to fetch"))return!0}if(e){const t=e.status;if(!t||0===t||Ho.includes(t))return!0}return!1};var Ko=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Jo=e=>Ko(void 0,void 0,void 0,function*(){var t;const{job:s,response:r,retryCounter:i,persistRetryState:o}=e,n=i.getRetryCount(s);if(s.type===ee.targeting&&n>=7)return i.resetRetryCount(),delete s.persistedRetryCount,s.surveyType&&qo.start(s.surveyType),new ve({error:!0,response:null,status:null!==(t=null==r?void 0:r.status)&&void 0!==t?t:0});const a=i.incrementRetryCount(s);s.persistedRetryCount=a,null==o||o(s);const c=(e=>{const t=4e3+1e3*Math.pow(2,e-1);return Math.min(t,9e5)+(Math.floor(1e3*Math.random())+1)})(a);return yield re(c),new le}),Xo=(e,t)=>{const s=(()=>{let e=0,t=null;return{getRetryCount:s=>{var r;return s.key!==t&&(t=s.key,e=null!==(r=s.persistedRetryCount)&&void 0!==r?r:0),e},incrementRetryCount:s=>{var r;return s.key!==t&&(t=s.key,e=null!==(r=s.persistedRetryCount)&&void 0!==r?r:0),e+=1,e},resetRetryCount:()=>{e=0,t=null}}})();return r=>Ko(void 0,void 0,void 0,function*(){var i;let o;switch(((i=r.type)===ee.userAttributes||i===ee.userVerification||i===ee.targeting||i===ee.userEvents||i===ee.interactions)&&(yield Vo().catch(()=>{})),r.type){case ee.answered:o=((e,t)=>{var s;const{disclaimer_accepted:r,enforced:i,integrations:o,overwrite:n,screenshot_uuid:a,survey_point_id:c,visit_points:l,visitor:v}=e,_={core_version:null!==(s=e.core_version)&&void 0!==s?s:"28.25.1",disclaimer_accepted:r,integrations:o||void 0,response_attributes:t.response_attributes,response_uuid:e.response_uuid,screenshot_uuid:a,survey_point_id:c,version:e.version,visit:ne(t),visit_points:(u=l,u.map(e=>{const t={completion_rate:e.completion_rate,finished:e.finished||void 0,user_tag:e.user_tag||void 0};return Object.keys(e).forEach(s=>{const r=e[s];null!=r&&(t[s]=r)}),t})),visitor:ae(v)};var u;return n&&(_.overwrite=!0),i&&(_.enforced=!0),_})(r.payload,r.visit);break;case ee.seen:o=(e=>{const{visitor:t}=e;return{survey_first_seen:e.survey_first_seen||void 0,visitor:ae(t)}})(r.payload);break;case ee.userAttributes:case ee.userVerification:case ee.userEvents:case ee.targeting:case ee.interactions:o=r.payload;break;default:return new ve}return n={host:e,job:r,payload:o,persistRetryState:t,retryCounter:s},Ko(void 0,void 0,void 0,function*(){const{job:e,host:t,payload:s,retryCounter:r,persistRetryState:i}=n;let o,a=t;switch(e.type){case ee.userAttributes:case ee.userVerification:case ee.targeting:case ee.userEvents:case ee.interactions:{const t=`${se.WORKSPACES}/${e.wId}/${e.type}`;o=`${se.CONTACTS}${t}`;const s=P.getState().contactsUrl;s&&(o=t,a=s);break}default:o=`${se.WORKSPACES}/${e.wId}${se.SURVEYS}/${e.surveyId}/${e.type}`}try{const t=yield(0,C.A)(a).post(o,s),n=!1===t.ok||void 0===t.ok&&void 0!==t.status&&t.status>=400,c=e.type===ee.userVerification||e.type===ee.targeting;if(n){const s=t.status;return Wo(t,null)?Jo({job:e,persistRetryState:i,response:t,retryCounter:r}):c?new ve({error:!0,response:t,status:s}):new ve}return r.resetRetryCount(),delete e.persistedRetryCount,e.type===ee.targeting&&e.surveyType&&qo.start(e.surveyType),c?new ve({response:t,status:t.status}):new ve}catch(t){const s=null==t?void 0:t.response,o=e.type===ee.userVerification||e.type===ee.targeting;return Wo(s,t)?Jo({job:e,persistRetryState:i,response:s,retryCounter:r}):s&&o?new ve({error:!0,response:s,status:s.status}):new ve}});var n})};class Go{constructor(e,t,s=u.requests){this.storage=e,this.storeType=t,this.storageTable=s}add(e,t){const s=Object.assign(Object.assign({},e),{key:t});return this.storage.put(this.storeType,{key:t,table:this.storageTable},s),t}updateRequest(e){null!=e&&"object"==typeof e&&"string"==typeof e.key&&this.storage.put(this.storeType,{key:e.key,table:this.storageTable},e)}getAll(){const e=this.storage.getAll(this.storeType,this.storageTable),t=Array.isArray(e)?e:[];if(!t.length)return[];const s=t.filter(e=>null!=e&&"object"==typeof e&&"string"==typeof e.key).sort((e,t)=>e.key<t.key?-1:e.key>t.key?1:0);return s}remove(e){this.storage.remove(this.storeType,{key:e,table:this.storageTable})}}var Yo=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const{REQUEST_HANDLER_TIMEOUT:Qo,REQUEST_HANDLER_REFRESH_INTERVAL:Zo,CONSUMPTION_INTERVAL:en,MUTEX_LOCK_INTERVAL:tn}={CONSUMPTION_INTERVAL:200,MUTEX_LOCK_INTERVAL:30,REQUEST_HANDLER_REFRESH_INTERVAL:1e3,REQUEST_HANDLER_TIMEOUT:6e3};var sn;!function(e){e.Contacts="contacts",e.Respondent="respondent"}(sn||(sn={}));class rn{constructor(t,s,r,i=sn.Respondent){this.handlerId=(0,e.A)(),this.isProcessing=!1,this.callbacks=new Map,this.storage=s,this.queueType=i,this.mutexKey=`requestHandler_${this.queueType}`;const o=u[this.queueType===sn.Contacts?"requests_contacts":"requests"];this.requestsStorage=new Go(s,t,o),this.consumer=r,this.storeType=t,this.consumeRequests()}addRequest(s){const r=String(t())+(0,e.A)();this.requestsStorage.add(s,r)}persistRequestUpdate(e){this.requestsStorage.updateRequest(e)}addRequestWithCallback(t,s){if(this.queueType===sn.Contacts&&t.type===ee.targeting&&null!=t.surveyType&&this.hasTargetingRequestForSurveyType(t.surveyType))return void s(null);const r=String(Date.now())+(0,e.A)();this.callbacks.set(r,s),this.requestsStorage.add(t,r)}hasTargetingRequestForSurveyType(e){return this.requestsStorage.getAll().some(t=>t.type===ee.targeting&&t.surveyType===e)}setThisRequestHandlerActive(){this.storage.put(this.storeType,{key:this.mutexKey,table:u.status},{handlerId:this.handlerId,maximumTime:Qo+t()})}isThisRequestHandlerActive(){const e=this.storage.get(this.storeType,{key:this.mutexKey,table:u.status});return!(!e||e.handlerId!==this.handlerId)}isActiveRequestHandlerInstance(){return Yo(this,void 0,void 0,function*(){const e=this.storage.get(this.storeType,{key:this.mutexKey,table:u.status});return e?e&&e.maximumTime<t()?(this.setThisRequestHandlerActive(),yield re(tn),this.isThisRequestHandlerActive()):!(!e||e.handlerId!==this.handlerId)&&(!(e.maximumTime-t()<Zo)||(this.setThisRequestHandlerActive(),yield re(tn),this.isThisRequestHandlerActive())):(this.setThisRequestHandlerActive(),yield re(tn),this.isThisRequestHandlerActive())})}consumeRequests(){setInterval(()=>Yo(this,void 0,void 0,function*(){if(!this.isProcessing&&(yield this.isActiveRequestHandlerInstance())){this.isProcessing=!0;try{const e=this.requestsStorage.getAll();if(null==e?void 0:e.length){const t=e[0];if(null==t||"object"!=typeof t||"string"!=typeof t.key)return void(this.isProcessing=!1);const s=this.callbacks.get(t.key),r=yield this.consumer(t);if(!r.isSuccess())return void(this.isProcessing=!1);this.requestsStorage.remove(t.key),s&&r.getResponseData&&(s(r.getResponseData()),this.callbacks.delete(t.key))}}catch(e){e instanceof Error&&Z.error(this.storeType,{message:`RequestHandler: ${e.message}`,stack:e.stack||""})}this.isProcessing=!1}}),en)}}const on={answers:{},device_type:"",displayedSurveys:[],engaged:!1,forcedLanguage:null,initialUrl:"",language:"",operating_system:"",optimizelyState:{getVariationMap:()=>({})},referrerUrl:"",sampledSurveys:[],user_agent:"",views:[]};class nn{constructor(e,t){var s;const r=P.getState().respondentUrl,i=P.getState().contactsUrl||r;this.respondentHandler=new rn(t,e,Xo(r,e=>this.respondentHandler.persistRequestUpdate(e)),sn.Respondent),this.contactsHandler=new rn(t,e,Xo(i,e=>this.contactsHandler.persistRequestUpdate(e)),sn.Contacts),this.workspaceKey=null===(s=window._svc)||void 0===s?void 0:s.workspaceKey}isContactsEndpoint(e){return[ee.userAttributes,ee.userVerification,ee.targeting,ee.userEvents,ee.interactions].includes(e)}static getVisit(e){if(!e)return on;const t=Te.getVisit(e).get();return{device_type:t.device_type,operating_system:t.operating_system,page_url:e===l.L0.PageSurvey?Se.url:window.location.href,platform:window.navigator.platform,referer:t.referrerUrl,response_attributes:t.responseAttributes,translation:_e.bX.getStore(e).getState().surveyState.translationLanguage,user_agent:window.navigator.userAgent}}addRequest(e,t,s,r){var i;if(null===(i=window._svc)||void 0===i?void 0:i.isPreview)return;const o=this.isContactsEndpoint(e)?this.contactsHandler:this.respondentHandler;o||!r?o.addRequest({payload:t,surveyId:s,surveyType:r,type:e,visit:nn.getVisit(r),wId:this.workspaceKey}):Z.error(r,{message:"No requestsHandler when adding a request.",stack:"Backend.tsx"})}addRequestWithCallback(e,t,s,r){var i;if(null===(i=window._svc)||void 0===i?void 0:i.isPreview)return;(this.isContactsEndpoint(e)?this.contactsHandler:this.respondentHandler).addRequestWithCallback({payload:t,surveyType:r,type:e,wId:this.workspaceKey},s)}}const an=(0,o.A)({backendService:null,storageService:null,visitor:{attributes:{},identities:{},uuid:"",validation:{previousValidatedUserId:null,timestamp:null},visitsCount:0}});function cn(){var e;const t=new Si(null===(e=window._svc)||void 0===e?void 0:e.workspaceKey),s=new nn(t,f.VisitorStore);an.setState({backendService:s,storageService:t})}const ln=e=>{var s,r;if(!(null==e?void 0:e.settings)||"number"!=typeof e.settings.retaking_respondent_time)return!0;const i=null===(r=null===(s=an.getState().visitor[l.L0.PageSurvey])||void 0===s?void 0:s.engagedSurveys)||void 0===r?void 0:r.find(t=>t.surveyId===e.id);return!i||t()-i.timestamp>=1e3*e.settings.retaking_respondent_time};var vn;!function(e){e[e.none=0]="none",e[e.expired=1]="expired",e[e.notExpired=2]="notExpired",e[e.recurringStopped=3]="recurringStopped",e[e.maxViewsNotExceeded=4]="maxViewsNotExceeded"}(vn||(vn={}));class _n{static ruleFulfilled({storeType:e,survey:t,visit:s,visitor:r}){var i,o,n,a;if(!t||t.backendTargeted)return!0;const c=As(t.type);if(!c&&(null===(i=t.settings)||void 0===i?void 0:i.retaking_respondent_enabled))return ln(t);if(!e)return!1;const l=null!==(o=r[e])&&void 0!==o?o:{displayedSurveys:[],engagedSurveys:[],initialSurveysEngagement:[],tags:[]};if(c&&this.isSurveyInteractionActive(t,l.initialSurveysEngagement,{checkRecurringLifespan:!0}))return!1;if(this.isSurveyInteractionActive(t,l.engagedSurveys))return!1;if(t.settings.display_not_engaged&&s.engaged)return!1;if(c&&!this.findSurvey(l.engagedSurveys,t.id)&&"number"==typeof(null===(n=null==t?void 0:t.settings)||void 0===n?void 0:n.recurring_max_views)&&(null===(a=null==t?void 0:t.settings)||void 0===a?void 0:a.display_per)!==Fe.wr.visitor)return this.findMaxViewsStatus(t,s.displayedSurveys,l.displayedSurveys)===vn.maxViewsNotExceeded;const v=this.findInteractionStatus(t,l.engagedSurveys)===vn.none,_=this.isNotExpiredPerVisit(t,s)||this.isNotExpiredPerVisitor(t,l);return(!v||!_)&&(!t.settings.display_not_engaged||!s.engaged)}static findInteractionStatus(e,s,r){var i;if(!Array.isArray(s)||!(null==s?void 0:s.length)||!e)return vn.none;const o=null==e?void 0:e.settings,n=s.find(t=>(t.surveyId||t)===e.id);if(!n)return vn.none;if(o.recurring&&!(null==r?void 0:r.skipRecurringCheck)){if(null==r?void 0:r.checkRecurringLifespan){const e=1e3*(null!==(i=o.recurring_stop_after)&&void 0!==i?i:0);if(e>0&&n.timestamp+e<=t())return vn.recurringStopped}const e=1e3*o.recurring_period;if(n.timestamp+e<=t())return vn.expired}return vn.notExpired}static findMaxViewsStatus(e,t=[],s=[]){var r,i,o;if(!e)return vn.maxViewsNotExceeded;const n=null==e?void 0:e.settings,a=null!==(r=null==n?void 0:n.recurring_max_views)&&void 0!==r?r:0;if(!a)return vn.maxViewsNotExceeded;const c=this.findSurvey(t,e.id),l=this.findSurvey(s,e.id),v=null!==(i=null==l?void 0:l.count)&&void 0!==i?i:0,_=null!==(o=null==c?void 0:c.count)&&void 0!==o?o:0,u=v+1>a;if(n.display_per===Fe.wr.visit)return v&&(1===_&&v>=1||u)?vn.expired:vn.maxViewsNotExceeded;if(!c&&!l)return vn.maxViewsNotExceeded;return u||_+1>a?vn.expired:vn.maxViewsNotExceeded}static findSurvey(e,t){if(Array.isArray(e))return e.find(e=>e.surveyId===t)}static isSurveyInteractionActive(e,t,s){const r=this.findInteractionStatus(e,t,s);return r===vn.notExpired||r===vn.recurringStopped}static isNotExpiredPerVisit(e,t){return e.settings.display_per===Fe.wr.visit&&this.findInteractionStatus(e,t.displayedSurveys,{skipRecurringCheck:!0})===vn.notExpired}static isNotExpiredPerVisitor(e,t){return e.settings.display_per===Fe.wr.visitor&&this.findInteractionStatus(e,t.displayedSurveys,{skipRecurringCheck:!0})===vn.notExpired}}const un=(e,t=!1)=>{const s="string"==typeof e?e.trim().toLowerCase():String(e).toLowerCase();return"light"===s?Mo.lG.Light:"dark"===s?Mo.lG.Dark:t&&"auto"===s?Mo.lG.Auto:null};function dn({surveyApiState:e,surveyState:t,backendData:s,storeType:r},i,o={}){const n=s.surveys.find(({id:e})=>e===i);if(!n)return;const a=Object.assign({},n),{settings:c}=a,{forceDisplay:l,displayMethod:v,displayOptions:_}=o,u=_e.bX.getStore(r);"forceDisplay"in o&&u.setState({surveyState:Object.assign(Object.assign({},t),{forceDisplay:l,survey:null})}),v?(c.appear_method=(e=>{switch(e){case Fe.Jp.immediately:return Fe.$7.immediately;case Fe.Jp.delayed:return Fe.$7.delayed;case Fe.Jp.scroll:return Fe.$7.scroll;case Fe.Jp.exitIntent:return Fe.$7.exitIntent}return Fe.$7.immediately})(v),c.appear_method===Fe.$7.delayed&&_&&_.delay&&(c.display_delay=_.delay),c.appear_method===Fe.$7.scroll&&_&&_.scrolledPercentage&&(c.display_scroll=_.scrolledPercentage)):c.appear_method=Fe.$7.immediately;const d=l?[a]:[...e.surveysTriggeredByApi,a];u.setState({surveyApiState:Object.assign(Object.assign({},u.getState().surveyApiState),{surveysTriggeredByApi:d}),surveyState:Object.assign(Object.assign({},u.getState().surveyState),{forceDisplay:l})}),c.appear_method===Fe.$7.immediately?u.action(zo)():Is.startTargeting(r,[...d,...s.surveys].filter(Ro))}const pn={retarget:zo,triggerSurveyByApi:dn};var mn=s(2478);const hn=({isPreview:e,surveyState:t,storeType:s},r)=>{var i,o;if(!t.survey||!s||!r)return;if(e){const e=r.trim();return void _e.bX.getStore(s).setState({surveyState:Object.assign(Object.assign({},t),{isRTLLanguage:ft(e),translationLanguage:e})})}const n=pt(r,_t().languageCodes);if(!n)return void console.warn(`setForcedLanguage: Language "${r}" is not a valid IETF language tag`);const a=(null===(i=t.survey.settings)||void 0===i?void 0:i.languages)||[],c=null===(o=t.survey.settings)||void 0===o?void 0:o.survey_language,l=ot(n,a,c);if(!l)return void console.warn(`setForcedLanguage: Language "${n}" is not available in translations for survey "${t.survey.id}"`);Te.getVisit(s).setForcedLanguage(l);const v=ht({forcedLanguage:l,survey:t.survey});_e.bX.getStore(s).setState({surveyState:Object.assign(Object.assign({},t),{isRTLLanguage:ft(v),translationLanguage:v})})};function bn(e,t){_e.bX.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{survey:null,theme:null})})}function gn(e,t){setTimeout(()=>{_e.bX.getStore(t).action(jo)(e.survey)},3e3)}function fn(t){var s;const r=t.storeType,i=_e.bX.getStore(r),{surveyState:o,isPreview:n}=t;if(o.survey&&o.survey.settings.format===Fe.WO.Braze&&r)return y.P.cleanupBrazeSurvey(),null===(s=Mi())||void 0===s||s.destroy(),void Te.getVisit(r).resetVisit();if(!o.survey)return;qt({eventType:Nt.closed,options:{surveyId:o.survey.id},surveyType:r}),bn(o,t.storeType);const a=o.survey.global_close_tags;a&&a.split(";").forEach(e=>{i.action(li)(e)});const c=o.pointsDisplayed.length+o.pointsForward.length===1,v=c?(0,e.A)():o.responseUuid;c&&(i.action(Oo)(v),i.action(Ei)());const _=_e.bX.getStore(r).getState().backendData;Is.startTargeting(r,_.surveys),i.action(hi)({response_uuid:v,surveyId:o.survey.id,surveyName:o.survey.name,survey_point_id:o.pointsDisplayed[0].point.id,user_tag:o.survey.global_close_tags,visitor:ce(an.getState().visitor,r)}),n&&gn(o,r),o.survey.type!==l.L0.WidgetSurvey&&o.survey.type!==l.L0.FeedbackButton||!o.survey.settings.recurring||qt({eventType:Nt.shouldUpdate,options:{surveyId:o.survey.id},surveyType:r})}function yn(e,t){_e.bX.getStore(e.storeType).setState({surveyState:Object.assign(Object.assign({},e.surveyState),{isTabActive:t})})}function wn(e,t){const s=_e.bX.getStore(e.storeType);s.setState({surveyState:Object.assign(Object.assign({},e.surveyState),{themeMode:t})});const r=s.getState();r.surveyState.survey&&Io(r,r.surveyState.survey)}const xn={clearPointsAnswered:Ei,clearSurveyState:mn.D,close:fn,finish:Ui,hideOverlay:function({surveyState:e,storeType:t}){_e.bX.getStore(t).setState({surveyState:Object.assign(Object.assign({},e),{isOverlayActive:!1})})},navigateBackward:function({surveyState:e,storeType:t}){const s=_e.bX.getStore(t),{pointsDisplayed:r,pointsForward:i}=e,o=null==r?void 0:r.length;if(!o||o<=1)return;const n=r[o-1];n&&s.setState({surveyState:Object.assign(Object.assign({},e),{pointsDisplayed:r.slice(0,-1),pointsForward:[n,...i||[]]})})},navigateForward:function({surveyState:e,storeType:t}){const s=_e.bX.getStore(t),{pointsDisplayed:r,pointsForward:i}=e;if(!(null==i?void 0:i.length))return;const o=i[0];o&&s.setState({surveyState:Object.assign(Object.assign({},e),{pointsDisplayed:[...r||[],o],pointsForward:i.slice(1)})})},pointAnswer:Po,resetScreenshot:Ys.UL,setForcedLanguage:hn,setIsTabActive:yn,setResponseUuid:Oo,setScreenshot:Ys.dN,setSurvey:jo,setSurveyPoint:To,setTheme:Io,setThemeMode:wn,toggleMinimize:function({surveyState:e,storeType:t},s){var r;const i=_e.bX.getStore(t);if((null===(r=null==e?void 0:e.survey)||void 0===r?void 0:r.settings).format===Fe.WO.Braze&&setTimeout(()=>{var e;null===(e=Ci.scheduleRectSend)||void 0===e||e.call(Ci),Ci.updateObservers()},200),i.setState({surveyState:Object.assign(Object.assign({},e),{isMinimized:s})}),e.survey){if(s)return i.action(bi)({surveyName:e.survey.name}),void qt({eventType:Nt.minimized,options:{surveyId:e.survey.id},surveyType:t});i.action(gi)({surveyName:e.survey.name}),qt({eventType:Nt.maximized,options:{surveyId:e.survey.id},surveyType:t})}},toggleScreenshot:Ys.p2};var Sn,kn;!function(e){e.Segment="segment",e.JSApi="js_api"}(Sn||(Sn={})),function(e){e.SurveySeen="survicate_survey_shown",e.SurveyPointAnswered="survicate_survey_answered"}(kn||(kn={}));var An=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class Tn{static addEvent(e){const{visitor:s}=an.getState();Rt(s)&&(this.eventQueue.push({name:e,timestamp:t()}),$r=!0,this.startThrottleTimer())}static startThrottleTimer(){null===this.throttleTimer&&(this.throttleTimer=setTimeout(()=>{this.flushEvents()},this.THROTTLE_INTERVAL))}static flushEvents(){return An(this,void 0,void 0,function*(){if(!this.eventQueue.length||this.isFlushingEvents)return;this.isFlushingEvents=!0;const{visitor:e,backendService:t}=an.getState(),s=[...this.eventQueue],r=Lt(e);if(this.eventQueue=[],this.throttleTimer&&(clearTimeout(this.throttleTimer),this.throttleTimer=null),s.length<=100){const e=Object.assign({events:s},r);null==t||t.addRequest(ee.userEvents,e,"",null)}else{cr.createUserEventsPayloadChunks(r,s).forEach(e=>{null==t||t.addRequest(ee.userEvents,e,"",null)})}this.isFlushingEvents=!1,(()=>{$r=!1;const e=Ur;Ur=[],e.forEach(e=>e())})(),this.eventQueue.length>0&&this.startThrottleTimer(),l.m5.forEach(e=>{_e.bX.getStore(e).action(zo)()})})}}Tn.eventQueue=[],Tn.throttleTimer=null,Tn.THROTTLE_INTERVAL=3e3,Tn.isFlushingEvents=!1;const On=new class{constructor(){this.eventsWithDelays=null}fireDelays(e,t){var s;this.eventsWithDelays||(this.eventsWithDelays=this.createEventsWithDelays());const r=_e.bX.getStore(e);!r.getState().surveyState.survey&&(null===(s=this.eventsWithDelays)||void 0===s?void 0:s[t.name])&&this.eventsWithDelays[t.name].forEach(e=>{setTimeout(()=>{r.action(zo)({eventDelay:e,eventTrigger:t})},e)})}createEventsWithDelays(){var e;const t=(null===(e=window._svd)||void 0===e?void 0:e.surveys)||[];if(!t.length)return{};const s={};return t.forEach(e=>{const t=e.settings;t&&Array.isArray(t.events)&&t.events.forEach(({name:e,settings:t})=>{var r;s[e]||(s[e]=[]);const i=null!==(r=null==t?void 0:t.delay)&&void 0!==r?r:0;s[e].includes(i)||(s[e].push(i),s[e].sort((e,t)=>e-t))})}),s}};var En,Pn,Cn=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};!function(e){e.FeedbackSurvey="fb",e.WidgetSurvey="ws"}(En||(En={})),function(e){e.EventStore="EventStore"}(Pn||(Pn={}));const Nn=l.m5,Mn=[F.text,j.nps],In=[...Mn,F.single,F.rating,F.numericalScale,F.customerSatisfaction],jn={addEventListener:(e,t)=>Y.add(e,t),closeSurvey:e=>{void 0===e||"string"==typeof e?Nn.forEach(t=>{const s=_e.bX.getStore(t),r=s.getState().surveyState.survey;!r||void 0!==e&&r.id!==e||s.action(fn)()}):console.warn("closeSurvey: surveyId must be a string")},destroyVisitor:e=>Cn(void 0,void 0,void 0,function*(){const{storageService:t}=an.getState();null==t||t.remove(f.VisitorStore,{key:d.visitor,table:u.visitor}),Nn.forEach(e=>{Te.getVisit(e).resetVisit(),_e.bX.getStore(e).action(mn.D)(e)}),X.getStore(f.VisitorStore).remove(W.sessionViews),Oi(ki.kiosk),e&&"function"==typeof e&&e()}),getResponseUuid:(t,s)=>{var r;if(!t||"string"!=typeof t||!Nn.includes(t))return console.warn(`getResponseUuid: ${t} is not supported. Please use one of the following survey types: ${Nn.join(", ")}`),"";if(!s)return(0,e.A)();switch(t){case l.L0.WidgetSurvey:case l.L0.FeedbackButton:return(null===(r=_e.bX.getStore(t).getState().surveyState)||void 0===r?void 0:r.responseUuid)||(0,e.A)();default:return(0,e.A)()}},getSurveyPointsMetadata:e=>{var t;const s=null===(t=window._svd)||void 0===t?void 0:t.surveys;if(!(null==s?void 0:s.length))return console.warn("No surveys found"),null;const r=s.find(t=>t.id===e);return r?r.points.map(e=>{var t;const s={answerType:e.answer_type,pointId:e.id},r=e;if(!(null===(t=r.answers)||void 0===t?void 0:t.length))return s;const i=r.answers.filter(e=>"id"in e);return Object.assign(Object.assign({},s),{answers:i.map(e=>({id:e.id}))})}):(console.warn(`Survey with ID ${e} not found in _svd configuration`),null)},getVisitorId:e=>an.getState().visitor.uuid,invokeEvent(e,s){if(e===kn.SurveySeen||e===kn.SurveyPointAnswered)return;const r=I(String(e)),i=t(),o=(({name:e,properties:t={}})=>{const s={name:e,properties:Object.keys(t),type:Sn.JSApi};return e.startsWith("segmentEvent-")&&(s.name=e.replace("segmentEvent-",""),s.type=Sn.Segment),s})({name:r,properties:s}),{events:a,isEnabled:c}=n.getState(),l=a.find(e=>e.name===o.name),v=o.properties.filter(e=>{var t;return!(null===(t=null==l?void 0:l.properties)||void 0===t?void 0:t.includes(e))});let _;c&&(!l||l&&v.length)&&M(Object.assign(Object.assign({},o),{properties:v})),_=l?a.map(e=>e.name===o.name?(({storedEvent:e,timestamp:t,newProperties:s})=>{var r,i;return Object.assign(Object.assign({},e),{currentLastSeen:t,firstSeen:null!==(r=e.firstSeen)&&void 0!==r?r:t,occurrences:(e.occurrences||0)+1,previousLastSeen:null!==(i=e.currentLastSeen)&&void 0!==i?i:t,properties:[...e.properties||[],...s]})})({newProperties:v,storedEvent:l,timestamp:i}):e):[...a,Object.assign(Object.assign({},o),{currentLastSeen:i,firstSeen:i,occurrences:1,previousLastSeen:i,properties:[...o.properties]})],n.setState({events:_}),ye.getStorage(Pn.EventStore).set(h.events,_),Nn.forEach(e=>{On.fireDelays(e,{name:o.name,properties:s,timestamp:i}),Tn.addEvent(o.name)})},removeEventListener:e=>Y.remove(e),retarget:()=>{Nn.forEach(e=>{const{surveyApiState:t,backendData:s}=_e.bX.getStore(e).getState();Is.startTargeting(e,[...t.surveysTriggeredByApi,...s.surveys].filter(Ro)),_e.bX.getStore(e).action(zo)()})},setResponseTraits:e=>{Nn.forEach(t=>{_e.bX.getStore(t).action(ji)(e)})},setSurveyLanguage:e=>{if("string"!=typeof e||!e.trim())return void console.warn("setSurveyLanguage: languageTag must be a non-empty string");const t=e.trim();Nn.forEach(e=>{const s=_e.bX.getStore(e);s.getState().surveyState.survey&&s.action(hn)(t)})},setThemeMode:e=>{const t=e=>`setThemeMode: Invalid theme mode: "${String(e)}". Use one of: ${Mo.lG.Light}, ${Mo.lG.Dark}`;if("string"!=typeof e)return void console.warn(t(`Invalid type: ${typeof e}. String expected`));const s=un(e);s?Nn.forEach(e=>{_e.bX.getStore(e).action(wn)(s)}):console.warn(t(e))},setVisitorTraits:e=>{an.action(ai)(e)},showSurvey:(e,t={})=>{let s=!1;return Nn.forEach(r=>{const i=_e.bX.getStore(r),{backendData:o,surveyState:n}=i.getState(),a=o.surveys.find(t=>t.id===e);if(!a)return!1;if(!t.forceDisplay&&n.survey)return!1;i.action(dn)(e,t);const{visitor:c}=an.getState();s=t.forceDisplay||_n.ruleFulfilled({storeType:r,survey:a,visit:Te.getVisit(r).get(),visitor:c})}),s},submitAnswer:(()=>{let s=[];return({surveyId:r,pointId:o,answerId:n,answer:a},c)=>{var l,v;if(c&&("string"!=typeof c||!i(c)))return void console.warn(`Response UUID "${c}" is not a valid UUID`);const _=t();if(s=s.filter(e=>_-e<1e4),s.length>=10)return void console.warn("Rate limit exceeded.\n Only 10 submissions allowed per 10 seconds.");if(s.push(_),"string"!=typeof r)return void console.warn("Survey ID must be a string");if("number"!=typeof o)return void console.warn("Point ID must be a number");const u=null===(l=window._svd)||void 0===l?void 0:l.surveys;if(!Array.isArray(u)||!u.length)return void console.warn("No surveys found");const d=u.find(e=>e.id===r);if(!d)return void console.warn(`Survey with ID "${r}" not found`);const p=d.points.find(e=>e.id===o);if(!p)return void console.warn(`Point with ID "${o}" not found in survey "${r}"`);const m=p.answer_type;if(!In.includes(m))return void console.warn(`Answer type "${m}" is not supported. Allowed types are: ${In.join(", ")}`);if(!Mn.includes(m)&&"number"!=typeof n)return void console.warn(`Answer ID must be a number for point "${o}" of survey "${r}"`);const h=m===F.text,b=m===j.nps;if(h&&("string"!=typeof a||!a.trim()))return void console.warn("Text answer must be a non-empty string");if(b){if("number"!=typeof a)return void console.warn(`${m} answer must be a number`);if(a<0||a>10)return void console.warn("NPS score must be between 0 and 10")}if(!h&&!b){const e=null===(v=p.answers)||void 0===v?void 0:v.some(e=>"id"in e&&e.id===n);if(!e)return void console.warn(`Answer ID "${n}" not found in point "${o}" of survey "${r}"`)}const g={nextSurveyPointId:null,user_tag:""};_e.bX.getStore(d.type).action(mi)(Object.assign(Object.assign({anonymizedTextResponse:"",answerType:m,answers:h||b?[Object.assign({content:String(a)},g)]:[Object.assign({possible_answer:a,survey_question_answer_id:n},g)],completionRate:0,description:p.description||"",pointType:p.type,question:p.content,response_uuid:c||(0,e.A)(),survey:d,surveyName:d.name,surveyPointId:o},h&&{textResponse:String(a)}),{core_version:"28.25.1",version:"4.1",visitor_uuid:an.getState().visitor.uuid}))}})()};var Rn,Ln;!function(e){e.immediately="immediately",e.delayed="delayed",e.exitIntent="exitIntent",e.scroll="onScroll"}(Rn||(Rn={})),function(e){e.questionAnswered="question_answered",e.surveyDisplayed="survey_displayed",e.surveyCompleted="survey_completed",e.surveyClosed="survey_closed"}(Ln||(Ln={}));const Dn=e=>{if("undefined"==typeof document||!document.head)return;const{id:t,link:s,nonce:r}=null!=e?e:{};ps({href:null!=s?s:"https://surveys-static.survicate.com/fonts/fonts.css",id:null!=t?t:"survicate-fonts",nonce:r})},Fn=(e,t)=>{const s=(e=>{var t,s,r;const i=Array.isArray(e)?e:e?[e]:[],o=new Set;for(const e of i)(null===(s=null===(t=e.font)||void 0===t?void 0:t.name)||void 0===s?void 0:s.trim())&&(null===(r=e.font)||void 0===r?void 0:r.type)===ds.library&&o.add(e.font.name);return[...o]})(e);if(s.length)for(const e of s)gs(e,t)},zn=JSON.parse('{"h":"This survey is currently unavailable."}'),qn=e=>{if(!e)return"";const t=(e=>(null==e?void 0:e.background_layout)===is.repeat?"repeat":"no-repeat")(e);return`\n background-image: url('${(null==e?void 0:e.background_url)||""}');\n background-repeat: ${t};\n background-size: ${(null==e?void 0:e.background_layout)||""};\n background-position: ${(null==e?void 0:e.background_position)||""};\n `};var Un=s(3053);const $n=(0,Mt.createContext)(null),Bn=()=>{const e=(0,It.NT)($n);if(!e)throw new Error("useSubmitService must be used within SubmitSignalsProvider");return e};function Vn(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,Mt.h)("svg",Object.assign({width:"90",height:"17",viewBox:"0 0 497 83",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n",(0,Mt.h)("path",{d:"M19.7577 61.9935C19.7577 64.798 23.3382 66.4781 28.6099 66.4781C30.7371 66.4781 34.3176 66.1474 34.3176 64.1234C34.3176 62.0993 31.4109 61.6628 20.4315 58.8318C9.22756 55.9214 2.39682 50.5372 2.39682 40.9991C2.39682 29.9 13.4819 23.1797 25.69 23.1797C41.9279 23.1797 51.1104 32.1489 51.1104 42.3485H32.0715C32.0715 39.4381 28.1078 38.8692 26.3638 38.8692C24.131 38.8692 21.4357 39.4381 21.4357 40.9991C21.4357 42.5601 23.4571 42.6924 36.1145 46.6082C51.1104 51.2119 53.2904 58.8318 53.2904 64.5467C53.2904 76.3205 41.3994 82.1544 28.0946 82.1544C12.0285 82.1809 0.666016 75.8971 0.666016 61.9935H19.7577Z",fill:"#171D1A"},[]),"\n",(0,Mt.h)("path",{d:"M119.195 24.3311V81.0569H101.279L100.156 74.244C94.5675 78.9535 87.9614 82.1813 80.5625 82.1813C66.2272 82.1813 60.0703 73.1063 60.0703 58.184V24.3311H79.1091V48.9899C79.1091 60.9885 82.2404 64.2429 88.3577 64.2429C93.7351 64.2429 100.117 61.4383 100.117 50.1143V24.3311H119.195Z",fill:"#171D1A"},[]),"\n",(0,Mt.h)("path",{d:"M166.002 25.559L163.531 42.2672C161.868 41.5225 160.067 41.1392 158.246 41.1427C152.538 41.1427 148.284 45.8522 148.284 59.7559V81.0545H129.271V24.3287H147.187L147.967 29.3689C151.442 25.559 155.366 23.2042 159.501 23.2042C161.89 23.1183 164.22 23.9623 166.002 25.559",fill:"#171D1A"},[]),"\n",(0,Mt.h)("path",{d:"M239.12 24.3311L215.272 81.0569H193.208L169.359 24.3311H190.644L204.306 60.6578L217.848 24.3311H239.12Z",fill:"#171D1A"},[]),"\n",(0,Mt.h)("path",{d:"M263.762 81.0562H244.723V24.3304H263.762V81.0562ZM245.264 9.30226C245.264 7.52831 245.79 5.7942 246.774 4.31921C247.758 2.84423 249.157 1.69461 250.794 1.01575C252.431 0.336892 254.232 0.159274 255.97 0.505354C257.708 0.851434 259.304 1.70567 260.556 2.96004C261.809 4.21441 262.662 5.81258 263.008 7.55244C263.354 9.2923 263.176 11.0957 262.498 12.7346C261.82 14.3735 260.672 15.7744 259.199 16.7599C257.726 17.7455 255.994 18.2715 254.222 18.2715C251.877 18.2998 249.616 17.3947 247.936 15.7552C246.257 14.1156 245.296 11.8756 245.264 9.52715V9.30226Z",fill:"#171D1A"},[]),"\n",(0,Mt.h)("path",{d:"M303.728 41.1715C298.245 41.1715 291.744 45.2063 291.744 52.7204C291.744 60.2344 298.245 64.2693 303.728 64.2693C305.974 64.3436 308.212 63.965 310.31 63.156C312.407 62.3469 314.32 61.1239 315.936 59.5597V77.4982C311.407 80.7368 305.934 82.3834 300.372 82.1813C283.46 82.1813 271.596 68.6216 271.596 52.6939C271.596 37.0044 283.487 23.2065 300.372 23.2065C305.94 23.0198 311.413 24.6852 315.936 27.9425V45.6561C314.296 44.1414 312.373 42.9656 310.278 42.1961C308.183 41.4265 305.957 41.0784 303.728 41.1715",fill:"#171D1A"},[]),"\n",(0,Mt.h)("path",{d:"M350.091 23.2061C358.719 23.2061 364.876 27.1747 367.267 31.8446L368.39 24.3305H386.306V81.0563H368.337L367.228 73.5423C364.876 78.146 358.719 82.1808 350.052 82.1808C333.814 82.1808 322.623 68.9518 322.623 52.6934C322.623 36.435 333.814 23.2061 350.052 23.2061H350.091ZM353.408 64.2159C354.984 64.3247 356.566 64.108 358.056 63.5791C359.546 63.0502 360.911 62.2205 362.067 61.1413C363.223 60.0622 364.145 58.7568 364.776 57.306C365.407 55.8552 365.733 54.29 365.735 52.7076C365.737 51.1252 365.414 49.5592 364.786 48.107C364.159 46.6548 363.239 45.3472 362.086 44.2654C360.932 43.1837 359.569 42.3508 358.081 41.8185C356.593 41.2862 355.011 41.0658 353.434 41.171C350.375 41.171 347.441 42.3878 345.278 44.5536C343.115 46.7194 341.9 49.6569 341.9 52.7199C341.9 55.7828 343.115 58.7204 345.278 60.8862C347.441 63.052 350.375 64.2688 353.434 64.2688",fill:"#171D1A"},[]),"\n",(0,Mt.h)("path",{d:"M436.671 42.2696H422.878V81.057H403.839V42.2696H394.102V24.3312H403.839V7.50391H422.878V24.3312H436.671V42.2696Z",fill:"#171D1A"},[]),"\n",(0,Mt.h)("path",{d:"M496.664 58.5268H459.049C459.273 61.1726 461.625 65.3529 469.46 65.3529C471.345 65.399 473.215 65.0088 474.925 64.2126C476.634 63.4163 478.137 62.2356 479.316 60.7625L495.884 62.4426C494.801 70.0625 485.922 82.1802 469.341 82.1802C451.319 82.1802 440.01 68.2765 440.01 52.3489C440.01 36.6593 450.87 23.2451 468.337 23.2451C485.803 23.2451 496.664 37.0297 496.664 53.6718V58.5268ZM477.625 45.6285C477.4 42.7182 473.926 40.0195 468.376 40.0195C462.827 40.0195 459.313 42.6652 459.128 45.6285H477.625Z",fill:"#171D1A"},[]),"\n"])}Object.defineProperty(Vn,"name",{value:"default",configurable:!0});const Hn=({progress:e,surveyType:t,text:s})=>{const r=t===l.L0.PageSurvey;return(0,Mt.h)("div",{className:"sv__progress-bar__wrapper"},r&&(0,Mt.h)("div",{className:"sv__progress-bar-description","data-testid":"progress-bar-description"},(0,Mt.h)("span",{className:"sv__progress-bar-number"},e,"% "),s),(0,Mt.h)("div",{className:(0,Un.A)({"survicate_progress-bar_oTwfq":!0,"sv-progress-bar":!0,"sv__progress-bar":!0})},(0,Mt.h)("div",{className:"sv__progress-bar-fill sv-progress-bar-fill sv--background-progress-bar",style:{width:`${e}%`}})))},Wn=({showBranding:e,showProgressBar:t,completionRate:s,progressBarText:r})=>{const i=e||t,{backendData:{workspaceKey:o},surveyState:{survey:n}}=_e.bX.getStore(l.L0.PageSurvey).getState(),a=yt.A.isWidthMobile()?void 0:`https://survicate.com/create-your-link-survey/?utm_source=Survey+branding&utm_medium=PageSurvey&utm_content=${o}&utm_term=${null==n?void 0:n.id}`;return i?(0,Mt.h)("a",{className:"sv__footer-container",href:a,rel:"noopener noreferrer",tabIndex:0,target:"_blank",title:"Click to go to the Survicate homepage"},(0,Mt.h)("div",{className:"sv__footer"},!t&&(0,Mt.h)("div",{className:"sv__powered-by"},"Powered by"),e&&(0,Mt.h)("div",{className:"sv__branding-logo","data-testid":"branding-logo"},(0,Mt.h)(Vn,null))),t&&(0,Mt.h)("div",{className:"sv__progress-bar-container"},(0,Mt.h)(Hn,{progress:s,surveyType:l.L0.PageSurvey,text:r}))):null};var Kn;!function(e){e.Security="security",e.Unavailable="unavailable"}(Kn||(Kn={}));const Jn=({text:e,showBranding:t,screenType:s,theme:r})=>{var i;const o=Bn();let n="#29292a",a=e,c={};(null==r?void 0:r.color_scheme)&&(n=r.color_scheme.answer),s===Kn.Security&&(a="Your browser doesn’t meet our security standards. Please update your browser to answer this survey."),s===Kn.Unavailable&&(c=qn(null===(i=window._svd.themes[0])||void 0===i?void 0:i.settings));const l=(0,Un.A)({"sv__status-page":!0,[`sv__status-page--${s}`]:!!s});return(0,It.vJ)(()=>{o.clearSubmitButtonState()},[o]),(0,Mt.h)("div",{className:l,"data-testid":"survey-status-gate",style:c},(0,Mt.h)("span",{className:"sv__main-text","data-testid":"survey-status-main-text",style:{color:n}},a),(0,Mt.h)(Wn,{completionRate:100,showBranding:null!=t&&t,showProgressBar:!1}))},Xn=e=>"label"in e,Gn=(e,t)=>t?Object.keys(e).reduce((s,r)=>{var i,o,n,a,c,l,v,_,u,d,p,m;if(!t[r])return Object.assign(Object.assign({},s),{[r]:e[r]});let h;if("string"==typeof t[r]&&(h=t[r]),"settings"===r){const s=null===(i=e[r])||void 0===i?void 0:i.scale,b=null===(o=e[r])||void 0===o?void 0:o.choice,g=null===(n=e[r])||void 0===n?void 0:n.disclaimer_text,f=null===(a=e[r])||void 0===a?void 0:a.disclaimer_title,y=null===(c=e[r])||void 0===c?void 0:c.disclaimer_settings,w=null===(l=e[r])||void 0===l?void 0:l.point_image,x=null===(v=e[r])||void 0===v?void 0:v.answer_edits_remaining_text;if(s){const i=s.map(e=>{var s,i;const o={name:(null===(i=null===(s=t[r])||void 0===s?void 0:s.scale)||void 0===i?void 0:i[e.id])||e.name};return Gn(e,o)});h=Object.assign(Object.assign({},e[r]),{scale:i})}else h=Gn(e[r],t[r]);if(y&&(null===(_=t[r])||void 0===_?void 0:_.disclaimer_settings)){const s=Gn(e[r].disclaimer_settings,t[r].disclaimer_settings);h=Object.assign(Object.assign({},h),{disclaimer_settings:s})}if(b&&(null===(u=t[r])||void 0===u?void 0:u.choice)){const e=Object.assign(Object.assign({},b),{text:t[r].choice.text});h=Object.assign(Object.assign({},h),{choice:e})}(g||f)&&t[r]&&(h=Object.assign(Object.assign({},h),{disclaimer_text:t[r].disclaimer_text||g,disclaimer_title:t[r].disclaimer_title||f})),(null==w?void 0:w.image)&&"object"==typeof w.image&&(null===(p=null===(d=t[r])||void 0===d?void 0:d.point_image)||void 0===p?void 0:p.image)&&(h=Object.assign(Object.assign({},h),{point_image:Object.assign(Object.assign({},w),{image:Object.assign(Object.assign({},w.image),{description:t[r].point_image.image.description||w.image.description})})})),x&&(null===(m=t[r])||void 0===m?void 0:m.answer_edits_remaining_text)&&(h=Object.assign(Object.assign({},h),{answer_edits_remaining_text:t[r].answer_edits_remaining_text||x}))}return"answers"!==r&&"fields"!==r||(h=e[r].map(e=>{var s,i,o,n;let a;if("answers"===r)a={possible_answer:null!==(i=null===(s=t[r])||void 0===s?void 0:s[e.id])&&void 0!==i?i:(c=e,"possible_answer"in c?e.possible_answer:"")};else a={label:null!==(n=null===(o=t[r])||void 0===o?void 0:o[e.id])&&void 0!==n?n:Xn(e)?e.label:""};var c;return Gn(e,a)})),Object.assign(Object.assign({},s),{[r]:h||e[r]})},Object.assign({},e)):e,Yn=(e,t)=>{var s,r,i,o,n;const a=_e.bX.getStore(e),{surveyState:{translationLanguage:c,translations:l},isPreview:v}=a.getState(),_=c||ht({preview:v,survey:t}),u=null!==(r=null===(s=t.settings)||void 0===s?void 0:s.survey_language)&&void 0!==r?r:"",d=null!=_?null===(n=null===(o=null===(i=null==l?void 0:l[t.id])||void 0===i?void 0:i[_])||void 0===o?void 0:o.settings)||void 0===n?void 0:n.messages:void 0;return l&&_&&u!==_&&d?Gn(t.settings.messages,d):t.settings.messages},Qn=()=>{const{surveyEvent:e}=(0,It.NT)(Ut),{surveyType:s}=(0,It.NT)(jt.y),r=_e.bX.getStore(s),i=ye.getStorage(s),o=e=>{var s;if(!e)return!1;const r=`${B.state}:${e}`,o=(null===(s=i.get(r))||void 0===s?void 0:s.timestamp)||0;return t()-o>2592e6};return(0,It.vJ)(()=>{(null==e?void 0:e.eventType)!==Nt.answered&&(null==e?void 0:e.eventType)!==Nt.opened&&(null==e?void 0:e.eventType)!==Nt.minimized&&(null==e?void 0:e.eventType)!==Nt.maximized&&(null==e?void 0:e.surveyId)&&i.remove(`${B.state}:${e.surveyId}`)},[e]),{isCacheOutdated:o,preserveState:e=>{if(!e)return;const s=`${B.state}:${e}`,o={surveyApiState:r.getState().surveyApiState,surveyState:r.getState().surveyState,timestamp:t()};i.set(s,o)},retrieveState:e=>{var t,s,n,a,c;const l=r.getState();if(!e||l.isPreview||(null===(s=null===(t=l.surveyState.survey)||void 0===t?void 0:t.settings)||void 0===s?void 0:s.kiosk_enabled))return;const v=`${B.state}:${e}`,_=null===(n=i.get(v))||void 0===n?void 0:n.surveyApiState,u=null===(a=i.get(v))||void 0===a?void 0:a.surveyState;if(!u||!_)return;if(o(e))return void i.remove(`${B.state}:${e}`);const d=Object.assign(Object.assign(Object.assign({},Mo.PL),u),_);if(null===(c=window._sva)||void 0===c?void 0:c.themeMode){const e=un(window._sva.themeMode,!0);null!==e&&(d.themeMode=e)}d.survey&&(d.translationLanguage=ht({survey:d.survey})),r.setState(Object.assign(Object.assign({},l),{surveyState:d})),d.survey&&l.storeType&&Io(r.getState(),d.survey)}}};var Zn=s(5574),ea=s.n(Zn);const ta=({buttonLink:e,buttonText:t})=>(0,Mt.h)("a",{className:"sv__simple-link-button",href:e,rel:"noopener noreferrer",target:"_blank",title:"Click to go to the page of the survey creator",type:"button"},t),sa=JSON.parse('{"DD":"Uh-oh! This survey is currently unavailable","Zg":"😔","lO":{"z":"Don\'t let that stop you! Create your own survey in just a few clicks.","R":"With Survicate, a user journey survey software, you can get continuous user insights at all stages of the funnel:"},"qT":["Better understand your audience with website surveys","Validate your product ideas with in-app feedback surveys","Identify churn reasons to improve customer experience"],"x6":{"Q":"LEARN MORE","O":"https://survicate.com/?utm_source=Survey_unavailable&utm_medium=PageSurvey"},"Hw":{"l":{"R":"Find out how Survicate can help you gain valuable insights."}},"zC":{"wm":"https://surveys-static.survicate.com/images/surviLogoDark.svg","io":"https://surveys-static.survicate.com/images/iconTick.svg","Tp":"https://surveys-static.survicate.com/images/surveyUnavailable.svg","gY":"https://surveys-static.survicate.com/images/surveyUnavailableIcon.svg","_E":"https://surveys-static.survicate.com/images/mobileThankYou.svg"},"_2":{"wm":"Survicate Logo","io":"tick","Tp":"Background","gY":"Survey unavailable icon","_E":"Thank you icon"}}'),ra=()=>((0,It.vJ)(()=>{document.body.style.margin="0"},[]),(0,Mt.h)("div",{className:"sv__survey-status-gate__wrapper"},ea()()?(0,Mt.h)("div",{className:"sv__is-mobile sv__survey-status-view","data-testid":"survey-status-gate"},(0,Mt.h)("div",{className:"sv__survey-status-view--with-branding"},(0,Mt.h)("img",{alt:sa._2.wm,className:"sv__survi-logo",src:sa.zC.wm}),(0,Mt.h)("img",{alt:sa._2.gY,className:"sv__status-emoji",src:sa.zC.gY}),(0,Mt.h)("div",{className:"sv__content"},(0,Mt.h)("div",{className:"sv__title-wrapper"},(0,Mt.h)("p",{className:"sv__title"},sa.DD),(0,Mt.h)("p",{className:"sv__emoji"},sa.Zg)),(0,Mt.h)("div",{className:"sv__paragraph"},(0,Mt.h)("p",null,sa.lO.z),(0,Mt.h)("p",null,sa.Hw.l.R))),(0,Mt.h)("img",{alt:sa._2._E,className:"sv__status-logo",src:sa.zC._E}),(0,Mt.h)(ta,{buttonLink:sa.x6.O,buttonText:sa.x6.Q}))):(0,Mt.h)("div",{className:"sv__survey-status-view","data-testid":"survey-status-gate"},(0,Mt.h)("div",{className:"sv__survey-status-view--with-branding"},(0,Mt.h)("div",{className:"sv__content"},(0,Mt.h)("img",{alt:sa._2.wm,className:"sv__content__logo",src:sa.zC.wm}),(0,Mt.h)("div",{className:"sv__title__wrapper"},(0,Mt.h)("div",{className:"sv__title-emoji__wrapper"},(0,Mt.h)("h1",{className:"sv__title"},sa.DD),(0,Mt.h)("p",{className:"sv__emoji"},sa.Zg))),(0,Mt.h)("div",{className:"sv__content__paragraph"},(0,Mt.h)("div",null,sa.lO.z),(0,Mt.h)("div",null,sa.lO.R)),(0,Mt.h)("ul",{className:"sv__content__list"},sa.qT.map(e=>(0,Mt.h)("li",{className:"sv__content__list--element",key:e},(0,Mt.h)("img",{alt:sa._2.io,src:sa.zC.io}),(0,Mt.h)("div",null,e)))),(0,Mt.h)(ta,{buttonLink:sa.x6.O,buttonText:sa.x6.Q})),(0,Mt.h)("a",{className:"sv__background__wrapper sv__background__wrapper--unclickable",href:sa.x6.O,rel:"noopener noreferrer",target:"_blank"},(0,Mt.h)("img",{alt:sa._2.Tp,className:"sv__background",src:sa.zC.Tp})))))),ia=(e,t)=>{const s=new Date(e);return s.setDate(s.getDate()+t),s},oa=()=>(console.error("Invalid date format"),null),na=(e,t)=>{switch(e){case"salesforce":{if(10!==t.length||!t.includes("/"))return oa();const[e,s,r]=t.split("/").map(Number);return new Date(r,s-1,e)}case"klaviyo":{if(!t.includes("."))return oa();const[e,s,r]=t.split(".").map(Number);return new Date(r,s-1,e)}case"activecampaign":case"hubspot":{if(10!==t.length||!t.includes("/"))return oa();const[e,s,r]=t.split("/").map(Number);return new Date(r,e-1,s)}case"marketo":{const e=new Date(t);return e.getTime()?e:oa()}default:{if(10!==t.length||!t.includes("-"))return oa();const[e,s,r]=t.split("-").map(Number);return new Date(e,s-1,r)}}},aa=e=>{if(!(null==Se?void 0:Se.params))return!1;const{params:t}=Se;if(!t||!t.sent_date||!e)return!1;const s=na(t.p,t.sent_date);if(!s)return!1;return ia(s,e)<new Date},ca=({children:e})=>{var t,s,r,i,o,n;const{pageSurvey:a,widgetSurveys:c,isPreview:l,update:v,surveyUpdated:_,isPage:u,surveyType:d}=(0,It.NT)(jt.y),{isCacheOutdated:p}=Qn(),m=!!v&&Object.keys(v).length>0,h=u&&aa(null===(t=null==a?void 0:a.settings)||void 0===t?void 0:t.link_expiration_period),b=m?!!(null===(s=v.surveys)||void 0===s?void 0:s.length):!!(null==c?void 0:c.length),g=null===(r=m?v.survey:a)||void 0===r?void 0:r.activated,f=!(a&&(l||g&&(null===(i=a.points)||void 0===i?void 0:i.length))),w=!h&&!f||b,x=m&&_,S=As(d);if(x&&!y.P.isAvailable()){const e=null==v?void 0:v.survey;u&&(null===(o=e.settings)||void 0===o?void 0:o.kiosk_enabled)&&p(e.id)?_e.bX.getStore(d).action(jo)(e):S&&(null===(n=v.surveys)||void 0===n?void 0:n.length)&&(Is.startTargeting(d,v.surveys),_e.bX.getStore(d).action(zo)())}const k=a?Yn(d,a).disabled_text:zn.h;return w?e:S?null:((e,t)=>{var s,r,i,o,n;return t===Kn.Unavailable?null===(i=null===(r=null===(s=window._svd)||void 0===s?void 0:s.survey)||void 0===r?void 0:r.settings)||void 0===i?void 0:i.hide_footer:null===(n=null===(o=_e.bX.getStore(e).getState().surveyState.survey)||void 0===o?void 0:o.settings)||void 0===n?void 0:n.hide_footer})(d,Kn.Unavailable)?(0,Mt.h)(Jn,{screenType:Kn.Unavailable,text:k}):(0,Mt.h)(ra,null)};var la,va=/bot|crawl|http|lighthouse|scan|search|spider/i;function _a(){if(la instanceof RegExp)return la;try{la=new RegExp(" daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<!cam)scan|24x7|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\b\\w+\\.ai|\\bcursor/|\\bmanus-user/|\\bort/|\\bperl\\b|\\bplaywright\\b|\\bsecurityheaders\\b|\\bselenium\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[\\w\\-]+/[\\w]+$|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^\\w+/\\d\\.\\d\\s\\([\\w@]+\\)$|^active|^ad muncher|^amaya|^apache/|^avsdevicesdk/|^azure|^biglotron|^bot|^bw/|^clamav[ /]|^claude-code/|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\((?:compatible;)?(?:\\s?[\\w\\d-.]+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|advisor|agent\\b|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|exaleadcloudview|feed|fetcher|firephp|functionize|grab|headless|httrack|hubspot marketing grader|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|mail\\.ru/|manager|measure|monitor\\b|neustar wpm|node\\b|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|xtate/","i")}catch(e){la=va}return la}var ua=e=>"string"==typeof e&&""!==e;let da;const pa=()=>{try{const e="function"==typeof crypto.getRandomValues,t=!!document.createEvent("Event"),s=e&&t;return s&&(da=void 0),s}catch(e){da=e;try{if("undefined"!=typeof console&&"function"==typeof console.error){const t=`hasBrowserAPISupport: ${(e=>e instanceof Error?e.message:"string"==typeof e?e:String(e))(e)}`;console.error(t,e)}}catch(e){}return!1}},ma={chrome:"<85",edge:"<85",firefox:"<79",opera:"<71",safari:"<14"},ha=()=>{const e=(()=>{var e,t;return null===(t=null===(e=window.location)||void 0===e?void 0:e.pathname)||void 0===t?void 0:t.endsWith("link_preview.html")})()||pa()&&(t=navigator.userAgent,!(ua(t)&&_a().test(t)))&&!(()=>{const e=window.navigator.userAgent;if(!e)return!1;const t=me(e);if(!t)return!1;try{return!!t.satisfies(ma)}catch(e){return!1}})();var t;return{isSupportedBrowser:e}},ba=({children:e})=>{const{isSupportedBrowser:t}=ha(),{isPage:s}=(0,It.NT)(jt.y);return t?e:s?(0,Mt.h)(Jn,{screenType:Kn.Security}):null};var ga=s(1746),fa=Symbol.for("preact-signals");function ya(){if(Ta>1)Ta--;else{var e,t=!1;for(!function(){var e=Ca;for(Ca=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==Aa;){var s=Aa;for(Aa=void 0,Oa++;void 0!==s;){var r=s.u;if(s.u=void 0,s.f&=-3,!(8&s.f)&&Ra(s))try{s.c()}catch(s){t||(e=s,t=!0)}s=r}}if(Oa=0,Ta--,t)throw e}}function wa(e){if(Ta>0)return e();Pa=++Ea,Ta++;try{return e()}finally{ya()}}var xa=void 0;function Sa(e){var t=xa;xa=void 0;try{return e()}finally{xa=t}}var ka,Aa=void 0,Ta=0,Oa=0,Ea=0,Pa=0,Ca=void 0,Na=0;function Ma(e){if(void 0!==xa){var t=e.n;if(void 0===t||t.t!==xa)return t={i:0,S:e,p:xa.s,n:void 0,t:xa,e:void 0,x:void 0,r:t},void 0!==xa.s&&(xa.s.n=t),xa.s=t,e.n=t,32&xa.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=xa.s,t.n=void 0,xa.s.n=t,xa.s=t),t}}function Ia(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function ja(e,t){return new Ia(e,t)}function Ra(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function La(e){for(var t=e.s;void 0!==t;t=t.n){var s=t.S.n;if(void 0!==s&&(t.r=s),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Da(e){for(var t=e.s,s=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):s=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=s}function Fa(e,t){Ia.call(this,void 0),this.x=e,this.s=void 0,this.g=Na-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function za(e,t){return new Fa(e,t)}function qa(e){var t=e.m;if(e.m=void 0,"function"==typeof t){Ta++;var s=xa;xa=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Ua(e),t}finally{xa=s,ya()}}}function Ua(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,qa(e)}function $a(e){if(xa!==this)throw new Error("Out-of-order effect");Da(this),xa=e,this.f&=-2,8&this.f&&Ua(this),ya()}function Ba(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,ka&&ka.push(this)}function Va(e,t){var s=new Ba(e,t);try{s.c()}catch(e){throw s.d(),e}var r=s.d.bind(s);return r[Symbol.dispose]=r,r}Ia.prototype.brand=fa,Ia.prototype.h=function(){return!0},Ia.prototype.S=function(e){var t=this,s=this.t;s!==e&&void 0===e.e&&(e.x=s,this.t=e,void 0!==s?s.e=e:Sa(function(){var e;null==(e=t.W)||e.call(t)}))},Ia.prototype.U=function(e){var t=this;if(void 0!==this.t){var s=e.e,r=e.x;void 0!==s&&(s.x=r,e.e=void 0),void 0!==r&&(r.e=s,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&Sa(function(){var e;null==(e=t.Z)||e.call(t)}))}},Ia.prototype.subscribe=function(e){var t=this;return Va(function(){var s=t.value,r=xa;xa=void 0;try{e(s)}finally{xa=r}},{name:"sub"})},Ia.prototype.valueOf=function(){return this.value},Ia.prototype.toString=function(){return this.value+""},Ia.prototype.toJSON=function(){return this.value},Ia.prototype.peek=function(){var e=this;return Sa(function(){return e.value})},Object.defineProperty(Ia.prototype,"value",{get:function(){var e=Ma(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Oa>100)throw new Error("Cycle detected");!function(e){0!==Ta&&0===Oa&&e.l!==Pa&&(e.l=Pa,Ca={S:e,v:e.v,i:e.i,o:Ca})}(this),this.v=e,this.i++,Na++,Ta++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{ya()}}}}),Fa.prototype=new Ia,Fa.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Na)return!0;if(this.g=Na,this.f|=1,this.i>0&&!Ra(this))return this.f&=-2,!0;var e=xa;try{La(this),xa=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return xa=e,Da(this),this.f&=-2,!0},Fa.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ia.prototype.S.call(this,e)},Fa.prototype.U=function(e){if(void 0!==this.t&&(Ia.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Fa.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Fa.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ma(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Ba.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},Ba.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,qa(this),La(this),Ta++;var e=xa;return xa=this,$a.bind(this,e)},Ba.prototype.N=function(){2&this.f||(this.f|=2,this.u=Aa,Aa=this)},Ba.prototype.d=function(){this.f|=8,1&this.f||Ua(this)},Ba.prototype.dispose=function(){this.d()};var Ha,Wa,Ka="undefined"!=typeof window&&!!window.__PREACT_SIGNALS_DEVTOOLS__,Ja=[];function Xa(e,t){Mt.options[e]=t.bind(null,Mt.options[e]||function(){})}function Ga(e){if(Wa){var t=Wa;Wa=void 0,t()}Wa=e&&e.S()}function Ya(e){var t=this,s=e.data,r=function(e,t){return(0,It.Kr)(function(){return ja(e,t)},[])}(s);r.value=s;var i=(0,It.Kr)(function(){for(var e=t,s=t.__v;s=s.__;)if(s.__c){s.__c.__$f|=4;break}var i=za(function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}),o=za(function(){return!Array.isArray(i.value)&&!(0,Mt.isValidElement)(i.value)}),n=Va(function(){if(this.N=sc,o.value){var t=i.value;e.__v&&e.__v.__e&&3===e.__v.__e.nodeType&&(e.__v.__e.data=t)}}),a=t.__$u.d;return t.__$u.d=function(){n(),a.call(this)},[o,i]},[]),o=i[0],n=i[1];return o.value?n.peek():n.value}function Qa(e,t,s,r){var i=t in e&&void 0===e.ownerSVGElement,o=ja(s),n=s.peek();return{o:function(e,t){o.value=e,n=e.peek()},d:Va(function(){this.N=sc;var s=o.value.value;n!==s?(n=void 0,i?e[t]=s:null==s||!1===s&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,s)):n=void 0})}}Va(function(){Ha=this.N})(),Ya.displayName="ReactiveTextNode",Object.defineProperties(Ia.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Ya},props:{configurable:!0,get:function(){var e=this;return{data:{get value(){return e.value}}}}},__b:{configurable:!0,value:1}}),Xa("__b",function(e,t){if("string"==typeof t.type){var s,r=t.props;for(var i in r)if("children"!==i){var o=r[i];o instanceof Ia&&(s||(t.__np=s={}),s[i]=o,r[i]=o.peek())}}e(t)}),Xa("__r",function(e,t){if(e(t),t.type!==Mt.Fragment){Ga();var s,r=t.__c;r&&(r.__$f&=-2,void 0===(s=r.__$u)&&(r.__$u=s=function(e,t){var s;return Va(function(){s=this},{name:t}),s.c=e,s}(function(){var e;Ka&&(null==(e=s.y)||e.call(s)),r.__$f|=1,r.setState({})},"function"==typeof t.type?t.type.displayName||t.type.name:""))),Ga(s)}}),Xa("__e",function(e,t,s,r){Ga(),e(t,s,r)}),Xa("diffed",function(e,t){var s;if(Ga(),"string"==typeof t.type&&(s=t.__e)){var r=t.__np,i=t.props;if(r){var o=s.U;if(o)for(var n in o){var a=o[n];void 0===a||n in r||(a.d(),o[n]=void 0)}else o={},s.U=o;for(var c in r){var l=o[c],v=r[c];void 0===l?(l=Qa(s,c,v),o[c]=l):l.o(v,i)}for(var _ in r)i[_]=r[_]}}e(t)}),Xa("unmount",function(e,t){if("string"==typeof t.type){var s=t.__e;if(s){var r=s.U;if(r)for(var i in s.U=void 0,r){var o=r[i];o&&o.d()}}t.__np=void 0}else{var n=t.__c;if(n){var a=n.__$u;a&&(n.__$u=void 0,a.d())}}e(t)}),Xa("__h",function(e,t,s,r){(r<3||9===r)&&(t.__$f|=2),e(t,s,r)}),Mt.Component.prototype.shouldComponentUpdate=function(e,t){if(this.__R)return!0;var s=this.__$u,r=s&&void 0!==s.s;for(var i in t)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){var o=2&this.__$f;if(!(r||o||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(r||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var n in e)if("__source"!==n&&e[n]!==this.props[n])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};"undefined"==typeof requestAnimationFrame&&setTimeout;var Za,ec=function(e){queueMicrotask(function(){queueMicrotask(e)})};function tc(){wa(function(){for(var e;e=Ja.shift();)Ha.call(e)})}function sc(){1===Ja.push(this)&&(Mt.options.requestAnimationFrame||ec)(tc)}!function(e){e.NotRendered="NotRendered",e.Submit="Submit",e.Navigation="Navigation"}(Za||(Za={}));const rc=()=>{const e=ja(null),t=ja(null),s=za(()=>((e,t)=>{var s;if(!e||!t)return{type:Za.NotRendered};const r=t.isHidden||!1,i=null!==(s=t.submitButtonText)&&void 0!==s?s:e.submitButtonText;return e.hasNavigationButtons&&!e.isInitialView?t.shouldRender?{backText:e.backButtonText,isBackEnabled:!e.isFirstSurveyPoint,isHidden:r,isSubmitEnabled:t.canSubmit,submitText:i,type:Za.Navigation}:{type:Za.NotRendered}:t.shouldRender?{isHidden:r,isSubmitEnabled:t.canSubmit,submitText:i,type:Za.Submit}:{type:Za.NotRendered}})(e.value,t.value));return{pointConfig:t,submitState:s,surveyConfig:e}},ic=(0,Mt.createContext)(null),oc=()=>{const e=(0,It.NT)(ic);if(!e)throw new Error("useSubmitSignals must be used within SubmitSignalsProvider");return e},nc=({children:e})=>{const t=(0,It.Kr)(()=>rc(),[]),s=(0,It.Kr)(()=>(e=>{const t=e,s=new Map;let r=null,i=!1,o=!1;const n=()=>{if(0===s.size)return void(t.pointConfig.value=null);const e=[...s.values()];t.pointConfig.value={canSubmit:s.size>1||e.every(e=>e.config.canSubmit),isHidden:i,shouldRender:e.some(e=>e.config.shouldRender),submitButtonText:1===s.size?e[0].config.submitButtonText:void 0}},a=()=>{t.surveyConfig.value=null,t.pointConfig.value=null,s.clear(),r=null,i=!1},c=()=>{var e;const t=new Map,r=[...s];for(const[s,i]of r){const r=null===(e=i.submit)||void 0===e?void 0:e.call(i);r&&t.set(s,r)}return t};return{clearSubmitButtonState:a,handleSubmit(){o=!1,r?r():c(),o||a()},hideSubmitButton(e){i=e,n()},removePoint(e){s.delete(e),n()},setGroupSubmitHandler(e){r=e},skipClearState(){o=!0},triggerAllSubmits:c,updatePointConfig(e,t,r){var i,o;s.set(e,{config:t,submit:null!==(o=null!=r?r:null===(i=s.get(e))||void 0===i?void 0:i.submit)&&void 0!==o?o:null}),n()},updateSurveyConfig(e){t.surveyConfig.value=e}}})(t),[t]);return(0,Mt.h)(ic.Provider,{value:t},(0,Mt.h)($n.Provider,{value:s},e))};var ac=s(9635);const cc=(0,ac.N)(e=>{var t;return{isPreview:e.isPreview,state:e,surveyId:null===(t=e.surveyState.survey)||void 0===t?void 0:t.id}})(({surveyId:e,children:t,state:s})=>{const{update:r,surveyUpdated:i,isWidget:o,isFeedback:n,triggerConfigUpdate:a,isPreview:c,surveyType:l}=(0,It.NT)(jt.y),{surveyEvent:v}=(0,It.NT)(Ut),{isCacheOutdated:_}=Qn(),u=_e.bX.getStore(l);return(0,It.vJ)(()=>{var t;if(!i||!e||!_(e))return;const a=Array.isArray(r.surveys)&&r.surveys.length>0?r.surveys.find(t=>t.id===e):null,c=o||n?a:r.survey;if(!c)return u.setState(Object.assign(Object.assign({},s),{surveyState:Object.assign(Object.assign({},s.surveyState),{survey:null}),update:r})),void u.action(zo)();const v=o||n?null==a?void 0:a.theme_id:null===(t=r.survey)||void 0===t?void 0:t.theme_id,d=r.themes.find(e=>e.id===v);let p=s.surveyState.theme;d&&(p=Os.extendTheme(d),Os.reloadCss(p,l));const m=o||n?null==a?void 0:a.points[0]:r.survey.points[0],h=null==a?void 0:a.settings;let b=!1;(o||n)&&(b=yt.A.isWidthMobile()?!!(null==h?void 0:h.run_minimalized_mobile):!!(null==h?void 0:h.run_minimalized)),u.setState(Object.assign(Object.assign({},s),{surveyState:Object.assign(Object.assign({},s.surveyState),{isAlreadyAnswered:!1,isFinished:!1,isMinimized:b,isOverlayActive:!(!o&&!n||!h)&&!!h.overlay,pointsAnswered:[],pointsDisplayed:[{point:m}],pointsForward:[],responseUuid:"",survey:c,theme:p}),update:r}))},[i,r,s.surveyState]),(0,It.vJ)(()=>{(null==v?void 0:v.eventType)===Nt.shouldUpdate&&a&&!c&&a()},[v]),t}),lc=()=>{const{pageSurvey:e}=(0,It.NT)(jt.y),t=Bn(),s=Yn(l.L0.PageSurvey,e);return(0,It.vJ)(()=>{t.clearSubmitButtonState()},[t]),(0,Mt.h)("div",{className:"sv__opened-in-new-tab"},(0,Mt.h)("img",{alt:"Refresh icon",src:`${P.getState().surveysStaticUrl}/images/refresh.svg`}),(0,Mt.h)("p",null,(null==s?void 0:s.opened_text)||"The survey was opened in a new tab. Refresh this page to continue filling out this survey."))},vc=t=>{const{isPreview:s,surveyType:r}=(0,It.NT)(jt.y),i=(0,It.li)(void 0),o=(0,It.li)(void 0),[n,a]=(0,It.J0)(!1);return(0,It.vJ)(()=>{if(s||!t)return;const n=`${B.tabId}:${t}`,c=(0,e.A)();return o.current=c,S.getStore(r).set(n,c),i.current=setInterval(()=>{(()=>{if(s||!t)return void a(!1);const e=`${B.tabId}:${t}`;S.getStore(r).get(e)!==o.current&&a(!0)})()},1e3),()=>{i.current&&clearInterval(i.current)}},[t,s,r]),{isMultiTab:n}},_c=(0,ac.N)(e=>{var t;return{surveyId:null===(t=e.surveyState.survey)||void 0===t?void 0:t.id}})(({children:e,surveyId:t})=>{const{isPage:s}=(0,It.NT)(jt.y),{isMultiTab:r}=vc(t);return r?s?(0,Mt.h)(lc,null):null:e});var uc=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const dc=Date.UTC(2026,0,28),pc=()=>S.getStore(l.L0.WidgetSurvey);function mc(e){if("undefined"==typeof window)return null;try{return pc().get(`${ct}${e}`,!0)}catch(e){return null}}function hc(e,t,s){return uc(this,void 0,void 0,function*(){const{invalidateBefore:r}=null!=s?s:{};if(void 0!==r){const t=mc(e);null!==t&&("number"!=typeof t.timestamp||t.timestamp<r)&&function(e){if("undefined"!=typeof window)try{pc().remove(`${ct}${e}`,!0)}catch(e){}}(e)}const i=function(e){const t=mc(e);return t?t.data:null}(e);if(i)return i;const o=yield t();return function(e,t){if("undefined"!=typeof window)try{pc().set(`${ct}${e}`,{data:t,timestamp:Date.now()},!0)}catch(e){}}(e,o),o})}var bc=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};function gc(e,t){_e.bX.getStore(e.storeType).setState({tabId:t})}function fc(e,t){_e.bX.getStore(e.storeType).setState({isPreview:t})}function yc(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pn),Js),xn),yi),Li),ui),{setTabId:gc})}const wc=e=>{const t=S.getStore(m.EventStore).get(h.events)||[],s=e.filter(e=>{return s=e.name,!t.some(e=>e.name===s);var s});return[...t,...s]},xc=e=>{const t=S.getStore(e),s=t.get(q.answers),r=t.get(h.events),i=an.getState().visitor;i.attributes&&Object.keys(i.attributes).length&&Ds(Object.assign(Object.assign({},i),{attributes:{}})),s&&Object.keys(s).length&&t.remove(q.answers),r&&Array.isArray(r)&&r.length&&t.remove(h.events),(e=>{const t=S.getStore(e);let s=0;const r=setInterval(()=>{var i,o;const n=null===(o=null===(i=_e.bX.getStore(e).getState().surveyState)||void 0===i?void 0:i.survey)||void 0===o?void 0:o.id;if(n)return t.remove(`${B.state}:${n}`),void clearInterval(r);++s>=5&&clearInterval(r)},1e3)})(e)};var Sc=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const kc=(t,s)=>Sc(void 0,void 0,void 0,function*(){var r,i,o,a,c;const l=_e.bX.getStore(t),{surveys:v,integrations:_,targeting_events:u=[],targeting_events_enabled:d,permissions:p}=s;if(fe()&&xc(t),l.action(Vs)(y.P.inBrazePreview()?[]:_),l.action(Ks)(p||null),l.action(Ys.p2)(null!==(r=null==p?void 0:p.surveys_screenshots)&&void 0!==r&&r),n.setState({events:wc(u),isEnabled:null!=d&&d}),(null===(i=window._sva)||void 0===i?void 0:i.responseTraits)&&l.action(ji)(window._sva.responseTraits),(null===(o=window._sva)||void 0===o?void 0:o.forcedLanguage)&&Te.getVisit(t).setForcedLanguage(window._sva.forcedLanguage),null===(a=window._sva)||void 0===a?void 0:a.themeMode){const e=un(window._sva.themeMode,!0);null!==e&&l.action(wn)(e,t)}l.action(gc)((0,e.A)()),l.action(Us)(v),No.onThemeChange(()=>{const e=l.getState();e.surveyState.themeMode===Mo.lG.Auto&&e.surveyState.survey&&Io(Object.assign(Object.assign({},e),{storeType:t}),e.surveyState.survey)});(null==v?void 0:v.some(e=>e.settings.format===Fe.WO.Braze))&&!0===(null===(c=window._sva)||void 0===c?void 0:c.useBrazeIframeClipper)&&(null!=Ni||(Ni=new Pi))}),Ac=(e,t)=>Sc(void 0,void 0,void 0,function*(){var s,r;const i=_e.bX.getStore(e),o=t||window._svd||{};if(0===Object.keys(o).length)return;const{audiences:a,themes:c,translations:v}=o,_=v&&Object.keys(v).length>0;t||(_?yield function(){return bc(this,void 0,void 0,function*(){try{const[e,t]=yield Promise.all([hc(lt.TLD_TO_LANGUAGE_MAP,()=>bc(this,void 0,void 0,function*(){const{data:e}=yield(0,C.A)(P.getState().surveysStaticUrl).get(`/data/${lt.TLD_TO_LANGUAGE_MAP}.json`);return e}),{invalidateBefore:dc}),hc(lt.LANGUAGE_CODES,()=>bc(this,void 0,void 0,function*(){const{data:e}=yield(0,C.A)(P.getState().surveysStaticUrl).get(`/data/${lt.LANGUAGE_CODES}.json`);return e}))]);ut({languageCodes:t,tldToLanguageMap:e})}catch(e){}})}().catch(()=>{}):function(){if("undefined"!=typeof window)try{const e=pc();e.remove(`${ct}${lt.TLD_TO_LANGUAGE_MAP}`,!0),e.remove(`${ct}${lt.LANGUAGE_CODES}`,!0),ut({languageCodes:null,tldToLanguageMap:null})}catch(e){}}()),i.action($s)(null!=a?a:[]),i.action(Hs)(null!==(s=null==t?void 0:t.workspaceKey)&&void 0!==s?s:null===(r=window._svc)||void 0===r?void 0:r.workspaceKey),i.action(Bs)(c),i.action(Ws)(v),i.action(fc)(!!t),t||(function(e,t){const s=new Si(t),r=new nn(s,e);_e.bX.getStore(e).setState({backendService:r,storageService:s})}(e,window._svc.workspaceKey),(e=>{var t;const s=null===(t=e.permissions)||void 0===t?void 0:t.targeting_javascript_api,r=()=>{console.warn("The _sva object is unavailable on your current plan.\n \n Upgrade your account to get access to JavaScript targeting feature")};"undefined"!=typeof window?(window._sva=Object.assign(Object.assign({},window._sva),Object.keys(jn).reduce((e,t)=>{const i=jn[t],o="setVisitorTraits"===t||"setResponseTraits"===t||s?i:r;return Object.assign(Object.assign({},e),{[t]:o})},{})),window._svx={getEventsState:()=>n.getState(),getState:e=>{const t=e===En.FeedbackSurvey?l.L0.FeedbackButton:l.L0.WidgetSurvey;return Object.assign(Object.assign({},_e.bX.getStore(t).getState()),{visit:Te.getVisit(t).get()})},getSurvey:()=>{const e=_e.bX.getStore(l.L0.WidgetSurvey).getState().surveyState.survey,t=_e.bX.getStore(l.L0.FeedbackButton).getState().surveyState.survey;return Object.assign(Object.assign({},e&&{widget:{id:e.id,name:e.name}}),t&&{feedback:{id:t.id,name:t.name}})},getUrlState:()=>P.getState(),getVisitorState:()=>an.getState(),showSurveyPoint:e=>{Nn.forEach(t=>{var s;const r=_e.bX.getStore(t),i=null===(s=r.getState().surveyState.survey)||void 0===s?void 0:s.points.find(({id:t})=>t===Number(e));i&&r.setState({surveyState:Object.assign(Object.assign({},r.getState().surveyState),{pointsDisplayed:[{point:i}]})})})}}):console.warn("Survey API is available only in the browser environment")})(o)),As(e)&&o.surveys?yield kc(e,o):o.survey&&(yield((e,t)=>Sc(void 0,void 0,void 0,function*(){var s;const r=_e.bX.getStore(e),i=Object.assign({},t);Se.params[we.multiple_responses]&&(i.survey.kiosk_enabled=!0),cn(),Oi(i.survey.settings.kiosk_enabled?ki.kiosk:ki.normal),r.action(Vs)(i.integrations),r.action(ci)(),r.action(Ri)(),Se.replaceWindowUrl(),(null===(s=window._sva)||void 0===s?void 0:s.traits)&&an.action(ai)(window._sva.traits),r.action(jo)(i.survey)}))(e,o)),t||function(){const e=document.createEvent("Event");e.initEvent("SurvicateReady",!0,!0),window._svc.initialized=!0,EventTarget.prototype.dispatchEvent.call(window,e)}()}),Tc=e=>{const{surveyType:t,initialSVDConfig:s}=(0,It.NT)(jt.y),[r,i]=(0,It.J0)(0),o=_e.bX.getStore(t);return(0,It.Nf)(()=>{o.setState({storeType:t}),Ac(t,s),i(e=>e+1)},[t,s]),(0,Mt.h)(ac.K,{key:r,store:o},e.children)},Oc=(0,ac.N)(e=>{var t;return{surveyId:null===(t=e.surveyState.survey)||void 0===t?void 0:t.id}})(e=>{const{surveyId:t}=e,{surveyEvent:s}=(0,It.NT)(Ut),{surveyType:r}=(0,It.NT)(jt.y),i=(0,It.li)(!0),{retrieveState:o,preserveState:n}=Qn(),[a,c]=(0,It.J0)(null);return(0,It.vJ)(()=>{var t;o(null===(t=_e.bX.getStore(r).getState().surveyState.survey)||void 0===t?void 0:t.id),c(e.children)},[t]),(0,It.vJ)(()=>{i.current?i.current=!1:s&&s.eventType!==Nt.closed&&s.eventType!==Nt.finished&&s.eventType!==Nt.shouldUpdate&&n(t)},[s]),a}),Ec=({surveyType:e,surveyComponent:t,initialConfig:s,workspaceKey:r})=>(0,Mt.h)(jt.s,{initialSVDConfig:s,surveyType:e,workspaceKey:r},(0,Mt.h)(nc,null,(0,Mt.h)(ba,null,(0,Mt.h)(ca,null,(0,Mt.h)(Tc,null,(0,Mt.h)($t,null,(0,Mt.h)(Oc,null,(0,Mt.h)(cc,null,(0,Mt.h)(_c,null,(0,Mt.h)(ga.D,null,t))))))))));var Pc=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const Cc="survicate-box",Nc=(e,t)=>Pc(void 0,void 0,void 0,function*(){var s,r;if(Z.initGlobalErrorsWatch(e),"undefined"==typeof window||"undefined"==typeof document)return;const{_svc:i}=window;let o;(null==i?void 0:i.surveysStaticUrl)&&P.setState({surveysStaticUrl:i.surveysStaticUrl}),(null==i?void 0:i.respondentUrl)&&P.setState({respondentUrl:i.respondentUrl});try{if(o=yield document.body?Promise.resolve(document.body):new Promise((e,t)=>{const s=setTimeout(()=>{i(),t(new Error("Timed out waiting for document.body"))},1e4);let r=null;const i=()=>{clearTimeout(s),r&&(clearInterval(r),r=null)},o=()=>{i(),e(document.body)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o,{once:!0}):r=setInterval(()=>{document.body&&o()},100)}),!o)return}catch(e){const t=e instanceof Error?e:new Error("Unknown error");return void Z.warn(`Failed to load survey - unable to get document.body. Document ready state:\n ${document.readyState}, body exists: ${!!document.body}, in iframe: ${window.self!==window.top},\n error: ${null!==(s=null==t?void 0:t.message)&&void 0!==s?s:"Unknown error"}\n installation method: ${null===(r=null===window||void 0===window?void 0:window._svx)||void 0===r?void 0:r.installation}`)}const n=document.createElement("div");n.id=Cc,As(e)&&(n.className=`${Cc}-${e}`),document.body.appendChild(n),(0,Mt.render)((0,Mt.h)(Ec,{surveyComponent:t,surveyType:e}),n)}),Mc="Б",Ic={ar:"ب",be:Mc,bg:Mc,el:"Σ",he:"א",ja:"あ",ko:"가",ru:Mc,th:"ก",uk:Mc,zh:"字"},jc=({fontFamily:e,backgroundImageUrl:t,language:s})=>{const r={fontFamily:`'${e||bs}'`,height:"1px",left:"-9999px",overflow:"hidden",position:"absolute",top:"-9999px",visibility:"hidden",width:"1px"};t&&(r.backgroundImage=`url("${t}")`);const i=(e=>{var t;return e&&"string"==typeof e&&null!==(t=Ic[e.slice(0,2).toLowerCase()])&&void 0!==t?t:"A"})(s);return(0,Mt.h)("div",{"aria-hidden":"true",style:r},(0,Mt.h)("span",{style:{fontStyle:"normal",fontWeight:400}},i),(0,Mt.h)("span",{style:{fontStyle:"normal",fontWeight:600}},i),(0,Mt.h)("span",{style:{fontStyle:"italic",fontWeight:400}},i))},Rc=(e,t,s={})=>{const{waitForBackgroundImage:r=!0}=s,[i,o]=(0,It.J0)(!1);return(0,It.vJ)(()=>{var s,i,n;if(!t)return void o(!0);const a=fs(t)&&null!==(i=null===(s=document.fonts)||void 0===s?void 0:s.ready)&&void 0!==i?i:Promise.resolve(),c=r&&(null===(n=null==e?void 0:e.background_url)||void 0===n?void 0:n.trim()),l=c?(v=c,new Promise(e=>{const t=new Image,s=()=>{requestAnimationFrame(()=>{e()})};t.onload=s,t.onerror=()=>e(),t.src=v,t.complete&&t.naturalWidth&&s()})):Promise.resolve();var v;const _=new Promise(e=>{setTimeout(e,3e3)});Promise.race([Promise.all([a,l]),_]).then(()=>{requestAnimationFrame(()=>o(!0))})},[e,t,r]),i};const Lc=class{static watchTabs(e){const t=s=>{"Tab"!==s.key&&"Tab"!==s.code||(window.removeEventListener("keydown",t),e())};window.addEventListener("keydown",t)}};const Dc=(0,ac.N)(({surveyState:e})=>({overlay:e.survey&&e.isOverlayActive?e.survey.settings.overlay:null}),yc)(({overlay:e,hideOverlay:t})=>{if(!e)return null;const s={survicate_dark_Wdv2U:e===Fe.P8.dark,survicate_light_JL8G_:e===Fe.P8.light,survicate_overlay_stIWL:!0,sv__overlay:!0,"sv__overlay--dark":e===Fe.P8.dark,"sv__overlay--light":e===Fe.P8.light};return(0,Mt.h)("div",{className:(0,Un.A)(s),onClick:t,onKeyDown:t,role:"button",tabIndex:0})}),Fc=Dc;function zc(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,Mt.h)("svg",Object.assign({width:"10px",height:"7px",viewBox:"0 0 10 7",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},t),["\n ",(0,Mt.h)("title",{},["Path"]),"\n ",(0,Mt.h)("g",{id:"svg-CaretDownIcon-OdlnnTv",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},["\n ",(0,Mt.h)("g",{id:"svg-CaretDownIcon-1PxQxlW",transform:"translate(-5.000000, -7.000000)",fill:"#161616"},["\n ",(0,Mt.h)("polygon",{id:"svg-CaretDownIcon-3jY1JFX",points:"13.825 7.15833333 10 10.975 6.175 7.15833333 5 8.33333333 10 13.3333333 15 8.33333333"},[]),"\n "]),"\n "]),"\n"])}function qc(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,Mt.h)("svg",Object.assign({width:"22",height:"20",viewBox:"12 14 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n ",(0,Mt.h)("path",{d:"M23.9 34L28.45 22H30.55L35.1 34H33L31.925 30.95H27.075L26 34H23.9ZM16 31L14.6 29.6L19.65 24.55C19.0667 23.9667 18.5375 23.3 18.0625 22.55C17.5875 21.8 17.15 20.95 16.75 20H18.85C19.1833 20.65 19.5167 21.2167 19.85 21.7C20.1833 22.1833 20.5833 22.6667 21.05 23.15C21.6 22.6 22.1708 21.8292 22.7625 20.8375C23.3542 19.8458 23.8 18.9 24.1 18H13V16H20V14H22V16H29V18H26.1C25.75 19.2 25.225 20.4333 24.525 21.7C23.825 22.9667 23.1333 23.9333 22.45 24.6L24.85 27.05L24.1 29.1L21.05 25.975L16 31ZM27.7 29.2H31.3L29.5 24.1L27.7 29.2Z",fill:"currentColor"},[]),"\n"])}Object.defineProperty(zc,"name",{value:"default",configurable:!0}),Object.defineProperty(qc,"name",{value:"default",configurable:!0});const Uc=e=>e?e.charAt(0).toLocaleUpperCase()+e.slice(1):e,$c=e=>{var t;if(null==e||"string"!=typeof e)return"";const s=e.toLowerCase().split(/[-_]/),r=s[0],i=s[1];if(r.length<2)return e;try{const s=null!==(t=new Intl.DisplayNames([r],{type:"language"}).of(r))&&void 0!==t?t:e,o=Uc(s);if(i&&2===i.length){const e=new Intl.DisplayNames([r],{type:"region"}).of(i.toUpperCase());return`${o} (${e?Uc(e):i.toUpperCase()})`}return o}catch(t){return e}},Bc=({currentLanguage:e,defaultLanguage:t,languages:s,onLanguageChange:r,variant:i="compact"})=>{var o;const[n,a]=(0,It.J0)(!1),[c,l]=(0,It.J0)(0),v=(0,It.li)(null),_=(0,It.li)(null),u=(0,It.li)([]),d=null!==(o=null!=e?e:t)&&void 0!==o?o:null,p=d?Math.max(0,s.indexOf(d)):0,m=(0,It.hb)(e=>{r(e),a(!1)},[r]),h=(0,It.hb)(()=>{a(!1)},[]),b=(0,It.hb)(e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),a(e=>!e);break;case"Escape":e.preventDefault(),a(!1)}},[]),g=(0,It.hb)(e=>{var t,r;const i=s.length-1;switch(e.key){case"Escape":e.preventDefault(),h();break;case"Enter":case" ":e.preventDefault(),m(null!==(r=null!==(t=s[c])&&void 0!==t?t:d)&&void 0!==r?r:s[0]);break;case"ArrowDown":e.preventDefault(),l(e=>e>=i?0:e+1);break;case"ArrowUp":e.preventDefault(),l(e=>e<=0?i:e-1);break;case"Home":e.preventDefault(),l(0);break;case"End":e.preventDefault(),l(i)}},[s,c,d,m,h]);(0,It.vJ)(()=>{if(!n)return;const e=e=>{v.current&&!v.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[n]),(0,It.vJ)(()=>{if(!n)return;l(p);const e=u.current[p];e&&e.focus()},[n,p]);const f=(0,It.li)(!1);if((0,It.vJ)(()=>{var e;n?f.current=!0:f.current&&(f.current=!1,null===(e=_.current)||void 0===e||e.focus())},[n]),(0,It.vJ)(()=>{if(!n)return;const e=u.current[c];null==e||e.focus()},[n,c]),!s.length||!d)return null;const y="full"===i;return(0,Mt.h)("div",{className:(0,Un.A)({"sv__language-selector":!0,"sv__language-selector--full":y}),"data-testid":"language-selector",ref:v},(0,Mt.h)("button",{"aria-expanded":n,"aria-haspopup":"listbox","aria-label":"Select survey language",className:(0,Un.A)({"sv__language-selector__trigger":!0,"sv__language-selector__trigger--full":y}),onClick:()=>a(e=>!e),onKeyDown:b,ref:_,tabIndex:0,type:"button"},y?(0,Mt.h)("span",{className:"sv__language-selector__trigger-inner"},(0,Mt.h)("span",{className:"sv__language-selector__label"},$c(d)),(0,Mt.h)(zc,{"aria-hidden":"true",className:(0,Un.A)({"sv__language-selector__chevron":!0,"sv__language-selector__chevron--open":n})})):(0,Mt.h)(qc,{"aria-hidden":"true",className:"sv__language-selector__icon"})),n&&(0,Mt.h)("ul",{"aria-label":"Survey language options",className:"sv__language-selector__list",role:"listbox"},s.map((e,t)=>(0,Mt.h)("li",{"aria-selected":e===d,className:(0,Un.A)({"sv__language-selector__option":!0,"sv__language-selector__option--selected":e===d}),dir:ft(e)?"rtl":"ltr",key:e,onClick:()=>m(e),onKeyDown:g,ref:e=>{u.current[t]=e},role:"option",tabIndex:c===t?0:-1},$c(e)))))};var Vc=s(7402);const Hc=(0,Vc.RZ)(()=>Promise.resolve().then(s.bind(s,7585))),Wc=e=>{const[t]=(0,It.Md)();return t?null:(0,Mt.h)(Vc.tY,{fallback:null},(0,Mt.h)(Hc,Object.assign({},e)))},Kc=e=>{e.stopPropagation(),e.preventDefault()},Jc=(e,t)=>{e instanceof KeyboardEvent&&"Tab"!==e.key&&Kc(e),t()},Xc=[[">",">"],["<","<"],[""",'"'],["'","'"],["&","&"]],Gc=e=>{if(!(null==e?void 0:e.length))return"";let t=e;for(const[e,s]of Xc)t=t.replace(new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),s);return t};var Yc=s(1835);const Qc=(e,t,s={})=>{"Enter"!==e.key&&" "!==e.key||(s.preventDefault&&e.preventDefault(),s.stopPropagation&&e.stopPropagation(),t(e))},Zc=({sharedClasses:e,isDisabled:t,navigateBackward:s,backText:r})=>{const{isPage:i}=(0,It.NT)(jt.y),o=(0,Un.A)(Object.assign(Object.assign({},e),{"sv--background-button-opacity-10":i,"sv--background-main":!0,"sv--border-color-button":!0,"sv--color-button":!t,"sv--color-question":t,"sv__navigation-button":!0,"sv__navigation-button--back":!0})),n=(0,Un.A)({"sv--color-button":!t,"sv--color-question":t,"sv__navigation-button__arrow":!0}),a=(0,Un.A)({"sv--color-button":!t,"sv--color-question":t,"sv__navigation-button__text":!0});return(0,Mt.h)("button",{"aria-label":r,className:o,"data-testid":"back-button",disabled:t,id:"back-button",onClick:s,onKeyDown:e=>{"Tab"!==(null==e?void 0:e.key)&&s&&s()},tabIndex:0,title:"back",type:"button"},(0,Mt.h)("span",{className:n}),(0,Mt.h)("span",{className:a},r))},el=({navigateBackward:e})=>{const{isPage:t,surveyType:s}=(0,It.NT)(jt.y),r=oc(),i=Bn(),o=r.submitState.value,n=_e.bX.getStore(s).getState(),a=(0,Yc.A)(n.previewDevice),c=(0,It.hb)(e=>{Jc(e,()=>{e.target instanceof HTMLButtonElement&&e.target.blur(),i.handleSubmit()})},[i]),l=(0,It.hb)(e=>{Jc(e,()=>{"Tab"!==e.key&&Qc(e,()=>{i.handleSubmit()},{preventDefault:!0})})},[i]),v=o.type===Za.NotRendered,_=o.type===Za.Navigation,u=!v&&o.isHidden,d=(0,It.Kr)(()=>({"sv--border-top-color-question-20":!t,"sv__submit-button__wrapper":!0,"sv__submit-button__wrapper--navigation":_&&!t&&!a}),[_,t,a]),p=(0,It.Kr)(()=>({"sv-color-fs":!0,"sv__submit-button":!0,"sv__submit-button--hidden":u,"sv__submit-button--navigated":_&&a}),[u,_,a]),m=(0,It.Kr)(()=>Object.assign({"sv--background-button":!0,"sv-bg-bs":!0,"sv__navigation-button":_},p),[_,p]);if(v)return null;const h=Gc(o.submitText);return(0,Mt.h)("div",{className:(0,Un.A)(d)},_&&(0,Mt.h)(Zc,{backText:Gc(o.backText),isDisabled:!o.isBackEnabled,navigateBackward:e,sharedClasses:p}),(0,Mt.h)("button",{"aria-label":h,className:(0,Un.A)(m),"data-testid":"submit-button",disabled:!o.isSubmitEnabled,onClick:c,onKeyDown:l,tabIndex:0,type:"button"},h,(0,Mt.h)("span",{className:"sv__submit-button-next-arrow"})))};var tl=s(8762);const sl=e=>{var t;return!!(null!==(t=null==e?void 0:e.disclaimer)&&void 0!==t?t:null==e?void 0:e.disclaimer_settings)};function rl({languages:e,defaultLanguage:t,isPreview:s,surveyId:r,translations:i}){const o=s&&r?function(e,t){const s=null==e?void 0:e[t];return s?Object.keys(s):[]}(null!=i?i:null,r):[],n=(null==e?void 0:e.length)?e:o;return t?[t,...n.filter(e=>e.toLowerCase()!==t.toLowerCase())]:n}var il=s(8647),ol=s(2994);function nl(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,Mt.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"},t),["\n ",(0,Mt.h)("rect",{fill:"#29292A",opacity:"0.1",x:"0",y:"0",width:"40",height:"40",rx:"3"},[]),"\n ",(0,Mt.h)("g",{fill:"#29292A",opacity:"0.5"},["\n ",(0,Mt.h)("rect",{x:"11",y:"27",width:"18",height:"2"},[]),"\n "]),"\n"])}Object.defineProperty(nl,"name",{value:"default",configurable:!0});const al=({close:e,children:t,minimized:s})=>(0,Mt.h)("button",{"aria-label":(0,tl.B)(il.Q.CLOSE_SURVEY),className:(0,Un.A)({"sv-color-small-button-bw":!0,"sv__btn-close":!0,"sv__btn-close--minimized":!!s}),"data-testid":"close-button",onClick:e,onKeyDown:t=>Qc(t,e,{preventDefault:!0}),type:"button"},t),cl=({toggleMinimize:e,showBackground:t,children:s})=>{const r={"sv-color-small-button-bw":!0,"sv__btn-minimize":!0,"sv__btn-minimize--padded":t};return(0,Mt.h)("button",{"aria-label":(0,tl.B)(il.Q.MINIMIZE_SURVEY),className:(0,Un.A)(r),onClick:t=>{t.preventDefault(),t.stopPropagation(),e()},onKeyDown:t=>Qc(t,e,{preventDefault:!0}),title:"Minimize survey",type:"button"},s)},ll=e=>{const{close:t,showCloseBtn:s,showLanguageSelector:r,showMinimizeBtn:i,toggleMinimize:o}=e;if(!s&&!i)return null;return(0,Mt.h)("div",{className:(0,Un.A)({"survicate_survey-buttons_3ws-x":!0,"sv__bar-buttons":!0})},i&&(0,Mt.h)(cl,{showBackground:!s&&!r,toggleMinimize:o},(0,Mt.h)(nl,null)),s&&(0,Mt.h)(al,{close:t},(0,Mt.h)(ol.A,null)))},vl=(e,t)=>{const{translationLanguage:s,translations:r}=_e.bX.getStore(e).getState().surveyState;return(0,It.Kr)(()=>r&&s&&(null==t?void 0:t.id)?((e,t)=>{var s,r,i;const{translationLanguage:o,translations:n,survey:a}=_e.bX.getStore(e).getState().surveyState;return n&&o&&(null==a?void 0:a.id)&&(null===(i=null===(r=null===(s=n[a.id])||void 0===s?void 0:s[o])||void 0===r?void 0:r.points)||void 0===i?void 0:i[t.id])?Gn(t,n[a.id][o].points[t.id]):t})(e,t):t,[t,s,r,e])},_l=(e,t)=>{var s;return(null!==(s=_e.bX.getStore(t).getState().rootElement)&&void 0!==s?s:document).querySelector(e)};var ul=s(4397);const dl=ja(ul.t.empty);function pl(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,Mt.h)("svg",Object.assign({width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},t),["\n ",(0,Mt.h)("title",{},["Shape"]),"\n ",(0,Mt.h)("g",{id:"svg-checkbox-WVa6d7V",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},["\n ",(0,Mt.h)("g",{id:"svg-checkbox-21K9kaa",fill:"#161616","fill-rule":"nonzero"},["\n ",(0,Mt.h)("path",{fill:"currentColor",d:"M16,0 L2,0 C0.8954305,0 0,0.8954305 0,2 L0,16 C0,17.1045695 0.8954305,18 2,18 L16,18 C17.1045695,18 18,17.1045695 18,16 L18,2 C18,0.8954305 17.1045695,0 16,0 Z M7,14 L2,9 L3.41,7.59 L7,11.17 L14.59,3.58 L16,5 L7,14 Z",id:"svg-checkbox-YnjGPzk"},[]),"\n "]),"\n "]),"\n"])}var ml,hl;Object.defineProperty(pl,"name",{value:"default",configurable:!0}),function(e){e[e.bw=0]="bw",e[e.nestedInBw=1]="nestedInBw"}(ml||(ml={})),function(e){e[e.circle=0]="circle",e[e.square=1]="square"}(hl||(hl={}));const bl=e=>{const{display:t,colors:s,invalid:r,isSelected:i,testId:o,shouldSkipTab:n,label:a}=e,{isPage:c}=(0,It.NT)(jt.y),l=`${o}-${(0,It.Bi)()}`,v=t===hl.circle,_=!c&&v,[u,d]=(0,It.J0)(!1),p={"sv--background-answer":v&&i,"sv--border-color-answer":!0,"sv--color-answer":v,"sv-bg-bw":!c&&s===ml.bw,"sv-bg-main":v&&i,"sv-invalid":r||!1,"sv-nested-bg-bw":!c&&s!==ml.bw,sv__checkbox:!0,"sv__checkbox--focused":u,sv__circle:v,sv__selected:(c||_)&&i,sv__square:!v},m={"sv--color-answer":c,"sv-bg-fa":c||_,"sv-checkbox-tick-border-color":!0,sv__tick:!0},h={"aria-checked":i,"aria-label":a,checked:i,className:"sv__hide-input sv__input-checkbox",id:l,onBlur:()=>d(!1),onClick:t=>e.onClick(t),onFocus:()=>d(!0),onKeyDown:t=>Qc(t,()=>e.onKeyboardClick(t),{preventDefault:!0,stopPropagation:!0}),tabIndex:n?-1:0,type:"checkbox"};return(0,Mt.h)("div",{className:(0,Un.A)(p),"data-testid":o},(0,Mt.h)("input",Object.assign({role:v?"radio":"checkbox"},h)),(0,Mt.h)("label",{className:"checkbox-label",htmlFor:l},i&&(v?(0,Mt.h)("span",{className:(0,Un.A)(m),"data-testid":"tick"}):(0,Mt.h)(pl,null))))},gl=({content:e,className:t="",id:s,inline:r=!1,skipReader:i=!1})=>r?(0,Mt.h)("span",{"aria-hidden":i,className:t,dangerouslySetInnerHTML:{__html:e},id:s}):(0,Mt.h)("div",{"aria-hidden":i,className:t,dangerouslySetInnerHTML:{__html:e},id:s});class fl{static isSurveyUp(e){const{survey:t}=_e.bX.getStore(e).getState().surveyState;if(t)return t.presentation_style===Fe.Ao.topLeft||t.presentation_style===Fe.Ao.topRight;throw new Error("No survey, when looking at isSurveyUp.")}static isBackgroundLight(e){const{theme:t}=_e.bX.getStore(e).getState().surveyState;return!t||(e=>{const{R:t,G:s,B:r}=es(e);return 1-(t+s+r)/765})(t.color_scheme.bg_widget)<.6}static isSimpleTheme(e){return fl.themeType(e)===rs.simple}static isMicroTheme(e){return fl.themeType(e)===rs.micro}static isMobileTheme(e){return fl.themeType(e)===rs.mobile}static themeType(e){const{theme:t}=_e.bX.getStore(e).getState().surveyState;return t?t.type:null}}function yl(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,Mt.h)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",height:"14px",viewBox:"0 0 24 24",width:"14px",fill:"#ffffff"},t),[(0,Mt.h)("path",{d:"M0 0h24v24H0z",fill:"none"},[]),(0,Mt.h)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},[])])}Object.defineProperty(yl,"name",{value:"default",configurable:!0});const wl=({children:e,id:t,invalid:s,type:r})=>{const[i,o]=(0,It.J0)(""),[n,a]=(0,It.J0)(!1),c=(0,It.li)(null),{surveyType:l}=(0,It.NT)(jt.y),v=_e.bX.getStore(l).getState().surveyState.survey,_=v&&"PageSurvey"===v.type,u=fl.isMicroTheme(l),d=(0,tl.B)();let p="";switch(r){case"email":p=d[il.Q.VALID_EMAIL];break;case"date":p=d[il.Q.VALID_DATE];break;case"select":p=d[il.Q.SELECT]}return(0,It.vJ)(()=>{if(!s)return o(""),void a(!1);p!==i&&(o(p),a("select"!==r))},[s,r,i,p]),(0,It.vJ)(()=>{n&&s&&i&&c.current&&c.current.focus()},[n,s,i]),(0,Mt.h)(Mt.Fragment,null,e,(_||u)&&s&&i&&(0,Mt.h)("div",{className:"sv__validation",id:t,ref:c,role:"alert",tabIndex:-1},(0,Mt.h)(yl,{"aria-hidden":"true"}),(0,Mt.h)("span",{className:"sv__validation__message"},i)))},xl=({isConfirmed:e,isDisclaimer:t,isInvalid:s,setConfirmation:r,label:i})=>{const o={"sv--background-answer-opacity-10":!t,"sv--border-top-color-question-20":!!t,sv__confirmation:!0,"sv__confirmation--disclaimer":!!t,"sv__contact-form-field":!t},n=(0,It.hb)(e=>{e.stopPropagation(),r()},[r]);return(0,Mt.h)("div",{className:(0,Un.A)(o),onClick:n,onKeyDown:e=>{e.stopPropagation()},role:"button",tabIndex:-1},(0,Mt.h)(wl,{invalid:s,type:"confirmation"},(0,Mt.h)(bl,{colors:ml.nestedInBw,display:hl.square,invalid:s,isSelected:e,key:e?"checked":"unchecked",label:i,onClick:n,onKeyboardClick:r,testId:"confirmation-checkbox"}),(0,Mt.h)("div",{className:"sv__confirmation__agreement-label sv--color-answer sv-color-fw ","data-testid":"confirmation-label",onClick:n,onKeyDown:e=>{e.stopPropagation()},role:"button",tabIndex:-1},(0,Mt.h)(gl,{className:"sv__confirmation__content sv--color-answer",content:i}))))},Sl=[xt.buttonLink,xt.buttonClose],kl=[xt.thankYouMessage,xt.redirect,xt.social];const Al=({point:e,shouldHide:t=!1,isDisclaimerAccepted:s,setIsDisclaimerAccepted:r,isNarrow:i})=>{var o,n,a,c,l;const{surveyType:v,isPage:_}=(0,It.NT)(jt.y),u=vl(v,e),d=(0,It.Kr)(()=>null==u?void 0:u.settings,[u]),p=(0,It.Kr)(()=>{var t;return null===(t=null==e?void 0:e.settings)||void 0===t?void 0:t.disclaimer_settings},[e]),m=null!==(n=null===(o=null==e?void 0:e.settings)||void 0===o?void 0:o.consent)&&void 0!==n&&n,h=(0,Yc.A)(dl.value),b=(0,It.Kr)(()=>{var t,s,r;return function(e){const{isPage:t,isMobile:s,hideFooter:r,answerType:i,pointSettings:o,hasConsent:n}=e;if(!t||!s||r||i===xt.button)return!1;const a=i,c=o,l=sl(o),v=Sl.includes(a)&&!!(null==c?void 0:c.link),_=kl.includes(a)&&!n&&l;return v||_}({answerType:e.answer_type,hasConsent:m,hideFooter:null!==(r=null===(s=null===(t=_e.bX.getStore(v).getState().surveyState.survey)||void 0===t?void 0:t.settings)||void 0===s?void 0:s.hide_footer)&&void 0!==r&&r,isMobile:h,isPage:_,pointSettings:null==e?void 0:e.settings})},[v,_,null==e?void 0:e.answer_type,null==e?void 0:e.settings,m,h]),g=(0,It.Kr)(()=>{var e,t,s;return"object"==typeof d.disclaimer_settings||null===(null==d?void 0:d.disclaimer_settings)?d.disclaimer_settings:{checkbox_label:null!==(e=null==d?void 0:d.consent_text)&&void 0!==e?e:"",checkbox_required:null!=m&&m,checkbox_visible:null!=m&&m,description:null!==(t=null==d?void 0:d.disclaimer_text)&&void 0!==t?t:"",title:null!==(s=null==d?void 0:d.disclaimer_title)&&void 0!==s?s:""}},[d,m]),f=null!==(c=null!==(a=null==p?void 0:p.checkbox_visible)&&void 0!==a?a:m)&&void 0!==c&&c,y=(0,Un.A)({"sv--border-top-color-question-20":!_,sv__disclaimer:!0,"sv__disclaimer--hidden":t,"sv__disclaimer--narrow":!!i,"sv__disclaimer--with-checkbox":f}),w=(0,Un.A)({"sv--border-top-color-question-20":!0,"sv--color-answer":!0,sv__disclaimer__body:!0,"sv__disclaimer__body-moved-up":b}),x=(null==g?void 0:g.title)||(null==p?void 0:p.title)||"",S=(null==g?void 0:g.description)||(null==p?void 0:p.description)||"",k=(null==g?void 0:g.checkbox_label)||(null==p?void 0:p.checkbox_label)||"",A=f||m,T=(null===(l=u.settings)||void 0===l?void 0:l.consent_text)||"",O=(0,Mt.h)("aside",{"aria-live":"polite",className:y},A&&(0,Mt.h)(xl,{isConfirmed:s,isDisclaimer:!0,isInvalid:!1,label:k||T,setConfirmation:()=>r(!s)}),(x||S)&&(0,Mt.h)("div",{className:w},x&&(0,Mt.h)("h2",{className:"sv__disclaimer__title sv--color-answer"},x),S&&(0,Mt.h)(gl,{className:"sv__disclaimer__text sv--color-answer",content:S}))),[E,P]=(0,It.J0)(null);return(0,It.vJ)(()=>{const t=_l(`#survey-disclaimer-container-${e.id}`,v);P(t)},[e.id,h,v]),_&&!h?O:E?(0,Vc.d5)(O,E):null},Tl=e=>{if(!(null==e?void 0:e.key)||"string"!=typeof e.key)return;e.key.match(/(^[\d+-]*$)|(Backspace|Tab|Delete|ArrowLeft|ArrowRight)/)||e.preventDefault()},Ol=t=>{const s=(0,It.li)(null),{label:r,required:i,value:o,invalid:n,titleId:a,type:c,placeholder:l}=t,{surveyType:v}=(0,It.NT)(jt.y),_=`${r}${i?"*":""}`,u=_e.bX.getStore(v).getState().surveyState.survey,d=u&&"PageSurvey"===u.type,p=fl.isMicroTheme(v),m=(0,It.Kr)(()=>(0,e.A)(),[]),h=u&&"MobileSurvey"===u.type,b={"sv__contact-form-field":!0,"sv__contact-form-field-filled":!!o,sv__dark:!h&&fl.isBackgroundLight(v),sv__invalid:!!n,[`sv__contact-form-${t.type}`]:!0,sv__light:!h&&!fl.isBackgroundLight(v)};return(0,Mt.h)("div",{className:(0,Un.A)(b)},(0,Mt.h)("label",{className:"sv__contact-form-field-label sv--color-answer",htmlFor:m,id:`${m}-label`},_),(0,Mt.h)(wl,{id:`${m}-error`,invalid:n,type:c},(0,Mt.h)("input",Object.assign({"aria-describedby":n?`${m}-error`:void 0,"aria-invalid":!!n,"aria-labelledby":a?`${a} ${m}-label`:void 0,className:"sv-nested-bg-bw sv-nested-bg-hover-bw sv-color-fw\n sv__input sv--color-answer sv--background-answer-opacity-10","data-testid":r,id:m,ref:s,type:"text"},"phone"===c&&{onKeyDown:Tl},{onBlur:e=>{t.onBlur&&e.target instanceof HTMLInputElement&&t.onBlur&&t.onBlur(e.target.value)},onInput:e=>{e.target instanceof HTMLInputElement&&t.onInput&&t.onInput(e.target.value)},placeholder:p?"":l||(d?"":_),value:o}))))},El=(e,t)=>{switch(t.type){case"setInvalid":return Object.assign(Object.assign({},e),{invalid:t.payload});case"setValues":return Object.assign(Object.assign({},e),{values:t.payload});case"setIsDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload})}};class Pl{static reduceAnswers(e){return e.reduce((e,t)=>`${e}${t.possible_answer}${t.add_comment}${t.next_survey_point_id}`,"")}static reduceContactForm(e){const t=e.fields.reduce((e,t)=>`${e}${t.label}${t.required}`,"");let s;if(e.settings){const{consent:t,consent_text:r}=e.settings;s=t?r:""}return`${t}${s}`}static reorderContactFormValues(e,t,s){return t.map(t=>{const r=s.findIndex(e=>e.id===t.id);return-1!==r?e[r]:""})}}const Cl=({disclaimer:e,disclaimer_settings:t,isDisclaimerAccepted:s})=>(0,It.Kr)(()=>{var r;const i=!!e||!!t||!1,o=null!==(r=null==t?void 0:t.checkbox_visible)&&void 0!==r&&r;return{isRequiredDisclaimerNotAccepted:o&&!!(null==t?void 0:t.checkbox_required)&&!s,showCheckbox:o,showDisclaimer:i}},[e,t,s]);let Nl=0;const Ml=({selectedAnswer:e,isMandatory:t,submit:s,aid:r,mandatorySubmitButton:i=!1,screenshotEnabled:o=!1,isPage:n=!1,showCheckbox:a=!1,alwaysRender:c=!1,mandatoryComment:l=!1,comment:v="",isRequiredDisclaimerNotAccepted:_=!1,customCanSubmit:u,neverRender:d=!1,submitButtonText:p})=>{const m=Bn(),[h]=(0,It.J0)(()=>"submit-"+ ++Nl),b=(0,It.li)(s);(0,It.vJ)(()=>{b.current=s},[s]);const g=(0,It.li)({canSubmit:!1,isInitialized:!1,shouldRender:!1,submitButtonText:void 0}),f=(({selectedAnswer:e,aid:t,mandatorySubmitButton:s=!1,screenshotEnabled:r=!1,isMandatory:i,isPage:o=!1,showCheckbox:n=!1,alwaysRender:a=!1,neverRender:c=!1})=>!c&&(a||!!e||!!t||s||r||!i&&!o||n))({aid:r,alwaysRender:c,isMandatory:t,isPage:n,mandatorySubmitButton:i,neverRender:d,screenshotEnabled:o,selectedAnswer:e,showCheckbox:a}),y=(({selectedAnswer:e,isMandatory:t,mandatoryComment:s=!1,comment:r="",isRequiredDisclaimerNotAccepted:i=!1,customCanSubmit:o})=>{const n=!(!e&&t||s&&(null==e?void 0:e.add_comment)&&!r||i);return(void 0===o||o)&&n})({comment:v,customCanSubmit:u,isMandatory:t,isRequiredDisclaimerNotAccepted:_,mandatoryComment:l,selectedAnswer:e});(0,It.vJ)(()=>{const e=g.current,t=e.shouldRender!==f||e.canSubmit!==y||e.submitButtonText!==p;(!e.isInitialized||t)&&(m.updatePointConfig(h,Object.assign({canSubmit:y,shouldRender:f},void 0!==p&&{submitButtonText:p}),()=>{var e,t;return null!==(t=null===(e=b.current)||void 0===e?void 0:e.call(b))&&void 0!==t?t:null}),g.current={canSubmit:y,isInitialized:!0,shouldRender:f,submitButtonText:p})},[f,y,m,p,h]),(0,It.vJ)(()=>()=>m.removePoint(h),[m,h])},Il=(e,t,s)=>{const r=t?_l(t,e):window;if(!r||"function"!=typeof r.scrollTo)return;let i=0;s&&(r instanceof HTMLElement&&(i=r.scrollHeight),r===window&&(i=document.documentElement.scrollHeight)),r.scrollTo(0,i)},jl=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Rl=e=>{var t,s,r;const{surveyType:i}=(0,It.NT)(jt.y),o=Bn(),n=(0,It.li)(null),{answer:a,children:c,point:l,titleId:v,value:_}=e,{settings:{disclaimer_settings:u,disclaimer:d}}=l,p=()=>({values:m.map(()=>!1)}),m=[...l.fields].filter(({field_type:e})=>e!==vo.confirmation&&e!==vo.security_info).sort(Vi("order_number").ascending),h={fields:m,invalid:p(),isDisclaimerAccepted:null!==(t=null==_?void 0:_.disclaimer_accepted)&&void 0!==t&&t,pointId:l.id,reducedState:Pl.reduceContactForm(l),values:(null==_?void 0:_.answer)||m.map(()=>"")},[b,g]=(0,It.WO)(El,h);(0,It.vJ)(()=>{g({payload:p(),type:"setInvalid"})},[l]);const{values:f,invalid:y,isDisclaimerAccepted:w}=b,x=null!==(r=null===(s=l.settings)||void 0===s?void 0:s.consent)&&void 0!==r&&r,{showDisclaimer:S,showCheckbox:k,isRequiredDisclaimerNotAccepted:A}=Cl({disclaimer:d,disclaimer_settings:u,isDisclaimerAccepted:w}),T=(e,t)=>{const s=[...f];s[t]=e;const r=[...y.values];r[t]=!1,g({payload:Object.assign(Object.assign({},y),{values:r}),type:"setInvalid"}),g({payload:s,type:"setValues"})},O=(e,t)=>{const s=e.trim();T(s,t),((e,t)=>{const s=[...y.values];s[t]=!1,m[t].field_type!==vo.email&&m[t].required&&!e&&(s[t]=!0),m[t].field_type===vo.email&&e&&!jl.test(e)&&(s[t]=!0),g({payload:Object.assign(Object.assign({},y),{values:s}),type:"setInvalid"})})(s,t)},E=m.length&&m.some((e,t)=>e.required&&!f[t]);return Ml({alwaysRender:!0,customCanSubmit:!(E||x&&!w),isMandatory:!1,isRequiredDisclaimerNotAccepted:A,selectedAnswer:null,submit:()=>{if(!(()=>{const e=p();let t=!0;return m.forEach((s,r)=>{const i=f[r];s.required&&!i&&(e.values[r]=!0,t=!1),s.field_type===vo.email&&i&&!jl.test(i)&&(e.values[r]=!0,t=!1)}),g({payload:e,type:"setInvalid"}),t})())return o.skipClearState(),setTimeout(()=>{var e,t;const s=null!==(t=null===(e=n.current)||void 0===e?void 0:e.querySelector(".sv__invalid input"))&&void 0!==t?t:null;s&&(s.focus(),Il(i))},0),null;const e={anonymizedTextResponse:"",answers:m.map((e,t)=>({answer_type:e.field_type,content:f[t],field_id:e.id,nextSurveyPointId:l.settings.next_survey_point_id,user_tag:l.settings.user_tag})),textResponse:"",value:Object.assign({answer:f},k||x?{disclaimer_accepted:w}:{})};return a(e),e}}),(0,Mt.h)("div",{className:"sv__contact-form",ref:n},(0,Mt.h)("div",{className:"sv__scroll-container"},c,m.map((e,t)=>(0,Mt.h)(Ol,{invalid:y.values[t],key:e.id,label:e.label,onBlur:e=>O(e,t),onInput:e=>T(e,t),required:e.required,titleId:v,type:e.field_type,value:f[t]}))),(S||x)&&(0,Mt.h)(Al,{isDisclaimerAccepted:w,point:l,setIsDisclaimerAccepted:()=>g({payload:!w,type:"setIsDisclaimerAccepted"})}))},Ll=(e,t)=>{const s=Gc(e);t?window.open(s,"_blank"):window.location.href=s},Dl=({point:e,answer:t,close:s,children:r,value:i})=>{var o,n;const{isPreview:a,surveyType:c,isPage:l}=(0,It.NT)(jt.y),v=null===(o=vl(c,e))||void 0===o?void 0:o.settings,[_,u]=(0,It.J0)(null!==(n=null==i?void 0:i.disclaimer_accepted)&&void 0!==n&&n),{settings:{disclaimer:d,disclaimer_settings:p}}=e,{showDisclaimer:m,showCheckbox:h,isRequiredDisclaimerNotAccepted:b}=Cl({disclaimer:d,disclaimer_settings:p,isDisclaimerAccepted:_});return Ml({alwaysRender:!0,isMandatory:!1,isPage:l,isRequiredDisclaimerNotAccepted:b,submit:()=>{if(e.answer_type===xt.buttonClose&&"function"==typeof s)return s(),null;const r=Tt(Object.assign({point:e},h?{disclaimer_accepted:_}:{}));t(r);const i=v,{link:o,open_new_card:n}=i;return o&&(a&&n||!a)&&Ll(o,n),r},selectedAnswer:void 0,submitButtonText:(null==v?void 0:v.text)||void 0}),(0,Mt.h)("div",{className:"sv__cta","data-testid":"button-next"},r&&(0,Mt.h)("div",{className:"sv__scroll-container"},r),m&&(0,Mt.h)(Al,{isDisclaimerAccepted:_,point:e,setIsDisclaimerAccepted:u}))};var Fl;!function(e){e.FB="facebook",e.LI="linkedin",e.TW="twitter"}(Fl||(Fl={}));const zl=({facebook_link:e,linkedin_link:t,twitter_link:s})=>[{height:20,href:e,name:Fl.FB,svgPath:"m6.49,20l0,-9.12l2.95,0l0.44,-3.56l-3.39,0l0,-2.27a1.45,1.45 0 0 1 1.7,-1.73l1.81,0l0,-3.18a23.39,23.39 0 0 0 -2.64,-0.14c-2.61,0 -4.4,1.66 -4.4,4.7l0,2.62l-3,0l0,3.56l3,0l0,9.12l3.54,0l-0.01,0z",width:20},{height:15,href:s,name:Fl.TW,svgPath:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",viewBox:"0 0 1200 1227",width:17},{height:21,href:t,name:Fl.LI,svgPath:"M1.06284545,7.43996625 L5.21369002,7.43996625 L5.21369002,20.793119 L1.06284545,20.793119 L1.06284545,7.43996625 Z M3.13521243,0.793994886 C4.45946716,0.793994886 5.53580603,1.87221749 5.53580603,3.19878807 C5.53580603,4.52535865 4.45946716,5.60620323 3.13608537,5.60620323 C1.80988051,5.60331939 0.735360446,4.52731106 0.732,3.19878807 C0.732,2.56054285 0.985278036,1.94847675 1.43604323,1.49741533 C1.88680842,1.0463539 2.4980818,0.793300051 3.13521243,0.793994886 M7.80545816,7.43996625 L11.7790953,7.43996625 L11.7790953,9.26498457 L11.8340907,9.26498457 C12.3875366,8.2156209 13.7388526,7.10854222 15.7623348,7.10854222 C19.9576994,7.10854222 20.732,9.87448997 20.732,13.469435 L20.732,20.7939935 L16.5916307,20.7939935 L16.5916307,14.2984323 C16.5916307,12.7506209 16.5636966,10.7568299 14.438953,10.7568299 C12.2827835,10.7568299 11.9510651,12.4445565 11.9510651,14.1847513 L11.9510651,20.7904956 L7.81156877,20.7904956 L7.81156877,7.43734284 L7.80545816,7.43996625 Z",width:21}],ql=({answer:e,disabled:t,height:s,href:r,name:i,svgPath:o,viewBox:n,width:a})=>(0,Mt.h)("a",{className:`sv__${i} sv__social-button ${t?"sv__social-button--disabled":""}`,"data-testid":`social-${i}`,href:r,onClick:e,onKeyDown:t=>Qc(t,e,{preventDefault:!0}),rel:"noopener noreferrer",target:"_blank",title:`Go to ${i===Fl.TW?"X, former ":""}${i}`},(0,Mt.h)("svg",{height:s,viewBox:n,width:a,xmlns:"http://www.w3.org/2000/svg"},(0,Mt.h)("path",{d:o})),i===Fl.FB?"LIKE":"FOLLOW"),Ul=({point:e,answer:t,children:s})=>{const r=Bn(),{user_tag:i,facebook_link:o,twitter_link:n,linkedin_link:a,disclaimer:c,disclaimer_settings:l}=e.settings,[v,_]=(0,It.J0)(!1),{showDisclaimer:u,showCheckbox:d,isRequiredDisclaimerNotAccepted:p}=Cl({disclaimer:c,disclaimer_settings:l,isDisclaimerAccepted:v}),m=Object.assign({anonymizedTextResponse:"",answers:[{nextSurveyPointId:-1,user_tag:i}],textResponse:""},d&&{value:{disclaimer_accepted:v}}),h=(0,It.Kr)(()=>zl({facebook_link:o,linkedin_link:a,twitter_link:n}),[o,n,a]);return(0,It.vJ)(()=>{r.clearSubmitButtonState()},[r]),(0,Mt.h)("div",{className:"sv__social"},s&&(0,Mt.h)("div",{className:"sv__scroll-container"},s),h.map(({height:e,href:s,name:r,svgPath:i,viewBox:o,width:n})=>s&&(0,Mt.h)(ql,{answer:()=>t(m),disabled:p,height:e,href:s,key:`social-${r}`,name:r,svgPath:i,viewBox:o,width:n})),u&&(0,Mt.h)(Al,{isDisclaimerAccepted:v,point:e,setIsDisclaimerAccepted:_}))},$l=(0,ac.N)(({isPreview:e})=>({isPreview:e}),yc)(({point:e,answer:t,children:s,isPreview:r})=>{const i=e.answer_type===xt.redirect,{timeout_display_count:o,user_tag:n,link:a,open_new_card:c}=e.settings,[l,v]=(0,It.J0)(!1),[_,u]=(0,It.J0)(!1),{settings:{disclaimer:d,disclaimer_settings:p}}=e,{showDisclaimer:m,showCheckbox:h,isRequiredDisclaimerNotAccepted:b}=Cl({disclaimer:d,disclaimer_settings:p,isDisclaimerAccepted:l}),g=(0,It.hb)(()=>{const e=parseInt(o||"0",10);setTimeout(()=>{r||Ll(a,c)},1e3*e)},[o,r,a,c]),f=(0,It.hb)(()=>{if(b)return null;const e=Object.assign({anonymizedTextResponse:"",answers:[{nextSurveyPointId:-1,user_tag:n}],textResponse:""},h&&{value:{disclaimer_accepted:l}});return t(e),i&&g(),e},[b,h,l,i,t,g,n]);return Ml({alwaysRender:h,customCanSubmit:!b,isMandatory:!1,isRequiredDisclaimerNotAccepted:b,neverRender:!h,submit:f,selectedAnswer:void 0,showCheckbox:h}),(0,It.vJ)(()=>{if(!_&&!b)return i&&!m?(u(!0),void f()):void(h||(u(!0),f()))},[_,b,i,m,h,f]),(0,Mt.h)("div",{className:"sv__cta"+(i?"-redirect":""),"data-testid":i?"redirect-cta":"thank-you-cta"},s&&(0,Mt.h)("div",{className:"sv__scroll-container"},s),m&&(0,Mt.h)(Al,{isDisclaimerAccepted:l,point:e,setIsDisclaimerAccepted:v}))}),Bl=({ref:e,shouldScroll:t,options:s={behavior:"smooth",block:"center"}})=>{(0,It.vJ)(()=>{t&&e.current&&e.current.scrollIntoView(s)},[t,e,s])},Vl=({text:e,shouldShow:t})=>t&&e?(0,Mt.h)("p",{className:"sv__answer-hint sv--color-answer","data-testid":"answer-hint"},e):null,Hl=e=>{const{answer:t,content:s,indexes:{current:r,last:i}}=e,{lowestValueText:o,highestValueText:n}=s||{};return`${t}${o&&0===r?` - ${o}`:n&&r===i?` - ${n}`:""}`},Wl=(e,t)=>{(0,It.vJ)(()=>{t&&e.current&&e.current.focus()},[t,e])},Kl=(e,t=0)=>{e.style.height="5px",e.style.height=`${Math.max(t,e.scrollHeight)}px`},Jl=(0,Vc.Rf)((e,t)=>{const{isPage:s}=(0,It.NT)(jt.y),{textPlaceholder:r,commentFieldLabel:i,setComment:o,value:n,shouldFocus:a=!0,mandatoryComment:c=!1}=e,l=(0,It.li)(null),v=(0,tl.B)();Wl(l,a);const _={"sv--background-answer-opacity-10":!s,"sv--border-color-answer":!s,"sv__comment-field":!0};return(0,Mt.h)("div",{className:(0,Un.A)(_),"data-testid":"comment-field"},(0,Mt.h)("label",{className:(0,Un.A)({"sv--color-answer":!0,"sv__comment-field__label":!0}),htmlFor:i,ref:t},(0,Mt.h)(gl,{className:"sv--color-answer",content:i,inline:!0})),(0,Mt.h)("textarea",{"aria-label":`${v[il.Q.COMMENT_ANSWER]}${c?` ${v[il.Q.COMMENT_REQUIRED]}`:""}`,className:(0,Un.A)({"sv--background-answer-opacity-10":!0,"sv--color-answer":!0,sv__textarea:!0}),"data-gramm_editor":"false","data-testid":"text-area",id:i,onInput:e=>{(e=>{e.preventDefault();let t="";e.target instanceof HTMLTextAreaElement&&(Kl(e.target,0),t=e.target.value),o(t)})(e)},placeholder:r,ref:l,value:null!=n?n:""}))}),Xl=({point:e,answer:t,value:s,children:r,previewDevice:i,navigationEnabled:o,answerRequiredText:n,textPlaceholder:a,titleId:c})=>{var l,v;const{surveyType:_,isPage:u}=(0,It.NT)(jt.y),{pointsDisplayed:d,isRTLLanguage:p}=_e.bX.getStore(_).getState().surveyState,{add_comment:m,answers_layout:h=R.default,comment_label:b,mandatory:g,text_on_the_left:f,mandatory_submit_button:y,text_on_the_right:w,mandatory_comment:x,disclaimer:S,disclaimer_settings:k}=e.settings,A=Se.params.aid||void 0,T=1===d.length,O=T?A:void 0,E=(null==s?void 0:s.answer)||0===(null==s?void 0:s.answer)?String(s.answer):O,P=(0,Yc.A)(i),C=[0,1,2,3,4,5,6,7,8,9,10],N=P&&h===R.default,M={left:`0 - ${f}`,right:`10 - ${w}`};p&&(M.left=`${f} - 0`,M.right=`${w} - 10`);const I=(0,It.li)(null),[j,L]=(0,It.J0)(E),[D,F]=(0,It.J0)(null!==(l=null==s?void 0:s.comment)&&void 0!==l?l:""),[z,q]=(0,It.J0)(null!==(v=null==s?void 0:s.disclaimer_accepted)&&void 0!==v&&v),{showDisclaimer:U,showCheckbox:$,isRequiredDisclaimerNotAccepted:B}=Cl({disclaimer:S,disclaimer_settings:k,isDisclaimerAccepted:z}),V=m&&!!j,H=s=>{j||m||y||o&&!T||!g||$||B?L(String(s)):t(Ot({comment:D,point:e,value:{answer:s,comment:D}}))},W={sv__nps:!0,"sv__nps--horizontal":!u&&P&&h===R.horizontal,"sv__nps--vertical":N,"sv__nps-wrapper":!0,"sv__nps-wrapper--mobile":N},K={sv__buttons:!0,"sv__buttons--vertical":N},J=e=>{const t=e===Number(j),s={"sv--background-answer-opacity-10":!0,"sv--color-answer":!0,"sv-bg-hov-ba":!0,"sv-color-fa":!0,"sv-color-main":t,sv__button:!0,"sv__button--selected":t,"sv__nps--selected":t,"sv__nps-button":!0};return(0,Un.A)(s)},X=(0,It.Kr)(()=>j?{add_comment:m}:void 0,[j,m]);return Ml({aid:A,alwaysRender:!!o&&!T,comment:D,isMandatory:g,isPage:u,isRequiredDisclaimerNotAccepted:B,mandatoryComment:x,mandatorySubmitButton:y,selectedAnswer:X,showCheckbox:$,submit:()=>{if(j){const s=Ot({comment:D,point:e,value:Object.assign({answer:Number(j),comment:D},$&&{disclaimer_accepted:z})});return t(s),s}return g?null:Et(t)}}),Bl({ref:I,shouldScroll:V}),(0,Mt.h)("div",{className:(0,Un.A)(W)},(0,Mt.h)("div",{className:"sv__scroll-container"},r,(0,Mt.h)(Vl,{shouldShow:g,text:n}),(0,Mt.h)("div",{"aria-labelledby":c,className:(0,Un.A)(K),role:"radiogroup"},C.map((e,t)=>{const s={current:t,last:C.length-1};return(0,Mt.h)("button",{"aria-label":`${e}`,"aria-pressed":e===Number(j),className:J(e),"data-testid":`button-label-${e}`,"data-value":e,key:e,onClick:t=>{t.stopPropagation(),H(e)},onKeyDown:t=>Qc(t,()=>H(e),{preventDefault:!0}),type:"button"},(0,Mt.h)(Hl,Object.assign({},N&&{content:{highestValueText:w,lowestValueText:f}},{answer:e,indexes:s})))})),!N&&(0,Mt.h)("div",{className:(0,Un.A)({"sv-color-fw":!0,sv__labels:!0,"sv__nps-labels":!0}),"data-testid":"nps-labels"},f&&(0,Mt.h)("div",{className:"sv__label sv__label--left sv--color-answer"},M.left),w&&(0,Mt.h)("div",{className:"sv__label sv__label--right sv--color-answer"},M.right))),V&&(0,Mt.h)(Jl,{commentFieldLabel:b||"",mandatoryComment:x,ref:I,setComment:e=>{F(e)},textPlaceholder:a,value:D}),U&&(0,Mt.h)(Al,{isDisclaimerAccepted:z,point:e,setIsDisclaimerAccepted:()=>q(!z)}))},Gl=e=>{const{answer:t,answerRequiredText:s,comment:r,display:i,isSelected:o,mandatoryComment:n,select:a,textPlaceholder:c,updateComment:l,dataTestid:v,shouldSkipTab:_,hideCommentField:u}=e,{isPage:d,surveyType:p}=(0,It.NT)(jt.y),m=(0,Mt.createRef)(),h=(0,tl.B)(),b=e=>{e.currentTarget instanceof HTMLDivElement&&(e.currentTarget.blur(),e.stopPropagation()),a()},g=e=>{e.preventDefault();let t="";if(e.target instanceof HTMLTextAreaElement){const s=d||y?0:44;Kl(e.target,s),t=e.target.value}l&&l(t)};(0,It.vJ)(()=>{o&&(null==m?void 0:m.current)&&m.current.focus()},[o]);const f=o&&t.add_comment&&!u,y=fl.isMicroTheme(p),w={"sv--background-answer-opacity-10":!0,"sv--border-color-answer":o,"sv--color-answer":!0,"sv-bg-ba":!0,"sv-bg-shaded-ba":o,"sv-color-fa":!0,"sv__choice-button":!0,"sv__choice-button--selected":o,"sv__choice-button--selected--expanded":y&&!!f,sv__selected:d&&o},x={"sv--color-answer":!0,"sv-color-fa":!0,"sv-color-main":d&&e.isSelected,"sv__answer-text":y},S={"sv__textarea-wrapper":!0,"sv__textarea-wrapper--narrower":!!n&&!!f&&!!s},k=d||y?"sv__textarea sv-border-color-main sv--color-answer sv--background-answer-opacity-10":"sv-bg-bw sv-color-fw sv-border-top-ba";return(0,Mt.h)("div",{className:"sv__choice-button-wrapper"},(0,Mt.h)("div",{className:(0,Un.A)(w),"data-testid":null!=v?v:"choice-button",onClick:e=>b(e),tabIndex:-1},d||y?(0,Mt.h)(Mt.Fragment,null,(0,Mt.h)("div",{className:"sv__choice-button-question"},(0,Mt.h)(bl,{colors:ml.bw,display:i,isSelected:o,label:t.possible_answer,onClick:e=>b(e),onKeyboardClick:()=>a(),shouldSkipTab:_,testId:`checkbox-${t.id}`}),(0,Mt.h)(gl,{className:(0,Un.A)(x),content:t.possible_answer,skipReader:!0})),f&&(0,Mt.h)("div",{className:(0,Un.A)(S)},(0,Mt.h)(Vl,{shouldShow:f,text:s||""}),(0,Mt.h)("textarea",{"aria-label":`${h[il.Q.COMMENT_ANSWER]}\n ${n?h[il.Q.COMMENT_REQUIRED]:""}`,className:k,"data-gramm_editor":"false","data-testid":`comment-field-${t.id}`,name:"comment",onClick:e=>e.stopPropagation(),onInput:e=>{g(e)},onKeyDown:e=>e.stopPropagation(),placeholder:c,ref:m,title:"comment",value:r}))):(0,Mt.h)(Mt.Fragment,null,(0,Mt.h)(bl,{colors:ml.bw,display:i,isSelected:o,label:t.possible_answer,onClick:e=>b(e),onKeyboardClick:()=>a(),testId:`checkbox-${t.id}`}),(0,Mt.h)("div",null,(0,Mt.h)(gl,{className:(0,Un.A)(x),content:t.possible_answer,skipReader:!0}),f&&(0,Mt.h)(Mt.Fragment,null,(0,Mt.h)(Vl,{shouldShow:!!n,text:s||""}),(0,Mt.h)("textarea",{"aria-label":h[il.Q.COMMENT_ANSWER],className:k,"data-gramm_editor":"false","data-testid":`comment-field-${t.id}`,name:"comment",onClick:e=>e.stopPropagation(),onInput:e=>{g(e)},onKeyDown:e=>e.stopPropagation(),placeholder:c,ref:m,title:"comment",value:r}))))))},Yl=e=>{const t=e.slice(0);for(let s=e.length-1;s>0;s-=1){const e=Math.floor(Math.random()*(s+1));[t[s],t[e]]=[t[e],t[s]]}return t},Ql=e=>{const t=e.answers,{randomize_answers:s,randomize_except_last:r}=e.settings;return Zl(t,s,r)},Zl=(e,t,s)=>t?s?[...Yl(e.slice(0,-1)),e[e.length-1]]:Yl(e):e,ev=(e,t)=>{switch(t.type){case"setAnswers":return Object.assign(Object.assign({},e),{answers:t.payload});case"setComments":return Object.assign(Object.assign({},e),{comments:t.payload});case"setPointId":return Object.assign(Object.assign({},e),{pointId:t.payload});case"setReducedAnswers":return Object.assign(Object.assign({},e),{reducedAnswers:t.payload});case"setSelectedAnswer":return Object.assign(Object.assign({},e),{selectedAnswer:t.payload});case"setSelectedAnswers":return Object.assign(Object.assign({},e),{selectedAnswers:t.payload});case"setIsDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload})}},tv=(e,t,s)=>e&&t.some(e=>e.add_comment&&!s[e.id]),sv=(e,t)=>{const s={};e.answers.forEach(e=>{var r,i;e.add_comment&&(s[e.id]=null!==(i=null===(r=null==t?void 0:t.comments)||void 0===r?void 0:r[e.id])&&void 0!==i?i:"")});const r=t,i=null==r?void 0:r.comment;return r&&i&&(s[r.answer.id]=i),s},rv=e=>{var t,s;const{point:r,value:i,answerRequiredText:o,textPlaceholder:n,titleId:a}=e,{mandatory_comment:c,next_survey_point_id:l,randomize_answers:v,randomize_except_last:_,comment_label:u,choice:d,disclaimer:p,disclaimer_settings:m}=r.settings,h=null===(t=r.settings.mandatory)||void 0===t||t,b={answers:Ql(r),comments:sv(r,i),isDisclaimerAccepted:null!==(s=null==i?void 0:i.disclaimer_accepted)&&void 0!==s&&s,pointId:r.id,reducedAnswers:Pl.reduceAnswers(Ql(r)),selectedAnswers:(null==i?void 0:i.answers)||[]},[g,f]=(0,It.WO)(ev,b),{isDisclaimerAccepted:y}=g,{showDisclaimer:w,showCheckbox:x,isRequiredDisclaimerNotAccepted:S}=Cl({disclaimer:p,disclaimer_settings:m,isDisclaimerAccepted:g.isDisclaimerAccepted}),k=g.selectedAnswers.reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:g.comments[t.id]||""}),{}),A=(0,It.Kr)(()=>tv(null!=c&&c,g.selectedAnswers,g.comments),[c,g.selectedAnswers,g.comments]);(0,It.vJ)(()=>{g.reducedAnswers!==Pl.reduceAnswers(r.answers)&&(f({payload:r.answers,type:"setAnswers"}),f({payload:Pl.reduceAnswers(r.answers),type:"setReducedAnswers"}))},[r.answers]),(0,It.vJ)(()=>{const e=g.answers.filter(e=>g.selectedAnswers.find(t=>e.id===t.id));f({payload:e,type:"setSelectedAnswers"})},[g.answers]),(0,It.vJ)(()=>{f({payload:Ql(r),type:"setAnswers"})},[v,_,r.id]);const T=(null==d?void 0:d.min)||1,O=(null==d?void 0:d.max)||0,E=T<=g.selectedAnswers.length&&(!O||O>=g.selectedAnswers.length),P=g.selectedAnswers.length?Object.assign(Object.assign({},g.selectedAnswers[0]),{add_comment:g.selectedAnswers.some(e=>e.add_comment)}):null;Ml({alwaysRender:!0,comment:A?void 0:"comment",customCanSubmit:!h||E,isMandatory:h,isRequiredDisclaimerNotAccepted:S,mandatoryComment:c,selectedAnswer:P,submit:()=>{if(!g.selectedAnswers.length){const t={anonymizedTextResponse:"",answers:[],textResponse:""};return e.answer(t),t}const t=g.selectedAnswers.reduce((e,t)=>e?`${e}, ${t.possible_answer}`:`${t.possible_answer}`,""),s={anonymizedTextResponse:t,answers:g.selectedAnswers.map(e=>({comment:g.comments[e.id]||void 0,nextSurveyPointId:l,survey_question_answer_id:e.id,user_tag:e.user_tag})),textResponse:t,value:Object.assign(Object.assign({},x?{disclaimer_accepted:y}:{}),{answers:g.selectedAnswers,comments:k})};return e.answer(s),s}});const C=(0,It.Kr)(()=>(null==d?void 0:d.text)||(h?o:""),[o,null==d?void 0:d.text,h]);return(0,Mt.h)("div",{"aria-labelledby":a,className:"sv__multiple-choice",role:"group"},(0,Mt.h)("div",{className:"sv__scroll-container"},e.children&&[...e.children],(0,Mt.h)(Vl,{shouldShow:!!C,text:C}),g.answers.map(e=>{const t=!!g.selectedAnswers.find(t=>t.id===e.id);return(0,Mt.h)(Gl,{answer:e,answerRequiredText:u,comment:g.comments[e.id],dataTestid:`choice-button-${e.id.toString()}`,display:hl.square,isSelected:t,key:e.id,mandatoryComment:c,select:()=>(e=>{let t=[...g.selectedAnswers];t.find(t=>t.id===e.id)?t=t.filter(t=>t.id!==e.id):t.push(e),f({payload:t,type:"setSelectedAnswers"})})(e),textPlaceholder:n,updateComment:t=>{return s=t,r=e.id,void f({payload:Object.assign(Object.assign({},g.comments),{[r]:s}),type:"setComments"});var s,r}})})),w&&(0,Mt.h)(Al,{isDisclaimerAccepted:y,point:r,setIsDisclaimerAccepted:()=>f({payload:!y,type:"setIsDisclaimerAccepted"})}))},iv=e=>{var t;const{isPage:s,surveyType:r}=(0,It.NT)(jt.y),{answer:i,answerRequiredText:o,point:n,textPlaceholder:a,titleId:c,value:l,children:v,navigationEnabled:_}=e,{settings:{disclaimer:u,disclaimer_settings:d}}=n,{mandatory_submit_button:p,mandatory_comment:m,randomize_answers:h,randomize_except_last:b,comment_label:g}=n.settings,f=n.settings.mandatory,{pointsDisplayed:y}=_e.bX.getStore(r).getState().surveyState,w=1===y.length,x=Se.params.aid,S=n.answers.find(({id:e})=>e===Number(x)),k={answers:Ql(n),comments:sv(n,l),isDisclaimerAccepted:null!==(t=null==l?void 0:l.disclaimer_accepted)&&void 0!==t&&t,pointId:n.id,reducedAnswers:Pl.reduceAnswers(n.answers),selectedAnswer:S},[A,T]=(0,It.WO)(ev,k),{isDisclaimerAccepted:O}=A,{showDisclaimer:E,showCheckbox:P,isRequiredDisclaimerNotAccepted:C}=Cl({disclaimer:u,disclaimer_settings:d,isDisclaimerAccepted:A.isDisclaimerAccepted}),{answers:N,selectedAnswer:M,comments:I}=A;return Ml({aid:x,alwaysRender:!!_&&!w,comment:M?I[null==M?void 0:M.id]:void 0,isMandatory:f,isPage:s,isRequiredDisclaimerNotAccepted:C,mandatoryComment:m,mandatorySubmitButton:p,selectedAnswer:M,showCheckbox:P,submit:()=>{if(!M){const e={anonymizedTextResponse:"",answers:[],textResponse:""};return i(e),e}const e=A.comments[M.id];if(m&&!e&&M.add_comment)return null;const t=At(Object.assign({answer:M,comment:e,point:n},P?{disclaimer_accepted:O}:{}));return i(t),t}}),(0,It.vJ)(()=>{S||T({payload:null==l?void 0:l.answer,type:"setSelectedAnswer"})},[l]),(0,It.vJ)(()=>{T({payload:Ql(n),type:"setAnswers"})},[h,b]),(0,It.vJ)(()=>{const e=Pl.reduceAnswers(n.answers);A.reducedAnswers!==e&&(T({payload:n.answers,type:"setAnswers"}),T({payload:e,type:"setReducedAnswers"}))},[n.answers]),(0,Mt.h)("div",{"aria-labelledby":c,className:"sv__single-choice",role:"radiogroup"},(0,Mt.h)("div",{className:"sv__scroll-container"},v,(0,Mt.h)(Vl,{shouldShow:f,text:o}),N.map(e=>(0,Mt.h)(Gl,{answer:e,answerRequiredText:g,comment:I[e.id],dataTestid:`choice-button-${e.id}`,display:hl.circle,isSelected:(null==M?void 0:M.id)===e.id,key:e.id,mandatoryComment:m,select:()=>(e=>{if(e.add_comment||p||_&&!w||!f||P)T({payload:e,type:"setSelectedAnswer"});else{if(!A.selectedAnswer){const t=A.comments[e.id]||"";return void i(At(Object.assign({answer:e,comment:t,point:n},P?{disclaimer_accepted:O}:{})))}T({payload:e,type:"setSelectedAnswer"})}})(e),textPlaceholder:a,updateComment:t=>{return s=t,r=e.id,void T({payload:Object.assign(Object.assign({},A.comments),{[r]:s}),type:"setComments"});var s,r}}))),E&&(0,Mt.h)(Al,{isDisclaimerAccepted:O,point:n,setIsDisclaimerAccepted:()=>T({payload:!O,type:"setIsDisclaimerAccepted"})}))},ov=({answers:e,selectedAnswer:t,handleAnswer:s,titleId:r})=>(0,Mt.h)("div",{"aria-labelledby":r,className:"sv__choice-buttons-wrapper",role:"group"},e.map(e=>(0,Mt.h)(Gl,{answer:e,dataTestid:`choice-button-${e.id.toString()}`,display:hl.circle,hideCommentField:!0,isSelected:(null==t?void 0:t.id)===e.id,key:e.id,select:()=>s(e)}))),nv=({answers:e,handleAnswer:t,selectedAnswer:s,titleId:r})=>{const{isPage:i}=(0,It.NT)(jt.y);return(0,Mt.h)("div",{"aria-labelledby":r,className:"sv__buttons sv__buttons--vertical",role:"radiogroup"},e.map(e=>{const r=!i&&(null==s?void 0:s.id)===e.id,o={"sv--background-answer-opacity-10":!0,"sv--border-color-answer":r,"sv--color-answer":!0,sv__button:!0,"sv__button--selected":r};return(0,Mt.h)("button",{"aria-label":`${e.possible_answer}`,"aria-pressed":r,className:(0,Un.A)(o),"data-testid":`choice-button-${e.id}`,key:e.id,onClick:s=>{s.stopPropagation(),t(e)},type:"button"},(0,Mt.h)("span",{className:"sv__buttons__answer"},e.possible_answer))}))},av=e=>{var t,s;const{isPage:r,surveyType:i}=(0,It.NT)(jt.y),o=(0,It.li)(null),{point:n,value:a,navigationEnabled:c,answerRequiredText:l,textPlaceholder:v,titleId:_}=e,{mandatory_submit_button:u,mandatory:d,mandatory_comment:p,comment_label:m,screenshot:h,disclaimer:b,disclaimer_settings:g}=n.settings,f=Se.params.aid,y=n.answers.find(({id:e})=>e===Number(f)),[w,x]=(0,It.J0)((null==a?void 0:a.answer)||y),[S,k]=(0,It.J0)((null==a?void 0:a.comment)||""),[A,T]=(0,It.J0)(null!==(t=null==a?void 0:a.disclaimer_accepted)&&void 0!==t&&t),{showDisclaimer:O,showCheckbox:E,isRequiredDisclaimerNotAccepted:P}=Cl({disclaimer:b,disclaimer_settings:g,isDisclaimerAccepted:A}),C=fl.isMicroTheme(i),{pointsDisplayed:N}=_e.bX.getStore(i).getState().surveyState,M=1===N.length,I=!!c&&!M,j=w&&w.add_comment,R=t=>{w||u||t.add_comment||E||c&&!M||d&&(null==h?void 0:h.button_enabled)||!d?x(t):e.answer(St(Object.assign({answer:t,comment:S,point:n},E?{disclaimer_accepted:A}:{})))};return Ml({aid:f,alwaysRender:I,comment:S,isMandatory:d,isPage:r,isRequiredDisclaimerNotAccepted:P,mandatoryComment:p,mandatorySubmitButton:u,screenshotEnabled:null!==(s=null==h?void 0:h.button_enabled)&&void 0!==s&&s,selectedAnswer:w,showCheckbox:E,submit:()=>{if(w){const t=St(Object.assign({answer:w,comment:S,point:n},E?{disclaimer_accepted:A}:{}));return e.answer(t),t}return d?null:Et(e.answer)}}),Bl({ref:o,shouldScroll:!!j}),(0,Mt.h)("div",{className:"sv__customer-satisfaction"},(0,Mt.h)("div",{className:"sv__scroll-container"},e.children&&[...e.children],(0,Mt.h)(Vl,{shouldShow:d,text:l}),C?(0,Mt.h)(nv,{answers:n.answers,handleAnswer:R,selectedAnswer:w,titleId:_}):(0,Mt.h)(ov,{answers:n.answers,handleAnswer:R,selectedAnswer:w,titleId:_})),j&&(0,Mt.h)(Jl,{commentFieldLabel:m||"",mandatoryComment:p,ref:o,setComment:e=>{k(e)},textPlaceholder:v,value:S}),O&&(0,Mt.h)(Al,{isDisclaimerAccepted:A,point:n,setIsDisclaimerAccepted:()=>T(!A)}))},cv=(e,t)=>{switch(t.type){case"setError":return Object.assign(Object.assign({},e),{error:t.payload});case D.day:return Object.assign(Object.assign({},e),{[D.day]:t.payload});case D.month:return Object.assign(Object.assign({},e),{[D.month]:t.payload});case D.year:return Object.assign(Object.assign({},e),{[D.year]:t.payload});case"setContainerClass":return Object.assign(Object.assign({},e),{containerClass:t.payload});case"setPointId":return Object.assign(Object.assign({},e),{pointId:t.payload});case"setComment":return Object.assign(Object.assign({},e),{comment:t.payload});case"setIsDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload});default:return e}},lv=(e,t)=>e.padStart(t,"0");var vv=s(8477),_v=s(7088);const uv=()=>{const e=(0,vv.j)({iterable:document.querySelectorAll(".sv__survey input"),type:_v.p.iterable});if(e.length){const t=e.find(e=>!e.value);t&&t.focus()}};var dv,pv,mv;!function(e){e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e.RightFullScreen="right_full_screen",e.LeftFullScreen="left_full_screen"}(dv||(dv={})),function(e){e.YMD="YMD",e.MDY="MDY",e.DMY="DMY"}(pv||(pv={})),function(e){e.dash="-",e.slash="/",e.dot="."}(mv||(mv={}));const hv=(e,t)=>{const s=parseInt(t[e],10);if(Number.isNaN(s))return!1;const r={[D.day]:{max:31,min:1},[D.month]:{max:12,min:1},[D.year]:{max:5e3,min:1e3}}[e];if(!r)throw new Error("TimeUnit is incorrect.");return s>=r.min&&s<=r.max},bv=({point:e,answer:t,value:s,children:r,textPlaceholder:i,answerRequiredText:o,titleId:n})=>{var a,c,l,v,_;const{mandatory:u,next_survey_point_id:d,user_tag:p,date_separator:m,date_order:h,add_comment:b,comment_label:g,mandatory_comment:f,disclaimer:y,disclaimer_settings:w}=e.settings,x={[D.day]:"day",[D.month]:"month",[D.year]:"year"},S=(e=>{switch(e){case pv.DMY:return[D.day,D.month,D.year];case pv.MDY:return[D.month,D.day,D.year];case pv.YMD:default:return[D.year,D.month,D.day]}})(h),k=[(0,It.li)(null),(0,It.li)(null),(0,It.li)(null)],A=(0,tl.B)(il.Q.ANSWER_REQUIRED),T=Bn(),O={[D.day]:null!==(a=null==s?void 0:s[D.day])&&void 0!==a?a:"",[D.month]:null!==(c=null==s?void 0:s[D.month])&&void 0!==c?c:"",[D.year]:null!==(l=null==s?void 0:s[D.year])&&void 0!==l?l:"",comment:null!==(v=null==s?void 0:s.comment)&&void 0!==v?v:"",containerClass:"",error:!1,isDisclaimerAccepted:null!==(_=null==s?void 0:s.disclaimer_accepted)&&void 0!==_&&_,pointId:e.id},[E,P]=(0,It.WO)(cv,O),{showDisclaimer:C,showCheckbox:N,isRequiredDisclaimerNotAccepted:M}=Cl({disclaimer:y,disclaimer_settings:w,isDisclaimerAccepted:E.isDisclaimerAccepted}),I=[D.day,D.month,D.year].some(e=>!E[e]),j=!(u&&I||b&&f&&!E.comment.trim()||b&&f&&!E.comment.trim());Ml({alwaysRender:!0,comment:E.comment,customCanSubmit:j,isMandatory:u,isRequiredDisclaimerNotAccepted:M,mandatoryComment:f&&b,selectedAnswer:b?{add_comment:!0}:{},showCheckbox:N,submit:()=>{const e=hv(D.year,E)&&hv(D.month,E)&&hv(D.day,E),s=!E[D.year]&&!E[D.month]&&!E[D.day];if(!e){if(!u&&s){const e={anonymizedTextResponse:"",answers:[{comment:E.comment,content:"",user_tag:p}],textResponse:""};return t(e),uv(),e}return T.skipClearState(),P({payload:!0,type:"setError"}),uv(),null}const r=lv(E[D.day],2),i=lv(E[D.month],2),o=E[D.year],n={anonymizedTextResponse:`${o}-${i}-${r}`,answers:[{comment:E.comment,content:`${o}-${i}-${r}`,nextSurveyPointId:d,user_tag:p}],textResponse:`${o}-${i}-${r}`,value:Object.assign({[D.day]:r,[D.month]:i,[D.year]:o,comment:E.comment},N&&{disclaimer_accepted:E.isDisclaimerAccepted})};return t(n),n}});const R=(e,t,s)=>{let r="";e.target instanceof HTMLInputElement&&(r=e.target.value),r=r.replace(/\D/g,""),P({payload:!1,type:"setError"}),P({payload:r,type:t});const i=k[s+1];((e,t)=>e===D.year?4===t.length:e===D.month?2===t.length||parseInt(t,10)>1:2===t.length||parseInt(t,10)>3)(t,r)&&s<2&&i&&i.current&&i.current.focus()},L=e=>{P({payload:e,type:"setContainerClass"})},F={"sv--background-answer-opacity-10":!0,sv__date:!0,sv__invalid:E.error,[E.containerClass]:!!E.containerClass},z={"sv--color-answer":!0,"sv-color-fw":!0,sv__date__input:!0};return(0,Mt.h)("div",{className:(0,Un.A)({"sv__date-wrapper":!0,sv__date__wrapper:!0})},(0,Mt.h)("div",{className:"sv__scroll-container"},r,(0,Mt.h)(Vl,{shouldShow:u,text:o}),(0,Mt.h)("div",{"aria-labelledby":n,className:(0,Un.A)(F),role:"group"},S.map((e,t)=>[(0,Mt.h)(wl,{"data-testid":`${e}-input-validation`,invalid:E.error,key:e,type:"date"},(0,Mt.h)("input",{"aria-label":`${u?A:""} ${x[e]}`,className:(0,Un.A)(z),"data-testid":e,maxLength:e.length,onBlur:()=>L(""),onFocus:()=>L("focused"),onInput:s=>R(s,e,t),placeholder:e,ref:k[t],type:"text",value:E[e]})),2!==t?(0,Mt.h)("div",{"aria-hidden":"true",className:"sv__date__separator sv--color-answer"},null!=m?m:"/"):null]))),b&&(0,Mt.h)(Jl,{commentFieldLabel:g||"",mandatoryComment:f,setComment:e=>{P({payload:e,type:"setComment"})},shouldFocus:!1,textPlaceholder:i,value:E.comment}),C&&(0,Mt.h)(Al,{isDisclaimerAccepted:E.isDisclaimerAccepted,point:e,setIsDisclaimerAccepted:()=>{P({payload:!E.isDisclaimerAccepted,type:"setIsDisclaimerAccepted"})}}))},gv=(e,t)=>{switch(t.type){case"setAnswers":return Object.assign(Object.assign({},e),{answers:t.payload});case"setComment":return Object.assign(Object.assign({},e),{comment:t.payload});case"setError":return Object.assign(Object.assign({},e),{error:t.payload});case"setPointId":return Object.assign(Object.assign({},e),{pointId:t.payload});case"setReducedAnswers":return Object.assign(Object.assign({},e),{reducedAnswers:t.payload});case"setIsDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload});case"setValue":return Object.assign(Object.assign({},e),{value:t.payload})}},fv=(e,t)=>{switch(t.type){case"setFocusPosition":return Object.assign(Object.assign({},e),{focusPosition:t.payload});case"setIsOpen":return Object.assign(Object.assign({},e),{isOpen:t.payload});case"setSearch":return Object.assign(Object.assign({},e),{search:t.payload});case"setSelected":return Object.assign(Object.assign({},e),{selected:t.payload})}},yv=({shouldShowClearButton:e,clearInput:t,toggleDropdown:s,searchHandler:r,keyDownHandler:i,isFocusable:o})=>{const{isPage:n,surveyType:a}=(0,It.NT)(jt.y),c=fl.isMicroTheme(a),l=(0,tl.B)();return(0,Mt.h)("div",{className:(0,Un.A)({"sv__select-buttons":!0,sv__select__buttons:!0})},e&&(n||c)?(0,Mt.h)("button",{"aria-label":l[il.Q.CLOSE_DROPDOWN],className:(0,Un.A)({"sv__clear-input-icon":!0,"sv__select-icon":!0,"sv__select__clear-input":!0}),"data-testid":"clear-button",onClick:t,onKeyDown:t,tabIndex:0,title:"Close",type:"button"},(0,Mt.h)(ol.A,{tabIndex:-1})):(0,Mt.h)("div",{"aria-label":l[il.Q.OPEN_DROPDOWN],className:"sv__caret sv__select-icon",onClick:s,onInput:r,onKeyDown:e=>i(e,!0),role:"button",tabIndex:o?-1:0},zc&&(n||c)&&!e&&(0,Mt.h)(zc,{"aria-hidden":"true"})))},wv=({text:e,highlight:t})=>{const s=t?e.toLowerCase().indexOf(t.toLowerCase()):-1;return-1===s?(0,Mt.h)(gl,{className:"sv--color-answer",content:e,inline:!0}):(0,Mt.h)("span",{className:"sv--color-answer"},e.substring(0,s),(0,Mt.h)("strong",null,e.substring(s,s+t.length)),e.substring(s+t.length,e.length)," ")},xv=e=>{const{isPage:t}=(0,It.NT)(jt.y),s=s=>{const r=s===e.position;return(0,Un.A)({"sv--background-main":!t,"sv--border-color-answer":r,"sv--color-answer":!0,"sv-color-fa":!t,"sv-nested-bg-bw":!t,"sv-nested-bg-hover-bw":!t,"sv-nested-bg-selected-bw":!t&&r,"sv__select-button":!0,"sv__select-button--focused":r})},r={"sv--background-main":!t,"sv--border-color-answer":t,"sv__select-list":!0};return(0,Mt.h)("ul",{className:(0,Un.A)(r),"data-testid":"select-list"},e.options.map((t,r)=>(0,Mt.h)("li",{className:"sv__select-list__element","data-testid":"select-list-element",key:t.value},(0,Mt.h)("button",{"aria-label":`${t.label}`,className:s(r),"data-testid":`select-list-button-${r}`,onClick:s=>{s.stopPropagation(),e.selectOption(t)},onKeyDown:s=>Qc(s,()=>e.selectOption(t)),style:{"--tick-url":`url(${P.getState().surveysStaticUrl}/images/tick.svg)`},tabIndex:0,type:"button"},(0,Mt.h)(wv,{highlight:e.search,text:t.label})))))},Sv=({options:e,inputValue:t,onSelect:s,showClearButton:r,isFocusable:i,isError:o,allowSearch:n,dropdownPlaceholder:a,shouldHideSubmitButton:c,titleId:l})=>{var v,_;const u=Bn(),{isWidget:d,surveyType:p,isPage:m}=(0,It.NT)(jt.y),h=(0,It.li)(null),b=(0,It.li)(null),g=(0,It.li)(!1),f=e.find(e=>e.value===t)||null,y={focusPosition:-1,isOpen:!1,search:f?f.label:"",selected:f},[w,x]=(0,It.WO)(fv,y),S=e=>{(null==h?void 0:h.current)&&(e.composedPath().includes(h.current)||(x({payload:-1,type:"setFocusPosition"}),x({payload:!1,type:"setIsOpen"})))},k=e=>{if(!i)return;const t=h.current;t&&t.classList.toggle("sv__select--border",e)},A=t=>e.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())),T=t=>{let r="";t.target instanceof HTMLInputElement&&(r=t.target.value),x({payload:!!P().length,type:"setIsOpen"}),x({payload:r,type:"setSearch"}),x({payload:null,type:"setSelected"});const i=r.trim(),o=i&&e.find(e=>e.label.toLowerCase()===i.toLowerCase());o?(x({payload:A(i).indexOf(o),type:"setFocusPosition"}),g.current=!0,s(o.value)):(x({payload:-1,type:"setFocusPosition"}),s(""))},O=e=>{w.isOpen&&e.target.blur(),x({payload:!w.isOpen,type:"setIsOpen"}),x({payload:"",type:"setSearch"})},E=e=>{x({payload:0,type:"setFocusPosition"}),x({payload:!1,type:"setIsOpen"}),x({payload:"",type:"setSearch"}),x({payload:e,type:"setSelected"}),s(e.value)},P=()=>{const{search:t,selected:s}=w;return(null==s?void 0:s.label)?e.filter(e=>e.value!==s.value):t?A(t):e},C=(e,t)=>{const s=P()[w.focusPosition];switch(e.key){case" ":if(!t&&n)return;return e.preventDefault(),t&&(O(e),x({payload:0,type:"setFocusPosition"})),void(w.isOpen&&s&&E(s));case"Enter":return e.preventDefault(),t&&(O(e),x({payload:0,type:"setFocusPosition"})),void(w.isOpen&&s&&E(s));case"Escape":return e.preventDefault(),void x({payload:!1,type:"setIsOpen"});case"Tab":return void(w.isOpen&&x({payload:!1,type:"setIsOpen"}));case"ArrowUp":return w.isOpen||x({payload:!0,type:"setIsOpen"}),void N(-1);case"ArrowDown":w.isOpen||x({payload:!0,type:"setIsOpen"}),N(1)}},N=e=>{const t=P().length;if(!t)return;const s=(w.focusPosition+e+t)%t;x({payload:s,type:"setFocusPosition"})},M=!(!w.search&&!(null===(v=w.selected)||void 0===v?void 0:v.label))&&r,I=!P().length||!!o,j={"sv--border-color-answer":m&&w.isOpen,"sv-invalid":I,sv__select:!0,"sv__select--open":w.isOpen,"sv__survey-up":d&&fl.isSurveyUp(p)};return(0,It.vJ)(()=>(document.addEventListener("click",S,!1),()=>{document.removeEventListener("click",S,!1)}),[]),(0,It.vJ)(()=>{if(g.current)return void(g.current=!1);const s=e.find(e=>e.value===t)||null;x({payload:s?s.label:"",type:"setSearch"}),x({payload:s,type:"setSelected"})},[t]),(0,It.vJ)(()=>{c&&(m&&(0,Yc.A)(_e.bX.getStore(p).getState().previewDevice)&&Il(p,'[data-id="scroll-container"]',!0),u.hideSubmitButton(w.isOpen))},[w.isOpen,c,m,p,u]),Bl({ref:h,shouldScroll:w.isOpen}),(0,Mt.h)("div",{className:(0,Un.A)(j),"data-testid":"select",ref:h},(0,Mt.h)(wl,{invalid:I,type:"select"},(0,Mt.h)("input",{"aria-label":a,"aria-labelledby":l,autoComplete:"off",className:"sv__input sv--color-answer sv--background-answer-opacity-10","data-testid":"select-input",onBlur:e=>{var t;(null===(t=h.current)||void 0===t?void 0:t.contains(e.relatedTarget))||k(!1)},onClick:O,onFocus:()=>k(!0),onInput:T,onKeyDown:C,placeholder:a,readOnly:!n,ref:b,tabIndex:0,type:"text",value:w.search||(null===(_=w.selected)||void 0===_?void 0:_.label)})),w.isOpen&&!!P().length&&(0,Mt.h)(xv,{options:P(),position:w.focusPosition,search:w.search,selectOption:E}),(0,Mt.h)(yv,{clearInput:e=>{"Tab"!==(null==e?void 0:e.key)&&(x({payload:"",type:"setSearch"}),x({payload:null,type:"setSelected"}),M&&b.current&&(s(""),x({payload:-1,type:"setFocusPosition"}),b.current.value=""))},isFocusable:i,keyDownHandler:C,searchHandler:T,shouldShowClearButton:M,toggleDropdown:O}))},kv=e=>{var t,s,r,i,o,n,a,c,l;const{surveyType:v,isMobileSurvey:_}=(0,It.NT)(jt.y),u=_e.bX.getStore(v),d=(0,Yc.A)(u.getState().previewDevice),p=oc().submitState.value,m=p.type!==Za.NotRendered&&p.isHidden,h=(0,It.li)(null),{answerRequiredText:b,dropdownPlaceholder:g,textPlaceholder:f,titleId:y,point:w,value:x}=e,{answers:S,id:k,settings:{mandatory:A,comment_label:T,mandatory_comment:O,disclaimer:E,disclaimer_settings:P}}=w,C=S.reduce((e,t)=>`${e}${t.possible_answer}`,""),N={answers:Ql(e.point),comment:(null==x?void 0:x.comment)||"",error:!1,isDisclaimerAccepted:null!==(t=null==x?void 0:x.disclaimer_accepted)&&void 0!==t&&t,pointId:k,reducedAnswers:C,value:x||null},[M,I]=(0,It.WO)(gv,N),{showDisclaimer:j,showCheckbox:R,isRequiredDisclaimerNotAccepted:L}=Cl({disclaimer:E,disclaimer_settings:P,isDisclaimerAccepted:M.isDisclaimerAccepted}),D=!(!M.value&&A||O&&(null===(r=null===(s=M.value)||void 0===s?void 0:s.answer)||void 0===r?void 0:r.add_comment)&&!M.comment||L);Ml({alwaysRender:!0,customCanSubmit:D,isMandatory:A,isRequiredDisclaimerNotAccepted:L,selectedAnswer:M.value?{add_comment:null===(i=M.value.answer)||void 0===i?void 0:i.add_comment}:void 0,showCheckbox:R,submit:()=>{var t;const s=null===(t=M.value)||void 0===t?void 0:t.answer;if(!s){if(A)return I({payload:!0,type:"setError"}),null;const t={anonymizedTextResponse:"",answers:[],textResponse:""};return e.answer(t),t}const r={anonymizedTextResponse:s.possible_answer,answers:[{comment:M.comment,nextSurveyPointId:s.next_survey_point_id,survey_question_answer_id:s.id,user_tag:s.user_tag}],textResponse:s.possible_answer,value:Object.assign({answer:s,comment:M.comment},R&&{disclaimer_accepted:M.isDisclaimerAccepted})};return e.answer(r),r}});const F=()=>null==M?void 0:M.answers.map(e=>({label:Gc(e.possible_answer),value:e.id})),z=!_&&(null===(n=null===(o=M.value)||void 0===o?void 0:o.answer)||void 0===n?void 0:n.add_comment);return(0,It.vJ)(()=>{u.getState().rootElement&&I({payload:Ql(e.point),type:"setAnswers"}),F()},[S]),Bl({ref:h,shouldScroll:!!z}),(0,Mt.h)("div",{className:"sv__dropdown-wrapper sv__dropdown__wrapper"},(0,Mt.h)("div",{className:"sv__scroll-container"},e.children,(0,Mt.h)(Vl,{shouldShow:A,text:b}),(0,Mt.h)(Sv,{allowSearch:!0,dropdownPlaceholder:g||"Please select an answer",inputValue:null!==(l=null===(c=null===(a=M.value)||void 0===a?void 0:a.answer)||void 0===c?void 0:c.id)&&void 0!==l?l:null,isError:M.error,onSelect:e=>{const t=S.find(t=>t.id===e);I({payload:t?{answer:t,comment:M.comment}:null,type:"setValue"})},options:F(),pointId:M.pointId,shouldHideSubmitButton:!d,showClearButton:!0,titleId:y}),z&&(0,Mt.h)(Jl,{commentFieldLabel:T||"",mandatoryComment:O,ref:h,setComment:e=>{I({payload:e,type:"setComment"})},textPlaceholder:f,value:M.comment})),j&&(0,Mt.h)(Al,{isDisclaimerAccepted:M.isDisclaimerAccepted,point:w,setIsDisclaimerAccepted:()=>I({payload:!M.isDisclaimerAccepted,type:"setIsDisclaimerAccepted"}),shouldHide:m&&!d}))},Av=({point:e})=>{const{isPage:t}=(0,It.NT)(jt.y),s={"sv--color-answer":!t,"sv--color-question":t,"sv__matrix-cell":!0};return(0,Mt.h)("div",{className:"sv__matrix-row sv__matrix-header"},["",...e.settings.scale.map(e=>e.name)].map(e=>(0,Mt.h)(gl,{className:(0,Un.A)(s),content:e,key:e})))},Tv=e=>{const{isPage:t}=(0,It.NT)(jt.y),{subQuestion:s,answersNumber:r,selectedAnswer:i,rowIndex:o,isSelected:n,scale:a,selectAnswer:c}=e,l={"sv--background-answer-opacity-10":!0,"sv--border-color-answer":t&&n,"sv__matrix-row":!0,sv__selected:n},v={"sv--color-answer":!0,"sv__matrix-cell":!0};return(0,Mt.h)("div",{className:(0,Un.A)(l),"data-testid":`row-index=${o}`},(0,Mt.h)("div",{className:(0,Un.A)(v)},(0,Mt.h)(gl,{className:"sv--color-answer",content:s})),(0,vv.j)({length:r,type:_v.p.length}).map((e,t)=>{const r=a[t].id;return(0,Mt.h)("div",Object.assign({className:(0,Un.A)(v),"data-testid":r,key:r,onClick:()=>c(o,r)},i===r?{"data-answerid":r}:{}),(0,Mt.h)(bl,{colors:ml.bw,display:hl.circle,isSelected:i===r,label:`${a[t].name} ${s}`,onClick:()=>c(o,r),onKeyboardClick:()=>c(o,r),testId:`checkbox-${o}-${r}`}))}))},Ov=e=>{const{answerRequiredText:t,children:s,comments:r,isRequiredDisclaimerNotAccepted:i,mandatory:o,mandatoryComment:n,point:a,pointAnswers:c,selectAnswer:l,selectedAnswers:v,setComment:_,submit:u,textPlaceholder:d}=e,p=v.every(e=>!!e),m=(0,It.Kr)(()=>tv(n,c,r),[n,c,r]),h=(0,It.Kr)(()=>c.some((e,t)=>{if(!v[t])return!1;const s=e.id,i=r[s];return e.add_comment&&!i}),[c,v,r]);return Ml({alwaysRender:!0,customCanSubmit:!(o&&m||!o&&n&&h),isMandatory:o,isRequiredDisclaimerNotAccepted:i,selectedAnswer:p?{}:void 0,submit:u}),(0,Mt.h)("div",{className:"sv__matrix-wrapper sv__matrix-desktop"},(0,Mt.h)("div",{className:"sv__scroll-container"},s,(0,Mt.h)(Vl,{shouldShow:o,text:t}),(0,Mt.h)(Av,{point:a}),c.map((e,t)=>(0,Mt.h)("div",{className:"sv__matrix-row-wrapper","data-testid":`matrix-row-wrapper-${t}`,key:e.id},(0,Mt.h)(Tv,{answersNumber:a.settings.scale.length,isSelected:!!v[t],key:e.id,rowIndex:t,scale:a.settings.scale,selectAnswer:l,selectedAnswer:v[t],subQuestion:e.possible_answer}),!!v[t]&&(null==e?void 0:e.add_comment)&&(0,Mt.h)(Jl,{commentFieldLabel:a.settings.comment_label||"",mandatoryComment:n,setComment:t=>{_(e.id,t)},textPlaceholder:d,value:r[e.id]})))))},Ev=(e,t)=>{switch(t.type){case"setComments":return Object.assign(Object.assign({},e),{comments:t.payload});case"setPointId":return Object.assign(Object.assign({},e),{pointId:t.payload});case"setAnswers":return Object.assign(Object.assign({},e),{selectedAnswers:t.payload});case"setMobileQuestionNr":return Object.assign(Object.assign({},e),{mobileQuestionNr:t.payload});case"setPointAnswers":return Object.assign(Object.assign({},e),{pointAnswers:t.payload});case"setReducedAnswers":return Object.assign(Object.assign({},e),{reducedAnswers:t.payload});case"setIsDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload})}},Pv=(e,t)=>({add_comment:t,id:e.id,next_survey_point_id:null,possible_answer:e.name,user_tag:null}),Cv=({isOpen:e,setIsOpen:t,answer:s,selectedScaleText:r})=>{const i={"sv--background-answer-opacity-10":!0,"sv__choice-button":!0,"sv__matrix-dropdown":!0,"sv__matrix-dropdown--closed":!e};return(0,Mt.h)("button",{"aria-label":`${s.possible_answer}`,className:(0,Un.A)(i),onClick:()=>t(),onKeyDown:()=>null,tabIndex:0,type:"button"},(0,Mt.h)("div",{className:"sv__matrix-answer"},(0,Mt.h)(gl,{className:"sv__answer-text sv-color-fa sv--color-answer",content:s.possible_answer}),(0,Mt.h)("div",{className:"sv--color-button sv__matrix-answer--selected"},r)),(0,Mt.h)("div",{className:"sv__caret"},(0,Mt.h)(zc,null)))},Nv=({isOpen:e,children:t,hasNavigatedBackToQuestion:s})=>{const[r,i]=(0,It.J0)(s||!e?0:void 0),[o,n]=(0,It.J0)(!0),a=(0,It.li)(null);(0,It.vJ)(()=>{n(!1)},[]),(0,It.vJ)(()=>{let t=null;if(!o)return a.current&&(i(a.current.scrollHeight),t=e?window.setTimeout(()=>i(void 0),500):window.setTimeout(()=>i(0),100)),()=>{t&&clearTimeout(t)}},[e]);const c={height:void 0!==r?`${r}px`:"auto",overflow:"hidden",transition:"height 500ms ease"};return(0,Mt.h)("div",{className:"sv__matrix-animation-wrapper",ref:a,style:c},t)},Mv=({textPlaceholder:e,answer:t,scale:s,selectAnswer:r,selectedAnswers:i,answerIndex:o,hasNavigatedBackToQuestion:n,toggleDropdown:a,isOpen:c,comment:l,setComment:v,commentFieldLabel:_,mandatoryComment:u})=>{var d,p;const m=(0,It.li)(null),h=i[o],b=null!==(p=null===(d=s.find(e=>e.id===h))||void 0===d?void 0:d.name)&&void 0!==p?p:"",[g,f]=(0,It.J0)(!0),y=i.every(e=>!e);return(0,It.vJ)(()=>{f(!1)},[]),(0,It.vJ)(()=>{if(g)return;let e=null;return m.current&&c&&!y&&(e=window.setTimeout(()=>{var e;null===(e=m.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},600)),()=>{e&&clearTimeout(e)}},[c]),(0,Mt.h)("div",{className:"sv__matrix-dropdown__wrapper",ref:m},(0,Mt.h)(Cv,{answer:t,isOpen:c,selectedScaleText:b,setIsOpen:()=>{a(o,!1)}}),(0,Mt.h)(Nv,{hasNavigatedBackToQuestion:n,isOpen:c},s.map(s=>(0,Mt.h)(Gl,{answer:Pv(s,!!t.add_comment),answerRequiredText:_,comment:l,dataTestid:`choice-button-${o}-${s.name}`,display:hl.circle,isSelected:h===s.id,key:s.name,mandatoryComment:u,select:()=>{r(o,s.id),!!t.add_comment||a(o)},shouldSkipTab:!c,textPlaceholder:e,updateComment:e=>v(t.id,e)}))))},Iv=({answerRequiredText:e,children:t,comments:s,hasNavigatedBackToQuestion:r,isRequiredDisclaimerNotAccepted:i,mandatory:o,mandatoryComment:n,navigationEnabled:a,point:c,pointAnswers:l,selectAnswer:v,selectedAnswers:_,setComment:u,showDisclaimerCheckbox:d,submit:p,textPlaceholder:m})=>{const{isPage:h,surveyType:b}=(0,It.NT)(jt.y),g=(0,It.li)(null),f=(0,It.Kr)(()=>_.every(e=>!!e),[_]),y=(0,It.Kr)(()=>tv(n,l,s),[n,l,s]);Ml({alwaysRender:a,customCanSubmit:!y,isMandatory:o,isPage:h,isRequiredDisclaimerNotAccepted:i,selectedAnswer:f?{}:void 0,showCheckbox:d,submit:p});const[w,x]=(0,It.J0)(()=>(0,vv.j)({length:Math.max(1,l.length),mapper:(e,t)=>0===t&&!r,type:_v.p.length}));return(0,It.vJ)(()=>{var e,t;const s=null===(e=g.current)||void 0===e?void 0:e.closest(".sv__survey-wrapper"),r=null===(t=g.current)||void 0===t?void 0:t.closest(".sv__survey"),i="mobile"===_e.bX.getStore(b).getState().previewDevice;return(yt.A.isDeviceMobileOrTablet()||i)&&s&&r&&(s.style.height="100%",r.style.height="80%"),()=>{s&&r&&(s.style.height="",r.style.height="")}},[]),(0,Mt.h)("div",{className:"sv__matrix-widget",ref:g,tabIndex:-1},t,(0,Mt.h)(Vl,{shouldShow:o,text:e}),l.map((e,t)=>(0,Mt.h)(Mv,{answer:e,answerIndex:t,comment:s[e.id],commentFieldLabel:c.settings.comment_label||"",hasNavigatedBackToQuestion:r,isOpen:w[t],key:e.id,mandatoryComment:c.settings.mandatory_comment||!1,scale:c.settings.scale,selectAnswer:v,selectedAnswers:_,setComment:u,textPlaceholder:m,toggleDropdown:(e,t)=>((e,t=!0)=>{x(s=>{const r=[...s];if(r[e]=!r[e],t){const t=_.findIndex((t,s)=>0===t&&s>e);-1!==t&&t<r.length&&(r[t]=!0)}return r})})(e,t)})))},jv=e=>{var t,s,r,i,o,n,a,c,l,v;const{isPage:_,isWidget:u,isFeedback:d}=(0,It.NT)(jt.y),{answer:p,answerRequiredText:m,children:h,navigationEnabled:b,point:g,previewDevice:f,textPlaceholder:y,value:w}=e,x=(0,It.Kr)(()=>{var e;return(null===(e=null==g?void 0:g.answers)||void 0===e?void 0:e.length)?Ql(g):[]},[g]),S={comments:sv(g,w),isDisclaimerAccepted:null!==(t=null==w?void 0:w.disclaimer_accepted)&&void 0!==t&&t,mobileQuestionNr:0,pointAnswers:x,pointId:g.id,reducedAnswers:Pl.reduceAnswers(x),selectedAnswers:(null==w?void 0:w.answers)||(0,vv.j)({length:null!==(r=null===(s=g.answers)||void 0===s?void 0:s.length)&&void 0!==r?r:0,mapper:()=>0,type:_v.p.length})},[k,A]=(0,It.WO)(Ev,S),{showDisclaimer:T,showCheckbox:O}=Cl({disclaimer:null===(i=g.settings)||void 0===i?void 0:i.disclaimer,disclaimer_settings:null===(o=g.settings)||void 0===o?void 0:o.disclaimer_settings,isDisclaimerAccepted:k.isDisclaimerAccepted}),E=!!(null==w?void 0:w.answers),P=(e,t)=>{var s;if(e<0||t<0||!(null===(s=k.pointAnswers)||void 0===s?void 0:s.length))return;const r=((e,t)=>s=>{const r=e.selectedAnswers.slice();return r[s]=t,r})(k,t)(e);(null==r?void 0:r.length)&&A({payload:r,type:"setAnswers"})},C=(e,t)=>{const s=Object.assign({},k.comments);s[e]=t,A({payload:s,type:"setComments"})},N=()=>{const t=((e,t,s)=>{const r=Object.assign({answers:e.selectedAnswers,comments:e.comments},s&&{disclaimer_accepted:e.isDisclaimerAccepted});if(e.selectedAnswers.some(e=>0===e))return{anonymizedTextResponse:"",answers:[],textResponse:"",value:r};let i="";return e.pointAnswers.forEach((s,r)=>{const o=t.point.settings.scale.find(t=>t.id===e.selectedAnswers[r]);i+=`${s.possible_answer}: ${null==o?void 0:o.name}, `}),i=i.trim().replace(/,\s*$/,""),{anonymizedTextResponse:i,answers:e.selectedAnswers.map((s,r)=>({comment:e.comments[e.pointAnswers[r].id],content:`${s}`,nextSurveyPointId:t.point.settings.next_survey_point_id,survey_question_answer_id:e.pointAnswers[r].id,user_tag:e.pointAnswers[r].user_tag})),textResponse:i,value:r}})(k,e,O);return p(t),t},M=(0,Yc.A)(f),{answers:I,settings:{mandatory:j,mandatory_comment:R,randomize_answers:L,randomize_except_last:D,scale:F,point_image:z}}=g;(0,It.vJ)(()=>{if(!(null==I?void 0:I.length))return;const e=Pl.reduceAnswers(I);if(k.reducedAnswers!==e&&(A({payload:I,type:"setPointAnswers"}),A({payload:e,type:"setReducedAnswers"})),I.length!==k.selectedAnswers.length){const e=(0,vv.j)({length:I.length,mapper:(e,t)=>{var s;return null!==(s=k.selectedAnswers[t])&&void 0!==s?s:0},type:_v.p.length});A({payload:e,type:"setAnswers"})}},[I]),(0,It.vJ)(()=>{var e;(null===(e=null==g?void 0:g.answers)||void 0===e?void 0:e.length)&&A({payload:Ql(g),type:"setPointAnswers"})},[L,D,null==g?void 0:g.answers]);const q=(u||d)&&(null!==(a=null===(n=k.pointAnswers)||void 0===n?void 0:n.length)&&void 0!==a?a:0)<6&&(null!==(c=null==F?void 0:F.length)&&void 0!==c?c:0)<6,U=!k.isDisclaimerAccepted&&!!(null===(v=null===(l=g.settings)||void 0===l?void 0:l.disclaimer_settings)||void 0===v?void 0:v.checkbox_required),$=!M&&(_||q)&&!(e=>{if(!e)return!1;const{desktop_position:t,show_on_desktop:s}=e;return(t===dv.RightFullScreen||t===dv.LeftFullScreen||t===dv.Right||t===dv.Left)&&s})(z);return(0,Mt.h)(Mt.Fragment,null,$?(0,Mt.h)(Ov,{answerRequiredText:m,comments:k.comments,isRequiredDisclaimerNotAccepted:U,mandatory:j,mandatoryComment:R,point:g,pointAnswers:k.pointAnswers,selectAnswer:P,selectedAnswers:k.selectedAnswers,setComment:C,submit:N,textPlaceholder:y},h):(0,Mt.h)(Iv,{answerRequiredText:m,comments:k.comments,hasNavigatedBackToQuestion:E,isRequiredDisclaimerNotAccepted:U,mandatory:j,mandatoryComment:R,navigationEnabled:b,point:g,pointAnswers:k.pointAnswers,selectAnswer:P,selectedAnswers:k.selectedAnswers,setComment:C,showDisclaimerCheckbox:O,submit:N,textPlaceholder:y},h),T&&(0,Mt.h)(Al,{isDisclaimerAccepted:k.isDisclaimerAccepted,isNarrow:!$,point:g,setIsDisclaimerAccepted:()=>A({payload:!k.isDisclaimerAccepted,type:"setIsDisclaimerAccepted"})}))},Rv=e=>{var t,s,r;const{isPage:i,surveyType:o}=(0,It.NT)(jt.y),n=(0,It.li)(null),{answerRequiredText:a,children:c,navigationEnabled:l,point:v,previewDevice:_,textPlaceholder:u,titleId:d,value:p}=e,{answers:m,settings:h}=v,{comment_label:b,disclaimer:g,disclaimer_settings:f,mandatory:y,mandatory_comment:w,mandatory_submit_button:x,screenshot:S,text_on_the_left:k,text_on_the_right:A}=h,T=Se.params.aid,O=m.find(({id:e})=>e===Number(T)),[E,P]=(0,It.J0)(null!==(t=null==p?void 0:p.answer)&&void 0!==t?t:O),[C,N]=(0,It.J0)((null==p?void 0:p.comment)||""),[M,I]=(0,It.J0)(null!==(s=null==p?void 0:p.disclaimer_accepted)&&void 0!==s&&s),{showDisclaimer:j,showCheckbox:R,isRequiredDisclaimerNotAccepted:L}=Cl({disclaimer:g,disclaimer_settings:f,isDisclaimerAccepted:M}),D=_===ul.t.mobile||_!==ul.t.desktop&&yt.A.isWidthMobile(),F=D&&i||D&&e.point.answers.length>=6,{pointsDisplayed:z}=_e.bX.getStore(o).getState().surveyState,q=1===z.length,U=!!l&&!q,$={"sv__numerical-scale":!0,"sv__numerical-scale--mobile":F,"sv__numerical-scale--vertical":F},B={sv__buttons:!0,"sv__buttons--vertical":F,"sv__numerical-scale__buttons":!0},V=e=>{const t=e.id===(null==E?void 0:E.id),s={"sv--background-answer-opacity-10":!0,"sv--border-color-answer":t,"sv--color-answer":!0,sv__button:!0,"sv__button--selected":!i&&t,sv__selected:t};return(0,Un.A)(s)},H=E&&m.length>0&&m[0].add_comment;return Ml({aid:T,alwaysRender:U,comment:C,isMandatory:y,isPage:i,isRequiredDisclaimerNotAccepted:L,mandatoryComment:w,mandatorySubmitButton:x,screenshotEnabled:null!==(r=null==S?void 0:S.button_enabled)&&void 0!==r&&r,selectedAnswer:E,showCheckbox:R,submit:()=>{if(E){const t=St(Object.assign({answer:E,comment:C,point:e.point},R?{disclaimer_accepted:M}:{}));return e.answer(t),t}return y?null:Et(e.answer)}}),Bl({ref:n,shouldScroll:!H}),(0,Mt.h)("div",{className:(0,Un.A)($)},(0,Mt.h)("div",{className:"sv__numerical-scale__wrapper"},(0,Mt.h)("div",{className:"sv__scroll-container"},c,(0,Mt.h)(Vl,{shouldShow:y,text:a}),(0,Mt.h)("div",{"aria-labelledby":d,className:(0,Un.A)(B),role:"radiogroup"},m.map((t,s)=>(0,Mt.h)("button",{"aria-pressed":t.id===(null==E?void 0:E.id),className:V(t),"data-testid":t.id,key:t.id,onClick:s=>{s.stopPropagation(),(t=>{E||x||t.add_comment||R||l&&!q||y&&(null==S?void 0:S.button_enabled)||!y?P(t):e.answer(St(Object.assign({answer:t,comment:C,point:e.point},R?{disclaimer_accepted:M}:{})))})(t)},type:"button"},((e,t)=>F?0===t&&k?`${e} - ${k}`:t===m.length-1&&A?`${e} - ${A}`:e:e)(t.possible_answer,s)))),!F&&(0,Mt.h)("div",{className:"sv__labels"},k&&(0,Mt.h)("div",{className:"sv__label sv__label--left sv--color-answer"},k),A&&(0,Mt.h)("div",{className:"sv__label sv__label--right sv--color-answer"},A)))),H&&(0,Mt.h)(Jl,{commentFieldLabel:b||"",mandatoryComment:w,ref:n,setComment:e=>{N(e)},textPlaceholder:u,value:C}),j&&(0,Mt.h)(Al,{isDisclaimerAccepted:M,point:v,setIsDisclaimerAccepted:()=>I(!M)}))},Lv=({shape:e})=>{switch(e.toLowerCase()){case L.thumbs:return(0,Mt.h)("svg",{viewBox:"3.90125 3.62625 55.96725 52.51425",xmlns:"http://www.w3.org/2000/svg"},(0,Mt.h)("path",{d:"M45.958 55H19.703V21.919L37.622 4l3.085 3.02c.284.327.52.738.705 1.23.186.492.28.957.28 1.395v.853l-2.823 11.42h14.965c1.29 0 2.434.499 3.43 1.494.995.996 1.493 2.139 1.493 3.43v5.12c0 .306-.028.628-.082.968-.055.339-.137.65-.246.935l-7.746 18.05c-.372.875-1.012 1.608-1.92 2.199-.907.59-1.843.886-2.805.886zM14.78 21.919V55H5V21.919h9.78z",fill:"#D1D2D1","fill-rule":"nonzero"}));case L.stars:return(0,Mt.h)("svg",{viewBox:"4.33125 4.05625 54.3375 50.8875",xmlns:"http://www.w3.org/2000/svg"},(0,Mt.h)("path",{d:"m15.255 55 4.394-18.874L5 23.453l19.317-1.67L31.846 4l7.529 17.784 19.316 1.669-14.649 12.673L48.437 55 31.846 44.984z",fill:"#D1D2D1","fill-rule":"nonzero"}));default:return(0,Mt.h)("svg",{viewBox:"2.78125 2.50625 57.154375 53.431875",xmlns:"http://www.w3.org/2000/svg"},(0,Mt.h)("path",{d:"m31.818 55-3.852-3.46c-4.72-4.259-8.622-7.933-11.707-11.022-3.085-3.09-5.537-5.856-7.358-8.3-1.82-2.445-3.092-4.691-3.816-6.74A18.742 18.742 0 0 1 4 19.193c0-4.328 1.45-7.942 4.35-10.842C11.252 5.45 14.866 4 19.194 4c2.439 0 4.76.523 6.965 1.57 2.204 1.045 4.091 2.543 5.66 4.493 1.64-1.95 3.543-3.448 5.706-4.494A15.69 15.69 0 0 1 44.444 4c4.327 0 7.941 1.45 10.842 4.35 2.9 2.901 4.35 6.515 4.35 10.843 0 2.142-.361 4.237-1.085 6.285-.723 2.049-1.996 4.295-3.816 6.74-1.82 2.444-4.273 5.21-7.358 8.3-3.084 3.089-6.987 6.763-11.707 11.023L31.818 55z",fill:"#D1D2D1","fill-rule":"nonzero"}))}},Dv=e=>{var t,s;const{surveyType:r,isPage:i}=(0,It.NT)(jt.y),o=(0,It.li)(null),{answerRequiredText:n,point:a,value:c,children:l,previewDevice:v,textPlaceholder:_,titleId:u,navigationEnabled:d}=e,{answers:p,settings:m}=a,{shape:h,text_on_the_left:b,text_on_the_right:g,mandatory_submit_button:f,mandatory:y,mandatory_comment:w,comment_label:x,screenshot:S,disclaimer:k,disclaimer_settings:A}=m,T=Se.params.aid,O=p.find(({id:e})=>e===Number(T)),[E,P]=(0,It.J0)((null==c?void 0:c.answer)||O),[C,N]=(0,It.J0)((null==c?void 0:c.comment)||""),[M,I]=(0,It.J0)(void 0),[j,R]=(0,It.J0)(null!==(t=null==c?void 0:c.disclaimer_accepted)&&void 0!==t&&t),{showDisclaimer:L,showCheckbox:D,isRequiredDisclaimerNotAccepted:F}=Cl({disclaimer:k,disclaimer_settings:A,isDisclaimerAccepted:j}),z=fl.isMicroTheme(r),q=v===ul.t.mobile||v!==ul.t.desktop&&yt.A.isWidthMobile(),U=q&&z&&e.point.answers.length>=6,{pointsDisplayed:$}=_e.bX.getStore(r).getState().surveyState,B=1===$.length,V=E&&p.length>0&&p[0].add_comment,H=t=>{E||t.add_comment||f||D||d&&!B||y&&(null==S?void 0:S.button_enabled)||!y?P(t):e.answer(St(Object.assign({answer:t,comment:C,point:e.point},D?{disclaimer_accepted:j}:{})))},W=e=>{I(e)},K={sv__rating:!0,"sv__rating--short":e.point.answers.length<=7,"sv__rating--vertical":U,"sv__short-rating":e.point.answers.length<=7},J={sv__buttons:!0,"sv__buttons--vertical":U,sv__rating__buttons:!0},X=e=>{const t=e<=p.findIndex(({id:e})=>e===(null==E?void 0:E.id)),s=void 0!==M&&e<=M,r={"sv--background-answer-opacity-10":U,"sv-rating":!0,"sv-rating-selected":t||s,sv__button:!0,"sv__button--selected":t||s&&!q};return(0,Un.A)(r)};return Ml({aid:T,alwaysRender:!!d&&!B,comment:C,isMandatory:y,isPage:i,isRequiredDisclaimerNotAccepted:F,mandatoryComment:w,mandatorySubmitButton:f,screenshotEnabled:null!==(s=null==S?void 0:S.button_enabled)&&void 0!==s&&s,selectedAnswer:E,showCheckbox:D,submit:()=>{if(E){const t=St(Object.assign({answer:E,comment:C,point:e.point},D?{disclaimer_accepted:j}:{}));return e.answer(t),t}return y?null:Et(e.answer)}}),Bl({ref:o,shouldScroll:!!V}),(0,Mt.h)("div",{className:(0,Un.A)(K)},(0,Mt.h)("div",{className:"sv__rating__wrapper"},(0,Mt.h)("div",{className:"sv__scroll-container"},l,(0,Mt.h)(Vl,{shouldShow:y,text:n}),(0,Mt.h)("div",{"aria-labelledby":u,className:(0,Un.A)(J),role:"radiogroup"},[...p].map((e,t)=>{const s={current:t,last:p.length-1};return(0,Mt.h)("button",{"aria-label":`${e.possible_answer}`,"aria-pressed":e.id===(null==E?void 0:E.id),className:X(t),"data-testid":e.id,"data-value":e.possible_answer,key:e.id,onBlur:()=>W(void 0),onClick:t=>{t.stopPropagation(),H(e)},onFocus:()=>W(t),onKeyDown:t=>Qc(t,()=>H(e),{preventDefault:!0}),onMouseOut:()=>W(void 0),onMouseOver:()=>W(t),type:"button"},(0,Mt.h)(Lv,{shape:h}),(0,Mt.h)("div",{className:"sv__rating__number sv-color-fa sv--color-answer"},(0,Mt.h)(Hl,Object.assign({},U&&{content:{highestValueText:g,lowestValueText:b}},{answer:e.possible_answer,indexes:s}))))})),!U&&(0,Mt.h)("div",{className:"sv__labels sv-color-fw sv--color-answer"},b&&(0,Mt.h)("div",{className:"sv__label sv__label--left sv--color-answer"},b),g&&(0,Mt.h)("div",{className:"sv__label sv__label--right sv--color-answer"},g)))),V&&(0,Mt.h)(Jl,{commentFieldLabel:x||"",mandatoryComment:w,ref:o,setComment:e=>{N(e)},textPlaceholder:_,value:C}),L&&(0,Mt.h)(Al,{isDisclaimerAccepted:j,point:a,setIsDisclaimerAccepted:()=>R(!j)}))},Fv=({smileyIcon:e,imageUrl:t})=>{if(!e)throw new Error("Invalid Smiley Type");return(0,Mt.h)("div",{"aria-label":e.ariaLabel,className:`sv__smiley-scale__icon-container ${e.className}`,"data-testid":e.ariaLabel,role:"img",style:{backgroundImage:`url(${t})`}})};var zv;!function(e){e.verySad="emojiAngry.png",e.sad="emojiSad.png",e.neutral="emojiNeutral.png",e.happy="emojiSmile.png",e.veryHappy="emojiHeartEyes.png"}(zv||(zv={}));const qv={[z.verySad]:{ariaLabel:"very sad",className:"sv__very-sad",imagePath:`/images/${zv.verySad}`},[z.sad]:{ariaLabel:"sad",className:"sv__sad",imagePath:`/images/${zv.sad}`},[z.neutral]:{ariaLabel:"neutral",className:"sv__neutral",imagePath:`/images/${zv.neutral}`},[z.happy]:{ariaLabel:"happy",className:"sv__happy",imagePath:`/images/${zv.happy}`},[z.veryHappy]:{ariaLabel:"very happy",className:"sv__very-happy",imagePath:`/images/${zv.veryHappy}`}},Uv=e=>{const{surveyType:t,isPage:s}=(0,It.NT)(jt.y),{answerRequiredText:r,titleId:i,point:{answers:o,settings:{text_on_the_left:n,text_on_the_right:a,mandatory_submit_button:c,mandatory:l,mandatory_comment:v,comment_label:_,screenshot:u,disclaimer:d,disclaimer_settings:p}},value:m,point:h,children:b,navigationEnabled:g,textPlaceholder:f}=e,y=Se.params.aid,w=o.find(({id:e})=>e===Number(y)),x=(0,It.li)(null),[S,k]=(0,It.J0)((null==m?void 0:m.answer)||w),[A,T]=(0,It.J0)((null==m?void 0:m.comment)||""),[O,E]=(0,It.J0)((null==m?void 0:m.disclaimer_accepted)||!1),{showDisclaimer:C,showCheckbox:N,isRequiredDisclaimerNotAccepted:M}=Cl({disclaimer:d,disclaimer_settings:p,isDisclaimerAccepted:O}),{pointsDisplayed:I}=_e.bX.getStore(t).getState().surveyState,j=1===I.length,R=!!S&&o.length>0&&o[0].add_comment,L=t=>{S||t.add_comment||R||c||N||g&&!j||l&&(null==u?void 0:u.button_enabled)||!l?k(t):e.answer(St(Object.assign({answer:t,comment:A,point:e.point},N?{disclaimer_accepted:O}:{})))},D={"sv__smiley-scale":!0,"sv__three-smileys":3===e.point.answers.length},F=e=>{const t={sv__selected:e.id===(null==S?void 0:S.id),"sv__smiley-scale__button":!0,[`sv__btn-${e.possible_answer.split(" ").join("_")}`]:!0};return(0,Un.A)(t)},q=e=>{const t={[z.happy]:3===o.length?`/images/${zv.veryHappy}`:`/images/${zv.happy}`,[z.neutral]:`/images/${zv.neutral}`,[z.sad]:3===o.length?`/images/${zv.verySad}`:`/images/${zv.sad}`,[z.veryHappy]:`/images/${zv.veryHappy}`,[z.verySad]:`/images/${zv.verySad}`};return`${P.getState().surveysStaticUrl}${t[e]||""}`};return Ml({aid:y,alwaysRender:!!g&&!j,comment:A,isMandatory:l,isPage:s,isRequiredDisclaimerNotAccepted:M,mandatoryComment:v,mandatorySubmitButton:c,screenshotEnabled:!!(null==u?void 0:u.button_enabled),selectedAnswer:S,showCheckbox:N,submit:()=>{if(S){const t=St(Object.assign({answer:S,comment:A,point:e.point},N?{disclaimer_accepted:O}:{}));return e.answer(t),t}return l?null:Et(e.answer)}}),Bl({ref:x,shouldScroll:R}),(0,Mt.h)("div",{className:(0,Un.A)(D)},(0,Mt.h)("div",{className:"sv__smiley-scale__wrapper"},(0,Mt.h)("div",{className:"sv__scroll-container"},b,(0,Mt.h)(Vl,{shouldShow:l,text:r}),(0,Mt.h)("div",{"aria-labelledby":i,className:"sv__smiley-scale__buttons",role:"radiogroup"},o.map(e=>(0,Mt.h)("button",{"aria-label":`${e.possible_answer}`,"aria-pressed":e.id===(null==S?void 0:S.id),className:F(e),"data-testid":e.id,key:e.id,onClick:t=>{t.stopPropagation(),L(e)},onKeyDown:t=>Qc(t,()=>L(e),{preventDefault:!0}),type:"button"},(0,Mt.h)(Fv,{imageUrl:q(e.possible_answer),smileyIcon:qv[e.possible_answer]})))),(0,Mt.h)("div",{className:"sv__labels sv-color-fw"},n&&(0,Mt.h)("div",{className:"sv__label sv__label--left sv--color-answer"},n),a&&(0,Mt.h)("div",{className:"sv__label sv__label--right sv--color-answer"},a)))),R&&(0,Mt.h)(Jl,{commentFieldLabel:_||"",mandatoryComment:v,ref:x,setComment:e=>{T(e)},textPlaceholder:f,value:A}),C&&(0,Mt.h)(Al,{isDisclaimerAccepted:O,point:h,setIsDisclaimerAccepted:()=>E(!O)}))},$v=({warningText:e})=>(0,Mt.h)("div",{className:"sv__notification-banner"},(0,Mt.h)("span",{className:"sv__notification-banner__text"},e)),Bv=()=>(0,Mt.h)("div",{className:"sv__dot-loader-container sv--border-top-color-question-20"},(0,Mt.h)("div",{className:"sv__dot-loader"},[1,2,3].map(e=>(0,Mt.h)("div",{className:"sv__dot-loader__dot sv--background-button",key:`dot-${e}`})))),Vv=/\{\{\s?([a-z]+)(?:\.([a-zA-Z0-9_-]+))?(?::([a-z0-9_-]+))?(?:\s?\|\s?"([^"]*)")?\s?\}\}/g;var Hv,Wv;!function(e){e.visitor="visitor",e.answer="answer"}(Hv||(Hv={}));class Kv{static replaceTags(e,t){return t.replace(Vv,(t,s,r,i,o="")=>{let n;switch(s){case Hv.visitor:n=this.getVisitorAttributeForMergeTag(e,r);break;case Hv.answer:n=this.getAnswer(e,parseInt(i,10));break;default:n=""}return n||o})}static getVisitorAttributeForMergeTag(e,t){const s=((e,t)=>{var s;const{visitor:r}=an.getState();return null===(s=r.attributes[t])||void 0===s?void 0:s.value})(0,t);return void 0===s?"":Tr(s)}static getAnswer(e,t){return Te.getVisit(e).getAnswer(t)}}!function(e){e[e.question=0]="question",e[e.description=1]="description"}(Wv||(Wv={}));const Jv=({id:e,text:t,type:s,allowHTML:r=!0})=>{const{surveyType:i}=(0,It.NT)(jt.y),o=s===Wv.question,n=s===Wv.description,a={"sv--color-question":o||n,"sv__point-description sv-color-description":n,"sv__point-question sv-color-question":o,"sv__point-text":!0};if(!r){const s=/&/g,r="&",o=t.replace(s,r);return(0,Mt.h)("div",{className:(0,Un.A)(a),id:e},Kv.replaceTags(i,o))}return(0,Mt.h)(gl,{className:(0,Un.A)(a),content:Kv.replaceTags(i,t),id:e})},Xv={answer:"",followUpAnswerLength:0,question:""},Gv=({characterCount:e=0})=>{const t=(0,Un.A)({"sv--color-answer":!0,"sv__text-input-stats":!0});return(0,Mt.h)("div",{className:t},(0,Mt.h)("span",{className:"sv__text-input-stats-text"},e,"/",1e3))},Yv=({characterCount:e,content:t,edits:s,isLastWithNoFollowUps:r,loading:i,onInput:o,question:n,textClasses:a})=>{const c=(0,It.li)(null),l=(0,tl.B)(il.Q.EDITS);if(Bl({ref:c,shouldScroll:!t&&n.length>0}),!n)return null;const v=Object.assign(Object.assign({},a),{"sv__textarea--disabled":i}),_=!r&&!s&&!!t.length;return(0,Mt.h)("div",{className:"sv__follow-up sv__point-texts sv__point-texts-wrapper sv--border-top-color-question-20"},(0,Mt.h)(Jv,{text:n,type:Wv.question}),(0,Mt.h)("div",{className:"sv__text-container"},(0,Mt.h)("textarea",{"aria-label":`${n}${s>0?`(${s} ${l})`:""}`,className:(0,Un.A)(v),"data-gramm_editor":"false","data-testid":"text-area",disabled:i||_,maxLength:1e3,onInput:e=>{o(e)},readOnly:i||_,ref:c,style:{cursor:i?"not-allowed":"auto"},value:t}),!r&&(0,Mt.h)(Gv,{characterCount:e})))},Qv=({message:e,condition:t=!0})=>{const s=(0,It.li)(null);return(0,It.vJ)(()=>{t&&s.current&&(s.current.textContent=e)},[e,t]),(0,Mt.h)("div",{"aria-atomic":"true","aria-live":"assertive",className:"sr-only",ref:s,role:"status"})};var Zv=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const e_=e=>Zv(void 0,[e],void 0,function*({dialogs:e,language:t="en",workspaceKey:s}){var r;try{const i=yield window.fetch("https://respondent.survicate.com/boosted-questions/generate-questions",{body:JSON.stringify({dialogs:e,language:t,workspace_key:s}),headers:{"Content-Type":"application/json"},method:"POST"});if(403===(null==i?void 0:i.status)||429===(null==i?void 0:i.status)||500===(null==i?void 0:i.status))return null;const o=yield i.json();return null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.question}catch(e){return console.error("Error generating questions:",e),null}});var t_=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const s_=(e,t)=>{var s;switch(t.type){case"setContent":return Object.assign(Object.assign({},e),{answerLength:t.payload.length,content:t.payload,error:!1});case"setError":return Object.assign(Object.assign({},e),{error:t.payload});case"setLoading":return Object.assign(Object.assign({},e),{loading:t.payload});case"setDisclaimerAccepted":return Object.assign(Object.assign({},e),{isDisclaimerAccepted:t.payload});case"setLastEditedFollowUpIndex":return Object.assign(Object.assign({},e),{lastEditedFollowUpIndex:t.payload});case"updateFollowupAnswer":{const{index:r,answer:i,followUpAnswerLength:o}=t.payload;if(r>=(null===(s=e.followUps)||void 0===s?void 0:s.length))return e;const n=[...e.followUps];return n[r]=Object.assign(Object.assign({},n[r]),{answer:i,followUpAnswerLength:o}),Object.assign(Object.assign({},e),{followUps:n})}case"addFollowup":return Object.assign(Object.assign({},e),{followUps:[...e.followUps,Object.assign(Object.assign({},Xv),{question:t.payload})]});case"resetAllFollowups":return Object.assign(Object.assign({},e),{followUps:[]});case"resetFollowupsAfterIndex":{const s=t.payload;return Object.assign(Object.assign({},e),{followUps:[...e.followUps.slice(0,s+1)]})}case"decrementRemainingEdits":return Object.assign(Object.assign({},e),{remainingEdits:e.remainingEdits-1});case"setFollowUpQuestions":return Object.assign(Object.assign({},e),{followUpQuestions:t.payload});case"setRemainingEdits":return Object.assign(Object.assign({},e),{remainingEdits:t.payload});default:return e}},r_=({answer:e,answerRequiredText:t,point:s,textPlaceholder:r,titleId:i,children:o,value:n})=>{var a,c,l,v,_,u,d;const{surveyType:p,isPage:m,isPreview:h,workspaceKey:b}=(0,It.NT)(jt.y),g=Bn(),{surveyState:{survey:f,translationLanguage:y}}=_e.bX.getStore(p).getState(),{settings:{disclaimer:w,disclaimer_settings:x,mandatory:S,followup_questions:k=null}}=s,A={answerLength:null!==(a=null==n?void 0:n.answer.length)&&void 0!==a?a:0,content:null!==(c=null==n?void 0:n.answer)&&void 0!==c?c:"",error:!1,followUpQuestions:k,followUps:null!==(l=null==n?void 0:n.follow_ups)&&void 0!==l?l:[],isDisclaimerAccepted:null!==(v=null==n?void 0:n.disclaimer_accepted)&&void 0!==v&&v,lastEditedFollowUpIndex:null,loading:!1,pointId:s.id,remainingEdits:null!==(d=null!==(_=null==n?void 0:n.remaining_edits)&&void 0!==_?_:null===(u=null==f?void 0:f.settings)||void 0===u?void 0:u.followup_limit)&&void 0!==d?d:10},[T,O]=(0,It.WO)(s_,A),{error:E,content:P,isDisclaimerAccepted:C,loading:N,followUps:M,followUpQuestions:I,lastEditedFollowUpIndex:j,remainingEdits:R}=T,{showDisclaimer:L,showCheckbox:D,isRequiredDisclaimerNotAccepted:F}=Cl({disclaimer:w,disclaimer_settings:x,isDisclaimerAccepted:C}),z=(0,tl.B)(),q=e=>{O({payload:e,type:"setLoading"})},U=e=>{O({payload:e,type:"addFollowup"})},$=t=>{const r={anonymizedTextResponse:"",answers:[{content:t,nextSurveyPointId:s.settings.next_survey_point_id,user_tag:s.settings.user_tag}],textResponse:t,value:Object.assign(Object.assign({answer:t},D?{disclaimer_accepted:C}:{}),{follow_ups:M,remaining_edits:R})};return e(r),r},B={"sv--background-answer-opacity-10":!0,"sv--color-answer":!0,"sv-border-color-main":m,"sv-invalid":E,"sv__has-followup-questions":!!k,"sv__text-question":!0,sv__textarea:!0,"sv__textarea--disabled":N},V=(0,It.li)(null),H=(0,It.li)(M.length),[W,K]=(0,It.J0)({condition:!1,message:""});(0,It.vJ)(()=>{if(H.current!==M.length){const e=M.length>H.current;K({condition:!0,message:e?z[il.Q.FOLLOWUP_ADDED]:z[il.Q.FOLLOWUP_REMOVED]}),H.current=M.length;const t=setTimeout(()=>{K(e=>Object.assign(Object.assign({},e),{condition:!1}))},0);return()=>clearTimeout(t)}},[M.length,z]),(0,It.vJ)(()=>{h&&k!==I&&O({payload:k,type:"setFollowUpQuestions"})},[k,I,h]),(0,It.vJ)(()=>{var e;(null===(e=V.current)||void 0===e?void 0:e.value)&&Kl(V.current)},[]);const J=S&&(!P.trim()||I&&M.some(e=>{var t;return!(null===(t=e.answer)||void 0===t?void 0:t.trim())}));Ml({alwaysRender:!0,isMandatory:S,isRequiredDisclaimerNotAccepted:F,selectedAnswer:J?null:{add_comment:!1},submit:()=>{var e,t,r;const i=null!==(e=null==P?void 0:P.trim())&&void 0!==e?e:"";if(i.length&&I){const e=M.filter(e=>e.question.length),o=(null==e?void 0:e.length)<I||R&&j&&j<I,n=M[M.length-1],a=n&&!n.followUpAnswerLength;if(!R||a&&!S)return $(i);if(o)return g.skipClearState(),O({type:"decrementRemainingEdits"}),(e=>{t_(void 0,[e],void 0,function*({trimmedContent:e,content:t,pointContent:s,followUps:r,translationLanguage:i,workspaceKey:o,answerText:n,setLoading:a,addFollowUpQuestion:c}){var l;const v={dialogs:[{answer:t,question:s}],language:i,workspaceKey:o};if(r.length&&r[0].question.length){const e=[...r].filter(e=>e.question.length).pop();if(!(null===(l=null==e?void 0:e.answer)||void 0===l?void 0:l.length))return;v.dialogs.push({answer:e.answer,question:e.question})}a(!0);try{const t=yield e_(v);if(!t)return void n(e);c(t)}finally{a(!1)}})})({addFollowUpQuestion:U,answerText:$,content:P,followUps:M,pointContent:s.content,setLoading:q,translationLanguage:h?null!=y?y:"en":bt(f),trimmedContent:i,workspaceKey:h?null!=b?b:"":null!==(r=null===(t=window._svc)||void 0===t?void 0:t.workspaceKey)&&void 0!==r?r:""}),null}return S&&(!i||I&&M.some(e=>{var t;return!(null===(t=e.answer)||void 0===t?void 0:t.trim())}))?(g.skipClearState(),O({payload:!0,type:"setError"}),(()=>{const e=document.querySelector(".sv__survey textarea");e&&e.focus()})(),null):$(i)}});const X="You've reached the limit of available answer edits";return(0,Mt.h)("div",{className:"sv__text-question sv__text-question-wrapper"},(0,Mt.h)("div",{className:"sv__scroll-container"},o,(0,Mt.h)("div",{className:"sv__text-container"},(0,Mt.h)(wl,{invalid:E,type:"text"},(0,Mt.h)(Vl,{shouldShow:S,text:t}),(0,Mt.h)("textarea",{"aria-label":`${s.content} ${S?z[il.Q.ANSWER_REQUIRED]:""}${k?` (${R} ${z[il.Q.EDITS]})`:""}`,"aria-labelledby":i,className:(0,Un.A)(B),"data-gramm_editor":"false","data-testid":"text-area",disabled:N||!R&&!!P.length,maxLength:k?1e3:void 0,onInput:e=>{(e=>{var t;if(e.preventDefault(),N)return;let s="";e.target instanceof HTMLTextAreaElement&&(Kl(e.target),s=e.target.value),O({payload:s,type:"setContent"}),I&&((null===(t=M[0])||void 0===t?void 0:t.question.length)&&O({type:"resetAllFollowups"}),O({payload:0,type:"setLastEditedFollowUpIndex"}))})(e)},placeholder:r,readOnly:N,ref:V,style:{cursor:N?"not-allowed":"auto"},value:P}),k&&(0,Mt.h)(Gv,{characterCount:T.answerLength}))),k&&(0,Mt.h)(Qv,{condition:W.condition,message:W.message}),k&&M.filter(e=>e.question.length).map((e,t)=>(0,Mt.h)(Yv,{characterCount:e.followUpAnswerLength,content:e.answer,edits:R,followUpCount:k,isLastWithNoFollowUps:k===t+1||!R,key:e.question,loading:N,onInput:e=>((e,t)=>{var s;if(e.preventDefault(),N)return;let r="";e.target instanceof HTMLTextAreaElement&&(r=e.target.value),(null===(s=M[t+1])||void 0===s?void 0:s.question.length)&&O({payload:t,type:"resetFollowupsAfterIndex"}),O({payload:t+1,type:"setLastEditedFollowUpIndex"}),O({payload:{answer:r,followUpAnswerLength:r.length,index:t},type:"updateFollowupAnswer"})})(e,t),question:e.question,textClasses:B})),N&&(0,Mt.h)(Bv,null)),!R&&(0,Mt.h)(Mt.Fragment,null,(0,Mt.h)($v,{warningText:X}),(0,Mt.h)(Qv,{condition:!R,message:X})),L&&(0,Mt.h)(Al,{isDisclaimerAccepted:C,point:s,setIsDisclaimerAccepted:()=>O({payload:!C,type:"setDisclaimerAccepted"})}))},i_=({url:e,alt:t,position:s})=>{const[r,i]=(0,It.J0)(!1),[o,n]=(0,It.J0)(!1);(0,It.vJ)(()=>{const e=setTimeout(()=>{n(!0)},200);return()=>clearTimeout(e)},[]);const a={"sv__point-image__container":!0,"sv__point-image__container--loading":!r};return(0,Mt.h)("div",{className:(0,Un.A)(a)},!r&&o&&(0,Mt.h)("div",{className:"sv__spinner"}),(0,Mt.h)("img",{alt:t||"Image",className:`sv__point-image sv__image-position--${s}`,onLoad:()=>{i(!0),n(!1)},src:e}))},o_=[F.smileyScale,F.numericalScale,F.customerSatisfaction,F.single,F.rating,j.nps,F.matrix],n_=e=>{var t;const{surveyType:s}=(0,It.NT)(jt.y),r=vl(s,e.point),{answer:i,close:o,previewDevice:n,value:a,answerRequiredText:c,dropdownPlaceholder:l,navigationEnabled:v,textPlaceholder:_}=e,u={"sv__point-texts":!0,"sv__point-texts--empty":!r.description&&!r.content},d=(0,It.Bi)(),p=(0,Yc.A)(n),m=null===(t=r.settings)||void 0===t?void 0:t.point_image,h=!!(null==m?void 0:m.image.url)&&(p?m.show_on_mobile:m.show_on_desktop),b={"sv__point-texts-wrapper":!0,[`sv__point-texts-wrapper--image-${p?null==m?void 0:m.mobile_position:null==m?void 0:m.desktop_position}`]:!!(null==m?void 0:m.image.url)},g=(0,Mt.h)("div",{className:(0,Un.A)(b)},h&&(0,Mt.h)(i_,{alt:m.image.description,position:m[""+(p?"mobile_position":"desktop_position")],url:m.image.url}),(0,Mt.h)("div",{className:(0,Un.A)(u),"data-testid":"point-texts"},r.description&&(0,Mt.h)(Jv,{text:r.description,type:Wv.description}),r.content&&(0,Mt.h)(Jv,{id:d,text:r.content,type:Wv.question}))),f=`sv__point sv__${r.answer_type}-survey-point`;return(0,It.vJ)(()=>{Il(s,".sv__point")},[r,s]),(0,Mt.h)("div",{className:f,tabIndex:-1},(0,Mt.h)("div",{className:"sv__point-wrapper"},(()=>{const e={[F.single]:iv,[F.multiple]:rv,[F.text]:r_,[F.smileyScale]:Uv,[F.date]:bv,[F.dropdown]:kv,[F.rating]:Dv,[F.numericalScale]:Rv,[F.customerSatisfaction]:av,[j.nps]:Xl,[xt.button]:Dl,[xt.buttonLink]:Dl,[xt.redirect]:$l,[xt.social]:Ul,[xt.thankYouMessage]:$l,[xt.buttonClose]:Dl,[_o.form]:Rl,[F.matrix]:jv}[r.answer_type||r.type];if(!e)return setTimeout(()=>i({anonymizedTextResponse:"",answers:[],textResponse:""})),null;const{answer_type:t}=r,s=[j.nps,F.date,F.numericalScale,F.rating,F.matrix].includes(t);return(0,Mt.createElement)(e,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({answer:i},r.answer_type===xt.buttonClose&&{close:o}),{answerRequiredText:c}),r.answer_type===F.dropdown&&{dropdownPlaceholder:l}),{key:r.id,point:r}),s&&{previewDevice:n}),{titleId:d}),(u=t,o_.includes(u)&&{navigationEnabled:v})),!(e=>[xt.buttonLink,xt.redirect,xt.social,xt.thankYouMessage,_o.form].includes(e))(t)&&{textPlaceholder:_}),{value:a}),[g]);var u})()))};var a_=s(2197);const c_=new class{constructor(){this.MAX_DESKTOP_SURVEY_HEIGHT=664,this.WINDOW_HEIGHT_PERCENTAGE=.9,this.PREVIEW_WINDOW_HEIGHT_PERCENTAGE=.65,this.PREVIEW_IFRAME_OFFSET=100,this.handleTouchMove=e=>{e.preventDefault()}}getSurvey(){return _l('[data-testid="survey"]',l.L0.WidgetSurvey)}lockBodyScroll(){const e=this.getSurvey();e&&e.addEventListener("touchmove",this.handleTouchMove)}removeBodyScrollListeners(){const e=this.getSurvey();e&&e.removeEventListener("touchmove",this.handleTouchMove)}getSurveyMaxHeight(e,t,s){var r,i,o;if((0,Yc.A)(e))return null;const{height:n}=(0,a_.O)(),a=t?"preview":"live",c=(null===(o=null===(i=null===(r=_e.bX.getStore(s).getState().surveyState)||void 0===r?void 0:r.survey)||void 0===i?void 0:i.settings)||void 0===o?void 0:o.place_to_show)===Fe.Ao.fullscreen,l={live:n>this.MAX_DESKTOP_SURVEY_HEIGHT,preview:n-this.PREVIEW_IFRAME_OFFSET>this.MAX_DESKTOP_SURVEY_HEIGHT},v={default:this.MAX_DESKTOP_SURVEY_HEIGHT,live:n*this.WINDOW_HEIGHT_PERCENTAGE,preview:n*this.PREVIEW_WINDOW_HEIGHT_PERCENTAGE};let _=v.default;return l[a]||(_=v[a]),c&&(_=n),_}setSurveyHeight(e,t,s){const r=this.getSurvey();if(!r)return;const i=this.getSurveyMaxHeight(e,t,s);r.style.maxHeight=`${i}px`}};function l_(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,Mt.h)("svg",Object.assign({width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},t),["\n ",(0,Mt.h)("title",{},["icon / basic / arrow forward"]),"\n ",(0,Mt.h)("defs",{},["\n ",(0,Mt.h)("polygon",{id:"svg-ArrowForward-1-iWS0H",points:"12 2 10.2375 3.7625 17.2125 10.75 2 10.75 2 13.25 17.2125 13.25 10.2375 20.2375 12 22 22 12"},[]),"\n "]),"\n ",(0,Mt.h)("g",{id:"svg-ArrowForward-2QtnVG5",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},["\n ",(0,Mt.h)("polygon",{id:"svg-ArrowForward-3jY1JFX",points:"0 0 24 0 24 24 0 24"},[]),"\n ",(0,Mt.h)("mask",{id:"svg-ArrowForward-1zPcJy0",fill:"white"},["\n ",(0,Mt.h)("use",{"xlink:href":"#svg-ArrowForward-1-iWS0H"},[]),"\n "]),"\n ",(0,Mt.h)("use",{id:"svg-ArrowForward-3esRkKp",fill:"#747776","xlink:href":"#svg-ArrowForward-1-iWS0H"},[]),"\n "]),"\n"])}Object.defineProperty(l_,"name",{value:"default",configurable:!0});const v_=({buttonLink:e})=>(0,Mt.h)("a",{className:"sv__branded-footer",href:e,rel:"noopener noreferrer",target:"_blank",title:"Click to go to the Survicate homepage",type:"button"},(0,Mt.h)("div",{className:"sv__branded-footer__content"},(0,Mt.h)("p",{className:"sv__branded-footer__text"}," Your turn to use "),(0,Mt.h)(Vn,{className:"sv__survicate-wordmark"}),(0,Mt.h)(l_,{className:"sv__arrow-forward"}))),__=[xt.buttonLink,xt.redirect,xt.social,xt.thankYouMessage,xt.buttonClose],u_=({buttonLink:e})=>(0,Mt.h)("div",{className:"sv__footer"},(0,Mt.h)("a",{className:(0,Un.A)({sv__footer__button:!0}),href:e,rel:"noopener noreferrer",target:"_blank",title:"Click to go to the Survicate homepage"},(0,Mt.h)("small",{className:"sv__footer__small-text"},"Powered by"),(0,Mt.h)(Vn,null))),d_=e=>{var t;const{hide:s,pointAnswerType:r}=e,{surveyType:i}=(0,It.NT)(jt.y),o=null===(t=_e.bX.getStore(i).getState().surveyState.survey)||void 0===t?void 0:t.id,n=(e=>__.includes(e))(r),a=`https://survicate.com/create-your-website-survey/?utm_source=${"Survey+branding"+(n?"+thank+you+screen":"")}&utm_medium=${i}&utm_content=${window.location.hostname}&utm_term=${o}`,c={"sv__branded-footer--with-border":n&&!s,sv__footer__wrapper:!0};return(0,Mt.h)("div",{className:(0,Un.A)(c)},!s&&(n?(0,Mt.h)(v_,{buttonLink:a}):(0,Mt.h)(u_,{buttonLink:a,"data-testid":"footer"})))},p_=JSON.parse('{"x6":"LEARN MORE","KC":"Thank you for taking part in our survey","rx":"Thanks for completing the survey! 🎉","FY":["Want to create surveys like this and gather feedback from your customers?","Discover how Survicate can help you collect insights in minutes."]}'),m_=({message:e,hideBranding:t})=>{var s;const{surveyType:r}=(0,It.NT)(jt.y),i=Bn(),o=null===(s=_e.bX.getStore(r).getState().surveyState.survey)||void 0===s?void 0:s.id,n=`https://survicate.com/create-your-website-survey/?utm_source=Survey+branding+thank+you+screen&utm_medium=${l.L0.WidgetSurvey}&utm_content=${window.location.hostname}&utm_term=${o}`;return(0,It.vJ)(()=>{i.clearSubmitButtonState()},[i]),(0,Mt.h)("div",{className:"sv__finish-view"},t?(0,Mt.h)("p",{className:"sv__thank-you-message sv--color-question","data-testid":"non-branded-finish-screen-message"},null!=e?e:p_.KC):(0,Mt.h)("div",{className:"sv__branded-finish-view--content"},(0,Mt.h)("p",{className:"sv__introduction","data-testid":"branded-finish-screen-message"},p_.rx),(0,Mt.h)("div",{className:"sv__paragraph__container"},p_.FY.map(e=>(0,Mt.h)("p",{className:"sv__paragraph__item",key:e.substring(0,3)},e))),(0,Mt.h)("img",{alt:"Survey completed logo",className:"sv__finish-logo",src:`${P.getState().surveysStaticUrl}/images/mobileCompleted.svg`})),!t&&(0,Mt.h)("div",{className:"sv__simple-link-button__wrapper"},(0,Mt.h)(ta,{buttonLink:n,buttonText:p_.x6})))},h_=e=>{const{avatar_image:t,children:s,company_logo:r,completionRate:i,personalization:o,className:n,short_text_message:a,showProgressBar:c,isFinished:l,hideBranding:v}=e,_={"sv--color-question":!0,"sv__micro-top-bar":!0,"sv__micro-top-bar--branded":!v,"sv__micro-top-bar--flat":![r,t,a].some(e=>!!e),"sv__micro-top-bar--with-logo":!!r,[e.className]:!!n,"sv__micro-top-bar--with-personalization":!!r||!!a};return(0,Mt.h)("div",{className:(0,Un.A)(_)},(0,Mt.h)("div",{className:"sv__micro-top-bar__row"},l&&!v&&(0,Mt.h)("img",{alt:"Survicate logo",className:"sv__survicate__logo",src:`${P.getState().surveysStaticUrl}/images/surviLogoDark.svg`}),r&&(0,Mt.h)("img",{alt:"Company logo",className:"sv__micro-top-bar__logo",src:r}),o&&(0,Mt.h)("div",{className:"sv__micro-top-bar__personalization"},t&&(0,Mt.h)("img",{alt:"Survey top bar avatar",className:"sv__micro-top-bar__logo sv__micro-top-bar__avatar",src:t}),a&&(0,Mt.h)("div",{className:"sv__micro-top-bar__short-text"},a)),s),!l&&c&&(0,Mt.h)(Hn,{"data-testid":"progress-bar",progress:i}))};class b_{static MicroThemeSettings(e){const{theme:t}=_e.bX.getStore(e).getState().surveyState;return(null==t?void 0:t.settings)||null}static getWidgetSurveyClasses(e){return{"sv__position-center":e===Fe.Ao.center,"sv__position-left":e===Fe.Ao.left,"sv__position-right":e===Fe.Ao.right,"sv__position-top-left":e===Fe.Ao.topLeft,"sv__position-top-right":e===Fe.Ao.topRight}}static getMobileSurveyClasses(e,t){return{"sv__mobile-survey":!0,"sv__position-fullscreen":t===Fe.Ao.fullscreen,"sv__survey--with-footer":e}}static getFeedbackSurveyClasses(e,t){return{"sv__feedback-survey":!0,"sv__feedback-survey--mobile":e,"sv__position-center-left":t===Fe.Ao.left,"sv__position-center-right":t===Fe.Ao.right}}static printSurveyClasses(e){var t;if(!e)return"";const{surveyState:{survey:s,pointsDisplayed:r,isFinished:i,isRTLLanguage:o,isHidden:n},previewDevice:a}=_e.bX.getStore(e).getState();if(!(null==s?void 0:s.settings))return"";const{settings:c}=s,v=c,_=v.place_to_show,u=!v.hide_footer,d=null===(t=r[r.length-1])||void 0===t?void 0:t.point.answer_type,p=e===l.L0.MobileSurvey,m=(0,Yc.A)(a),h={"sv--background-main":!0,"sv-bg-bw":!0,"sv__micro-theme":!0,"sv__position-mobile":p||m,"sv__rtl-lang":o,sv__survey:!0,"sv__survey--branded":u,"sv__survey--finished":!p&&i,[`sv__survey--${d}`]:!!d,"sv__survey--hidden":n},b={[l.L0.WidgetSurvey]:this.getWidgetSurveyClasses(_),[l.L0.MobileSurvey]:this.getMobileSurveyClasses(u,_),[l.L0.FeedbackButton]:this.getFeedbackSurveyClasses(m,_)},g=Object.assign(Object.assign({},h),b[e]||{});return(0,Un.A)(g)}}const g_=e=>{var t;const s=(0,It.li)(!1),r=(0,It.li)(!0),i=(0,It.Kr)(()=>({current:"",next:""}),[]),[o,n]=(0,It.J0)(e.surveyPoint),[a,c]=(0,It.J0)(null),[l,v]=(0,It.J0)(i),{isPreview:_,surveyType:u}=(0,It.NT)(jt.y),d=_e.bX.getStore(u),{surveyState:p}=d.getState();(0,It.vJ)(()=>{r.current||n(e.surveyPoint)},[e.surveyPoint]);(0,It.vJ)(()=>{var t;r.current?r.current=!1:e.surveyPoint&&e.previousPoint&&!s.current&&(e.previousPoint,t=e.surveyPoint,s.current||(s.current=!0,c(t),v({current:"sv__survey--slide-out",next:"sv__survey--slide-in"}),d.setState({surveyState:Object.assign(Object.assign({},p),{isAnimationActive:!0})}),setTimeout(()=>{n(t),c(null),v(i),d.setState({surveyState:Object.assign(Object.assign({},p),{isAnimationActive:!1})}),s.current=!1},400)))},[null===(t=e.surveyPoint)||void 0===t?void 0:t.point.id]);const m=Object.assign(Object.assign({},e),{className:l.current,close:()=>{v({current:"sv__survey--slide-down",next:i.next}),setTimeout(()=>{_?(bn(p,u),gn(p,u)):e.close(),v(i)},400)},surveyPoint:o}),h=Object.assign(Object.assign({},e),{className:l.next,surveyPoint:a});return(0,Mt.h)(Mt.Fragment,null,a&&(0,Mt.h)(f_,Object.assign({},h)),o&&(0,Mt.h)(f_,Object.assign({},m)))},f_=({className:e,close:t,completionRate:s,isFinished:r,microThemeSettings:i,pointAnswer:o,pointsDisplayed:n,pointsForward:a,previewDevice:c,survey:v,surveyPoint:_,translations:u,translationLanguage:d,toggleMinimize:p,navigateBackward:m,navigationEnabled:h,isMinimized:b,isScreenshotEnabled:g,isTabActive:f})=>{var y,w,x,S,k,A;const{isPreview:T,surveyType:O}=(0,It.NT)(jt.y),E=_e.bX.getStore(O),P=Bn();if(!v)return null;const C=(0,It.hb)(Ps(()=>{c_.setSurveyHeight(c,T,O)},100),[c,T]),N=e=>{const t=e.composedPath(),s=t.some(e=>e instanceof HTMLElement&&"sv-screenshot-controls"===e.id),r=e.composedPath().some(e=>{var t,s;return e instanceof HTMLElement&&((null===(t=e.classList)||void 0===t?void 0:t.contains("sv__language-selector"))||(null===(s=e.closest)||void 0===s?void 0:s.call(e,".sv__language-selector")))});if(Z.current&&(T&&t.includes(Z.current)||!T&&(Z.current.contains(e.target)||r)||s))return;t.some(e=>e instanceof HTMLElement&&e.className.includes("survicate-box-"))||!b&&(null==v?void 0:v.settings.show_minimize)&&p(!0)},{show_progress_bar:M,show_close:I,show_minimize:j,hide_footer:R,show_language_selector:L,languages:D,survey_language:z}=v.settings,q=rl({defaultLanguage:z||bt(v),isPreview:T,languages:null!=D?D:[],surveyId:v.id,translations:u}),U=r&&!wi(n),$=function(e){const{hasLanguages:t,isFinishScreenOrView:s,showLanguageSelectorSetting:r}=e;return!!r&&!!t&&!s}({hasLanguages:q.length>1,isFinishScreenOrView:U,showLanguageSelectorSetting:L}),B=Yn(O,v),{answer_required_text:V,dropdown_placeholder:H,thankyou_text:W,text_placeholder:K,screenshot_save_text:J,screenshot_delete_tooltip_text:X,screenshot_take_tooltip_text:G,drag_and_draw_tooltip_text:Y}=B,Q=`${e?` ${e}`:""}${f?" sv__outline":""}`,Z=(0,It.li)(null),ee=1===n.length,te=ee&&(!a||0===a.length);(0,It.vJ)(()=>{P.updateSurveyConfig({backButtonText:B.navigation_back_text,hasNavigationButtons:h,isFirstSurveyPoint:ee,isInitialView:te,submitButtonText:B.submit_text})},[v,_,n,a,h,B,O,ee,te]),(0,It.vJ)(()=>{!T&&v&&v.activated&&v.points.length&&(_e.bX.getStore(O).action(di)({surveyId:v.id,surveyName:v.name}),qt({eventType:Nt.opened,options:{surveyId:v.id},surveyType:O}))},[]),(0,It.vJ)(()=>(window.addEventListener("resize",C),C(),()=>{window.removeEventListener("resize",C)}),[C]),(0,It.vJ)(()=>{C(),c_.removeBodyScrollListeners(),(null==_?void 0:_.point.answer_type)===F.date&&c_.lockBodyScroll()},[C,_]),(0,It.vJ)(()=>{if(T){const e=document.querySelector('[data-testid="surveyPreviewContainer"]');if(!(null==e?void 0:e.matches(":focus-within")))return}if(f&&Z.current){const e=Z.current.querySelector('input, button, [tabindex="0"]');e&&e.focus()}},[f,_,T]),(0,It.vJ)(()=>(O===l.L0.FeedbackButton&&(null==v?void 0:v.settings.show_minimize)&&window.addEventListener("click",N),()=>{window.removeEventListener("click",N)}),[Z]);const se=(g||T)&&(null===(x=null===(w=null===(y=null==_?void 0:_.point)||void 0===y?void 0:y.settings)||void 0===w?void 0:w.screenshot)||void 0===x?void 0:x.button_enabled)&&!r,re={"sv--border-top-color-question-20":se,"sv__submit-screenshot-button-container":se},ie=!!_&&(sl(null===(S=null==_?void 0:_.point)||void 0===S?void 0:S.settings)||(null===(A=null===(k=null==_?void 0:_.point)||void 0===k?void 0:k.settings)||void 0===A?void 0:A.consent));return _?(0,Mt.h)("div",{"aria-label":(0,tl.B)(il.Q.SURVEY),"aria-modal":"true",className:`${b_.printSurveyClasses(O)}${Q}`,"data-testid":O===l.L0.FeedbackButton?"feedback-button-survey":"survey",lang:null!=d?d:"en",ref:Z,role:"dialog"},(0,Mt.h)(h_,Object.assign({},i,{className:`sv__${_.point.answer_type}__micro-top-bar`,completionRate:s,hideBranding:R,isFinished:r,showProgressBar:!r&&M}),(0,Mt.h)("div",{className:"sv__micro-top-bar__actions"},$&&(0,Mt.h)(Bc,{currentLanguage:d,defaultLanguage:null!=z?z:null,languages:q,onLanguageChange:e=>E.action(hn)(e)}),(0,Mt.h)(ll,{close:t,showCloseBtn:r||!!I,showLanguageSelector:$,showMinimizeBtn:!r&&!!j,toggleMinimize:()=>p(!0)}))),U?(0,Mt.h)(m_,{hideBranding:R,message:W}):(0,Mt.h)(n_,{answer:o,answerRequiredText:V,close:t,dropdownPlaceholder:H,navigationEnabled:h,point:_.point,previewDevice:c,textPlaceholder:K,value:_.value}),ie&&(0,Mt.h)("div",{className:"sv__disclaimer-container",id:`survey-disclaimer-container-${_.point.id}`}),(0,Mt.h)("div",{className:(0,Un.A)(re)},se&&(0,Mt.h)(Wc,{deleteScreenshotText:X,dragTooltipText:Y,isPreview:T,pointId:_.point.id,saveButtonText:J,takeScreenshotText:G}),(0,Mt.h)(el,{close:t,navigateBackward:m})),(0,Mt.h)(d_,{hide:r||R,pointAnswerType:_.point.answer_type})):null},y_=(0,ac.N)(({previewDevice:e,storeType:t,surveyState:{pointsDisplayed:s,pointsForward:r,screenshotState:i,isFinished:o,survey:n,isMinimized:a,isHidden:c,isRTLLanguage:l,translationLanguage:v,translations:_,isTabActive:u}})=>{var d,p,m;return{completionRate:Pt(s),isFinished:o,isHidden:c,isMinimized:a,isRTLLanguage:l,isScreenshotEnabled:null!==(d=null==i?void 0:i.isEnabled)&&void 0!==d&&d,isTabActive:null!=u&&u,microThemeSettings:b_.MicroThemeSettings(t),navigationEnabled:null!==(m=null===(p=null==n?void 0:n.settings)||void 0===p?void 0:p.navigation_enabled)&&void 0!==m&&m,pointsDisplayed:s,pointsForward:r,previewDevice:e,previousPoint:s[s.length-2],storeType:t,survey:n,surveyPoint:s[s.length-1],translations:_,translationLanguage:v}},yc)(e=>e.storeType===l.L0.MobileSurvey?(0,Mt.h)(g_,Object.assign({},e)):(0,Mt.h)(f_,Object.assign({},e))),w_=y_;function x_(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,Mt.h)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},t),["\n ",(0,Mt.h)("defs",{},["\n ",(0,Mt.h)("path",{id:"svg-arrow-forward-1HGzT8b",d:"M10 0 8.238 1.762l6.975 6.988H0v2.5h15.213l-6.975 6.988L10 20l10-10z"},[]),"\n "]),"\n ",(0,Mt.h)("g",{fill:"none","fill-rule":"evenodd"},["\n ",(0,Mt.h)("path",{d:"M0 0h24v24H0z"},[]),"\n ",(0,Mt.h)("g",{transform:"translate(2 2)"},["\n ",(0,Mt.h)("mask",{id:"svg-arrow-forward-2GksUkA",fill:"#fff"},["\n ",(0,Mt.h)("use",{"xlink:href":"#svg-arrow-forward-1HGzT8b"},[]),"\n "]),"\n ",(0,Mt.h)("use",{fill:"#29292A","xlink:href":"#svg-arrow-forward-1HGzT8b"},[]),"\n ",(0,Mt.h)("path",{fill:"#29292A",mask:"url(#svg-arrow-forward-2GksUkA)",d:"M-2-2h24v24H-2z"},[]),"\n "]),"\n "]),"\n"])}function S_(e){e.styles;var t=Object.assign({},e);return delete t.styles,(0,Mt.h)("svg",Object.assign({width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),["\n ",(0,Mt.h)("g",{},["\n ",(0,Mt.h)("g",{},["\n ",(0,Mt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.09375 12.0833L0 10.9896L9.41667 1.5625H3.84375V0H12.0729V8.22917H10.5104V2.65625L1.09375 12.0833Z",fill:"currentColor"},[]),"\n "]),"\n "]),"\n"])}Object.defineProperty(x_,"name",{value:"default",configurable:!0}),Object.defineProperty(S_,"name",{value:"default",configurable:!0});const k_=(0,ac.N)(e=>({storeType:e.storeType}),yc)(({close:e,showCloseWhenMinimized:t,tooltipText:s,toggleMinimize:r})=>{const i=(0,tl.B)(),o={[b_.printSurveyClasses(l.L0.WidgetSurvey)]:!0,"sv--color-question":!0,"sv-color-question":!0,sv__minimized:!0},n=!!t&&"function"==typeof e;return(0,Mt.h)("div",{"aria-label":i[il.Q.MINIMIZED_SURVEY],"aria-modal":"true","data-id":"minimized-survey",role:"dialog"},(0,Mt.h)("div",{className:(0,Un.A)(o)},(0,Mt.h)("div",{className:"sv__minimized__expand-area",onClick:()=>r(!1),onFocus:e=>((e,t=".skip-target")=>{if(!e)return;const s=e.target;if(null==s?void 0:s.matches(t))return;const r=e.currentTarget.querySelector(t);null==r||r.focus(),e.stopPropagation()})(e,"sv__minimized-symbol"),onKeyDown:e=>Qc(e,()=>r(!1)),role:"button",tabIndex:0},(0,Mt.h)("div",{className:"sv__minimized__text sv--color-answer"},s)),(0,Mt.h)("div",{className:"sv__minimized__actions"},(0,Mt.h)("button",{"aria-label":i[il.Q.START_SURVEY],className:(0,Un.A)({"sv--background-button":!0,"sv__btn-maximize-plus":!0,"sv__minimized-symbol":!0}),onClick:e=>{e.stopPropagation(),r(!1)},onKeyDown:e=>Qc(e,()=>r(!1)),tabIndex:0,type:"button"},n?(0,Mt.h)(S_,{className:"sv__forward-arrow"}):(0,Mt.h)(x_,{className:"sv__forward-arrow"})),n&&(0,Mt.h)(al,{close:e,minimized:!0},(0,Mt.h)(ol.A,null)))))}),A_=k_;const T_=new class{constructor(){this.urls={[l.L0.FeedbackButton]:Se.getUrl(),[l.L0.WidgetSurvey]:Se.getUrl()},this.intervals={[l.L0.FeedbackButton]:null,[l.L0.WidgetSurvey]:null}}clearInterval(e){const t=this.intervals[e];t&&(clearInterval(t),this.intervals[e]=null)}startInterval(e,t){this.clearInterval(t),this.intervals[t]=window.setInterval(()=>{this.hasUrlChanged(t)&&(this.urls[t]=Se.getUrl(),e())},1e3)}hasUrlChanged(e){return Se.getUrl()!==this.urls[e]}},O_=({toggleMinimize:e,tooltipText:t})=>{const s=(0,It.li)(null),r=(0,tl.B)(),i={[b_.printSurveyClasses(l.L0.FeedbackButton)]:!0,"sv--background-button":!0,"sv__feedback-survey--minimized":!0};return(0,It.vJ)(()=>{var e;(e=s.current)&&e.classList.add("sv__outline")},[]),(0,Mt.h)("div",{"aria-label":r[il.Q.MINIMIZED_SURVEY],"aria-modal":"true",role:"dialog"},(0,Mt.h)("button",{"aria-label":r[il.Q.START_SURVEY],className:(0,Un.A)(i),onClick:()=>e(!1),onKeyDown:t=>Qc(t,()=>e(!1)),ref:s,type:"button"},(0,Mt.h)("div",{className:"sv__feedback-survey__text"},t)))},E_=(0,ac.N)(({previewDevice:e,surveyState:{isMinimized:t,survey:s,theme:r,isTabActive:i,translations:o,translationLanguage:n}})=>{var a,c;return{isMinimized:t,isTabActive:i,previewDevice:e,survey:s,theme:r,tooltipText:null===(c=null===(a=null==s?void 0:s.settings)||void 0===a?void 0:a.messages)||void 0===c?void 0:c.tooltip,translationLanguage:n,translations:o}},yc)(e=>{var t,s;const{isPreview:r,surveyType:i}=(0,It.NT)(jt.y),{survey:o,theme:n,isMinimized:a,close:c,retarget:v,toggleMinimize:_,tooltipText:u}=e,d=(e=>e?fs(e):null)(n),p=Rc(null==n?void 0:n.settings,null!=n?n:void 0,{waitForBackgroundImage:!1}),m=_e.bX.getStore(i),h=null===(t=m.getState().surveyState)||void 0===t?void 0:t.isTabActive,b=()=>{var e;(null==o?void 0:o.settings.close_on_urlchange)&&c();const t=Te.getVisit(i);if(t.setCurrentView(),function(){if("undefined"==typeof window)return;const e=X.getStore(f.VisitorStore),t=Se.getUrl().replace(`${window.location.protocol}//`,""),s=e.get(W.sessionViews),r=Array.isArray(s)?[...s]:[];r.includes(t)||(r.push(t),e.set(W.sessionViews,r))}(),o&&(t.addDisplayedSurvey(null==o?void 0:o.id),null===(e=o.settings)||void 0===e?void 0:e.recurring_max_views)){const e=t.get().displayedSurveys.find(e=>e.surveyId===o.id);(null==e?void 0:e.count)&&e.count>=o.settings.recurring_max_views+1&&c()}Is.startTargeting(i,m.getState().backendData.surveys),v()};(0,It.vJ)(()=>{T_.startInterval(b,i)},[o]);const g={"sv-box-child":!0,[`sv-${e.previewDevice}`]:r&&!!e.previewDevice},y=o?Yn(i,o).tooltip:u,w=(0,It.hb)(e=>{h||m.action(yn)(e)},[h,m]);(0,It.vJ)(()=>{Lc.watchTabs(()=>w(!0))},[w]);const x=i===l.L0.WidgetSurvey?(0,Mt.h)(A_,{close:c,showCloseWhenMinimized:null===(s=null==o?void 0:o.settings)||void 0===s?void 0:s.show_close_when_minimized,tooltipText:y}):(0,Mt.h)(O_,{toggleMinimize:_,tooltipText:y});return(0,Mt.h)("div",{className:(0,Un.A)(g)},!!o&&d&&!p&&(0,Mt.h)(jc,{fontFamily:d,language:bt(o)}),p&&(0,Mt.h)(Mt.Fragment,null,(0,Mt.h)(Fc,null),!!o&&(a?x:(0,Mt.h)(w_,null))))}),P_=E_,C_=(e,t)=>{(null==e?void 0:e.installing)&&t.workspaceKey&&!y.P.isAvailable()&&(0,C.A)(P.getState().respondentUrl).post(`/workspaces/${t.workspaceKey}/installed.json`,{platform:"web"})};var N_=s(5817),M_=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};class I_{constructor(){this.initialized=!1,this.initializationPromise=null}static getInstance(){return I_.instance||(I_.instance=new I_),I_.instance}init(e){return M_(this,void 0,void 0,function*(){var t;if("undefined"!=typeof window){if(!this.initialized)return this.initializationPromise?(console.warn("Survicate initialization is already in progress."),this.initializationPromise):(window._svc=null!==(t=window._svc)&&void 0!==t?t:{initialized:!1,isPreview:!1,workspaceKey:e.workspaceKey},this.initializationPromise=this.initializeSurvicate(e).then(()=>M_(this,void 0,void 0,function*(){yield this.waitForSurvicateReady(),this.initialized=!0})).catch(e=>{console.warn("Survicate could not be initialized due to:",e)}).finally(()=>{this.initializationPromise=null}),this.initializationPromise);console.warn("Survicate is already initialized.")}else console.error("Survicate can only be initialized in a browser environment.")})}initializeSurvicate(e){return M_(this,void 0,void 0,function*(){var t,r,i,o,n,a;const c=yield(0,C.A)("https://survey.survicate.com").get(`/workspaces/${e.workspaceKey}/web_surveys.json`).catch(e=>(console.warn("Error fetching survey data:",e),null));if(!c)return;e.nonce&&(window._sva=null!==(t=window._sva)&&void 0!==t?t:{},window._sva.nonce=e.nonce,s.nc=e.nonce),((e,t)=>{if(!document.head)return;const s="survicate-core-styles";if(document.head.querySelector(`#${s}`))return;const r=document.createElement("style");r.id=s,r.textContent=e,t&&r.setAttribute("nonce",t),document.head.appendChild(r)})(N_.A,e.nonce),Dn({nonce:e.nonce}),window._svd=c.data,Fn(null===(r=window._svd)||void 0===r?void 0:r.themes,{nonce:e.nonce}),window._sva=null!==(i=window._sva)&&void 0!==i?i:{},window._svx=null!==(o=window._svx)&&void 0!==o?o:{},window._svx.installation="survicateWidget",cn(),Oi(ki.normal),e.traits&&(window._sva.traits=e.traits,an.action(ai)(e.traits)),e.responseTraits&&(window._sva.responseTraits=e.responseTraits),e.hiddenSurveys&&(window._sva.hiddenSurveys=e.hiddenSurveys),e.disableTargeting&&(window._sva.disableTargeting=!0),e.disableSensitiveDataPersistence&&(window._sva.disableSensitiveDataPersistence=!0),e.forcedLanguage&&(window._sva.forcedLanguage=e.forcedLanguage),e.themeMode&&(window._sva.themeMode=e.themeMode),C_(window._svd,window._svc);(null===(a=null===(n=window._svd)||void 0===n?void 0:n.surveys)||void 0===a?void 0:a.some(e=>"feedback"===e.settings.format))&&Nc(l.L0.FeedbackButton,(0,Mt.createElement)(P_,{})),Nc(l.L0.WidgetSurvey,(0,Mt.createElement)(P_,{}))})}waitForSurvicateReady(){return new Promise(e=>{const t=()=>{window.removeEventListener("SurvicateReady",t),e()};window.addEventListener("SurvicateReady",t)})}}const j_=I_;var R_=function(e,t,s,r){return new(s||(s=Promise))(function(i,o){function n(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,a)}c((r=r.apply(e,t||[])).next())})};const L_=Object.assign(Object.assign({ApiEvent:Ln,AppearMethod:Rn},jn),{init:e=>R_(void 0,void 0,void 0,function*(){const t=j_.getInstance();yield t.init(e)})}),D_=L_})(),r=r.default})());
|