text: /*!
   * OpenUI5
   * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company.
   * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
   */
  sap.ui.define(["sap/ui/test/matchers/Matcher","sap/ui/test/matchers/I18NText"],function(e,t){"use strict";var a=new t;var r=["sap.ui.comp.navpopover.SmartLink","sap.m.Link","sap.m.Label","sap.m.Text"];var i=e.extend("sap.ui.test.matchers.LabelFor",{metadata:{publicMethods:["isMatching"],properties:{text:{type:"string"},modelName:{type:"string",defaultValue:"i18n"},key:{type:"string"},parameters:{type:"any"},propertyName:{type:"string",defaultValue:"text"}}},isMatching:function(e){var t;var i=sap.ui.test.Opa5.getPlugin();var s=this.getModelName();var n=this.getText();var o=this.getParameters();var g=this.getPropertyName();var p=this.getKey();if(n&&p){this._oLogger.error("Combination of text and key properties is not allowed");return false}if(!n&&!p){this._oLogger.error("Text and key properties are not defined but exactly one is required");return false}if(r.indexOf(e.getMetadata().getName())>-1){this._oLogger.error("Control cannot have an associated label according to HTML standard");return false}var l=i.getMatchingControls({controlType:"sap.m.Label",visible:false});a.applySettings({key:p,modelName:s,parameters:o,propertyName:g});t=l.some(function(t){if(p&&a.isMatching(t)){return e.getId()===t.getLabelForRendering()}else if(n&&t.getText()===n){return e.getId()===t.getLabelForRendering()}});if(!t){var d=p?"I18N text key "+p:"text "+n;this._oLogger.debug("Control '"+e+"' does not have an associated label with "+d)}return t}});return i});