PageSourceSearch

https://personal.instaforex.eu/build/oldblue/countryPhoneAutocomplete.86acfc2601f722e4647e.js

js instaforex.eu collected 2026-10-04 20:11:55 UTC 5,659 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4053],{44620:function(e,t,o){o.r(t);var n=o(62893),r=function(){var e=this,t=e._self._c;return t("div",{key:e.countryIsoCode,staticClass:"country-phone-autocomplete",class:{disabled:e.isDisabled}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.getFullPhoneNumber,expression:"getFullPhoneNumber"}],attrs:{type:"hidden",id:e.originalPhone.id,name:e.originalPhone.name,disabled:e.isDisabled},domProps:{value:e.getFullPhoneNumber},on:{input:function(t){t.target.composing||(e.getFullPhoneNumber=t.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.phoneNumber,expression:"phoneNumber"}],staticClass:"form-control",attrs:{type:"text",placeholder:e.translations.phonePlaceholder,disabled:e.isDisabled},domProps:{value:e.phoneNumber},on:{input:[function(t){t.target.composing||(e.phoneNumber=t.target.value)},e.handlePhoneNumberInput]}}),e._v(" "),t("country-code-select",{ref:"countryCodeSelectRef",attrs:{disabledFetchingCountry:!0,disabled:e.isDisabled,defaultCountry:e.countryIsoCode,enabledCountryCode:!0,enableSearchField:e.enableSearchField,onlyCountries:e.onlyCountriesIsoCodes,searchPlaceholderText:e.translations.searchPlaceholder},on:{onSelect:e.handleCountryCodeSelection}})],1)};r._withStripped=!0;var s=o(93079),i=o.n(s);const a="cabinet_registration_form_country_iso_code";var l=o(15860);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach((function(t){d(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function d(e,t,o){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var h={components:{CountryCodeSelect:i()},data(){return{originalPhone:{name:"",id:"",phone:"",countryIsoCode:"",isDisabled:!1},countryDialCode:"",countryIsoCode:"",phoneNumber:"",isDisabled:!1,onlyCountriesIsoCodes:[],enableSearchField:!0,translations:{searchPlaceholder:fxbo.fn.t("Search country"),phonePlaceholder:fxbo.fn.t("Phone number")}}},computed:{getFullPhoneNumber:function(){return this.phoneNumber?"+".concat(this.countryDialCode).concat(this.phoneNumber):""}},methods:{handleCountryCodeSelection(e){let{iso2:t,dialCode:o}=e;this.countryDialCode=o,this.countryIsoCode=t,this.saveSelectedCountryIsoCode(t),this.originalPhone.phone&&!this.phoneNumber&&this.setPhoneNumberFromOriginalData(o)},handlePhoneNumberInput(e){this.phoneNumber=(0,l.pattern)(e.target.value)},setDefaultCountryCode(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").replace(/^\+/,"");this.phoneNumber||(this.countryIsoCode=e,this.countryDialCode=t)},setAvailableCountryCode(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").replace(/^\+/,"");this.countryIsoCode=e,this.countryDialCode=t},setAvailableCountries(e){this.$refs.countryCodeSelectRef.findCountry(e)?(this.enableSearchField=!1,this.onlyCountriesIsoCodes=[e]):(this.enableSearchField=!0,this.onlyCountriesIsoCodes=[])},setPhoneNumberFromOriginalData(e){const t=this.originalPhone.phone||"",o=e||"",n="+".concat(o);t.startsWith(n)?this.phoneNumber=t.slice(n.length):o&&t.startsWith(o)?this.phoneNumber=t.slice(o.length):this.phoneNumber=t},saveSelectedCountryIsoCode(e){localStorage.setItem(a,e)},start(e){const{countryIsoCode:t}=e;this.originalPhone=e,this.countryIsoCode=t,this.isDisabled=Boolean(e.isDisabled),e.phone&&t&&this.setDefaultCountryCode(t)},mergeTranslations(e){this.translations=c(c({},this.translations),e)}}},b=h,p=(0,o(14486).A)(b,r,[],!1,null,null,null).exports,y=o(91638),C=o(2414),m=o(74692);n.default.use(i()),fxbo.mod.common.CountryPhoneAutocomplete=function(){let e;const t=".j-country-phone",o=function(o){const s=o[0],i={name:"",id:"",phone:"",countryIsoCode:"",isDisabled:!1},a=s?s.getAttribute("value"):"",l=s?s.dataset.defaultCountryIso:"",u=!!s&&["1","true"].includes(String(s.dataset.forceDefaultCountryIso).toLowerCase());i.name=s?s.getAttribute("name"):"",i.id=s?s.getAttribute("id"):"",i.phone=a,i.countryIsoCode=r(l,a,u),i.isDisabled=!!s&&s.hasAttribute("disabled"),s&&(e=new n.default({extends:p,el:t}),e.start(i))},r=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=localStorage.getItem(a),r=t?(0,y.l)(t):"";return o&&e?e:n||(r?r.country||function(e){switch(e){case"7":return"RU";case"39":return"VA";case"44":return"GB";case"61":return"AU";case"212":return"MA";case"262":return"YT";case"590":return"GP";case"599":return"BQ";default:return""}}(r.countryCallingCode):e)};return{start:function(){const e=document.querySelector(t);e&&o(m(e)),C.observerNodeInsertedHelper.registerCallback(t,o)},setDefaultCountryCode:function(t,o){e&&e.setDefaultCountryCode(t,o)},setAvailableCountries:function(t){e&&e.setAvailableCountries(t)},setAvailableCountryCode:function(t,o){e&&e.setAvailableCountryCode(t,o)},mergeTranslations:function(t){var o;null===(o=e)||void 0===o||o.mergeTranslations(t)}}}()}}]);

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.