diff --git a/dev_db/mariadb.sql b/dev_db/mariadb.sql index 85be39b54..bbe12d6c9 100644 --- a/dev_db/mariadb.sql +++ b/dev_db/mariadb.sql @@ -343,7 +343,7 @@ CREATE TABLE `article` ( `init_status` int(8) NOT NULL, `lager_file_file` varchar(255) DEFAULT NULL, `lager_file_preview` varchar(255) DEFAULT NULL, - `preis` float DEFAULT NULL, + `preis` float DEFAULT 0, `upload_article` int(1) DEFAULT 0, `upload_article_status` int(4) DEFAULT NULL, `upload_center` int(1) DEFAULT 0, diff --git a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/app/app.tsx b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/app/app.tsx index 2ce0e6a3a..d386e0f56 100644 --- a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/app/app.tsx +++ b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/app/app.tsx @@ -11,7 +11,6 @@ export class App { private searchParams: any private setSearchParams: any - constructor(jwt: String) { let token = container.resolve(Token) token.currentToken = jwt @@ -19,7 +18,6 @@ export class App { } init(): void { - this.buildUi() } diff --git a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/main.tsx b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/main.tsx index 1808a3f32..3b1cd99f3 100644 --- a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/main.tsx +++ b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/main.tsx @@ -3,7 +3,7 @@ import "reflect-metadata"; import * as $ from "jquery"; import { App } from "./app/app"; -let jwt_token: String = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3NTk3NDE2OTYsImV4cCI6MTc1OTc0NTI5Niwicm9sZXMiOlsiUk9MRV9BRE1JTiIsIlJPTEVfU0hPUF9PUEVSQVRPUiIsIlJPTEVfVVNFUiIsIlJPTEVfVVNFUiIsIlJPTEVfUFNDX0NvbGxlY3RfQ29udGFjdF9FZGl0IiwiUk9MRV9QU0NfQ29sbGVjdF9Db250YWN0X0FkZCIsIlJPTEVfUFNDX0NvbGxlY3RfQ29udGFjdF9EZWxldGUiLCJST0xFX1BTQ19Db2xsZWN0X0NvbnRhY3RfTG9jayIsIlJPTEVfUFNDX1IyX1NlbmRjbG91ZF9TaG93Il0sInVpZCI6MX0.jFEl7EgvuFKOhG_MwRjQ1Tbx7Q48PSwfxuZUGxt0vGRSPj5ImoLJTQEsf0hQqaXIMG-kerbNXNfbvYniZT1xCBUSWADCg3Io_5QJrGhC8Su0FHOeT1iCICFV11_1q0r6PGA_KaBTVNDrMGvDx06UdrKwIosocRa1cHDmf_vUqmPy8OsqeKwSm0mqaiDuRIIsBQvxEiPz5l5R0QEHaKObUAfb1eXBSV7R3-QNX4EKDUjeoT8YiF04ZlLe2qOOkRW0gCmEEKyxgwIvbeucwipaiNVRUeroAQ7FlTaIW3GoXAsDs7yaXeDZVRnNz3Q4Rkfss0J_OL1BAgW0muQJvBDEfw"; +declare var jwt_token: String; let app = new App(jwt_token); app.init(); app.run(); diff --git a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/base/BaseComponent.tsx b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/base/BaseComponent.tsx index abaf126a6..9c205b7c9 100644 --- a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/base/BaseComponent.tsx +++ b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/base/BaseComponent.tsx @@ -1,20 +1,21 @@ import { Shop } from '../../model/shop' import ContactComponent from '../contact/ContactComponent' -import TopBarComponent from '../topbar/TopBarComponent' import PositionsComponent from '../positions/PositionsComponent' -import {useEffect, useState} from 'react' +import { useEffect, useState } from 'react' import Order from "../../model/order" import PaymentComponent from "../payment/PaymentComponent" import ShippingComponent from "../shipping/ShippingComponent" import ButtonComponent from "../button/ButtonComponent" -import {useParams} from "react-router-dom" -import {container} from "tsyringe-neo" +import { useParams } from "react-router-dom" +import { container } from "tsyringe-neo" import OrderState from "../../state/order" import OrderService from "../../services/order" import InfoFieldComponent from "../info/InfoFieldComponent" import React from 'react' -import OrderAliasComponent from '../order/OrderAliasComponent' import CalcComponent from '../calc/CalcComponent' +import DraftComponent from '../draft/DraftComponent' +import TypeSelectComponent from '../type/TypeSelectComponent' +import ShopSelectComponent from '../shop/ShopSelectComponent' const BaseComponent = (props) => { console.log('BaseComponent rendering') @@ -35,8 +36,7 @@ const BaseComponent = (props) => { let params = useParams() useEffect(() => { - console.log('BaseComponent mounted', params) - if(params.uuid) { + if (params.uuid) { loadOrder(params.uuid) } }, []) @@ -44,23 +44,38 @@ const BaseComponent = (props) => { return (
| Pos | -Titel | -Anzahl | -Netto | -MwSt | -Brutto | -Status | -+ + | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pos | +Titel | +Anzahl | +Netto | +MwSt | +Brutto | +Status | +
Keine Positionen vorhanden
+Keine Positionen vorhanden
+Fügen Sie Ihre erste Position hinzu
V||125U?(V.sortIndex=B,e(d,V),r(c)===null&&V===r(d)&&(w?(x(D),D=-1):w=!0,J(O,B-U))):(V.sortIndex=X,e(c,V),v||g||(v=!0,H(_))),V},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(V){var Q=m;return function(){var B=m;m=Q;try{return V.apply(this,arguments)}finally{m=B}}}})(Ah)),Ah}var Z2;function l$(){return Z2||(Z2=1,Ih.exports=s$()),Ih.exports}/** * @license React * react-dom.production.min.js * @@ -51,62 +51,38 @@ var Tle=Object.defineProperty,Ile=Object.defineProperties;var Ale=Object.getOwnP * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var s2;function P$(){if(s2)return kn;s2=1;var t=bh(),e=C$();function r(i){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+i,p=1;p u}return!1}function w(i,u,p,b,S,O,M){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=b,this.attributeNamespace=S,this.mustUseProperty=p,this.propertyName=i,this.type=u,this.sanitizeURL=O,this.removeEmptyString=M}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){y[i]=new w(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var u=i[0];y[u]=new w(u,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){y[i]=new w(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){y[i]=new w(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){y[i]=new w(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){y[i]=new w(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){y[i]=new w(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){y[i]=new w(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){y[i]=new w(i,5,!1,i.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function E(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var u=i.replace(x,E);y[u]=new w(u,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var u=i.replace(x,E);y[u]=new w(u,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var u=i.replace(x,E);y[u]=new w(u,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){y[i]=new w(i,1,!1,i.toLowerCase(),null,!1,!1)}),y.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){y[i]=new w(i,1,!1,i.toLowerCase(),null,!0,!0)});function k(i,u,p,b){var S=y.hasOwnProperty(u)?y[u]:null;(S!==null?S.type!==0:b||!(2 Q||S[M]!==O[Q]){var oe=` -`+S[M].replace(" at new "," at ");return i.displayName&&oe.includes(" ")&&(oe=oe.replace(" ",i.displayName)),oe}while(1<=M&&0<=Q);break}}}finally{te=!1,Error.prepareStackTrace=p}return(i=i?i.displayName||i.name:"")?V(i):""}function de(i){switch(i.tag){case 5:return V(i.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return i=ue(i.type,!1),i;case 11:return i=ue(i.type.render,!1),i;case 1:return i=ue(i.type,!0),i;default:return""}}function $(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case T:return"Fragment";case R:return"Portal";case z:return"Profiler";case F:return"StrictMode";case D:return"Suspense";case L:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case j:return(i.displayName||"Context")+".Consumer";case N:return(i._context.displayName||"Context")+".Provider";case q:var u=i.render;return i=i.displayName,i||(i=u.displayName||u.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case G:return u=i.displayName||null,u!==null?u:$(i.type)||"Memo";case W:u=i._payload,i=i._init;try{return $(i(u))}catch(p){}}return null}function Y(i){var u=i.type;switch(i.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=u.render,i=i.displayName||i.name||"",u.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(u);case 8:return u===F?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function ae(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Z(i){var u=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function ne(i){var u=Z(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,u),b=""+i[u];if(!i.hasOwnProperty(u)&&typeof p!="undefined"&&typeof p.get=="function"&&typeof p.set=="function"){var S=p.get,O=p.set;return Object.defineProperty(i,u,{configurable:!0,get:function(){return S.call(this)},set:function(M){b=""+M,O.call(this,M)}}),Object.defineProperty(i,u,{enumerable:p.enumerable}),{getValue:function(){return b},setValue:function(M){b=""+M},stopTracking:function(){i._valueTracker=null,delete i[u]}}}}function ce(i){i._valueTracker||(i._valueTracker=ne(i))}function Ce(i){if(!i)return!1;var u=i._valueTracker;if(!u)return!0;var p=u.getValue(),b="";return i&&(b=Z(i)?i.checked?"true":"false":i.value),i=b,i!==p?(u.setValue(i),!0):!1}function je(i){if(i=i||(typeof document!="undefined"?document:void 0),typeof i=="undefined")return null;try{return i.activeElement||i.body}catch(u){return i.body}}function Ne(i,u){var p=u.checked;return B({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p!=null?p:i._wrapperState.initialChecked})}function De(i,u){var p=u.defaultValue==null?"":u.defaultValue,b=u.checked!=null?u.checked:u.defaultChecked;p=ae(u.value!=null?u.value:p),i._wrapperState={initialChecked:b,initialValue:p,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function Me(i,u){u=u.checked,u!=null&&k(i,"checked",u,!1)}function Se(i,u){Me(i,u);var p=ae(u.value),b=u.type;if(p!=null)b==="number"?(p===0&&i.value===""||i.value!=p)&&(i.value=""+p):i.value!==""+p&&(i.value=""+p);else if(b==="submit"||b==="reset"){i.removeAttribute("value");return}u.hasOwnProperty("value")?Pe(i,u.type,p):u.hasOwnProperty("defaultValue")&&Pe(i,u.type,ae(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(i.defaultChecked=!!u.defaultChecked)}function $e(i,u,p){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var b=u.type;if(!(b!=="submit"&&b!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+i._wrapperState.initialValue,p||u===i.value||(i.value=u),i.defaultValue=u}p=i.name,p!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,p!==""&&(i.name=p)}function Pe(i,u,p){(u!=="number"||je(i.ownerDocument)!==i)&&(p==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+p&&(i.defaultValue=""+p))}var ze=Array.isArray;function Xe(i,u,p,b){if(i=i.options,u){u={};for(var S=0;S "+u.valueOf().toString()+"
=dc),T6=" ",I6=!1;function A6(i,u){switch(i){case"keyup":return Cse.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j6(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var vl=!1;function _se(i,u){switch(i){case"compositionend":return j6(u);case"keypress":return u.which!==32?null:(I6=!0,T6);case"textInput":return i=u.data,i===T6&&I6?null:i;default:return null}}function Ose(i,u){if(vl)return i==="compositionend"||!zx&&A6(i,u)?(i=E6(),wp=Nx=Xa=null,vl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1 <\/script>",i=i.removeChild(i.firstChild)):typeof b.is=="string"?i=M.createElement(p,{is:b.is}):(i=M.createElement(p),p==="select"&&(M=i,b.multiple?M.multiple=!0:b.size&&(M.size=b.size))):i=M.createElementNS(i,p),i[Yo]=u,i[bc]=b,lF(i,u,!1,!1),u.stateNode=i;e:{switch(M=Pt(p,b),p){case"dialog":lr("cancel",i),lr("close",i),S=b;break;case"iframe":case"object":case"embed":lr("load",i),S=b;break;case"video":case"audio":for(S=0;S =ic),pN=" ",hN=!1;function gN(i,l){switch(i){case"keyup":return ose.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mN(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var pl=!1;function ise(i,l){switch(i){case"compositionend":return mN(l);case"keypress":return l.which!==32?null:(hN=!0,pN);case"textInput":return i=l.data,i===pN&&hN?null:i;default:return null}}function sse(i,l){if(pl)return i==="compositionend"||!Nx&&gN(i,l)?(i=sN(),gp=_x=Ya=null,pl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1 <\/script>",i=i.removeChild(i.firstChild)):typeof b.is=="string"?i=F.createElement(p,{is:b.is}):(i=F.createElement(p),p==="select"&&(F=i,b.multiple?F.multiple=!0:b.size&&(F.size=b.size))):i=F.createElementNS(i,p),i[Wo]=l,i[hc]=b,HD(i,l,!1,!1),l.stateNode=i;e:{switch(F=St(p,b),p){case"dialog":ar("cancel",i),ar("close",i),E=b;break;case"iframe":case"object":case"embed":ar("load",i),E=b;break;case"video":case"audio":for(E=0;Eft?(Yr=lt,lt=null):Yr=lt.sibling;var At=_e(pe,lt,ge[ft],Ae);if(At===null){lt===null&&(lt=Yr);break}i&<&&At.alternate===null&&u(pe,lt),se=O(At,se,ft),st===null?Je=At:st.sibling=At,st=At,lt=Yr}if(ft===ge.length)return p(pe,lt),pr&&Zi(pe,ft),Je;if(lt===null){for(;ft0||N===!1:e.util.schemaHasRules(N,e.RULES.all)){n+=" "+y+" = true; if ("+h+".length > "+j+") { ";var D=h+"["+j+"]";v.schema=N,v.schemaPath=c+"["+j+"]",v.errSchemaPath=d+"/"+j,v.errorPath=e.util.getPathExpr(e.errorPath,j,e.opts.jsonPointers,!0),v.dataPathArr[E]=j;var L=e.validate(v);v.baseId=C,e.util.varOccurences(L,k)<2?n+=" "+e.util.varReplace(L,k,D)+" ":n+=" var "+k+" = "+D+"; "+L+" ",n+=" } ",f&&(n+=" if ("+y+") { ",w+="}")}}if(typeof P=="object"&&(e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all))){v.schema=P,v.schemaPath=e.schemaPath+".additionalItems",v.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+y+" = true; if ("+h+".length > "+l.length+") { for (var "+x+" = "+l.length+"; "+x+" < "+h+".length; "+x+"++) { ",v.errorPath=e.util.getPathExpr(e.errorPath,x,e.opts.jsonPointers,!0);var D=h+"["+x+"]";v.dataPathArr[E]=x;var L=e.validate(v);v.baseId=C,e.util.varOccurences(L,k)<2?n+=" "+e.util.varReplace(L,k,D)+" ":n+=" var "+k+" = "+D+"; "+L+" ",f&&(n+=" if (!"+y+") break; "),n+=" } } ",f&&(n+=" if ("+y+") { ",w+="}")}}else if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){v.schema=l,v.schemaPath=c,v.errSchemaPath=d,n+=" for (var "+x+" = 0; "+x+" < "+h+".length; "+x+"++) { ",v.errorPath=e.util.getPathExpr(e.errorPath,x,e.opts.jsonPointers,!0);var D=h+"["+x+"]";v.dataPathArr[E]=x;var L=e.validate(v);v.baseId=C,e.util.varOccurences(L,k)<2?n+=" "+e.util.varReplace(L,k,D)+" ":n+=" var "+k+" = "+D+"; "+L+" ",f&&(n+=" if (!"+y+") break; "),n+=" }"}return f&&(n+=" "+w+" if ("+g+" == errors) {"),n}),f1}var p1,$j;function Lj(){return $j||($j=1,p1=function(e,r,o){var n=" ",a=e.level,s=e.dataLevel,l=e.schema[r],c=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,C,h="data"+(s||""),m=e.opts.$data&&l&&l.$data,g;m?(n+=" var schema"+a+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",g="schema"+a):g=l;var v=r=="maximum",w=v?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[w],x=e.opts.$data&&y&&y.$data,E=v?"<":">",k=v?">":"<",C=void 0;if(!(m||typeof l=="number"||l===void 0))throw new Error(r+" must be number");if(!(x||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(w+" must be number or boolean");if(x){var P=e.util.getData(y.$data,s,e.dataPathArr),R="exclusive"+a,T="exclType"+a,F="exclIsNumber"+a,z="op"+a,N="' + "+z+" + '";n+=" var schemaExcl"+a+" = "+P+"; ",P="schemaExcl"+a,n+=" var "+R+"; var "+T+" = typeof "+P+"; if ("+T+" != 'boolean' && "+T+" != 'undefined' && "+T+" != 'number') { ";var C=w,j=j||[];j.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(C||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: '"+w+" should be boolean' "),e.opts.verbose&&(n+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),n+=" } "):n+=" {} ";var q=n;n=j.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else if ( ",m&&(n+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),n+=" "+T+" == 'number' ? ( ("+R+" = "+g+" === undefined || "+P+" "+E+"= "+g+") ? "+h+" "+k+"= "+P+" : "+h+" "+k+" "+g+" ) : ( ("+R+" = "+P+" === true) ? "+h+" "+k+"= "+g+" : "+h+" "+k+" "+g+" ) || "+h+" !== "+h+") { var op"+a+" = "+R+" ? '"+E+"' : '"+E+"='; ",l===void 0&&(C=w,d=e.errSchemaPath+"/"+w,g=P,m=x)}else{var F=typeof y=="number",N=E;if(F&&m){var z="'"+N+"'";n+=" if ( ",m&&(n+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),n+=" ( "+g+" === undefined || "+y+" "+E+"= "+g+" ? "+h+" "+k+"= "+y+" : "+h+" "+k+" "+g+" ) || "+h+" !== "+h+") { "}else{F&&l===void 0?(R=!0,C=w,d=e.errSchemaPath+"/"+w,g=y,k+="="):(F&&(g=Math[v?"min":"max"](y,l)),y===(F?g:!0)?(R=!0,C=w,d=e.errSchemaPath+"/"+w,k+="="):(R=!1,N+="="));var z="'"+N+"'";n+=" if ( ",m&&(n+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),n+=" "+h+" "+k+" "+g+" || "+h+" !== "+h+") { "}}C=C||r;var j=j||[];j.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(C||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+z+", limit: "+g+", exclusive: "+R+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be "+N+" ",m?n+="' + "+g:n+=""+g+"'"),e.opts.verbose&&(n+=" , schema: ",m?n+="validate.schema"+c:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),n+=" } "):n+=" {} ";var q=n;return n=j.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",f&&(n+=" else { "),n}),p1}var h1,qj;function zj(){return qj||(qj=1,h1=function(e,r,o){var n=" ",a=e.level,s=e.dataLevel,l=e.schema[r],c=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,w,h="data"+(s||""),m=e.opts.$data&&l&&l.$data,g;if(m?(n+=" var schema"+a+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",g="schema"+a):g=l,!(m||typeof l=="number"))throw new Error(r+" must be number");var v=r=="maxItems"?">":"<";n+="if ( ",m&&(n+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),n+=" "+h+".length "+v+" "+g+") { ";var w=r,y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(w||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+g+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",r=="maxItems"?n+="more":n+="fewer",n+=" than ",m?n+="' + "+g+" + '":n+=""+l,n+=" items' "),e.opts.verbose&&(n+=" , schema: ",m?n+="validate.schema"+c:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),n+=" } "):n+=" {} ";var x=n;return n=y.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",f&&(n+=" else { "),n}),h1}var g1,Uj;function Bj(){return Uj||(Uj=1,g1=function(e,r,o){var n=" ",a=e.level,s=e.dataLevel,l=e.schema[r],c=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,w,h="data"+(s||""),m=e.opts.$data&&l&&l.$data,g;if(m?(n+=" var schema"+a+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",g="schema"+a):g=l,!(m||typeof l=="number"))throw new Error(r+" must be number");var v=r=="maxLength"?">":"<";n+="if ( ",m&&(n+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),e.opts.unicode===!1?n+=" "+h+".length ":n+=" ucs2length("+h+") ",n+=" "+v+" "+g+") { ";var w=r,y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(w||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+g+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be ",r=="maxLength"?n+="longer":n+="shorter",n+=" than ",m?n+="' + "+g+" + '":n+=""+l,n+=" characters' "),e.opts.verbose&&(n+=" , schema: ",m?n+="validate.schema"+c:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),n+=" } "):n+=" {} ";var x=n;return n=y.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",f&&(n+=" else { "),n}),g1}var m1,Vj;function Hj(){return Vj||(Vj=1,m1=function(e,r,o){var n=" ",a=e.level,s=e.dataLevel,l=e.schema[r],c=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,w,h="data"+(s||""),m=e.opts.$data&&l&&l.$data,g;if(m?(n+=" var schema"+a+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",g="schema"+a):g=l,!(m||typeof l=="number"))throw new Error(r+" must be number");var v=r=="maxProperties"?">":"<";n+="if ( ",m&&(n+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),n+=" Object.keys("+h+").length "+v+" "+g+") { ";var w=r,y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(w||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+g+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",r=="maxProperties"?n+="more":n+="fewer",n+=" than ",m?n+="' + "+g+" + '":n+=""+l,n+=" properties' "),e.opts.verbose&&(n+=" , schema: ",m?n+="validate.schema"+c:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),n+=" } "):n+=" {} ";var x=n;return n=y.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",f&&(n+=" else { "),n}),m1}var v1,Wj;function $ee(){return Wj||(Wj=1,v1=function(e,r,o){var n=" ",a=e.level,s=e.dataLevel,l=e.schema[r],c=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,h="data"+(s||""),m=e.opts.$data&&l&&l.$data,g;if(m?(n+=" var schema"+a+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",g="schema"+a):g=l,!(m||typeof l=="number"))throw new Error(r+" must be number");n+="var division"+a+";if (",m&&(n+=" "+g+" !== undefined && ( typeof "+g+" != 'number' || "),n+=" (division"+a+" = "+h+" / "+g+", ",e.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":n+=" division"+a+" !== parseInt(division"+a+") ",n+=" ) ",m&&(n+=" ) "),n+=" ) { ";var v=v||[];v.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+g+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be multiple of ",m?n+="' + "+g:n+=""+g+"'"),e.opts.verbose&&(n+=" , schema: ",m?n+="validate.schema"+c:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),n+=" } "):n+=" {} ";var w=n;return n=v.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",f&&(n+=" else { "),n}),v1}var y1,Gj;function Lee(){return Gj||(Gj=1,y1=function(e,r,o){var n=" ",a=e.level,s=e.dataLevel,l=e.schema[r],c=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,h="data"+(s||""),m="errs__"+a,g=e.util.copy(e);g.level++;var v="valid"+g.level;if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){g.schema=l,g.schemaPath=c,g.errSchemaPath=d,n+=" var "+m+" = errors; ";var w=e.compositeRule;e.compositeRule=g.compositeRule=!0,g.createErrors=!1;var y;g.opts.allErrors&&(y=g.opts.allErrors,g.opts.allErrors=!1),n+=" "+e.validate(g)+" ",g.createErrors=!0,y&&(g.opts.allErrors=y),e.compositeRule=g.compositeRule=w,n+=" if ("+v+") { ";var x=x||[];x.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),n+=" } "):n+=" {} ";var E=n;n=x.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+m+"; if (vErrors !== null) { if ("+m+") vErrors.length = "+m+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f&&(n+=" if (false) { ");return n}),y1}var b1,Kj;function qee(){return Kj||(Kj=1,b1=function(e,r,o){var n=" ",a=e.level,s=e.dataLevel,l=e.schema[r],c=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,h="data"+(s||""),m="valid"+a,g="errs__"+a,v=e.util.copy(e),w="";v.level++;var y="valid"+v.level,x=v.baseId,E="prevValid"+a,k="passingSchemas"+a;n+="var "+g+" = errors , "+E+" = false , "+m+" = false , "+k+" = null; ";var C=e.compositeRule;e.compositeRule=v.compositeRule=!0;var P=l;if(P)for(var R,T=-1,F=P.length-1;T