text: {"version":3,"sources":["link_field.js"],"names":["BX","namespace","trim","Landing","Utils","clone","isPlainObject","decodeDataValue","fireCustomEvent","htmlToElement","style","escapeText","UI","Field","Link","data","BaseField","apply","this","arguments","options","remove","input","onValueChangeHandler","onValueChange","content","text","href","target","skipContent","customUrlDisabled","disableCustomURL","detailPageMode","containsImage","containsHtml","Text","placeholder","Loc","getMessage","selector","textOnly","hrefInputValue","hrefInput","getValue","value","firstElementChild","textNode","querySelector","innerText","decode","replace","event","Event","BaseEvent","compatData","emit","bind","layout","hidden","header","LinkURL","title","onInput","onHrefInput","disallowType","disableBlocks","allowedTypes","sourceField","onHrefValueChange","onNewPage","innerHTML","targetInput","DropdownInline","className","items","_self","_blank","_popup","mediaButton","Button","BaseButton","html","onClick","onMediaClick","disabled","mediaLayout","create","props","mediaHelpButton","addEventListener","onMediaHelpButtonMouseover","onMediaHelpButtonMouseout","wrapper","createWrapper","left","createLeft","center","createCenter","right","createRight","appendChild","classList","add","adjustVideo","adjustEditLink","adjustTarget","prototype","constructor","__proto__","superClass","type","getPlaceholderType","pageType","Env","getInstance","getType","isString","length","getPageData","then","result","urlMask","Main","params","sef_url","landing_view","siteId","id","slice","call","querySelectorAll","forEach","editLink","createEditLink","children","attrs","isChanged","JSON","stringify","element","matches","preparedValue","isAvailableMedia","isEnabledMedia","data-url","mediaService","getEmbedURL","getDynamic","getAttribute","setValue","disable","test","reset","enableMedia","enable","closePopup","showMediaPreview","disableMedia","hideMediaPreview","hideMediaSettings","isEnabled","showMediaSettings","mediaSettings","getSettingsForm","ServiceFactory","MediaService","Factory","Tool","Suggest","show","description","outerHTML","angleOffset","hide","onVideoPreviewClick","$","fancybox","open","src","afterShow","instance","current","iframe","$slide","find","MediaPlayer","scrolling","loader","Loader","mode","offset","top","video","getURLPreviewElement","embedURL","getQueryParams","url"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAEb,IAAIC,EAAOF,GAAGG,QAAQC,MAAMF,KAC5B,IAAIG,EAAQL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