/*! For license information please see amped.snippet.LICENSE.txt */ "use strict";(self.webpackChunkamped_snippet=self.webpackChunkamped_snippet||[]).push([[481],{9481:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});var r=t(3526),i=function(e,n,t,r){return new(t||(t=Promise))((function(i,c){function u(e){try{a(r.next(e))}catch(e){c(e)}}function o(e){try{a(r.throw(e))}catch(e){c(e)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(u,o)}a((r=r.apply(e,n||[])).next())}))},c=function(e,n){var t,r,i,c,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return c={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function o(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c&&(c=0,o[0]&&(u=0)),u;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)switch(e.cityPredicate){case"CONTAINS":return e.cities.some((function(e){return-1!==n.indexOf(e)}));case"DOES_NOT_CONTAIN":return e.cities.every((function(e){return-1===n.indexOf(e)}));case"DOES_NOT_MATCH_EXACTLY":return!e.cities.includes(n);case"MATCHES_EXACTLY":return e.cities.includes(n);case"ANY":return!0;default:(0,r.U)(e.cityPredicate)}return!0};const s=function(e,n){return i(void 0,void 0,void 0,(function(){var t,r,i,s,l,f,p;return c(this,(function(c){switch(c.label){case 0:return[4,n.geoLocationService.get()];case 1:return(t=c.sent())?(r=t.country,i=t.region,s=t.city,l=u(e,r),f=o(e,i),p=a(e,s),[2,l&&f&&p]):[2,!1]}}))}))}}}]);