text: /**
   * Copyright (c) 2014, 2016, Oracle and/or its affiliates.
   * The Universal Permissive License (UPL), Version 1.0
   */
  "use strict";
  /*
   Copyright 2013 jQuery Foundation and other contributors
   Released under the MIT license.
   http://jquery.org/license
   Copyright 2013 jQuery Foundation and other contributors
   Released under the MIT license.
   http://jquery.org/license
  */
  define(["ojs/ojcore","jquery","ojs/ojcomponentcore","ojs/ojpopupcore","jqueryui-amd/widgets/draggable","jqueryui-amd/widgets/mouse"],function(a,g){(function(){a.Pa("oj.ojResizable",g.oj.baseComponent,{version:"1.0.0",widgetEventPrefix:"oj",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,resize:null,
  start:null,stop:null},rV:function(a){return parseInt(a,10)||0},Ng:function(a){return!isNaN(parseInt(a,10))},C9:function(a,c){if("hidden"===g(a).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop",e=!1;if(0<a[d])return!0;a[d]=1;e=0<a[d];a[d]=0;return e},_ComponentCreate:function(){this._super();var a,c,d,e,f,h=this;a=this.options;c=this.element.mouse.bind(this.element);c();this.xr=c("instance");this.xr._mouseCapture=function(a){return h.Tza(a)};this.xr._mouseStart=function(a){return h.Wza(a)};
  this.xr._mouseDrag=function(a){return h.Uza(a)};this.xr._mouseStop=function(a){return h.QD(a)};this.element.addClass("oj-resizable");g.extend(this,{NN:this.element,OK:[],Oo:null});this.handles=a.handles||(g(".oj-resizable-handle",this.element).length?{nNa:".oj-resizable-n",YMa:".oj-resizable-e",tNa:".oj-resizable-s",Ei:".oj-resizable-w",uNa:".oj-resizable-se",xNa:".oj-resizable-sw",oNa:".oj-resizable-ne",pNa:".oj-resizable-nw"}:"e,s,se");if(this.handles.constructor===String)for("all"===this.handles&&
  (this.handles="n,e,s,w,se,sw,ne,nw"),a=this.handles.split(","),this.handles={},c=0;c<a.length;c++)d=g.trim(a[c]),f="oj-resizable-"+d,e=g("\x3cdiv class\x3d'oj-resizable-handle "+f+"'\x3e\x3c/div\x3e"),this.handles[d]=".oj-resizable-"+d,this.element.append(e);this.gCa=function(){for(var a in this.handles)this.handles[a].constructor===String&&(this.handles[a]=this.element.children(this.handles[a]).first().show())};this.gCa();this.Jxa=g(".oj-resizable-handle",this.element);this.Jxa.mouseover(function(){h.fja||
  (this.className&&(e=this.className.match(/oj-resizable-(se|sw|ne|nw|n|e|s|w)/i)),h.axis=e&&e[1]?e[1]:"se")});this.xr._mouseInit()},_destroy:function(){this.xr&&this.xr._mouseDestroy();try{this.xr.destroy(),this.xr=null}catch(a){}g(this.NN).removeClass("oj-resizable oj-resizable-disabled oj-resizable-resizing").removeData("resizable").removeData("oj-resizable").unbind(".resizable").find(".oj-resizable-handle").remove();return this},Tza:function(a){var c,d,e=!1;for(c in this.handles)if(d=g(this.handles[c])[0],
  d===a.target||g.contains(d,a.target))e=!0;return!this.options.disabled&&e},Wza:function(a){var c,d,e;e=this.options;c=this.element.position();var f=this.element;this.fja=!0;/absolute/.test(f.css("position"))?f.css({position:"absolute",top:f.css("top"),left:f.css("left")}):f.is(".oj-draggable")&&f.css({position:"absolute",top:c.top,left:c.left});this.hCa();c=this.rV(this.helper.css("left"));d=this.rV(this.helper.css("top"));e.containment&&(c+=g(e.containment).scrollLeft()||0,d+=g(e.containment).scrollTop()||
  0);this.offset=this.helper.offset();this.position={left:c,top:d};this.size={width:f.width(),height:f.height()};this.Un={width:f.width(),height:f.height()};this.cu={left:c,top:d};this.bO={width:f.outerWidth()-f.width(),height:f.outerHeight()-f.height()};this.WJa={left:a.pageX,top:a.pageY};this.jp=this.Un.width/this.Un.height||1;e=g(".oj-resizable-"+this.axis).css("cursor");g("body").css("cursor","auto"===e?this.axis+"-resize":e);f.addClass("oj-resizable-resizing");this.KV("start",a);this.spa(a);this.cra(a);
  return!0},Uza:function(a){var c,d=this.helper,e={},f=this.WJa;c=a.pageX-f.left||0;var f=a.pageY-f.top||0,h=this.Nk[this.axis];this.UA={top:this.position.top,left:this.position.left};this.VA={width:this.size.width,height:this.size.height};if(!h)return!1;c=h.apply(this,[a,c,f]);this.gFa(a.shiftKey);a.shiftKey&&(c=this.eFa(c,a));c=this.tCa(c,a);this.UEa(c);this.KV("resize",a);this.rpa(a,this.ui());this.bra(a,this.ui());this.position.top!==this.UA.top&&(e.top=this.position.top+"px");this.position.left!==
  this.UA.left&&(e.left=this.position.left+"px");this.size.width!==this.VA.width&&(e.width=this.size.width+"px");this.size.height!==this.VA.height&&(e.height=this.size.height+"px");d.css(e);!this.Oo&&this.OK.length&&this.aBa();g.isEmptyObject(e)||this._trigger("resize",a,this.ui());return!1},QD:function(a){this.fja=!1;g("body").css("cursor","auto");this.element.removeClass("oj-resizable-resizing");this.KV("stop",a);this.tpa(a);this.dra(a);return!1},gFa:function(a){var c,d,e,f;f=this.options;f={minWidth:this.Ng(f.minWidth)?
  f.minWidth:0,maxWidth:this.Ng(f.maxWidth)?f.maxWidth:Infinity,minHeight:this.Ng(f.minHeight)?f.minHeight:0,maxHeight:this.Ng(f.maxHeight)?f.maxHeight:Infinity};a&&(a=f.minHeight*this.jp,d=f.minWidth/this.jp,c=f.maxHeight*this.jp,e=f.maxWidth/this.jp,a>f.minWidth&&(f.minWidth=a),d>f.minHeight&&(f.minHeight=d),c<f.maxWidth&&(f.maxWidth=c),e<f.maxHeight&&(f.maxHeight=e));this.jFa=f},UEa:function(a){this.offset=this.helper.offset();this.Ng(a.left)&&(this.position.left=a.left);this.Ng(a.top)&&(this.position.top=
  a.top);this.Ng(a.height)&&(this.size.height=a.height);this.Ng(a.width)&&(this.size.width=a.width)},eFa:function(a){var c=this.position,d=this.size,e=this.axis;this.Ng(a.height)?a.width=a.height*this.jp:this.Ng(a.width)&&(a.height=a.width/this.jp);"sw"===e&&(a.left=c.left+(d.width-a.width),a.top=null);"nw"===e&&(a.top=c.top+(d.height-a.height),a.left=c.left+(d.width-a.width));return a},tCa:function(a){var c=this.jFa,d=this.axis,e=this.Ng(a.width)&&c.maxWidth&&c.maxWidth<a.width,f=this.Ng(a.height)&&
  c.maxHeight&&c.maxHeight<a.height,g=this.Ng(a.width)&&c.minWidth&&c.minWidth>a.width,k=this.Ng(a.height)&&c.minHeight&&c.minHeight>a.height,l=this.cu.left+this.Un.width,m=this.position.top+this.size.height,r=/sw|nw|w/.test(d),d=/nw|ne|n/.test(d);g&&(a.width=c.minWidth);k&&(a.height=c.minHeight);e&&(a.width=c.maxWidth);f&&(a.height=c.maxHeight);g&&r&&(a.left=l-c.minWidth);e&&r&&(a.left=l-c.maxWidth);k&&d&&(a.top=m-c.minHeight);f&&d&&(a.top=m-c.maxHeight);a.width||a.height||a.left||!a.top?a.width||
  a.height||a.top||!a.left||(a.left=null):a.top=null;return a},aBa:function(){if(this.OK.length){var a,c,d,e,f,g=this.helper||this.element;for(a=0;a<this.OK.length;a++){f=this.OK[a];if(!this.Yz)for(this.Yz=[],d=[f.css("borderTopWidth"),f.css("borderRightWidth"),f.css("borderBottomWidth"),f.css("borderLeftWidth")],e=[f.css("paddingTop"),f.css("paddingRight"),f.css("paddingBottom"),f.css("paddingLeft")],c=0;c<d.length;c++)this.Yz[c]=(parseInt(d[c],10)||0)+(parseInt(e[c],10)||0);f.css({height:g.height()-
  this.Yz[0]-this.Yz[2]||0,width:g.width()-this.Yz[1]-this.Yz[3]||0})}}},hCa:function(){this.element.offset();this.helper=this.element},Nk:{e:function(a,c){return{width:this.Un.width+c}},w:function(a,c){return{left:this.cu.left+c,width:this.Un.width-c}},n:function(a,c,d){return{top:this.cu.top+d,height:this.Un.height-d}},s:function(a,c,d){return{height:this.Un.height+d}},se:function(a,c,d){return g.extend(this.Nk.s.apply(this,arguments),this.Nk.e.apply(this,[a,c,d]))},sw:function(a,c,d){return g.extend(this.Nk.s.apply(this,
  arguments),this.Nk.w.apply(this,[a,c,d]))},ne:function(a,c,d){return g.extend(this.Nk.n.apply(this,arguments),this.Nk.e.apply(this,[a,c,d]))},nw:function(a,c,d){return g.extend(this.Nk.n.apply(this,arguments),this.Nk.w.apply(this,[a,c,d]))}},KV:function(a,c){"resize"!==a&&this._trigger(a,c,this.ui())},spa:function(){function a(b){g(b).each(function(){var a=g(this);a.data("oj-resizable-alsoresize",{width:parseInt(a.width(),10),height:parseInt(a.height(),10),left:parseInt(a.css("left"),10),top:parseInt(a.css("top"),
  10)})})}var c=this.options;"object"!==typeof c.alsoResize||c.alsoResize.parentNode?a(c.alsoResize):c.alsoResize.length?(c.alsoResize=c.alsoResize[0],a(c.alsoResize)):g.each(c.alsoResize,function(c){a(c)})},rpa:function(a,c){function d(a,b){g(a).each(function(){var a=g(this),d=g(this).data("oj-resizable-alsoresize"),e={};g.each(b&&b.length?b:a.parents(c.NN[0]).length?["width","height"]:["width","height","top","left"],function(a,b){var c=(d[b]||0)+(k[b]||0);c&&0<=c&&(e[b]=c||null)});a.css(e)})}var e=
  this.options,f=this.Un,h=this.cu,k={height:this.size.height-f.height||0,width:this.size.width-f.width||0,top:this.position.top-h.top||0,left:this.position.left-h.left||0};"object"!==typeof e.alsoResize||e.alsoResize.nodeType?d(e.alsoResize,null):g.each(e.alsoResize,function(a,b){d(a,b)})},tpa:function(){g(this).removeData("oj-resizable-alsoresize")},cra:function(){var a,c,d,e,f,h=this,k=h.element;d=h.options.containment;if(k=d instanceof g?d.get(0):/parent/.test(d)?k.parent().get(0):d)h.eM=g(k),/document/.test(d)||
  d===document?(h.fM={left:0,top:0},h.Tea={left:0,top:0},h.eu={element:g(document),left:0,top:0,width:g(document).width(),height:g(document).height()||document.body.parentNode.scrollHeight}):(a=g(k),c=[],g(["Top","Right","Left","Bottom"]).each(function(d,e){c[d]=h.rV(a.css("padding"+e))}),h.fM=a.offset(),h.Tea=a.position(),h.Uea={height:a.innerHeight()-c[3],width:a.innerWidth()-c[1]},d=h.fM,e=h.Uea.height,f=h.Uea.width,f=h.C9(k,"left")?k.scrollWidth:f,e=h.C9(k)?k.scrollHeight:e,h.eu={element:k,left:d.left,
  top:d.top,width:f,height:e})},bra:function(a,c){var d,e,f,g;d=this.options;e=this.fM;g=this.position;var k=a.shiftKey;f={top:0,left:0};var l=this.eM,m=!0;l[0]!==document&&/static/.test(l.css("position"))&&(f=e);g.left<(this.Oo?e.left:0)&&(this.size.width+=this.Oo?this.position.left-e.left:this.position.left-f.left,k&&(this.size.height=this.size.width/this.jp,m=!1),this.position.left=d.helper?e.left:0);g.top<(this.Oo?e.top:0)&&(this.size.height+=this.Oo?this.position.top-e.top:this.position.top,k&&
  (this.size.width=this.size.height*this.jp,m=!1),this.position.top=this.Oo?e.top:0);this.offset.left=this.eu.left+this.position.left;this.offset.top=this.eu.top+this.position.top;d=Math.abs((this.Oo?this.offset.left-f.left:this.offset.left-e.left)+this.bO.width);e=Math.abs((this.Oo?this.offset.top-f.top:this.offset.top-e.top)+this.bO.height);f=this.eM.get(0)===this.element.parent().get(0);g=/relative|absolute/.test(this.eM.css("position"));f&&g&&(d-=Math.abs(this.eu.left));d+this.size.width>=this.eu.width&&
  (this.size.width=this.eu.width-d,k&&(this.size.height=this.size.width/this.jp,m=!1));e+this.size.height>=this.eu.height&&(this.size.height=this.eu.height-e,k&&(this.size.width=this.size.height*this.jp,m=!1));m||(this.position.left=c.UA.left,this.position.top=c.UA.top,this.size.width=c.VA.width,this.size.height=c.VA.height)},dra:function(){var a=this.options,c=this.fM,d=this.Tea,e=this.eM,f=g(this.helper),h=f.offset(),k=f.outerWidth()-this.bO.width,f=f.outerHeight()-this.bO.height;this.Oo&&!a.animate&&
  /relative/.test(e.css("position"))&&g(this).css({left:h.left-d.left-c.left,width:k,height:f});this.Oo&&!a.animate&&/static/.test(e.css("position"))&&g(this).css({left:h.left-d.left-c.left,width:k,height:f})},ui:function(){return{NN:this.NN,element:this.element,helper:this.helper,position:this.position,size:this.size,Un:this.Un,cu:this.cu,VA:this.VA,UA:this.UA}}})})();(function(){a.Pa("oj.ojDialog",g.oj.baseComponent,{version:"1.0.0",widgetEventPrefix:"oj",options:{cancelBehavior:"icon",dragAffordance:"title-bar",
  initialVisibility:"hide",modality:"modal",position:{my:"center",at:"center",of:window,collision:"fit",ANa:function(a){var c=g(this).css(a).offset().top;0>c&&g(this).css("top",a.top-c)}},resizeBehavior:"resizable",role:"dialog",title:null,beforeClose:null,beforeOpen:null,close:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_ComponentCreate:function(){this._super();this.VJa={display:this.element[0].style.display,width:this.element[0].style.width,height:this.element[0].style.height};
  this.cu={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.QZ=this.element.attr("title");this.options.title=this.options.title||this.QZ;this.asa();this.element.show().removeAttr("title").addClass("oj-dialog-content oj-dialog-default-content").appendTo(this.vc);this.wG=!1;if(this.element.find(".oj-dialog").length){var a=this;this.element.find(".oj-dialog-header").each(function(c,d){var e=g(d);if(!e.closest(".oj-dialog-body").length)return a.rt=e,a.wG=!0,
  !1})}else this.rt=this.element.find(".oj-dialog-header"),this.rt.length&&(this.wG=!0);this.wG?(this.Ora(this.rt),this.rt.prependTo(this.vc),"icon"===this.options.cancelBehavior&&(this.rI(this.rt),this.UE=this.rt.find(".oj-dialog-title"),this.UE.length&&this.UE.insertAfter(this.$n))):this.Zra();this.Mr=this.element.children(".oj-dialog-footer");this.Nra(this.Mr);this.Mr.length&&(this.Mr.addClass("oj-helper-clearfix"),this.Mr.appendTo(this.vc));"title-bar"===this.options.dragAffordance&&g.fn.draggable&&
  this.pz();this.Wca(this.vc);this.Xs=!1},g1:function(){"show"===this.options.initialVisibility&&this.open()},_destroy:function(){this.ksa&&window.clearTimeout(this.ksa);this.isOpen()&&this.iv();this.Lq&&(this.Lq("instance")&&this.Lq("destroy"),this.Lq=null);this.Mr.length&&(this.Mr.removeClass("oj-helper-clearfix"),g("#"+this.Kaa).replaceWith(this.Mr));this.AI();if(this.wG){var a=this.vc.find(".oj-dialog-header");a&&g("#"+this.Laa).replaceWith(a)}this.bka&&(this.bka.remove(),this.bka=null);this.element.removeUniqueId().removeClass("oj-dialog-content oj-dialog-default-content").css(this.VJa);
  this.vc&&this.vc.stop(!0,!0);this.element.unwrap();this.QZ&&this.element.attr("title",this.QZ);this.Nr&&(this.Nr.remove(),this.Nr=null);delete this.wn;delete this.Xs;this._super()},widget:function(){return this.vc},disable:g.noop,enable:g.noop,close:function(b){if(this.isOpen()&&(!1!==this._trigger("beforeClose",b)||this.vD)){this.Xs=!1;this.Ata=null;this.opener.filter(":focusable").focus().length||g(this.document[0].activeElement).blur();var c={};c[a.U.sb.Kh]=this.vc;a.U.Qe().close(c);this._trigger("close",
  b)}},isOpen:function(){return this.Xs},open:function(b){if(!1!==this._trigger("beforeOpen",b)){if(!this.isOpen()){this.Xs=!0;this.opener=g(this.document[0].activeElement);"resizable"===this.options.resizeBehavior&&this.caa();b="rtl"===this.nd();b=a.Gd.ql(this.options.position,b);var c={};c[a.U.sb.Kh]=this.vc;c[a.U.sb.sB]=this.opener;c[a.U.sb.wB]=b;c[a.U.sb.Ak]=this.options.modality;c[a.U.sb.xu]=this.Ty();c[a.U.sb.Sr]="oj-dialog-layer";c[a.U.sb.Rr]=a.U.Rr.oP;a.U.Qe().open(c);this._trigger("open")}this.Y6()}},
  refresh:function(){this._super()},Y6:function(){var b=this.Ata;b&&0<b.length&&a.C.It(this.vc[0],b[0])||(b||(b=this.element.find("[autofocus]")),b.length||(b=this.element.find(":tabbable")),b.length||this.Mr.length&&(b=this.Mr.find(":tabbable")),b.length||this.cka&&this.$n&&(b=this.$n.filter(":focusable")),b.length||(b=this.vc),b.eq(0).focus(),this._trigger("focus"))},_keepFocus:function(a){a.preventDefault();a=this.document[0].activeElement;this.vc[0]===a||g.contains(this.vc[0],a)||this.Y6()},Ng:function(a){return!isNaN(parseInt(a,
  10))},asa:function(){this.G$=!1;this.element.uniqueId();this.AS=this.element.attr("id");this.pe?(this.vc=g(this.pe),this.vc.uniqueId(),this.nea=this.vc.attr("id")):(this.nea="ojDialogWrapper-"+this.AS,this.vc=g("\x3cdiv\x3e"),this.vc.insertBefore(this.element));this.vc.addClass("oj-dialog oj-component").hide().attr({tabIndex:-1,role:this.options.role,id:this.nea});this._on(this.vc,{keyup:function(){},keydown:function(a){if("none"!=this.options.cancelBehavior&&!a.isDefaultPrevented()&&a.keyCode&&a.keyCode===
  g.ui.keyCode.ESCAPE)a.preventDefault(),a.stopImmediatePropagation(),this.close(a);else if(a.keyCode===g.ui.keyCode.TAB){var c=this.vc.find(":tabbable"),d=c.filter(":first"),e=c.filter(":last");a.shiftKey?a.shiftKey&&(a.target===d[0]||a.target===this.vc[0]?(e.focus(),a.preventDefault()):(d=c.index(document.activeElement),1==d&&c[0]&&(c[0].focus(),a.preventDefault()))):a.target===e[0]||a.target===this.vc[0]?(d.focus(),a.preventDefault()):(d=c.index(document.activeElement),0==d&&c[1]&&(c[1].focus(),
  a.preventDefault()))}}});this.element.find("[aria-describedby]").length||this.vc.attr({"aria-describedby":this.element.uniqueId().attr("id")})},Wca:function(a){var c=this;this._focusable({applyHighlight:!0,setupHandlers:function(d,e){c._on(a,{focus:function(a){d(g(a.currentTarget))},blur:function(a){e(g(a.currentTarget))}})}})},AI:function(){this.$n&&(this.$n.remove(),this.cka=this.$n=null)},rI:function(a){this.$n=g("\x3cdiv\x3e").addClass("oj-dialog-header-close-wrapper").attr("tabindex","1").attr("aria-label",
  "close").attr("role","button").appendTo(a);this.cka=g("\x3cspan\x3e").addClass("oj-component-icon oj-clickable-icon oj-dialog-close-icon").attr("alt","close icon").prependTo(this.$n);this._on(this.$n,{click:function(a){a.preventDefault();a.stopImmediatePropagation();this.close(a)},mousedown:function(a){g(a.currentTarget).addClass("oj-active")},mouseup:function(a){g(a.currentTarget).removeClass("oj-active")},mouseenter:function(a){g(a.currentTarget).addClass("oj-hover")},mouseleave:function(a){a=a.currentTarget;
  g(a).removeClass("oj-hover");g(a).removeClass("oj-active")},keydown:function(a){if(a.keyCode&&a.keyCode===g.ui.keyCode.SPACE||a.keyCode===g.ui.keyCode.ENTER)a.preventDefault(),a.stopImmediatePropagation(),this.close(a)}});this.Wca(this.$n)},Zra:function(){var a;this.Nr=g("\x3cdiv\x3e").addClass("oj-dialog-header oj-helper-clearfix").prependTo(this.vc);this._on(this.Nr,{mousedown:function(a){g(a.target).closest(".oj-dialog-close-icon")||this.vc.focus()}});"icon"===this.options.cancelBehavior&&this.rI(this.Nr);
  a=g("\x3cspan\x3e").uniqueId().addClass("oj-dialog-title").appendTo(this.Nr);this.Oz(a);this.vc.attr({"aria-labelledby":a.attr("id")})},Oz:function(a){this.options.title||a.html("\x26#160;");a.text(this.options.title)},pz:function(){function a(b){return{position:b.position,offset:b.offset}}var c=this,d=this.options;this.vc.draggable({QMa:!1,cancel:".oj-dialog-content, .oj-dialog-header-close",handle:".oj-dialog-header",containment:"document",start:function(d,f){g(this).addClass("oj-dialog-dragging");
  c.aE();c._trigger("dragStart",d,a(f))},drag:function(d,f){c.aE();c._trigger("drag",d,a(f))},stop:function(e,f){var h=f.offset.left-c.document.scrollLeft(),k=f.offset.top-c.document.scrollTop();d.position={my:"left top",at:"left"+(0<=h?"+":"")+h+" top"+(0<=k?"+":"")+k,of:window};g(this).removeClass("oj-dialog-dragging");c.aE();c._trigger("dragStop",e,a(f))}});this.vc.addClass("oj-draggable")},caa:function(){function a(b){return{originalPosition:b.cu,originalSize:b.Un,position:b.position,size:b.size}}
  var c=this;this.vc.css("position");this.Lq=this.vc.ojResizable.bind(this.vc);this.Lq({cancel:".oj-dialog-content",containment:"document",handles:"n,e,s,w,se,sw,ne,nw",start:function(d,e){c.G$=!0;g(this).addClass("oj-dialog-resizing");c._trigger("resizeStart",d,a(e))},resize:function(d,e){c._trigger("resize",d,a(e))},stop:function(d,e){c.G$=!1;g(this).removeClass("oj-dialog-resizing");c._trigger("resizeStop",d,a(e))}})},CV:function(){var b="rtl"===this.nd(),b=a.Gd.ql(this.options.position,b);this.vc.position(b);
  this.aE()},aE:function(){a.U.Qe().jO(this.vc,a.U.Fd.Yp)},_setOption:function(b,c,d){var e;e=this.vc;if("disabled"!==b)switch(this._super(b,c,d),b){case "dragAffordance":(b=e.hasClass("oj-draggable"))&&"none"===c&&(e.draggable("destroy"),this.vc.removeClass("oj-draggable"));b||"title-bar"!==c||this.pz();break;case "position":this.CV();break;case "resizeBehavior":e=!1;this.Lq&&(e=!0);e&&"resizable"!=c&&(this.Lq("instance")&&this.Lq("destroy"),this.Lq=null);e||"resizable"!==c||this.caa();break;case "title":this.Oz(this.Nr.find(".oj-dialog-title"));
  break;case "role":e.attr("role",c);break;case "modality":this.isOpen()&&(e={},e[a.U.sb.Kh]=this.vc,e[a.U.sb.Ak]=c,a.U.Qe().Zz(e));break;case "cancelBehavior":"none"===c||"escape"===c?this.AI():"icon"===c&&(this.wG?(this.AI(),this.rI(this.rt),this.UE=this.rt.find(".oj-dialog-title"),this.UE.length&&this.UE.insertAfter(this.$n)):(this.AI(),this.rI(this.Nr),this.Hja=this.Nr.find(".oj-dialog-title"),this.Hja.length&&this.Hja.insertAfter(this.$n)))}},Nra:function(a){this.Kaa="ojDialogPlaceHolderFooter-"+
  this.AS;this.FAa=g("\x3cdiv\x3e").hide().attr({id:this.Kaa});this.FAa.insertBefore(a)},Ora:function(a){this.Laa="ojDialogPlaceHolderHeader-"+this.AS;this.GAa=g("\x3cdiv\x3e").hide().attr({id:this.Laa});this.GAa.insertBefore(a)},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:null;a=a.subId;switch(a){case "oj-dialog-header":case "oj-dialog-body":case "oj-dialog-footer":case "oj-dialog-content":case "oj-dialog-header-close-wrapper":case "oj-resizable-n":case "oj-resizable-e":case "oj-resizable-s":case "oj-resizable-w":case "oj-resizable-se":case "oj-resizable-sw":case "oj-resizable-ne":case "oj-resizable-nw":a=
  "."+a;if(!this.widget().find(a))break;return this.widget().find(a)[0];case "oj-dialog-close-icon":case "oj-dialog-close":if(!this.widget().find(".oj-dialog-close-icon"))break;return this.widget().find(".oj-dialog-close-icon")[0]}return null},getSubIdByNode:function(a){if(null!=a){a=g(a);if(a.hasClass("oj-dialog-header"))return{subId:"oj-dialog-header"};if(a.hasClass("oj-dialog-footer"))return{subId:"oj-dialog-footer"};if(a.hasClass("oj-dialog-content"))return{subId:"oj-dialog-content"};if(a.hasClass("oj-dialog-header-close-wrapper"))return{subId:"oj-dialog-header-close-wrapper"};
  if(a.hasClass("oj-dialog-close-icon"))return{subId:"oj-dialog-close"};if(a.hasClass("oj-resizable-n"))return{subId:"oj-resizable-n"};if(a.hasClass("oj-resizable-e"))return{subId:"oj-resizable-e"};if(a.hasClass("oj-resizable-s"))return{subId:"oj-resizable-s"};if(a.hasClass("oj-resizable-w"))return{subId:"oj-resizable-w"};if(a.hasClass("oj-resizable-se"))return{subId:"oj-resizable-se"};if(a.hasClass("oj-resizable-sw"))return{subId:"oj-resizable-sw"};if(a.hasClass("oj-resizable-ne"))return{subId:"oj-resizable-ne"};
  if(a.hasClass("oj-resizable-nw"))return{subId:"oj-resizable-nw"}}return null},rw:function(){this.element.remove()},Ty:function(){if(!this.wn){var b=this.wn={};b[a.U.Fd.Hx]=g.proxy(this.iv,this);b[a.U.Fd.Ix]=g.proxy(this.rw,this);b[a.U.Fd.Yp]=g.proxy(this.aE,this)}return this.wn},iv:function(){this.vD=!0;this.close();delete this.vD}})})();a.Components.Wa("ojDialog","baseComponent",{properties:{cancelBehavior:{type:"string"},dragAffordance:{type:"string"},initialVisibility:{type:"string"},modality:{type:"string"},
  position:{type:"Object"},resizeBehavior:{type:"string"},role:{type:"string"},title:{type:"string"},widget:{}},methods:{close:{},destroy:{},isOpen:{},open:{},refresh:{}},extension:{_hasWrapper:!0,_innerElement:"div",_widgetName:"ojDialog"}});a.Components.register("oj-dialog",a.Components.getMetadata("ojDialog"))});