Skip to Content

JavaScript File

URL: https://angradoheroismo.pt/wp-includes/js/jquery/ui/controlgroup.min.js?ver=1.13.2
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Wed, 02 Nov 2022 05:00:33 GMT
Download Time: Less than a second
Cookies: None
Size: 5 KB
HTTP Headers:  13 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1/*!

2 * jQuery UI Controlgroup 1.13.2

3 * http://jqueryui.com

4 *

5 * Copyright jQuery Foundation and other contributors

6 * Released under the MIT license.

7 * http://jquery.org/license

8 */

9!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],t):t(jQuery)}

10(function(r){"use strict";var s=/ui-corner-([a-z]){2,6}

11/g;r.widget("ui.controlgroup",{version:"1.13.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}

12}

13,_create:function(){this._enhance()}

14,_enhance:function(){this.element.attr("role","toolbar"),this.refresh()}

15,_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()}

16,_initWidgets:function(){var s=this,l=[];r.each(this.options.items,function(n,t){var e,o={}

17;t&&("controlgroupLabel"===n?((e=s.element.find(t)).each(function(){var t=r(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}

18),s._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),l=l.concat(e.get())):r.fn[n]&&(o=s["_"+n+"Options"]?s["_"+n+"Options"]("middle"):{classes:{}

19}

20,s.element.find(t).each(function(){var t=r(this),e=t[n]("instance"),i=r.widget.extend({}

21,o);"button"===n&&t.parent(".ui-spinner").length||((e=e||t[n]()[n]("instance"))&&(i.classes=s._resolveClassesValues(i.classes,e)),t[n](i),i=t[n]("widget"),r.data(i[0],"ui-controlgroup-data",e||t[n]("instance")),l.push(i[0]))}

22)))}

23),this.childWidgets=r(r.uniqueSort(l)),this._addClass(this.childWidgets,"ui-controlgroup-item")}

24,_callChildMethod:function(e){this.childWidgets.each(function(){var t=r(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()}

25)}

26,_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)}

27,_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}

28}

29;return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}

30[t],n}

31,_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t}

32,_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")}

33,_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")}

34,_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""}

35,first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")}

36,last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")}

37,only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}

38}

39[t]}

40}

...

</html>