$.widget("ui.texts-property",$.ui.SceneResourceProperty,{options:{category:"text",sizeOrScale:"size"},_createSourceProperty:function(){this._super();var e=this,t=this.$sourceProperty;t.append("<div class='set-speed-div'><textarea class = 'ui-widget-content input_text' placeHolder ="+i18n("please_input_text")+"></textarea><input type='checkbox' name='set-speed' id='set-speed' class='set-speed'/></div><label for='set-speed'>"+i18n("set_speed")+"</label><div id = 'speech-table'><label>"+i18n("words_pause")+": </label><div class='select-font Pause'></div><label>"+i18n("speech_speed")+": </label><div class='select-font Speed'></div></div></div><div class='split'></div><div class = 'font-properties'></div>");t.find(".input_text").keyup(function(){e.text({"zh-CN":$(this).val(),"en-US":""});var t=e.text();t&&e.onchange("text",{text:t})});t.find(".set-speed").customInput().click(function(){e.onchange("check",{check:$(this).customInput("checked")})});t.find(".Speed").select({options:["fast","quickly","general","slower","slow"],select:function(t,s){e.onchange("speed",{speed:t})}});t.find(".Pause").select({options:[{label:.2+i18n("second"),value:.2},{label:.4+i18n("second"),value:.4}],select:function(t,s){e.addPause(t);e.onchange("text",{text:e.text()})}});t.find(".font-properties").fontPane({onchange:function(t,s){e.onchange(t,s)}})},value:function(e){if(e){this._super(e);this.text(e.text||{});this.check(!!e.check);this.speed(e.speed||"general");this.font(e.font||{})}},text:function(e){var t=this.element.find("textarea").removeClass("ui-state-error");if(void 0===e)return t.data("text");t.val(e["zh-CN"]);t.data("text",e)},check:function(e){var t=this.element.find(".set-speed");if(void 0===e)return t.customInput("checked");this.element.find(".set-speed").customInput("checked",!!e);$("#speech-table")[e?"show":"hide"]()},speed:function(e){var t=this.element.find(".Speed");void 0===e?t.select("getValue"):t.select("setValue",e)},font:function(e){if(void 0===e)return this.element.find(".font-properties").fontPane("value");this.element.find(".font-properties").fontPane("value",e);return void 0},addPause:function(e){$.utils.addPauseTag(this.element.find("textarea"),e)}});