File Manager
Viewing File: 178.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[178],{JpHp:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" width="42px" height="42px"><path d="M38.626 17.554h-2.81c-.354-1.755-1.055-3.157-1.756-4.566l1.756-1.755c1.4-1.4 1.4-3.51 0-4.912s-3.51-1.4-4.912 0l-1.756 1.76c-1.4-.7-2.81-1.4-4.565-1.752V3.51c0-2.11-1.402-3.51-3.51-3.51s-3.52 1.41-3.52 3.51v2.81c-1.754.355-3.156 1.056-4.565 1.756L11.233 6.32c-1.4-1.4-3.51-1.4-4.912 0s-1.4 3.512 0 4.913l1.76 1.755c-.7 1.402-1.4 2.81-1.753 4.566H3.51c-2.1 0-3.51 1.41-3.51 3.51s1.4 3.512 3.51 3.512h2.81c.355 1.755 1.056 3.156 1.756 4.565L6.32 30.9c-1.4 1.402-1.4 3.51 0 4.913s3.512 1.4 4.913 0l1.755-1.756c1.402.7 2.81 1.402 4.566 1.756v2.815c0 2.11 1.4 3.51 3.51 3.51s3.51-1.4 3.51-3.51v-2.81c1.757-.354 3.158-1.055 4.567-1.756l1.76 1.754c1.4 1.4 3.51 1.4 4.915 0s1.4-3.51 0-4.912l-1.756-1.756c.7-1.4 1.4-2.81 1.755-4.565h2.81c2.107 0 3.51-1.4 3.51-3.51.006-2.11-1.403-3.52-3.505-3.52zm-17.56 14.05c-5.968 0-10.534-4.565-10.534-10.532s4.566-10.54 10.533-10.54 10.532 4.566 10.532 10.533-4.558 10.54-10.532 10.54zm0-14.05c-2.11 0-3.512 1.4-3.512 3.51s1.4 3.512 3.51 3.512 3.51-1.402 3.51-3.51-1.4-3.512-3.51-3.512z"/></svg>'},PQvG:function(e,t,n){"use strict";var s=n("TxTq"),i=n("FBuY").TVXWindowEvents,o=n("JWMC").trackEvent,a=function(){TVLocalStorage.setItem(e+t,document.hidden);var e="tvdesktopnotifications.",t="tabs-hidden";i.on("desktop-notification-tab-visibility-request",(function(){"true"===TVLocalStorage.getItem(e+t)&&TVLocalStorage.setItem(e+t,document.hidden)}));function n(e){var t=e.split("\n");return t.length>1&&(e=t[0]),((e=e.trim()).length>30||t.length>1)&&(e=e.substring(0,30)+"..."),e}function a(){return window.Notification.permission}function c(e){var t=a();"granted"===t&&"function"==typeof e?e():"default"===t&&window.Notification.requestPermission((function(t){"granted"===t&&"function"==typeof e&&e()}))}return window.Notification?{show:function(l,d,r,u){s.ownPushStream()&&(o("Desktop Notifications","Notification Show Attempt"),"denied"!==a()&&c((function(){TVLocalStorage.setItem(e+t,document.hidden),i.emit("desktop-notification-tab-visibility-request"),setTimeout((function(){"false"!==TVLocalStorage.getItem(e+t)&&document.hidden?(!function(e,t,s,i){var o=new window.Notification(e,{body:n(t),icon:s||"/static/images/desktop-notification.png"});o.onclick=function(){window.focus(),"function"==typeof i&&i()},setTimeout(o.close.bind(o),5e3)}(l,d,r,u),o("Desktop Notifications","Notification Show Success")):o("Desktop Notifications","Notification Show Tab Visible")}),100)})))},askPermission:c}:{show:function(){},askPermission:function(){}}}();e.exports=a},QwKQ:function(e,t,n){"use strict";(function(s){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),o=n("29gu");n("b6p+")
;var a=n("txPx").getLogger("Ui.TvControlCheckbox"),c={labelWrapper:'{{#hasLabel}}<label>{{#labelLeft}}<span class="tv-control-checkbox__label {{#labelAddClass}}{{labelAddClass}}{{/labelAddClass}}">{{labelLeft}}</span>{{/labelLeft}}{{> inputWrapper }}{{#labelRight}}<span class="tv-control-checkbox__label {{#labelAddClass}}{{labelAddClass}}{{/labelAddClass}}">{{labelRight}}</span>{{/labelRight}}</label>{{/hasLabel}}{{^hasLabel}}{{> inputWrapper }}{{/hasLabel}}',inputWrapper:'<{{ tag }} class="{{ customClass }}{{#disabled}} i-disabled{{/disabled}}">{{^hasCheckbox}}{{> checkbox }}{{/hasCheckbox}}{{> box }}{{> ripple }}</{{ tag }}>',checkbox:'<input{{#id}} id="{{ id }}"{{/id}} class="{{> checkboxClass }}" type="checkbox"{{#name}} name="{{ name }}"{{/name}}{{#checked}} checked{{/checked}}{{#disabled}} disabled{{/disabled}}>',checkboxClass:"{{ customClass }}__input",box:'<span class="{{ customClass }}__box {{#boxAddClass}}{{boxAddClass}}{{/boxAddClass}}">'+n("aLUT")+"</span>",ripple:'<span class="{{ customClass }}__ripple js-ripple"></span>'},l=function(){function e(t){var n=t.customClass,s=void 0===n?"tv-control-checkbox":n,i=t.$checkbox,o=t.tag,c=t.id,l=t.name,d=t.checked,r=t.disabled,u=t.labelLeft,h=t.labelRight,b=t.labelAddClass,p=t.boxAddClass;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$el=null,void 0===o&&(o=u||h?"span":"label");var f=i instanceof $&&!!i.length;if(f){if(!i.is("input[type=checkbox]"))return void a.logError("`$checkbox` need to be input[type=checkbox]");if(i.hasClass("i-inited"))return;this._setInputId(i,c),this._setInputClass(i,s),this._setInputName(i,l),this._setInputChecked(i,d),this._setInputDisabled(i,r),d=!!i.prop("checked"),r=!!i.attr("disabled")}this.$el=this.render({$checkbox:i,hasCheckbox:f,customClass:s,tag:o,id:c,name:l,checked:d,disabled:r,labelLeft:u,labelRight:h,hasLabel:u||h,labelAddClass:b,boxAddClass:p}),this.$checkbox=f?i:this.$el.find("input[type=checkbox]")}return i(e,[{key:"_setInputId",value:function(e,t){void 0!==t&&e.attr("id",t)}},{key:"_setInputClass",value:function(e,t){var n=s.render(c.checkboxClass,{customClass:t});e.addClass(n)}},{key:"_setInputName",value:function(e,t){void 0!==t&&e.attr("name",t)}},{key:"_setInputChecked",value:function(e,t){void 0!==t&&e.prop("checked",!!t)}},{key:"_setInputDisabled",value:function(e,t){void 0!==t&&(t?e.setAttribute("disabled","disabled"):e.removeAttr("disabled"))}},{key:"render",value:function(e){var t=e.$checkbox,n=$(s.render(c.labelWrapper,e,c));e.hasCheckbox&&(n.insertBefore(t),n.find("."+e.customClass).andSelf().filter("."+e.customClass).eq(0).prepend(t.detach()),t.addClass("i-inited"));return n}},{key:"checked",set:function(e){this._setInputChecked(this.$checkbox,!!e)},get:function(){return!!this.$checkbox.prop("checked")}}]),e}();$.fn.tvControlCheckbox=(0,o.createTvBlockWithInstance)("tv-control-checkbox",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new l(TradingView.mergeObj(t,{$checkbox:e}))})),t.default=l,e.exports=t.default
}).call(this,n("nbsC"))},aLUT:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 9" width="11px" height="9px"><path fill="none" fill-rule="evenodd" stroke-width="2" d="M1 3.22l3.415 3.496L10 1"/></svg>'},"b6p+":function(e,t,n){},nec0:function(e,t,n){}}]);