1!function(e){function t(t){for(var s,r,a=t[0],l=t[1],c=t[2],d=0,p=[];d<a.length;d++)r=a[d],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&p.push(o[r][0]),o[r]=0;for(s in l)Object.prototype.hasOwnProperty.call(l,s)&&(e[s]=l[s]);for(u&&u(t);p.length;)p.shift()();return n.push.apply(n,c||[]),i()}function i(){for(var e,t=0;t<n.length;t++){for(var i=n[t],s=!0,a=1;a<i.length;a++){var l=i[a];0!==o[l]&&(s=!1)}s&&(n.splice(t--,1),e=r(r.s=i[0]))}return e}var s={},o={22:0,4:0,30:0},n=[];function r(t){if(s[t])return s[t].exports;var i=s[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=s,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(i,s,function(t){return e[t]}.bind(null,s));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="";var a=window.webpackJsonp=window.webpackJsonp||[],l=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var u=l;n.push([215,0]),i()}({124:function(e,t,i){"use strict";i(91)},125:function(e,t,i){(t=i(46)(!1)).push([e.i,".c-Experience-cat__reply-submittion[data-v-2fb2df64]{background-color:#f4f4f4;padding:1.45em;border-top:1px solid #dadada}.c-Experience__reply--nested[data-v-2fb2df64]{border:1px solid #dadada;margin-top:1.5em}\n",""]),e.exports=t},210:function(e,t,i){var s,o;o=this,void 0===(s=function(){return o.svg4everybody=function(){function e(e,t,i){if(i){var s=document.createDocumentFragment(),o=!t.hasAttribute("viewBox")&&i.getAttribute("viewBox");o&&t.setAttribute("viewBox",o);for(var n=i.cloneNode(!0);n.childNodes.length;)s.appendChild(n.firstChild);e.appendChild(s)}}function t(t){t.onreadystatechange=function(){if(4===t.readyState){var i=t._cachedDocument;i||((i=t._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=t.responseText,t._cachedTarget={}),t._embeds.splice(0).map((function(s){var o=t._cachedTarget[s.id];o||(o=t._cachedTarget[s.id]=i.getElementById(s.id)),e(s.parent,s.svg,o)}))}},t.onreadystatechange()}function i(e){for(var t=e;"svg"!==t.nodeName.toLowerCase()&&(t=t.parentNode););return t}return function(s){var o,n=Object(s),r=window.top!==window.self;o="polyfill"in n?n.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&r;var a={},l=window.requestAnimationFrame||setTimeout,c=document.getElementsByTagName("use"),u=0;o&&function s(){for(var r=0;r<c.length;){var d=c[r],p=d.parentNode,_=i(p);if(_){var m=d.getAttribute("xlink:href")||d.getAttribute("href");if(o)if(!n.validate||n.validate(m,_,d)){p.removeChild(d);var g=m.split("#"),v=g.shift(),h=g.join("#");if(v.length){var b=a[v];b||((b=a[v]=new XMLHttpRequest).open("GET",v),b.send(),b._embeds=[]),b._embeds.push({parent:p,svg:_,id:h}),t(b)}else e(p,document.getElementById(h))}else++r,++u}else++r}(!c.length||c.length-u>0)&&l(s,67)}()}}()}.apply(t,[]))||(e.exports=s)},215:function(e,t,i){e.exports=i(484)},216:function(e,t){var i,s,o,n;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),Array.from||(Array.from=(i=Object.prototype.toString,s=function(e){return"function"==typeof e||"[object Function]"===i.call(e)},o=Math.pow(2,53)-1,n=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),o)},function(e){var t=this,i=Object(e);
1if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var o,r=arguments.length>1?arguments[1]:void 0;if(void 0!==r){if(!s(r))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var a,l=n(i.length),c=s(t)?Object(new t(l)):new Array(l),u=0;u<l;)a=i[u],c[u]=r?void 0===o?r(a,u):r.call(o,a,u):a,u+=1;return c.length=l,c}))},228:function(e,t,i){"use strict";i.r(t);var s=i(1),o=i(59),n=i(5),r=i(0),a=i(93),l=i(10),c=i(36),u=i(8);function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}s.default.use(n.a);var _=document.getElementById("cred-main");s.default.component("blog-comments",{name:"blog-comments",components:{Snackbar:l.a,ChainTree:a.default,AddReply:o.default,ButtonSvg:c.a,Spinner:u.a},data:function(){return{name:"Blog",replies:[],blogId:null,itsBlog:!0,toggleReply:!1,isFetching:!1,snackbarMessage:"",snackbarType:"",allReplies:0}},created:function(){var e=this,t=document.querySelector("#content [id*='post-']");(t&&(this.blogId=+t.id.replace("post-","")),this.getAllReplies(),this.checkIfUserLoggedIn(),this.$root.$on("closeMainReply",(function(){e.closeThisReply()})),this.$root.$on("refreshReplies",(function(t){e.getAllReplies()})),r.y&&r.y.isLoggedIn)&&(Object(r.t)(r.c.blog.openAddBlog)&&Object(r.q)(r.c.blog.openAddBlog))},mounted:function(){this.removeExtraBorders()},updated:function(){var e=this;this.$nextTick((function(){e.removeExtraBorders(),e.allReplies=$(".c-Experience-cat-reply__content").length}))},methods:{getAllReplies:function(e){var t=this;e&&(this.isFetching=!0),this.$http.post("/api/get-blog-comment/"+this.blogId+"/").then((function(i){var s=i.body;if(console.log(s),s&&"error"==s.message);else if(s&&"success"==s.message){var o=s.results||[];o.forEach((function(e){e.reply=e.comment,e.username=e.userName,e.repliedOn=e.createdOnStr,e.userProfileLink="/user-profile/".concat(e.username,"/home/")})),t.replies=d(o),t.$nextTick((function(){e&&(t.isFetching=!1)})),t.$forceUpdate()}}))},checkIfUserLoggedIn:function(){this.$http.post("/api/user-authentication/").then((function(e){var t=e.body,i=document.getElementById("cred-username"),s=document.getElementById("cred-register"),o=document.getElementById("cred-login"),n=document.getElementById("cred-logout");if(t&&t.userDetails)window.immiObj.ath=t,i&&(i.innerHTML='<a class="u-Underline" href="/user-profile/'.concat(t.userDetails.username,'/home/">').concat(t.userDetails.username,"</a>")),s&&(s.style.display="none"),n&&(n.style.display="inline-block"),o&&(o.style.display="none"),_&&(_.style.display="flex");else{window.immiObj.ath={isLoggedIn:!1,userDetails:null};var r="Guest";"zh"==immiObj.currentLangCode?r="ç¨æ·":"es"==immiObj.currentLangCode&&(r="Invitado"),i&&(i.innerHTML=r),s&&(s.style.display="inline-block"),n&&(n.style.display="none"),o&&(o.style.display="inline-block"),_&&(_.style.display="flex")}}))},closeThisReply:function(){this.toggleReply=!1},openThisReply:function(){window.immiObj&&window.immiObj.ath&&window.immiObj.ath.isLoggedIn?(this.toggleReply=!0,this.$root.$emit("closeNestedReplies",this.blogId,!0)):(Object(r.H)(r.c.blog.openAddBlog,!0),window.location.href=r.b.login)},removeExtraBorders:function(){var e=document.querySelectorAll(".c-Experience-cat__reply.borderline:not([parent-id])"),t=[];e&&(t=d(e)),t.forEach((function(e){var t=e.getAttribute("reply-id"),i=document.querySelectorAll('.c-Experience-cat__reply[reply-id="'+t+'"] .c-Experience-cat-reply__footer'),s=[];i&&i.length&&((s=d(i))[s.length-1].style.borderBottom=0,s[s.length-1].style.paddingBottom=0)}))}}})},484:function(e,t,i){"use strict";i.r(t);i(216);var s=i(82),o=i(6);function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}!function(){var e=Object(o.b)("hamburger-menu"),t=Object(o.b)("mobile-menu"),i=document.getElementsByTagName("BODY")[0],r=null;window.mobileToggle=!1;var a=function(){window.mobileToggle=!1,t.classList.remove("mobile-open"),t.classList.remove("c-Header__mobile-menu"),t.classList.add("c-Header__desktop-nav"),e.classList.remove("mobile-open"),i.classList.remove("pushy-open-right")};e.addEventListener("click",(function(){return window.mobileToggle?a():(window.mobileToggle=!0,t.classList.add("mobile-open"),t.classList.add("c-Header__mobile-menu"),t.classList.remove("c-Header__desktop-nav"),e.classList.add("mobile-open"),void i.classList.add("pushy-open-right"))})),window.addEventListener("resize",(function(){var e,t;e=function(){window.innerWidth>=s.a.large&&a()},t=100,clearTimeout(r),r=setTimeout((function(){e()}),t)}));var l=document.querySelector("html").getAttribute("lang"),c="menu-main-menu";"zh-CN"===l?c="menu-zh-menu":"es_MX"!=l&&"es-ES"!=l||(c="menu-es-menu");var u=Object(o.b)(c).childNodes;if(window.innerWidth>=s.a.large){var d=window.location.pathname.split("/")[1]?"/"+window.location.pathname.split("/")[1]+"/":"/",p=Array.prototype.filter.call(u,(function(e){return"LI"===e.nodeName&&e.firstChild&&e.firstChild.pathname===d}))[0];p&&(p.style.borderBottom="4px solid "+s.b.imRed)}if(Object(o.b)("print-link"))try{Object(o.b)("print-link").addEventListener("click",(function(){return window.print?window.print():alert("Print feature is not supported on your device.")}))}catch(e){console.log("Print feature is not supported or enabled on your browser.")}var _=Object(o.b)("share-link"),m=Object(o.b)("share-abs-menu"),g=document.getElementById("qrTrigger");_&&(_.addEventListener("click",(function(){m.classList.contains("c-Header-share-abs-wrap--show")||(g&&g.classList.remove("show-qr"),m.classList.add("c-Header-share-abs-wrap--show"))})),g&&g.addEventListener("click",(function(){g.classList.contains("show-qr")?g.classList.remove("show-qr"):g.classList.add("show-qr")})));var v=v=document.querySelectorAll("a[hreflang]");v&&Array.prototype.forEach.call(v,(function(e){var t=e.href.match(/^((http[s]?|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(.*)?(#[\w\-]+)?$/);t&&(e.href="/"+t[6])}));var h=document.getElementById("site-search-input-mobile"),b=document.getElementById("site-search-input"),f="",y={query:"",page:1},j=function(e){return e.preventDefault(),f=e.target.elements[0].value.trim(),y.query=encodeURI(f)||"",window.localStorage.setItem("searchquery",y.query
1),window.localStorage.setItem("searchpage",1),window.location.href="/search/",!1};b.addEventListener?(b.addEventListener("submit",j,!1),h.addEventListener("submit",j,!1)):b.attachEvent&&(b.attachEvent("onsubmit",j),h.addEventListener("onsubmit",j));var w=window.immiObj.currentCat||"null",k=document.querySelector("nav.navbar-collapse ul li a[data-menu='"+w+"']");k&&k.parentElement.classList.add("active");var $=document.querySelectorAll(".c-Header-share-abs-child--hasQrCode");function O(e){var t=e.currentTarget.classList;t&&(-1==(t=n(t)).indexOf("show-qr")?e.currentTarget.classList.add("show-qr"):e.currentTarget.classList.remove("show-qr"))}$&&Array.prototype.forEach.call($,(function(e){e.addEventListener("click",O)}));var L,x=document.getElementById("cred-main");(L=new XMLHttpRequest).open("POST","/api/user-authentication/",!0),L.setRequestHeader("Content-Type","application/json"),L.setRequestHeader("Accept","application/json"),L.onreadystatechange=function(){if(4==this.readyState&&200==this.status&&L&&L.responseText)try{var e=JSON.parse(L.responseText),t=document.getElementById("cred-username"),i=document.getElementById("cred-username-mob"),s=document.getElementById("cred-register"),o=document.getElementById("cred-register-mob"),n=document.getElementById("cred-login"),r=document.getElementById("cred-login-mob"),a=document.getElementById("cred-logout"),l=document.getElementById("cred-logout-mob");if(e&&e.userDetails){var c,u,d,p;window.immiObj.ath=e,t&&(t.innerHTML='<a class="u-Underline" href="'.concat(null===(c=window.immiLang.globalLabels)||void 0===c?void 0:c.profile).concat(e.userDetails.username).concat(null===(u=window.immiLang.globalLabels)||void 0===u?void 0:u.home,'">').concat(e.userDetails.username,"</a>")),s&&(s.style.display="none"),a&&(a.style.display="inline-block"),n&&(n.style.display="none"),x&&(x.style.display="flex"),i&&(i.innerHTML='<a class="u-Underline" href="'.concat(null===(d=window.immiLang.globalLabels)||void 0===d?void 0:d.profile).concat(e.userDetails.username).concat(null===(p=window.immiLang.globalLabels)||void 0===p?void 0:p.home,'">').concat(e.userDetails.username,"</a>")),o&&(o.style.display="none"),l&&(l.style.display="inline-block"),r&&(r.style.display="none")}else{window.immiObj.ath={isLoggedIn:!1,userDetails:null};var _="Guest";"zh"==immiObj.currentLangCode||"Chinese"==immiObj.currentLanguage?_="ç¨æ·":"es"!=immiObj.currentLangCode&&"Spanish"!=immiObj.currentLanguage||(_="Invitado"),t&&(t.innerHTML=_),s&&(s.style.display="inline-block"),a&&(a.style.display="none"),n&&(n.style.display="inline-block"),x&&(x.style.display="flex"),i&&(i.innerHTML=_),o&&(o.style.display="inline-block"),l&&(l.style.display="none"),r&&(r.style.display="inline-block")}var m=null,g=0;m=setInterval((function(){++g>=8&&clearInterval(m);try{window.hasOwnProperty("readyToSendToken")&&void 0!==window.readyToSendToken&&"no"!==window.readyToSendToken&&(sendTokenToServer(),clearInterval(m))}catch(t){var e=t;console.log(e),clearInterval(m)}}),15e3)}catch(e){}},L.send()}();var a={rootFolder:window.immiObj.prefixUrl,VisitorsToUSA:"visitors-to-usa",StudentVisa:"international-student",ExchangeVisitor:"exchange-visitor",GroupTravel:"group-travel",MultiTrip:"multi-trip",NewImmigrant:"new-immigrants",SchengenVisa:"schengen-visa",TravelOutside:"travel-outside-usa",BusinessVisa:"visitors-to-usa/business-ads",YoungAdult:"visitors-to-usa/young-adult-mix",ScoutAI:"scout-ai",Flight:"flight",Marine:"marine",TripCancellation:"trip-cancellation",India:"india"},l={rootPath:"https://www.insubuy.com/",en:{VisitorsToUSA:"visitors-insurance",StudentVisa:"international-student-insurance",ExchangeVisitor:"j1-visa-health-insurance",GroupTravel:"group-travel-medical-insurance",MultiTrip:"multi-trip-travel-insurance",NewImmigrant:"new-immigrants-health-insurance",SchengenVisa:"schengen-visa-insurance",TravelOutside:"travel-health-insurance",BusinessVisa:"visitors-insurance",YoungAdult:"visitors-insurance",ScoutAI:"insurance-assistant",Flight:"flight-insurance",Marine:"marine-crew-health-insurance",TripCancellation:"travel-insurance",India:"india-travel-insurance"},es:{VisitorsToUSA:"seguro-medico-para-visitantes-a-los-estados-unidos",StudentVisa:"seguro-de-estudiante-internacional",ExchangeVisitor:"seguro-j1-visa",GroupTravel:"group-travel-medical-insurance",MultiTrip:"multi-trip-travel-insurance",NewImmigrant:"seguro-de-salud-para-inmigrantes-nuevos",SchengenVisa:"seguro-para-visado-schengen",TravelOutside:"seguro-de-salud-de-viaje",BusinessVisa:"seguro-medico-para-visitantes-a-los-estados-unidos",YoungAdult:"seguro-medico-para-visitantes-a-los-estados-unidos",ScoutAI:"insurance-assistant",TripCancellation:"travel-insurance"},zh:{VisitorsToUSA:"meiguo-lvyou-yiliao-baoxian",StudentVisa:"guoji-xuesheng-baoxian",ExchangeVisitor:"j1-qianzheng-baoxian",GroupTravel:"tuanti-lvyou-yiliao-baoxian",MultiTrip:"multi-trip-travel-insurance",NewImmigrant:"xin-yimin-jiankang-baoxian",SchengenVisa:"shengen-qianzheng-baoxian",TravelOutside:"lvyou-jiankang-baoxian",BusinessVisa:"meiguo-lvyou-yiliao-baoxian",YoungAdult:"meiguo-lvyou-yiliao-baoxian",ScoutAI:"insurance-assistant",TripCancellation:"travel-insurance"}},c=["VisitorsToUSA","BusinessVisa","YoungAdult"],u=[],d=window.immiObj.categoryAdsList&&"string"==typeof window.immiObj.categoryAdsList?window.immiObj.categoryAdsList.split(","):window.immiObj.categoryAdsList&&Array.isArray(window.immiObj.categoryAdsList)?window.immiObj.categoryAdsList:[],p="en";"Chinese"===window.immiObj.currentLanguage||window.immiLang&&"zh"==window.immiLang.currentLangCode?p="zh":"Spanish"===window.immiObj.currentLanguage&&(p="es");for(var _=0;_<d.length;_++)"Visitors To USA"===d[_]||"VisitorsToUSA"===d[_]?u.push("VisitorsToUSA"):"Student Visa (F1/F2)"===d[_]||"StudentVisa"===d[_]?u.push("StudentVisa"):"Exchange Visitor (J1/J2)"===d[_]||"ExchangeVisitor"===d[_]?u.push("ExchangeVisitor"):"Group Travel"===d[_]||"GroupTravel"===d[_]?u.push("GroupTravel"):"Multi Trip"===d[_]||"MultiTrip"===d[_]?u.push("MultiTrip"):"New Immigrants"===d[_]||"NewImmigrant"===d[_]?u.push("NewImmigrant"):"Schengen Visa"===d[_]||"SchengenVisa"===d[_]?u.push("SchengenVisa"):"Travel Outside USA"===d[_]||"TravelOutside"===d[_]?u.push("TravelOutside"):"Business Visa (Visitors Visa)"===d[_]||"BusinessVisa"===d[_]?u.push("BusinessVisa"):"Young Adult (Visitors Visa)"===d[_]||"YoungAdult"===d[_]?u.push("YoungAdult"):"Flight"===d[_]||"Flight"===d[_]?u.push("Flight"):"Marine"===d[_]?u.push("Marine"):"Trip Cancellation"===d[_]||"TripCancellation"===d[_]?u.push("TripCancellation"):"India"===d[_]?u.push("India"):"Scout AI"!==d[_]&&"ScoutAI"!==d[_]||u.push("ScoutAI");function m(){this.VisitorsToUSA={$desktop_vertical:["visitors_to_usa-v-1.jpg","visitors_to_usa-v-2.jpg","visitors_to_usa-v-3.gif","visitors_to_usa-v-4.jpg","visitors_to_usa-v-5.jpg","visitors_to_usa-v-6.jpg","visitors_to_usa-v-7.jpg","visitors_to_usa-v-8.jpg"],$desktop_horizontal:["visitors_to_usa-h-1.jpg","visitors_to_usa-h-2.gif","visitors_to_usa-h-3.gif","visitors_to_usa-h-4.gif","visitors_to_usa-h-5.jpg","visitors_to_usa-h-6.jpg","visitors_to_usa-h-7.jpg","visitors_to_usa-h-8.jpg","visitors_to_usa-h-9.jpg"],$desktop_square:["visitors_to_usa-s-1.jpg","visitors_to_usa-s-2.gif","visitors_to_usa-s-3.gif","visitors_to_usa-s-4.jpg","visitors_to_usa-s-5.jpg","visitors_to_usa-s-6.jpg","visitors_to_usa-s-7.jpg","visitors_to_usa-s-8.jpg"],$mobile_top:["visitors_to_usa-m-t-1.gif","visitors_to_usa-m-t-2.gif","visitors_to_usa-m-t-3.jpg","visitors_to_usa-m-t-4.jpg","visitors_to_usa-m-t-5.jpg","visitors_to_usa-m-t-6.jpg","visitors_to_usa-m-t-7.jpg","visitors_to_usa-m-t-8.jpg"],$mobile_bottom:["visitors_to_usa-m-b-1.jpg","visitors_to_usa-m-b-2.gif","visitors_to_usa-m-b-3.jpg","visitors_to_usa-m-b-4.jpg","visitors_to_usa-m-b-5.jpg","visitors_to_usa-m-b-6.jpg","visitors_to_usa-m-b-7.jpg"]},this.ScoutAI={$desktop_vertical:["scout-ai-160x600-v1.png","scout-ai-160x600-v2.png","scout-ai-160x600-v3.png","scout-ai-160x600-v4.png"],$desktop_horizontal:["scout-ai-970x90-v1.png","scout-ai-970x90-v2.png","scout-ai-970x90-v3.png","scout-ai-970x90-v4.png"],$desktop_square:["scout-ai-250x250-v1.png","scout-ai-250x250-v2.png","scout-ai-250x250-v3.png","scout-ai-250x250-v4.png"],$mobile_top:["scout-ai-300x50x2-v1.png","scout-ai-300x50x2-v2.png","scout-ai-300x50x2-v3.png","scout-ai-300x50x2-v4.png"],$mobile_bottom:["scout-ai-336x280-v1.png","scout-ai-336x280-v2.png","scout-ai-336x280-v3.png","scout-ai-336x280-v4.png"]},this.StudentVisa={$desktop_vertical:["student-v-1.jpg","student-v-2.jpg","student-v-3.gif"],$desktop_horizontal:["student-h-1.jpg","student-h-2.jpg","student-h-3.gif"],$desktop_square:["student-s-1.jpg","student-s-2.jpg","student-s-3.jpg"],$mobile_top:["student-m-t-1.png","student-m-t-2.gif","student-m-t-3.gif"],$mobile_bottom:["student-m-b-1.jpg","student-m-b-2.jpg","student-m-b-3.jpg"]},this.ExchangeVisitor={$desktop_vertical:["j1_visa-v-1.jpg","j1_visa-v-2.gif","j1_visa-v-3.gif"],$desktop_horizontal:["j1_visa-h-1.jpg","j1_visa-h-2.gif","j1_visa-h-3.gif"],$desktop_square:["j1_visa-s-1.jpg","j1_visa-s-2.jpg"],$mobile_top:["j1_visa-m-t-1.jpg","j1_visa-m-t-2.gif","j1_visa-m-t-3.gif"],$mobile_bottom:["j1_visa-m-b-1.jpg","j1_visa-m-b-2.gif","j1_visa-m-b-3.gif"]},this.GroupTravel={$desktop_vertical:["group_travel-v-1.jpg","group_travel-v-2.jpg","group_travel-v-3.jpg"],$desktop_horizontal:["group_travel-h-1.jpg","group_travel-h-2.jpg","group_travel-h-2.jpg"],$desktop_square:["group_travel-s-1.jpg","group_travel-s-2.jpg"],$mobile_top:["group_travel-m-t-1.jpg","group_travel-m-t-2.gif","group_travel-m-t-3.gif"],$mobile_bottom:["group_travel-m-b-1.jpg","group_travel-m-b-2.jpg","group_travel-m-b-3.jpg"]},this.MultiTrip={$desktop_vertical:["multitrip-v-1.jpg"],$desktop_horizontal:["multitrip-h-1.jpg"],$desktop_square:["multitrip-s-1.jpg"],$mobile_top:["multitrip-m-t-1.jpg"],$mobile_bottom:["multitrip-m-b-1.jpg"]},this.NewImmigrant={$desktop_vertical:["new_immigrants-v-1.gif","new_immigrants-v-2.jpg","new_immigrants-v-3.gif"],$desktop_horizontal:["new_immigrants-h-1.gif","new_immigrants-h-2.gif","new_immigrants-h-3.gif"],$desktop_square:["new_immigrants-s-1.gif","new_immigrants-s-2.gif"],$mobile_top:["new_immigrants-m-t-1.gif","new_immigrants-m-t-2.gif"],$mobile_bottom:["new_immigrants-m-b-1.gif","new_immigrants-m-b-2.gif"]},this.India={$desktop_vertical:[],$desktop_horizontal:["india-h-1.jpg"],$desktop_square:[],$mobile_top:["india-m-t-2.gif"],$mobile_bottom:[]},this.SchengenVisa={$desktop_vertical:["schengen_visa-v-1.gif","schengen_visa-v-2.jpg","schengen_visa-v-3.jpg"],$desktop_horizontal:["schengen_visa-h-1.gif","schengen_visa-h-2.gif","schengen_visa-h-3.gif","schengen_visa-h-4.jpg"],$desktop_square:["schengen_visa-s-1.jpg","schengen_visa-s-2.gif","schengen_visa-s-3.gif"],$mobile_top:["schengen_visa-m-t-1.jpg","schengen_visa-m-t-2.gif","schengen_visa-m-t-3.gif"],$mobile_bottom:["schengen_visa-m-b-1.jpg","schengen_visa-m-b-2.gif","schengen_visa-m-b-3.gif"]},this.TravelOutside={$desktop_vertical:["travel_insurance_outside_usa-v-1.gif","travel_insurance_outside_usa-v-2.jpg","travel_insurance_outside_usa-v-3.jpg","travel_insurance_outside_usa-v-4.jpg"],$desktop_horizontal:["travel_insurance_outside_usa-h-1.gif","travel_insurance_outside_usa-h-2.gif","travel_insurance_outside_usa-h-3.gif","travel_insurance_outside_usa-h-4.jpg"],$desktop_square:["travel_insurance_outside_usa-s-1.gif","travel_insurance_outside_usa-s-2.gif","travel_insurance_outside_usa-s-3.gif","travel_insurance_outside_usa-s-4.gif","travel_insurance_outside_usa-s-5.jpg"],$mobile_top:["travel_insurance_outside_usa-m-t-1.gif","travel_insurance_outside_usa-m-t-2.gif","travel_insurance_outside_usa-m-t-3.jpg"],$mobile_bottom:["travel_insurance_outside_usa-m-b-1.gif","travel_insurance_outside_usa-m-b-2.gif","travel_insurance_outside_usa-m-b-3.gif","travel_insurance_outside_usa-m-b-4.gif","travel_insurance_outside_usa-m-b-5.jpg"]},this.BusinessVisa={$desktop_vertical:["visitors_to_usa_business-v-1.gif","visitors_to_usa_business-v-2.jpg","visitors_to_usa_business-v-3.jpg"],$desktop_horizontal:["visitors_to_usa_business-h-1.gif","visitors_to_usa_business-h-2.jpg","visitors_to_usa_business-h-3.gif","visitors_to_usa_business-h-4.gif"],$desktop_square:["visitors_to_usa_business-s-1.jpg"],$mobile_top:["visitors_to_usa_business-m-t-1.gif","visitors_to_usa_business-m-t-2.gif","visitors_to_usa_business-m-t-3.jpg"],$mobile_bottom:["visitors_to_usa_business-m-b-1.jpg","visitors_to_usa_business-m-b-2.jpg","visitors_to_usa_business-m-b-3.jpg"]},this.YoungAdult={$desktop_vertical:["visitors_to_usa_young_adult_mix-v-1.jpg","visitors_to_usa_young_adult_mix-v-2.gif","visitors_to_usa_young_adult_mix-v-3.jpg"],$desktop_horizontal:["visitors_to_usa_young_adult_mix-h-1.gif","visitors_to_usa_young_adult_mix-h-2.jpg","visitors_to_usa_young_adult_mix-h-3.gif","visitors_to_usa_young_adult_mix-h-4.gif"],$desktop_square:["visitors_to_usa_young_adult_mix-s-1.jpg"],$mobile_top:["visitors_to_usa_young_adult_mix-m-t-1.jpg","visitors_to_usa_young_adult_mix-m-t-2.jpg","visitors_to_usa_young_adult_mix-m-t-3.gif","visitors_to_usa_young_adult_mix-m-t-4.gif"],$mobile_bottom:["visitors_to_usa_young_adult_mix-m-b-1.jpg","visitors_to_usa_young_adult_mix-m-b-2.jpg","visitors_to_usa_young_adult_mix-m-b-3.jpg"]},this.Flight={$desktop_vertical:["flight-v-1.jpg"],$desktop_horizontal:["flight-h-1.jpg"],$desktop_square:["flight-s-1.jpg"],$mobile_top:["flight-m-t-1.jpg"],$mobile_bottom:["flight-m-b-1.jpg"]},this.Marine={$desktop_vertical:["marine-crew-v-1.jpg","marine-crew-v-2.jpg","marine-crew-v-3.jpg"],$desktop_horizontal:["marine-crew-h-1.jpg","marine-crew-h-2.jpg","marine-crew-h-3.jpg"],$desktop_square:["marine-crew-s-1.jpg","marine-crew-s-2.jpg","marine-crew-s-3.jpg"],$mobile_top:["marine-crew-m-t-1.gif","marine-crew-m-t-2.jpg","marine-crew-m-t-3.jpg"],$mobile_bottom:["marine-crew-m-b-1.jpg","marine-crew-m-b-2.jpg","marine-crew-m-b-3.jpg"]},this.TripCancellation={$desktop_vertical:["travel_insurance_banner1_v.jpg","travel_insurance_banner3_v.jpg","travel_insurance_banner4_v.gif","travel_insurance_banner5_v.jpg","travel_insurance_banner7_v.jpg","travel_insurance_banner8_v.jpg","travel_insurance_banner9_v.jpg"],$desktop_horizontal:["travel_insurance_h-1.jpg","travel_insurance_h-2.jpg","travel_insurance_h-3.gif","travel_insurance_h-4.jpg","travel_insurance_h-5.jpg","travel_insurance_h-6.jpg","travel_insurance_h-7.jpg"],$desktop_square:["travel_insurance_outside_usa_s-1.gif","travel_insurance_s-1.jpg","travel_insurance_s-2.jpg"],$mobile_top:["travel_insurance_m-t-1.gif","travel_insurance_m-t-2.gif"],$mobile_bottom:["travel_insurance_m-b-1.jpg","travel_insurance_m-b-2.gif","travel_insurance_m-b-3.jpg"]}}function g(){this.VisitorsToUSA={$desktop_vertical:["visitors_to_usa-v-1.jpg","visitors_to_usa-v-2.gif","visitors_to_usa-v-3.jpg"],$desktop_horizontal:["visitors_to_usa-h-1.jpg","visitors_to_usa-h-2.gif","visitors_to_usa-h-3.gif"],$desktop_square:["visitors_to_usa-s-1.jpg","visitors_to_usa-s-2.gif","visitors_to_usa-s-3.gif","visitors_to_usa-s-4.jpg","visitors_to_usa-s-5.jpg","visitors_to_usa-s-6.gif"],$mobile_top:["visitors_to_usa-m-t-1.gif","visitors_to_usa-m-t-2.jpg","visitors_to_usa-m-t-3.gif"],$mobile_bottom:["visitors_to_usa-m-b-1.jpg","visitors_to_usa-m-b-2.gif","visitors_to_usa-m-b-3.gif"]},this.StudentVisa={$desktop_vertical:["student-v-1.jpg","student-v-2.jpg","student-v-3.gif"],$desktop_horizontal:["student-h-1.jpg","student-h-2.jpg","student-h-3.gif"],$desktop_square:["student-s-1.jpg","student-s-2.jpg","student-s-3.gif","student-s-4.jpg","student-s-5.gif","student-s-6.gif"],$mobile_top:["student-m-t-1.jpg","student-m-t-2.gif","student-m-t-3.gif"],$mobile_bottom:["student-m-b-1.jpg","student-m-b-2.jpg","student-m-b-3.jpg"]},this.ExchangeVisitor={$desktop_vertical:["j1_visa-v-1.png","j1_visa-v-2.gif","j1_visa-v-3.gif"],$desktop_horizontal:["j1_visa-h-1.png","j1_visa-h-2.gif","j1_visa-h-3.gif"],$desktop_square:["j1_visa-s-1.jpg","j1_visa-s-2.gif","j1_visa-s-3.gif","j1_visa-s-4.jpg","j1_visa-s-5.gif","j1_visa-s-6.gif"],$mobile_top:["j1_visa-m-t-1.jpg","j1_visa-m-t-2.gif","j1_visa-m-t-3.gif"],$mobile_bottom:["j1_visa-m-b-1.jpg","j1_visa-m-b-2.gif","j1_visa-m-b-3.gif"]},this.GroupTravel={$desktop_vertical:["group_travel-v-1.jpg","group_travel-v-2.jpg"],$desktop_horizontal:["group_travel-h-1.jpg","group_travel-h-2.jpg"],$desktop_square:["group_travel-s-1.jpg","group_tr
1avel-s-2.jpg"],$mobile_top:["group_travel-m-t-1.gif","group_travel-m-t-2.gif"],$mobile_bottom:["group_travel-m-b-1.jpg","group_travel-m-b-2.jpg"]},this.MultiTrip={$desktop_vertical:["multitrip-v-1.jpg"],$desktop_horizontal:["multitrip-h-1.jpg"],$desktop_square:["multitrip-s-1.jpg"],$mobile_top:["multitrip-m-t-1.jpg"],$mobile_bottom:["multitrip-m-b-1.jpg"]},this.NewImmigrant={$desktop_vertical:["new_immigrant_v-1.jpg","new_immigrant_v-2.jpg","new_immigrant_v-3.gif"],$desktop_horizontal:["new_immigrants_h-1.jpg","new_immigrants_h-2.gif","new_immigrants_h-3.jpg"],$desktop_square:["new_immigrants_s-1.jpg","new_immigrants_s-2.jpg"],$mobile_top:["new_immigrants_m-t-1.gif","new_immigrants_m-t-2.gif"],$mobile_bottom:["new_immigrants_m-b-1.jpg","new_immigrants_m-b-2.jpg"]},this.SchengenVisa={$desktop_vertical:["schengen_visa-v-1.jpg","schengen_visa-v-2.jpg"],$desktop_horizontal:["schengen_visa-h-1.jpg","schengen_visa-h-2.gif","schengen_visa-h-3.jpg"],$desktop_square:["schengen_visa-s-1.jpg","schengen_visa-s-2.jpg"],$mobile_top:["schengen_visa-m-t-1.gif","schengen_visa-m-t-2.gif"],$mobile_bottom:["schengen_visa-m-b-1.jpg","schengen_visa-m-b-2.jpg"]},this.TravelOutside={$desktop_vertical:["travel_insurance_outside_usa-v-1.jpg","travel_insurance_outside_usa-v-2.jpg","travel_insurance_outside_usa-v-3.jpg"],$desktop_horizontal:["travel_insurance_outside_usa-h-1.jpg","travel_insurance_outside_usa-h-2.gif","travel_insurance_outside_usa-h-3.jpg"],$desktop_square:["travel_insurance_outside_usa-s-1.jpg","travel_insurance_outside_usa-s-2.jpg","travel_insurance_outside_usa-s-3.gif","travel_insurance_outside_usa-s-4.jpg"],$mobile_top:["travel_insurance_outside_usa-m-t-1.gif","travel_insurance_outside_usa-m-t-2.gif"],$mobile_bottom:["travel_insurance_outside_usa-m-b-1.jpg","travel_insurance_outside_usa-m-b-2.jpg","travel_insurance_outside_usa-m-b-3.jpg"]},this.BusinessVisa={$desktop_vertical:[],$desktop_horizontal:[],$desktop_square:[],$mobile_top:[],$mobile_bottom:[]},this.YoungAdult={$desktop_vertical:[],$desktop_horizontal:[],$desktop_square:[],$mobile_top:[],$mobile_bottom:[]},this.ScoutAI={$desktop_vertical:[],$desktop_horizontal:[],$desktop_square:[],$mobile_top:[],$mobile_bottom:[]},this.Flight={$desktop_vertical:["flight-v-1.jpg"],$desktop_horizontal:["flight-h-1.jpg"],$desktop_square:["flight-s-1.jpg"],$mobile_top:["flight-m-t-1.jpg"],$mobile_bottom:["flight-m-b-1.jpg"]},this.Marine={$desktop_vertical:[],$desktop_horizontal:[],$desktop_square:[],$mobile_top:[],$mobile_bottom:[]},this.TripCancellation={$desktop_vertical:[],$desktop_horizontal:[],$desktop_square:[],$mobile_top:[],$mobile_bottom:[]}}function v(){this.VisitorsToUSA={$desktop_vertical:["visitors_to_usa-v-1.jpg","visitors_to_usa-v-2.gif","visitors_to_usa-v-3.jpg"],$desktop_horizontal:["visitors_to_usa-h-1.gif","visitors_to_usa-h-2.gif","visitors_to_usa-h-3.gif"],$desktop_square:["visitors_to_usa-s-1.gif","visitors_to_usa-s-2.gif","visitors_to_usa-s-3.gif"],$mobile_top:["visitors_to_usa-m-t-1.jpg","visitors_to_usa-m-t-2.gif","visitors_to_usa-m-t-3.gif"],$mobile_bottom:["visitors_to_usa-m-b-1.gif","visitors_to_usa-m-b-2.jpg"]},this.StudentVisa={$desktop_vertical:["student-v-1.png","student-v-2.jpg","student-v-3.gif"],$desktop_horizontal:["student-h-1.png","student-h-2.jpg","student-h-3.gif"],$desktop_square:["student-s-1.jpg","student-s-2.jpg","student-s-3.jpg","student-s-4.jpg"],$mobile_top:["student-m-t-1.png","student-m-t-2.gif","student-m-t-3.gif"],$mobile_bottom:["student-m-b-1.jpg","student-m-b-2.jpg","student-m-b-3.jpg"]},this.ExchangeVisitor={$desktop_vertical:["j1_visa-v-1.jpg","j1_visa-v-2.gif","j1_visa-v-3.gif"],$desktop_horizontal:["j1_visa-h-1.jpg","j1_visa-h-2.gif","j1_visa-h-3.gif"],$desktop_square:["j1_visa-s-1.jpg","j1_visa-s-2.jpg"],$mobile_top:["j1_visa-m-t-1.jpg","j1_visa-m-t-2.jpg","j1_visa-m-t-3.gif","j1_visa-m-t-4.gif"],$mobile_bottom:["j1_visa-m-b-1.jpg"]},this.GroupTravel={$desktop_vertical:["group_travel-v-1.jpg","group_travel-v-2.jpg","group_travel-v-3.jpg"],$desktop_horizontal:["group_travel-h-1.jpg","group_travel-h-2.jpg","group_travel-h-3.jpg"],$desktop_square:["group_travel-s-1.jpg","group_travel-s-2.jpg","group_travel-s-3.jpg"],$mobile_top:["group_travel-m-t-1.gif","group_travel-m-t-2.gif","group_travel-m-t-3.jpg"],$mobile_bottom:["group_travel-m-b-1.jpg","group_travel-m-b-2.jpg","group_travel-m-b-3.jpg"]},this.MultiTrip={$desktop_vertical:["multitrip-v-1.jpg"],$desktop_horizontal:["multitrip-h-1.jpg"],$desktop_square:["multitrip-s-1.jpg"],$mobile_top:["multitrip-m-t-1.jpg"],$mobile_bottom:["multitrip-m-b-1.jpg"]},this.NewImmigrant={$desktop_vertical:["new_immigrant-v-1.jpg","new_immigrant-v-2.jpg","new_immigrant-v-3.gif"],$desktop_horizontal:["new_immigrant-h-1.jpg","new_immigrant-h-2.gif","new_immigrant-h-3.jpg"],$desktop_square:["new_immigrant-s-1.jpg","new_immigrant-s-2.jpg"],$mobile_top:["new_immigrant-m-t-1.gif","new_immigrant-m-t-1.gif"],$mobile_bottom:["new_immigrant-m-b-1.jpg","new_immigrant-m-b-2.jpg"]},this.SchengenVisa={$desktop_vertical:["schengen_visa-v-1.gif","schengen_visa-v-2.png","schengen_visa-v-3.jpg"],$desktop_horizontal:["schengen_visa-h-1.gif","schengen_visa-h-2.gif","schengen_visa-h-3.jpg"],$desktop_square:["schengen_visa-s-1.gif","schengen_visa-s-2.gif","schengen_visa-s-3.gif","schengen_visa-s-4.gif","schengen_visa-s-5.jpg"],$mobile_top:["schengen_visa-m-t-1.jpg","schengen_visa-m-t-2.gif","schengen_visa-m-t-3.gif"],$mobile_bottom:["schengen_visa-m-b-1.gif","schengen_visa-m-b-2.jpg","schengen_visa-m-b-3.gif"]},this.TravelOutside={$desktop_vertical:["travel_insurance_outside_usa-v-1.gif","travel_insurance_outside_usa-v-2.jpg","travel_insurance_outside_usa-v-3.jpg"],$desktop_horizontal:["travel_insurance_outside_usa-h-1.gif","travel_insurance_outside_usa-h-2.gif","travel_insurance_outside_usa-h-3.gif"],$desktop_square:["travel_insurance_outside_usa-s-1.gif","travel_insurance_outside_usa-s-2.jpg"],$mobile_top:["travel_insurance_outside_usa-m-t-1.gif","travel_insurance_outside_usa-m-t-2.gif"],$mobile_bottom:["travel_insurance_outside_usa-m-b-1.gif","travel_insurance_outside_usa-m-b-2.gif","travel_insurance_outside_usa-m-b-3.gif"]},this.BusinessVisa={$desktop_vertical:["visitors_to_usa_business-v-1.jpg","visitors_to_usa_business-v-2.gif","visitors_to_usa_business-v-3.jpg"],$desktop_horizontal:["visitors_to_usa_business-h-1.jpg","visitors_to_usa_business-h-2.gif","visitors_to_usa_business-h-3.gif"],$desktop_square:["visitors_to_usa_business-s-1.jpg","visitors_to_usa_business-s-2.gif","visitors_to_usa_business-s-3.gif","visitors_to_usa_business-s-4.jpg","visitors_to_usa_business-s-5.gif","visitors_to_usa_business-s-6.gif"],$mobile_top:["visitors_to_usa_business-m-t-1.jpg","visitors_to_usa_business-m-t-2.gif","visitors_to_usa_business-m-t-3.gif"],$mobile_bottom:["visitors_to_usa_business-m-b-1.jpg","visitors_to_usa_business-m-b-2.jpg","visitors_to_usa_business-m-b-3.jpg"]},this.YoungAdult={$desktop_vertical:["young_adult_mix-v-1.jpg","young_adult_mix-v-2.gif","young_adult_mix-v-3.jpg"],$desktop_horizontal:[],$desktop_square:[],$mobile_top:["young_adult_mix-m-t-1.gif","young_adult_mix-m-t-2.gif","young_adult_mix-m-t-3.jpg"],$mobile_bottom:["young_adult_mix-m-b-1.jpg","young_adult_mix-m-b-2.jpg","young_adult_mix-m-b-3.jpg"]},this.ScoutAI={$desktop_vertical:[],$desktop_horizontal:[],$desktop_square:[],$mobile_top:[],$mobile_bottom:[]},this.Flight={$desktop_vertical:["flight-v-1.jpg"],$desktop_horizontal:["flight-h-1.jpg"],$desktop_square:["flight-s-1.jpg"],$mobile_top:["flight-m-t-1.jpg"],$mobile_bottom:["flight-m-b-1.jpg"]},this.Marine={$desktop_vertical:[],$desktop_horizontal:[],$desktop_square:[],$mobile_top:[],$mobile_bottom:[]},this.TripCancellation={$desktop_vertical:[],$desktop_horizontal:[],$desktop_square:[],$mobile_top:[],$mobile_bottom:[]}}0===u.length&&(u=["VisitorsToUSA","StudentVisa","ExchangeVisitor"]);var h=new m;"zh"==p&&(h=new v,a.rootFolder+="zh/"),"es"==p&&(h=new g,a.rootFolder+="es/");var b=[],f=[],y=[],j=[],w=[],k=[{key:"$desktop_vertical",campaign:"Vertical"},{key:"$desktop_horizontal",campaign:"Horizontal"},{key:"$desktop_square",campaign:"square"},{key:"$mobile_top",campaign:"MobileTop"},{key:"$mobile_bottom",campaign:"MobileBottom"}];
1function $(e){k.forEach((function(t){h[e][t.key]=h[e][t.key].map((function(i,s){return{imgPath:a.rootFolder+a[e]+"/"+i,navigation:l.rootPath+l[p][e]+"/?utm_source=immihelp&utm_medium="+e+"&utm_campaign="+t.campaign+(s+1)}}))}))}function O(e){(b=b.concat(h[e].$desktop_vertical)).shuffleArray(),(f=f.concat(h[e].$desktop_horizontal)).shuffleArray(),(y=y.concat(h[e].$desktop_square)).shuffleArray(),(j=j.concat(h[e].$mobile_top)).shuffleArray(),(w=w.concat(h[e].$mobile_bottom)).shuffleArray()}for(var L=0;L<u.length;L++)u.length>1&&u.indexOf("VisitorsToUSA")>-1&&"VisitorsToUSA"!=u[L]&&(u.length>2?h[u[L]].$desktop_vertical.splice(1,h[u[L]].$desktop_vertical.length-1):h[u[L]].$desktop_vertical.splice(2,h[u[L]].$desktop_vertical.length-1)),$(u[L]),O(u[L]);h.ScoutAI&&-1===u.indexOf("ScoutAI")&&u.some((function(e){return c.indexOf(e)>-1}))&&($("ScoutAI"),O("ScoutAI")),window.revenueTargeted=b;var x=b[Object(o.a)(0,b.length-1)];if(Object(o.c)(".vertical-banner")&&x){Object(o.c)(".vertical-banner a").href=x.navigation;var S=Object(o.c)(".vertical-banner canvas");S.width=154,S.height=578,S.style.backgroundImage="url('".concat(x.imgPath,"')")}var I=f[Object(o.a)(0,f.length-1)];if(Object(o.c)(".horizontal-banner")&&I){Object(o.c)(".horizontal-banner a").href=I.navigation;var T=Object(o.c)(".horizontal-banner canvas");T.setAttribute("width",970),T.setAttribute("height",90),T.style.backgroundImage="url('".concat(I.imgPath,"'")}var A=f[Object(o.a)(0,f.length-1)];if(Object(o.c)(".horizontal-banner.footer-vilab")&&A){Object(o.c)(".horizontal-banner.footer-vilab a").href=A.navigation;var C=Object(o.c)(".horizontal-banner.footer-vilab canvas");C.setAttribute("width",970),C.setAttribute("height",90),C.style.backgroundImage="url('".concat(A.imgPath,"'")}var E=y[Object(o.a)(0,y.length-1)],M=Object(o.c)(".square-banner");if(M&&E){Object(o.c)(".square-banner a").href=E.navigation;var B=Object(o.c)(".square-banner canvas");B.setAttribute("width",250),B.setAttribute("height",250),B.style.backgroundImage="url('".concat(E.imgPath,"'")}var P=Object(o.c)(".c-Sticky-adv .square-banner");if(P&&E){Object(o.c)(".c-Sticky-adv .square-banner a").href=E.navigation;var q=Object(o.c)(".c-Sticky-adv .square-banner img");q.setAttribute("width",200),q.setAttribute("height",200),q.style.backgroundImage="url('".concat(E.imgPath,"')")}d.indexOf("Visitors To USA (Widget)")>-1?(M.innerHTML='<iframe src="https://immihelp.brokersnexus.com/widget1/visitors-insurance/?aid=immihelp" width="100%" style="height: 450px; border: 0;"></iframe>',P&&(P.innerHTML='<iframe src="https://immihelp.brokersnexus.com/widget1/visitors-insurance/?aid=immihelp" width="100%" style="height: 450px; border: 0;"></iframe>')):d.indexOf("Schengen Visa Insurance (Widget)")>-1&&(M.innerHTML='<iframe src="https://immihelp.brokersnexus.com/widget1/schengen-visa-insurance/?aid=immihelp" width="100%" style="height: 350px; border: 0;"></iframe>',P&&(P.innerHTML='<iframe src="https://immihelp.brokersnexus.com/widget1/schengen-visa-insurance/?aid=immihelp" width="100%" style="height: 350px; border: 0;"></iframe>'));var z=j[Object(o.a)(0,j.length-1)];if(Object(o.c)(".mobile-banner")){Object(o.c)(".mobile-banner a").href=z.navigation;var V=Object(o.c)(".mobile-banner canvas");V.setAttribute("width",437),V.setAttribute("height",73),V.style.backgroundImage="url('".concat(z.imgPath,"'")}var R=w[Object(o.a)(0,w.length-1)];if(Object(o.c)(".footer-vilab .square-banner")){var U=Object(o.c)(".footer-vilab .square-banner a");if(U){U.href=R.navigation;var N=Object(o.c)(".footer-vilab .square-banner canvas");N.setAttribute("width",336),N.setAttribute("height",280),N.style.backgroundImage="url('".concat(R.imgPath,"'")}}var H=w[Object(o.a)(0,w.length-1)];if(Object(o.c)(".rectangle-banner")){Object(o.c)(".rectangle-banner a").href=H.navigation;var D=Object(o.c)(".rectangle-banner canvas");D.setAttribute("width",336),D.setAttribute("height",280),D.style.backgroundImage="url('".concat(H.imgPath,"')")}if(window.immiObj.homePage){var F=function(e,t){if(-1===c.indexOf(e)||!Y.ScoutAI)return e;var i=Y[e][t].length,s=Y.ScoutAI[t].length;return s?Object(o.a)(0,i+s-1)<i?e:"ScoutAI":e},G=function(e,t){return l.rootPath+l[p][e]+"/?utm_source=immihelp&utm_medium="+e+"&utm_campaign=HomePage"+t},Y=new m;"zh"==p&&(Y=new v),"es"==p&&(Y=new g);var J,W,X=document.querySelectorAll(".horizontal-banner")||[];
1(X=X?Array.from(X):[]).forEach((function(e){var t=e.getAttribute("data-category"),i=e.id,s=[],n=null,r=null;if(i){n=document.querySelector("#"+i+" a"),r=document.querySelector("#"+i+" canvas");var l=F(t,"$desktop_horizontal"),c=Object(o.a)(0,Y[l].$desktop_horizontal.length-1),u=G(l,c);n&&n.setAttribute("href",u),r&&(r.setAttribute("width",970),r.setAttribute("height",90),r.style.backgroundImage="url('".concat(a.rootFolder+a[l]+"/"+Y[l].$desktop_horizontal[c],"')"));var d=t;if(t){var p="GroupTravel"==t?"$mobile_bottom":"$mobile_top";d=F(t,p),(s=s.concat(Y[d][p])).shuffleArray(),J=s[Object(o.a)(0,s.length-1)],W=Object(o.c)(".mobile-banner")}if(W){Object(o.c)("#"+i+" .mobile-banner a").href=G(d,c);var _=Object(o.c)("#"+i+" .mobile-banner canvas");_&&(_.setAttribute("width",437),_.setAttribute("height",73),_.style.backgroundImage="url('".concat(a.rootFolder+a[d]+"/"+J,"')"))}}}))}!function(){var e=Object(o.b)("footer_link1"),t=Object(o.b)("footer_link2"),i=Object(o.b)("footer_link3"),n=Object(o.b)("footer_link1Body"),r=Object(o.b)("footer_link2Body"),a=Object(o.b)("footer_link3Body"),l=!1,c=!1,u=!1,d=function(){return window.innerWidth<s.a.medium};function p(e,t,i){var s,o;
1!0===e?(o=i,(s=t).classList.add("c-Footer__more-links-block"),s.classList.add("c-Footer__block--display"),o.classList.add("c-Footer__link-item__rotate-arrow")):_(t,i)}function _(e,t){e.classList.remove("c-Footer__more-links-block"),e.classList.remove("c-Footer__block--display"),t.classList.remove("c-Footer__link-item__rotate-arrow")}function m(e,t,i,s,o,n){_(i,o),_(s,n)}e.addEventListener("click",(function(){d()&&(m(c,u,r,a,t,i),p(l=!l,n,e))})),t.addEventListener("click",(function(){d()&&(m(l,u,n,a,e,i),p(c=!c,r,t))})),i.addEventListener("click",(function(){d()&&(m(l,c,n,r,e,t),p(u=!u,a,i))})),function(){try{var e=new XMLHttpRequest;e.open("GET","/api/cookie-policy-accepted/"),e.setRequestHeader("Content-Type","application/json"),e.setRequestHeader("Accept","application/json"),e.send(),e.onreadystatechange=function(){if(e&&e.responseText)try{if(!JSON.parse(e.responseText).cookieDTOList.find((function(e){return"cookiePolicyAccepted"==e.cookieName}))&&window.self==window.top){var t=document.querySelector(".cookie-popin");t&&t.classList.remove("hide");var i=document.querySelectorAll(".cookie-popin .close-button");if(i.length)for(var s=0;s<i.length;s++)i[s].addEventListener("click",g)}}catch(e){console.log(e)}}}catch(e){console.error(e)}}();function g(){var e={cookieName:"cookiePolicyAccepted",cookieValue:"true",expiresOn:31536e3},t=new XMLHttpRequest;t.open("POST","/api/cookie-policy-accepted/"),t.setRequestHeader("Content-Type","application/json"),t.setRequestHeader("Accept","application/json"),t.send(JSON.stringify(e)),t.onreadystatechange=function(){var e=document.querySelector(".cookie-popin");e&&e.classList.add("hide")}}var v=document.querySelectorAll("a");if(v&&v.length){v=Array.from(v);var h="English"===window.immiObj.currentLanguage?"":"Spanish"===window.immiObj.currentLanguage?"es":"zh",b=immiObj.currentCat,f=document.querySelector(".post")?"article":"section";b&&(b=(b=b.split(" "))[b.length-1].toLowerCase(),""!=h&&(b=b+"-"+h)),v.forEach((function(e){var t=e.href;if(t&&-1!==t.indexOf("insubuy.com")&&-1===t.indexOf("?utm_source")&&-1===t.indexOf("?")){var i="".concat(t,"?utm_source=immihelp&utm_medium=").concat(f,"&utm_campaign=").concat(b);e.href=i}}))}}();i(209);var K=i(210),Q=i.n(K),Z=i(1),ee=i(5);function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Z.default.use(ee.a);var ie={name:"promotion",data:function(){var e;return{showModal:!1,modal:[],imageUrl:"",immiLang:(null===(e=window.immiLang)||void 0===e?void 0:e.promotions)||{},currentPromos:[],localStorePromos:[]}},created:function(){try{var e=window.localStorage.getItem("immiTools");e&&(e=JSON.parse(e)||[],this.localStorePromos=e||[]),this.getPromotionData()}catch(e){console.log("Please enable cache or session storage to serve you better."),this.localStorePromos=[],this.getPromotionData()}},methods:{getPromotionData:function(){var e=this;this.$http.get("/wp-json/wp/v2/promotions").then((function(t){var i=t.body&&Array.isArray(t.body)?t.body:[];if(i&&i.length){var s={},o=window.immiObj.currentLanguage||"English";
1i.forEach((function(t){s={};var i="publish"===t.status?t.promotion_meta:{};s.language=e.extractAllText(i.promotions.promotion_language)||["English"],i&&i.promotions&&"object"==te(i.promotions)&&(s.language.indexOf(o)>-1&&"Chinese"===o&&Array.isArray(i.promotions.promotion_title_zh)&&i.promotions.promotion_title_zh.length?(s.title=i.promotions.promotion_title_zh?i.promotions.promotion_title_zh[0]:"",s.content=i.promotions.promotion_content_zh?i.promotions.promotion_content_zh[0]:"",s.button={label:i.promotions.promotion_button_label_zh?i.promotions.promotion_button_label_zh[0]:"",link:i.promotions.promotion_button_link_zh?i.promotions.promotion_button_link_zh[0]:""}):s.language.indexOf(o)>-1&&"Spanish"===o&&Array.isArray(i.promotions.promotion_title_es)&&i.promotions.promotion_title_es.length?(s.title=i.promotions.promotion_title_es?i.promotions.promotion_title_es[0]:"",s.content=i.promotions.promotion_content_es?i.promotions.promotion_content_es[0]:"",s.button={label:i.promotions.promotion_button_label_es?i.promotions.promotion_button_label_es[0]:"",link:i.promotions.promotion_button_link_es?i.promotions.promotion_button_link_es[0]:""}):i.promotions.promotion_title&&Array.isArray(i.promotions.promotion_title)&&i.promotions.promotion_title.length&&(s.title=i.promotions.promotion_title[0]||"",s.content=i.promotions.promotion_content[0]||"",s.button={label:i.promotions.promotion_button_label[0]||"",link:i.promotions.promotion_button_link[0]||""})),s.imageUrl=i.imageUrl,e.currentPromos.push({id:t.id,modified:t.modified,language:s.language}),e.localStorePromos.forEach((function(i){var n=!1;i.language.forEach((function(e){-1===s.language.indexOf(e)?n=!0:s.language.splice(s.language.indexOf(e),1)}));i.id===t.id&&i.modified!==t.modified&&(n||0==s.language.length)&&(0==s.language.length||s.language.indexOf(o)>-1)&&e.modal.push(s)})),!e.localStorePromos.length&&s.language.indexOf(o)>-1&&s.title&&e.modal.push(s)})),1===e.modal.length&&(e.imageUrl=e.modal[0].imageUrl),e.modal.length&&e.openModal()}}),(function(e){}))},closeModal:function(){this.showModal=!1,document.querySelector("body").classList.remove("is-Locked")},openModal:function(){this.showModal=!0,document.querySelector("body").classList.add("is-Locked")},donotshow:function(){try{window.localStorage.setItem("immiTools",JSON.stringify(this.currentPromos)),this.closeModal()}catch(e){this.closeModal(),console.log("Please enable cache or session storage to serve you better.")}},openLink:function(e){this.donotshow(),this.$nextTick((function(){window.open(e,"_blank")}))},extractAllText:function(e){for(var t,i=/"(.*?)"/g,s=[];t=i.exec(e);)s.push(t.pop());return s.length>0?s:[e]}}},se=i(9),oe=Object(se.a)(ie,(function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.showModal,expression:"showModal"}],staticClass:"c-Main-modal c-Promotions"},[t("div",{staticClass:"c-Main-modal__wrapper"},[t("div",{staticClass:"c-Main-modal__container",class:{"c-Promotions__single":1===e.modal.length}},[e.modal.length&&e.modal.length>1?t("div",{staticClass:"c-Main-modal__header"},[t("h3",[t("svg",{staticClass:"o-Icon__svg o-Icon__svg--20 o-Icon__svg--purple",attrs:{viewBox:"0 0 20 20"}},[t("use",{staticClass:"o-Icon__svg__inner",attrs:{"xlink:href":"/assets/build/svg/defs/svg/sprite.defs.svg#info_exclamation_icon"}})]),e._v("\n "+e._s(e.modal[0].title)+"\n ")]),e._v(" "),t("a",{staticClass:"c-Main-model-header__close o-Icon-bullet o-Icon-bullet--close-blue",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.preventDefault(),e.closeModal()}}})]):e._e(),e._v(" "),1==e.modal.length?t("div",{staticClass:"c-Main-modal__body"},[e.imageUrl?t("figure",{staticClass:"c-Promotions__full-bleed",style:{backgroundImage:"url("+e.imageUrl+")"}},[t("a",{staticClass:"c-Main-model-header__close o-Icon-bullet o-Icon-bullet--close-blue",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.preventDefault(),e.closeModal()}}})]):e._e(),e._v(" "),t("div",{staticClass:"c-Promotions__body"},[t("p",{staticClass:"c-Promotions__single-content"},[e._v("\n "+e._s(e.modal[0].content)+"\n ")]),e._v(" "),t("a",{staticClass:"o-Btn o-Btn--purple",attrs:{href:e.modal[0].button.link},domProps:{innerHTML:e._s(e.modal[0].button.label)},on:{click:function(t){return t.preventDefault(),e.openLink(e.modal[0].button.link)}}}
1)])]):e._e(),e._v(" "),e.modal.length>1?t("div",{staticClass:"c-Main-modal__body c-Promotions__multi"},e._l(e.modal,(function(i){return t("div",{key:i.id,staticClass:"c-Promotions__multi-item"},[t("figure",{staticClass:"c-Promotions__full-bleed",style:{backgroundImage:"url("+i.imageUrl+")"},on:{click:function(t){return e.openLink(i.button.link)}}}),e._v(" "),t("div",{staticClass:"c-Promotions__body"},[t("p",{staticClass:"c-Promotions__single-content"},[e._v("\n "+e._s(i.content)+"\n ")]),e._v(" "),t("a",{staticClass:"o-Btn o-Btn--purple",attrs:{href:i.button.link},domProps:{innerHTML:e._s(i.button.label)},on:{click:function(t){return t.preventDefault(),e.openLink(i.button.link)}}})])])})),0):e._e(),e._v(" "),t("div",{staticClass:"c-Main-modal__footer"},[t("a",{staticClass:"c-Promotions__footer-link",attrs:{href:"javascript:void(0)"},on:{click:e.donotshow}},[e._v(e._s(e.immiLang.dontShowThis))]),e._v(" "),t("a",{staticClass:"c-Promotions__footer-link",attrs:{href:e.immiLang.toolsLink}},[e._v(e._s(e.immiLang.seeAllTools))])])])])])}),[],!1,null,null,null).exports,ne=i(28),re=i(17),ae=i(10),le=i(0),ce={name:"userInterest",components:{Snackbar:ae.a,Modal:re.a,"v-checkbox":ne.default},data:function(){var e;return{showModal:!1,formSending:!1,currentStep:1,isManualOpen:!1,minTopicsReq:1,minInterestsReq:1,userInterestId:"",currentPage:null===(e=window.immiObj)||void 0===e?void 0:e.currentpage,label:window.immiLang.globalLabels.userInterest?window.immiLang.globalLabels.userInterest:"",snackbarMessage:"",messageType:"error",topics:{options:[],selected:[]},interests:{options:[],selected:[]},showClose:!1}},created:function(){var e=this;setTimeout((function(){e.showClose=!0,e.$forceUpdate()}),5e3)},mounted:function(){var e=this,t=this,i=Object(le.t)("userInterestError")||"",s=Object(le.t)("user-interest-modal")||!1;window.userInterest={open:function(){t.isManualOpen=!0,t.handleOpen()}},setTimeout((function(){var t,o,n,r;i||null===(t=window.immiObj)||void 0===t||null===(o=t.ath)||void 0===o||!o.isLoggedIn||null!==(n=window.immiObj)&&void 0!==n&&null!==(r=n.ath)&&void 0!==r&&r.selectedInterests||s||e.handleOpen()}),1e3)},watch:{showModal:function(){this.currentStep=1}},computed:{minTopicsSelected:function(){return this.topics.selected.length>=this.minTopicsReq},minInterestsSelected:function(){return this.interests.selected.length>=this.minInterestsReq},disableBtn:function(){return 1==this.currentStep?!this.minTopicsSelected:!this.minInterestsSelected}},methods:{initUserInterestData:function(){var e=this;return new Promise((function(t,i){e.$http.get(le.a.userInterest).then((function(s){var o,n=s.body;null!=n&&n.success&&n.topics&&n.topics.length&&n.interests&&n.interests.length&&(null==n||null===(o=n.userInterests)||void 0===o||!o.deleted||"subscriptions"==window.immiObj.currentpage)?(e.topics.options=n.topics,e.interests.options=n.interests.filter((function(e){return 11!==e.id})),e.setSelectedOptions(n.userInterests),t("success")):i()}),(function(e){console.log(e),i()}))}))},setSelectedOptions:function(e){if(e){var t=e.topics,i=e.interests,s=t&&t.length?t.map((function(e){return e.topicId})):[],o=i&&i.length?i.map((function(e){return e.interestId})):[];this.userInterestId=e.id,this.topics.selected=s,this.interests.selected=o}},setPayload:function(){return{topics:this.topics.selected.map((function(e){return{topicId:e}})),interests:this.interests.selected.map((function(e){return{interestId:e}})),id:this.userInterestId}},submitNextStep:function(){var e=this;if(!this.formSending)if(1==this.currentStep)this.minTopicsSelected?this.currentStep=2:this.showSnackbarMsg(window.immiLang.errorMessage.atLeastTwo,"error");else if(2==this.currentStep)if(this.minInterestsSelected){var t=this.setPayload();this.formSending=!0,this.$http.post(le.a.userInterest,t).then((function(t){var i=t.body;null!=i&&i.success&&i.loggedOut?window.location.href=le.b.login:null!=i&&i.success?(e.showSnackbarMsg(e.label.success,"success"),"subscriptions"===e.currentPage&&(window.location.href=window.location.href)):(Object(le.H)("userInterestError","true"),e.showSnackbarMsg(window.immiLang.serverError,"error"))}),(function(t){var i,s;console.log(t);var o=null!=t&&null!==(i=t.body)&&void 0!==i&&i.message?null==t||null===(s=t.body)||void 0===s?void 0:s.message:window.immiLang.serverError;Object(le.H)("userInterestError","true"),e.showSnackbarMsg(o,"error")})),this.showModal=!1,setTimeout((function(){e.formSending=!1}),500)}else this.showSnackbarMsg(window.immiLang.errorMessage.atLeastTwo,"error")},goBack:function(){this.currentStep=1},handleOpen:function(){var e=this;this.initUserInterestData().then((function(t){t&&(e.showModal=!0)}))},handleUnsubscribe:function(){var e=this;if(!this.formSending){var t=le.a.userInterest+"?username="+window.immiObj.user;this.formSending=!0,this.$http.delete(t).then((function(t){var i=t.body;null!=i&&i.success&&i.loggedOut?window.location.href=le.b.login:null!=i&&i.success?(e.showSnackbarMsg(e.label.unsubscribed,"success"),window.location.href=window.location.href):e.showSnackbarMsg(window.immiLang.serverError,"error")}),(function(t){console.log(t),e.showSnackbarMsg(window.immiLang.serverError,"error")})),this.showModal=!1}},handleClose:function(){this.showModal=!1,this.isManualOpen||Object(le.H)("user-interest-modal","true")},showSnackbarMsg:function(e,t){this.snackbarMessage=e,this.messageType=t,this.$refs.snackbar.open()}}},ue=Object(se.a)(ce,(function(){var e=this,t=e._self._c;return t("div",[e.showModal?t("modal",{staticClass:"c-User-interest",attrs:{id:"ui-btn-close","btn-type":"true","show-close":e.showClose},on:{close:function(t){return e.handleClose()}}},[t("div",{attrs:{slot:"header"},slot:"header"},[1==e.currentStep?[t("h3",{staticClass:"c-Main-modal-header__title topics_icon",domProps:{innerHTML:e._s(e.label.topicsPage.title)}}),e._v(" "),t("p",{staticClass:"c-Main-modal-header__desc",domProps:{innerHTML:e._s(e.label.topicsPage.description)}})]:e._e(),e._v(" "),2==e.currentStep?[t("h3",{staticClass:"c-Main-modal-header__title interests_icon",domProps:{innerHTML:e._s(e.label.interestsPage.title)}}),e._v(" "),t("p",{staticClass:"c-Main-modal-header__desc",domProps:{innerHTML:e._s(e.label.interestsPage.description)}})]:e._e()],2),e._v(" "),t("div",{staticClass:"c-Main-modal-body__wrapper",attrs:{slot:"body"},slot:"body"},[t("div",{directives:[{name:"show",rawName:"v-show",value:1==e.currentStep,expression:"currentStep == 1"}],staticClass:"c-User-interest__body"},[t("div",{staticClass:"c-User-interest__list"}
1,e._l(e.topics.options,(function(i,s){return t("div",{key:s,staticClass:"c-User-interest__list-item"},[t("div",{staticClass:"o-Checkbox__wrapper",class:e.topics.selected.indexOf(i.id)>-1?"selected":""},[t("label",{staticClass:"o-Form__fields-label o-Form__fields-label--checkbox"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.topics.selected,expression:"topics.selected"}],attrs:{type:"checkbox",name:e.topics.icon,id:"ui-topic-"+i.id},domProps:{value:i.id,checked:Array.isArray(e.topics.selected)?e._i(e.topics.selected,i.id)>-1:e.topics.selected},on:{change:function(t){var s=e.topics.selected,o=t.target,n=!!o.checked;if(Array.isArray(s)){var r=i.id,a=e._i(s,r);o.checked?a<0&&e.$set(e.topics,"selected",s.concat([r])):a>-1&&e.$set(e.topics,"selected",s.slice(0,a).concat(s.slice(a+1)))}else e.$set(e.topics,"selected",n)}}}),e._v(" "),t("div",{class:"c-User-interest-item__icon "+i.icon}),e._v(" "),t("div",{staticClass:"c-User-interest-item__label"},[t("h4",[e._v(e._s(i.text))]),e._v(" "),t("p",[e._v(e._s(i.description))])]),e._v(" "),t("span",{staticClass:"checkmark c-User-interest__chk c-User-intereset__chk--topic"})])])])})),0)]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:2==e.currentStep,expression:"currentStep == 2"}],staticClass:"c-User-interest__body"},[t("div",{staticClass:"c-User-interest__list"},e._l(e.interests.options,(function(i,s){return t("div",{key:s,staticClass:"c-User-interest__list-item"},[t("div",{staticClass:"o-Checkbox__wrapper",class:e.interests.selected.indexOf(i.id)>-1?"selected":""},[t("label",{staticClass:"o-Form__fields-label o-Form__fields-label--checkbox"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.interests.selected,expression:"interests.selected"}],attrs:{type:"checkbox",name:i.icon,id:"ui-interest-"+i.id},domProps:{value:i.id,checked:Array.isArray(e.interests.selected)?e._i(e.interests.selected,i.id)>-1:e.interests.selected},on:{change:function(t){var s=e.interests.selected,o=t.target,n=!!o.checked;if(Array.isArray(s)){var r=i.id,a=e._i(s,r);o.checked?a<0&&e.$set(e.interests,"selected",s.concat([r])):a>-1&&e.$set(e.interests,"selected",s.slice(0,a).concat(s.slice(a+1)))}else e.$set(e.interests,"selected",n)}}}),e._v(" "),t("div",{class:"c-User-interest-item__icon "+i.icon}),e._v(" "),t("div",{staticClass:"c-User-interest-item__label"},[t("h4",[e._v(e._s(i.text))]),e._v(" "),t("p",[e._v(e._s(i.description))])]),e._v(" "),t("span",{staticClass:"checkmark c-User-interest__chk c-User-intereset__chk--interest"})])])])})),0)])]),e._v(" "),t("template",{slot:"footer"},[e.isManualOpen?t("div",{staticClass:"c-User-interests-btn-group"},[t("button",{staticClass:"o-Btn o-Btn--dark-red c-User-interest-btn c-User-interest-btn--red",attrs:{id:"ui-btn-unsub"},on:{click:function(t){return e.handleUnsubscribe()}}},[e._v("\n "+e._s(e.label.buttons.unsubscribe)+"\n ")])]):e._e(),e._v(" "),t("div",{staticClass:"c-User-interests-btn-group"},[t("button",{directives:[{name:"show",rawName:"v-show",value:2==e.currentStep,expression:"currentStep == 2"}],staticClass:"o-Btn o-Btn--dark-red c-User-interest-btn",attrs:{id:"ui-btn-prev"},on:{click:function(t){return e.goBack()}}},[e._v("\n "+e._s(e.label.buttons.previous)+"\n ")]),e._v(" "),t("button",{staticClass:"o-Btn o-Btn--dark-red c-User-interest-btn",class:[2==e.currentStep?"c-User-interest-btn--purple":""],attrs:{id:[2==e.currentStep?"ui-btn-finish":"ui-btn-next"],disabled:e.disableBtn},on:{click:function(t){return e.submitNextStep()}}},[e._v("\n "+e._s(1==e.currentStep?e.label.buttons.next:e.label.buttons.finish)+"\n ")])])])],2):e._e(),e._v(" "),t("div",{staticStyle:{position:"relative","z-index":"999999"}},[t("snackbar",{ref:"snackbar",attrs:{message:e.snackbarMessage,type:e.messageType}})],1)],1)}),[],!1,null,null,null).exports,de=i(15);i(228).default,new Z.default({el:"#site-wide",components:{Promotion:oe,UserInterest:ue}}),new Z.default({el:"#main",components:{InlineAds:de.a},data:{name:"Main"},created:function(){document.querySelector(".c-Blog__featured")&&this.getViewsByPost(
1)},methods:{getViewsByPost:function(){var e=document.querySelectorAll(".view-count");if(e=Array.from(e),Array.isArray(e)){var t=new FormData;t.append("action","immi_get_view_api"),e.forEach((function(e,i){t.append("postID["+i+"]",e.getAttribute("data-post-id"))})),this.$http.post(window.immiObj.viewPostLink,t).then((function(t){var i=t.body;if(i){var s=i.split(",,,,");e.forEach((function(e,t){e&&(e.innerText=parseInt(s[t]).toLocaleString())}))}}))}}}}),Q()()},59:function(e,t,i){"use strict";i.r(t);var s=i(35),o=i(58),n=i(67),r={name:"addreply",props:{id:Number,parentId:Number,showReply:Boolean,isNested:String,isBlog:Boolean,isSponsors:{type:Boolean,default:!1}},data:function(){return{replyPost:"",isLoading:!1,showLoginError:!1,replyErrorMessage:[],termsOfuse:window.immiLang.termsOfuse,immiLang:window.immiLang||{},pauseSubmit:window.immiObj.pauseAction}},methods:{addReply:function(){var e=this,t={comment:Object(n.e)(this.replyPost),id:this.id,parent:!!this.parentId};t.parent&&(t.parentId=this.parentId),this.isLoading=!0;var i=this.$refs.btnspinner,r=(new s.a(n.B).spin(i),o.a.experience.addReply);this.isBlog?(r=o.a.blog.addBlogComment,t.blogId=this.id,t.basicParentId=this.parentId?this.parentId:-1,t.parentId=this.parentId?this.parentId:-1,t.blogName=document.querySelector(".c-Article-main-title").innerText.trim(),t.blogLink=window.location.pathname,t.status="Active",delete t.id):this.isSponsors&&(r=o.a.sponsors.addReply),"zh"==window.immiObj.currentLangCode?t.lang="zh":"es"==window.immiObj.currentLangCode&&(t.lang="es"),this.$http.post(r,t).then((function(t){e.isLoading=!1;var i=t.body;"success"==i.message?(e.$root.$emit("refreshReplies",e.id),e.replyPost="",e.closeThisReply()):"error"==i.message&&Array.isArray(i.error)&&i.error.length&&(e.showLoginError=!0,e.replyErrorMessage=i.error)}),(function(t){e.isLoading=!1,console.log(t)}))},closeThisReply:function(){this.replyPost="",this.$root.$emit("closeNestedReplies",this.id,!0),this.$emit("close",this.id)}}},a=(i(124),i(9)),l=Object(a.a)(r,(function(){var e=this,t=e._self._c;return e.showReply?t("div",{staticClass:"c-Experience-cat__reply-submittion hide-when-print",class:{"c-Experience__reply--nested":"true"==e.isNested},attrs:{id:"reply-"+e.id}},[t("div",{staticClass:"c-Experience-cat__comment"},[e._v(e._s(e.immiLang.replyTerms.comment))]),e._v(" "),t("div",[t("textarea",{directives:[{name:"model",rawName:"v-model.trim",value:e.replyPost,expression:"replyPost",modifiers:{trim:!0}}],staticClass:"c-Experience-cat__comment-area",attrs:{rows:"10"},domProps:{value:e.replyPost},on:{input:function(t){t.target.composing||(e.replyPost=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})]),e._v(" "),t("div",{staticClass:"c-Experience-cat__card-division c-Experience-cat__margin-top"},[t("div",{staticClass:"cardHeading"},[e.showLoginError?t("div",{staticClass:"o-Form__error"},e._l(e.replyErrorMessage,(function(i){return t("p",{key:i,domProps:{innerHTML:e._s(i)}})})),0):e._e(),e._v(" "),t("div",{staticClass:"o-Form__terms",domProps:{innerHTML:e._s(e.termsOfuse)}})]),e._v(" "),t("div",{staticClass:"o-Form__btn o-Form__btn--right"},[t("button",{staticClass:"o-Btn o-Btn--dark-red o-Btn--bold-upper",on:{click:function(t){return t.preventDefault(),e.closeThisReply.apply(null,arguments)}}},[e._v(e._s(e.immiLang.replyTerms.cancel))]),e._v(" "),t("button",{staticClass:"o-Btn o-Btn--blue-drk u-Position-relative o-Btn--bold-upper",attrs:{type:"button",disabled:0==e.replyPost.length||e.isLoading||e.pauseSubmit},on:{click:function(t){return e.addReply()}}},[t("span",{directives:[{name:"show",rawName:"v-show",value:!e.isLoading,expression:"!isLoading"}]},[e._v(e._s(e.immiLang.replyTerms.post))]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.isLoading,expression:"isLoading"}],ref:"btnspinner",staticClass:"o-Btn-spinner"})])])])]):e._e()}),[],!1,null,"2fb2df64",null);t.default=l.exports},91:function(e,t,i){var s=i(125);s.__esModule&&(s=s.default),"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,i(47).default)("5e96c39a",s,!0,{})},93:function(e,t,i){"use strict";i.r(t);var s=i(59),o=i(0),n=i(35),r={lines:7,length:17,width:6,radius:15,scale:.2,corners:1,color:"#0071bc",opacity:.75,rotate:0,direction:1,speed:1.4,trail:60,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:!1,hwaccel:!0,position:"absolute"},a={name:"nested",components:{AddReply:s.default},props:{node:Object,parent:Number,postId:Number,isBlog:Boolean,isSponsors:{type:Boolean,default:!1}},data:function(){var e,t;return{addReply:!1,rate:{isDisLikeLoading:!1,isLikeLoading:!1,disableLike:!1,disableDisLike:!1,likeCount:0,disLikeCount:0},immiLang:window.immiLang||{},currentLangCode:(null===(e=window.immiObj)||void 0===e?void 0:e.currentLangCode)||"en",hideReply:(null===(t=window.immiObj)||void 0===t?void 0:t.moderation)||"Enabled",pauseSubmit:window.immiObj.pauseAction}},created:function(){var e=this;if(this.$root.$on("closeNestedReplies",(function(t,i){e.onCloseOtherReplies(t,i)})),this.$root.$on("closeThisReply",(function(t){e.closeThisReply(t)})),this.likeCount=this.node.likes,this.disLikeCount=this.node.disLikes,this.node.hasOwnProperty("childBlogCommentBeanList")&&(this.node.hasOwnProperty("replies ")||(this.node.replies=this.node.childBlogCommentBeanList)),!this.node.hasOwnProperty("reply")&&this.node.hasOwnProperty("comment")?(this.node.reply=this.node.comment,this.node.repliedOn=this.node.createdOnStr,this.node.username=this.node.userName,this.node.replyId=this.node.id):this.node.hasOwnProperty("positiveComment")&&this.isSponsors&&(this.node.reply=this.node.formatedPositiveComment,this.node.username=this.node.createdBy,this.node.replyId=this.node.id,this.node.repliedOn=this.node.formattedCreatedOn),this.isBlog&&!this.node.replyId&&(this.node.replyId=this.node.id),this.isSponsors&&(this.likeCount=this.node.likeCount,this.disLikeCount=this.node.disLikeCount,this.node.replies=this.node.replies),window.immiObj.currentLangCode&&"zh"==window.immiObj.currentLangCode&&this.node.hasOwnProperty("repliedOn")){var t=this.node.repliedOn.substr(0,10).split("/"),i="".concat(t[2],"-").concat(t[1],"-").concat(t[0]," ").concat(this.node.repliedOn.substr(10));i&&i.indexOf("AM")>-1?i=i.replace("AM","ä¸å"):i&&i.indexOf("PM")>-1&&(i=i.replace("PM","ä¸å")),this.node.repliedOn=i}if(window.immiObj.currentLangCode&&"es"==window.immiObj.currentLangCode&&this.node.hasOwnProperty("repliedOn")){var s=this.node.repliedOn.substr(0,10).split("/"),o="".concat(s[1],"/").concat(s[0],"/").concat(s[2]," ").concat(this.node.repliedOn.substr(10));this.node.repliedOn=o}},methods:{triggerCloseOpenReply:function(){immiObj.ath.isLoggedIn?(this.addReply=!0,this.$root.$emit("closeNestedReplies",this.node.id)):window.location.href=o.b.login},onCloseOtherReplies:function(e,t){(this.node.id!=e||t)&&(this.addReply=!1),this.node.id==e&&this.closeMainReply()},closeThisReply:function(e){this.node.id==e&&(this.addReply=!1)},closeMainReply:function(){this.$root.$emit("closeMainReply")},rateThisPost:function(e,t){var i=this;if(immiObj.ath.isLoggedIn){var s="",a="";switch(t){case"dislike":s=this.isBlog?o.a.blog.rateDisLike:this.isSponsors?o.a.sponsors.postDisLike:o.a.experience.rateDisLike,this.rate.isDisLikeLoading=!0,a=document.getElementById("dislike_"+e),this.disLikeCount+=1,this.rate.disableLike=!0;break;default:s=this.isBlog?o.a.blog.rateLike:this.isSponsors?o.a.sponsors.postLike:o.a.experience.rateLike,this.rate.isLikeLoading=!0,a=document.getElementById("like_"+e),this.likeCount+=1,this.rate.disableDisLike=!0}this.isSponsors||(s+=e+"/");var l=this.isSponsors?{id:e}:null;new n.a(r).spin(a);this.$http.post(s,l).then((function(e){var t=e.body;
1if(i.rate.isDisLikeLoading=!1,i.rate.isLikeLoading=!1,"success"===t.message);else{var s=t.error&&Array.isArray(t.error)?t.error[0]:"Something went wrong, please try again.";window.immiObj.currentLangCode&&"zh"==window.immiObj.currentLangCode&&"It is already rated."==s&&(s="已被è¯ä¸ºã"),window.immiObj.currentLangCode&&"es"==window.immiObj.currentLangCode&&"It is already rated."==s&&(s="Ya está clasificado."),i.$root.$emit("openSnackbar",s)}}),(function(e){i.rate.isDisLikeLoading=!1,i.rate.isLikeLoading=!1}))}else window.location.href=o.b.login}}},l=i(9),c={name:"ChainTree",components:{NestedReply:Object(l.a)(a,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"c-Experience-cat__reply borderline",attrs:{"reply-id":e.node.replyId,"parent-id":e.parent}},[e.isSponsors?t("div",{staticClass:"c-Experience-cat-reply__content u-Justify",domProps:{innerHTML:e._s(e.node.formatedPositiveComment)}}):t("div",{staticClass:"c-Experience-cat-reply__content u-Justify",domProps:{innerHTML:e._s(e.node.comment?e.node.comment:e.node.reply)}}),e._v(" "),t("div",{staticClass:"c-Experience-cat-reply__footer"},[t("div",{staticClass:"c-Experience-cat-reply__date"},[e.node.claimer?t("div",{staticClass:"c-Experience-cat-reply__verified"},[e.node.claimer?t("svg",{staticClass:"c-Experience__verified-icon",attrs:{viewBox:"0 0 9 9"}},[t("use",{attrs:{"xlink:href":"/assets/build/svg/defs/svg/sprite.defs.svg#verified-employer"}})]):e._e(),e._v("Verified Employer Representative\n ")]):e._e(),e._v(" "),"zh"==e.currentLangCode?t("span",[t("a",{attrs:{href:e.node.userProfileLink}},[e._v(e._s(e.node.username?e.node.username:e.node.userName))]),e._v(" "+e._s(e.immiLang.replyTerms.replyBy)+" "+e._s(e.node.repliedOn?e.node.repliedOn:e.node.createdOnStr)+"\n ")]):e._e(),e._v(" "),"es"==e.currentLangCode?t("span",[t("a",{attrs:{href:e.node.userProfileLink}},[e._v(e._s(e.node.username?e.node.username:e.node.userName))]),e._v(" "+e._s(e.immiLang.replyTerms.replyBy)+" "+e._s(e.node.repliedOn?e.node.repliedOn:e.node.createdOnStr)+"\n ")]):e.isSponsors?t("span",[e._v("\n "+e._s(e.immiLang.replyTerms.replyBy)+": \n "),t("a",{attrs:{href:"/user-profile/"+e.node.createdBy+"/employer-reviews/"}},[e._v(e._s(e.node.createdBy)),e.node.claimer?t("svg",{staticClass:"c-Comp-prof__title-icon-svg",attrs:{viewBox:"0 0 11 11"}},[t("use",{attrs:{"xlink:href":"/assets/build/svg/defs/svg/sprite.defs.svg#user-verified-badge-icon"}})]):e._e()]),e._v("\n "+e._s(e.immiLang.replyTerms.on)+" "+e._s(e.node.location)+"\n ")]):t("span",[e._v(e._s(e.immiLang.replyTerms.replyBy)+": "),t("a",{attrs:{href:e.node.userProfileLink}},[e._v(e._s(e.node.username?e.node.username:e.node.userName))]),e._v(" "+e._s(e.immiLang.replyTerms.on)+" "+e._s(e.node.repliedOn?e.node.repliedOn:e.node.createdOnStr))])]),e._v(" "),t("div",{staticClass:"c-Experience-cat-reply__count"},[t("button",{staticClass:"c-Experience-cat-reply-count__item o-Btn-effect-tap",attrs:{type:"button",disabled:e.rate.disableLike||e.pauseSubmit},on:{click:function(t){return t.preventDefault(),e.rateThisPost(e.node.id,"like")}}},[t("span",[e._v(e._s(e.likeCount))]),e._v(" "),t("svg",{staticClass:"o-Icon__svg o-Icon__svg--thumbs-up",attrs:{viewBox:"0 0 10 10","xml:space":"preserve"}},[t("use",{staticClass:"o-Icon__svg__inner",attrs:{"xlink:href":"/assets/build/svg/defs/svg/sprite.defs.svg#thumb_up_icon"}})])]),e._v(" "),t("button",{staticClass:"c-Experience-cat-reply-count__item o-Btn-effect-tap",attrs:{type:"button",disabled:e.rate.disableDisLike||e.pauseSubmit},on:{click:function(t){return t.preventDefault(),e.rateThisPost(e.node.id,"dislike")}}},[t("span",[e._v(e._s(e.disLikeCount))]),e._v(" "),t("svg",{staticClass:"o-Icon__svg o-Icon__svg--thumbs-down",attrs:{viewBox:"0 0 10 10","xml:space":"preserve"}},[t("use",{staticClass:"o-Icon__svg__inner",attrs:{"xlink:href":"/assets/build/svg/defs/svg/sprite.defs.svg#thumb_down_icon"}})])]),e._v(" "),"Disabled"!=e.hideReply?t("button",{staticClass:"c-Experience-cat-reply-count__item",attrs:{type:"button",disabled:e.addReply},on:{click:function(t){return t.preventDefault(),e.triggerCloseOpenReply.apply(null,arguments)}}}
1,[e._v("\n "+e._s(e.immiLang.replyTerms.reply)+"\n "),t("span",[t("svg",{staticClass:"o-Icon__svg o-Icon__svg--reply",attrs:{viewBox:"0 0 10 10"}},[t("use",{staticClass:"Icon__svg__inner",attrs:{"xlink:href":"/assets/build/svg/defs/svg/sprite.defs.svg#reply_icon"}})])])]):e._e()])]),e._v(" "),t("div",[t("add-reply",{attrs:{id:e.postId,"parent-id":e.node.id,"is-blog":e.isBlog,"is-sponsors":e.isSponsors,"show-reply":e.addReply,"is-nested":"true"}})],1),e._v(" "),t("div",{staticClass:"c-Experience-cat__reply c-Experience-cat__reply--nested"},e._l(e.node.replies,(function(i){return t("nested",{key:i.replyId,attrs:{node:i,"is-sponsors":e.isSponsors,"is-blog":e.isBlog,parent:e.node.id,"post-id":e.postId}})})),1)])}),[],!1,null,null,null).exports},props:{replies:Object,postid:Number,isblog:Boolean,isSponsors:{type:Boolean,default:!1}}},u=Object(l.a)(c,(function(){var e=this._self._c;return e("div",[e("div",{staticClass:"c-Experience-cat__replies"},[e("nested-reply",{attrs:{node:this.replies,"is-blog":this.isblog,"is-sponsors":this.isSponsors,"post-id":this.postid}})],1)])}),[],!1,null,null,null);t.default=u.exports}}); 2//# sourceMappingURL=main.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.