{"version":3,"file":"phoneNumberBox.obs.js","sources":["../../../Framework/Controls/phoneNumberBox.obs"],"sourcesContent":["\n\n\n"],"names":["internalValue","ref","props","modelValue","countryCode","useVModelPassthrough","emit","formFieldProps","useStandardRockFormFieldProps","configuration","configuredRules","computed","_configuration$value$","_configuration$value","_configuration$value$2","value","rules","normalizeRules","push","validatePhoneNumber","availableCountryCodes","_configuration$value$3","_configuration$value2","countryCodes","availableCountryCodeOptions","length","text","map","val","stripPhoneNumber","_iterator","_createForOfIteratorHelper","_step","s","n","done","_rule$match","rule","regex","RegExp","match","test","err","e","f","concat","loadConfiguration","_loadConfiguration","apply","arguments","_asyncToGenerator","result","getPhoneNumberConfiguration","_result$defaultCountr","defaultCountryCode","console","error","onChange","formatPhoneNumber","watch","immediate","includes"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6DI,IAAA,IAAMA,aAAa,GAAGC,GAAG,CAACC,KAAK,CAACC,UAAU,CAAC,CAAA;UAC3C,IAAMC,WAAW,GAAGC,oBAAoB,CAACH,KAAK,EAAE,aAAa,EAAEI,IAAI,CAAC,CAAA;MACpE,IAAA,IAAMC,cAAc,GAAGC,6BAA6B,CAACN,KAAK,CAAC,CAAA;MAC3D,IAAA,IAAMO,aAAa,GAAGR,GAAG,CAAkD,IAAI,CAAC,CAAA;MAOhF,IAAA,IAAMS,eAAe,GAAGC,QAAQ,CAAgD,MAAM;MAAA,MAAA,IAAAC,qBAAA,EAAAC,oBAAA,EAAAC,sBAAA,CAAA;MAClF,MAAA,OAAA,CAAAF,qBAAA,GAAA,CAAAC,oBAAA,GAAOJ,aAAa,CAACM,KA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