Regular Expressions 101

Save & Share

  • Regex Version: ver. 3
  • Update Regex
    ctrl+⇧+s
  • Save new Regex
    ctrl+s
  • Add to Community Library

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression

/
/
g

Test String

Substitution

Processing...

Code Generator

Generated Code

# coding=utf8 # the above tag defines encoding for this document and is for Python 2.x compatibility import re regex = r"VUE_APP_API_HOST:\".*?\"" test_str = ("(function(e){function t(t){for(var o,n,s=t[0],c=t[1],d=t[2],u=0,l=[];u<s.length;u++)n=s[u],Object.prototype.hasOwnProperty.call(r,n)&&r[n]&&l.push(r[n][0]),r[n]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);m&&m(t);while(l.length)l.shift()();return i.push.apply(i,d||[]),a()}function a(){for(var e,t=0;t<i.length;t++){for(var a=i[t],o=!0,n=1;n<a.length;n++){var s=a[n];0!==r[s]&&(o=!1)}o&&(i.splice(t--,1),e=c(c.s=a[0]))}return e}var o={},n={app:0},r={app:0},i=[];function s(e){return c.p+\"js/\"+({canvg:\"canvg\",pdfmake:\"pdfmake\",xlsx:\"xlsx\"}[e]||e)+\".\"+{\"chunk-01646568\":\"d22d10ea\",\"chunk-0528787a\":\"2b40975b\",\"chunk-115a172f\":\"80940e35\",\"chunk-2d216c05\":\"46cb8db7\",\"chunk-5a9c7866\":\"e23c563d\",\"chunk-f7579476\":\"4a801de6\",\"chunk-fc35c610\":\"11594f05\",\"chunk-17458494\":\"3fa72149\",\"chunk-17e2c63b\":\"ef79883b\",\"chunk-24d55862\":\"c9b84017\",\"chunk-2d0bae4b\":\"911ed9f0\",\"chunk-2d0e5b47\":\"3653771f\",\"chunk-4ac1f916\":\"7d004d2e\",\"chunk-4f10fbf0\":\"8a34b679\",\"chunk-5e579c98\":\"d795dd4c\",\"chunk-65c8802a\":\"9670f821\",\"chunk-ea50d91e\":\"a70b3c01\",canvg:\"2418c514\",pdfmake:\"84adc8f9\",xlsx:\"9e28db88\"}[e]+\".js\"}function c(t){if(o[t])return o[t].exports;var a=o[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,c),a.l=!0,a.exports}c.e=function(e){var t=[],a={\"chunk-01646568\":1,\"chunk-0528787a\":1,\"chunk-5a9c7866\":1,\"chunk-f7579476\":1,\"chunk-fc35c610\":1,\"chunk-17458494\":1,\"chunk-17e2c63b\":1,\"chunk-24d55862\":1,\"chunk-4ac1f916\":1,\"chunk-4f10fbf0\":1,\"chunk-5e579c98\":1,\"chunk-65c8802a\":1,\"chunk-ea50d91e\":1};n[e]?t.push(n[e]):0!==n[e]&&a[e]&&t.push(n[e]=new Promise((function(t,a){for(var o=\"css/\"+({canvg:\"canvg\",pdfmake:\"pdfmake\",xlsx:\"xlsx\"}[e]||e)+\".\"+{\"chunk-01646568\":\"49f1c817\",\"chunk-0528787a\":\"7c074cdf\",\"chunk-115a172f\":\"31d6cfe0\",\"chunk-2d216c05\":\"31d6cfe0\",\"chunk-5a9c7866\":\"d8179e3e\",\"chunk-f7579476\":\"684b9c3a\",\"chunk-fc35c610\":\"5e1f07fb\",\"chunk-17458494\":\"feb62d46\",\"chunk-17e2c63b\":\"de27691f\",\"chunk-24d55862\":\"3342fd86\",\"chunk-2d0bae4b\":\"31d6cfe0\",\"chunk-2d0e5b47\":\"31d6cfe0\",\"chunk-4ac1f916\":\"b37e1803\",\"chunk-4f10fbf0\":\"4e173aeb\",\"chunk-5e579c98\":\"cbf3e3f3\",\"chunk-65c8802a\":\"488b38a5\",\"chunk-ea50d91e\":\"38f3b147\",canvg:\"31d6cfe0\",pdfmake:\"31d6cfe0\",xlsx:\"31d6cfe0\"}[e]+\".css\",r=c.p+o,i=document.getElementsByTagName(\"link\"),s=0;s<i.length;s++){var d=i[s],u=d.getAttribute(\"data-href\")||d.getAttribute(\"href\");if(\"stylesheet\"===d.rel&&(u===o||u===r))return t()}var l=document.getElementsByTagName(\"style\");for(s=0;s<l.length;s++){d=l[s],u=d.getAttribute(\"data-href\");if(u===o||u===r)return t()}var m=document.createElement(\"link\");m.rel=\"stylesheet\",m.type=\"text/css\",m.onload=t,m.onerror=function(t){var o=t&&t.target&&t.target.src||r,i=new Error(\"Loading CSS chunk \"+e+\" failed.\\n(\"+o+\")\");i.code=\"CSS_CHUNK_LOAD_FAILED\",i.request=o,delete n[e],m.parentNode.removeChild(m),a(i)},m.href=r;var p=document.getElementsByTagName(\"head\")[0];p.appendChild(m)})).then((function(){n[e]=0})));var o=r[e];if(0!==o)if(o)t.push(o[2]);else{var i=new Promise((function(t,a){o=r[e]=[t,a]}));t.push(o[2]=i);var d,u=document.createElement(\"script\");u.charset=\"utf-8\",u.timeout=120,c.nc&&u.setAttribute(\"nonce\",c.nc),u.src=s(e);var l=new Error;d=function(t){u.onerror=u.onload=null,clearTimeout(m);var a=r[e];if(0!==a){if(a){var o=t&&(\"load\"===t.type?\"missing\":t.type),n=t&&t.target&&t.target.src;l.message=\"Loading chunk \"+e+\" failed.\\n(\"+o+\": \"+n+\")\",l.name=\"ChunkLoadError\",l.type=o,l.request=n,a[1](l)}r[e]=void 0}};var m=setTimeout((function(){d({type:\"timeout\",target:u})}),12e4);u.onerror=u.onload=d,document.head.appendChild(u)}return Promise.all(t)},c.m=e,c.c=o,c.d=function(e,t,a){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},c.r=function(e){\"undefined\"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&\"object\"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(c.r(a),Object.defineProperty(a,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)c.d(a,o,function(t){return e[t]}.bind(null,o));return a},c.n=function(e){var t=e&&e.__esModule?function(){return e[\"default\"]}:function(){return e};return c.d(t,\"a\",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p=\"/\",c.oe=function(e){throw console.error(e),e};var d=window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[],u=d.push.bind(d);d.push=t,d=d.slice();for(var l=0;l<d.length;l++)t(d[l]);var m=u;i.push([\"6ccd\",\"chunk-vendors\"]),a()})({\"1caa\":function(e,t,a){},2851:function(e){e.exports=JSON.parse('{\"mainMenu\":{\"about\":\"What is Emotiva?\",\"solutions\":\"Solutions\",\"resources\":\"Resources\",\"support\":\"Support\",\"projects\":\"Projects\",\"myAccount\":\"My Account\",\"logout\":\"Logout\"},\"button\":{\"ok\":\"Ok\",\"previous\":\"Previous\",\"next\":\"Next\",\"proceed\":\"Proceed\",\"change\":\"Change\",\"cancel\":\"Cancel\",\"edit\":\"Edit\",\"close\":\"Close\",\"add\":\"Add\",\"start\":\"Start\",\"save\":\"Save\",\"forgot\":\"Forgotten?\",\"login\":\"Login\",\"createNewProject\":\"Create a new project\",\"viewPrevProjects\":\"View previous projects\",\"selectAudience\":\"Select audience\",\"createAccount\":\"Create Account\",\"chooseFile\":\"Choose file\",\"addMoreInfo\":\"Add more info\",\"readyToGo\":\"Ready to go\",\"saveQuestion\":\"Save question\",\"back\":\"Back\",\"forward\":\"Forward\",\"launchAnalysis\":\"Launch analysis\"},\"dialog\":{\"error\":{\"defaultTitle\":\"An error occured\",\"defaultMessage\":\"Please try again later.\",\"pageNotFoundMessage\":\"Page not found: check that the address is correct.\",\"loginTitle\":\"Access not allowed\",\"loginMessage\":\"Please check that your email and password are correct.\",\"paymentError\":\"Sorry, something went wrong. Please try again.\"}},\"page\":{\"dashboard\":{\"project\":{\"status\":{\"pending\":{\"title\":\"Pending\",\"description\":\"Projects that are still in configuration\",\"emptyList\":\"You have no <span class=\\'font-weight-bold\\'>pending</span> projects\"},\"active\":{\"title\":\"In Progress\",\"description\":\"Projects that are in field, collecting data\",\"emptyList\":\"You have no <span class=\\'font-weight-bold\\'>active</span> projects\"},\"closed\":{\"title\":\"Completed Studies\",\"description\":\"\",\"emptyList\":\"You have no <span class=\\'font-weight-bold\\'>completed</span> projects\"}},\"configPending\":\"Configuration pending\",\"analyzing\":\"Analyzing...\",\"viewDashboard\":\"View dashboard\"}},\"projects\":{\"title\":\"Projects\",\"noPublishedProjects\":\"You have no current projects\",\"createNewProject\":\"Create a new project\",\"newProject\":\"New project\",\"yourProjects\":\"Your projects\"},\"newProject\":{\"title\":\"Create a New Project\",\"startingAt\":\"Starting at\",\"creative\":\"creative\",\"emotivaCreative\":\"Emotiva Creative {type}\",\"nameNewProjectMsg\":\"Give your project a name to help you find it\",\"autoSaveMsg\":\"Your progress is automatically saved so that you can pause and return at any time\"},\"audience\":{\"title\":\"Audience\",\"pageDescription\":\"Select the audience you wish to target with your test\",\"informationText\":\"Informations about our audience can be found \",\"here\":\"here\",\"selectCountryQuestion\":\"In which country do you want to test your video?\",\"videoBrandQuestion\":\"In which category is the brand of the video?\",\"askForSurveyMsg\":\"<span class=\\'font-weight-bold\\'>Who</span> do you want to complete the survey?\",\"askForRefineMsg\":\"Would you like to refine your audience further?\",\"national\":{\"title\":\"Nationally Representative Sample\",\"description\":\"Targets a nationally balanced sample of the population\",\"defaultAgePercentMsg\":\"18-25 20%, 26-35 20%, 36-45% 20%, 46-55 20%, 56-75 20%\",\"defaultGenderPercentMsg\":\"Male 50%, Female 50%\"},\"purchase\":{\"title\":\"Primary Grocery Decision Maker\",\"description\":\"People who describes themselves as being the main or sole decision maker with regards to grocery shopping decisions. 75% Female, 25% Male.\",\"defaultAgePercentMsg\":\"18-34 35%, 35-54 45%, 55-64% 20%\",\"defaultGenderPercentMsg\":\"Male 25%, Female 75%\"},\"generalPopulation\":\"General Population\",\"consumerPurchasingBehaviour\":\"Consumer & Purchasing Behaviour\",\"ageRange\":{\"group18_25\":\"18-25\",\"group26_35\":\"26-35\",\"group36_45\":\"36-45\",\"group46_55\":\"46-55\",\"group56_75\":\"56-75\",\"group18_34\":\"18-34\",\"group35_54\":\"35-54\",\"group55_64\":\"55-64\"}},\"stimulus\":{\"title\":\"Stimulus\",\"pageDescription\":\"Upload the video you want to test\",\"mediaRequirementsMsg\":\"Check the media requirements\",\"mediaRequirementsLink\":\"guideline.\",\"dropFile\":\"Drop your {file} here or\",\"mediaRequirementsGuideline\":\"media requirements guideline\",\"noMoreVideosAllowedMsg\":\"Now you can proceed with the study\",\"videoCategoryQuestion\":\"Which category is your video in?\",\"videoContentQuestion\":\"What kind of content is this video?\",\"videoDevStageQuestion\":\"At what stage of development is your video?\",\"errors\":{\"manyUploadedFiles\":{\"text\":\"Please select only one file to upload.\"},\"invalidFileFormat\":{\"text\":\"Format of the uploaded file is not supported. Please select a \\'video/*\\' file.\"}}},\"questions\":{\"description\":\"Enter the final questions for your target.\",\"limitUploadMessage\":\"You can enter up to a maximum of 5 questions.\",\"addQuestion\":\"Add a question\",\"selectQuestionType\":\"Select question type.\",\"addQuestionText\":\"Add question text\",\"questionType\":\"Question type\",\"addAnswers\":\"Add answers\",\"addAnswersSubMsg\":\"(Please type at least 2 answers)\",\"questionRandomOrder\":\"Randomize order of answers\",\"exampleQuestions\":{\"singleChoice\":\"Which do you prefer among the following sports?\",\"multiChoice\":\"Which do you prefer among the following sports?\",\"openEnded\":\"You think it is important to play a sport?\",\"scale\":\"How much would you recommend physical activity?\"},\"typeText\":{\"singleChoice\":\"Single choice\",\"multiChoice\":\"Multi choice\",\"openEnded\":\"Open ended\",\"scale\":\"Scale (numeric)\"}},\"review\":{\"title\":\"Review your project\"}},\"projects\":{\"discover\":\"Discover\",\"abTest\":\"A/B Test\"},\"example\":\"Example\",\"created\":\"Created \",\"closed\":\"Closed \",\"questionIndex\":\"Question {index}\",\"numberOfRespondents\":\"Number of respondents\",\"refineDemographics\":\"Refine demographics\",\"category\":\"Category\",\"panel\":\"Panel\",\"product\":\"Product\",\"target\":\"Target\",\"questions\":\"Questions\",\"loading\":\"Loading...\",\"population\":\"Population\",\"segmentation\":\"Segmentation\",\"respondents\":\"respondents\",\"totalRespondents\":\"{total} Complete\",\"countrySelection\":\"country selection\",\"maxVideos\":\"max {total} videos\",\"maxVideoMinutes\":\"max {minutes} minutes\",\"videoName\":\"Video name\",\"audio\":\"audio\",\"digital\":\"digital\",\"static\":\"static\",\"video\":\"video\",\"totalVideos\":\"{total} video(s)\",\"whatsNew\":\"What\\'s New\",\"login\":\"Login\",\"register\":\"Register\",\"rememberMe\":\"Remember Me\",\"welcome\":\"Welcome\",\"or\":\"or\",\"hours\":\"hours\",\"northWest\":\"North West\",\"northEast\":\"North East\",\"centre\":\"Centre\",\"south\":\"South\",\"sardinia\":\"Sardinia\",\"other\":\"Other\",\"search\":\"Search...\",\"quotas\":\"Quotas\",\"agreeToTermsText\":\"I agree with\",\"termsCondidionsLink\":\"Terms and Conditions\",\"newsletterText\":\"I\\'d like to receive news and informations about Emotiva\",\"passwordRulesText\":\"Password must be at least 8 characters and needs to include lower and uppercase letters and numbers.\",\"gettingStarted\":\"Getting started\",\"notAvailable\":\"Not Available\",\"audience\":\"Audience\",\"email\":\"Email\",\"password\":\"Password\",\"selectAnOption\":\"-- Please select an option --\",\"country\":\"Country\",\"gender\":\"Gender\",\"age\":\"Age\",\"region\":\"Region\",\"male\":\"Male\",\"female\":\"Female\",\"firstName\":\"Name\",\"lastName\":\"Surname\",\"companyName\":\"Company\",\"phone\":\"Phone\",\"jobTitle\":\"Job title\",\"passwordConfirmation\":\"Repeat password\",\"sampleSize\":\"Sample size \",\"totalPrice\":\"Total price\",\"readyIn\":\"Ready in \",\"estimationMsgPt1\":\"This is our best estimate of fieldwork time of your survey. However if your study is urgent, please contact our \",\"estimationMsgPt2\":\" for more accurate time lines.\",\"customerTeam\":\"Customer team\",\"moreInfo\":\"More info\",\"size\":\"Size\",\"format\":\"Format\",\"details\":\"Details\",\"ad\":\"Ad\",\"onlineVideo\":\"Online video\",\"advertising\":\"Advertising\",\"brandedContent\":\"Branded Content\",\"genericContnent\":\"Generic Content\",\"concept\":\"Concept\",\"content\":\"Content\",\"animatic\":\"Animatic\",\"firstCut\":\"First cut\",\"finalEdit\":\"Final edit\",\"paymentOptions\":\"Payment options\",\"cardNumber\":\"Card number\",\"expireDate\":\"Expire date\",\"securityCode\":\"Security Code\",\"ownerFullName\":\"Full name\",\"address\":\"Indirizzo\",\"postalCode\":\"CAP\",\"city\":\"CittĂ \",\"province\":\"Provincia\",\"company\":\"Azienda\",\"VATNumber\":\"IVA\",\"recipientCode\":\"Codice Identificativo Destinatario - Sdl\",\"PEC\":\"PEC\",\"purchaseOrderNumber\":\"PO Reference\",\"creditCardTermsText\":\"I accept the terms of\",\"creditCardTermsLink\":\"the information on the protection of personal data.\",\"charactersRemaining\":\"{length} characters remaining\"}')},\"35c9\":function(e){e.exports=JSON.parse('{\"mainMenu\":{\"about\":\"What is Emotiva?\",\"solutions\":\"Solutions\",\"resources\":\"Resources\",\"support\":\"Support\",\"projects\":\"Projects\",\"myAccount\":\"My Account\",\"logout\":\"Logout\"},\"button\":{\"ok\":\"Ok\",\"previous\":\"Previous\",\"next\":\"Next\",\"proceed\":\"Proceed\",\"change\":\"Change\",\"cancel\":\"Cancel\",\"edit\":\"Edit\",\"close\":\"Close\",\"add\":\"Add\",\"start\":\"Start\",\"save\":\"Save\",\"forgot\":\"Forgotten?\",\"login\":\"Login\",\"createNewProject\":\"Create a new project\",\"viewPrevProjects\":\"View previous projects\",\"selectAudience\":\"Select audience\",\"createAccount\":\"Create Account\",\"chooseFile\":\"Choose file\",\"addMoreInfo\":\"Add more info\",\"readyToGo\":\"Ready to go\",\"saveQuestion\":\"Save question\",\"back\":\"Back\",\"forward\":\"Forward\",\"launchAnalysis\":\"Launch analysis\"},\"dialog\":{\"error\":{\"defaultTitle\":\"An error occured\",\"defaultMessage\":\"Please try again later.\",\"pageNotFoundMessage\":\"Page not found: check that the address is correct.\",\"loginTitle\":\"Access not allowed\",\"loginMessage\":\"Please check that your email and password are correct.\",\"paymentError\":\"Sorry, something went wrong. Please try again.\"}},\"page\":{\"dashboard\":{\"project\":{\"status\":{\"pending\":{\"title\":\"Pending\",\"description\":\"Projects that are still in configuration\",\"emptyList\":\"You have no <span class=\\'font-weight-bold\\'>pending</span> projects\"},\"active\":{\"title\":\"In Progress\",\"description\":\"Projects that are in field, collecting data\",\"emptyList\":\"You have no <span class=\\'font-weight-bold\\'>active</span> projects\"},\"closed\":{\"title\":\"Completed Studies\",\"description\":\"\",\"emptyList\":\"You have no <span class=\\'font-weight-bold\\'>completed</span> projects\"}},\"configPending\":\"Configuration pending\",\"analyzing\":\"Analyzing...\",\"viewDashboard\":\"View dashboard\"}},\"projects\":{\"title\":\"Projects\",\"noPublishedProjects\":\"You have no current projects\",\"createNewProject\":\"Create a new project\",\"newProject\":\"New project\",\"yourProjects\":\"Your projects\"},\"newProject\":{\"title\":\"Create a New Project\",\"startingAt\":\"Starting at\",\"creative\":\"creative\",\"emotivaCreative\":\"Emotiva Creative {type}\",\"nameNewProjectMsg\":\"Give your project a name to help you find it\",\"autoSaveMsg\":\"Your progress is automatically saved so that you can pause and return at any time\"},\"audience\":{\"title\":\"Audience\",\"pageDescription\":\"Select the audience you wish to target with your test\",\"informationText\":\"Informations about our audience can be found \",\"here\":\"here\",\"selectCountryQuestion\":\"In which country do you want to test your video?\",\"videoBrandQuestion\":\"In which category is the brand of the video?\",\"askForSurveyMsg\":\"<span class=\\'font-weight-bold\\'>Who</span> do you want to complete the survey?\",\"askForRefineMsg\":\"Would you like to refine your audience further?\",\"national\":{\"title\":\"Nationally Representative Sample\",\"description\":\"Targets a nationally balanced sample of the population\",\"defaultAgePercentMsg\":\"18-25 20%, 26-35 20%, 36-45% 20%, 46-55 20%, 56-75 20%\",\"defaultGenderPercentMsg\":\"Male 50%, Female 50%\"},\"purchase\":{\"title\":\"Primary Grocery Decision Maker\",\"description\":\"People who describes themselves as being the main or sole decision maker with regards to grocery shopping decisions. 75% Female, 25% Male.\",\"defaultAgePercentMsg\":\"18-34 35%, 35-54 45%, 55-64% 20%\",\"defaultGenderPercentMsg\":\"Male 25%, Female 75%\"},\"generalPopulation\":\"General Population\",\"consumerPurchasingBehaviour\":\"Consumer & Purchasing Behaviour\",\"ageRange\":{\"group18_25\":\"18-25\",\"group26_35\":\"26-35\",\"group36_45\":\"36-45\",\"group46_55\":\"46-55\",\"group56_75\":\"56-75\",\"group18_34\":\"18-34\",\"group35_54\":\"35-54\",\"group55_64\":\"55-64\"}},\"stimulus\":{\"title\":\"Stimulus\",\"pageDescription\":\"Upload the video you want to test\",\"mediaRequirementsMsg\":\"Check the media requirements\",\"mediaRequirementsLink\":\"guideline.\",\"dropFile\":\"Drop your {file} here or\",\"mediaRequirementsGuideline\":\"media requirements guideline\",\"noMoreVideosAllowedMsg\":\"Now you can proceed with the study\",\"videoCategoryQuestion\":\"Which category is your video in?\",\"videoContentQuestion\":\"What kind of content is this video?\",\"videoDevStageQuestion\":\"At what stage of development is your video?\",\"errors\":{\"manyUploadedFiles\":{\"text\":\"Please select only one file to upload.\"},\"invalidFileFormat\":{\"text\":\"Format of the uploaded file is not supported. Please select a \\'video/*\\' file.\"}}},\"questions\":{\"description\":\"Enter the final questions for your target.\",\"limitUploadMessage\":\"You can enter up to a maximum of 5 questions.\",\"addQuestion\":\"Add a question\",\"selectQuestionType\":\"Select question type.\",\"addQuestionText\":\"Add question text\",\"questionType\":\"Question type\",\"addAnswers\":\"Add answers\",\"addAnswersSubMsg\":\"(Please type at least 2 answers)\",\"questionRandomOrder\":\"Randomize order of answers\",\"exampleQuestions\":{\"singleChoice\":\"Which do you prefer among the following sports?\",\"multiChoice\":\"Which do you prefer among the following sports?\",\"openEnded\":\"You think it is important to play a sport?\",\"scale\":\"How much would you recommend physical activity?\"},\"typeText\":{\"singleChoice\":\"Single choice\",\"multiChoice\":\"Multi choice\",\"openEnded\":\"Open ended\",\"scale\":\"Scale (numeric)\"}},\"review\":{\"title\":\"Review your project\"}},\"projects\":{\"discover\":\"Discover\",\"abTest\":\"A/B Test\"},\"example\":\"Example\",\"created\":\"Created \",\"closed\":\"Closed \",\"questionIndex\":\"Question {index}\",\"numberOfRespondents\":\"Number of respondents\",\"refineDemographics\":\"Refine demographics\",\"category\":\"Category\",\"panel\":\"Panel\",\"product\":\"Product\",\"target\":\"Target\",\"questions\":\"Questions\",\"loading\":\"Loading...\",\"population\":\"Population\",\"segmentation\":\"Segmentation\",\"respondents\":\"respondents\",\"totalRespondents\":\"{total} Complete\",\"countrySelection\":\"country selection\",\"maxVideos\":\"max {total} videos\",\"maxVideoMinutes\":\"max {minutes} minutes\",\"videoName\":\"Video name\",\"audio\":\"audio\",\"digital\":\"digital\",\"static\":\"static\",\"video\":\"video\",\"totalVideos\":\"{total} video(s)\",\"whatsNew\":\"What\\'s New\",\"login\":\"Login\",\"register\":\"Register\",\"rememberMe\":\"Remember Me\",\"welcome\":\"Welcome\",\"or\":\"or\",\"hours\":\"hours\",\"northWest\":\"North West\",\"northEast\":\"North East\",\"centre\":\"Centre\",\"south\":\"South\",\"sardinia\":\"Sardinia\",\"other\":\"Other\",\"search\":\"Search...\",\"quotas\":\"Quotas\",\"agreeToTermsText\":\"I agree with\",\"termsCondidionsLink\":\"Terms and Conditions\",\"newsletterText\":\"I\\'d like to receive news and informations about Emotiva\",\"passwordRulesText\":\"Password must be at least 8 characters and needs to include lower and uppercase letters and numbers.\",\"gettingStarted\":\"Getting started\",\"notAvailable\":\"Not Available\",\"audience\":\"Audience\",\"email\":\"Email\",\"password\":\"Password\",\"selectAnOption\":\"-- Please select an option --\",\"country\":\"Country\",\"gender\":\"Gender\",\"age\":\"Age\",\"region\":\"Region\",\"male\":\"Male\",\"female\":\"Female\",\"firstName\":\"Name\",\"lastName\":\"Surname\",\"companyName\":\"Company\",\"phone\":\"Phone\",\"jobTitle\":\"Job title\",\"passwordConfirmation\":\"Repeat password\",\"sampleSize\":\"Sample size \",\"totalPrice\":\"Total price\",\"readyIn\":\"Ready in \",\"estimationMsgPt1\":\"This is our best estimate of fieldwork time of your survey. However if your study is urgent, please contact our \",\"estimationMsgPt2\":\" for more accurate time lines.\",\"customerTeam\":\"Customer team\",\"moreInfo\":\"More info\",\"size\":\"Size\",\"format\":\"Format\",\"details\":\"Details\",\"ad\":\"Ad\",\"onlineVideo\":\"Online video\",\"advertising\":\"Advertising\",\"brandedContent\":\"Branded Content\",\"genericContnent\":\"Generic Content\",\"concept\":\"Concept\",\"content\":\"Content\",\"animatic\":\"Animatic\",\"firstCut\":\"First cut\",\"finalEdit\":\"Final edit\",\"paymentOptions\":\"Payment options\",\"cardNumber\":\"Card number\",\"expireDate\":\"Expire date\",\"securityCode\":\"Security Code\",\"ownerFullName\":\"Full name\",\"address\":\"Address\",\"postalCode\":\"Postcode\",\"city\":\"City\",\"province\":\"Province\",\"company\":\"Company\",\"VATNumber\":\"VAT Number\",\"recipientCode\":\"Recipient Code\",\"PEC\":\"PEC\",\"purchaseOrderNumber\":\"PO Reference\",\"creditCardTermsText\":\"I accept the terms of\",\"creditCardTermsLink\":\"the information on the protection of personal data.\",\"charactersRemaining\":\"{length} characters remaining\"}')},\"4aed\":function(e,t,a){},\"4c37\":function(e,t,a){\"use strict\";var o=a(\"7697\"),n=a.n(o);n.a},\"6ccd\":function(e,t,a){\"use strict\";a.r(t);var o=a(\"2b0e\"),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(\"div\",{staticClass:\"bg-light min-vh-100\",attrs:{id:\"app\"}},[a(\"b-overlay\",{staticClass:\"min-vh-100\",attrs:{show:e.loader,rounded:\"sm\",opacity:\"0.4\",variant:\"light\"},scopedSlots:e._u([{key:\"overlay\",fn:function(){return[a(\"b-card\",{staticClass:\"text-center border-0\"},[a(\"b-icon\",{attrs:{icon:\"slash-square-fill\",animation:\"spin\",\"font-scale\":\"3\",variant:\"black\"}}),e.loaderMsgText?a(\"div\",{staticClass:\"text-uppercase mt-3\"},[e._v(\" \"+e._s(e.$t(e.loaderMsgText,e.loaderMsgParams))+\" \")]):e._e()],1)]},proxy:!0}])},[a(\"router-view\")],1)],1)},r=[],i={computed:{loader(){return this.$store.getters[\"loader/isActive\"]},loaderMsgText(){return this.$store.getters[\"loader/getMessageText\"]},loaderMsgParams(){return this.$store.getters[\"loader/getMessageParams\"]}}},s=i,c=(a(\"85b6\"),a(\"4c37\"),a(\"6e82\"),a(\"ff2f\"),a(\"2877\")),d=Object(c[\"a\"])(s,n,r,!1,null,\"48839642\",null),u=d.exports,l=a(\"8c4f\"),m=a(\"b53c\"),p=a(\"2f62\"),g=a(\"bfa9\");const h=!0,E=()=>({active:!1,title:{text:\"\",params:null},message:{text:\"\",params:null},actionBtn:{label:\"\",callback:null}}),T=E(),S={isActive:e=>e.active,getTitleText:e=>e.title.text,getTitleParams:e=>e.title.params,getMessageText:e=>e.message.text,getMessageParams:e=>e.message.params,getActionBtnLabel:e=>e.actionBtn.label,getActionBtnCallback:e=>e.actionBtn.callback},C={RESET(e){const t=E();Object.keys(t).forEach(a=>{e[a]=t[a]})},SET_ACTIVE(e,t){e.active=t},SET_ERROR(e,{titleText:t=\"dialog.error.defaultTitle\",titleParams:a=null,messageText:o=\"dialog.error.defaultMessage\",messageParams:n=null,actionBtnLabel:r=\"button.close\",actionBtnCallback:i=null}){e.active=!0,e.title.text=t,e.title.params=a,e.message.text=o,e.message.params=n,e.actionBtn.label=r,e.actionBtn.callback=i}},P={close({commit:e,getters:t}){const a=t.getActionBtnCallback;m[\"a\"].isFunction(a)&&a(),e(\"RESET\")}};var v={namespaced:!0,strict:h,state:T,getters:S,mutations:C,actions:P};const A=!0,f=()=>({active:!1,message:{text:\"\",params:null}}),y=f(),_={isActive:e=>e.active,getMessageText:e=>e.message.text,getMessageParams:e=>e.message.params},b={RESET(e){const t=f();Object.keys(t).forEach(a=>{e[a]=t[a]})},SET_ACTIVE(e,t){e.active=t},SET_LOADER(e,{messageText:t=null,messageParams:a=null}){e.active=!0,e.message.text=t,e.message.params=a}},I={close({commit:e,getters:t}){e(\"RESET\")}};var R={namespaced:!0,strict:A,state:y,getters:_,mutations:b,actions:I},N=a(\"63e9\"),O=a.n(N),w=a(\"ed18\"),L=a.n(w);L.a.config();class j{static get CONFIG(){return{backendHost:\"$VUE_APP_API_HOST\"}}static value(e){if(!(e in this.CONFIG))return;const t=this.CONFIG[e];if(t){if(!t.startsWith(\"$VUE_APP_\"))return t;{const e=t.substr(1),a=Object({NODE_ENV:\"production\",VUE_APP_API_PROTOCOL:\"http\",VUE_APP_API_HOST:\"localhost\",VUE_APP_API_PORT:\"4020\",VUE_APP_API_BASE_PATH:\"\",VUE_APP_API_PREFIX:\"\",VUE_APP_PAYPAL_CLIENT_ID:\"AUy1K9T6k6NP5OAVgYHDNtZUuv8nWT3LbpD223F70FFxDKfjrWmU2-g0hDsYHJJSQ8kctrbcDalJ9IDX\",VUE_APP_PAYPAL_SECRET_KEY:\"EBhBq3QEEcFdTEbyR5mtAwuwy1Mwi8hCFaFqzLk4drzTl-0tJQV-lFEv72HxzmASSxkwvhvDWgYPFvTJ\",BASE_URL:\"/\"})[e];if(a)return a}}}}const k=j.value(\"backendHost\");console.log(k);const D=function(e){return{requestBody:e,server:\"{protocol}://{host}:{port}{basePath}{apiPrefix}\",serverVariables:{protocol:\"http\",host:k,port:\"4020\",basePath:\"\",apiPrefix:\"\"}}},M=new O.a(\"/emotiva.v1.json\",{requestInterceptor:e=>{const t=it&&it.getters[\"auth/getSessionToken\"];return t&&(e.headers.Authorization=t),e},responseInterceptor:()=>{}});var U={swagger:M,buildRequestBody:D};class x{loginUser(e){return U.swagger.then(t=>t.apis.users.loginUser({},U.buildRequestBody(e),{})).then(e=>e.body).catch(e=>Promise.reject(e))}createUserAccount(e){return U.swagger.then(t=>t.apis.users.createUser({},U.buildRequestBody(e),{})).then(e=>e.body).catch(e=>Promise.reject(e))}}class G{retrieveProjects(){return U.swagger.then(e=>e.apis.projects.retrieveProjects({},U.buildRequestBody(),{})).then(e=>e.body).catch(e=>Promise.reject(e))}retrieveProject(e){return U.swagger.then(t=>t.apis.projects.retrieveProject({projectId:e},U.buildRequestBody(),{})).then(e=>e.body).catch(e=>Promise.reject(e))}retrieveProjectsByClientId(e){return U.swagger.then(t=>t.apis.projects.retrieveProjectsByClientId({clientId:e},U.buildRequestBody(),{})).then(e=>e.body).catch(e=>Promise.reject(e))}retrieveProjectByClientId(e,t){return U.swagger.then(a=>a.apis.projects.retrieveProjectByClientId({clientId:e,projectId:t},U.buildRequestBody(),{})).then(e=>e.body).catch(e=>Promise.reject(e))}createProject(e){return U.swagger.then(t=>t.apis.projects.createProject({},U.buildRequestBody(e),{})).then(e=>e.body).catch(e=>Promise.reject(e))}updateProject(e,t){return U.swagger.then(a=>a.apis.projects.updateProject({projectId:e},U.buildRequestBody(t),{})).then(e=>e.body).catch(e=>Promise.reject(e))}createProjectByClientId(e,t){return U.swagger.then(a=>a.apis.projects.createProjectByClientId({clientId:e},U.buildRequestBody(t),{})).then(e=>e.body).catch(e=>Promise.reject(e))}updateProjectByClientId(e,t,a){return U.swagger.then(o=>o.apis.projects.updateProjectByClientId({clientId:e,projectId:t},U.buildRequestBody(a),{})).then(e=>e.body).catch(e=>Promise.reject(e))}deleteProject(e){return U.swagger.then(t=>t.apis.projects.deleteProject({projectId:e},U.buildRequestBody(),{})).then(e=>e.body).catch(e=>Promise.reject(e))}createProjectAsset(e,t){return U.swagger.then(a=>a.apis.projects.createProjectAsset({projectId:e},U.buildRequestBody(t),{})).then(e=>e.body).catch(e=>Promise.reject(e))}deleteProjectAsset(e,t){return U.swagger.then(a=>a.apis.projects.deleteProjectAsset({projectId:e,assetId:t},U.buildRequestBody(),{})).then(e=>e.body).catch(e=>Promise.reject(e))}}class V{retrieveProjectCategories(){return U.swagger.then(e=>e.apis.categories.retrieveProjectCategories({},U.buildRequestBody(),{})).then(e=>e.body).catch(e=>Promise.reject(e))}retrieveVideoCategories(){return U.swagger.then(e=>e.apis.categories.retrieveVideoCategories({},U.buildRequestBody(),{})).then(e=>e.body).catch(e=>Promise.reject(e))}}var B={UserService:new x,ProjectService:new G,CategoryService:new V};const F=!0,q=()=>({isLoggedIn:!1,sessionToken:null,clientId:null,userType:null,userInfo:{},registerUserModel:{firstName:\"\",lastName:\"\",email:\"\",country:\"\",companyName:\"\",phone:\"\",jobTitle:\"\",password:\"\",passwordConfirmation:\"\",agreeToTerms:!1,newsletter:!1}}),Y=q(),W={isLoggedIn:e=>e.isLoggedIn,getClientId:e=>e.clientId,getSessionToken:e=>e.sessionToken,getUserType:e=>e.userType,hasProjects:()=>!1,getRegisterFirstName:e=>e.registerUserModel.firstName,getRegisterLastName:e=>e.registerUserModel.lastName,getRegisterEmail:e=>e.registerUserModel.email,getRegisterCountry:e=>e.registerUserModel.country,getRegisterCompanyName:e=>e.registerUserModel.companyName,getRegisterPhone:e=>e.registerUserModel.phone,getRegisterJobTitle:e=>e.registerUserModel.jobTitle,getRegisterPassword:e=>e.registerUserModel.password,getRegisterPasswordConfirmation:e=>e.registerUserModel.passwordConfirmation,isRegisterAgreeToTerms:e=>e.registerUserModel.agreeToTerms,isRegisterNewsletter:e=>e.registerUserModel.newsletter,getRegisterUserInfo:e=>e.registerUserModel},Q={RESET(e){const t=q();Object.keys(t).forEach(a=>{e[a]=t[a]})},RESET_REGISTER_USER_MODEL(e){const t=q();e.registerUserModel=t.registerUserModel},SET_IS_LOGGED_IN(e,t){e.isLoggedIn=t},SET_USER_TYPE(e,t){e.userType=t},SET_SESSION_TOKEN(e,t){e.sessionToken=\"Bearer \"+t},SET_CLIENT_ID(e,t){e.clientId=t},SET_USER_INFO(e,t){e.userInfo=t},SET_FIRST_NAME(e,t){e.registerUserModel.firstName=t},SET_LAST_NAME(e,t){e.registerUserModel.lastName=t},SET_EMAIL(e,t){e.registerUserModel.email=t},SET_COUNTRY(e,t){e.registerUserModel.country=t},SET_COMPANY_NAME(e,t){e.registerUserModel.companyName=t},SET_PHONE(e,t){e.registerUserModel.phone=t},SET_JOB_TITLE(e,t){e.registerUserModel.jobTitle=t},SET_PASSWORD(e,t){e.registerUserModel.password=t},SET_PASSWORD_CONFIRMATION(e,t){e.registerUserModel.passwordConfirmation=t},SET_AGREE_TO_TERMS(e,t){e.registerUserModel.agreeToTerms=t},SET_NEWSLETTER(e,t){e.registerUserModel.newsletter=t}},H={login({commit:e},{email:t,password:a,userType:o}){const n={email:t,password:a,domain:\"client\"};return B.UserService.loginUser(n).then(t=>{e(\"SET_USER_INFO\",n),e(\"SET_CLIENT_ID\",t.clientId),e(\"SET_SESSION_TOKEN\",t.token),e(\"SET_USER_TYPE\",o),e(\"SET_IS_LOGGED_IN\",!0)}).catch(t=>{console.log(t),e(\"error/SET_ERROR\",{titleText:\"dialog.error.loginTitle\",messageText:\"dialog.error.loginMessage\"},{root:!0})})},createUserAccount({getters:e}){const t=e.getRegisterUserInfo;return delete t.passwordConfirmation,B.UserService.createUserAccount(t).then(e=>{console.log(e)}).catch(e=>{console.log(e)})}};var J={namespaced:!0,strict:F,state:Y,getters:W,mutations:Q,actions:H},z=a(\"0644\"),K=a.n(z);const Z=!0,$=()=>({projectList:[],activeProject:{}}),X=$(),ee={getProjectList:e=>e.projectList,getActiveProject:e=>e.activeProject,getActiveProjectId:e=>e.activeProject._id},te={RESET(e){const t=$();Object.keys(t).forEach(a=>{e[a]=t[a]})},SET_PROJECT_LIST(e,t){e.projectList=t},SET_ACTIVE_PROJECT(e,t){e.activeProject=t}},ae={retrieveProjectsByClientId({commit:e,rootGetters:t}){const a=t[\"auth/getClientId\"];return B.ProjectService.retrieveProjectsByClientId(a).then(e=>ie(e)).then(t=>{e(\"SET_PROJECT_LIST\",t)}).catch(t=>{e(\"SET_PROJECT_LIST\",[]),console.log(t)})},retrieveProjectByClientId({commit:e,rootGetters:t},a){const o=t[\"auth/getClientId\"];return B.ProjectService.retrieveProjectByClientId(o,a).then(t=>(re(e,t),t)).then(t=>{e(\"SET_ACTIVE_PROJECT\",t)}).catch(t=>{e(\"SET_ACTIVE_PROJECT\",{}),console.log(t)})},createProjectByClientId({commit:e,rootGetters:t}){const a=t[\"auth/getClientId\"],o=oe(t);return B.ProjectService.createProjectByClientId(a,o).then(t=>{e(\"SET_ACTIVE_PROJECT\",{}),lt.push({name:\"Audience\",params:{id:t._id}})}).catch(t=>{e(\"error/SET_ERROR\",{},{root:!0}),console.log(t)})},updateProjectByClientId({commit:e,getters:t,rootGetters:a}){const o=a[\"auth/getClientId\"],n=t.getActiveProjectId;let r=K()(t.getActiveProject);const i=a[\"wizard/getActiveStep\"];return r=ne(r,i,a),B.ProjectService.updateProjectByClientId(o,n,r).then(t=>{e(\"SET_ACTIVE_PROJECT\",t)}).catch(t=>(e(\"error/SET_ERROR\",{},{root:!0}),console.log(t),Promise.reject()))},deleteProject({getters:e},t){return B.ProjectService.deleteProject(t).then(e=>{console.log(e)}).catch(e=>{console.log(e)})},createProjectAsset({commit:e,getters:t},a){const o=t.getActiveProjectId,n={projectId:o,name:a.name,type:a.contentType.value,status:a.developmentStage.value,category:a.category};return B.ProjectService.createProjectAsset(o,n).then(e=>(console.log(e),e._id)).catch(e=>{console.log(e)})},deleteProjectAsset({getters:e},t){const a=e.getActiveProjectId;return B.ProjectService.deleteProjectAsset(a,t).then(e=>{console.log(e)}).catch(e=>{console.log(e)})}};function oe(e){const t=e[\"auth/getClientId\"],a=e[\"wizard/getActiveProjectName\"],o=e[\"wizard/getActiveProjectPackage\"],n=e[\"audience/getSelectedCountry\"],r=e[\"audiece/getBrandCategory\"],i=e[\"audience/getTargetGroup\"],s={},c={female:!0,male:!0},d=12;return{clientId:t,name:a,type:o,audience:{country:n,category:r,population:i,genre:c},question:s,step:d}}function ne(e,t,a){if(t===m[\"a\"].WIZARD_STEPS.AUDIENCE){e.audience.country=a[\"audience/getSelectedCountry\"],e.audience.population=a[\"audience/getTargetGroup\"];const t=a[\"audience/getSelectedGenderList\"];e.audience.genre.male=t.findIndex(e=>\"male\"===e)>-1,e.audience.genre.female=t.findIndex(e=>\"female\"===e)>-1,e.audience.refineAudience=a[\"audience/getActiveRefineAudience\"];const o=a[\"audience/getSelectedAgeRangeList\"];e.audience.ageGroup.group18_25=o.findIndex(e=>\"group18_25\"===e)>-1,e.audience.ageGroup.group26_35=o.findIndex(e=>\"group26_35\"===e)>-1,e.audience.ageGroup.group36_45=o.findIndex(e=>\"group36_45\"===e)>-1,e.audience.ageGroup.group46_55=o.findIndex(e=>\"group46_55\"===e)>-1,e.audience.ageGroup.group56_75=o.findIndex(e=>\"group56_75\"===e)>-1,e.audience.ageGroup.group18_34=o.findIndex(e=>\"group18_34\"===e)>-1,e.audience.ageGroup.group35_54=o.findIndex(e=>\"group35_54\"===e)>-1,e.audience.ageGroup.group55_64=o.findIndex(e=>\"group55_64\"===e)>-1}else if(t===m[\"a\"].WIZARD_STEPS.CHECKOUT)e.payment.company=a[\"checkout/getCreditCardCompany\"],e.payment.vat=a[\"checkout/getCreditCardVATNumber\"],e.payment.address=a[\"checkout/getCreditCardAddress\"],e.payment.country=a[\"checkout/getCreditCardCountryName\"],e.payment.zip=a[\"checkout/getCreditCardPostalCode\"],e.payment.city=a[\"checkout/getCreditCardCity\"],e.payment.province=a[\"checkout/getCreditCardProvince\"],e.payment.recipientCode=a[\"checkout/getCreditCardRecipientCode\"],e.payment.pec=a[\"checkout/getCreditCardPEC\"],e.payment.po=a[\"checkout/getCreditCardPurchaseOrderNumber\"],e.payment.acceptedTerms=a[\"checkout/isCreditCardAcceptTermsSelected\"];else if(t===m[\"a\"].WIZARD_STEPS.QUESTIONS){const t=a[\"question/getQuestionList\"];let o;e.questions=[],t.forEach(t=>{if(o={},o={},o.type=t.type,o.text=t.text,t.type===m[\"a\"].QUESTION_TYPE.SINGLE_CHOICE||t.type===m[\"a\"].QUESTION_TYPE.MULTI_CHOICE){const e=[];t.answerList.forEach(t=>{e.push(t.text)}),o.answers={},o.answers.answerList=e,o.answers.randomOrder=t.randomAnswerOrder}else o.answers={};e.questions.push(o)})}else t===m[\"a\"].WIZARD_STEPS.COMPLETED&&(e.status=\"active\");return e}function re(e,t){e(\"audience/INITIALIZE\",t.audience,{root:!0}),e(\"question/INIT_QUESTION_LIST\",t.questions,{root:!0}),e(\"checkout/INITIALIZE\",t.payment,{root:!0}),e(\"wizard/SET_ACTIVE_PROJECT_PACKAGE\",t.type,{root:!0})}function ie(e){const t=[{label:\"pending\",status:m[\"a\"].PROJECT_STATUS.PENDING,list:[]},{label:\"active\",status:m[\"a\"].PROJECT_STATUS.ACTIVE,list:[]},{label:\"closed\",status:m[\"a\"].PROJECT_STATUS.CLOSED,list:[]}];let a;return e.forEach(e=>{switch(e.status){case m[\"a\"].PROJECT_STATUS.PENDING:a=0;break;case m[\"a\"].PROJECT_STATUS.ACTIVE:a=1;break;case m[\"a\"].PROJECT_STATUS.CLOSED:a=2;break;default:a=-1;break}a>-1&&t[a].list.push(e)}),t}var se={namespaced:!0,strict:Z,state:X,getters:ee,mutations:te,actions:ae};const ce=!0,de=()=>({activeStep:null,lastActiveStep:m[\"a\"].WIZARD_STEPS.AUDIENCE,completedStep:m[\"a\"].WIZARD_STEPS.CHECKOUT,projectPackageList:{[m[\"a\"].PROJECT_PACKAGE.DISCOVER]:{name:\"Discover\",totalVideo:1,totalRespondents:75,defaultPrice:1e3},[m[\"a\"].PROJECT_PACKAGE.TEST]:{name:\"A/B Test\",totalVideo:2,totalRespondents:150,defaultPrice:1900},[m[\"a\"].PROJECT_PACKAGE.CUSTOM]:{name:\"Custom\",totalVideo:\"-\",totalRespondents:150,defaultPrice:0}},activeProjectPackage:null,activeProjectName:\"\",steps:{[m[\"a\"].USER_TYPE.REGULAR]:{[m[\"a\"].WIZARD_STEPS.AUDIENCE]:{navName:\"Audience\",navIcon:\"people-fill\",isValid:e=>{const t=e[\"audience/getSelectedCountry\"];return\"\"!==t},routeName:\"Audience\",prevRouteName:null,nextRouteName:\"Stimulus\"},[m[\"a\"].WIZARD_STEPS.STIMULUS]:{navName:\"Upload\",navIcon:\"cloud-upload\",isValid:e=>!0,routeName:\"Stimulus\",prevRouteName:\"Audience\",nextRouteName:\"Review\"},[m[\"a\"].WIZARD_STEPS.REVIEW]:{navName:\"Check\",navIcon:\"check-box\",isValid:e=>!0,routeName:\"Review\",prevRouteName:\"Stimulus\",nextRouteName:\"Checkout\"},[m[\"a\"].WIZARD_STEPS.CHECKOUT]:{navName:\"Pay\",navIcon:\"credit-card\",isValid:e=>!1,routeName:\"Checkout\",prevRouteName:\"Review\"}},[m[\"a\"].USER_TYPE.CUSTOMER]:{[m[\"a\"].WIZARD_STEPS.AUDIENCE]:{navName:\"Audience\",navIcon:\"people-fill\",isValid:e=>{const t=e[\"audience/getSelectedCountry\"];return\"\"!==t},routeName:\"Audience\",prevRouteName:null,nextRouteName:\"Stimulus\"},[m[\"a\"].WIZARD_STEPS.STIMULUS]:{navName:\"Upload\",navIcon:\"cloud-upload\",isValid:e=>!0,routeName:\"Stimulus\",prevRouteName:\"Audience\",nextRouteName:\"Questions\"},[m[\"a\"].WIZARD_STEPS.QUESTIONS]:{navName:\"Questions\",navIcon:\"pencil\",isValid:e=>!0,routeName:\"Questions\",prevRouteName:\"Stimulus\",nextRouteName:\"Review\"},[m[\"a\"].WIZARD_STEPS.REVIEW]:{navName:\"Check\",navIcon:\"check-box\",isValid:e=>!1,routeName:\"Review\",prevRouteName:\"Questions\",nextRouteName:null}}}}),ue=de(),le={getActiveStep:e=>e.activeStep,getLastActiveStep:e=>e.lastActiveStep,getSteps:e=>e.steps,getProjectPackageList:e=>e.projectPackageList,getActiveProjectPackage:e=>e.activeProjectPackage,getActiveProjectPackageInfo:e=>e.projectPackageList[e.activeProjectPackage],getActiveProjectName:e=>e.activeProjectName,isValid:(e,t,a,o)=>e.activeStep&&e.steps[o[\"auth/getUserType\"]][e.activeStep].isValid(o),getPreviousRouteName:(e,t,a,o)=>e.activeStep&&e.steps[o[\"auth/getUserType\"]][e.activeStep].prevRouteName,getNextRouteName:(e,t,a,o)=>e.activeStep&&e.steps[o[\"auth/getUserType\"]][e.activeStep].nextRouteName,getNavSteps:(e,t,a,o)=>{const n=e.activeStep,r=o[\"auth/getUserType\"],i=e.steps[r],s=[],c=e.completedStep;for(var d in i)s.push({routeName:i[d].routeName,navName:i[d].navName,navIcon:i[d].navIcon,active:n===parseInt(d),visited:n>=parseInt(d),completedStep:c>parseInt(d)});return s}},me={RESET(e){const t=de();Object.keys(t).forEach(a=>{e[a]=t[a]})},SET_ACTIVE_STEP(e,t){e.activeStep=t},SET_LAST_ACTIVE_STEP(e,t){e.lastActiveStep=t},SET_ACTIVE_PROJECT_PACKAGE(e,t){e.activeProjectPackage=t},SET_ACTIVE_PROJECT_NAME(e,t){e.activeProjectName=t}},pe={goToPreviousStep({getters:e}){const t=e.getPreviousRouteName;lt.push({name:t})},goToNextStep({getters:e}){const t=e.getNextRouteName;lt.push({name:t})}};var ge={namespaced:!0,strict:ce,state:ue,getters:le,mutations:me,actions:pe},he=a(\"a925\");function Ee(){const e=a(\"7da4\"),t={};return e.keys().forEach(a=>{const o=a.match(/([A-Za-z0-9-_]+)\\./i);if(o&&o.length>1){const n=o[1],r=n.split(\"-\")[0];t[r]={...t[r],...e(a)}}}),t}o[\"a\"].use(he[\"a\"]);var Te=new he[\"a\"]({locale:Object({NODE_ENV:\"production\",VUE_APP_API_PROTOCOL:\"http\",VUE_APP_API_HOST:\"localhost\",VUE_APP_API_PORT:\"4020\",VUE_APP_API_BASE_PATH:\"\",VUE_APP_API_PREFIX:\"\",VUE_APP_PAYPAL_CLIENT_ID:\"xxxx\",VUE_APP_PAYPAL_SECRET_KEY:\"xxxx\",BASE_URL:\"/\"}).VUE_APP_I18N_LOCALE||\"it\",fallbackLocale:Object({NODE_ENV:\"production\",VUE_APP_API_PROTOCOL:\"http\",VUE_APP_API_HOST:\"localhost\",VUE_APP_API_PORT:\"4020\",VUE_APP_API_BASE_PATH:\"\",VUE_APP_API_PREFIX:\"\",VUE_APP_PAYPAL_CLIENT_ID:\"xxxx\",VUE_APP_PAYPAL_SECRET_KEY:\"xxxx\",BASE_URL:\"/\"}).VUE_APP_I18N_FALLBACK_LOCALE||\"it\",messages:Ee()});const Se=!0,Ce=()=>({countryOptions:m[\"a\"].COUNTRY_LIST,selectedCountry:\"\",brandCategoryOptions:[],brandCategory:\"\",targetGroup:m[\"a\"].AUDIENCE_TARGET_GROUP.NATIONAL,activeRefineAudience:!1,genderOptions:[\"male\",\"female\"],selectedGenderList:[],ageRangeOptions:{[m[\"a\"].AUDIENCE_TARGET_GROUP.NATIONAL]:[\"group18_25\",\"group26_35\",\"group36_45\",\"group46_55\",\"group56_75\"],[m[\"a\"].AUDIENCE_TARGET_GROUP.PRIMARY]:[\"group18_34\",\"group35_54\",\"group55_64\"]},selectedAgeRangeList:[],regionOptions:[Te.t(\"northWest\"),Te.t(\"northEast\"),Te.t(\"centre\"),Te.t(\"south\"),Te.t(\"sardinia\")],selectedRegionList:[],respondentOptions:[50,150,300],selectedRespondent:null,numberOfRespondents:null}),Pe=Ce(),ve={getCountryOptions:e=>e.countryOptions,getSelectedCountry:e=>e.selectedCountry,getBrandCategoryOptions:e=>e.brandCategoryOptions,getBrandCategory:e=>e.brandCategory,getTargetGroup:e=>e.targetGroup,getActiveRefineAudience:e=>e.activeRefineAudience,getGenderOptions:e=>e.genderOptions,getSelectedGenderList:e=>e.selectedGenderList,getAgeRangeOptions:e=>e.ageRangeOptions[e.targetGroup],getSelectedAgeRangeList:e=>e.selectedAgeRangeList,getRegionOptions:e=>e.regionOptions,getSelectedRegionList:e=>e.selectedRegionList,getRespondentOptions:e=>e.respondentOptions,getSelectedRespondent:e=>e.selectedRespondent,getNumberOfRespondents:e=>e.numberOfRespondents},Ae={RESET(e){const t=Ce();Object.keys(t).forEach(a=>{e[a]=t[a]}),e.selectedGenderList=[...e.genderOptions],e.selectedAgeRangeList=[...e.ageRangeOptions[e.targetGroup]],e.selectedRegionList=[...e.regionOptions]},INITIALIZE(e,t){e.selectedCountry=t.country,e.targetGroup=t.population,e.brandCategory=t.category,e.selectedGenderList=[],e.activeRefineAudience=t.refineAudience;for(const[a,o]of Object.entries(t.genre))!0===o&&e.selectedGenderList.push(a);e.selectedAgeRangeList=[];for(const[a,o]of Object.entries(t.ageGroup))!0===o&&e.selectedAgeRangeList.push(a)},SET_SELECTED_COUNTRY(e,t){e.selectedCountry=t},SET_BRAND_CATEGORY_OPTIONS(e,t){e.brandCategoryOptions=t},SET_BRAND_CATEGORY(e,t){e.brandCategory=t},SET_TARGET_GROUP(e,t){e.targetGroup=t,e.selectedAgeRangeList=[...e.ageRangeOptions[e.targetGroup]]},SET_ACTIVE_REFINE_AUDIENCE(e,t){e.activeRefineAudience=t},SET_SELECTED_GENDER_LIST(e,t){e.selectedGenderList=t},SET_SELECTED_AGE_RANGE_LIST(e,t){e.selectedAgeRangeList=t},SET_SELECTED_REGION_LIST(e,t){e.selectedRegionList=t},SET_SELECTED_RESPONDENT(e,t){e.selectedRespondent=t},SET_NUMBER_OF_RESPONDENTS(e,t){e.numberOfRespondents=t}},fe={retrieveProjectCategories({commit:e}){return B.CategoryService.retrieveProjectCategories().then(t=>{e(\"SET_BRAND_CATEGORY_OPTIONS\",t)}).catch(t=>{e(\"SET_BRAND_CATEGORY_OPTIONS\",[]),console.log(t)})}};var ye={namespaced:!0,strict:Se,state:Pe,getters:ve,mutations:Ae,actions:fe};class _e{constructor({id:e=\"\",stimulusName:t=\"\",brandName:a=\"\",category:o=\"\",contentType:n=\"\",developmentStage:r=\"\"}){this.id=e,this.stimulusName=t,this.brandName=a,this.category=o,this.contentType=n,this.developmentStage=r,this.selectedContentType=null}}const be=!0,Ie=()=>({activeStimulusId:null,activeStimulus:{},categoryOptions:[],contentTypeOptions:[Te.t(\"ad\"),Te.t(\"onlineVideo\"),Te.t(\"content\")],developmentStageOptions:[Te.t(\"animatic\"),Te.t(\"firstCut\"),Te.t(\"finalEdit\")],stimulusList:{}}),Re=Ie(),Ne={getActiveStimulusId:e=>e.activeStimulusId,getStimulusName:e=>e.stimulusList[e.activeStimulusId].stimulusName,getBrandName:e=>e.stimulusList[e.activeStimulusId].brandName,getCategory:e=>e.stimulusList[e.activeStimulusId].category,getSelectedContentType:e=>e.stimulusList[e.activeStimulusId].selectedContentType,getContentType:e=>e.stimulusList[e.activeStimulusId].contentType,getDevelopmentStage:e=>e.stimulusList[e.activeStimulusId].developmentStage,getCategoryOptions:e=>e.categoryOptions,getContentTypeOptions:e=>e.contentTypeOptions,getDevelopmentStageOptions:e=>e.developmentStageOptions,getStimulusList:e=>e.stimulusList,getState:e=>e},Oe={RESET(e){const t=Ie();Object.keys(t).forEach(a=>{e[a]=t[a]})},SET_CATEGORY_OPTIONS(e,t){e.categoryOptions=t},ADD_STIMULUS(e,{id:t}){const a=new _e({id:t});e.stimulusList[t]=a},SET_ACTIVE_STIMULUS_ID(e,t){e.activeStimulusId=t},SET_STIMULUS_NAME(e,t){e.stimulusList[e.activeStimulusId].stimulusName=t},SET_BRAND_NAME(e,t){e.stimulusList[e.activeStimulusId].brandName=t},SET_CATEGORY(e,t){e.stimulusList[e.activeStimulusId].category=t},SET_SELECTED_CONTENT_TYPE(e,t){e.stimulusList[e.activeStimulusId].selectedContentType=t},SET_CONTENT_TYPE(e,t){e.stimulusList[e.activeStimulusId].contentType=t},SET_DEVELOPMENT_STAGE(e,t){e.stimulusList[e.activeStimulusId].developmentStage=t}},we={retrieveVideoCategories({commit:e}){return B.CategoryService.retrieveVideoCategories().then(t=>{e(\"SET_CATEGORY_OPTIONS\",t)}).catch(t=>(e(\"SET_CATEGORY_OPTIONS\",[]),console.log(t),Promise.reject()))}};var Le={namespaced:!0,strict:be,state:Re,getters:Ne,mutations:Oe,actions:we},je=a(\"98dc\"),ke=a.n(je);const De=!0,Me=()=>({questionTypeOptions:[{text:\"singleChoice\",value:m[\"a\"].QUESTION_TYPE.SINGLE_CHOICE},{text:\"multiChoice\",value:m[\"a\"].QUESTION_TYPE.MULTI_CHOICE},{text:\"openEnded\",value:m[\"a\"].QUESTION_TYPE.OPEN_ENDED},{text:\"scale\",value:m[\"a\"].QUESTION_TYPE.SCALE}],questionList:[]}),Ue=Me(),xe={getQuestionTypeOptions:e=>e.questionTypeOptions,getQuestionList:e=>e.questionList},Ge={RESET(e){const t=Me();Object.keys(t).forEach(a=>{e[a]=t[a]})},INIT_QUESTION_LIST(e,t){e.questionList=[];let a={};t.forEach(t=>{a={},a.id=ke()(\"question_\"),a.type=t.type,a.text=t.text,t.answers&&t.answers.answerList&&t.answers.answerList.length>0?(a.answerList=[],t.answers.answerList.forEach(e=>{a.answerList.push({id:ke()(\"answer_\"),text:e})}),a.randomAnswerOrder=t.answers.randomOrder):(a.answerList=[],a.randomAnswerOrder=!1),e.questionList.push(a)})},SET_QUESTION_LIST(e,t){e.questionList=t},ADD_QUESTION(e,t){e.questionList.push(t)},UPDATE_QUESTION(e,t){const a=e.questionList.findIndex(e=>e.id===t.id);a>-1&&(e.questionList[a]=t)},REMOVE_QUESTION(e,t){e.questionList=e.questionList.filter(e=>e.id!==t)}},Ve={};var Be={namespaced:!0,strict:De,state:Ue,getters:xe,mutations:Ge,actions:Ve};const Fe=!0,qe=()=>({creditCard:{company:\"\",VATNumber:\"\",address:\"\",country:\"\",postalCode:\"\",city:\"\",province:\"\",recipientCode:\"\",PEC:\"\",purchaseOrderNumber:\"\",acceptTerms:!1}}),Ye=qe(),We={getCreditCardCompany:e=>e.creditCard.company,getCreditCardVATNumber:e=>e.creditCard.VATNumber,getCreditCardAddress:e=>e.creditCard.address,getCreditCardCountry:e=>e.creditCard.country,getCreditCardCountryName:e=>e.creditCard.country.name,getCreditCardCountryCode:e=>e.creditCard.country.code,getCreditCardPostalCode:e=>e.creditCard.postalCode,getCreditCardCity:e=>e.creditCard.city,getCreditCardProvince:e=>e.creditCard.province,getCreditCardRecipientCode:e=>e.creditCard.recipientCode,getCreditCardPEC:e=>e.creditCard.PEC,getCreditCardPurchaseOrderNumber:e=>e.creditCard.purchaseOrderNumber,isCreditCardAcceptTermsSelected:e=>e.creditCard.acceptTerms},Qe={RESET(e){const t=qe();Object.keys(t).forEach(a=>{e[a]=t[a]})},INITIALIZE(e,t){e.creditCard.company=t.company,e.creditCard.VATNumber=t.vat,e.creditCard.address=t.address;const a=m[\"a\"].COUNTRY_LIST.find(e=>e.name===t.country,{root:!0});e.creditCard.country=a,e.creditCard.postalCode=t.zip,e.creditCard.city=t.city,e.creditCard.province=t.province,e.creditCard.recipientCode=t.recipientCode,e.creditCard.PEC=t.pec,e.creditCard.purchaseOrderNumber=t.po,e.creditCard.acceptTerms=t.acceptedTerms},SET_CREDIT_CARD_COMPANY(e,t){e.creditCard.company=t},SET_CREDIT_CARD_VAT_Number(e,t){e.creditCard.VATNumber=t},SET_CREDIT_CARD_ADDRESS(e,t){e.creditCard.address=t},SET_CREDIT_CARD_COUNTRY(e,t){e.creditCard.country=t},SET_CREDIT_CARD_POSTAL_CODE(e,t){e.creditCard.postalCode=t},SET_CREDIT_CARD_CITY(e,t){e.creditCard.city=t},SET_CREDIT_CARD_PROVINCE(e,t){e.creditCard.province=t},SET_CREDIT_CARD_RECIPIENT_CODE(e,t){e.creditCard.recipientCode=t},SET_CREDIT_CARD_PEC(e,t){e.creditCard.PEC=t},SET_CREDIT_CARD_PURCHASE_ORDER_NUMBER(e,t){e.creditCard.purchaseOrderNumber=t},SET_CREDIT_CARD_ACCEPT_TERMS(e,t){e.creditCard.acceptTerms=t}},He={};var Je={namespaced:!0,strict:Fe,state:Ye,getters:We,mutations:Qe,actions:He},ze=a(\"5a0c\"),Ke=a.n(ze);const Ze=!0,$e={emotions:[\"happiness\",\"surprise\",\"anger\",\"disgust\",\"fear\",\"sadness\"],genders:[\"male\",\"female\"],age:[\"ageRange0\",\"ageRange1\",\"ageRange2\"],currentVideo:0,videoData:{},chartData:{},styleData:{},emotionSeries:[],demographicsType:\"gender\",demographicsEmotion:\"happiness\",demographicsSeries:[],segmentsType:\"intentiontobuy\",segmentsEmotion:\"happiness\",videos:[],filters:[]},Xe={getEmotions:e=>e.emotions,getCurrentVideo:e=>e.currentVideo,getStyleData:e=>e.styleData,getEmotionSeries:e=>e.emotionSeries,getDemographicsSeries:e=>e.demographicsSeries,getSegmentsSeries:e=>e.segmentsSeries,getDemographicsType:e=>e.demographicsType,getCurrentVideoData:e=>e.videoData,getVideos:e=>e.videos},et={SET_CHART_DATA(e,t){e.chartData=t},SET_STYLE_DATA(e,t){e.styleData=t},SET_EMOTIONS_SERIES(e,t){e.emotionSeries=t},SET_DEMOGRAPHICS_SERIES(e,t){e.demographicsSeries=t},SET_SEGMENTS_SERIES(e,t){e.segmentsSeries=t},SET_VIDEO(e,t){e.currentVideo=t},SET_VIDEO_DATA(e,t){e.videoData=t},SET_DEMOGRAPHICS_SELECTIONS(e,t){console.log(t.type),e.demographicsType=t.type,e.demographicsEmotion=t.emotion},SET_ALL_VIDEOS_DATA(e,t){e.videos=t},SET_FILTERS(e,t){e.filters=t}},tt={setChartData({commit:e},t){const a=[],o=[];for(const n in t)a.push({...t[n]}),o.push({title:t[n].title,rank:t[n].rank,previewImage:t[n].previewImage,description:t[n].description,totalComplete:t[n].summaries.totalComplete,gender:t[n].summaries.gender,age:t[n].summaries.age,emotionalResponse:t[n].summaries.emotionalResponse,mediaEffectiveness:t[n].summaries.mediaEffectiveness,audienceEngagement:t[n].summaries.audienceEngagement,valence:t[n].summaries.valence,digitalPerformance:t[n].summaries.digitalPerformance,mediaOptimization:t[n].summaries.mediaOptimization,country:t[n].summaries.country,category:t[n].summaries.category});e(\"SET_CHART_DATA\",a),e(\"SET_ALL_VIDEOS_DATA\",o)},setEmotionSeries({state:e,commit:t}){const a={},o=e.chartData[e.currentVideo].emotions[0].data.length,n=new Array(o);for(let r=0;r<o;r++){const t=\":\"+(r<=9?\"0\"+r:r);n[r]={};for(const o of e.chartData[e.currentVideo].emotions)a[o.lineId.toLowerCase()]={},a[o.lineId.toLowerCase()].color=o.backgroundColor,a[o.lineId.toLowerCase()].strokeWidth=o.borderWidth,a[o.lineId.toLowerCase()].borderDash=o.borderDash,a[o.lineId.toLowerCase()].tension=o.tension,n[r].time=t,n[r][o.lineId.toLowerCase()]=o.data[r]}t(\"SET_STYLE_DATA\",a),t(\"SET_EMOTIONS_SERIES\",n)},setDemographicsSeries({state:e,commit:t}){const a={},o=e.demographicsType,n=e.demographicsEmotion,r=e.chartData[e.currentVideo].demographics[o][n][0].data.length,i=e.chartData[e.currentVideo].demographics[o][n],s=new Array(r);for(let c=0;c<r;c++){const e=\":\"+(c<=9?\"0\"+c:c);s[c]={};for(const t of i)a[t.lineId.toLowerCase()]={},a[t.lineId.toLowerCase()].color=t.backgroundColor,a[t.lineId.toLowerCase()].strokeWidth=t.borderWidth,a[t.lineId.toLowerCase()].borderDash=t.borderDash,a[t.lineId.toLowerCase()].tension=t.tension,s[c].time=e,s[c][t.lineId.toLowerCase()]=t.data[c]}t(\"SET_STYLE_DATA\",a),t(\"SET_DEMOGRAPHICS_SERIES\",s)},setSegmentsSeries({state:e,commit:t}){const a={},o=e.segmentsType,n=e.segmentsEmotion;console.log(e.chartData[e.currentVideo].segments[o]);const r=e.chartData[e.currentVideo].segments[o][n][0].data.length,i=e.chartData[e.currentVideo].segments[o][n],s=new Array(r);for(let c=0;c<r;c++){const e=Ke()().year(0).month(0).day(0).hour(0).minute(0).second(c).millisecond(0).toDate();s[c]={};for(const t of i)a[t.lineId.toLowerCase()]={},a[t.lineId.toLowerCase()].color=t.backgroundColor,a[t.lineId.toLowerCase()].strokeWidth=t.borderWidth,a[t.lineId.toLowerCase()].borderDash=t.borderDash,a[t.lineId.toLowerCase()].tension=t.tension,s[c].time=e,s[c][t.lineId.toLowerCase()]=t.data[c]}t(\"SET_STYLE_DATA\",a),t(\"SET_SEGMENTS_SERIES\",s)},setVideo({state:e,commit:t},a){t(\"SET_VIDEO\",a);const o=e.chartData[e.currentVideo];console.log(e.currentVideo),console.log(o),t(\"SET_VIDEO_DATA\",{title:o.title,rank:o.rank,previewImage:o.previewImage,description:o.description,totalComplete:o.summaries.totalComplete,gender:o.summaries.gender,age:o.summaries.age,emotionalResponse:o.summaries.emotionalResponse,mediaEffectiveness:o.summaries.mediaEffectiveness,audienceEngagement:o.summaries.audienceEngagement,valence:o.summaries.valence,digitalPerformance:o.summaries.digitalPerformance,mediaOptimization:o.summaries.mediaOptimization,country:o.summaries.country,category:o.summaries.category})},setFilters({commit:e},t){e(\"SET_FILTERS\",t)}};var at={namespaced:!0,strict:Ze,state:$e,getters:Xe,mutations:et,actions:tt};o[\"a\"].use(p[\"a\"]);const ot=new g[\"a\"]({storage:window.localStorage}),nt={error:v,loader:R,auth:J,project:se,wizard:ge,audience:ye,stimulus:Le,question:Be,checkout:Je,analysis:at},rt={clearAll({commit:e}){Object.keys(nt).filter(e=>\"loader\"!==e).forEach(t=>{e(t+\"/RESET\")}),window.sessionStorage.clear(),window.localStorage.clear()},async logout({commit:e}){e(\"auth/SET_IS_LOGGED_IN\",!1),lt.replace({name:\"Login\"})}};var it=new p[\"a\"].Store({modules:nt,strict:!0,state:{},getters:{},mutations:{},actions:rt,plugins:[ot.plugin]});o[\"a\"].use(l[\"a\"]);const st=[{path:\"/\",component:()=>a.e(\"chunk-5e579c98\").then(a.bind(null,\"6e9f\")),redirect:{name:\"Dashboard\"},children:[{path:\"results\",name:\"results\",redirect:{name:\"ranking\",query:{display:\"grid\"}},component:()=>Promise.all([a.e(\"chunk-115a172f\"),a.e(\"chunk-fc35c610\")]).then(a.bind(null,\"e1c0\")),children:[{path:\"ranking\",name:\"ranking\",component:()=>a.e(\"chunk-0528787a\").then(a.bind(null,\"fc8e\")),meta:{requiresAuth:!0}},{path:\"analysis/:videoId\",name:\"analysis\",component:()=>Promise.all([a.e(\"chunk-115a172f\"),a.e(\"chunk-2d216c05\"),a.e(\"chunk-5a9c7866\")]).then(a.bind(null,\"ade3\")),meta:{requiresAuth:!0}},{path:\"score/:videoId\",name:\"score\",component:()=>Promise.all([a.e(\"chunk-115a172f\"),a.e(\"chunk-2d216c05\"),a.e(\"chunk-f7579476\")]).then(a.bind(null,\"65a5\")),meta:{requiresAuth:!0}}]},{path:\"login\",name:\"Login\",component:()=>a.e(\"chunk-ea50d91e\").then(a.bind(null,\"d864\"))},{path:\"dashboard\",name:\"Dashboard\",component:()=>a.e(\"chunk-4f10fbf0\").then(a.bind(null,\"c9f0\")),meta:{requiresAuth:!0},beforeEnter(e,t,a){it.dispatch(\"project/retrieveProjectsByClientId\").then(()=>{a()}).catch(e=>console.log(e))}},{path:\"project/:id\",component:()=>a.e(\"chunk-65c8802a\").then(a.bind(null,\"9263d\")),children:[{path:\"audience\",name:\"Audience\",component:()=>a.e(\"chunk-4ac1f916\").then(a.bind(null,\"549e\")),meta:{requiresAuth:!0},beforeEnter(e,t,a){it.commit(\"wizard/SET_ACTIVE_STEP\",m[\"a\"].WIZARD_STEPS.AUDIENCE);const o=it.getters[\"project/getActiveProjectId\"];o!==e.params.id?ut(e.params.id).then(()=>dt()).then(()=>a()).catch(e=>console.log(e)):a()}},{path:\"stimulus\",name:\"Stimulus\",component:()=>a.e(\"chunk-01646568\").then(a.bind(null,\"8e40\")),meta:{requiresAuth:!0},beforeEnter(e,t,a){it.commit(\"wizard/SET_ACTIVE_STEP\",m[\"a\"].WIZARD_STEPS.STIMULUS);const o=it.getters[\"project/getActiveProjectId\"];o!==e.params.id?ut(e.params.id).then(()=>a()).catch(e=>console.log(e)):a()}},{path:\"questions\",name:\"Questions\",component:()=>a.e(\"chunk-17e2c63b\").then(a.bind(null,\"1ecf\")),meta:{requiresAuth:!0},beforeEnter(e,t,a){it.commit(\"wizard/SET_ACTIVE_STEP\",m[\"a\"].WIZARD_STEPS.QUESTIONS);const o=it.getters[\"project/getActiveProjectId\"];o!==e.params.id?ut(e.params.id).then(()=>a()).catch(e=>console.log(e)):a()}},{path:\"review\",name:\"Review\",component:()=>a.e(\"chunk-2d0e5b47\").then(a.bind(null,\"962f\")),meta:{requiresAuth:!0},beforeEnter(e,t,a){it.commit(\"wizard/SET_ACTIVE_STEP\",m[\"a\"].WIZARD_STEPS.REVIEW);const o=it.getters[\"project/getActiveProjectId\"];o!==e.params.id?ut(e.params.id).then(()=>a()).catch(e=>console.log(e)):a()}},{path:\"checkout\",name:\"Checkout\",component:()=>a.e(\"chunk-24d55862\").then(a.bind(null,\"f6c6\")),meta:{requiresAuth:!0},beforeEnter(e,t,a){it.commit(\"wizard/SET_ACTIVE_STEP\",m[\"a\"].WIZARD_STEPS.CHECKOUT);const o=it.getters[\"project/getActiveProjectId\"];o!==e.params.id?ut(e.params.id).then(()=>a()).catch(e=>console.log(e)):a()}}]},{path:\"new-project\",name:\"NewProject\",component:()=>a.e(\"chunk-17458494\").then(a.bind(null,\"9267\")),meta:{requiresAuth:!0},beforeEnter:(e,t,a)=>{it.getters[\"auth/getUserType\"]!==m[\"a\"].USER_TYPE.REGULAR?(it.commit(\"error/SET_ERROR\",{messageText:\"dialog.error.pageNotFoundMessage\"}),a({name:\"Dashboard\",params:{is404:!0}})):a()}},{path:\"success-payment\",name:\"SuccessPayment\",component:()=>a.e(\"chunk-2d0bae4b\").then(a.bind(null,\"38c3\")),meta:{requiresAuth:!0}}]},{path:\"*\",name:\"404\",beforeEnter:(e,t,a)=>{it.commit(\"error/SET_ERROR\",{messageText:\"dialog.error.pageNotFoundMessage\"}),a({name:\"Dashboard\",params:{is404:!0}})}}],ct=new l[\"a\"]({mode:\"history\",routes:st});function dt(){const e=it.getters[\"auth/getUserType\"]===m[\"a\"].USER_TYPE.CUSTOMER,t=it.getters[\"audience/getBrandCategoryOptions\"];return e&&!t.length?it.dispatch(\"audience/retrieveProjectCategories\"):Promise.resolve()}async function ut(e){return it.dispatch(\"project/retrieveProjectByClientId\",e)}ct.beforeEach((e,t,a)=>{e.params.is404||it.commit(\"error/RESET\"),it.commit(\"loader/SET_LOADER\",{});const o=it.getters[\"auth/isLoggedIn\"];o&&\"Login\"===e.name?a({name:\"Dashboard\"}):e.meta.requiresAuth?o?a():a({name:\"Login\",params:e.params}):a()}),ct.afterEach((e,t)=>{it.dispatch(\"loader/close\")});var lt=ct,mt=a(\"9483\");Object(mt[\"a\"])(\"/service-worker.js\",{ready(){console.log(\"App is being served from cache by a service worker.\\nFor more details, visit https://goo.gl/AFskqB\")},registered(){console.log(\"Service worker has been registered.\")},cached(){console.log(\"Content has been cached for offline use.\")},updatefound(){console.log(\"New content is downloading.\")},updated(){console.log(\"New content is available; please refresh.\")},offline(){console.log(\"No internet connection found. App is running in offline mode.\")},error(e){console.error(\"Error during service worker registration:\",e)}});var pt=a(\"969b\"),gt=a(\"1bbb\"),ht=a(\"a15b\"),Et=a(\"b28b\"),Tt=a(\"1947\"),St=a(\"205f\"),Ct=a(\"6197\"),Pt=a(\"4968\"),vt=a(\"d6e4\"),At=a(\"670f\"),ft=a(\"2812\"),yt=a(\"11de\"),_t=a(\"8226\"),bt=a(\"4797\"),It=a(\"5e12\"),Rt=a(\"ccc0\"),Nt=a(\"3656\"),Ot=a(\"d190\"),wt=a(\"2924\"),Lt=a(\"9e14\"),jt=a(\"3010\"),kt=a(\"3b99\"),Dt=a(\"c3e6\"),Mt=a(\"8361\"),Ut=a(\"ea4c\"),xt=a(\"d0b9\"),Gt=a(\"042b\"),Vt=a(\"8f77\"),Bt=a(\"11a5\"),Ft=a(\"4711\"),qt=a(\"c17e\"),Yt=a(\"f902\"),Wt=a(\"6190\"),Qt=a(\"4918\"),Ht=a(\"6aac\"),Jt=a(\"e235\"),zt=a(\"5843\"),Kt=a(\"aa59\"),Zt=a(\"c43f\"),$t=a(\"3135\"),Xt=a(\"d247\"),ea=a(\"9c7d\"),ta=a(\"29a1\"),aa=a(\"9b03\"),oa=a(\"1ad5\"),na=a(\"39ba\"),ra=a(\"b1e0\");o[\"a\"].use(pt[\"a\"],{BButton:{variant:\"primary\"}}),o[\"a\"].component(\"b-container\",gt[\"a\"]),o[\"a\"].component(\"b-row\",ht[\"a\"]),o[\"a\"].component(\"b-col\",Et[\"a\"]),o[\"a\"].component(\"b-button\",Tt[\"a\"]),o[\"a\"].component(\"b-card\",St[\"a\"]),o[\"a\"].component(\"b-card-body\",Ct[\"a\"]),o[\"a\"].component(\"b-card-title\",Pt[\"a\"]),o[\"a\"].component(\"b-card-text\",vt[\"a\"]),o[\"a\"].component(\"b-card-footer\",At[\"a\"]),o[\"a\"].component(\"b-card-img\",ft[\"a\"]),o[\"a\"].component(\"b-form\",yt[\"a\"]),o[\"a\"].component(\"b-form-group\",_t[\"a\"]),o[\"a\"].component(\"b-form-input\",bt[\"a\"]),o[\"a\"].component(\"b-input-group\",It[\"a\"]),o[\"a\"].component(\"b-input-group-append\",Rt[\"a\"]),o[\"a\"].component(\"b-input-group-prepend\",Nt[\"a\"]),o[\"a\"].component(\"b-input-group-text\",Ot[\"a\"]),o[\"a\"].component(\"b-form-radio-group\",wt[\"a\"]),o[\"a\"].component(\"b-form-radio\",Lt[\"a\"]),o[\"a\"].component(\"b-form-invalid-feedback\",jt[\"a\"]),o[\"a\"].component(\"b-form-checkbox-group\",kt[\"a\"]),o[\"a\"].component(\"b-form-checkbox\",Dt[\"a\"]),o[\"a\"].component(\"b-form-select\",Mt[\"a\"]),o[\"a\"].component(\"b-form-select-option\",Ut[\"a\"]),o[\"a\"].component(\"b-navbar\",xt[\"a\"]),o[\"a\"].component(\"b-navbar-nav\",Gt[\"a\"]),o[\"a\"].component(\"b-navbar-brand\",Vt[\"a\"]),o[\"a\"].component(\"b-navbar-toggle\",Bt[\"a\"]),o[\"a\"].component(\"b-nav-item\",Ft[\"a\"]),o[\"a\"].component(\"b-nav-text\",qt[\"a\"]),o[\"a\"].component(\"b-tabs\",Yt[\"a\"]),o[\"a\"].component(\"b-tab\",Wt[\"a\"]),o[\"a\"].component(\"b-img\",Qt[\"a\"]),o[\"a\"].component(\"b-modal\",Ht[\"a\"]),o[\"a\"].component(\"b-breadcrumb\",Jt[\"a\"]),o[\"a\"].component(\"b-collapse\",zt[\"a\"]),o[\"a\"].component(\"b-link\",Kt[\"a\"]),o[\"a\"].component(\"b-form-file\",Zt[\"a\"]),o[\"a\"].component(\"b-list-group\",$t[\"a\"]),o[\"a\"].component(\"b-list-group-item\",Xt[\"a\"]),o[\"a\"].component(\"b-form-textarea\",ea[\"a\"]),o[\"a\"].component(\"b-table\",ta[\"a\"]),o[\"a\"].component(\"b-overlay\",aa[\"a\"]),o[\"a\"].directive(\"b-hover\",oa[\"a\"]),o[\"a\"].directive(\"b-toggle\",na[\"e\"]),o[\"a\"].use(ra[\"a\"]);var ia=a(\"7bb1\"),sa=a(\"4c93\"),ca=a(\"2593\");o[\"a\"].component(\"ValidationObserver\",ia[\"a\"]),o[\"a\"].component(\"ValidationProvider\",ia[\"b\"]),Object(ia[\"d\"])(\"en\",ca),Object(ia[\"c\"])(\"required\",{...sa[\"e\"],message:e=>e+\" is required.\"}),Object(ia[\"c\"])(\"email\",{...sa[\"a\"],message:\"Email is not valid.\"}),Object(ia[\"c\"])(\"min\",{...sa[\"d\"]}),Object(ia[\"c\"])(\"integer\",{...sa[\"b\"],message:e=>e+\" must be an integer.\"}),Object(ia[\"c\"])(\"length\",{...sa[\"c\"],message:e=>`Invalid ${e}.`}),Object(ia[\"c\"])(\"phone\",{message:e=>e+\" is not a valid.\",validate(e){return new Promise(t=>{const a=/\\(?([0-9]{3})\\)?([ .-]?)([0-9]{3})\\2([0-9]{4})/,o=a.test(e);t({valid:o})})}}),Object(ia[\"c\"])(\"password\",{message(){return\"Password must be at least 8 characters and needs to include lower and uppercase letters and numbers..\"},validate(e){return new Promise(t=>{const a=/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})/,o=a.test(e);t({valid:o})})}}),Object(ia[\"c\"])(\"passwordMatch\",{params:[\"target\"],message:\"Password confirmation does not match.\",validate(e,{target:t}){return e===t}}),Object(ia[\"c\"])(\"checkboxRequired\",{message(){return\"Must be checked.\"},validate(e){return!1!==e}}),Object(ia[\"c\"])(\"vatNumber\",{message:e=>e+\" is not a valid.\",validate(e){return new Promise(t=>{const a=/^[0-9]{11}$/,o=a.test(e);t({valid:o})})}});a(\"e4cc\"),a(\"9e30\");var da=a(\"310e\"),ua=a.n(da),la=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(\"b-modal\",{attrs:{\"content-class\":\"rounded-0\",\"ok-title\":e.$t(e.actionBtnLabel),\"ok-variant\":\"secondary\",\"ok-only\":\"\"},on:{hide:e.closeModal},scopedSlots:e._u([{key:\"modal-title\",fn:function(){return[a(\"span\",{domProps:{innerHTML:e._s(e.$t(e.titleText,e.titleParams))}})]},proxy:!0}]),model:{value:e.state,callback:function(t){e.state=t},expression:\"state\"}},[a(\"p\",{domProps:{innerHTML:e._s(e.$t(e.messageText,e.messageParams))}})])},ma=[],pa={methods:{closeModal(){this.$store.dispatch(\"error/close\")}},computed:{state:{get(){return this.$store.getters[\"error/isActive\"]},set(e){this.$store.commit(\"error/SET_ACTIVE\",e)}},titleText(){return this.$store.getters[\"error/getTitleText\"]},titleParams(){return this.$store.getters[\"error/getTitleParams\"]},messageText(){return this.$store.getters[\"error/getMessageText\"]},messageParams(){return this.$store.getters[\"error/getMessageParams\"]},actionBtnLabel(){return this.$store.getters[\"error/getActionBtnLabel\"]}}},ga=pa,ha=Object(c[\"a\"])(ga,la,ma,!1,null,\"11f32f18\",null),Ea=ha.exports;o[\"a\"].component(\"base-error-dialog\",Ea),o[\"a\"].component(\"draggable\",ua.a),Te.locale=\"en\",o[\"a\"].config.productionTip=!1,o[\"a\"].filter(\"fileSize\",e=>{const t=e/1024/1024||0;return Number.parseFloat(t).toFixed(2)}),o[\"a\"].filter(\"fileName\",e=>{const t=e.length;if(t>20){const a=/[.]/.exec(e)?e.split(\".\").pop():void 0,o=e.slice(0,10)+\"...\";return a&&a.length>0?o+e.slice(t-a.length-4,t-a.length)+a:o+e.slice(t-4,t)}return e}),o[\"a\"].filter(\"price\",(function(e){if(\"number\"!==typeof e)return e;var t=new Intl.NumberFormat(\"it-IT\",{currency:\"EUR\",minimumFractionDigits:0});return t.format(e)})),o[\"a\"].filter(\"date\",(e,t)=>{const a=Ke()(String(e));return a.isValid()?a.locale(Te.locale).format(t):Te.t(\"notAvailable\")}),new o[\"a\"]({router:lt,store:it,i18n:Te,render:e=>e(u)}).$mount(\"#app\")},\"6e82\":function(e,t,a){\"use strict\";var o=a(\"d789\"),n=a.n(o);n.a},7697:function(e,t,a){},\"7da4\":function(e,t,a){var o={\"./en.json\":\"35c9\",\"./it.json\":\"2851\"};function n(e){var t=r(e);return a(t)}function r(e){if(!a.o(o,e)){var t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=r,e.exports=n,n.id=\"7da4\"},\"85b6\":function(e,t,a){\"use strict\";var o=a(\"4aed\"),n=a.n(o);n.a},b53c:function(e,t,a){\"use strict\";const o=[{name:\"Afghanistan\",code:\"AF\"},{name:\"Ă…land Islands\",code:\"AX\"},{name:\"Albania\",code:\"AL\"},{name:\"Algeria\",code:\"DZ\"},{name:\"American Samoa\",code:\"AS\"},{name:\"AndorrA\",code:\"AD\"},{name:\"Angola\",code:\"AO\"},{name:\"Anguilla\",code:\"AI\"},{name:\"Antarctica\",code:\"AQ\"},{name:\"Antigua and Barbuda\",code:\"AG\"},{name:\"Argentina\",code:\"AR\"},{name:\"Armenia\",code:\"AM\"},{name:\"Aruba\",code:\"AW\"},{name:\"Australia\",code:\"AU\"},{name:\"Austria\",code:\"AT\"},{name:\"Azerbaijan\",code:\"AZ\"},{name:\"Bahamas\",code:\"BS\"},{name:\"Bahrain\",code:\"BH\"},{name:\"Bangladesh\",code:\"BD\"},{name:\"Barbados\",code:\"BB\"},{name:\"Belarus\",code:\"BY\"},{name:\"Belgium\",code:\"BE\"},{name:\"Belize\",code:\"BZ\"},{name:\"Benin\",code:\"BJ\"},{name:\"Bermuda\",code:\"BM\"},{name:\"Bhutan\",code:\"BT\"},{name:\"Bolivia\",code:\"BO\"},{name:\"Bosnia and Herzegovina\",code:\"BA\"},{name:\"Botswana\",code:\"BW\"},{name:\"Bouvet Island\",code:\"BV\"},{name:\"Brazil\",code:\"BR\"},{name:\"British Indian Ocean Territory\",code:\"IO\"},{name:\"Brunei Darussalam\",code:\"BN\"},{name:\"Bulgaria\",code:\"BG\"},{name:\"Burkina Faso\",code:\"BF\"},{name:\"Burundi\",code:\"BI\"},{name:\"Cambodia\",code:\"KH\"},{name:\"Cameroon\",code:\"CM\"},{name:\"Canada\",code:\"CA\"},{name:\"Cape Verde\",code:\"CV\"},{name:\"Cayman Islands\",code:\"KY\"},{name:\"Central African Republic\",code:\"CF\"},{name:\"Chad\",code:\"TD\"},{name:\"Chile\",code:\"CL\"},{name:\"China\",code:\"CN\"},{name:\"Christmas Island\",code:\"CX\"},{name:\"Cocos (Keeling) Islands\",code:\"CC\"},{name:\"Colombia\",code:\"CO\"},{name:\"Comoros\",code:\"KM\"},{name:\"Congo\",code:\"CG\"},{name:\"Congo, The Democratic Republic of the\",code:\"CD\"},{name:\"Cook Islands\",code:\"CK\"},{name:\"Costa Rica\",code:\"CR\"},{name:\"Cote D'Ivoire\",code:\"CI\"},{name:\"Croatia\",code:\"HR\"},{name:\"Cuba\",code:\"CU\"},{name:\"Cyprus\",code:\"CY\"},{name:\"Czech Republic\",code:\"CZ\"},{name:\"Denmark\",code:\"DK\"},{name:\"Djibouti\",code:\"DJ\"},{name:\"Dominica\",code:\"DM\"},{name:\"Dominican Republic\",code:\"DO\"},{name:\"Ecuador\",code:\"EC\"},{name:\"Egypt\",code:\"EG\"},{name:\"El Salvador\",code:\"SV\"},{name:\"Equatorial Guinea\",code:\"GQ\"},{name:\"Eritrea\",code:\"ER\"},{name:\"Estonia\",code:\"EE\"},{name:\"Ethiopia\",code:\"ET\"},{name:\"Falkland Islands (Malvinas)\",code:\"FK\"},{name:\"Faroe Islands\",code:\"FO\"},{name:\"Fiji\",code:\"FJ\"},{name:\"Finland\",code:\"FI\"},{name:\"France\",code:\"FR\"},{name:\"French Guiana\",code:\"GF\"},{name:\"French Polynesia\",code:\"PF\"},{name:\"French Southern Territories\",code:\"TF\"},{name:\"Gabon\",code:\"GA\"},{name:\"Gambia\",code:\"GM\"},{name:\"Georgia\",code:\"GE\"},{name:\"Germany\",code:\"DE\"},{name:\"Ghana\",code:\"GH\"},{name:\"Gibraltar\",code:\"GI\"},{name:\"Greece\",code:\"GR\"},{name:\"Greenland\",code:\"GL\"},{name:\"Grenada\",code:\"GD\"},{name:\"Guadeloupe\",code:\"GP\"},{name:\"Guam\",code:\"GU\"},{name:\"Guatemala\",code:\"GT\"},{name:\"Guernsey\",code:\"GG\"},{name:\"Guinea\",code:\"GN\"},{name:\"Guinea-Bissau\",code:\"GW\"},{name:\"Guyana\",code:\"GY\"},{name:\"Haiti\",code:\"HT\"},{name:\"Heard Island and Mcdonald Islands\",code:\"HM\"},{name:\"Holy See (Vatican City State)\",code:\"VA\"},{name:\"Honduras\",code:\"HN\"},{name:\"Hong Kong\",code:\"HK\"},{name:\"Hungary\",code:\"HU\"},{name:\"Iceland\",code:\"IS\"},{name:\"India\",code:\"IN\"},{name:\"Indonesia\",code:\"ID\"},{name:\"Iran, Islamic Republic Of\",code:\"IR\"},{name:\"Iraq\",code:\"IQ\"},{name:\"Ireland\",code:\"IE\"},{name:\"Isle of Man\",code:\"IM\"},{name:\"Israel\",code:\"IL\"},{name:\"Italy\",code:\"IT\"},{name:\"Jamaica\",code:\"JM\"},{name:\"Japan\",code:\"JP\"},{name:\"Jersey\",code:\"JE\"},{name:\"Jordan\",code:\"JO\"},{name:\"Kazakhstan\",code:\"KZ\"},{name:\"Kenya\",code:\"KE\"},{name:\"Kiribati\",code:\"KI\"},{name:\"Korea, Democratic People'S Republic of\",code:\"KP\"},{name:\"Korea, Republic of\",code:\"KR\"},{name:\"Kuwait\",code:\"KW\"},{name:\"Kyrgyzstan\",code:\"KG\"},{name:\"Lao People'S Democratic Republic\",code:\"LA\"},{name:\"Latvia\",code:\"LV\"},{name:\"Lebanon\",code:\"LB\"},{name:\"Lesotho\",code:\"LS\"},{name:\"Liberia\",code:\"LR\"},{name:\"Libyan Arab Jamahiriya\",code:\"LY\"},{name:\"Liechtenstein\",code:\"LI\"},{name:\"Lithuania\",code:\"LT\"},{name:\"Luxembourg\",code:\"LU\"},{name:\"Macao\",code:\"MO\"},{name:\"Macedonia, The Former Yugoslav Republic of\",code:\"MK\"},{name:\"Madagascar\",code:\"MG\"},{name:\"Malawi\",code:\"MW\"},{name:\"Malaysia\",code:\"MY\"},{name:\"Maldives\",code:\"MV\"},{name:\"Mali\",code:\"ML\"},{name:\"Malta\",code:\"MT\"},{name:\"Marshall Islands\",code:\"MH\"},{name:\"Martinique\",code:\"MQ\"},{name:\"Mauritania\",code:\"MR\"},{name:\"Mauritius\",code:\"MU\"},{name:\"Mayotte\",code:\"YT\"},{name:\"Mexico\",code:\"MX\"},{name:\"Micronesia, Federated States of\",code:\"FM\"},{name:\"Moldova, Republic of\",code:\"MD\"},{name:\"Monaco\",code:\"MC\"},{name:\"Mongolia\",code:\"MN\"},{name:\"Montserrat\",code:\"MS\"},{name:\"Morocco\",code:\"MA\"},{name:\"Mozambique\",code:\"MZ\"},{name:\"Myanmar\",code:\"MM\"},{name:\"Namibia\",code:\"NA\"},{name:\"Nauru\",code:\"NR\"},{name:\"Nepal\",code:\"NP\"},{name:\"Netherlands\",code:\"NL\"},{name:\"Netherlands Antilles\",code:\"AN\"},{name:\"New Caledonia\",code:\"NC\"},{name:\"New Zealand\",code:\"NZ\"},{name:\"Nicaragua\",code:\"NI\"},{name:\"Niger\",code:\"NE\"},{name:\"Nigeria\",code:\"NG\"},{name:\"Niue\",code:\"NU\"},{name:\"Norfolk Island\",code:\"NF\"},{name:\"Northern Mariana Islands\",code:\"MP\"},{name:\"Norway\",code:\"NO\"},{name:\"Oman\",code:\"OM\"},{name:\"Pakistan\",code:\"PK\"},{name:\"Palau\",code:\"PW\"},{name:\"Palestinian Territory, Occupied\",code:\"PS\"},{name:\"Panama\",code:\"PA\"},{name:\"Papua New Guinea\",code:\"PG\"},{name:\"Paraguay\",code:\"PY\"},{name:\"Peru\",code:\"PE\"},{name:\"Philippines\",code:\"PH\"},{name:\"Pitcairn\",code:\"PN\"},{name:\"Poland\",code:\"PL\"},{name:\"Portugal\",code:\"PT\"},{name:\"Puerto Rico\",code:\"PR\"},{name:\"Qatar\",code:\"QA\"},{name:\"Reunion\",code:\"RE\"},{name:\"Romania\",code:\"RO\"},{name:\"Russian Federation\",code:\"RU\"},{name:\"RWANDA\",code:\"RW\"},{name:\"Saint Helena\",code:\"SH\"},{name:\"Saint Kitts and Nevis\",code:\"KN\"},{name:\"Saint Lucia\",code:\"LC\"},{name:\"Saint Pierre and Miquelon\",code:\"PM\"},{name:\"Saint Vincent and the Grenadines\",code:\"VC\"},{name:\"Samoa\",code:\"WS\"},{name:\"San Marino\",code:\"SM\"},{name:\"Sao Tome and Principe\",code:\"ST\"},{name:\"Saudi Arabia\",code:\"SA\"},{name:\"Senegal\",code:\"SN\"},{name:\"Serbia and Montenegro\",code:\"CS\"},{name:\"Seychelles\",code:\"SC\"},{name:\"Sierra Leone\",code:\"SL\"},{name:\"Singapore\",code:\"SG\"},{name:\"Slovakia\",code:\"SK\"},{name:\"Slovenia\",code:\"SI\"},{name:\"Solomon Islands\",code:\"SB\"},{name:\"Somalia\",code:\"SO\"},{name:\"South Africa\",code:\"ZA\"},{name:\"South Georgia and the South Sandwich Islands\",code:\"GS\"},{name:\"Spain\",code:\"ES\"},{name:\"Sri Lanka\",code:\"LK\"},{name:\"Sudan\",code:\"SD\"},{name:\"Suriname\",code:\"SR\"},{name:\"Svalbard and Jan Mayen\",code:\"SJ\"},{name:\"Swaziland\",code:\"SZ\"},{name:\"Sweden\",code:\"SE\"},{name:\"Switzerland\",code:\"CH\"},{name:\"Syrian Arab Republic\",code:\"SY\"},{name:\"Taiwan, Province of China\",code:\"TW\"},{name:\"Tajikistan\",code:\"TJ\"},{name:\"Tanzania, United Republic of\",code:\"TZ\"},{name:\"Thailand\",code:\"TH\"},{name:\"Timor-Leste\",code:\"TL\"},{name:\"Togo\",code:\"TG\"},{name:\"Tokelau\",code:\"TK\"},{name:\"Tonga\",code:\"TO\"},{name:\"Trinidad and Tobago\",code:\"TT\"},{name:\"Tunisia\",code:\"TN\"},{name:\"Turkey\",code:\"TR\"},{name:\"Turkmenistan\",code:\"TM\"},{name:\"Turks and Caicos Islands\",code:\"TC\"},{name:\"Tuvalu\",code:\"TV\"},{name:\"Uganda\",code:\"UG\"},{name:\"Ukraine\",code:\"UA\"},{name:\"United Arab Emirates\",code:\"AE\"},{name:\"United Kingdom\",code:\"GB\"},{name:\"United States\",code:\"US\"},{name:\"United States Minor Outlying Islands\",code:\"UM\"},{name:\"Uruguay\",code:\"UY\"},{name:\"Uzbekistan\",code:\"UZ\"},{name:\"Vanuatu\",code:\"VU\"},{name:\"Venezuela\",code:\"VE\"},{name:\"Viet Nam\",code:\"VN\"},{name:\"Virgin Islands, British\",code:\"VG\"},{name:\"Virgin Islands, U.S.\",code:\"VI\"},{name:\"Wallis and Futuna\",code:\"WF\"},{name:\"Western Sahara\",code:\"EH\"},{name:\"Yemen\",code:\"YE\"},{name:\"Zambia\",code:\"ZM\"},{name:\"Zimbabwe\",code:\"ZW\"}],n=e=>e&&\"[object Function]\"==={}.toString.call(e),r={NATIONAL:\"national\",PRIMARY:\"purchase\"},i={AUDIENCE:1,STIMULUS:2,QUESTIONS:3,REVIEW:4,CHECKOUT:5,COMPLETED:6},s={REGULAR:1,CUSTOMER:2},c={DISCOVER:\"discover\",TEST:\"abtest\",CUSTOM:\"custom\"},d={SINGLE_CHOICE:\"Single choice\",MULTI_CHOICE:\"Multi choice\",OPEN_ENDED:\"Open ended\",SCALE:\"Scale\"},u={PENDING:\"pending\",ACTIVE:\"active\",CLOSED:\"closed\"};t[\"a\"]={COUNTRY_LIST:o,isFunction:n,AUDIENCE_TARGET_GROUP:r,WIZARD_STEPS:i,USER_TYPE:s,PROJECT_PACKAGE:c,QUESTION_TYPE:d,PROJECT_STATUS:u}},d789:function(e,t,a){},ff2f:function(e,t,a){\"use strict\";var o=a(\"1caa\"),n=a.n(o);n.a}});\n" "//# sourceMappingURL=app.5c3f3a46.js.map") subst = "VUE_APP_API_HOST:\"otherhost\"" # You can manually specify the number of replacements by changing the 4th argument result = re.sub(regex, subst, test_str, 0) if result: print (result) # Note: for Python 2.7 compatibility, use ur"" to prefix the regex and u"" to prefix the test string and substitution.

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Python, please visit: https://docs.python.org/3/library/re.html