14 lines
98 KiB
JavaScript
14 lines
98 KiB
JavaScript
|
|
!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/content/modulebz/js/react/",n(n.s=13)}([function(e,t,n){e.exports=n(9)()},function(e,t,n){e.exports=n(6)},function(e,t,n){"use strict";e.exports=n(7)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var a=function(){return"undefined"!=typeof window?window:e},r=function(){var e=a();return e&&e.tinymce?e.tinymce:null}}).call(this,n(11))},function(e,t,n){"use strict";var a;window.Select=class extends React.Component{constructor(e){var t,n,a,r,s,i,l,o,c;if(super(e),c=null,null!=(t=this.prepareData(e.data))&&null!=e.id)for(a=0,r=t.length;a<r;a++)if(n=t[a],parseInt(n.id)===parseInt(e.id)){c=n;break}this.state={open:null!=e.open?e.open:e.open=!1,data:null!=t?t:[],selected:null!=c?c:null!=(s=t[0])?s:null,ajax:null!=(i=e.ajax)&&i,controller:null!=(l=e.controller)?l:"",placeholder:null!=(o=e.placeholder)?o:"",search:"",statuses:!0===e.statuses},this.input=null,this.inputSearch=null,this.roller=null,this.toggle=this.toggle.bind(this),this.prepareData=this.prepareData.bind(this),this.preventClose=this.preventClose.bind(this)}preventClose(e){return null!=e&&e.stopPropagation(),null!=e?e.preventDefault():void 0}prepareData(e){var t,n,a,r;if(n=[],Array.isArray(e)){if("string"==typeof e[0])for(t in e)r=e[t],n.push({id:parseInt(t),title:r})}else for(t in e)r=e[t],n.push({id:parseInt(t),title:r});if(0===n.length&&(n=e),!0===this.props.statuses)for(t in n){if("string"==typeof(r=n[t]).title)switch(parseInt(r.type)){case OrderStatusType.NEW:a=React.createElement("div",{class:"status st-new"},React.createElement("div",{class:"st-round"}),React.createElement("div",{class:"st-txt ch-black"},r.title));break;case OrderStatusType.WORK:a=React.createElement("div",{class:"status st-work"},React.createElement("div",{class:"st-round"}),React.createElement("div",{class:"st-txt ch-black"},r.title));break;case OrderStatusType.WAIT:a=React.createElement("div",{class:"status st-need-pay"},React.createElement("div",{class:"st-round"}),React.createElement("div",{class:"st-txt ch-black"},r.title));break;case OrderStatusType.PART:a=React.createElement("div",{class:"status st-half-pay"},React.createElement("div",{class:"st-round"}),React.createElement("div",{class:"st-txt ch-black"},r.title));break;case OrderStatusType.FINISH:a=React.createElement("div",{class:"status st-end"},React.createElement("div",{class:"st-round"}),React.createElement("div",{class:"st-txt ch-black"},r.title));break;case OrderStatusType.CANCEL:a=React.createElement("div",{class:"status st-new"},React.createElement("div",{class:"st-round"}),React.createElement("div",{class:"st-txt ch-black"},r.title))}else a=r.title;n[t].title=a}return n}getValue(){return null!=this.state.selected?this.state.selected.id:0}close(){return this.setState({open:!1})}open(){return this.setState({open:!0},this.afterOpen)}afterOpen(){return $(this.roller).perfectScrollbar("update")}toggle(){return this.state.open?this.close():this.open()}componentDidMount(){return $(this.roller).perfectScrollbar(),document.addEventListener("click",this.handleOuterClick.bind(this))}componentWillUnmount(){return document.removeEventListener("click",this.handleOuterClick.bind(this))}handleOuterClick(e){if(0===this.$wrap.ha
|
||
|
|
/** @license React v17.0.2
|
||
|
|
* react.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var a=n(8),r=60103,s=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,l=60110,o=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;r=d("react.element"),s=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),i=d("react.provider"),l=d("react.context"),o=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var h="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f={};function v(e,t,n){this.props=e,this.context=t,this.refs=f,this.updater=n||m}function E(){}function R(e,t,n){this.props=e,this.context=t,this.refs=f,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=v.prototype;var b=R.prototype=new E;b.constructor=R,a(b,v.prototype),b.isPureReactComponent=!0;var g={current:null},y=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var a,s={},i=null,l=null;if(null!=t)for(a in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)y.call(t,a)&&!_.hasOwnProperty(a)&&(s[a]=t[a]);var o=arguments.length-2;if(1===o)s.children=n;else if(1<o){for(var c=Array(o),u=0;u<o;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(a in o=e.defaultProps)void 0===s[a]&&(s[a]=o[a]);return{$$typeof:r,type:e,key:i,ref:l,props:s,_owner:g.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var N=/\/+/g;function w(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function k(e,t,n,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var o=!1;if(null===e)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case r:case s:o=!0}}if(o)return i=i(o=e),e=""===a?"."+w(o,0):a,Array.isArray(i)?(n="",null!=e&&(n=e.replace(N,"$&/")+"/"),k(i,t,n,"",(function(e){return e}))):null!=i&&(S(i)&&(i=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(N,"$&/")+"/")+e)),t.push(i)),1;if(o=0,a=""===a?".":a+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=a+w(l=e[c],c);o+=k(l,t,n,u,i)}else if("function"==typeof(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e)))for(e=u.call(e),c=0;!(l=e.next()).done;)o+=k(l=l.value,t,n,u=a+w(l,c++),i);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function T(e,t,n){if(null==e)return e;var a=[],r=0;return k(e,a,"","",(function(e){return t.call(n,e,r++)})),a}function O(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var x={current:null};function A(){var e=x.current;if(null===e)throw Error(p(321));return e}var I={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:a};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(
|
||
|
|
/*
|
||
|
|
object-assign
|
||
|
|
(c) Sindre Sorhus
|
||
|
|
@license MIT
|
||
|
|
*/var a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,o=i(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))r.call(n,u)&&(o[u]=n[u]);if(a){l=a(n);for(var d=0;d<l.length;d++)s.call(n,l[d])&&(o[l[d]]=n[l[d]])}}return o}},function(e,t,n){"use strict";var a=n(10);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,s,i){if(i!==a){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n;window.initReact=function(e,t={}){var a,r,s,i,l,o,c,u,d,h,p,m,f,v,E,R;for(r in null==t&&(t={}),R=(new Date).getTime(),s=function(e,n="data"){t=e.getAttribute("data-"+n);try{t=JSON.parse(t)}catch(e){e,t={}}return e.removeAttribute("data-"+n),t},(v=function(t,n){var a,r,s,i,l;for(l=[],r=0,s=(i=e[0].querySelectorAll(t)).length;r<s;r++)a=i[r],l.push(ReactDOM.render(n,a));return l})(".r_portfolio_list",React.createElement(PortfolioList,{data:t.portfolio_list})),v(".r_news_list",React.createElement(NewsAnnotationList,{data:t.news_annotation})),v(".r_service_list",React.createElement(ServiceList,{data:t.service_list})),v(".r_service_icons",React.createElement(ServiceIconsList,{data:t.service_icons})),v(".r_updates_list",React.createElement(UpdatesAnnotationList,{data:t.updates_annotation})),v(".r_announcement_list",React.createElement(AnnouncementAnnotationList,{data:t.announcement_annotation})),v(".r_turnkey_list",React.createElement(TurnkeyAnnotationList,{data:t.turnkey_annotation})),v(".r_money_dash.new",React.createElement(MoneyDash,{type:"new"})),t.money_data)null!=(a=t.money_data[r]).minus&&v('.r_money_minus[data-date="'+r+'"]',React.createElement(MoneyList,{type:"minus",data:a.minus})),null!=a.plus&&v('.r_money_plus[data-date="'+r+'"]',React.createElement(MoneyList,{type:"plus",data:a.plus})),null!=a.transfer&&v('.r_money_transfer[data-date="'+r+'"]',React.createElement(MoneyList,{type:"transfer",data:a.transfer}));for(l=0,u=(a=e[0].querySelectorAll(".r_table")).length;l<u;l++)i=a[l],ReactDOM.render(React.createElement(Table,{data:s(i)}),i);for(o=0,d=(a=e[0].querySelectorAll(".r_card")).length;o<d;o++)i=a[o],t=i.getAttribute("data-data"),void 0!==window[t]?(console.log(t,window[t]),t=JSON.parse(window[t])):t=s(i),ReactDOM.render(React.createElement(Card,{data:t}),i);for(p=0,h=(a=e[0].querySelectorAll("#form_auth")).length;p<h;p++)i=a[p],(m={})[Input.PLACEHOLDER]="Логин",m[Input.TYPE]=INPUT_TYPE.TEXT,(c={})[Form.INPUT_OPT]=m,c[Form.KEY_VALUE]="login",(m={})[Input.PLACEHOLDER]="Пароль",m[Input.TYPE]=INPUT_TYPE.PASSWORD,(f={})[Form.INPUT_OPT]=m,f[Form.KEY_VALUE]="pass",(m={})[Input.TYPE]=INPUT_TYPE.SUBMIT,m[Input.LABEL]="Авторизоваться",m[Input.CSS_CLASS]="blue",(E={})[Form.INPUT_OPT]=m,ReactDOM.render(React.createEle
|