$.widget("ui.iframes-property",$.ui.SceneResourceProperty,{options:{category:"iframe",sizeOrScale:"size"},_createSourceProperty:function(){this._super();var i=this,e=this.$sourceProperty;e.form({columns:[{label:i18n("iframe_resource_link"),widget:"<input class = 'ui-widget-content ui-corner-all link' name='webLink' />"},{label:i18n("radius"),widget:"<input class = 'resource-dialog-input ui-widget-content ui-corner-all radius' name='radius'/>"},{label:i18n("stroke"),widget:"<input class = 'resource-dialog-input ui-widget-content ui-corner-all stroke' name='stroke'/>"},{label:!1,widget:"<input class = 'resource-dialog-color ui-widget-content ui-corner-all color' name='color'/>"}]});e.find(".link").keyup(function(){i.onchange("webLink",{webLink:i.webLink()})});e.find(".radius").spinner({step:1,min:0,spin:function(){var e=i.radius();void 0!==e&&i.onchange("radius",{radius:e})},stop:function(){$(this).spinner("option","spin").call(this)}});e.find(".stroke").spinner({step:1,min:0,spin:function(){var e=i.border();e&&i.onchange("border",{border:e})},stop:function(){$(this).spinner("option","spin").call(this)}});e.find(".color").minicolors({textfield:!0,theme:"default",change:function(e){var r=i.border();r&&i.onchange("border",{border:r})}})},value:function(i){if(i){this._super(i);this.webLink(i.wenLink);this.radius(i.radius);this.border(i.border)}},webLink:function(i){var e=this.element.find(".link").removeClass("ui-state-error"),r=/^[a-zA-z]+:\/\/[^\s]*/;if(void 0===i){i=e.val();if(""===i||r.test(i))return i;e.addClass("ui-state-error")}else e.val()!==i&&e.val(i)},radius:function(i){var e=this.element.find(".radius").removeClass("ui-state-error");if(void 0===i)return $.utils.validInput(e,"isNumber");e.val()!==i&&e.val(i);$.utils.validInput(e,"isNumber")},border:function(i){var e=this.element.find(".stroke"),r=this.element.find(".color");if(void 0===i){i={stroke:$.utils.validInput(e,"isNumber"),color:r.minicolors("value")||"#000000"};return void 0!==i.stroke&&void 0!==i.color&&i}e.val()!==i.stroke&&e.val(i.stroke);r.minicolors("value")!==i.color&&r.minicolors("value",i.color)}});