@livinglogic/livingapi 1.32.0 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@livinglogic/ul4")):"function"==typeof define&&define.amd?define(["exports","@livinglogic/ul4"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).la={},e.ul4)}(this,(function(e,t){"use strict";function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var o=_interopNamespace(t);function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var o,r=_getPrototypeOf(e);if(t){var n=_getPrototypeOf(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _get(e,t,o){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,o){var r=_superPropBase(e,t);if(r){var n=Object.getOwnPropertyDescriptor(r,t);return n.get?n.get.call(o):n.value}})(e,t,o||e)}function set(e,t,o,r){return(set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function set(e,t,o,r){var n,l=_superPropBase(e,t);if(l){if((n=Object.getOwnPropertyDescriptor(l,t)).set)return n.set.call(r,o),!0;if(!n.writable)return!1}if(n=Object.getOwnPropertyDescriptor(r,t)){if(!n.writable)return!1;n.value=o,Object.defineProperty(r,t,n)}else!function _defineProperty(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}(r,t,o);return!0})(e,t,o,r)}function _set(e,t,o,r,n){if(!set(e,t,o,r||e)&&n)throw new Error("failed to set property");return o}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==o)return;var r,n,l=[],a=!0,i=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(l.push(r.value),!t||l.length!==t);a=!0);}catch(e){i=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(i)throw n}}return l}(e,t)||_unsupportedIterableToArray(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_unsupportedIterableToArray(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function _createForOfIteratorHelper(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var r=0,F=function(){};return{s:F,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,l=!0,a=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return l=e.done,e},e:function(e){a=!0,n=e},f:function(){try{l||null==o.return||o.return()}finally{if(a)throw n}}}}function element(e){for(var t=document.createElement(e),r=arguments.length,n=new Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];for(var a=0,i=n;a<i.length;a++){var u=i[a];"string"==typeof u&&t.appendChild(document.createTextNode(u));var s=u instanceof Map,p=o._isobject(u);if(s||p){p&&(u=Object.entries(u));var c,_=_createForOfIteratorHelper(u);try{for(_.s();!(c=_.n()).done;){var h=_slicedToArray(c.value,2),y=h[0],d=h[1];null!==d&&t.setAttribute(y,d)}}catch(e){_.e(e)}finally{_.f()}}}return t}function _append_param_to_url(e,t,r){if(o._islist(r)||o._isset(r)){var n,l=_createForOfIteratorHelper(r);try{for(l.s();!(n=l.n()).done;){_append_param_to_url(e,t,n.value)}}catch(e){l.e(e)}finally{l.f()}}else"string"==typeof r?e.append(t,r):null!==r&&e.append(t,o._str(r))}function url_with_params(e){for(var t=new URLSearchParams,r=arguments.length,n=new Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];for(var a=0,i=n;a<i.length;a++){var u=i[a];if(o._islist(u)&&2==u.length)_append_param_to_url.apply(void 0,[t].concat(_toConsumableArray(u)));else if("[object Object]"!==Object.prototype.toString.call(u)||u instanceof o.Proto){if(null!==u&&"object"===_typeof(u)&&"object"===_typeof(u.__proto__)&&u.__proto__===Map.prototype){var s,p=_createForOfIteratorHelper(u);try{for(p.s();!(s=p.n()).done;){var c=_slicedToArray(s.value,2),_=c[0],h=c[1];_append_param_to_url(t,_,h)}}catch(e){p.e(e)}finally{p.f()}}}else for(var y in u)_append_param_to_url(t,y,u[y])}return(t=t.toString().replace("+","%20")).length>0&&(e+="?"+t),e}var r=function(e){_inherits(Base,e);var t=_createSuper(Base);function Base(e){var o;return _classCallCheck(this,Base),(o=t.call(this)).id=e,o}return _createClass(Base,[{key:"ul4onid",get:function get(){return this.id}},{key:"ul4ondump",value:function ul4ondump(e){for(var t=0;t<this._ul4onattrs.length;++t)e.dump(this._dumpUL4ONAttr(this._ul4onattrs[t]))}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return this[e]}},{key:"ul4onload",value:function ul4onload(e){for(var t=0,o=e.loadcontent();;++t){var r=o.next();if(r.done)break;t<this._ul4onattrs.length&&this._loadUL4ONAttr(this._ul4onattrs[t],r.value)}for(;t<this._ul4onattrs.length;++t)this._setDefaultUL4ONAttr(this._ul4onattrs[t])}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){this[e]=t}},{key:"_setDefaultUL4ONAttr",value:function _setDefaultUL4ONAttr(e){this[e]=null}},{key:o.symbols.getattr,value:function value(e){if(this._ul4attrs.has(e)){var value=this[e];if("function"==typeof value){var t=value.bind(this);return t._ul4_name=value._ul4_name||value.name,t._ul4_signature=value._ul4_signature,t._ul4_needsobject=value._ul4_needsobject,t._ul4_needscontext=value._ul4_needscontext,t}return value}if(e.startsWith("x_"))return this.hasOwnProperty(e)?this[e]:null;throw new o.AttributeError(this,e)}},{key:o.symbols.setattr,value:function value(e,t){if(!e.startsWith("x_"))throw new o.AttributeError(this,e);this[e]=t}},{key:o.symbols.repr,value:function value(){return"<"+this.constructor.name+">"}},{key:"toString",value:function toString(){return this[o.symbols.repr]()}}]),Base}(o.Proto),n=function(){function Handler(){_classCallCheck(this,Handler)}return _createClass(Handler,[{key:"save",value:function save(e){}},{key:"delete",value:function _delete(e){}}]),Handler}(),l=new(function(e){_inherits(GlobalsType,e);var t=_createSuper(GlobalsType);function GlobalsType(){return _classCallCheck(this,GlobalsType),t.apply(this,arguments)}return _createClass(GlobalsType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof a}}]),GlobalsType}(o.Type))("la","Globals","Global information"),a=function(e){_inherits(Globals,e);var t=_createSuper(Globals);function Globals(e){var o;return _classCallCheck(this,Globals),(o=t.call(this,e)).version=null,o.hostname=null,o.free=!1,o.platform=null,o.user=null,o.lang=null,o.datasources=null,o.app=null,o.record=null,o.mode=null,o.groups=null,o.maxdbactions=null,o.maxtemplateruntime=null,o.flashmessages=null,o.view_template_id=null,o.email_template_id=null,o.handler=new n,o._log_stack=[],o._current_geo=null,o._next_attachment_id=0,o}return _createClass(Globals,[{key:o.symbols.type,value:function value(){return l}},{key:"dist",value:function dist(e,t){var o=function sqsin(e){return(e=Math.sin(e))*e},r=function sqsos(e){return(e=Math.cos(e))*e},n=Math.PI/180,l=1/298.257223563,a=e.lat*n,i=e.long*n,u=t.lat*n,s=(a+u)/2,p=(a-u)/2,c=(i-t.long*n)/2,_=o(p)*r(c)+r(s)*o(c),h=r(p)*r(c)+o(s)*o(c),y=Math.atan(Math.sqrt(_/h)),d=2*y*6378.137;if(0===d)return d;var f=Math.sqrt(_*h)/y,v=(3*f+1)/(2*_);return d*(1+l*((3*f-1)/(2*h))*o(s)*r(p)-l*v*r(s)*o(p))}},{key:"scaled_url",value:function scaled_url(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"fill",n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"sm",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,i=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,s=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,p=arguments.length>10&&void 0!==arguments[10]?arguments[10]:null,c=!(arguments.length>11&&void 0!==arguments[11])||arguments[11],_=null;e instanceof Yo&&(e=e.archive_url,(_=encodeURIComponent(e.filename))!=e.filename&&(_=null));var h="https://"+this.hostname;return h+=c?"/imgproxycache/insecure":"/imgproxy/insecure","fit"!==r&&(h+="/rt:"+r),null!=t&&(h+="/w:"+t),null!=o&&(h+="/h:"+o),n&&(h+="/el:1"),null!=l&&(h+="/g:"+l),null!=a&&(h+="/q:"+a),null!==i&&i%360!=0&&(h+="/rot:"+rotatet),null!=u&&(h+="/bl:"+u),null!=s&&(h+="/sh:"+s),null!=p&&(h+="/f:"+p),null!=_&&(h+="/fn:"+_),h+="/plain/"+encodeURIComponent(e)}},{key:"qrcode_url",value:function qrcode_url(e,t){return"https://"+this.hostname+"/qr/generate?data="+encodeURIComponent(e)+"&size="+encodeURIComponent(t)}},{key:o.symbols.repr,value:function value(){return"<Globals version="+o._repr(this.version)+" mode="+o._repr(this.mode)+">"}},{key:"current_geo",value:function current_geo(){return this._current_geo}},{key:"set_current_geo",value:function set_current_geo(e){this._current_geo=new Ko(this,e.coords.latitude,e.coords.longitude)}},{key:"_in_form",value:function _in_form(){return null!==this.mode&&this.mode.startsWith("form/")}},{key:"msg_bool",value:function msg_bool(e){switch(e){case!0:return this.msg_bool_true();case!1:return this.msg_bool_false();default:return null}}},{key:"msg_bool_true",value:function msg_bool_true(e){switch(this.lang){case"de":return"Ja";default:return"Yes"}}},{key:"msg_bool_false",value:function msg_bool_false(e){switch(this.lang){case"de":return"Nein";default:return"No"}}},{key:"msg_no_fields",value:function msg_no_fields(){switch(this.lang){case"de":return"(Keine Felder gefunden)";default:return"(No fields found)"}}},{key:"msg_nothing_selected",value:function msg_nothing_selected(){switch(this.lang){case"de":return"(Nichts ausgewählt)";default:return"(Nothing selected)"}}},{key:"_make_log_message",value:function _make_log_message(e){return e.map((function(e){return"string"!=typeof e?o._repr(e):e})).join(" ")}},{key:"begin_logging",value:function begin_logging(e){this._log_stack.push({header:e,output:!1})}},{key:"end_logging",value:function end_logging(){this._log_stack&&(this._log_stack[this._log_stack.length-1].output&&console&&console.groupEnd&&console.groupEnd(),this._log_stack.pop())}},{key:"group_logging",value:function group_logging(e,t){this.begin_logging(e);try{t()}finally{this.end_logging()}}},{key:"_start_log_message",value:function _start_log_message(){var e,t=_createForOfIteratorHelper(this._log_stack);try{for(t.s();!(e=t.n()).done;){var o=e.value;o.output||(console&&console.group&&console.group(o.header),o.output=!0)}}catch(e){t.e(e)}finally{t.f()}}},{key:"log_debug",value:function log_debug(e){this._start_log_message(),console&&console.debug&&console.debug(this._make_log_message(e))}},{key:"log_info",value:function log_info(e){this._start_log_message(),console&&console.info&&console.info(this._make_log_message(e))}},{key:"log_warning",value:function log_warning(e){this._start_log_message(),console&&console.warn&&console.warn(this._make_log_message(e))}},{key:"log_error",value:function log_error(e){this._start_log_message(),console&&console.error&&console.error(this._make_log_message(e))}},{key:"my_apps_url",value:function my_apps_url(){return"https://"+this.hostname+"/apps.htm"}},{key:"my_tasks_url",value:function my_tasks_url(){return"https://"+this.hostname+"/xist4c/web/aufgaben_id_393_.htm"}},{key:"catalog_url",value:function catalog_url(){return"https://"+this.hostname+"/katalog/home.htm"}},{key:"chats_url",value:function chats_url(){return"https://"+this.hostname+"/chats.htm"}},{key:"profile_url",value:function profile_url(){return"https://"+this.hostname+"/profil/index.htm"}},{key:"account_url",value:function account_url(){return"https://"+this.hostname+"/account.htm"}},{key:"logout_url",value:function logout_url(){return"https://"+this.hostname+"/login.htm?logout=standardCug"}}]),Globals}(r);a.prototype._ul4onattrs=["version","platform","user","maxdbactions","maxtemplateruntime","lang","datasources","hostname","free","app","record","mode","view_template_id","email_template_id","view_id"],a.prototype._ul4attrs=new Set(["id","version","hostname","platform","free","mode","form","app","record","datasources","externaldatasources","groups","user","lang","templates","pparams","geo","dist","maxdbactions","maxtemplateruntime","flashmessages","scaled_url","qrcode_url","current_geo","log_debug","log_info","log_warning","log_error","my_apps_url","my_tasks_url","catalog_url","chats_url","profile_url","account_url","logout_url"]),o.expose(a.prototype.log_debug,["message","*"]),o.expose(a.prototype.log_info,["message","*"]),o.expose(a.prototype.log_warning,["message","*"]),o.expose(a.prototype.log_error,["message","*"]),o.expose(a.prototype.dist,["geo1","pk","geo2","pk"]),o.expose(a.prototype.current_geo,[]),o.expose(a.prototype.scaled_url,["image","p","width","p","height","p","type","k=","fill","enlarge","k=",!0,"gravity","k=","sm","quality","k=",null,"rotate","k=",null,"blur","k=",null,"sharpen","k=",null,"format","k=",null,"cache","k=",!0]);var i=new(function(e){_inherits(FlashMessageType,e);var t=_createSuper(FlashMessageType);function FlashMessageType(){return _classCallCheck(this,FlashMessageType),t.apply(this,arguments)}return _createClass(FlashMessageType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof u}}]),FlashMessageType}(o.Type))("la","FlashMessage","A flash message in a web page"),u=function(e){_inherits(FlashMessage,e);var t=_createSuper(FlashMessage);function FlashMessage(){return _classCallCheck(this,FlashMessage),t.apply(this,arguments)}return _createClass(FlashMessage,[{key:o.symbols.type,value:function value(){return i}},{key:o.symbols.repr,value:function value(){return"<FlashMessage type="+o._repr(this.type)+" title="+o._repr(this.title)+">"}}]),FlashMessage}(r);u.prototype._ul4onattrs=["timestamp","type","title","message"],u.prototype._ul4attrs=new Set(["timestamp","type","title","message"]);var s=new(function(e){_inherits(PermissionType,e);var t=_createSuper(PermissionType);function PermissionType(){return _classCallCheck(this,PermissionType),t.apply(this,arguments)}return _createClass(PermissionType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof p}}]),PermissionType}(o.Type))("la","Permission","Permission information"),p=function(e){_inherits(Permission,e);var t=_createSuper(Permission);function Permission(){return _classCallCheck(this,Permission),t.apply(this,arguments)}return _createClass(Permission,[{key:o.symbols.type,value:function value(){return s}},{key:o.symbols.repr,value:function value(){return"<Permission id="+o._repr(this.id)+" name="+o._repr(this.name)+">"}},{key:"edit",get:function get(){return"1"==this.permissions.charAt(0)}},{key:"config",get:function get(){return"1"==this.permissions.charAt(1)}},{key:"delete",get:function get(){return"1"==this.permissions.charAt(2)}},{key:"task_manage",get:function get(){return"1"==this.permissions.charAt(3)}},{key:"data_edit",get:function get(){return"1"==this.permissions.charAt(4)}},{key:"data_view",get:function get(){return"1"==this.permissions.charAt(5)}},{key:"task_view",get:function get(){return"1"==this.permissions.charAt(6)}},{key:"frontend",get:function get(){return"1"==this.permissions.charAt(7)}},{key:"data_connect_external",get:function get(){return"1"==this.permissions.charAt(8)}},{key:"perform_evaluation",get:function get(){return"1"==this.permissions.charAt(9)}},{key:"to_catalog",get:function get(){return"1"==this.permissions.charAt(10)}},{key:"data_import_export",get:function get(){return"1"==this.permissions.charAt(11)}},{key:"mydata_view",get:function get(){return"1"==this.permissions.charAt(12)}},{key:"mydata_edit",get:function get(){return"1"==this.permissions.charAt(13)}},{key:"user_admin",get:function get(){return"1"==this.permissions.charAt(14)}}]),Permission}(r);p.prototype._ul4onattrs=["permissions"],p.prototype._ul4attrs=new Set(["permissions","edit","config","delete","task_manage","data_edit","data_view","task_view","frontend","data_connect_external","perform_evaluation","to_catalog","data_import_export","mydata_view","mydata_edit","user_admin"]);var c=function(e){_inherits(WithAttachments,e);var t=_createSuper(WithAttachments);function WithAttachments(){return _classCallCheck(this,WithAttachments),t.apply(this,arguments)}return _createClass(WithAttachments,[{key:"_add_attachment",value:function _add_attachment(e,t,o,r,n){null===this.attachments&&(this.attachments=new Map);var l=new e(null,this,t,o,r,n);return this.attachments["attachment_".concat(this.globals._next_attachment_id+=1)]=l,l}},{key:"add_note_attachment",value:function add_note_attachment(e,t,o,r){return this._add_attachment(er,e,t,o,r)}},{key:"add_url_attachment",value:function add_url_attachment(e,t,o,r){return this._add_attachment(or,e,t,o,r)}},{key:"add_json_attachment",value:function add_json_attachment(e,t,o,r){return this._add_attachment(ar,e,t,o,r)}},{key:"add_file_attachment",value:function add_file_attachment(e,t,o,r){return this._add_attachment(fileAttachment,e,t,o,r)}}]),WithAttachments}(r),_=function(e){_inherits(AppType,e);var t=_createSuper(AppType);function AppType(){return _classCallCheck(this,AppType),t.apply(this,arguments)}return _createClass(AppType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof y}}]),AppType}(o.Type),h=new _("la","App","A LivingApps application"),y=function(e){_inherits(App,e);var t=_createSuper(App);function App(){return _classCallCheck(this,App),t.apply(this,arguments)}return _createClass(App,[{key:o.symbols.type,value:function value(){return h}},{key:o.symbols.repr,value:function value(){return"<App id="+o._repr(this.id)+" name="+o._repr(this.name)+">"}},{key:"group",get:function get(){return this.appgroup}},{key:"insert",value:function insert(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this[o.symbols.call](e);return this.globals.handler.save(this),t}},{key:"template_url",value:function template_url(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0,r="https://"+this.globals.hostname+"/gateway/apps/"+this.id;return null!==t&&(r+="/"+t.id),url_with_params(r,["template",e],o)}},{key:"new_embedded_url",value:function new_embedded_url(e){return url_with_params("https://"+this.globals.hostname+"/dateneingabe/"+this.id+"/new",e)}},{key:"new_standalone_url",value:function new_standalone_url(e){return url_with_params("https://"+this.globals.hostname+"/gateway/apps/"+this.id+"/new",e)}},{key:"home_url",value:function home_url(){return"https://"+this.globals.hostname+"/apps/"+this.id+".htm"}},{key:"datamanagement_url",value:function datamanagement_url(){return"https://"+this.globals.hostname+"/_id_36_.htm?uuid="+this.id+"&dId="+this.id+"&resetInfo=true&templateIdentifier=created_"+this.id}},{key:"import_url",value:function import_url(){return"https://"+this.globals.hostname+"/import-export/"+this.id+".htm"}},{key:"tasks_url",value:function tasks_url(){return"https://"+this.globals.hostname+"/_id_1073_.htm?uuid="+this.id+"&dId="+this.id+"&p_tpl_uuid="+this.id+"&resetInfo=true&templateIdentifier=created_task_"+this.id}},{key:"datamanagement_config_url",value:function datamanagement_config_url(){return"https://"+this.globals.hostname+"/datenmanagement-konfigurieren/"+this.id+".htm"}},{key:"permissions_url",value:function permissions_url(){return"https://"+this.globals.hostname+"/_id_833_.htm?uuid="+this.id+"&dId="+this.id+"&resetInfo=true"}},{key:"datamanageview_url",value:function datamanageview_url(e){return"https://"+this.globals.hostname+"/_id_36_.htm?uuid="+this.id+"&dId="+this.id+"&resetInfo=true&templateIdentifier=created_"+this.id+"_datamanage_master_"+e}},{key:"layout_controls",get:function get(){return null===this.active_view?new Map:this.active_view.layout_controls}},{key:o.symbols.call,value:function value(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new A(null,this);if(o._ismap(e)){var r,n=_createForOfIteratorHelper(e.keys());try{for(n.s();!(r=n.n()).done;){var l=r.value;if(!t.fields.has(l))throw new o.ArgumentError(o._repr(this)+"() get an unexpected keyword argument "+o._repr(l))}}catch(e){n.e(e)}finally{n.f()}t._make_fields(!0,e,null,null)}else{if(!o._isobject(e))throw new o.TypeError("values must be an object or a Map");for(var a in e)if(!t.fields.has(a))throw new o.ArgumentError(o._repr(this)+"() get an unexpected keyword argument "+o._repr(a));t._make_fields(!0,new Map(o._list(o.dicttype.items(e))),null,null)}return t}},{key:o.symbols.getattr,value:function value(e){if(e.startsWith("c_")){if(!this.controls.has(e.substr(2)))throw new o.AttributeError(this,e);return this.controls.get(e.substr(2))}if(e.startsWith("lc_")){if(null===this.layout_controls||!this.layout_controls.has(e.substr(3)))throw new o.AttributeError(this,e);return this.layout_controls.get(e.substr(3))}if(e.startsWith("p_")){var t=e.substr(2);if(null!==this.params&&this.params.has(t))return this.params.get(t);if(null!==this.appgroup&&null!==this.appgroup.params&&this.appgroup.params.has(t))return this.appgroup.params.get(t);throw new o.AttributeError(this,e)}if(e.startsWith("pv_")){var r=e.substr(3);if(null!==this.params&&this.params.has(r))return this.params.get(r).value;if(null!==this.appgroup&&null!==this.appgroup.params&&this.appgroup.params.has(r))return this.appgroup.params.get(r).value;throw new o.AttributeError(this,e)}return _get(_getPrototypeOf(App.prototype),o.symbols.getattr,this).call(this,e)}},{key:"active_view",get:function get(){return this._active_view}},{key:"active_view",set:function set(e){if(null===e);else if("string"==typeof e){if(null===this.views||!this.views.has(e))throw new o.ValueError("View "+o._repr(e)+" not found!");e=this.views.get(e)}else{if(!(e instanceof k))throw new o.TypeError(o._repr(e)+" is not a view!");if(e.app!==this)throw new o.ValueError("View "+o._repr(e)+" belongs to the wrong app!")}this._active_view=e}},{key:"layout_controls",get:function get(){return null===this.active_views?new Map:this.active_view.layout_controls}},{key:"permissions",get:function get(){if("string"==typeof this._permissions){var e=this._permissions;this._permissions=new p,this._permissions.permissions=e}return this._permissions}}]),App}(c);y.prototype._ul4onattrs=["globals","internal_id","name","description","lang","appgroup","typename_grammatical_gender","typename_nominative_singular","typename_genitive_singular","typename_dative_singular","typename_accusative_singular","typename_nominative_plural","typename_genitive_plural","typename_dative_plural","typename_accusative_plural","startlink","image","createdby","controls","records","record_start","record_count","record_total","installation","categories","params","views","datamanagement_identifier","basetable","primarykey","insertprocedure","updateprocedure","deleteprocedure","templates","createdat","updatedat","updatedby","superid","favorite","_active_view","datasource","main","ai_generated","viewtemplates","filter_default","sort_default","filter_owndata","_permissions","data_actions","attachments"],y.prototype._ul4attrs=new Set(["id","globals","name","description","lang","appgroup","group","main","ai_generated","typename_grammatical_gender","typename_nominative_singular","typename_genitive_singular","typename_dative_singular","typename_accusative_singular","typename_nominative_plural","typename_genitive_plural","typename_dative_plural","typename_accusative_plural","startlink","image","createdat","createdby","updatedat","updatedby","controls","layout_controls","records","record_start","record_count","record_total","installation","categories","params","views","menus","panels","datasource","datamanagement_identifier","insert","favorite","_active_view","filter_default","sort_default","filter_owndata","permissions","data_actions","attachments","template_url","new_embedded_url","new_standalone_url","home_url","datamanagement_url","import_url","tasks_url","datamanagement_config_url","permissions_url","datamanageview_url"]),o.expose(y.prototype[o.symbols.call],["values","**"],{needsobject:!0}),o.expose(y.prototype.insert,["values","**"],{needsobject:!0}),o.expose(y.prototype.template_url,["identifier","p","record","p=",null,"params","**"]),o.expose(y.prototype.new_embedded_url,["params","**"]),o.expose(y.prototype.new_standalone_url,["params","**"]);var d=new _("la","AppGroup","A group of LivingApps"),f=function(e){_inherits(AppGroup,e);var t=_createSuper(AppGroup);function AppGroup(){return _classCallCheck(this,AppGroup),t.apply(this,arguments)}return _createClass(AppGroup,[{key:o.symbols.type,value:function value(){return d}},{key:o.symbols.repr,value:function value(){return"<AppGroup id="+o._repr(this.id)+" name="+o._repr(this.name)+">"}}]),AppGroup}(c);f.prototype._ul4onattrs=["globals","name","description","image","apps","main_app","params","attachments"],f.prototype._ul4attrs=new Set(["globals","id","name","description","image","apps","main_app","params","attachments"]);var v=new(function(e){_inherits(ViewType,e);var t=_createSuper(ViewType);function ViewType(){return _classCallCheck(this,ViewType),t.apply(this,arguments)}return _createClass(ViewType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof k}}]),ViewType}(o.Type))("la","View","An input form for a LivingViews application"),k=function(e){_inherits(View,e);var t=_createSuper(View);function View(){return _classCallCheck(this,View),t.apply(this,arguments)}return _createClass(View,[{key:"globals",get:function get(){return this.app.globals}},{key:o.symbols.type,value:function value(){return v}},{key:o.symbols.repr,value:function value(){return"<View id="+o._repr(this.id)+" name="+o._repr(this.name)+">"}}]),View}(r);k.prototype._ul4onattrs=["name","combined_type","app","order","width","height","start","end","controls","layout_controls","lang","login_required","result_page","use_geo"],k.prototype._ul4attrs=new Set(["id","name","combined_type","app","order","width","height","start","end","controls","layout_controls","lang","login_required","result_page","use_geo"]);var m=new(function(e){_inherits(DataSourceType,e);var t=_createSuper(DataSourceType);function DataSourceType(){return _classCallCheck(this,DataSourceType),t.apply(this,arguments)}return _createClass(DataSourceType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof C}}]),DataSourceType}(o.Type))("la","DataSource","The data resulting from a data source configuration"),C=function(e){_inherits(DataSource,e);var t=_createSuper(DataSource);function DataSource(){return _classCallCheck(this,DataSource),t.apply(this,arguments)}return _createClass(DataSource,[{key:o.symbols.type,value:function value(){return m}},{key:o.symbols.repr,value:function value(){return"<DataSource id="+o._repr(this.id)+" identifier="+o._repr(this.identifier)+">"}}]),DataSource}(r);C.prototype._ul4onattrs=["identifier","app","apps","filter","sort"],C.prototype._ul4attrs=new Set(["id","identifier","app","apps","filter","sort"]),new(function(e){_inherits(DataSourceChildrenType,e);var t=_createSuper(DataSourceChildrenType);function DataSourceChildrenType(){return _classCallCheck(this,DataSourceChildrenType),t.apply(this,arguments)}return _createClass(DataSourceChildrenType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof g}}]),DataSourceChildrenType}(o.Type))("la","DataSourceChildren","A master/detail specification in a data source");var g=function(e){_inherits(DataSourceChildren,e);var t=_createSuper(DataSourceChildren);function DataSourceChildren(){return _classCallCheck(this,DataSourceChildren),t.apply(this,arguments)}return _createClass(DataSourceChildren,[{key:o.symbols.type,value:function value(){return datasourcetypechildren}},{key:o.symbols.repr,value:function value(){return"<DataSourceChildren id="+o._repr(this.id)+" identifier="+o._repr(this.identifier)+">"}}]),DataSourceChildren}(r);g.prototype._ul4onattrs=["datasource","identifier","control","filter","sort"],g.prototype._ul4attrs=new Set(["id","identifier","datasource","control","filter","sort"]);var b=new(function(e){_inherits(RecordChildrenType,e);var t=_createSuper(RecordChildrenType);function RecordChildrenType(){return _classCallCheck(this,RecordChildrenType),t.apply(this,arguments)}return _createClass(RecordChildrenType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof T}}]),RecordChildrenType}(o.Type))("la","RecordChildren","The child records of a master record"),T=function(e){_inherits(RecordChildren,e);var t=_createSuper(RecordChildren);function RecordChildren(){return _classCallCheck(this,RecordChildren),t.apply(this,arguments)}return _createClass(RecordChildren,[{key:o.symbols.type,value:function value(){return b}},{key:o.symbols.repr,value:function value(){return"<RecordChildren id="+o._repr(this.id)+">"}}]),RecordChildren}(r);T.prototype._ul4onattrs=["record","datasourcechildren","records","record_start","record_count","record_total"],T.prototype._ul4attrs=new Set(["id","record","datasourcechildren","records","record_start","record_count","record_total"]);var L=new(function(e){_inherits(RecordType,e);var t=_createSuper(RecordType);function RecordType(){return _classCallCheck(this,RecordType),t.apply(this,arguments)}return _createClass(RecordType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof A}}]),RecordType}(o.Type))("la","Record","A record of a LivingApp application"),A=function(e){_inherits(Record,e);var t=_createSuper(Record);function Record(e,o){var r;return _classCallCheck(this,Record),(r=t.call(this,e)).app=o,r.createdat=null,r.createdby=null,r.updatedat=null,r.updatedby=null,r.updatecount=0,r._sparsevalues=new Map,r._values=null,r._fields=null,r.details=new Map,r._children=null,r.attachments=null,r.errors=[],r._sparsefielderrors=null,r._sparsefieldlookupdata=null,r._is_deleted=!1,r._is_new=!0,r}return _createClass(Record,[{key:o.symbols.type,value:function value(){return L}},{key:"globals",get:function get(){return this.app.globals}},{key:"as_text",value:function as_text(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(0==e)return"...";var o,r=[],n=_createForOfIteratorHelper(t||this.app.controls);try{for(n.s();!(o=n.n()).done;){var l=_slicedToArray(o.value,2),a=l[0],i=l[1];if(null!==t||i.priority){var u=this.fields.get(a).value_as_text(e-1);null!==u&&r.push([i.label,u])}}}catch(e){n.e(e)}finally{n.f()}if(0===r.length)return this.globals.msg_no_fields();if(1===r.length)return r[0][1];for(var s=[],p=0,c=r;p<c.length;p++){var _=_slicedToArray(c[p],2),h=_[0],y=_[1];s.push(h+": "+y)}return s.join(", ")}},{key:"_make_fields",value:function _make_fields(e,t,o,r){var n,l=new Map,a=_createForOfIteratorHelper(this.app.controls.values());try{for(a.s();!(n=a.n()).done;){var i=n.value,u=i.identifier,s=null;null!==t&&(e&&!t.has(u)?s=i.default:t.has(u)&&(s=t.get(u)));var p=new i.fieldtype(i,this,s);l.set(u,p),null!==o&&o.has(u)&&(p.errors=o.get(u)),null!==r&&r.has(u)&&(p.lookupdata=r.get(u))}}catch(e){a.e(e)}finally{a.f()}this._fields=l,this._sparsevalues=null,this._sparsefielderrors=null,this._sparselookupdata=null}},{key:"_in_form",value:function _in_form(){var e=this.app.globals;return e._in_form()&&this===e.record}},{key:o.symbols.repr,value:function value(){var e,t=["<Record id=",o._repr(this.id)],r=_createForOfIteratorHelper(this.fields.values());try{for(r.s();!(e=r.n()).done;){var n=e.value;n.control.priority&&!n.is_empty()&&(t.push(" v_"),t.push(n.control.identifier),t.push("="),t.push(o._repr(n.value)))}}catch(e){r.e(e)}finally{r.f()}return t.push(" state="),t.push(o._repr(this.state)),t.push(">"),t.join("")}},{key:"state",get:function get(){return this._is_deleted?"deleted":this._is_new?"new":this.is_dirty()?"dirty":"saved"}},{key:"values",get:function get(){if(null===this._values){this._values=new Map;var e,t=_createForOfIteratorHelper(this.fields.values());try{for(t.s();!(e=t.n()).done;){var o=e.value;this._values.set(o.control.identifier,o.value)}}catch(e){t.e(e)}finally{t.f()}}return this._values}},{key:"fields",get:function get(){return null===this._fields&&this._make_fields(!1,this._sparsevalues,this._sparsefielderrors,this._sparsefieldlookupdata),this._fields}},{key:"children",get:function get(){if(null===this._children){this._children=new Map;var e,t=_createForOfIteratorHelper(this.details.values());try{for(t.s();!(e=t.n()).done;){var o=e.value;this._children.set(o.datasourcechildren.identifier,o.records)}}catch(e){t.e(e)}finally{t.f()}}return this._children}},{key:"is_dirty",value:function is_dirty(){if(null===this.id)return!0;var e,t=_createForOfIteratorHelper(this.fields.values());try{for(t.s();!(e=t.n()).done;){if(e.value.is_dirty())return!0}}catch(e){t.e(e)}finally{t.f()}return!1}},{key:"has_errors",value:function has_errors(){if(0!==this.errors.length)return!0;var e,t=_createForOfIteratorHelper(this.fields.values());try{for(t.s();!(e=t.n()).done;){if(e.value.has_errors())return!0}}catch(e){t.e(e)}finally{t.f()}return!1}},{key:"delete",value:function _delete(){var e=this.app.globals.handler.delete(this);return this._is_deleted=!0,e}},{key:"save",value:function save(){this.app.globals.handler.save(this)}},{key:"update",value:function update(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o._ismap(e)){var t,r=_createForOfIteratorHelper(e.entries());try{for(r.s();!(t=r.n()).done;){var n=_slicedToArray(t.value,2),l=n[0],a=n[1];if(!this.fields.has(l))throw new o.ArgumentError("update() get an unexpected keyword argument "+o._repr(l));fields.get(l).value=a}}catch(e){r.e(e)}finally{r.f()}}else{if(!o._isobject(e))throw new o.TypeError("values must be an object or a Map");for(var i in e){if(!this.fields.has(i))throw new o.ArgumentError("update() get an unexpected keyword argument "+o._repr(i));record.fields.get(i).value=e[i]}}this.app.globals.handler.save(this)}},{key:"template_url",value:function template_url(e,t){return url_with_params("https://"+this.app.globals.hostname+"/gateway/apps/"+this.app.id+"/"+this.id,["template",e],t)}},{key:"edit_embedded_url",value:function edit_embedded_url(e){return url_with_params("https://"+this.app.globals.hostname+"/dateneingabe/"+this.app.id+"/"+this.id+"/edit",e)}},{key:"edit_standalone_url",value:function edit_standalone_url(e){return url_with_params("https://"+this.app.globals.hostname+"/gateway/apps/"+this.app.id+"/"+this.id+"/edit",e)}},{key:"edit_url",value:function edit_url(e){return"standalone"===this.app[o.symbols.getattr]("pv_la_default_form_variant")?this.edit_standalone_url(e):this.edit_embedded_url(e)}},{key:"display_embedded_url",value:function display_embedded_url(e){return url_with_params("https://"+this.app.globals.hostname+"/dateneingabe/"+this.app.id+"/"+this.id+"/display",e)}},{key:"display_standalone_url",value:function display_standalone_url(e){return url_with_params("https://"+this.app.globals.hostname+"/gateway/apps/"+this.app.id+"/"+this.id+"/display",e)}},{key:"display_url",value:function display_url(e){return"standalone"===this.app[o.symbols.getattr]("pv_la_default_form_variant")?this.display_standalone_url(e):this.display_embedded_url(e)}},{key:"search",value:function search(e){for(var t in e){var r=e[t];if(o._bool(r)&&!this.fields.get(t).search(r))return!1}return!0}},{key:"ul4onload",value:function ul4onload(e){_get(_getPrototypeOf(Record.prototype),"ul4onload",this).call(this,e),this._is_new=!1}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return"values"===e?this._sparsevalues:this[e]}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){"values"===e?(this._sparsevalues=t,this._values=null,this._fields=null):this[e]=t}},{key:o.symbols.getattr,value:function value(e){return e.startsWith("c_")?this.children.get(e.substr(2)):e.startsWith("d_")?this.details.get(e.substr(2)):e.startsWith("f_")?this.fields.get(e.substr(2)):e.startsWith("v_")?this.fields.get(e.substr(2)).value:_get(_getPrototypeOf(Record.prototype),o.symbols.getattr,this).call(this,e)}},{key:o.symbols.setattr,value:function value(e,t){e.startsWith("c_")?this.children[e.substr(2)]=t:e.startsWith("v_")?this.fields.get(e.substr(2)).value=t:_get(_getPrototypeOf(Record.prototype),o.symbols.setattr,this).call(this,e,t)}}]),Record}(c);A.prototype._ul4onattrs=["app","createdat","createdby","updatedat","updatedby","updatecount","_sparsevalues","attachments","details","errors","_sparsefielderrors","_sparsefieldlookupdata"],A.prototype._ul4attrs=new Set(["id","app","createdat","createdby","updatedat","updatedby","updatecount","values","fields","attachments","details","children","errors","template_url","edit_embedded_url","edit_standalone_url"]),o.expose(A.prototype.is_dirty,[]),o.expose(A.prototype.has_errors,[]),o.expose(A.prototype.delete,[]),o.expose(A.prototype.save,[]),o.expose(A.prototype.update,["values","**"],{needsobject:!0}),o.expose(A.prototype.template_url,["identifier","p","params","**"]),o.expose(A.prototype.edit_embedded_url,["params","**"]),o.expose(A.prototype.edit_standalone_url,["params","**"]);var w=function(e){_inherits(FieldType,e);var t=_createSuper(FieldType);function FieldType(){return _classCallCheck(this,FieldType),t.apply(this,arguments)}return _createClass(FieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof M}}]),FieldType}(o.Type),S=new w("la","Field","Holds the value of a field of a record (and related information)"),M=function(e){_inherits(Field,e);var t=_createSuper(Field);function Field(e,o,r){var n;return _classCallCheck(this,Field),(n=t.call(this,null)).control=e,n.record=o,n._label=null,n._description=null,n._lookupdata=null,n.errors=[],n._value=null,n._in_form()||(n.value=r),n._dirty=!1,n._enabled=!0,n._writable=!0,n._visible=!0,n._required=null,n._in_text=null,n._top=null,n._left=null,n}return _createClass(Field,[{key:o.symbols.type,value:function value(){return S}},{key:"value",get:function get(){return this._in_form()?this._get_dom_value():this._value}},{key:"value",set:function set(e){var t=this._value,r={value:e,errors:[]};this._validate(r),o._ne(t,r.value)&&(null!==this.record._values&&this.record._values.set(this.control.identifier,r.value),this._value=r.value,this._dirty=!0),this.errors=r.errors,this._in_form()&&this._set_dom_value(this._value)}},{key:"value_as_text",value:function value_as_text(){return null}},{key:"_validate",value:function _validate(e){}},{key:"_set_dom_label",value:function _set_dom_label(){this._in_form()&&(this._dom_label.textContent=this.label)}},{key:"mode",get:function get(){var e;return null!==(e=this._mode)&&void 0!==e?e:this.control.mode}},{key:"mode",set:function set(e){this._mode=e}},{key:"label",get:function get(){var e;return null!==(e=this._label)&&void 0!==e?e:this.control.label}},{key:"label",set:function set(e){this._label=e,this._set_dom_label()}},{key:"description",get:function get(){var e;return null!==(e=this._description)&&void 0!==e?e:this.control.description}},{key:"description",set:function set(e){this._description=e}},{key:"globals",get:function get(){return this.control.globals}},{key:"is_empty",value:function is_empty(){return null===this._value}},{key:"is_dirty",value:function is_dirty(){return this._dirty}},{key:"has_errors",value:function has_errors(){return 0!==this.errors.length}},{key:"add_error",value:function add_error(e){this.errors.push(e)}},{key:"set_error",value:function set_error(e){this.errors=null!==e?[e]:[]}},{key:"top",get:function get(){var e;return null!==(e=this._top)&&void 0!==e?e:this.control.top}},{key:"top",set:function set(e){this._top=e,this._in_form()&&(this._dom_root.style.top=this.top+"px")}},{key:"left",get:function get(){var e;return null!==(e=this._left)&&void 0!==e?e:this.control.left}},{key:"left",set:function set(e){this._left=e,this._in_form()&&(this._dom_root.style.left=this.left+"px")}},{key:"width",get:function get(){return this.control.width}},{key:"height",get:function get(){return this.control.width}},{key:"search",value:function search(e){return this.control.search(this.value,e)}},{key:"msg_field_required",value:function msg_field_required(e){switch(this.globals.lang){case"de":return'"'.concat(this.label,'" wird benötigt!');default:return'"'.concat(this.label,'" is required!')}}},{key:"msg_field_wrong_type",value:function msg_field_wrong_type(e){return'"'.concat(this.label,"\" doesn't support the type ").concat(o._type(e).name,"!")}},{key:"msg_bool_truerequired",value:function msg_bool_truerequired(e){return'"'.concat(this.label,'" only accepts "Yes"!')}},{key:"msg_string_tooshort",value:function msg_string_tooshort(e){return'"'.concat(this.label,'" is too short. You must use at least ').concat(this.control.minlength," characters!")}},{key:"msg_string_toolong",value:function msg_string_toolong(e){return'"'.concat(this.label,'" is too long. You may use at most ').concat(this.control.maxlength," characters!")}},{key:"msg_email_format",value:function msg_email_format(e){return'"'.concat(this.label,'" must be a valid email address!')}},{key:"msg_url_format",value:function msg_url_format(e){return'"'.concat(this.label,'" must be a valid URL!')}},{key:"msg_tel_format",value:function msg_tel_format(e){return'"'.concat(this.label,'" must be a valid phone number!')}},{key:"msg_date_format",value:function msg_date_format(e){return'"'.concat(this.label,"\" doesn't support this date format!")}},{key:"msg_number_format",value:function msg_number_format(e){return'"'.concat(this.label,"\" doesn't support this number format!")}},{key:"msg_lookup_wrongitem",value:function msg_lookup_wrongitem(e){return"The option ".concat(o._repr(e),' for "').concat(this.label,"\" doesn't belong to this lookup!")}},{key:"msg_lookup_unknownkey",value:function msg_lookup_unknownkey(e){return"The option ".concat(o._repr(e),' for "').concat(this.label,'" is unknown!')}},{key:"msg_applookup_wrongrecord",value:function msg_applookup_wrongrecord(e){return"The record ".concat(o._repr(e),' for "').concat(this.label,"\" doesn't belong to the correct app!")}},{key:"msg_applookup_unknownkey",value:function msg_applookup_unknownkey(e){return"The record ".concat(o._repr(e),' for "').concat(this.label,"\" can't be found!")}},{key:"_in_form",value:function _in_form(){return this.record._in_form()}},{key:"_sel_root",get:function get(){return"#livingapps-form ."+this.control._cssclass_root+".llft-id-"+this.control.identifier}},{key:"_sel_label",get:function get(){return this._sel_root+" label span"}},{key:"_sel_control",get:function get(){return this._sel_root+" "+this.control._cssclass_control}},{key:"_dom_root",get:function get(){return document.querySelector(this._sel_root)}},{key:"_dom_label",get:function get(){return document.querySelector(this._sel_label)}},{key:"_dom_control",get:function get(){return document.querySelector(this._sel_control)}},{key:"_dom_controls",get:function get(){return document.querySelectorAll(this._sel_control)}},{key:"_get_dom_value",value:function _get_dom_value(){return this._dom_control.value}},{key:"_set_dom_value",value:function _set_dom_value(e){this._dom_control.value=null!==e?e:""}},{key:"visible",get:function get(){return this._visible}},{key:"visible",set:function set(e){this._in_form()&&(this._dom_root.hidden=!e),this._visible=e}},{key:"required",get:function get(){var e;return null!==(e=this._required)&&void 0!==e?e:this.control.required}},{key:"required",set:function set(e){this._required=e}},{key:"in_list",get:function get(){return this.control.in_list}},{key:"in_mobile_list",get:function get(){return this.control.in_mobile_list}},{key:"in_text",get:function get(){var e;return null!==(e=this._in_text)&&void 0!==e?e:this.control.in_text}},{key:"in_text",set:function set(e){this._in_text=e}},{key:"enabled",get:function get(){return this._in_form()?!this._dom_root.classList.contains("llft-control-readonly"):this._enabled}},{key:"enabled",set:function set(e){if(this._in_form()){var t,o=!e,r=_createForOfIteratorHelper(this._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.disabled=o}}catch(e){r.e(e)}finally{r.f()}this._dom_root.classList.toggle("llft-control-readonly",o)}this._enabled=e}},{key:"writable",get:function get(){return this._writable}},{key:"writable",set:function set(e){this._writable=e}},{key:o.symbols.repr,value:function value(){var e="<"+this.constructor.name+" identifier=";return e+=o._repr(this.control.identifier),this._dirty&&(e+=" is_dirty()=True"),this.errors.length>0&&(e+=" has_errors()=True"),e+=">"}},{key:o.symbols.setattr,value:function value(e,t){if("value"===e)this.value=t;else if("visible"===e)this.visible=o._bool(t);else if("enabled"===e)this.enabled=o._bool(t);else if("writable"===e)this.writable=o._bool(t);else if("required"===e)this.required=o._bool(t);else if("top"===e){if(null!==t&&"number"!=typeof t)throw new o.ArgumentError("top must be None or an int");this.top=t}else if("left"===e){if(null!==t&&"number"!=typeof t)throw new o.ArgumentError("left must be None or an int");this.left=t}else _get(_getPrototypeOf(Field.prototype),o.symbols.setattr,this).call(this,e,t)}}]),Field}(r);M.prototype._ul4onattrs=["control","record","label","value","errors","_visible","_enabled","_writable","_required"],M.prototype._ul4attrs=new Set(["control","record","label","description","value","mode","errors","visible","enabled","writable","required","in_text","top","left","width","height"]),M.prototype._inputevent="input";var x=new(function(e){_inherits(BoolFieldType,e);var t=_createSuper(BoolFieldType);function BoolFieldType(){return _classCallCheck(this,BoolFieldType),t.apply(this,arguments)}return _createClass(BoolFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof I}}]),BoolFieldType}(w))("la","BoolField","Holds the value of a bool field of a record (and related information)"),I=function(e){_inherits(BoolField,e);var t=_createSuper(BoolField);function BoolField(){return _classCallCheck(this,BoolField),t.apply(this,arguments)}return _createClass(BoolField,[{key:o.symbols.type,value:function value(){return x}},{key:"_validate",value:function _validate(e){null===e.value?this.control.required&&e.errors.push(this.msg_field_required(e.value)):"string"==typeof e.value?0===e.value.length?(this.control.required&&e.errors.push(this.msg_bool_truerequired(e.value)),e.value=null):["false","no","0","off"].includes(e.value.toLowerCase())?e.value=!1:e.value=!0:"boolean"==typeof e.value?this.control.required&&!e.value&&e.errors.push(this.msg_bool_truerequired(e.value)):(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}},{key:"_get_dom_value",value:function _get_dom_value(){return this._dom_control.checked}},{key:"_set_dom_value",value:function _set_dom_value(e){this._dom_control.checked=e}},{key:"value_as_text",value:function value_as_text(){return this.globals.msg_bool(this.value)}}]),BoolField}(M),D=new(function(e){_inherits(IntFieldType,e);var t=_createSuper(IntFieldType);function IntFieldType(){return _classCallCheck(this,IntFieldType),t.apply(this,arguments)}return _createClass(IntFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof R}}]),IntFieldType}(w))("la","IntField","Holds the value of an int field of a record (and related information)"),R=function(e){_inherits(IntField,e);var t=_createSuper(IntField);function IntField(){return _classCallCheck(this,IntField),t.apply(this,arguments)}return _createClass(IntField,[{key:o.symbols.type,value:function value(){return D}},{key:"_parse",value:function _parse(e){return/^\s*[-+]?\d+\s*$/.test(e)?parseInt(e):null}},{key:"_validate",value:function _validate(e){if(null===e.value)this.control.required&&e.errors.push(this.msg_field_required(e.value));else if("string"==typeof e.value){var t=this._parse(e.value);null!==t?e.value=t:e.errors.push(this.msg_number_format(e.value))}else"number"==typeof e.value?Math.round(e.value)!==e.value&&e.errors.push(this.msg_field_wrong_type(e.value)):(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}},{key:"_get_dom_value",value:function _get_dom_value(){var e=_get(_getPrototypeOf(IntField.prototype),"_get_dom_value",this).call(this);if(e){var t=this._parse(e);null!==t&&(e=t)}return e}},{key:"_set_dom_value",value:function _set_dom_value(e){_get(_getPrototypeOf(IntField.prototype),"_set_dom_value",this).call(this,null!==e?e+"":"")}},{key:"value_as_text",value:function value_as_text(){var e=this.value;return null!=e?e+"":null}},{key:"writable",get:function get(){return this._writable}},{key:"writable",set:function set(e){if(this._in_form()){var t,o=!e,r=_createForOfIteratorHelper(this._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.readOnly=o}}catch(e){r.e(e)}finally{r.f()}}_set(_getPrototypeOf(IntField.prototype),"writable",e,this,!0)}}]),IntField}(M),O=new(function(e){_inherits(NumberFieldType,e);var t=_createSuper(NumberFieldType);function NumberFieldType(){return _classCallCheck(this,NumberFieldType),t.apply(this,arguments)}return _createClass(NumberFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof H}}]),NumberFieldType}(w))("la","NumberField","Holds the value of a number field of a record (and related information)"),H=function(e){_inherits(NumberField,e);var t=_createSuper(NumberField);function NumberField(){return _classCallCheck(this,NumberField),t.apply(this,arguments)}return _createClass(NumberField,[{key:o.symbols.type,value:function value(){return O}},{key:"_parse",value:function _parse(e){if(null===e)return null;for(var t=e,o="",r=0,n=0,l=0;l<e.length;++l){var a=e[l];","==a?(r++,o+=a):"."==a&&(n++,o+=a)}var i=null;if(0==r)n<=1||(i="de");else if(1==r)i=1==n?".,"==o?"de":"en":"de";else{if(!(n<=1))return null;i="en"}"de"===i?t=t.replace(/\./g,"").replace(/,/g,"."):"en"===i&&(t=t.replace(/,/g,""));var u=parseFloat(t);return isNaN(u)?e:u}},{key:"_validate",value:function _validate(e){if(null===e.value||""===e.value)this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null;else if("string"==typeof e.value){var t=this._parse(e.value);null!==t?(t=this._bound_value(t),null!==this.control.precision&&(t=o._round(t,this.control.precision)),e.value=t):e.errors.push(this.msg_number_format(e.value))}else if("number"==typeof e.value){var r=this._bound_value(e.value);null!==this.control.precision&&(r=o._round(r,this.control.precision)),e.value=r}else e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null}},{key:"_bound_value",value:function _bound_value(e){return null!==this.control.minimum&&e<this.control.minimum&&(e=this.control.minimum),null!==this.control.maximum&&e>this.control.maximum&&(e=this.control.maximum),e}},{key:"_get_dom_value",value:function _get_dom_value(){var e=_get(_getPrototypeOf(NumberField.prototype),"_get_dom_value",this).call(this);if(e){if("string"==typeof e){var t=this._parse(e);null!==t&&(e=t)}"number"==typeof e&&(null!==this.control.precision&&(e=o._round(e,this.control.precision)),e=this._bound_value(e))}else e=null;return e}},{key:"_set_dom_value",value:function _set_dom_value(e){"number"==typeof e?(e=this._bound_value(e),null!==this.control.precision&&(e=e.toFixed(this.control.precision))):null===e&&(e=""),e+="","de"==this.globals.lang&&null===this.control.precision&&(e=e.replace(".",",")),_get(_getPrototypeOf(NumberField.prototype),"_set_dom_value",this).call(this,e)}},{key:"value_as_text",value:function value_as_text(){var e=this.value;return null===e?null:null!==this.control.precision?e.toFixed(this.control.precision):e.toString()}},{key:"writable",get:function get(){return this._writable}},{key:"writable",set:function set(e){if(this._in_form()){var t,o=!e,r=_createForOfIteratorHelper(this._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.readOnly=o}}catch(e){r.e(e)}finally{r.f()}}_set(_getPrototypeOf(NumberField.prototype),"writable",e,this,!0)}}]),NumberField}(M),P=function(e){_inherits(StringFieldType,e);var t=_createSuper(StringFieldType);function StringFieldType(){return _classCallCheck(this,StringFieldType),t.apply(this,arguments)}return _createClass(StringFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof N}}]),StringFieldType}(w),B=new P("la","StringField","Holds the value of a string field of a record (and related information)"),N=function(e){_inherits(StringField,e);var t=_createSuper(StringField);function StringField(e,o,r){var n;return _classCallCheck(this,StringField),(n=t.call(this,e,o,r))._placeholder=null,n}return _createClass(StringField,[{key:o.symbols.type,value:function value(){return B}},{key:"placeholder",get:function get(){return null!==this._placeholder?this._placeholder:this.control.placeholder}},{key:"placeholder",set:function set(e){var t;this._placeholder=e,this._in_form()&&(this._dom_control.placeholder=null!==(t=this.placeholder)&&void 0!==t?t:"")}},{key:"_validate",value:function _validate(e){if(null===e.value||""===e.value)this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null;else if("string"==typeof e.value){var t=this.control.minlength,o=this.control.maxlength;null!==t&&e.value.length<t&&e.errors.push(this.msg_string_tooshort(e.value)),null!==o&&e.value.length>o&&e.errors.push(this.msg_string_toolong(e.value))}else e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null}},{key:"writable",get:function get(){return this._writable}},{key:"writable",set:function set(e){if(this._in_form()){var t,o=!e,r=_createForOfIteratorHelper(this._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.readOnly=o}}catch(e){r.e(e)}finally{r.f()}}_set(_getPrototypeOf(StringField.prototype),"writable",e,this,!0)}},{key:"value_as_text",value:function value_as_text(){return this.value}}]),StringField}(M);N.prototype._ul4onattrs=[].concat(_toConsumableArray(M.prototype._ul4onattrs),["_placeholder"]),N.prototype._ul4attrs=new Set([].concat(_toConsumableArray(M.prototype._ul4attrs),["placeholder"]));var U=new(function(e){_inherits(PasswordFieldType,e);var t=_createSuper(PasswordFieldType);function PasswordFieldType(){return _classCallCheck(this,PasswordFieldType),t.apply(this,arguments)}return _createClass(PasswordFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof q}}]),PasswordFieldType}(P))("la","PasswordField","Holds the value of a string/password field of a record (and related information)"),q=function(e){_inherits(PasswordField,e);var t=_createSuper(PasswordField);function PasswordField(){return _classCallCheck(this,PasswordField),t.apply(this,arguments)}return _createClass(PasswordField,[{key:o.symbols.type,value:function value(){return U}}]),PasswordField}(N),V=new(function(e){_inherits(EmailFieldType,e);var t=_createSuper(EmailFieldType);function EmailFieldType(){return _classCallCheck(this,EmailFieldType),t.apply(this,arguments)}return _createClass(EmailFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof G}}]),EmailFieldType}(P))("la","EmailField","Holds the value of a string/email field of a record (and related information)"),G=function(e){_inherits(EmailField,e);var t=_createSuper(EmailField);function EmailField(){return _classCallCheck(this,EmailField),t.apply(this,arguments)}return _createClass(EmailField,[{key:o.symbols.type,value:function value(){return V}},{key:"_validate",value:function _validate(e){if("string"==typeof e.value&&e.value.length>0){/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i.test(e.value)||e.errors.push(this.msg_email_format(e.value))}_get(_getPrototypeOf(EmailField.prototype),"_validate",this).call(this,e)}}]),EmailField}(N),E=new(function(e){_inherits(URLFieldType,e);var t=_createSuper(URLFieldType);function URLFieldType(){return _classCallCheck(this,URLFieldType),t.apply(this,arguments)}return _createClass(URLFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof j}}]),URLFieldType}(P))("la","URLField","Holds the value of a string/url field of a record (and related information)"),j=function(e){_inherits(URLField,e);var t=_createSuper(URLField);function URLField(){return _classCallCheck(this,URLField),t.apply(this,arguments)}return _createClass(URLField,[{key:o.symbols.type,value:function value(){return E}},{key:"_validate",value:function _validate(e){if("string"==typeof e.value&&e.value.length>0){var t=null;try{t=new URL(e.value)}catch(t){e.errors.push(this.msg_url_format(e.value))}null!==t&&"http:"!==t.protocol&&"https:"!==t.protocol&&e.errors.push(this.msg_url_format(e.value))}_get(_getPrototypeOf(URLField.prototype),"_validate",this).call(this,e)}}]),URLField}(N),W=new(function(e){_inherits(TelFieldType,e);var t=_createSuper(TelFieldType);function TelFieldType(){return _classCallCheck(this,TelFieldType),t.apply(this,arguments)}return _createClass(TelFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof z}}]),TelFieldType}(P))("la","TelField","Holds the value of a string/tel field of a record (and related information)"),z=function(e){_inherits(TelField,e);var t=_createSuper(TelField);function TelField(){return _classCallCheck(this,TelField),t.apply(this,arguments)}return _createClass(TelField,[{key:o.symbols.type,value:function value(){return W}},{key:"_validate",value:function _validate(e){if("string"==typeof e.value&&e.value.length>0){/^\\+?[0-9 /()-]+$/.test(e.value)||e.errors.push(this.msg_tel_format(e.value))}_get(_getPrototypeOf(TelField.prototype),"_validate",this).call(this,e)}}]),TelField}(N),Y=new(function(e){_inherits(TextAreaFieldType,e);var t=_createSuper(TextAreaFieldType);function TextAreaFieldType(){return _classCallCheck(this,TextAreaFieldType),t.apply(this,arguments)}return _createClass(TextAreaFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof J}}]),TextAreaFieldType}(P))("la","TextAreaField","Holds the value of a string/textarea field of a record (and related information)"),J=function(e){_inherits(TextAreaField,e);var t=_createSuper(TextAreaField);function TextAreaField(){return _classCallCheck(this,TextAreaField),t.apply(this,arguments)}return _createClass(TextAreaField,[{key:o.symbols.type,value:function value(){return Y}}]),TextAreaField}(N),K=new(function(e){_inherits(HTMLFieldType,e);var t=_createSuper(HTMLFieldType);function HTMLFieldType(){return _classCallCheck(this,HTMLFieldType),t.apply(this,arguments)}return _createClass(HTMLFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof $}}]),HTMLFieldType}(P))("la","HTMLField","Holds the value of a string/html field of a record (and related information)"),$=function(e){_inherits(HTMLField,e);var t=_createSuper(HTMLField);function HTMLField(){return _classCallCheck(this,HTMLField),t.apply(this,arguments)}return _createClass(HTMLField,[{key:o.symbols.type,value:function value(){return K}}]),HTMLField}(N),Z=new(function(e){_inherits(GeoFieldType,e);var t=_createSuper(GeoFieldType);function GeoFieldType(){return _classCallCheck(this,GeoFieldType),t.apply(this,arguments)}return _createClass(GeoFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Q}}]),GeoFieldType}(w))("la","GeoField","Holds the value of a geo field of a record (and related information)"),Q=function(e){_inherits(GeoField,e);var t=_createSuper(GeoField);function GeoField(){return _classCallCheck(this,GeoField),t.apply(this,arguments)}return _createClass(GeoField,[{key:o.symbols.type,value:function value(){return Z}},{key:"_get_dom_value",value:function _get_dom_value(){var e,t=_createForOfIteratorHelper(this._dom_controls);try{for(t.s();!(e=t.n()).done;){var o=e.value;if(o.id.endsWith("_geoinfo")){var r=o.value;if(r)return r=JSON.parse(r),new Ko(this.globals,r.geometry.coordinates[0],r.geometry.coordinates[1],r.properties.formatted_address)}}}catch(e){t.e(e)}finally{t.f()}return null}},{key:"_set_dom_value",value:function _set_dom_value(e){if(null===e){var t,r=_createForOfIteratorHelper(this._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.value=null}}catch(e){r.e(e)}finally{r.f()}}else{var n,l=_createForOfIteratorHelper(this._dom_controls);try{for(l.s();!(n=l.n()).done;){var a=n.value;if(a.id.endsWith("_geoinfo")){var i={type:"Feature",geometry:{coordinates:[e.lat,e.long]},properties:{formatted_address:e.info}};a.value=o._asjson(i)}else a.value=e.info}}catch(e){l.e(e)}finally{l.f()}}}},{key:"value_as_text",value:function value_as_text(){var e=this.value;if(null===this.value)return null;var t=e.lat.toFixed(5)+", "+e.long.toFixed(5);return null!==e.info&&(t+=" ("+e.info+")"),t}},{key:"_validate",value:function _validate(e){null===e.value||""===e.value?(this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null):e.value instanceof Ko||(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}}]),GeoField}(M);Q.prototype._inputevent="llgeo";var X=function(e){_inherits(FileFieldType,e);var t=_createSuper(FileFieldType);function FileFieldType(){return _classCallCheck(this,FileFieldType),t.apply(this,arguments)}return _createClass(FileFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof te}}]),FileFieldType}(w),ee=new X("la","FileField","Holds the value of a file field of a record (and related information)"),te=function(e){_inherits(FileField,e);var t=_createSuper(FileField);function FileField(){return _classCallCheck(this,FileField),t.apply(this,arguments)}return _createClass(FileField,[{key:o.symbols.type,value:function value(){return ee}},{key:"_validate",value:function _validate(e){null===e.value||""===e.value?(this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null):e.value instanceof Yo||(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}},{key:"_get_dom_value",value:function _get_dom_value(){return null}},{key:"_set_dom_value",value:function _set_dom_value(){}}]),FileField}(M),oe=new(function(e){_inherits(FileSignatureFieldType,e);var t=_createSuper(FileSignatureFieldType);function FileSignatureFieldType(){return _classCallCheck(this,FileSignatureFieldType),t.apply(this,arguments)}return _createClass(FileSignatureFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof re}}]),FileSignatureFieldType}(X))("la","FileSignatureField","Holds the value of a file/signature field of a record (and related information)"),re=function(e){_inherits(FileSignatureField,e);var t=_createSuper(FileSignatureField);function FileSignatureField(){return _classCallCheck(this,FileSignatureField),t.apply(this,arguments)}return _createClass(FileSignatureField,[{key:o.symbols.type,value:function value(){return oe}},{key:"_validate",value:function _validate(e){_get(_getPrototypeOf(FileSignatureField.prototype),"_validate",this).call(this,e)}}]),FileSignatureField}(te),ne=function(e){_inherits(DateFieldBaseType,e);var t=_createSuper(DateFieldBaseType);function DateFieldBaseType(){return _classCallCheck(this,DateFieldBaseType),t.apply(this,arguments)}return _createClass(DateFieldBaseType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ae}}]),DateFieldBaseType}(w),le=new ne("la","DateFieldBase","Holds the value of a date field of a record (and related information)"),ae=function(e){_inherits(DateFieldBase,e);var t=_createSuper(DateFieldBase);function DateFieldBase(){return _classCallCheck(this,DateFieldBase),t.apply(this,arguments)}return _createClass(DateFieldBase,[{key:o.symbols.type,value:function value(){return le}},{key:"value_as_text",value:function value_as_text(){var e=this.value;return null===e?null:"string"==typeof e?e:o._format(e,this.control.formatstring())}},{key:"_parse",value:function _parse(e,t){var o=null,r=null,n=null,l=0,a=0,i=0,u=null;function _int(e,t,o,r){return(e=e.substring(0,t)).length!=t?null:(e=parseInt(e,10),isNaN(e)||e<o||e>r?null:e)}for(;e;){if(!t)return null;if(t.startsWith("%Y")){if(null===(o=_int(e,4)))return null;e=e.substring(4),t=t.substring(2)}else if(t.startsWith("%y")){if(null===(o=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%m")){if(null===(r=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%d")){if(null===(n=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%H")){if(null===(l=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%I")){if(null===(l=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%M")){if(null===(a=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%S")){if(null===(i=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%p")){if(e.toLowerCase().startsWith("pm"))u=!0;else{if(!e.toLowerCase().startsWith("am"))return null;u=!1}e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%%")){if(!e.startsWith("%"))return null;e=e.substring(1),t=t.substring(2)}else if(t.startsWith("%z")){if(!e.startsWith("-")&&!e.startsWith("+"))return null;if(null===_int(e=e.substring(1),2))return null;if(!(e=e.substring(2)).startsWith(":"))return null;if(null===_int(e=e.substring(1),2))return null;e=e.substring(2),t=t.substring(2)}else{if(!e.startsWith(t.substring(0,1)))return null;e=e.substring(1),t=t.substring(1)}}if(t)return null;if(null===o)return null;if(null===r||r<1||r>12)return null;if(null===n||n<1||n>31)return null;if(null===u){if(l<0||l>23)return null}else{if(l<0||l>11)return null;u&&(l+=12)}return a<0||a>59||a<0||a>59||i<0||i>60?null:new Date(o,r-1,n,l,a,i)}},{key:"_validate",value:function _validate(e){if(null===e.value||""===e.value)this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null;else if(e.value instanceof Date)e.value=this._convert(e.value);else if(e.value instanceof o.Date_)e.value=this._convert(e.value._date);else if("string"==typeof e.value){var t,r=null,n=_createForOfIteratorHelper(this.control.formatstrings_parse());try{for(n.s();!(t=n.n()).done;){var l=t.value;if(null!==(r=this._parse(e.value,l)))break}}catch(e){n.e(e)}finally{n.f()}null!==r?e.value=this._convert(r):e.errors.push(this.msg_date_format(e.value))}else e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null}},{key:"_get_dom_value",value:function _get_dom_value(){var e=_get(_getPrototypeOf(DateFieldBase.prototype),"_get_dom_value",this).call(this);if(!e)return null;var t,o=_createForOfIteratorHelper(this.control.formatstrings_parse());try{for(o.s();!(t=o.n()).done;){var r=t.value,n=this._parse(e,r);if(null!==n)return this._convert(n)}}catch(e){o.e(e)}finally{o.f()}return null}},{key:"_set_dom_value",value:function _set_dom_value(e){e=null!==e?o._format(e,this.control.formatstring(),this.globals.lang):"",_get(_getPrototypeOf(DateFieldBase.prototype),"_set_dom_value",this).call(this,e)}}]),DateFieldBase}(M),ie=new(function(e){_inherits(DateFieldType,e);var t=_createSuper(DateFieldType);function DateFieldType(){return _classCallCheck(this,DateFieldType),t.apply(this,arguments)}return _createClass(DateFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ue}}]),DateFieldType}(ne))("la","DateField","Holds the value of a date/date field of a record (and related information)"),ue=function(e){_inherits(DateField,e);var t=_createSuper(DateField);function DateField(){return _classCallCheck(this,DateField),t.apply(this,arguments)}return _createClass(DateField,[{key:o.symbols.type,value:function value(){return ie}},{key:"_convert",value:function _convert(e){return new o.Date_(e.getFullYear(),e.getMonth()+1,e.getDate())}}]),DateField}(ae),se=new(function(e){_inherits(DatetimeMinuteFieldType,e);var t=_createSuper(DatetimeMinuteFieldType);function DatetimeMinuteFieldType(){return _classCallCheck(this,DatetimeMinuteFieldType),t.apply(this,arguments)}return _createClass(DatetimeMinuteFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof pe}}]),DatetimeMinuteFieldType}(ne))("la","DatetimeMinuteField","Holds the value of a date/datetimeminute field of a record (and related information)"),pe=function(e){_inherits(DatetimeMinuteField,e);var t=_createSuper(DatetimeMinuteField);function DatetimeMinuteField(){return _classCallCheck(this,DatetimeMinuteField),t.apply(this,arguments)}return _createClass(DatetimeMinuteField,[{key:o.symbols.type,value:function value(){return se}},{key:"_convert",value:function _convert(e){return e.setSeconds(0),e.setMilliseconds(0),e}}]),DatetimeMinuteField}(ae),ce=new(function(e){_inherits(DatetimeSecondFieldType,e);var t=_createSuper(DatetimeSecondFieldType);function DatetimeSecondFieldType(){return _classCallCheck(this,DatetimeSecondFieldType),t.apply(this,arguments)}return _createClass(DatetimeSecondFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof _e}}]),DatetimeSecondFieldType}(ne))("la","DatetimeSecondField","Holds the value of a date/datetimesecond field of a record (and related information)"),_e=function(e){_inherits(DatetimeSecondField,e);var t=_createSuper(DatetimeSecondField);function DatetimeSecondField(){return _classCallCheck(this,DatetimeSecondField),t.apply(this,arguments)}return _createClass(DatetimeSecondField,[{key:o.symbols.type,value:function value(){return ce}},{key:"_convert",value:function _convert(e){return e.setMilliseconds(0),e}}]),DatetimeSecondField}(ae),he=function(e){_inherits(ChoiceFieldBase,e);var t=_createSuper(ChoiceFieldBase);function ChoiceFieldBase(){return _classCallCheck(this,ChoiceFieldBase),t.apply(this,arguments)}return _createClass(ChoiceFieldBase,[{key:"_make_option",value:function _make_option(e,t,o){return element("option",o,{value:t,class:t===this.control.none_key?"la-none-option":null,selected:e?"selected":null})}},{key:"_set_dom_lookupdata_select",value:function _set_dom_lookupdata_select(e){var t;null===e&&(e=this.control.lookup_data),o._isobject(e)&&(e=new Map(Object.entries(e)));var r,n=!1,l=new Set,a=_createForOfIteratorHelper(this._dom_control.querySelectorAll("option:checked"));try{for(a.s();!(r=a.n()).done;){var i=r.value.getAttribute("value");e.has(i)?l.add(i):i===this.control.none_key&&(n=!0)}}catch(e){a.e(e)}finally{a.f()}var u=[];null!==this.control.none_key&&u.push(this._make_option(n,this.control.none_key,null!==this.control.none_label?this.control.none_label:this.globals.msg_nothing_selected()));var s,p=_createForOfIteratorHelper(e);try{for(p.s();!(s=p.n()).done;){var c=_slicedToArray(s.value,2),_=c[0],h=c[1];u.push(this._make_option(l.has(_),_,this._make_label(h)))}}catch(e){p.e(e)}finally{p.f()}(t=this._dom_control).replaceChildren.apply(t,u)}},{key:"_set_dom_lookupdata_input",value:function _set_dom_lookupdata_input(e){null===e?e=this.control.lookupdata:o._isobject(e)&&(e=new Map(Object.entries(e)));var t,r=!1,n=new Set,l=_createForOfIteratorHelper(this._dom_controls);try{for(l.s();!(t=l.n()).done;){var a=t.value,i=a.getAttribute("value");a.checked&&(e.has(i)?n.add(i):i===this.control.none_key&&(r=!0))}}catch(e){l.e(e)}finally{l.f()}var u=this._dom_root.querySelector("input[value="+this.control.none_key+"]");null!==u&&(u.checked=r);var s,p=_createForOfIteratorHelper(this.control.lookupdata);try{for(p.s();!(s=p.n()).done;){var c=_slicedToArray(s.value,2),_=c[0],h=(c[1],this._dom_root.querySelector("input[value="+_+"]")),y=this._dom_root.querySelector("label[for="+h.id+"]");e.has(_)?(h.style.display="inline",y.style.display="inline",y.innerText=this._make_label(e.get(_))):(h.style.display="none",y.style.display="none",y.checked=!1)}}catch(e){p.e(e)}finally{p.f()}}}]),ChoiceFieldBase}(M),ye=function(e){_inherits(LookupFieldBaseType,e);var t=_createSuper(LookupFieldBaseType);function LookupFieldBaseType(){return _classCallCheck(this,LookupFieldBaseType),t.apply(this,arguments)}return _createClass(LookupFieldBaseType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof fe}}]),LookupFieldBaseType}(w),de=new ye("la","LookupFieldBase","Base type of LookupField and MultipleLookupField"),fe=function(e){_inherits(LookupFieldBase,e);var t=_createSuper(LookupFieldBase);function LookupFieldBase(){return _classCallCheck(this,LookupFieldBase),t.apply(this,arguments)}return _createClass(LookupFieldBase,[{key:o.symbols.type,value:function value(){return de}},{key:"lookupdata",get:function get(){return null!==this._lookupdata?this._lookupdata:this.control.lookupdata}},{key:"lookupdata",set:function set(e){this._in_form()&&this._set_dom_lookupdata(e),this._lookupdata=e}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){}},{key:"_make_label",value:function _make_label(e){return"string"==typeof e?e:e instanceof Mo?e.label:o._str(e)}},{key:"_find_lookupitem",value:function _find_lookupitem(e){var t=e.value;if("string"==typeof t){if(null===this.lookupdata)return;var o=this.control.lookupdata.get(t);if(void 0===o)if(this.control.autoexpandable){var r,n=_createForOfIteratorHelper(this.lookupdata.values());try{for(n.s();!(r=n.n()).done;){var l=r.value;if(t===l.label)return void(e.value=l)}}catch(e){n.e(e)}finally{n.f()}}else e.errors.push(this.msg_lookup_unknownkey(t)),e.value=null;else e.value=o}else if(t instanceof Mo){this.control.lookupdata.get(t.key)!==t&&(e.errors.push(this.msg_lookup_wrongitem(t)),e.value=null)}else e.errors.push(this.msg_field_wrong_type(t)),e.value=null}}]),LookupFieldBase}(he),ve=function(e){_inherits(LookupFieldType,e);var t=_createSuper(LookupFieldType);function LookupFieldType(){return _classCallCheck(this,LookupFieldType),t.apply(this,arguments)}return _createClass(LookupFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof me}}]),LookupFieldType}(ye),ke=new ve("la","LookupField","Holds the value of a lookup field of a record (and related information)"),me=function(e){_inherits(LookupField,e);var t=_createSuper(LookupField);function LookupField(){return _classCallCheck(this,LookupField),t.apply(this,arguments)}return _createClass(LookupField,[{key:o.symbols.type,value:function value(){return ke}},{key:"value_as_text",value:function value_as_text(){var e=this.value;return null===e?null:e.label}},{key:"_validate",value:function _validate(e){var t=e.value;null===t||""===t||this.control.none_key===t?(this.control.required&&e.errors.push(this.msg_field_required(t)),e.value=null):this._find_lookupitem(e)}}]),LookupField}(fe),Ce=new(function(e){_inherits(LookupRadioFieldType,e);var t=_createSuper(LookupRadioFieldType);function LookupRadioFieldType(){return _classCallCheck(this,LookupRadioFieldType),t.apply(this,arguments)}return _createClass(LookupRadioFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ge}}]),LookupRadioFieldType}(ve))("la","LookupRadioField","Holds the value of a lookup/radio field of a record (and related information)"),ge=function(e){_inherits(LookupRadioField,e);var t=_createSuper(LookupRadioField);function LookupRadioField(){return _classCallCheck(this,LookupRadioField),t.apply(this,arguments)}return _createClass(LookupRadioField,[{key:o.symbols.type,value:function value(){return Ce}},{key:"_sel_label",get:function get(){return this._sel_root+" label:not([for]) > span"}},{key:"_get_dom_value",value:function _get_dom_value(){var e,t=_createForOfIteratorHelper(this._dom_controls);try{for(t.s();!(e=t.n()).done;){var o=e.value;if(o.checked){var r=o.getAttribute("value");return this.control.lookupdata.get(r)}}}catch(e){t.e(e)}finally{t.f()}return null}},{key:"_set_dom_value",value:function _set_dom_value(e){e instanceof Mo&&(e=e.key),null===e&&(e=this.control.none_key);var t,o=_createForOfIteratorHelper(this._dom_controls);try{for(o.s();!(t=o.n()).done;){var r=t.value;r.checked=r.getAttribute("value")===e}}catch(e){o.e(e)}finally{o.f()}}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_input(e)}}]),LookupRadioField}(me),be=new(function(e){_inherits(LookupSelectFieldType,e);var t=_createSuper(LookupSelectFieldType);function LookupSelectFieldType(){return _classCallCheck(this,LookupSelectFieldType),t.apply(this,arguments)}return _createClass(LookupSelectFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Te}}]),LookupSelectFieldType}(ve))("la","LookupSelectField","Holds the value of a lookup/select field of a record (and related information)"),Te=function(e){_inherits(LookupSelectField,e);var t=_createSuper(LookupSelectField);function LookupSelectField(){return _classCallCheck(this,LookupSelectField),t.apply(this,arguments)}return _createClass(LookupSelectField,[{key:o.symbols.type,value:function value(){return be}},{key:"_get_dom_value",value:function _get_dom_value(){var e=_get(_getPrototypeOf(LookupSelectField.prototype),"_get_dom_value",this).call(this);return e&&(e=e===this.control.none_key?null:this.control.lookupdata.get(e)),e}},{key:"_set_dom_value",value:function _set_dom_value(e){var t={value:e,errors:[]};this._validate(t),_get(_getPrototypeOf(LookupSelectField.prototype),"_set_dom_value",this).call(this,null!=t.value?t.value.key:this.control.none_key)}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_select(e)}}]),LookupSelectField}(me),Le=new(function(e){_inherits(LookupChoiceFieldType,e);var t=_createSuper(LookupChoiceFieldType);function LookupChoiceFieldType(){return _classCallCheck(this,LookupChoiceFieldType),t.apply(this,arguments)}return _createClass(LookupChoiceFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Fe}}]),LookupChoiceFieldType}(ve))("la","LookupChoiceField","Holds the value of a lookup/choice field of a record (and related information)"),Fe=function(e){_inherits(LookupChoiceField,e);var t=_createSuper(LookupChoiceField);function LookupChoiceField(){return _classCallCheck(this,LookupChoiceField),t.apply(this,arguments)}return _createClass(LookupChoiceField,[{key:o.symbols.type,value:function value(){return Le}}]),LookupChoiceField}(me);Fe.prototype._inputevent="llchoice";var Ae=function(e){_inherits(MultipleLookupFieldType,e);var t=_createSuper(MultipleLookupFieldType);function MultipleLookupFieldType(){return _classCallCheck(this,MultipleLookupFieldType),t.apply(this,arguments)}return _createClass(MultipleLookupFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Se}}]),MultipleLookupFieldType}(ye),we=new Ae("la","MultipleLookupField","Holds the value of a multiple lookup field of a record (and related information)"),Se=function(e){_inherits(MultipleLookupField,e);var t=_createSuper(MultipleLookupField);function MultipleLookupField(){return _classCallCheck(this,MultipleLookupField),t.apply(this,arguments)}return _createClass(MultipleLookupField,[{key:o.symbols.type,value:function value(){return we}},{key:"is_empty",value:function is_empty(){return 0===this._value.length}},{key:"value_as_text",value:function value_as_text(){var e=this.value;return null===e||0===e.length?null:e.map((function(e){return e.label})).join(", ")}},{key:"_validate",value:function _validate(e){var t=e.value,o="[object Array]"===Object.prototype.toString.call(t);if(null===t||""===t||this.control.none_key===t||o&&0===t.length)this.control.required&&e.errors.push(this.msg_field_required(t)),e.value=[];else if(o){var r,n=[],l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var a={value:r.value,errors:[]};this._find_lookupitem(a),a.errors.length>0?e.errors=[].concat(_toConsumableArray(e.errors),_toConsumableArray(a.errors)):n.push(a.value)}}catch(e){l.e(e)}finally{l.f()}e.value=n}else this._find_lookupitem(e),e.errors.length>0?e.value=[]:e.value=[e.value]}}]),MultipleLookupField}(fe),Me=new(function(e){_inherits(MultipleLookupCheckboxFieldType,e);var t=_createSuper(MultipleLookupCheckboxFieldType);function MultipleLookupCheckboxFieldType(){return _classCallCheck(this,MultipleLookupCheckboxFieldType),t.apply(this,arguments)}return _createClass(MultipleLookupCheckboxFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof xe}}]),MultipleLookupCheckboxFieldType}(Ae))("la","MultipleLookupCheckboxField","Holds the value of a multiplelookup/radio field of a record (and related information)"),xe=function(e){_inherits(MultipleLookupCheckboxField,e);var t=_createSuper(MultipleLookupCheckboxField);function MultipleLookupCheckboxField(){return _classCallCheck(this,MultipleLookupCheckboxField),t.apply(this,arguments)}return _createClass(MultipleLookupCheckboxField,[{key:o.symbols.type,value:function value(){return Me}},{key:"_sel_label",get:function get(){return this._sel_root+" label:not([for]) > span"}},{key:"_get_dom_value",value:function _get_dom_value(){var e,t=[],o=_createForOfIteratorHelper(this._dom_controls);try{for(o.s();!(e=o.n()).done;){var r=e.value;if(r.checked){var n=r.getAttribute("value");t.push(this.control.lookupdata.get(n))}}}catch(e){o.e(e)}finally{o.f()}return t}},{key:"_set_dom_value",value:function _set_dom_value(e){var t={value:e,errors:[]};this._validate(t);var o,r=new Set,n=_createForOfIteratorHelper(t.value);try{for(n.s();!(o=n.n()).done;){var l=o.value;r.add(l.key)}}catch(e){n.e(e)}finally{n.f()}var a,i=_createForOfIteratorHelper(this._dom_controls);try{for(i.s();!(a=i.n()).done;){var u=a.value;u.checked=r.has(u.getAttribute("value"))}}catch(e){i.e(e)}finally{i.f()}}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_input(e)}}]),MultipleLookupCheckboxField}(Se),Ie=new(function(e){_inherits(MultipleLookupSelectFieldType,e);var t=_createSuper(MultipleLookupSelectFieldType);function MultipleLookupSelectFieldType(){return _classCallCheck(this,MultipleLookupSelectFieldType),t.apply(this,arguments)}return _createClass(MultipleLookupSelectFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof De}}]),MultipleLookupSelectFieldType}(Ae))("la","MultipleLookupSelectField","Holds the value of a multiplelookup/select field of a record (and related information)"),De=function(e){_inherits(MultipleLookupSelectField,e);var t=_createSuper(MultipleLookupSelectField);function MultipleLookupSelectField(){return _classCallCheck(this,MultipleLookupSelectField),t.apply(this,arguments)}return _createClass(MultipleLookupSelectField,[{key:o.symbols.type,value:function value(){return Ie}},{key:"_get_dom_value",value:function _get_dom_value(){var e,t=[],o=_createForOfIteratorHelper(this._dom_control.querySelectorAll("option"));try{for(o.s();!(e=o.n()).done;){var r=e.value;r.selected&&t.push(this.control.lookupdata.get(r.getAttribute("value")))}}catch(e){o.e(e)}finally{o.f()}return t}},{key:"_set_dom_value",value:function _set_dom_value(e){var t={value:e,errors:[]};this._validate(t);var o,r=new Set,n=_createForOfIteratorHelper(t.value);try{for(n.s();!(o=n.n()).done;){var l=o.value;r.add(l.key)}}catch(e){n.e(e)}finally{n.f()}var a,i=_createForOfIteratorHelper(this._dom_control.querySelectorAll("option"));try{for(i.s();!(a=i.n()).done;){var u=a.value;u.selected=r.has(u.getAttribute("value"))}}catch(e){i.e(e)}finally{i.f()}}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_select(e)}}]),MultipleLookupSelectField}(Se),Re=new(function(e){_inherits(MultipleLookupChoiceFieldType,e);var t=_createSuper(MultipleLookupChoiceFieldType);function MultipleLookupChoiceFieldType(){return _classCallCheck(this,MultipleLookupChoiceFieldType),t.apply(this,arguments)}return _createClass(MultipleLookupChoiceFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Oe}}]),MultipleLookupChoiceFieldType}(Ae))("la","MultipleLookupChoiceField","Holds the value of a multiplelookup/choice field of a record (and related information)"),Oe=function(e){_inherits(MultipleLookupChoiceField,e);var t=_createSuper(MultipleLookupChoiceField);function MultipleLookupChoiceField(){return _classCallCheck(this,MultipleLookupChoiceField),t.apply(this,arguments)}return _createClass(MultipleLookupChoiceField,[{key:o.symbols.type,value:function value(){return Re}}]),MultipleLookupChoiceField}(Se);Oe.prototype._inputevent="llchoice";var He=function(e){_inherits(AppLookupFieldBaseType,e);var t=_createSuper(AppLookupFieldBaseType);function AppLookupFieldBaseType(){return _classCallCheck(this,AppLookupFieldBaseType),t.apply(this,arguments)}return _createClass(AppLookupFieldBaseType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Be}}]),AppLookupFieldBaseType}(w),Pe=new He("la","AppLookupFieldBase","Base type of AppLookupField and MultipleAppLookupField"),Be=function(e){_inherits(AppLookupFieldBase,e);var t=_createSuper(AppLookupFieldBase);function AppLookupFieldBase(){return _classCallCheck(this,AppLookupFieldBase),t.apply(this,arguments)}return _createClass(AppLookupFieldBase,[{key:o.symbols.type,value:function value(){return Pe}},{key:"lookupdata",get:function get(){return null!==this._lookupdata?this._lookupdata:null!==this.control.lookup_app.records?this.control.lookup_app.records:new Map}},{key:"lookupdata",set:function set(e){this._in_form()&&this._set_dom_lookupdata(e),this._lookupdata=e}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){}},{key:"_make_label",value:function _make_label(e){return"string"==typeof e?e:e instanceof A?e.as_text(this.control.lookup_controls):o._str(e)}},{key:"_find_record",value:function _find_record(e){var t=e.value;if("string"==typeof t){var o=null!==this.control.lookup_app.records?this.control.lookup_app.records.get(t):void 0;void 0===o?(e.errors.push(this.msg_applookup_unknownkey(t)),e.value=null):e.value=o}else t instanceof A?t.app!==this.control.lookup_app&&(e.errors.push(this.msg_applookup_wrongrecord(t)),e.value=null):(e.errors.push(this.msg_field_wrong_type(t)),e.value=null)}},{key:o.symbols.setattr,value:function value(e,t){"lookupdata"===e?this.lookupdata=t:_get(_getPrototypeOf(AppLookupFieldBase.prototype),o.symbols.setattr,this).call(this,e,t)}}]),AppLookupFieldBase}(he);Be.prototype._ul4attrs=new Set([].concat(_toConsumableArray(M.prototype._ul4attrs),["lookupdata"]));var Ne=function(e){_inherits(AppLookupFieldType,e);var t=_createSuper(AppLookupFieldType);function AppLookupFieldType(){return _classCallCheck(this,AppLookupFieldType),t.apply(this,arguments)}return _createClass(AppLookupFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof qe}}]),AppLookupFieldType}(He),Ue=new Ne("la","AppLookupField","Holds the value of a applookup field of a record (and related information)"),qe=function(e){_inherits(AppLookupField,e);var t=_createSuper(AppLookupField);function AppLookupField(){return _classCallCheck(this,AppLookupField),t.apply(this,arguments)}return _createClass(AppLookupField,[{key:o.symbols.type,value:function value(){return Ue}},{key:"value_as_text",value:function value_as_text(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=this.value;return null===t?null:"("+this.value.as_text(e)+")"}},{key:"_validate",value:function _validate(e){this._find_record(e)}}]),AppLookupField}(Be),Ve=new(function(e){_inherits(AppLookupSelectFieldType,e);var t=_createSuper(AppLookupSelectFieldType);function AppLookupSelectFieldType(){return _classCallCheck(this,AppLookupSelectFieldType),t.apply(this,arguments)}return _createClass(AppLookupSelectFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ge}}]),AppLookupSelectFieldType}(Ne))("la","AppLookupSelectField","Holds the value of a `applookup`/`select` field of a record (and related information)"),Ge=function(e){_inherits(AppLookupSelectField,e);var t=_createSuper(AppLookupSelectField);function AppLookupSelectField(){return _classCallCheck(this,AppLookupSelectField),t.apply(this,arguments)}return _createClass(AppLookupSelectField,[{key:o.symbols.type,value:function value(){return Ve}},{key:"_get_dom_value",value:function _get_dom_value(){var e=_get(_getPrototypeOf(AppLookupSelectField.prototype),"_get_dom_value",this).call(this);return null!==this.control.lookup_app.records?void 0===(e=this.control.lookup_app.records.get(e))&&(e=null):e=null,e}},{key:"_set_dom_value",value:function _set_dom_value(e){var t={value:e,errors:[]};this._validate(t),_get(_getPrototypeOf(AppLookupSelectField.prototype),"_set_dom_value",this).call(this,null!=t.value?t.value.id:this.control.none_key)}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_select(e)}}]),AppLookupSelectField}(qe),Ee=new(function(e){_inherits(AppLookupRadioFieldType,e);var t=_createSuper(AppLookupRadioFieldType);function AppLookupRadioFieldType(){return _classCallCheck(this,AppLookupRadioFieldType),t.apply(this,arguments)}return _createClass(AppLookupRadioFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof je}}]),AppLookupRadioFieldType}(Ne))("la","AppLookupRadioField","Holds the value of a `applookup`/`radio` field of a record (and related information)"),je=function(e){_inherits(AppLookupRadioField,e);var t=_createSuper(AppLookupRadioField);function AppLookupRadioField(){return _classCallCheck(this,AppLookupRadioField),t.apply(this,arguments)}return _createClass(AppLookupRadioField,[{key:o.symbols.type,value:function value(){return Ee}}]),AppLookupRadioField}(qe),We=new(function(e){_inherits(AppLookupChoiceFieldType,e);var t=_createSuper(AppLookupChoiceFieldType);function AppLookupChoiceFieldType(){return _classCallCheck(this,AppLookupChoiceFieldType),t.apply(this,arguments)}return _createClass(AppLookupChoiceFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ze}}]),AppLookupChoiceFieldType}(Ne))("la","AppLookupChoiceField","Holds the value of a `applookup`/`choice` field of a record (and related information)"),ze=function(e){_inherits(AppLookupChoiceField,e);var t=_createSuper(AppLookupChoiceField);function AppLookupChoiceField(e,o,r){var n;return _classCallCheck(this,AppLookupChoiceField),(n=t.call(this,e,o,r))._search_url=null,n._search_param_name=null,n._target_param_name=null,n}return _createClass(AppLookupChoiceField,[{key:o.symbols.type,value:function value(){return We}},{key:"search_url",get:function get(){var e;return null!==(e=this._search_url)&&void 0!==e?e:this.control.search_url}},{key:"search_url",set:function set(e){this._search_url=e}},{key:"search_param_name",get:function get(){var e;return null!==(e=this._search_param_name)&&void 0!==e?e:this.control.search_param_name}},{key:"search_param_name",set:function set(e){this._search_param_name=e}},{key:"target_param_name",get:function get(){var e;return null!==(e=this._target_param_name)&&void 0!==e?e:this.control.target_param_name}},{key:"target_param_name",set:function set(e){this._target_param_name=e}}]),AppLookupChoiceField}(qe);ze.prototype._inputevent="llchoice",ze.prototype._ul4attrs=new Set([].concat(_toConsumableArray(M.prototype._ul4attrs),["search_url","search_param_name","target_param_name"]));var Ye=function(e){_inherits(MultipleAppLookupFieldType,e);var t=_createSuper(MultipleAppLookupFieldType);function MultipleAppLookupFieldType(){return _classCallCheck(this,MultipleAppLookupFieldType),t.apply(this,arguments)}return _createClass(MultipleAppLookupFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ke}}]),MultipleAppLookupFieldType}(He),Je=new Ye("la","MultipleAppLookupField","Holds the value of a multiple applookup field of a record (and related information)"),Ke=function(e){_inherits(MultipleAppLookupField,e);var t=_createSuper(MultipleAppLookupField);function MultipleAppLookupField(){return _classCallCheck(this,MultipleAppLookupField),t.apply(this,arguments)}return _createClass(MultipleAppLookupField,[{key:o.symbols.type,value:function value(){return Je}},{key:"is_empty",value:function is_empty(){return 0===this._value.length}},{key:"_validate",value:function _validate(e){var t=e.value,o="[object Array]"===Object.prototype.toString.call(t);if(null===t||""===t||this.control.none_key===t||o&&0===t.length)this.control.required&&e.errors.push(this.msg_field_required(t)),e.value=[];else if(o){var r,n=[],l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var a={value:r.value,errors:[]};this._find_record(a),a.errors.length>0?e.errors=[].concat(_toConsumableArray(e.errors),_toConsumableArray(a.errors)):n.push(a.value)}}catch(e){l.e(e)}finally{l.f()}e.value=n}else this._find_record(e),e.errors.length>0?e.value=[]:e.value=[e.value]}}]),MultipleAppLookupField}(Be),$e=new(function(e){_inherits(MultipleAppLookupCheckboxFieldType,e);var t=_createSuper(MultipleAppLookupCheckboxFieldType);function MultipleAppLookupCheckboxFieldType(){return _classCallCheck(this,MultipleAppLookupCheckboxFieldType),t.apply(this,arguments)}return _createClass(MultipleAppLookupCheckboxFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ze}}]),MultipleAppLookupCheckboxFieldType}(Ye))("la","MultipleAppLookupCheckboxField","Holds the value of a `multipleapplookup`/`checkbox` field of a record (and related information)"),Ze=function(e){_inherits(MultipleAppLookupCheckboxField,e);var t=_createSuper(MultipleAppLookupCheckboxField);function MultipleAppLookupCheckboxField(){return _classCallCheck(this,MultipleAppLookupCheckboxField),t.apply(this,arguments)}return _createClass(MultipleAppLookupCheckboxField,[{key:o.symbols.type,value:function value(){return $e}}]),MultipleAppLookupCheckboxField}(Ke),Qe=new(function(e){_inherits(MultipleAppLookupSelectFieldType,e);var t=_createSuper(MultipleAppLookupSelectFieldType);function MultipleAppLookupSelectFieldType(){return _classCallCheck(this,MultipleAppLookupSelectFieldType),t.apply(this,arguments)}return _createClass(MultipleAppLookupSelectFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Xe}}]),MultipleAppLookupSelectFieldType}(Ye))("la","MultipleAppLookupSelectField","Holds the value of a `multipleapplookup`/`select` field of a record (and related information)"),Xe=function(e){_inherits(MultipleAppLookupSelectField,e);var t=_createSuper(MultipleAppLookupSelectField);function MultipleAppLookupSelectField(){return _classCallCheck(this,MultipleAppLookupSelectField),t.apply(this,arguments)}return _createClass(MultipleAppLookupSelectField,[{key:o.symbols.type,value:function value(){return Qe}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_select(e)}}]),MultipleAppLookupSelectField}(Ke),et=new(function(e){_inherits(MultipleAppLookupChoiceFieldType,e);var t=_createSuper(MultipleAppLookupChoiceFieldType);function MultipleAppLookupChoiceFieldType(){return _classCallCheck(this,MultipleAppLookupChoiceFieldType),t.apply(this,arguments)}return _createClass(MultipleAppLookupChoiceFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof tt}}]),MultipleAppLookupChoiceFieldType}(Ye))("la","MultipleAppLookupChoiceField","Holds the value of a `multipleapplookup`/`choice` field of a record (and related information)"),tt=function(e){_inherits(MultipleAppLookupChoiceField,e);var t=_createSuper(MultipleAppLookupChoiceField);function MultipleAppLookupChoiceField(){return _classCallCheck(this,MultipleAppLookupChoiceField),t.apply(this,arguments)}return _createClass(MultipleAppLookupChoiceField,[{key:o.symbols.type,value:function value(){return et}}]),MultipleAppLookupChoiceField}(Ke);tt.prototype._inputevent="llchoice";var ot=function(e){_inherits(ControlType,e);var t=_createSuper(ControlType);function ControlType(){return _classCallCheck(this,ControlType),t.apply(this,arguments)}return _createClass(ControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof nt}}]),ControlType}(o.Type),rt=new ot("la","Control","Metainformation about a field in a LivingApps application"),nt=function(e){_inherits(Control,e);var t=_createSuper(Control);function Control(e){var o;return _classCallCheck(this,Control),(o=t.call(this,e))._mode=null,o}return _createClass(Control,[{key:o.symbols.type,value:function value(){return rt}},{key:o.symbols.repr,value:function value(){return"<"+this.constructor.name+" id="+o._repr(this.id)+" identifier="+o._repr(this.identifier)+">"}},{key:"globals",get:function get(){return this.app.globals}},{key:"fulltype",get:function get(){return this.subtype?this.type+"/"+this.subtype:this.type}},{key:"label",get:function get(){var e=this._view_control();if(null===e)return this._label;var t=e.label;return null===t?this._label:t}},{key:"label",set:function set(e){this._label=e}},{key:"description",get:function get(){return this._description}},{key:"description",set:function set(e){this._description=e}},{key:"priority",get:function get(){return this._priority}},{key:"priority",set:function set(e){this._priority=e}},{key:"in_list",get:function get(){return this._priority}},{key:"in_list",set:function set(e){this._priority=e}},{key:"in_mobile_list",get:function get(){return this._in_mobile_list}},{key:"in_mobile_list",set:function set(e){this._in_mobile_list=e}},{key:"in_text",get:function get(){return this._in_text}},{key:"in_text",set:function set(e){this._in_text=e}},{key:"in_structured_search",get:function get(){return this._in_structured_search}},{key:"in_structured_search",set:function set(e){this._in_structured_search=e}},{key:"in_fulltext_search",get:function get(){return this._in_fulltext_search}},{key:"in_fulltext_search",set:function set(e){this._in_fulltext_search=e}},{key:"in_expert_search",get:function get(){return this._in_expert_search}},{key:"in_expert_search",set:function set(e){this._in_expert_search=e}},{key:"default",get:function get(){return null}},{key:"top",get:function get(){var e=this._view_control();return null!==e?e.top:null}},{key:"left",get:function get(){var e=this._view_control();return null!==e?e.left:null}},{key:"width",get:function get(){var e=this._view_control();return null!==e?e.width:null}},{key:"height",get:function get(){var e=this._view_control();return null!==e?e.height:null}},{key:"z_index",get:function get(){var e=this._view_control();return null!==e?e.z_index:null}},{key:"liveupdate",get:function get(){var e=this._view_control();return null!==e&&e.liveupdate}},{key:"tabindex",get:function get(){var e=this._view_control();return null!==e?e.tabindex:null}},{key:"required",get:function get(){var e;if(null===this.app._active_view)return null!==(e=this._required)&&void 0!==e?e:this._required_in_view;var t=this._view_control();return null!==t&&t.required}},{key:"required",set:function set(e){this._required=e}},{key:"mode",get:function get(){if(null!==this._mode)return this._mode;var e=this._view_control();return null!==this.app._active_view&&null===e?null:null===this.app.globals.mode?"display":null!==e?e.mode:"edit"}},{key:"mode",set:function set(e){this._mode=e}},{key:"labelpos",get:function get(){var e=this._view_control();return null!==e?e.labelpos:"left"}},{key:"labelwidth",get:function get(){var e=this._view_control();return null!==e?e.labelwidth:null}},{key:"autoalign",get:function get(){var e=this._view_control();return null===e||e.autoalign}},{key:"in_active_view",get:function get(){return null!==this._view_control()}},{key:"_view_control",value:function _view_control(){if(null===this.app._active_view)return null;var e=this.app._active_view.controls.get(this.identifier);return null!=e?e:null}},{key:"_logsearch",value:function _logsearch(e,t){}},{key:"search",value:function search(e,t){return!1}}]),Control}(r);nt.prototype.type=null,nt.prototype.subtype=null,nt.prototype._ul4onattrs=["identifier","fieldname","app","_label","_description","base_mode","in_sum","_priority","_in_mobile_list","_in_text","_in_structured_search","_in_fulltext_search","_in_expert_search","_required","_required_in_view","order","ininsertprocedure","inupdateprocedure"],nt.prototype._ul4attrs=new Set(["id","identifier","fieldname","app","base_mode","in_sum","priority","in_list","in_mobile_list","in_text","in_structured_search","in_fulltext_search","in_expert_search","order","ininsertprocedure","inupdateprocedure","fulltype","label","description","top","left","width","height","z_index","liveupdate","tabindex","required","mode","labelpos","autoalign","in_active_view"]),nt.prototype._cssclass_root="llft-control",nt.prototype._cssclass_control="input";var lt=new(function(e){_inherits(BoolControlType,e);var t=_createSuper(BoolControlType);function BoolControlType(){return _classCallCheck(this,BoolControlType),t.apply(this,arguments)}return _createClass(BoolControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof at}}]),BoolControlType}(ot))("la","BoolControl","A LivingApps boolean field (type 'bool')"),at=function(e){_inherits(BoolControl,e);var t=_createSuper(BoolControl);function BoolControl(){return _classCallCheck(this,BoolControl),t.apply(this,arguments)}return _createClass(BoolControl,[{key:o.symbols.type,value:function value(){return lt}},{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator&&t.value===e}}]),BoolControl}(nt);at.prototype.type="bool",at.prototype.fieldtype=I;var it=new(function(e){_inherits(IntControlType,e);var t=_createSuper(IntControlType);function IntControlType(){return _classCallCheck(this,IntControlType),t.apply(this,arguments)}return _createClass(IntControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ut}}]),IntControlType}(ot))("la","IntControl","A LivingApps integer field (type 'int')"),ut=function(e){_inherits(IntControl,e);var t=_createSuper(IntControl);function IntControl(){return _classCallCheck(this,IntControl),t.apply(this,arguments)}return _createClass(IntControl,[{key:o.symbols.type,value:function value(){return it}},{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator&&t.value===e}}]),IntControl}(nt);ut.prototype.type="int",ut.prototype.fieldtype=R;var st=new(function(e){_inherits(NumberControlType,e);var t=_createSuper(NumberControlType);function NumberControlType(){return _classCallCheck(this,NumberControlType),t.apply(this,arguments)}return _createClass(NumberControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof pt}}]),NumberControlType}(ot))("la","NumberControl","A LivingApps number field (type 'number')"),pt=function(e){_inherits(NumberControl,e);var t=_createSuper(NumberControl);function NumberControl(){return _classCallCheck(this,NumberControl),t.apply(this,arguments)}return _createClass(NumberControl,[{key:o.symbols.type,value:function value(){return st}},{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator?t.value===e:"range"===t.operator&&(null!==e&&((null===t.minvalue||t.minvalue<=e)&&(null===t.maxvalue||e<t.maxvalue)))}}]),NumberControl}(nt);pt.prototype.type="number",pt.prototype.fieldtype=H,pt.prototype._ul4onattrs=[].concat(_toConsumableArray(nt.prototype._ul4onattrs),["precision","minimum","maximum"]),pt.prototype._ul4attrs=new Set([].concat(_toConsumableArray(nt.prototype._ul4attrs),["precision","minimum","maximum"]));var ct=function(e){_inherits(StringControlType,e);var t=_createSuper(StringControlType);function StringControlType(){return _classCallCheck(this,StringControlType),t.apply(this,arguments)}return _createClass(StringControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ht}}]),StringControlType}(ot),_t=new ct("la","StringControl","A LivingApps number field (type 'string')"),ht=function(e){_inherits(StringControl,e);var t=_createSuper(StringControl);function StringControl(){return _classCallCheck(this,StringControl),t.apply(this,arguments)}return _createClass(StringControl,[{key:o.symbols.type,value:function value(){return _t}},{key:"placeholder",get:function get(){var e=this._view_control();return null!==e?e.placeholder:this._placeholder}},{key:"placeholder",set:function set(e){this._placeholder=e;var t=this.app.globals;if(t._in_form()&&this.app===t.record.app){var o=t.record.fields.get(this.identifier);o._dom_control.placeholder=o.placeholder}}},{key:"_user_placeholder",value:function _user_placeholder(e,t){if(null===t)return null;switch(t){case"{gender}":return null!==e?e.gender:null;case"{title}":return null!==e?e.title:null;case"{firstname}":return null!==e?e.firstname:null;case"{surname}":return null!==e?e.surname:null;case"{account}":return null!==e?e.email:null;case"{streetname}":return null!==e?e.streetname:null;case"{streetnumber}":return null!==e?e.streetnumber:null;case"{street}":return null===e?null:null===e.street?e.streetnumber:null===e.streetnumber?e.street:e.street+" "+e.streetnumber;case"{zip}":return null!==e?e.zip:null;case"{phone}":return null!==e?e.phone:null;case"{fax}":return null!==e?e.fax:null;case"{company}":return null!==e?e.company:null;case"{city}":return null!==e?e.city:null;case"{summary}":return null!==e?e.summary:null;case"{interests}":return null!==e?e.interests:null;case"{personal_website}":return null!==e?e.personal_website:null;case"{company_website}":return null!==e?e.company_website:null;case"{position}":return null!==e?e.position:null;case"{department}":return null!==e?e.department:null;case"{today}":return o.today();default:return t}}},{key:"default",get:function get(){var e=this._view_control();return null===e?null:this._user_placeholder(this.app.globals.user,e.default)}},{key:"minlength",get:function get(){var e=this._view_control();if(null===e)return 0;var t=e.minlength;return null===t||t<0?0:t}},{key:"maxlength",get:function get(){var e=this._view_control();if(null===e)return 4e3;var t=e.maxlength;return null===t||t<0||t>4e3?4e3:t}},{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator?t.value===e:"contains"===t.operator?null===t.value||null===e?t.value===e:e.toLowerCase().indexOf(t.value.toLowerCase())>=0:void 0}}]),StringControl}(nt);ht.prototype.type="string",ht.prototype._ul4attrs=new Set([].concat(_toConsumableArray(nt.prototype._ul4attrs),["minlength","maxlength","placeholder"]));var yt=new(function(e){_inherits(TextControlType,e);var t=_createSuper(TextControlType);function TextControlType(){return _classCallCheck(this,TextControlType),t.apply(this,arguments)}return _createClass(TextControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof dt}}]),TextControlType}(ct))("la","TextControl","A LivingApps text field (type 'string/text')"),dt=function(e){_inherits(TextControl,e);var t=_createSuper(TextControl);function TextControl(){return _classCallCheck(this,TextControl),t.apply(this,arguments)}return _createClass(TextControl,[{key:o.symbols.type,value:function value(){return yt}}]),TextControl}(ht);dt.prototype.subtype="text",dt.prototype.fieldtype=N;var ft=new(function(e){_inherits(PasswordControlType,e);var t=_createSuper(PasswordControlType);function PasswordControlType(){return _classCallCheck(this,PasswordControlType),t.apply(this,arguments)}return _createClass(PasswordControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof vt}}]),PasswordControlType}(ct))("la","PasswordControl","A LivingApps password field (type 'string/password')"),vt=function(e){_inherits(PasswordControl,e);var t=_createSuper(PasswordControl);function PasswordControl(){return _classCallCheck(this,PasswordControl),t.apply(this,arguments)}return _createClass(PasswordControl,[{key:o.symbols.type,value:function value(){return ft}}]),PasswordControl}(ht);vt.prototype.subtype="password",vt.prototype.fieldtype=q;var kt=new(function(e){_inherits(EmailControlType,e);var t=_createSuper(EmailControlType);function EmailControlType(){return _classCallCheck(this,EmailControlType),t.apply(this,arguments)}return _createClass(EmailControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof mt}}]),EmailControlType}(ct))("la","EmailControl","A LivingApps email field (type 'string/email')"),mt=function(e){_inherits(EmailControl,e);var t=_createSuper(EmailControl);function EmailControl(){return _classCallCheck(this,EmailControl),t.apply(this,arguments)}return _createClass(EmailControl,[{key:o.symbols.type,value:function value(){return kt}}]),EmailControl}(ht);mt.prototype.subtype="email",mt.prototype.fieldtype=G;var Ct=new(function(e){_inherits(URLControlType,e);var t=_createSuper(URLControlType);function URLControlType(){return _classCallCheck(this,URLControlType),t.apply(this,arguments)}return _createClass(URLControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof gt}}]),URLControlType}(ct))("la","URLControl","A LivingApps URL field (type 'string/url')"),gt=function(e){_inherits(URLControl,e);var t=_createSuper(URLControl);function URLControl(){return _classCallCheck(this,URLControl),t.apply(this,arguments)}return _createClass(URLControl,[{key:o.symbols.type,value:function value(){return Ct}}]),URLControl}(ht);gt.prototype.subtype="url",gt.prototype.fieldtype=j;var bt=new(function(e){_inherits(TelControlType,e);var t=_createSuper(TelControlType);function TelControlType(){return _classCallCheck(this,TelControlType),t.apply(this,arguments)}return _createClass(TelControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Tt}}]),TelControlType}(ct))("la","TelControl","A LivingApps phone number field (type 'string/tel')"),Tt=function(e){_inherits(TelControl,e);var t=_createSuper(TelControl);function TelControl(){return _classCallCheck(this,TelControl),t.apply(this,arguments)}return _createClass(TelControl,[{key:o.symbols.type,value:function value(){return bt}}]),TelControl}(ht);Tt.prototype.subtype="tel",Tt.prototype.fieldtype=z;var Lt=new(function(e){_inherits(TextAreaControlType,e);var t=_createSuper(TextAreaControlType);function TextAreaControlType(){return _classCallCheck(this,TextAreaControlType),t.apply(this,arguments)}return _createClass(TextAreaControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ft}}]),TextAreaControlType}(ct))("la","TextAreaControl","A LivingApps textarea field (type 'string/textarea')"),Ft=function(e){_inherits(TextAreaControl,e);var t=_createSuper(TextAreaControl);function TextAreaControl(){return _classCallCheck(this,TextAreaControl),t.apply(this,arguments)}return _createClass(TextAreaControl,[{key:o.symbols.type,value:function value(){return Lt}},{key:"maxlength",get:function get(){var e=this._view_control();if(null===e)return null;if(null!==this.encrypted)return null;var t=e.maxlength;return t<0?null:t}}]),TextAreaControl}(ht);Ft.prototype.subtype="textarea",Ft.prototype.fieldtype=J,Ft.prototype._ul4onattrs=[].concat(_toConsumableArray(ht.prototype._ul4onattrs),["encrypted"]),Ft.prototype._ul4attrs=new Set([].concat(_toConsumableArray(ht.prototype._ul4attrs),["encrypted"])),Ft.prototype._cssclass_control="textarea";var At=new(function(e){_inherits(HTMLControlType,e);var t=_createSuper(HTMLControlType);function HTMLControlType(){return _classCallCheck(this,HTMLControlType),t.apply(this,arguments)}return _createClass(HTMLControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof wt}}]),HTMLControlType}(ct))("la","HTMLControl","A LivingApps HTML field (type 'string/html')"),wt=function(e){_inherits(HTMLControl,e);var t=_createSuper(HTMLControl);function HTMLControl(){return _classCallCheck(this,HTMLControl),t.apply(this,arguments)}return _createClass(HTMLControl,[{key:o.symbols.type,value:function value(){return At}}]),HTMLControl}(ht);wt.prototype.subtype="html",wt.prototype.fieldtype=$;var St=function(e){_inherits(DateControlType,e);var t=_createSuper(DateControlType);function DateControlType(){return _classCallCheck(this,DateControlType),t.apply(this,arguments)}return _createClass(DateControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof xt}}]),DateControlType}(ot),Mt=new St("la","DateControl","A LivingApps date field (type 'date/date')"),xt=function(e){_inherits(DateControl,e);var t=_createSuper(DateControl);function DateControl(){return _classCallCheck(this,DateControl),t.apply(this,arguments)}return _createClass(DateControl,[{key:o.symbols.type,value:function value(){return Mt}},{key:"default",get:function get(){var e=this._view_control();return null===e?null:"{today}"===e.default?o.today():null}},{key:"formatstring",value:function formatstring(e){return"de"!==(e=e||this.globals.lang)&&"fr"!==e&&"it"!==e&&(e="en"),this._formatstrings[e]}},{key:"formatstrings_parse",value:function formatstrings_parse(e){return"de"!==(e=e||this.globals.lang)&&"fr"!==e&&"it"!==e&&(e="en"),[].concat(_toConsumableArray(this._formatstrings_parse[e]),_toConsumableArray(this._formatstrings_parse.intl))}},{key:"search",value:function search(e,t){this._logsearch(e,t);var r=t.value;return"[object Date]"==Object.prototype.toString.call(r)&&(r=o._format(r,this.formatstring(),this.app.language)),null!==e&&(e=o._format(e,this.formatstring(),this.app.language)),"equals"===t.operator?r===e:"contains"===t.operator&&(null===r||null===e?r===e:e.toLowerCase().indexOf(r.toLowerCase())>=0)}}]),DateControl}(nt);xt.prototype.type="date",xt.prototype.subtype="date",xt.prototype.fieldtype=ue,xt.prototype._formatstrings={de:"%d.%m.%Y",fr:"%d.%m.%Y",it:"%d.%m.%Y",en:"%m/%d/%Y",intl:"%Y-%m-%d"};var It=[""," %H:%M","T%H:%M"," %H:%M:%S","T%H:%M:%S"," %H:%M:%S.%f","T%H:%M:%S.%f"," %H:%M%z","T%H:%M%z"," %H:%M:%S%z","T%H:%M:%S%z"," %H:%M:%S.%f%z","T%H:%M:%S.%f%z"," %H:%M %z","T%H:%M %z"," %H:%M:%S %z","T%H:%M:%S %z"," %H:%M:%S.%f %z","T%H:%M:%S.%f %z"];xt.prototype._formatstrings_parse={en:It.map((function(e){return"%m/%d/%Y"+e})),de:It.map((function(e){return"%d.%m.%Y"+e})),fr:It.map((function(e){return"%d.%m.%Y"+e})),it:It.map((function(e){return"%d.%m.%Y"+e})),intl:It.map((function(e){return"%Y-%m-%d"+e}))};var Dt=new(function(e){_inherits(DatetimeMinuteControlType,e);var t=_createSuper(DatetimeMinuteControlType);function DatetimeMinuteControlType(){return _classCallCheck(this,DatetimeMinuteControlType),t.apply(this,arguments)}return _createClass(DatetimeMinuteControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Rt}}]),DatetimeMinuteControlType}(St))("la","DatetimeMinuteControl","A LivingApps date field (type 'date/datetimeminute')"),Rt=function(e){_inherits(DatetimeMinuteControl,e);var t=_createSuper(DatetimeMinuteControl);function DatetimeMinuteControl(){return _classCallCheck(this,DatetimeMinuteControl),t.apply(this,arguments)}return _createClass(DatetimeMinuteControl,[{key:o.symbols.type,value:function value(){return Dt}},{key:"default",get:function get(){var e=this._view_control();if(null===e)return null;if("{today}"===e.default){var t=new Date;return t.setSeconds(0),t.setMilliseconds(0),t}return null}}]),DatetimeMinuteControl}(xt);Rt.prototype.subtype="datetimeminute",Rt.prototype.fieldtype=pe,Rt.prototype._formatstrings={de:"%d.%m.%Y %H:%M",fr:"%d.%m.%Y %H:%M",it:"%d.%m.%Y %H:%M",en:"%m/%d/%Y %H:%M",intl:"%Y-%m-%d %H:%M"};var Ot=new(function(e){_inherits(DatetimeSecondControlType,e);var t=_createSuper(DatetimeSecondControlType);function DatetimeSecondControlType(){return _classCallCheck(this,DatetimeSecondControlType),t.apply(this,arguments)}return _createClass(DatetimeSecondControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ht}}]),DatetimeSecondControlType}(St))("la","DatetimeSecondControl","A LivingApps date field (type 'date/datetimesecond')"),Ht=function(e){_inherits(DatetimeSecondControl,e);var t=_createSuper(DatetimeSecondControl);function DatetimeSecondControl(){return _classCallCheck(this,DatetimeSecondControl),t.apply(this,arguments)}return _createClass(DatetimeSecondControl,[{key:o.symbols.type,value:function value(){return Ot}},{key:"default",get:function get(){var e=this._view_control();if(null===e)return null;if("{today}"===e.default){var t=new Date;return t.setMilliseconds(0),t}return null}}]),DatetimeSecondControl}(xt);Ht.prototype.subtype="datetimesecond",Ht.prototype.fieldtype=_e,Ht.prototype._formatstrings={de:"%d.%m.%Y %H:%M:%S",fr:"%d.%m.%Y %H:%M:%S",it:"%d.%m.%Y %H:%M:%S",en:"%m/%d/%Y %H:%M:%S",intl:"%Y-%m-%d %H:%M:%S"};var Pt=function(e){_inherits(LookupControlType,e);var t=_createSuper(LookupControlType);function LookupControlType(){return _classCallCheck(this,LookupControlType),t.apply(this,arguments)}return _createClass(LookupControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Nt}}]),LookupControlType}(ot),Bt=new Pt("la","LookupControl","A LivingApps date field (type 'lookup')"),Nt=function(e){_inherits(LookupControl,e);var t=_createSuper(LookupControl);function LookupControl(){return _classCallCheck(this,LookupControl),t.apply(this,arguments)}return _createClass(LookupControl,[{key:o.symbols.type,value:function value(){return Bt}},{key:"default",get:function get(){var e,t=this._view_control();return null===t?null:null!==(e=this.lookupdata.get(t))&&void 0!==e?e:null}},{key:"autoexpandable",get:function get(){var e=this._view_control();return null!==e&&e.autoexpandable}},{key:"none_key",get:function get(){var e=this._view_control();return null===e?null:e.lookupnonekey}},{key:"none_label",get:function get(){var e=this._view_control();return null===e?null:e.lookupnonelabel}},{key:"search",value:function search(e,t){return"equals"===t.operator&&(null===e?null===t.value:e.key===t.value)}}]),LookupControl}(nt);Nt.prototype.type="lookup",Nt.prototype.fieldtype=me,Nt.prototype._ul4onattrs=[].concat(_toConsumableArray(nt.prototype._ul4onattrs),["lookupdata"]),Nt.prototype._ul4attrs=new Set([].concat(_toConsumableArray(nt.prototype._ul4attrs),["lookupdata"]));var Ut=new(function(e){_inherits(LookupSelectControlType,e);var t=_createSuper(LookupSelectControlType);function LookupSelectControlType(){return _classCallCheck(this,LookupSelectControlType),t.apply(this,arguments)}return _createClass(LookupSelectControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof qt}}]),LookupSelectControlType}(Pt))("la","LookupSelectControl","A LivingApps lookup field (type 'lookup/select')"),qt=function(e){_inherits(LookupSelectControl,e);var t=_createSuper(LookupSelectControl);function LookupSelectControl(){return _classCallCheck(this,LookupSelectControl),t.apply(this,arguments)}return _createClass(LookupSelectControl,[{key:o.symbols.type,value:function value(){return Ut}}]),LookupSelectControl}(Nt);qt.prototype.subtype="select",qt.prototype.fieldtype=Te,qt.prototype._cssclass_control="select";var Vt=new(function(e){_inherits(LookupRadioControlType,e);var t=_createSuper(LookupRadioControlType);function LookupRadioControlType(){return _classCallCheck(this,LookupRadioControlType),t.apply(this,arguments)}return _createClass(LookupRadioControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Gt}}]),LookupRadioControlType}(Pt))("la","LookupRadioControl","A LivingApps lookup field (type 'lookup/radio')"),Gt=function(e){_inherits(LookupRadioControl,e);var t=_createSuper(LookupRadioControl);function LookupRadioControl(){return _classCallCheck(this,LookupRadioControl),t.apply(this,arguments)}return _createClass(LookupRadioControl,[{key:o.symbols.type,value:function value(){return Vt}}]),LookupRadioControl}(Nt);Gt.prototype.subtype="radio",Gt.prototype.fieldtype=ge,Gt.prototype._cssclass_root="llft-element";var Et=new(function(e){_inherits(LookupChoiceControlType,e);var t=_createSuper(LookupChoiceControlType);function LookupChoiceControlType(){return _classCallCheck(this,LookupChoiceControlType),t.apply(this,arguments)}return _createClass(LookupChoiceControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof jt}}]),LookupChoiceControlType}(Pt))("la","LookupChoiceControl","A LivingApps lookup field (type 'lookup/choice')"),jt=function(e){_inherits(LookupChoiceControl,e);var t=_createSuper(LookupChoiceControl);function LookupChoiceControl(){return _classCallCheck(this,LookupChoiceControl),t.apply(this,arguments)}return _createClass(LookupChoiceControl,[{key:o.symbols.type,value:function value(){return Et}}]),LookupChoiceControl}(Nt);jt.prototype.subtype="choice",jt.prototype.fieldtype=Fe,jt.prototype._cssclass_control="select";var Wt=function(e){_inherits(AppLookupControlType,e);var t=_createSuper(AppLookupControlType);function AppLookupControlType(){return _classCallCheck(this,AppLookupControlType),t.apply(this,arguments)}return _createClass(AppLookupControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Yt}}]),AppLookupControlType}(ot),zt=new Wt("la","AppLookupControl","A LivingApps lookup field (type 'applookup')"),Yt=function(e){_inherits(AppLookupControl,e);var t=_createSuper(AppLookupControl);function AppLookupControl(){return _classCallCheck(this,AppLookupControl),t.apply(this,arguments)}return _createClass(AppLookupControl,[{key:o.symbols.type,value:function value(){return zt}},{key:"lookupdata",get:function get(){return null!==this.lookup_app&&null!==this.lookup_app.records?this.lookup_app.records:new Map}},{key:"none_key",get:function get(){var e=this._view_control();return null===e?null:e.lookupnonekey}},{key:"none_label",get:function get(){var e=this._view_control();return null===e?null:e.lookupnonelabel}},{key:"search",value:function search(e,t){return null===e||null===t.value?e===t.value:e.search(t)}}]),AppLookupControl}(nt);Yt.prototype.type="applookup",Yt.prototype.fieldtype=qe,Yt.prototype._ul4onattrs=[].concat(_toConsumableArray(nt.prototype._ul4onattrs),["lookup_app","lookup_controls","local_master_control","local_detail_controls","remote_master_control"]),Yt.prototype._ul4attrs=new Set([].concat(_toConsumableArray(nt.prototype._ul4attrs),["lookup_app","lookup_controls","local_master_control","local_detail_controls","remote_master_control"]));var Jt=new(function(e){_inherits(AppLookupSelectControlType,e);var t=_createSuper(AppLookupSelectControlType);function AppLookupSelectControlType(){return _classCallCheck(this,AppLookupSelectControlType),t.apply(this,arguments)}return _createClass(AppLookupSelectControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Kt}}]),AppLookupSelectControlType}(Wt))("la","AppLookupSelectControl","A LivingApps applookup field (type 'applookup/select')"),Kt=function(e){_inherits(AppLookupSelectControl,e);var t=_createSuper(AppLookupSelectControl);function AppLookupSelectControl(){return _classCallCheck(this,AppLookupSelectControl),t.apply(this,arguments)}return _createClass(AppLookupSelectControl,[{key:o.symbols.type,value:function value(){return Jt}}]),AppLookupSelectControl}(Yt);Kt.prototype.subtype="select",Kt.prototype.fieldtype=Ge,Kt.prototype._cssclass_control="select";var $t=new(function(e){_inherits(AppLookupRadioControlType,e);var t=_createSuper(AppLookupRadioControlType);function AppLookupRadioControlType(){return _classCallCheck(this,AppLookupRadioControlType),t.apply(this,arguments)}return _createClass(AppLookupRadioControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Zt}}]),AppLookupRadioControlType}(Wt))("la","AppLookupRadioControl","A LivingApps applookup field (type 'applookup/radio')"),Zt=function(e){_inherits(AppLookupRadioControl,e);var t=_createSuper(AppLookupRadioControl);function AppLookupRadioControl(){return _classCallCheck(this,AppLookupRadioControl),t.apply(this,arguments)}return _createClass(AppLookupRadioControl,[{key:o.symbols.type,value:function value(){return $t}}]),AppLookupRadioControl}(Yt);Zt.prototype.subtype="radio",Zt.prototype.fieldtype=je;var Qt=new(function(e){_inherits(AppLookupChoiceControlType,e);var t=_createSuper(AppLookupChoiceControlType);function AppLookupChoiceControlType(){return _classCallCheck(this,AppLookupChoiceControlType),t.apply(this,arguments)}return _createClass(AppLookupChoiceControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Xt}}]),AppLookupChoiceControlType}(Wt))("la","AppLookupChoiceControl","A LivingApps applookup field (type 'applookup/choice')"),Xt=function(e){_inherits(AppLookupChoiceControl,e);var t=_createSuper(AppLookupChoiceControl);function AppLookupChoiceControl(){return _classCallCheck(this,AppLookupChoiceControl),t.apply(this,arguments)}return _createClass(AppLookupChoiceControl,[{key:o.symbols.type,value:function value(){return Qt}},{key:"search_url",get:function get(){return"field_"+this.identifier+"_search"}},{key:"search_param_name",get:function get(){return"q"}},{key:"target_param_name",get:function get(){return"target"}}]),AppLookupChoiceControl}(Yt);Xt.prototype.subtype="choice",Xt.prototype.fieldtype=ze,Xt.prototype._cssclass_control="select",Xt.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Yt.prototype._ul4attrs),["search_url","search_param_name","target_param_name"]));var eo=function(e){_inherits(MultipleLookupControlType,e);var t=_createSuper(MultipleLookupControlType);function MultipleLookupControlType(){return _classCallCheck(this,MultipleLookupControlType),t.apply(this,arguments)}return _createClass(MultipleLookupControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof oo}}]),MultipleLookupControlType}(Pt),to=new eo("la","MultipleLookupControl","A LivingApps multiple applookup field (type 'multipleapplookup')"),oo=function(e){_inherits(MultipleLookupControl,e);var t=_createSuper(MultipleLookupControl);function MultipleLookupControl(){return _classCallCheck(this,MultipleLookupControl),t.apply(this,arguments)}return _createClass(MultipleLookupControl,[{key:o.symbols.type,value:function value(){return to}},{key:"default",get:function get(){var e=this._view_control();if(null===e)return null;var t=this.lookupdata.get(e);return void 0!==t?[t]:[]}},{key:"search",value:function search(e,t){if("equals"===t.operator){var o,r=_createForOfIteratorHelper(e);try{for(r.s();!(o=r.n()).done;){if(o.value.key===t.value)return!0}}catch(e){r.e(e)}finally{r.f()}return!1}return!1}}]),MultipleLookupControl}(Nt);oo.prototype.type="multiplelookup",oo.prototype.fieldtype=Se;var ro=new(function(e){_inherits(MultipleLookupCheckboxControlType,e);var t=_createSuper(MultipleLookupCheckboxControlType);function MultipleLookupCheckboxControlType(){return _classCallCheck(this,MultipleLookupCheckboxControlType),t.apply(this,arguments)}return _createClass(MultipleLookupCheckboxControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof no}}]),MultipleLookupCheckboxControlType}(eo))("la","MultipleLookupCheckboxControl","A LivingApps multiplelookup field (type 'multiplelookup/checkbox')"),no=function(e){_inherits(MultipleLookupCheckboxControl,e);var t=_createSuper(MultipleLookupCheckboxControl);function MultipleLookupCheckboxControl(){return _classCallCheck(this,MultipleLookupCheckboxControl),t.apply(this,arguments)}return _createClass(MultipleLookupCheckboxControl,[{key:o.symbols.type,value:function value(){return ro}},{key:"_sel_label",get:function get(){return this._sel_root+" label:not([for]) > span"}}]),MultipleLookupCheckboxControl}(oo);no.prototype.subtype="checkbox",no.prototype.fieldtype=xe,no.prototype._cssclass_root="llft-element";var lo=new(function(e){_inherits(MultipleLookupSelectControlType,e);var t=_createSuper(MultipleLookupSelectControlType);function MultipleLookupSelectControlType(){return _classCallCheck(this,MultipleLookupSelectControlType),t.apply(this,arguments)}return _createClass(MultipleLookupSelectControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ao}}]),MultipleLookupSelectControlType}(eo))("la","MultipleLookupSelectControl","A LivingApps multiplelookup field (type 'multiplelookup/select')"),ao=function(e){_inherits(MultipleLookupSelectControl,e);var t=_createSuper(MultipleLookupSelectControl);function MultipleLookupSelectControl(){return _classCallCheck(this,MultipleLookupSelectControl),t.apply(this,arguments)}return _createClass(MultipleLookupSelectControl,[{key:o.symbols.type,value:function value(){return lo}}]),MultipleLookupSelectControl}(oo);ao.prototype.subtype="select",ao.prototype.fieldtype=De,ao.prototype._cssclass_control="select";var io=new(function(e){_inherits(MultipleLookupChoiceControlType,e);var t=_createSuper(MultipleLookupChoiceControlType);function MultipleLookupChoiceControlType(){return _classCallCheck(this,MultipleLookupChoiceControlType),t.apply(this,arguments)}return _createClass(MultipleLookupChoiceControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof uo}}]),MultipleLookupChoiceControlType}(eo))("la","MultipleLookupChoiceControl","A LivingApps multiplelookup field (type 'multiplelookup/choice')"),uo=function(e){_inherits(MultipleLookupChoiceControl,e);var t=_createSuper(MultipleLookupChoiceControl);function MultipleLookupChoiceControl(){return _classCallCheck(this,MultipleLookupChoiceControl),t.apply(this,arguments)}return _createClass(MultipleLookupChoiceControl,[{key:o.symbols.type,value:function value(){return io}}]),MultipleLookupChoiceControl}(oo);uo.prototype.subtype="choice",uo.prototype.fieldtype=Oe,uo.prototype._cssclass_control="select";var so=function(e){_inherits(MultipleAppLookupControlType,e);var t=_createSuper(MultipleAppLookupControlType);function MultipleAppLookupControlType(){return _classCallCheck(this,MultipleAppLookupControlType),t.apply(this,arguments)}return _createClass(MultipleAppLookupControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof co}}]),MultipleAppLookupControlType}(Wt),po=new so("la","MultipleAppLookupControl","A LivingApps multiple applookup field (type 'multipleapplookup')"),co=function(e){_inherits(MultipleAppLookupControl,e);var t=_createSuper(MultipleAppLookupControl);function MultipleAppLookupControl(){return _classCallCheck(this,MultipleAppLookupControl),t.apply(this,arguments)}return _createClass(MultipleAppLookupControl,[{key:o.symbols.type,value:function value(){return po}},{key:"search",value:function search(e,t){if("equals"===t.operator){if(null===t.value)return 0===e.length;var o,r=_createForOfIteratorHelper(e);try{for(r.s();!(o=r.n()).done;){if(o.value.search(t.value))return!0}}catch(e){r.e(e)}finally{r.f()}return!1}return!1}}]),MultipleAppLookupControl}(Yt);co.prototype.type="multipleapplookup",co.prototype.fieldtype=Ke;var _o=new(function(e){_inherits(MultipleAppLookupSelectControlType,e);var t=_createSuper(MultipleAppLookupSelectControlType);function MultipleAppLookupSelectControlType(){return _classCallCheck(this,MultipleAppLookupSelectControlType),t.apply(this,arguments)}return _createClass(MultipleAppLookupSelectControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ho}}]),MultipleAppLookupSelectControlType}(so))("la","MultipleAppLookupSelectControl","A LivingApps multiple applookup field (type 'multipleapplookup/select')"),ho=function(e){_inherits(MultipleAppLookupSelectControl,e);var t=_createSuper(MultipleAppLookupSelectControl);function MultipleAppLookupSelectControl(){return _classCallCheck(this,MultipleAppLookupSelectControl),t.apply(this,arguments)}return _createClass(MultipleAppLookupSelectControl,[{key:o.symbols.type,value:function value(){return _o}}]),MultipleAppLookupSelectControl}(co);ho.prototype.subtype="select",ho.prototype.fieldtype=Xe,ho.prototype._cssclass_control="select";var yo=new(function(e){_inherits(MultipleAppLookupCheckboxControlType,e);var t=_createSuper(MultipleAppLookupCheckboxControlType);function MultipleAppLookupCheckboxControlType(){return _classCallCheck(this,MultipleAppLookupCheckboxControlType),t.apply(this,arguments)}return _createClass(MultipleAppLookupCheckboxControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof fo}}]),MultipleAppLookupCheckboxControlType}(so))("la","MultipleAppLookupCheckboxControl","A LivingApps multiple applookup field (type 'multipleapplookup/checkbox')"),fo=function(e){_inherits(MultipleAppLookupCheckboxControl,e);var t=_createSuper(MultipleAppLookupCheckboxControl);function MultipleAppLookupCheckboxControl(){return _classCallCheck(this,MultipleAppLookupCheckboxControl),t.apply(this,arguments)}return _createClass(MultipleAppLookupCheckboxControl,[{key:o.symbols.type,value:function value(){return yo}}]),MultipleAppLookupCheckboxControl}(co);fo.prototype.subtype="checkbox",fo.prototype.fieldtype=Ze;var vo=new(function(e){_inherits(MultipleAppLookupChoiceControlType,e);var t=_createSuper(MultipleAppLookupChoiceControlType);function MultipleAppLookupChoiceControlType(){return _classCallCheck(this,MultipleAppLookupChoiceControlType),t.apply(this,arguments)}return _createClass(MultipleAppLookupChoiceControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ko}}]),MultipleAppLookupChoiceControlType}(so))("la","MultipleAppLookupChoiceControl","A LivingApps multiple applookup field (type 'multipleapplookup/choice')"),ko=function(e){_inherits(MultipleAppLookupChoiceControl,e);var t=_createSuper(MultipleAppLookupChoiceControl);function MultipleAppLookupChoiceControl(){return _classCallCheck(this,MultipleAppLookupChoiceControl),t.apply(this,arguments)}return _createClass(MultipleAppLookupChoiceControl,[{key:o.symbols.type,value:function value(){return vo}}]),MultipleAppLookupChoiceControl}(co);ko.prototype.subtype="choice",ko.prototype.fieldtype=tt,ko.prototype._cssclass_control="select";var mo=new(function(e){_inherits(GeoControlType,e);var t=_createSuper(GeoControlType);function GeoControlType(){return _classCallCheck(this,GeoControlType),t.apply(this,arguments)}return _createClass(GeoControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Co}}]),GeoControlType}(ot))("la","GeoControl","A LivingApps geo field (type 'geo')"),Co=function(e){_inherits(GeoControl,e);var t=_createSuper(GeoControl);function GeoControl(){return _classCallCheck(this,GeoControl),t.apply(this,arguments)}return _createClass(GeoControl,[{key:o.symbols.type,value:function value(){return mo}}]),GeoControl}(nt);Co.prototype.type="geo",Co.prototype.fieldtype=Q,Co.prototype._cssclass_root="llft-element";var go=function(e){_inherits(FileControlType,e);var t=_createSuper(FileControlType);function FileControlType(){return _classCallCheck(this,FileControlType),t.apply(this,arguments)}return _createClass(FileControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof To}}]),FileControlType}(ot),bo=new go("la","FileControl","A LivingApps upload field (type 'file')"),To=function(e){_inherits(FileControl,e);var t=_createSuper(FileControl);function FileControl(){return _classCallCheck(this,FileControl),t.apply(this,arguments)}return _createClass(FileControl,[{key:o.symbols.type,value:function value(){return bo}}]),FileControl}(nt);To.prototype.type="file",To.prototype.fieldtype=te,To.prototype._cssclass_root="llft-element";var Lo=new(function(e){_inherits(FileSignatureControlType,e);var t=_createSuper(FileSignatureControlType);function FileSignatureControlType(){return _classCallCheck(this,FileSignatureControlType),t.apply(this,arguments)}return _createClass(FileSignatureControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Fo}}]),FileSignatureControlType}(go))("la","FileSignatureControl","A LivingApps signature image field (type 'file/signature')"),Fo=function(e){_inherits(FileSignatureControl,e);var t=_createSuper(FileSignatureControl);function FileSignatureControl(){return _classCallCheck(this,FileSignatureControl),t.apply(this,arguments)}return _createClass(FileSignatureControl,[{key:o.symbols.type,value:function value(){return Lo}}]),FileSignatureControl}(To);Fo.prototype.subtype="signature",Fo.prototype.fieldtype=re;var Ao=new(function(e){_inherits(ButtonControlType,e);var t=_createSuper(ButtonControlType);function ButtonControlType(){return _classCallCheck(this,ButtonControlType),t.apply(this,arguments)}return _createClass(ButtonControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof wo}}]),ButtonControlType}(ot))("la","ButtonControl","A submit button"),wo=function(e){_inherits(ButtonControl,e);var t=_createSuper(ButtonControl);function ButtonControl(){return _classCallCheck(this,ButtonControl),t.apply(this,arguments)}return _createClass(ButtonControl,[{key:o.symbols.type,value:function value(){return Ao}}]),ButtonControl}(nt);wo.prototype.type="button";var So=new(function(e){_inherits(LookupItemType,e);var t=_createSuper(LookupItemType);function LookupItemType(){return _classCallCheck(this,LookupItemType),t.apply(this,arguments)}return _createClass(LookupItemType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Mo}}]),LookupItemType}(o.Type))("la","LookupItem","An option in a lookup control/field"),Mo=function(e){_inherits(LookupItem,e);var t=_createSuper(LookupItem);function LookupItem(){return _classCallCheck(this,LookupItem),t.apply(this,arguments)}return _createClass(LookupItem,[{key:o.symbols.type,value:function value(){return So}},{key:"label",get:function get(){if(null===this.control)return this._label;var e=this._view_lookupitem();if(null===e)return this._label;var t=e.label;return null===t?this._label:t}},{key:"visible",get:function get(){if(null===this.control)return!0;var e=this._view_lookupitem();return null===e||e.visible}},{key:"_view_lookupitem",value:function _view_lookupitem(){var e=this.control.identifier,t=this.control.app.active_view;if(null!==t&&null!==t.controls){var o=t.controls.get(e);if(void 0!==o&&void 0!==o.lookupdata&&null!==o.lookupdata){var r=o.lookupdata.get(this.key);if(void 0!==r)return r}}return null}},{key:o.symbols.repr,value:function value(){var e="<LookupItem key="+o._repr(this.key)+" label="+o._repr(this.label);return this.visible||(e+="visible=False"),e+">"}}]),LookupItem}(r);Mo.prototype._ul4onattrs=["control","key","_label"],Mo.prototype._ul4attrs=new Set(["id","control","key","label"]);var xo=new(function(e){_inherits(ViewLookupItemType,e);var t=_createSuper(ViewLookupItemType);function ViewLookupItemType(){return _classCallCheck(this,ViewLookupItemType),t.apply(this,arguments)}return _createClass(ViewLookupItemType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Io}}]),ViewLookupItemType}(o.Type))("la","ViewLookupItem","View specific information about a lookup item"),Io=function(e){_inherits(ViewLookupItem,e);var t=_createSuper(ViewLookupItem);function ViewLookupItem(){return _classCallCheck(this,ViewLookupItem),t.apply(this,arguments)}return _createClass(ViewLookupItem,[{key:o.symbols.type,value:function value(){return xo}},{key:o.symbols.repr,value:function value(){var e="<ViewLookupItem key="+o._repr(this.key)+" label="+o._repr(this.label);return this.visible||(e+=" visible=False"),e+">"}}]),ViewLookupItem}(r);Io.prototype._ul4onattrs=["key","label","visible"],Io.prototype._ul4attrs=new Set(["key","label","visible"]);var Do=function(e){_inherits(LayoutControlType,e);var t=_createSuper(LayoutControlType);function LayoutControlType(){return _classCallCheck(this,LayoutControlType),t.apply(this,arguments)}return _createClass(LayoutControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Oo}}]),LayoutControlType}(o.Type),Ro=new Do("la","LayoutControl","A decoration in an input form"),Oo=function(e){_inherits(LayoutControl,e);var t=_createSuper(LayoutControl);function LayoutControl(){return _classCallCheck(this,LayoutControl),t.apply(this,arguments)}return _createClass(LayoutControl,[{key:"LayoutControl",value:function LayoutControl(){this.label=null,this.identifier=null,this.view=null,this.top=null,this.left=null,this.width=null,this.height=null,this._visible=!0}},{key:o.symbols.type,value:function value(){return Ro}},{key:o.symbols.repr,value:function value(){return"<"+this.constructor.name+" id="+o._repr(this.id)+" identifier="+o._repr(this.identifier)+">"}},{key:"globals",get:function get(){return this.view.globals}},{key:"_sel_root",get:function get(){return"#livingapps-form .llft-element.llft-id-"+this.identifier}},{key:"_dom_root",get:function get(){return document.querySelector(this._sel_root)}},{key:"visible",get:function get(){var e;return null===(e=this._visible)||void 0===e||e}},{key:"visible",set:function set(e){this.globals._in_form()&&(this._dom_root.hidden=!e),this._visible=e}},{key:o.symbols.setattr,value:function value(e,t){"visible"===e?this.visible=o._bool(t):_get(_getPrototypeOf(LayoutControl.prototype),o.symbols.setattr,this).call(this,e,t)}}]),LayoutControl}(r);Oo.prototype._ul4onattrs=["label","identifier","view","top","left","width","height"],Oo.prototype._ul4attrs=new Set(["id","label","identifier","view","top","left","width","height","visible"]);var Ho=new(function(e){_inherits(HTMLLayoutControlType,e);var t=_createSuper(HTMLLayoutControlType);function HTMLLayoutControlType(){return _classCallCheck(this,HTMLLayoutControlType),t.apply(this,arguments)}return _createClass(HTMLLayoutControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Po}}]),HTMLLayoutControlType}(Do))("la","HTMLLayoutControl","HTML decoration in an input form"),Po=function(e){_inherits(HTMLLayoutControl,e);var t=_createSuper(HTMLLayoutControl);function HTMLLayoutControl(){return _classCallCheck(this,HTMLLayoutControl),t.apply(this,arguments)}return _createClass(HTMLLayoutControl,[{key:o.symbols.type,value:function value(){return Ho}},{key:"value",get:function get(){return this._value}},{key:"value",set:function set(e){this._value=e,this.globals._in_form()&&this._set_dom_value(this._value)}},{key:"_set_dom_value",value:function _set_dom_value(e){this._dom_root.innerHTML=e}},{key:o.symbols.setattr,value:function value(e,t){"value"===e?this.value=t:_get(_getPrototypeOf(HTMLLayoutControl.prototype),o.symbols.setattr,this).call(this,e,t)}}]),HTMLLayoutControl}(Oo);Po.prototype._ul4onattrs=[].concat(_toConsumableArray(Oo.prototype._ul4onattrs),["_value","_visible"]),Po.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Oo.prototype._ul4attrs),["value"]));var Bo=new(function(e){_inherits(ImageLayoutControlType,e);var t=_createSuper(ImageLayoutControlType);function ImageLayoutControlType(){return _classCallCheck(this,ImageLayoutControlType),t.apply(this,arguments)}return _createClass(ImageLayoutControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof No}}]),ImageLayoutControlType}(Do))("la","ImageLayoutControl","An image decoration in an input form"),No=function(e){_inherits(ImageLayoutControl,e);var t=_createSuper(ImageLayoutControl);function ImageLayoutControl(){return _classCallCheck(this,ImageLayoutControl),t.apply(this,arguments)}return _createClass(ImageLayoutControl,[{key:o.symbols.type,value:function value(){return Bo}},{key:"image",get:function get(){return this._image}},{key:"image",set:function set(e){this._image=e,this.globals._in_form()&&this._set_dom_value(this._image)}},{key:"original",get:function get(){return this.image}},{key:"original",set:function set(e){this.image=image}},{key:"_set_dom_value",value:function _set_dom_value(e){var t=this._dom_root.querySelector("img");if(null!==t){var o=null===e?"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==":this.globals.scaled_url(e,this.width,this.height);t.setAttribute("src",o)}}},{key:o.symbols.setattr,value:function value(e,t){"original"===e?this.original=t:"image"===e?this.image=t:_get(_getPrototypeOf(ImageLayoutControl.prototype),o.symbols.setattr,this).call(this,e,t)}}]),ImageLayoutControl}(Oo);No.prototype._ul4onattrs=[].concat(_toConsumableArray(Oo.prototype._ul4onattrs),["_image","_visible"]),No.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Oo.prototype._ul4attrs),["image","original"]));var Uo=new(function(e){_inherits(ButtonLayoutControlType,e);var t=_createSuper(ButtonLayoutControlType);function ButtonLayoutControlType(){return _classCallCheck(this,ButtonLayoutControlType),t.apply(this,arguments)}return _createClass(ButtonLayoutControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof qo}}]),ButtonLayoutControlType}(Do))("la","ButtonLayoutControl","A submit button in an input form"),qo=function(e){_inherits(ButtonLayoutControl,e);var t=_createSuper(ButtonLayoutControl);function ButtonLayoutControl(){return _classCallCheck(this,ButtonLayoutControl),t.apply(this,arguments)}return _createClass(ButtonLayoutControl,[{key:o.symbols.type,value:function value(){return Uo}}]),ButtonLayoutControl}(Oo);qo.prototype._ul4onattrs=[].concat(_toConsumableArray(Oo.prototype._ul4onattrs),["original","scaled","_visible"]);var Vo=new(function(e){_inherits(ViewControlType,e);var t=_createSuper(ViewControlType);function ViewControlType(){return _classCallCheck(this,ViewControlType),t.apply(this,arguments)}return _createClass(ViewControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Go}}]),ViewControlType}(o.Type))("la","ViewControl","Contains view specific information about a control"),Go=function(e){_inherits(ViewControl,e);var t=_createSuper(ViewControl);function ViewControl(){return _classCallCheck(this,ViewControl),t.apply(this,arguments)}return _createClass(ViewControl,[{key:o.symbols.type,value:function value(){return Vo}},{key:"mode",get:function get(){return this._mode?"display":"edit"}}]),ViewControl}(r);Go.prototype._ul4onattrs=["view","control","top","left","width","height","z_index","liveupdate","default","tabindex","minlength","maxlength","required","placeholder","_mode","labelpos","lookupnonekey","lookupnonelabel","label","autoalign","labelwidth","lookupdata","autoexpandable"],Go.prototype._ul4attrs=new Set(["id","view","control","top","left","width","height","z_index","liveupdate","default","tabindex","minlength","maxlength","required","placeholder","mode","labelpos","lookupnonekey","lookupnonelabel","label","autoalign","labelwidth","lookupdata","autoexpandable"]);var Eo=function(e){_inherits(UserType,e);var t=_createSuper(UserType);function UserType(){return _classCallCheck(this,UserType),t.apply(this,arguments)}return _createClass(UserType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Wo}}]),UserType}(o.Type),jo=new Eo("la","User","A LivingApps user/account"),Wo=function(e){_inherits(User,e);var t=_createSuper(User);function User(){return _classCallCheck(this,User),t.apply(this,arguments)}return _createClass(User,[{key:o.symbols.type,value:function value(){return jo}},{key:o.symbols.repr,value:function value(){return"<User id="+o._repr(this.id)+" firstname="+o._repr(this.firstname)+" surname="+o._repr(this.surname)+" email="+o._repr(this.email)+">"}}]),User}(r);Wo.prototype._ul4onattrs=["_id","gender","title","firstname","surname","initials","email","streetname","streetnumber","zip","city","phone","fax","lang","image","summary","interests","personalwebsite","companywebsite","company","position","department","keyviews","globals"],Wo.prototype._ul4attrs=new Set(["id","globals","_id","gender","title","firstname","surname","initials","email","streetname","streetnumber","zip","city","phone","fax","lang","image","summary","interests","personalwebsite","companywebsite","company","position","department","keyviews"]);var zo=new(function(e){_inherits(FileType,e);var t=_createSuper(FileType);function FileType(){return _classCallCheck(this,FileType),t.apply(this,arguments)}return _createClass(FileType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Yo}}]),FileType}(o.Type))("la","File","An uploaded file"),Yo=function(e){_inherits(File,e);var t=_createSuper(File);function File(){return _classCallCheck(this,File),t.apply(this,arguments)}return _createClass(File,[{key:o.symbols.type,value:function value(){return zo}},{key:o.symbols.repr,value:function value(){return"<File url="+o._repr(this.url)+" filename="+o._repr(this.filename)+">"}},{key:"url",get:function get(){return"https://"+this.globals.hostname+"/files/"+this.contextid+"/"+this.id}},{key:"archive_url",get:function get(){return null===this.archive?this.url:this.archive.url+"/"+this.filename}}]),File}(r);Yo.prototype._ul4onattrs=["globals","filename","mimetype","width","height","internal_id","createdat","size","duration","geo","recordedat","storagefilename","archive","context_id"],Yo.prototype._ul4attrs=new Set(["globals","id","internal_id","url","archive_url","filename","mimetype","width","height","size","duration","geo","recordedat","archive","createdat","context_id"]);var Jo=new(function(e){_inherits(GeoType,e);var t=_createSuper(GeoType);function GeoType(){return _classCallCheck(this,GeoType),t.apply(this,arguments)}return _createClass(GeoType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ko}}]),GeoType}(o.Type))("la","Geo","Geographical coordinates and location information"),Ko=function(e){_inherits(Geo,e);var t=_createSuper(Geo);function Geo(e,o,r){var n,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,Geo),(n=t.call(this,null)).globals=e,n.lat=o,n.long=r,n.info=l,n}return _createClass(Geo,[{key:o.symbols.type,value:function value(){return Jo}},{key:o.symbols.repr,value:function value(){return"<Geo lat="+o._repr(this.lat)+" long="+o._repr(this.long)+" info="+o._repr(this.info)+">"}}]),Geo}(r);Ko.prototype._ul4onattrs=["globals","lat","long","info"],Ko.prototype._ul4attrs=new Set(["globals","lat","long","info"]);var $o=function(e){_inherits(AttachmentType,e);var t=_createSuper(AttachmentType);function AttachmentType(){return _classCallCheck(this,AttachmentType),t.apply(this,arguments)}return _createClass(AttachmentType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Qo}}]),AttachmentType}(o.Type),Zo=new $o("la","Attachment","An attachment of a record"),Qo=function(e){_inherits(Attachment,e);var t=_createSuper(Attachment);function Attachment(e,o,r,n,l,a){var i;return _classCallCheck(this,Attachment),(i=t.call(this,e)).owner=o,i.label=r,i.namespace=n,i.active=l,i.value=a,i}return _createClass(Attachment,[{key:o.symbols.type,value:function value(){return Zo}},{key:o.symbols.repr,value:function value(){return"<"+this.constructor.name+" id="+o._repr(this.id)+" label="+o._repr(this.label)+">"}},{key:"app",get:function get(){return this.owner instanceof y?this.owner:null}},{key:"appgroup",get:function get(){return this.owner instanceof f?this.owner:null}},{key:"record",get:function get(){return this.owner instanceof A?this.owner:null}}]),Attachment}(r);Qo.prototype._ul4onattrs=["owner","label","namespace","active"],Qo.prototype._ul4attrs=new Set(["id","owner","label","namespace","active"]);var Xo=new(function(e){_inherits(NoteAttachmentType,e);var t=_createSuper(NoteAttachmentType);function NoteAttachmentType(){return _classCallCheck(this,NoteAttachmentType),t.apply(this,arguments)}return _createClass(NoteAttachmentType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof er}}]),NoteAttachmentType}($o))("la","NoteAttachment","A note attachment of a record"),er=function(e){_inherits(NoteAttachment,e);var t=_createSuper(NoteAttachment);function NoteAttachment(){return _classCallCheck(this,NoteAttachment),t.apply(this,arguments)}return _createClass(NoteAttachment,[{key:o.symbols.type,value:function value(){return Xo}}]),NoteAttachment}(Qo);er.prototype.type="noteattachment",er.prototype._ul4onattrs=[].concat(_toConsumableArray(Qo.prototype._ul4onattrs),["value"]),er.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Qo.prototype._ul4onattrs),["value"]));var tr=new(function(e){_inherits(URLAttachmentType,e);var t=_createSuper(URLAttachmentType);function URLAttachmentType(){return _classCallCheck(this,URLAttachmentType),t.apply(this,arguments)}return _createClass(URLAttachmentType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof or}}]),URLAttachmentType}($o))("la","URLAttachment","A URL attachment of a record"),or=function(e){_inherits(URLAttachment,e);var t=_createSuper(URLAttachment);function URLAttachment(){return _classCallCheck(this,URLAttachment),t.apply(this,arguments)}return _createClass(URLAttachment,[{key:o.symbols.type,value:function value(){return tr}}]),URLAttachment}(Qo);or.prototype.type="urlattachment",or.prototype._ul4onattrs=[].concat(_toConsumableArray(Qo.prototype._ul4onattrs),["value"]),or.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Qo.prototype._ul4onattrs),["value"]));var rr=new(function(e){_inherits(FileAttachmentType,e);var t=_createSuper(FileAttachmentType);function FileAttachmentType(){return _classCallCheck(this,FileAttachmentType),t.apply(this,arguments)}return _createClass(FileAttachmentType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof nr}}]),FileAttachmentType}($o))("la","FileAttachment","A file attachment of a record"),nr=function(e){_inherits(FileAttachment,e);var t=_createSuper(FileAttachment);function FileAttachment(){return _classCallCheck(this,FileAttachment),t.apply(this,arguments)}return _createClass(FileAttachment,[{key:o.symbols.type,value:function value(){return rr}}]),FileAttachment}(Qo);nr.prototype.type="fileattachment",nr.prototype._ul4onattrs=[].concat(_toConsumableArray(Qo.prototype._ul4onattrs),["value"]),nr.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Qo.prototype._ul4onattrs),["value"]));var lr=new(function(e){_inherits(JSONAttachmentType,e);var t=_createSuper(JSONAttachmentType);function JSONAttachmentType(){return _classCallCheck(this,JSONAttachmentType),t.apply(this,arguments)}return _createClass(JSONAttachmentType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ar}}]),JSONAttachmentType}($o))("la","JSONAttachment","A JSON attachment of a record"),ar=function(e){_inherits(JSONAttachment,e);var t=_createSuper(JSONAttachment);function JSONAttachment(){return _classCallCheck(this,JSONAttachment),t.apply(this,arguments)}return _createClass(JSONAttachment,[{key:o.symbols.type,value:function value(){return lr}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return"value"===e?o._asjson(this.value):this[e]}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){"value"===e?this.value=o._fromjson(t):this[e]=t}}]),JSONAttachment}(Qo);ar.prototype.type="jsonattachment",ar.prototype._ul4onattrs=[].concat(_toConsumableArray(Qo.prototype._ul4onattrs),["value"]),ar.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Qo.prototype._ul4onattrs),["value"]));var ir=new(function(e){_inherits(DataActionType,e);var t=_createSuper(DataActionType);function DataActionType(){return _classCallCheck(this,DataActionType),t.apply(this,arguments)}return _createClass(DataActionType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ur}}]),DataActionType}(o.Type))("la","DataAction","A data action configured for an app."),ur=function(e){_inherits(DataAction,e);var t=_createSuper(DataAction);function DataAction(){return _classCallCheck(this,DataAction),t.apply(this,arguments)}return _createClass(DataAction,[{key:o.symbols.type,value:function value(){return ir}},{key:o.symbols.repr,value:function value(){return"<"+this.constructor.name+" id="+o._repr(this.id)+" identifier="+o._repr(this.identifier)+">"}}]),DataAction}(r);ur.prototype._ul4onattrs=["app","identifier","label","order","permission","active","icon","description","message","filter","as_multiple_action","as_single_action","as_mail_link","before_record_update_form","after_record_update","after_record_insert","before_record_delete"],ur.prototype._ul4attrs=new Set(["app","id","identifier","label","order","permission","active","icon","description","message","filter","as_multiple_action","as_single_action","as_link","before_record_update_form","after_record_update","after_record_insert","before_record_delete"]);var sr=new(function(e){_inherits(InstallationType,e);var t=_createSuper(InstallationType);function InstallationType(){return _classCallCheck(this,InstallationType),t.apply(this,arguments)}return _createClass(InstallationType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof pr}}]),InstallationType}(o.Type))("la","Installation","The installation that created an app"),pr=function(e){_inherits(Installation,e);var t=_createSuper(Installation);function Installation(){return _classCallCheck(this,Installation),t.apply(this,arguments)}return _createClass(Installation,[{key:o.symbols.type,value:function value(){return sr}},{key:o.symbols.repr,value:function value(){return"<Installation id="+o._repr(this.id)+" name="+o._repr(this.name)+">"}}]),Installation}(r);pr.prototype._ul4onattrs=["name"],pr.prototype._ul4attrs=new Set(["id","name"]);var cr=new(function(e){_inherits(CategoryType,e);var t=_createSuper(CategoryType);function CategoryType(){return _classCallCheck(this,CategoryType),t.apply(this,arguments)}return _createClass(CategoryType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof _r}}]),CategoryType}(o.Type))("la","Category","A navigation category"),_r=function(e){_inherits(Category,e);var t=_createSuper(Category);function Category(){return _classCallCheck(this,Category),t.apply(this,arguments)}return _createClass(Category,[{key:o.symbols.type,value:function value(){return cr}},{key:o.symbols.repr,value:function value(){for(var e=[],t=this;null!==t;)e.splice(0,0,t.identifier),t=t.parent;return"<Category id="+o._repr(this.id)+" identifierpath="+o._repr(e.join("/"))+NaN+o._repr(this.name)+">"}}]),Category}(r);_r.prototype._ul4onattrs=["identifier","name","order","parent","children","apps"],_r.prototype._ul4attrs=new Set(["id","identifier","name","order","parent","children","apps"]);var hr=new(function(e){_inherits(KeyViewType,e);var t=_createSuper(KeyViewType);function KeyViewType(){return _classCallCheck(this,KeyViewType),t.apply(this,arguments)}return _createClass(KeyViewType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof yr}}]),KeyViewType}(o.Type))("la","KeyView","Object granting access to a view template"),yr=function(e){_inherits(KeyView,e);var t=_createSuper(KeyView);function KeyView(){return _classCallCheck(this,KeyView),t.apply(this,arguments)}return _createClass(KeyView,[{key:o.symbols.type,value:function value(){return hr}},{key:o.symbols.repr,value:function value(){return"<KeyView id="+o._repr(this.id)+" identifier="+o._repr(this.identifier)+">"}}]),KeyView}(r);yr.prototype._ul4onattrs=["identifier","name","key","user"],yr.prototype._ul4attrs=new Set(["id","identifier","name","key","user"]);var dr=function(e){_inherits(AppParameterType,e);var t=_createSuper(AppParameterType);function AppParameterType(){return _classCallCheck(this,AppParameterType),t.apply(this,arguments)}return _createClass(AppParameterType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof vr}}]),AppParameterType}(o.Type),fr=new dr("la","AppParameter","A parameter of a LivingApps application"),vr=function(e){_inherits(AppParameter,e);var t=_createSuper(AppParameter);function AppParameter(){return _classCallCheck(this,AppParameter),t.apply(this,arguments)}return _createClass(AppParameter,[{key:o.symbols.type,value:function value(){return fr}},{key:o.symbols.repr,value:function value(){return"<AppParameter id="+o._repr(this.id)+" identifier="+o._repr(this.identifier)+">"}},{key:"app",get:function get(){return this.owner instanceof y?this.owner:null}},{key:"appgroup",get:function get(){return this.owner instanceof f?this.owner:null}},{key:"full_identifier",get:function get(){return null===this.namespace||null===this.identifier?this.identifier:"".concat(this.namespace,".").concat(this.identifier)}}]),AppParameter}(r);vr.prototype._ul4onattrs=["owner","parent","type","order","identifier","namespace","description","value","createdat","createdby","updatedat","updatedby"],vr.prototype._ul4attrs=new Set(["id","owner","parent","app","type","order","identifier","namespace","full_identifier","description","value","createdat","createdby","updatedat","updatedby"]);var kr=new(function(e){_inherits(MutableAppParameterType,e);var t=_createSuper(MutableAppParameterType);function MutableAppParameterType(){return _classCallCheck(this,MutableAppParameterType),t.apply(this,arguments)}return _createClass(MutableAppParameterType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof mr}}]),MutableAppParameterType}(dr))("la","MutableAppParameter","A mutable parameter of a LivingApps application"),mr=function(e){_inherits(MutableAppParameter,e);var t=_createSuper(MutableAppParameter);function MutableAppParameter(){return _classCallCheck(this,MutableAppParameter),t.apply(this,arguments)}return _createClass(MutableAppParameter,[{key:o.symbols.type,value:function value(){return kr}},{key:o.symbols.repr,value:function value(){return"<MutableAppParameter id="+o._repr(this.id)+" identifier="+o._repr(this.identifier)+">"}}]),MutableAppParameter}(vr),Cr=function(e){_inherits(MenuItemType,e);var t=_createSuper(MenuItemType);function MenuItemType(){return _classCallCheck(this,MenuItemType),t.apply(this,arguments)}return _createClass(MenuItemType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof br}}]),MenuItemType}(o.Type),gr=new Cr("la","MenuItem","An additional menu item in an app that links to a target page."),br=function(e){_inherits(MenuItem,e);var t=_createSuper(MenuItem);function MenuItem(){return _classCallCheck(this,MenuItem),t.apply(this,arguments)}return _createClass(MenuItem,[{key:o.symbols.type,value:function value(){return gr}},{key:o.symbols.repr,value:function value(){return"<MenuItem id="+o._repr(this.id)+"identifier="+o._repr(this.identifier)+" label="+o._repr(this.label)+" type="+o._repr(this.type)+">"}}]),MenuItem}(r);br.prototype._ul4onattrs=["app","identifier","label","type","icon","title","target","cssclass","url","order","start_time","end_time","on_app_overview_page","on_app_detail_page","on_form_page","on_iframe_page","on_view_template","on_custom_overview_page","accessible","children","createdat","createdby","updatedat","updatedby"],br.prototype._ul4attrs=new Set(["id","app","identifier","label","type","icon","title","target","cssclass","url","order","start_time","end_time","on_app_overview_page","on_app_detail_page","on_form_page","on_iframe_page","on_view_template","on_custom_overview_page","accessible","children","createdat","createdby","updatedat","updatedby"]);var Tr=new Cr("la","Panel","An additional panel in an app that is displayed on various LivingApps pages and links to a target page."),Lr=function(e){_inherits(Panel,e);var t=_createSuper(Panel);function Panel(){return _classCallCheck(this,Panel),t.apply(this,arguments)}return _createClass(Panel,[{key:o.symbols.type,value:function value(){return Tr}},{key:o.symbols.repr,value:function value(){return"<Panel id="+o._repr(this.id)+"identifier="+o._repr(this.identifier)+" label="+o._repr(this.label)+" type="+o._repr(this.type)+">"}}]),Panel}(br);Lr.prototype._ul4onattrs=[].concat(_toConsumableArray(br.prototype._ul4onattrs),["description","description_url","image","row","column","width","height","header_type","header_background","text_color","background_color1","background_color2"]),Lr.prototype._ul4attrs=new Set([].concat(_toConsumableArray(br.prototype._ul4attrs),["description","description_url","image","row","column","width","height"]));var Fr=new Eo("la","ViewTemplateInfo","basic information about a view template"),Ar=function(e){_inherits(ViewTemplateInfo,e);var t=_createSuper(ViewTemplateInfo);function ViewTemplateInfo(){return _classCallCheck(this,ViewTemplateInfo),t.apply(this,arguments)}return _createClass(ViewTemplateInfo,[{key:o.symbols.type,value:function value(){return Fr}},{key:o.symbols.repr,value:function value(){return"<ViewTemplateInfo id="+o._repr(this.id)+" identifier="+o._repr(this.identifier)+" name="+o._repr(this.name)+">"}}]),ViewTemplateInfo}(r);Ar.prototype._ul4onattrs=["app","identifier","name","icon","type","mimetype","permission_level"],Ar.prototype._ul4attrs=new Set(["app","id","identifier","name","icon","type","mimetype","permission_level"]);var wr=new(function(e){_inherits(FormType,e);var t=_createSuper(FormType);function FormType(){return _classCallCheck(this,FormType),t.apply(this,arguments)}return _createClass(FormType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Sr}}]),FormType}(o.Type))("la","Form","The input form."),Sr=function(e){_inherits(Form,e);var t=_createSuper(Form);function Form(e,o){var r;_classCallCheck(this,Form),(r=t.call(this)).globals=e,r.template=o,r._geo_wired=!1;var n,l=_createForOfIteratorHelper(e.record.fields.values());try{for(l.s();!(n=l.n()).done;){var a=n.value;r.wire_field(a)}}catch(e){l.e(e)}finally{l.f()}return r.render_template(null),r}return _createClass(Form,[{key:o.symbols.type,value:function value(){return wr}},{key:"_dom_button",get:function get(){return document.querySelector(this._sel_form+" "+this._sel_button)}},{key:"enabled",get:function get(){return!this._dom_button.disabled}},{key:"enabled",set:function set(e){this._dom_button.disabled=!e}},{key:o.symbols.getattr,value:function value(e){if("enabled"===e)return this.enabled;throw new o.AttributeError(this,e)}},{key:o.symbols.setattr,value:function value(e,t){if("enabled"!==e)throw new o.AttributeError(this,e);this.enabled=o._bool(t)}},{key:o.symbols.repr,value:function value(){return"<"+this.constructor.name+" enabled="+o._repr(this.enabled)+">"}},{key:"toString",value:function toString(){return this[o.symbols.repr]()}},{key:"render_template",value:function render_template(e){var t=this,r={datasources:this.globals.datasources,record:this.globals.record,app:this.globals.app,fields:this.globals.record.fields,identifier:e},n={globals:this.globals,form:this,la:Dr},l="LivingApps update template: ";l+=null===e?"Initialization":"Value change in "+o._repr(e),this.globals.group_logging(l,(function(){try{t.template.renders(r,n)}catch(e){console&&console.error&&(t.globals._start_log_message(),console.group&&console.group("UL4 stacktrace"),o.report_exc(e),console.groupEnd&&console.groupEnd(),console.groupCollapsed&&console.groupCollapsed("Javascript stacktrace"),console.error(e),console.groupEnd&&console.groupEnd())}}))}},{key:"wire_geo",value:function wire_geo(){var e=this;if(!this._geo_wired){if(null!==this.globals.app.active_view&&navigator.geolocation){var t=this.globals.app.active_view.use_geo;"once"!==t&&"watch"!==t||navigator.geolocation.getCurrentPosition((function(t){e.globals.mode=e.globals.mode.substring(0,e.globals.mode.lastIndexOf("/")+1)+"geo",e.globals.set_current_geo(t),e.render_template(null)})),"watch"===t&&navigator.geolocation.watchPosition((function(t){e.globals.mode=e.globals.mode.substring(0,e.globals.mode.lastIndexOf("/")+1)+"geo",e.globals.set_current_geo(t),e.render_template(null)}))}this._geo_wired=!0}}},{key:"wire_field",value:function wire_field(e){var t,o=this,r=_createForOfIteratorHelper(e._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.addEventListener(e._inputevent,(function(t){o.wire_geo(),o.globals.mode=o.globals.mode.substring(0,o.globals.mode.lastIndexOf("/")+1)+"input",o.render_template(e.control.identifier)}))}}catch(e){r.e(e)}finally{r.f()}}}]),Form}(o.Proto);Sr.prototype._ul4attrs=new Set(["enabled"]),Sr.prototype._sel_form="#livingapps-form form",Sr.prototype._sel_button="[type=submit]";for(var Mr=0,xr=[a,u,y,f,k,br,Lr,C,g,T,A,at,ut,pt,dt,mt,gt,Tt,Ft,xt,Rt,Ht,Nt,qt,Gt,jt,Yt,Kt,Zt,Xt,oo,ao,no,uo,co,ho,fo,ko,Co,To,Fo,wo,M,I,N,G,j,z,J,$,R,H,Q,te,re,ae,ue,pe,_e,fe,me,Se,Be,qe,Ke,Mo,Io,Oo,Po,No,qo,Go,Wo,Yo,Ko,er,or,nr,ar,ur,pr,_r,yr,vr,mr,Ar];Mr<xr.length;Mr++){var Ir=xr[Mr];o.register("de.livinglogic.livingapi."+Ir.name.toLowerCase(),Ir)}var Dr=new o.Module("la","LivingAPI types",{FlashMessage:u,File:Yo,Geo:Ko,User:Wo,KeyView:yr,Globals:a,App:y,AppGroup:f,TextControl:dt,URLControl:gt,EmailControl:mt,PasswordControl:vt,TelControl:Tt,TextAreaControl:Ft,HTMLControl:wt,IntControl:ut,NumberControl:pt,DateControl:xt,DatetimeMinuteControl:Rt,DatetimeSecondControl:Ht,BoolControl:at,LookupSelectControl:qt,LookupRadioControl:Gt,LookupChoiceControl:jt,AppLookupSelectControl:Kt,AppLookupRadioControl:Zt,AppLookupChoiceControl:Xt,MultipleLookupSelectControl:ao,MultipleLookupCheckboxControl:no,MultipleLookupChoiceControl:uo,MultipleAppLookupSelectControl:ho,MultipleAppLookupCheckboxControl:fo,MultipleAppLookupChoiceControl:ko,FileControl:To,FileSignatureControl:Fo,GeoControl:Co,ViewControl:Go,RecordChildren:T,Record:A,FileAttachment:nr,URLAttachment:or,NoteAttachment:er,JSONAttachment:ar,DataAction:ur,Installation:pr,HTMLLayoutControl:Po,ImageLayoutControl:No,ButtonLayoutControl:qo,View:k,DataSource:C,DataSourceChildren:g,LookupItem:Mo,ViewLookupItem:Io,Category:_r,AppParameter:vr,MutableAppParameter:mr,MenuItem:br,Panel:Lr,ViewTemplateInfo:Ar});e.App=y,e.AppGroup=f,e.AppLookupChoiceControl=Xt,e.AppLookupChoiceField=ze,e.AppLookupControl=Yt,e.AppLookupField=qe,e.AppLookupFieldBase=Be,e.AppLookupRadioControl=Zt,e.AppLookupRadioField=je,e.AppLookupSelectControl=Kt,e.AppLookupSelectField=Ge,e.AppParameter=vr,e.Attachment=Qo,e.Base=r,e.BoolControl=at,e.BoolField=I,e.ButtonControl=wo,e.ButtonLayoutControl=qo,e.Category=_r,e.ChoiceFieldBase=he,e.Control=nt,e.DataAction=ur,e.DataSource=C,e.DataSourceChildren=g,e.DateControl=xt,e.DateField=ue,e.DateFieldBase=ae,e.DatetimeMinuteControl=Rt,e.DatetimeMinuteField=pe,e.DatetimeSecondControl=Ht,e.DatetimeSecondField=_e,e.EmailControl=mt,e.EmailField=G,e.Field=M,e.File=Yo,e.FileAttachment=nr,e.FileControl=To,e.FileField=te,e.FileSignatureControl=Fo,e.FileSignatureField=re,e.FlashMessage=u,e.Form=Sr,e.Geo=Ko,e.GeoControl=Co,e.GeoField=Q,e.Globals=a,e.HTMLControl=wt,e.HTMLField=$,e.HTMLLayoutControl=Po,e.Handler=n,e.ImageLayoutControl=No,e.Installation=pr,e.IntControl=ut,e.IntField=R,e.JSONAttachment=ar,e.KeyView=yr,e.LayoutControl=Oo,e.LookupChoiceControl=jt,e.LookupChoiceField=Fe,e.LookupControl=Nt,e.LookupField=me,e.LookupFieldBase=fe,e.LookupItem=Mo,e.LookupRadioControl=Gt,e.LookupRadioField=ge,e.LookupSelectControl=qt,e.LookupSelectField=Te,e.MenuItem=br,e.MultipleAppLookupCheckboxControl=fo,e.MultipleAppLookupCheckboxField=Ze,e.MultipleAppLookupChoiceControl=ko,e.MultipleAppLookupChoiceField=tt,e.MultipleAppLookupControl=co,e.MultipleAppLookupField=Ke,e.MultipleAppLookupSelectControl=ho,e.MultipleAppLookupSelectField=Xe,e.MultipleLookupCheckboxControl=no,e.MultipleLookupCheckboxField=xe,e.MultipleLookupChoiceControl=uo,e.MultipleLookupChoiceField=Oe,e.MultipleLookupControl=oo,e.MultipleLookupField=Se,e.MultipleLookupSelectControl=ao,e.MultipleLookupSelectField=De,e.MutableAppParameter=mr,e.NoteAttachment=er,e.NumberControl=pt,e.NumberField=H,e.Panel=Lr,e.PasswordControl=vt,e.PasswordField=q,e.Permission=p,e.Record=A,e.RecordChildren=T,e.StringControl=ht,e.StringField=N,e.TelControl=Tt,e.TelField=z,e.TextAreaControl=Ft,e.TextAreaField=J,e.TextControl=dt,e.URLAttachment=or,e.URLControl=gt,e.URLField=j,e.User=Wo,e.View=k,e.ViewControl=Go,e.ViewLookupItem=Io,e.ViewTemplateInfo=Ar,e.element=element,e.module=Dr,e.url_with_params=url_with_params,e.version="1.31.0",Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@livinglogic/ul4")):"function"==typeof define&&define.amd?define(["exports","@livinglogic/ul4"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).la={},e.ul4)}(this,(function(e,t){"use strict";function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var n=_interopNamespace(t);function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var n,r=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,n){var r=_superPropBase(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function set(e,t,n,r){return(set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function set(e,t,n,r){var o,l=_superPropBase(e,t);if(l){if((o=Object.getOwnPropertyDescriptor(l,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else!function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(r,t,n);return!0})(e,t,n,r)}function _set(e,t,n,r,o){if(!set(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,l=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(l.push(r.value),!t||l.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(i)throw o}}return l}(e,t)||_unsupportedIterableToArray(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_unsupportedIterableToArray(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,F=function(){};return{s:F,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){a=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(a)throw o}}}}function element(e){for(var t=document.createElement(e),r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];for(var a=0,i=o;a<i.length;a++){var u=i[a];"string"==typeof u&&t.appendChild(document.createTextNode(u));var s=u instanceof Map,p=n._isobject(u);if(s||p){p&&(u=Object.entries(u));var c,_=_createForOfIteratorHelper(u);try{for(_.s();!(c=_.n()).done;){var h=_slicedToArray(c.value,2),y=h[0],d=h[1];null!==d&&t.setAttribute(y,d)}}catch(e){_.e(e)}finally{_.f()}}}return t}function _append_param_to_url(e,t,r){if(n._islist(r)||n._isset(r)){var o,l=_createForOfIteratorHelper(r);try{for(l.s();!(o=l.n()).done;){_append_param_to_url(e,t,o.value)}}catch(e){l.e(e)}finally{l.f()}}else"string"==typeof r?e.append(t,r):null!==r&&e.append(t,n._str(r))}function url_with_params(e){for(var t=new URLSearchParams,r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];for(var a=0,i=o;a<i.length;a++){var u=i[a];if(n._islist(u)&&2==u.length)_append_param_to_url.apply(void 0,[t].concat(_toConsumableArray(u)));else if("[object Object]"!==Object.prototype.toString.call(u)||u instanceof n.Proto){if(null!==u&&"object"===_typeof(u)&&"object"===_typeof(u.__proto__)&&u.__proto__===Map.prototype){var s,p=_createForOfIteratorHelper(u);try{for(p.s();!(s=p.n()).done;){var c=_slicedToArray(s.value,2),_=c[0],h=c[1];_append_param_to_url(t,_,h)}}catch(e){p.e(e)}finally{p.f()}}}else for(var y in u)_append_param_to_url(t,y,u[y])}return(t=t.toString().replace("+","%20")).length>0&&(e+="?"+t),e}var r=function(e){_inherits(Base,e);var t=_createSuper(Base);function Base(e){var n;return _classCallCheck(this,Base),(n=t.call(this)).id=e,n}return _createClass(Base,[{key:"ul4onid",get:function get(){return this.id}},{key:"ul4ondump",value:function ul4ondump(e){for(var t=0;t<this._ul4onattrs.length;++t)e.dump(this._dumpUL4ONAttr(this._ul4onattrs[t]))}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return this[e]}},{key:"ul4onload",value:function ul4onload(e){for(var t=0,n=e.loadcontent();;++t){var r=n.next();if(r.done)break;t<this._ul4onattrs.length&&this._loadUL4ONAttr(this._ul4onattrs[t],r.value)}for(;t<this._ul4onattrs.length;++t)this._setDefaultUL4ONAttr(this._ul4onattrs[t])}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){this[e]=t}},{key:"_setDefaultUL4ONAttr",value:function _setDefaultUL4ONAttr(e){this[e]=null}},{key:n.symbols.getattr,value:function value(e){if(this._ul4attrs.has(e)){var value=this[e];if("function"==typeof value){var t=value.bind(this);return t._ul4_name=value._ul4_name||value.name,t._ul4_signature=value._ul4_signature,t._ul4_needsobject=value._ul4_needsobject,t._ul4_needscontext=value._ul4_needscontext,t}return value}if(e.startsWith("x_"))return this.hasOwnProperty(e)?this[e]:null;throw new n.AttributeError(this,e)}},{key:n.symbols.setattr,value:function value(e,t){if(!e.startsWith("x_"))throw new n.AttributeError(this,e);this[e]=t}},{key:n.symbols.repr,value:function value(){return"<"+this.constructor.name+">"}},{key:"toString",value:function toString(){return this[n.symbols.repr]()}}]),Base}(n.Proto),o=function(){function Handler(){_classCallCheck(this,Handler)}return _createClass(Handler,[{key:"save",value:function save(e){}},{key:"delete",value:function _delete(e){}}]),Handler}(),l=new(function(e){_inherits(GlobalsType,e);var t=_createSuper(GlobalsType);function GlobalsType(){return _classCallCheck(this,GlobalsType),t.apply(this,arguments)}return _createClass(GlobalsType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof a}}]),GlobalsType}(n.Type))("la","Globals","Global information"),a=function(e){_inherits(Globals,e);var t=_createSuper(Globals);function Globals(e){var n;return _classCallCheck(this,Globals),(n=t.call(this,e)).version=null,n.hostname=null,n.free=!1,n.platform=null,n.user=null,n.lang=null,n.datasources=null,n.app=null,n.record=null,n.mode=null,n.groups=null,n.maxdbactions=null,n.maxtemplateruntime=null,n.flashmessages=null,n.view_template_id=null,n.email_template_id=null,n.handler=new o,n._log_stack=[],n._current_geo=null,n._next_attachment_id=0,n}return _createClass(Globals,[{key:n.symbols.type,value:function value(){return l}},{key:"dist",value:function dist(e,t){var n=function sqsin(e){return(e=Math.sin(e))*e},r=function sqsos(e){return(e=Math.cos(e))*e},o=Math.PI/180,l=1/298.257223563,a=e.lat*o,i=e.long*o,u=t.lat*o,s=(a+u)/2,p=(a-u)/2,c=(i-t.long*o)/2,_=n(p)*r(c)+r(s)*n(c),h=r(p)*r(c)+n(s)*n(c),y=Math.atan(Math.sqrt(_/h)),d=2*y*6378.137;if(0===d)return d;var f=Math.sqrt(_*h)/y,v=(3*f+1)/(2*_);return d*(1+l*((3*f-1)/(2*h))*n(s)*r(p)-l*v*r(s)*n(p))}},{key:"scaled_url",value:function scaled_url(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"fill",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"sm",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,i=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,s=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,p=arguments.length>10&&void 0!==arguments[10]?arguments[10]:null,c=!(arguments.length>11&&void 0!==arguments[11])||arguments[11],_=null;e instanceof lr&&(e=e.archive_url,(_=encodeURIComponent(e.filename))!=e.filename&&(_=null));var h="https://"+this.hostname;return h+=c?"/imgproxycache/insecure":"/imgproxy/insecure","fit"!==r&&(h+="/rt:"+r),null!=t&&(h+="/w:"+t),null!=n&&(h+="/h:"+n),o&&(h+="/el:1"),null!=l&&(h+="/g:"+l),null!=a&&(h+="/q:"+a),null!==i&&i%360!=0&&(h+="/rot:"+rotatet),null!=u&&(h+="/bl:"+u),null!=s&&(h+="/sh:"+s),null!=p&&(h+="/f:"+p),null!=_&&(h+="/fn:"+_),h+="/plain/"+encodeURIComponent(e)}},{key:"qrcode_url",value:function qrcode_url(e,t){return"https://"+this.hostname+"/qr/generate?data="+encodeURIComponent(e)+"&size="+encodeURIComponent(t)}},{key:n.symbols.repr,value:function value(){return"<Globals version="+n._repr(this.version)+" mode="+n._repr(this.mode)+">"}},{key:"current_geo",value:function current_geo(){return this._current_geo}},{key:"set_current_geo",value:function set_current_geo(e){this._current_geo=new ir(this,e.coords.latitude,e.coords.longitude)}},{key:"_in_form",value:function _in_form(){return null!==this.mode&&this.mode.startsWith("form/")}},{key:"msg_bool",value:function msg_bool(e){switch(e){case!0:return this.msg_bool_true();case!1:return this.msg_bool_false();default:return null}}},{key:"msg_bool_true",value:function msg_bool_true(e){switch(this.lang){case"de":return"Ja";default:return"Yes"}}},{key:"msg_bool_false",value:function msg_bool_false(e){switch(this.lang){case"de":return"Nein";default:return"No"}}},{key:"msg_no_fields",value:function msg_no_fields(){switch(this.lang){case"de":return"(Keine Felder gefunden)";default:return"(No fields found)"}}},{key:"msg_nothing_selected",value:function msg_nothing_selected(){switch(this.lang){case"de":return"(Nichts ausgewählt)";default:return"(Nothing selected)"}}},{key:"_make_log_message",value:function _make_log_message(e){return e.map((function(e){return"string"!=typeof e?n._repr(e):e})).join(" ")}},{key:"begin_logging",value:function begin_logging(e){this._log_stack.push({header:e,output:!1})}},{key:"end_logging",value:function end_logging(){this._log_stack&&(this._log_stack[this._log_stack.length-1].output&&console&&console.groupEnd&&console.groupEnd(),this._log_stack.pop())}},{key:"group_logging",value:function group_logging(e,t){this.begin_logging(e);try{t()}finally{this.end_logging()}}},{key:"_start_log_message",value:function _start_log_message(){var e,t=_createForOfIteratorHelper(this._log_stack);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.output||(console&&console.group&&console.group(n.header),n.output=!0)}}catch(e){t.e(e)}finally{t.f()}}},{key:"log_debug",value:function log_debug(e){this._start_log_message(),console&&console.debug&&console.debug(this._make_log_message(e))}},{key:"log_info",value:function log_info(e){this._start_log_message(),console&&console.info&&console.info(this._make_log_message(e))}},{key:"log_warning",value:function log_warning(e){this._start_log_message(),console&&console.warn&&console.warn(this._make_log_message(e))}},{key:"log_error",value:function log_error(e){this._start_log_message(),console&&console.error&&console.error(this._make_log_message(e))}},{key:"my_apps_url",value:function my_apps_url(){return"https://"+this.hostname+"/apps.htm"}},{key:"my_tasks_url",value:function my_tasks_url(){return"https://"+this.hostname+"/xist4c/web/aufgaben_id_393_.htm"}},{key:"catalog_url",value:function catalog_url(){return"https://"+this.hostname+"/katalog/home.htm"}},{key:"chats_url",value:function chats_url(){return"https://"+this.hostname+"/chats.htm"}},{key:"profile_url",value:function profile_url(){return"https://"+this.hostname+"/profil/index.htm"}},{key:"account_url",value:function account_url(){return"https://"+this.hostname+"/account.htm"}},{key:"logout_url",value:function logout_url(){return"https://"+this.hostname+"/login.htm?logout=standardCug"}}]),Globals}(r);a.prototype._ul4onattrs=["version","platform","user","maxdbactions","maxtemplateruntime","lang","datasources","hostname","free","app","record","mode","view_template_id","email_template_id","view_id"],a.prototype._ul4attrs=new Set(["id","version","hostname","platform","free","mode","form","app","record","datasources","externaldatasources","groups","user","lang","templates","pparams","geo","dist","maxdbactions","maxtemplateruntime","flashmessages","scaled_url","qrcode_url","current_geo","log_debug","log_info","log_warning","log_error","my_apps_url","my_tasks_url","catalog_url","chats_url","profile_url","account_url","logout_url"]),n.expose(a.prototype.log_debug,["message","*"]),n.expose(a.prototype.log_info,["message","*"]),n.expose(a.prototype.log_warning,["message","*"]),n.expose(a.prototype.log_error,["message","*"]),n.expose(a.prototype.dist,["geo1","pk","geo2","pk"]),n.expose(a.prototype.current_geo,[]),n.expose(a.prototype.scaled_url,["image","p","width","p","height","p","type","k=","fill","enlarge","k=",!0,"gravity","k=","sm","quality","k=",null,"rotate","k=",null,"blur","k=",null,"sharpen","k=",null,"format","k=",null,"cache","k=",!0]);var i=new(function(e){_inherits(FlashMessageType,e);var t=_createSuper(FlashMessageType);function FlashMessageType(){return _classCallCheck(this,FlashMessageType),t.apply(this,arguments)}return _createClass(FlashMessageType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof u}}]),FlashMessageType}(n.Type))("la","FlashMessage","A flash message in a web page"),u=function(e){_inherits(FlashMessage,e);var t=_createSuper(FlashMessage);function FlashMessage(){return _classCallCheck(this,FlashMessage),t.apply(this,arguments)}return _createClass(FlashMessage,[{key:n.symbols.type,value:function value(){return i}},{key:n.symbols.repr,value:function value(){return"<FlashMessage type="+n._repr(this.type)+" title="+n._repr(this.title)+">"}}]),FlashMessage}(r);u.prototype._ul4onattrs=["timestamp","type","title","message"],u.prototype._ul4attrs=new Set(["timestamp","type","title","message"]);var s=new(function(e){_inherits(PermissionType,e);var t=_createSuper(PermissionType);function PermissionType(){return _classCallCheck(this,PermissionType),t.apply(this,arguments)}return _createClass(PermissionType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof p}}]),PermissionType}(n.Type))("la","Permission","Permission information"),p=function(e){_inherits(Permission,e);var t=_createSuper(Permission);function Permission(){return _classCallCheck(this,Permission),t.apply(this,arguments)}return _createClass(Permission,[{key:n.symbols.type,value:function value(){return s}},{key:n.symbols.repr,value:function value(){return"<Permission id="+n._repr(this.id)+" name="+n._repr(this.name)+">"}},{key:"edit",get:function get(){return"1"==this.permissions.charAt(0)}},{key:"config",get:function get(){return"1"==this.permissions.charAt(1)}},{key:"delete",get:function get(){return"1"==this.permissions.charAt(2)}},{key:"task_manage",get:function get(){return"1"==this.permissions.charAt(3)}},{key:"data_edit",get:function get(){return"1"==this.permissions.charAt(4)}},{key:"data_view",get:function get(){return"1"==this.permissions.charAt(5)}},{key:"task_view",get:function get(){return"1"==this.permissions.charAt(6)}},{key:"frontend",get:function get(){return"1"==this.permissions.charAt(7)}},{key:"data_connect_external",get:function get(){return"1"==this.permissions.charAt(8)}},{key:"perform_evaluation",get:function get(){return"1"==this.permissions.charAt(9)}},{key:"to_catalog",get:function get(){return"1"==this.permissions.charAt(10)}},{key:"data_import_export",get:function get(){return"1"==this.permissions.charAt(11)}},{key:"mydata_view",get:function get(){return"1"==this.permissions.charAt(12)}},{key:"mydata_edit",get:function get(){return"1"==this.permissions.charAt(13)}},{key:"user_admin",get:function get(){return"1"==this.permissions.charAt(14)}}]),Permission}(r);p.prototype._ul4onattrs=["permissions"],p.prototype._ul4attrs=new Set(["permissions","edit","config","delete","task_manage","data_edit","data_view","task_view","frontend","data_connect_external","perform_evaluation","to_catalog","data_import_export","mydata_view","mydata_edit","user_admin"]);var c=function(e){_inherits(WithAttachments,e);var t=_createSuper(WithAttachments);function WithAttachments(){return _classCallCheck(this,WithAttachments),t.apply(this,arguments)}return _createClass(WithAttachments,[{key:"_add_attachment",value:function _add_attachment(e,t,n,r,o){null===this.attachments&&(this.attachments=new Map);var l=new e(null,this,t,n,r,o);return this.attachments["attachment_".concat(this.globals._next_attachment_id+=1)]=l,l}},{key:"add_note_attachment",value:function add_note_attachment(e,t,n,r){return this._add_attachment(_r,e,t,n,r)}},{key:"add_url_attachment",value:function add_url_attachment(e,t,n,r){return this._add_attachment(yr,e,t,n,r)}},{key:"add_json_attachment",value:function add_json_attachment(e,t,n,r){return this._add_attachment(kr,e,t,n,r)}},{key:"add_file_attachment",value:function add_file_attachment(e,t,n,r){return this._add_attachment(fileAttachment,e,t,n,r)}}]),WithAttachments}(r),_=new(function(e){_inherits(TranslationsType,e);var t=_createSuper(TranslationsType);function TranslationsType(){return _classCallCheck(this,TranslationsType),t.apply(this,arguments)}return _createClass(TranslationsType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof y}}]),TranslationsType}(n.Type))("la","Translations","The translations of the multilingual attributes of a LivingAPI object (one attribute per language)"),h=new Set(["de","en","fr","it","es","cs"]),y=function(e){_inherits(Translations,e);var t=_createSuper(Translations);function Translations(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,Translations),(n=t.call(this)).owner=e,n.langs=r,n}return _createClass(Translations,[{key:n.symbols.type,value:function value(){return _}},{key:"get",value:function get(e){if(void 0===e){var t=this.owner.globals;if(null==t)return null;e=t.lang}if(null===this.langs||null===e)return null;var n=this.langs.get(e);return void 0!==n?n:null}},{key:"get_or_add",value:function get_or_add(e){if(!h.has(e))return null;null===this.langs&&(this.langs=new Map);var t=this.langs.get(e);return void 0===t&&(t=this.owner._create_translation(e),this.langs.set(e,t)),t}},{key:"de",get:function get(){return this.get_or_add("de")}},{key:"en",get:function get(){return this.get_or_add("en")}},{key:"fr",get:function get(){return this.get_or_add("fr")}},{key:"it",get:function get(){return this.get_or_add("it")}},{key:"es",get:function get(){return this.get_or_add("es")}},{key:"cs",get:function get(){return this.get_or_add("cs")}},{key:n.symbols.getattr,value:function value(e){var t=this.get_or_add(e);if(null!==t)return t;throw new n.AttributeError(this,e)}},{key:n.symbols.repr,value:function value(){return"<Translations owner="+n._repr(this.owner)+" langs="+n._repr(null!==this.langs?_toConsumableArray(this.langs.keys()):null)+">"}},{key:"toString",value:function toString(){return this[n.symbols.repr]()}}]),Translations}(n.Proto),d=function(e){_inherits(LangBase,e);var t=_createSuper(LangBase);function LangBase(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,LangBase),(n=t.call(this,e)).lang=r,n}return _createClass(LangBase,[{key:n.symbols.setattr,value:function value(e,t){if(this._settableattrs.has(e)){if(null!==t&&"string"!=typeof t)throw new n.ArgumentError(e+" must be None or a string");this[e]=t}else _get(_getPrototypeOf(LangBase.prototype),n.symbols.setattr,this).call(this,e,t)}}]),LangBase}(r);d.prototype._ul4attrs=new Set(["id","lang"]),d.prototype._settableattrs=new Set;var f=new(function(e){_inherits(AppLangType,e);var t=_createSuper(AppLangType);function AppLangType(){return _classCallCheck(this,AppLangType),t.apply(this,arguments)}return _createClass(AppLangType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof v}}]),AppLangType}(n.Type))("la","AppLang","The translations of the multilingual attributes of an app for one language"),v=function(e){_inherits(AppLang,e);var t=_createSuper(AppLang);function AppLang(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return _classCallCheck(this,AppLang),(n=t.call(this,e,o)).app=r,n.name=null,n.description=null,n.typename_grammatical_gender=null,n.typename_nominative_singular=null,n.typename_genitive_singular=null,n.typename_dative_singular=null,n.typename_accusative_singular=null,n.typename_nominative_plural=null,n.typename_genitive_plural=null,n.typename_dative_plural=null,n.typename_accusative_plural=null,n}return _createClass(AppLang,[{key:n.symbols.type,value:function value(){return f}},{key:n.symbols.repr,value:function value(){return"<AppLang lang="+n._repr(this.lang)+" name="+n._repr(this.name)+">"}}]),AppLang}(d);v.prototype._ul4onattrs=["app","lang","name","description","typename_grammatical_gender","typename_nominative_singular","typename_genitive_singular","typename_dative_singular","typename_accusative_singular","typename_nominative_plural","typename_genitive_plural","typename_dative_plural","typename_accusative_plural"],v.prototype._ul4attrs=new Set(["id","app","lang","name","description","typename_grammatical_gender","typename_nominative_singular","typename_genitive_singular","typename_dative_singular","typename_accusative_singular","typename_nominative_plural","typename_genitive_plural","typename_dative_plural","typename_accusative_plural"]),v.prototype._settableattrs=new Set(["name","description","typename_grammatical_gender","typename_nominative_singular","typename_genitive_singular","typename_dative_singular","typename_accusative_singular","typename_nominative_plural","typename_genitive_plural","typename_dative_plural","typename_accusative_plural"]);var k=new(function(e){_inherits(AppGroupLangType,e);var t=_createSuper(AppGroupLangType);function AppGroupLangType(){return _classCallCheck(this,AppGroupLangType),t.apply(this,arguments)}return _createClass(AppGroupLangType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof m}}]),AppGroupLangType}(n.Type))("la","AppGroupLang","The translations of the multilingual attributes of an app group for one language"),m=function(e){_inherits(AppGroupLang,e);var t=_createSuper(AppGroupLang);function AppGroupLang(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return _classCallCheck(this,AppGroupLang),(n=t.call(this,e,o)).appgroup=r,n.name=null,n.description=null,n}return _createClass(AppGroupLang,[{key:n.symbols.type,value:function value(){return k}},{key:n.symbols.repr,value:function value(){return"<AppGroupLang lang="+n._repr(this.lang)+" name="+n._repr(this.name)+">"}}]),AppGroupLang}(d);m.prototype._ul4onattrs=["appgroup","lang","name","description"],m.prototype._ul4attrs=new Set(["id","appgroup","lang","name","description"]),m.prototype._settableattrs=new Set(["name","description"]);var g=new(function(e){_inherits(ControlLangType,e);var t=_createSuper(ControlLangType);function ControlLangType(){return _classCallCheck(this,ControlLangType),t.apply(this,arguments)}return _createClass(ControlLangType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof C}}]),ControlLangType}(n.Type))("la","ControlLang","The translations of the multilingual attributes of a control for one language"),C=function(e){_inherits(ControlLang,e);var t=_createSuper(ControlLang);function ControlLang(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return _classCallCheck(this,ControlLang),(n=t.call(this,e,o)).control=r,n.label=null,n.description=null,n}return _createClass(ControlLang,[{key:n.symbols.type,value:function value(){return g}},{key:n.symbols.repr,value:function value(){return"<ControlLang lang="+n._repr(this.lang)+" label="+n._repr(this.label)+">"}}]),ControlLang}(d);C.prototype._ul4onattrs=["control","lang","label","description"],C.prototype._ul4attrs=new Set(["id","control","lang","label","description"]),C.prototype._settableattrs=new Set(["label","description"]);var b=new(function(e){_inherits(LookupItemLangType,e);var t=_createSuper(LookupItemLangType);function LookupItemLangType(){return _classCallCheck(this,LookupItemLangType),t.apply(this,arguments)}return _createClass(LookupItemLangType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof L}}]),LookupItemLangType}(n.Type))("la","LookupItemLang","The translations of the multilingual attributes of a lookup item for one language"),L=function(e){_inherits(LookupItemLang,e);var t=_createSuper(LookupItemLang);function LookupItemLang(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return _classCallCheck(this,LookupItemLang),(n=t.call(this,e,o)).lookup_item=r,n.label=null,n}return _createClass(LookupItemLang,[{key:n.symbols.type,value:function value(){return b}},{key:n.symbols.repr,value:function value(){return"<LookupItemLang lang="+n._repr(this.lang)+" label="+n._repr(this.label)+">"}}]),LookupItemLang}(d);L.prototype._ul4onattrs=["lookup_item","lang","label"],L.prototype._ul4attrs=new Set(["id","lookup_item","lang","label"]),L.prototype._settableattrs=new Set(["label"]);var T=function(e){_inherits(AppType,e);var t=_createSuper(AppType);function AppType(){return _classCallCheck(this,AppType),t.apply(this,arguments)}return _createClass(AppType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof w}}]),AppType}(n.Type),A=new T("la","App","A LivingApps application"),w=function(e){_inherits(App,e);var t=_createSuper(App);function App(){return _classCallCheck(this,App),t.apply(this,arguments)}return _createClass(App,[{key:n.symbols.type,value:function value(){return A}},{key:n.symbols.repr,value:function value(){return"<App id="+n._repr(this.id)+" name="+n._repr(this.name)+">"}},{key:"group",get:function get(){return this.appgroup}},{key:"translations",get:function get(){return void 0===this._translations&&(this._translations=new y(this)),this._translations}},{key:"_create_translation",value:function _create_translation(e){return new v(null,this,e)}},{key:"name",get:function get(){var e=this.translations.get();return null!==e&&null!==e.name?e.name:this._name}},{key:"name",set:function set(e){this._name=e}},{key:"description",get:function get(){var e=this.translations.get();return null!==e&&null!==e.description?e.description:this._description}},{key:"description",set:function set(e){this._description=e}},{key:"typename_grammatical_gender",get:function get(){var e=this.translations.get();return null!==e&&null!==e.typename_grammatical_gender?e.typename_grammatical_gender:this._typename_grammatical_gender}},{key:"typename_grammatical_gender",set:function set(e){this._typename_grammatical_gender=e}},{key:"typename_nominative_singular",get:function get(){var e=this.translations.get();return null!==e&&null!==e.typename_nominative_singular?e.typename_nominative_singular:this._typename_nominative_singular}},{key:"typename_nominative_singular",set:function set(e){this._typename_nominative_singular=e}},{key:"typename_genitive_singular",get:function get(){var e=this.translations.get();return null!==e&&null!==e.typename_genitive_singular?e.typename_genitive_singular:this._typename_genitive_singular}},{key:"typename_genitive_singular",set:function set(e){this._typename_genitive_singular=e}},{key:"typename_dative_singular",get:function get(){var e=this.translations.get();return null!==e&&null!==e.typename_dative_singular?e.typename_dative_singular:this._typename_dative_singular}},{key:"typename_dative_singular",set:function set(e){this._typename_dative_singular=e}},{key:"typename_accusative_singular",get:function get(){var e=this.translations.get();return null!==e&&null!==e.typename_accusative_singular?e.typename_accusative_singular:this._typename_accusative_singular}},{key:"typename_accusative_singular",set:function set(e){this._typename_accusative_singular=e}},{key:"typename_nominative_plural",get:function get(){var e=this.translations.get();return null!==e&&null!==e.typename_nominative_plural?e.typename_nominative_plural:this._typename_nominative_plural}},{key:"typename_nominative_plural",set:function set(e){this._typename_nominative_plural=e}},{key:"typename_genitive_plural",get:function get(){var e=this.translations.get();return null!==e&&null!==e.typename_genitive_plural?e.typename_genitive_plural:this._typename_genitive_plural}},{key:"typename_genitive_plural",set:function set(e){this._typename_genitive_plural=e}},{key:"typename_dative_plural",get:function get(){var e=this.translations.get();return null!==e&&null!==e.typename_dative_plural?e.typename_dative_plural:this._typename_dative_plural}},{key:"typename_dative_plural",set:function set(e){this._typename_dative_plural=e}},{key:"typename_accusative_plural",get:function get(){var e=this.translations.get();return null!==e&&null!==e.typename_accusative_plural?e.typename_accusative_plural:this._typename_accusative_plural}},{key:"typename_accusative_plural",set:function set(e){this._typename_accusative_plural=e}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return"translations"===e?this.translations.langs:this[e]}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){"translations"===e?this.translations.langs=t:this[e]=t}},{key:"_setDefaultUL4ONAttr",value:function _setDefaultUL4ONAttr(e){"translations"===e?this.translations.langs=null:this[e]=null}},{key:"insert",value:function insert(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this[n.symbols.call](e);return this.globals.handler.save(this),t}},{key:"template_url",value:function template_url(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r="https://"+this.globals.hostname+"/gateway/apps/"+this.id;return null!==t&&(r+="/"+t.id),url_with_params(r,["template",e],n)}},{key:"new_embedded_url",value:function new_embedded_url(e){return url_with_params("https://"+this.globals.hostname+"/dateneingabe/"+this.id+"/new",e)}},{key:"new_standalone_url",value:function new_standalone_url(e){return url_with_params("https://"+this.globals.hostname+"/gateway/apps/"+this.id+"/new",e)}},{key:"home_url",value:function home_url(){return"https://"+this.globals.hostname+"/apps/"+this.id+".htm"}},{key:"datamanagement_url",value:function datamanagement_url(){return"https://"+this.globals.hostname+"/_id_36_.htm?uuid="+this.id+"&dId="+this.id+"&resetInfo=true&templateIdentifier=created_"+this.id}},{key:"import_url",value:function import_url(){return"https://"+this.globals.hostname+"/import-export/"+this.id+".htm"}},{key:"tasks_url",value:function tasks_url(){return"https://"+this.globals.hostname+"/_id_1073_.htm?uuid="+this.id+"&dId="+this.id+"&p_tpl_uuid="+this.id+"&resetInfo=true&templateIdentifier=created_task_"+this.id}},{key:"datamanagement_config_url",value:function datamanagement_config_url(){return"https://"+this.globals.hostname+"/datenmanagement-konfigurieren/"+this.id+".htm"}},{key:"permissions_url",value:function permissions_url(){return"https://"+this.globals.hostname+"/_id_833_.htm?uuid="+this.id+"&dId="+this.id+"&resetInfo=true"}},{key:"datamanageview_url",value:function datamanageview_url(e){return"https://"+this.globals.hostname+"/_id_36_.htm?uuid="+this.id+"&dId="+this.id+"&resetInfo=true&templateIdentifier=created_"+this.id+"_datamanage_master_"+e}},{key:"layout_controls",get:function get(){return null===this.active_view?new Map:this.active_view.layout_controls}},{key:n.symbols.call,value:function value(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new N(null,this);if(n._ismap(e)){var r,o=_createForOfIteratorHelper(e.keys());try{for(o.s();!(r=o.n()).done;){var l=r.value;if(!t.fields.has(l))throw new n.ArgumentError(n._repr(this)+"() get an unexpected keyword argument "+n._repr(l))}}catch(e){o.e(e)}finally{o.f()}t._make_fields(!0,e,null,null)}else{if(!n._isobject(e))throw new n.TypeError("values must be an object or a Map");for(var a in e)if(!t.fields.has(a))throw new n.ArgumentError(n._repr(this)+"() get an unexpected keyword argument "+n._repr(a));t._make_fields(!0,new Map(n._list(n.dicttype.items(e))),null,null)}return t}},{key:n.symbols.getattr,value:function value(e){if(e.startsWith("c_")){if(!this.controls.has(e.substr(2)))throw new n.AttributeError(this,e);return this.controls.get(e.substr(2))}if(e.startsWith("lc_")){if(null===this.layout_controls||!this.layout_controls.has(e.substr(3)))throw new n.AttributeError(this,e);return this.layout_controls.get(e.substr(3))}if(e.startsWith("p_")){var t=e.substr(2);if(null!==this.params&&this.params.has(t))return this.params.get(t);if(null!==this.appgroup&&null!==this.appgroup.params&&this.appgroup.params.has(t))return this.appgroup.params.get(t);throw new n.AttributeError(this,e)}if(e.startsWith("pv_")){var r=e.substr(3);if(null!==this.params&&this.params.has(r))return this.params.get(r).value;if(null!==this.appgroup&&null!==this.appgroup.params&&this.appgroup.params.has(r))return this.appgroup.params.get(r).value;throw new n.AttributeError(this,e)}return _get(_getPrototypeOf(App.prototype),n.symbols.getattr,this).call(this,e)}},{key:"active_view",get:function get(){return this._active_view}},{key:"active_view",set:function set(e){if(null===e);else if("string"==typeof e){if(null===this.views||!this.views.has(e))throw new n.ValueError("View "+n._repr(e)+" not found!");e=this.views.get(e)}else{if(!(e instanceof I))throw new n.TypeError(n._repr(e)+" is not a view!");if(e.app!==this)throw new n.ValueError("View "+n._repr(e)+" belongs to the wrong app!")}this._active_view=e}},{key:"layout_controls",get:function get(){return null===this.active_views?new Map:this.active_view.layout_controls}},{key:"permissions",get:function get(){if("string"==typeof this._permissions){var e=this._permissions;this._permissions=new p,this._permissions.permissions=e}return this._permissions}}]),App}(c);w.prototype._ul4onattrs=["globals","internal_id","_name","_description","lang","appgroup","_typename_grammatical_gender","_typename_nominative_singular","_typename_genitive_singular","_typename_dative_singular","_typename_accusative_singular","_typename_nominative_plural","_typename_genitive_plural","_typename_dative_plural","_typename_accusative_plural","startlink","image","createdby","controls","records","record_start","record_count","record_total","installation","categories","params","views","datamanagement_identifier","basetable","primarykey","insertprocedure","updateprocedure","deleteprocedure","templates","createdat","updatedat","updatedby","superid","favorite","_active_view","datasource","main","ai_generated","viewtemplates","filter_default","sort_default","filter_owndata","_permissions","data_actions","attachments","order","translations"],w.prototype._ul4attrs=new Set(["id","globals","name","description","translations","lang","appgroup","group","main","order","ai_generated","typename_grammatical_gender","typename_nominative_singular","typename_genitive_singular","typename_dative_singular","typename_accusative_singular","typename_nominative_plural","typename_genitive_plural","typename_dative_plural","typename_accusative_plural","startlink","image","createdat","createdby","updatedat","updatedby","controls","layout_controls","records","record_start","record_count","record_total","installation","categories","params","views","menus","panels","datasource","datamanagement_identifier","insert","favorite","_active_view","filter_default","sort_default","filter_owndata","permissions","data_actions","attachments","template_url","new_embedded_url","new_standalone_url","home_url","datamanagement_url","import_url","tasks_url","datamanagement_config_url","permissions_url","datamanageview_url"]),n.expose(w.prototype[n.symbols.call],["values","**"],{needsobject:!0}),n.expose(w.prototype.insert,["values","**"],{needsobject:!0}),n.expose(w.prototype.template_url,["identifier","p","record","p=",null,"params","**"]),n.expose(w.prototype.new_embedded_url,["params","**"]),n.expose(w.prototype.new_standalone_url,["params","**"]);var S=new T("la","AppGroup","A group of LivingApps"),M=function(e){_inherits(AppGroup,e);var t=_createSuper(AppGroup);function AppGroup(){return _classCallCheck(this,AppGroup),t.apply(this,arguments)}return _createClass(AppGroup,[{key:n.symbols.type,value:function value(){return S}},{key:n.symbols.repr,value:function value(){return"<AppGroup id="+n._repr(this.id)+" name="+n._repr(this.name)+">"}},{key:"translations",get:function get(){return void 0===this._translations&&(this._translations=new y(this)),this._translations}},{key:"_create_translation",value:function _create_translation(e){return new m(null,this,e)}},{key:"name",get:function get(){var e=this.translations.get();return null!==e&&null!==e.name?e.name:this._name}},{key:"name",set:function set(e){this._name=e}},{key:"description",get:function get(){var e=this.translations.get();return null!==e&&null!==e.description?e.description:this._description}},{key:"description",set:function set(e){this._description=e}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return"translations"===e?this.translations.langs:this[e]}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){"translations"===e?this.translations.langs=t:this[e]=t}},{key:"_setDefaultUL4ONAttr",value:function _setDefaultUL4ONAttr(e){"translations"===e?this.translations.langs=null:this[e]=null}}]),AppGroup}(c);M.prototype._ul4onattrs=["globals","_name","_description","image","apps","main_app","params","attachments","translations"],M.prototype._ul4attrs=new Set(["globals","id","name","description","translations","image","apps","main_app","params","attachments"]);var x=new(function(e){_inherits(ViewType,e);var t=_createSuper(ViewType);function ViewType(){return _classCallCheck(this,ViewType),t.apply(this,arguments)}return _createClass(ViewType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof I}}]),ViewType}(n.Type))("la","View","An input form for a LivingViews application"),I=function(e){_inherits(View,e);var t=_createSuper(View);function View(){return _classCallCheck(this,View),t.apply(this,arguments)}return _createClass(View,[{key:"globals",get:function get(){return this.app.globals}},{key:n.symbols.type,value:function value(){return x}},{key:n.symbols.repr,value:function value(){return"<View id="+n._repr(this.id)+" name="+n._repr(this.name)+">"}}]),View}(r);I.prototype._ul4onattrs=["name","combined_type","app","order","width","height","start","end","controls","layout_controls","lang","login_required","result_page","use_geo"],I.prototype._ul4attrs=new Set(["id","name","combined_type","app","order","width","height","start","end","controls","layout_controls","lang","login_required","result_page","use_geo"]);var O=new(function(e){_inherits(DataSourceType,e);var t=_createSuper(DataSourceType);function DataSourceType(){return _classCallCheck(this,DataSourceType),t.apply(this,arguments)}return _createClass(DataSourceType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof D}}]),DataSourceType}(n.Type))("la","DataSource","The data resulting from a data source configuration"),D=function(e){_inherits(DataSource,e);var t=_createSuper(DataSource);function DataSource(){return _classCallCheck(this,DataSource),t.apply(this,arguments)}return _createClass(DataSource,[{key:n.symbols.type,value:function value(){return O}},{key:n.symbols.repr,value:function value(){return"<DataSource id="+n._repr(this.id)+" identifier="+n._repr(this.identifier)+">"}}]),DataSource}(r);D.prototype._ul4onattrs=["identifier","app","apps","filter","sort"],D.prototype._ul4attrs=new Set(["id","identifier","app","apps","filter","sort"]),new(function(e){_inherits(DataSourceChildrenType,e);var t=_createSuper(DataSourceChildrenType);function DataSourceChildrenType(){return _classCallCheck(this,DataSourceChildrenType),t.apply(this,arguments)}return _createClass(DataSourceChildrenType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof R}}]),DataSourceChildrenType}(n.Type))("la","DataSourceChildren","A master/detail specification in a data source");var R=function(e){_inherits(DataSourceChildren,e);var t=_createSuper(DataSourceChildren);function DataSourceChildren(){return _classCallCheck(this,DataSourceChildren),t.apply(this,arguments)}return _createClass(DataSourceChildren,[{key:n.symbols.type,value:function value(){return datasourcetypechildren}},{key:n.symbols.repr,value:function value(){return"<DataSourceChildren id="+n._repr(this.id)+" identifier="+n._repr(this.identifier)+">"}}]),DataSourceChildren}(r);R.prototype._ul4onattrs=["datasource","identifier","control","filter","sort"],R.prototype._ul4attrs=new Set(["id","identifier","datasource","control","filter","sort"]);var H=new(function(e){_inherits(RecordChildrenType,e);var t=_createSuper(RecordChildrenType);function RecordChildrenType(){return _classCallCheck(this,RecordChildrenType),t.apply(this,arguments)}return _createClass(RecordChildrenType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof P}}]),RecordChildrenType}(n.Type))("la","RecordChildren","The child records of a master record"),P=function(e){_inherits(RecordChildren,e);var t=_createSuper(RecordChildren);function RecordChildren(){return _classCallCheck(this,RecordChildren),t.apply(this,arguments)}return _createClass(RecordChildren,[{key:n.symbols.type,value:function value(){return H}},{key:n.symbols.repr,value:function value(){return"<RecordChildren id="+n._repr(this.id)+">"}}]),RecordChildren}(r);P.prototype._ul4onattrs=["record","datasourcechildren","records","record_start","record_count","record_total"],P.prototype._ul4attrs=new Set(["id","record","datasourcechildren","records","record_start","record_count","record_total"]);var B=new(function(e){_inherits(RecordType,e);var t=_createSuper(RecordType);function RecordType(){return _classCallCheck(this,RecordType),t.apply(this,arguments)}return _createClass(RecordType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof N}}]),RecordType}(n.Type))("la","Record","A record of a LivingApp application"),N=function(e){_inherits(Record,e);var t=_createSuper(Record);function Record(e,n){var r;return _classCallCheck(this,Record),(r=t.call(this,e)).app=n,r.createdat=null,r.createdby=null,r.updatedat=null,r.updatedby=null,r.updatecount=0,r._sparsevalues=new Map,r._values=null,r._fields=null,r.details=new Map,r._children=null,r.attachments=null,r.errors=[],r._sparsefielderrors=null,r._sparsefieldlookupdata=null,r._is_deleted=!1,r._is_new=!0,r}return _createClass(Record,[{key:n.symbols.type,value:function value(){return B}},{key:"globals",get:function get(){return this.app.globals}},{key:"as_text",value:function as_text(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(0==e)return"...";var n,r=[],o=_createForOfIteratorHelper(t||this.app.controls);try{for(o.s();!(n=o.n()).done;){var l=_slicedToArray(n.value,2),a=l[0],i=l[1];if(null!==t||i.priority){var u=this.fields.get(a).value_as_text(e-1);null!==u&&r.push([i.label,u])}}}catch(e){o.e(e)}finally{o.f()}if(0===r.length)return this.globals.msg_no_fields();if(1===r.length)return r[0][1];for(var s=[],p=0,c=r;p<c.length;p++){var _=_slicedToArray(c[p],2),h=_[0],y=_[1];s.push(h+": "+y)}return s.join(", ")}},{key:"_make_fields",value:function _make_fields(e,t,n,r){var o,l=new Map,a=_createForOfIteratorHelper(this.app.controls.values());try{for(a.s();!(o=a.n()).done;){var i=o.value,u=i.identifier,s=null;null!==t&&(e&&!t.has(u)?s=i.default:t.has(u)&&(s=t.get(u)));var p=new i.fieldtype(i,this,s);l.set(u,p),null!==n&&n.has(u)&&(p.errors=n.get(u)),null!==r&&r.has(u)&&(p.lookupdata=r.get(u))}}catch(e){a.e(e)}finally{a.f()}this._fields=l,this._sparsevalues=null,this._sparsefielderrors=null,this._sparselookupdata=null}},{key:"_in_form",value:function _in_form(){var e=this.app.globals;return e._in_form()&&this===e.record}},{key:n.symbols.repr,value:function value(){var e,t=["<Record id=",n._repr(this.id)],r=_createForOfIteratorHelper(this.fields.values());try{for(r.s();!(e=r.n()).done;){var o=e.value;o.control.priority&&!o.is_empty()&&(t.push(" v_"),t.push(o.control.identifier),t.push("="),t.push(n._repr(o.value)))}}catch(e){r.e(e)}finally{r.f()}return t.push(" state="),t.push(n._repr(this.state)),t.push(">"),t.join("")}},{key:"state",get:function get(){return this._is_deleted?"deleted":this._is_new?"new":this.is_dirty()?"dirty":"saved"}},{key:"values",get:function get(){if(null===this._values){this._values=new Map;var e,t=_createForOfIteratorHelper(this.fields.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._values.set(n.control.identifier,n.value)}}catch(e){t.e(e)}finally{t.f()}}return this._values}},{key:"fields",get:function get(){return null===this._fields&&this._make_fields(!1,this._sparsevalues,this._sparsefielderrors,this._sparsefieldlookupdata),this._fields}},{key:"children",get:function get(){if(null===this._children){this._children=new Map;var e,t=_createForOfIteratorHelper(this.details.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._children.set(n.datasourcechildren.identifier,n.records)}}catch(e){t.e(e)}finally{t.f()}}return this._children}},{key:"is_dirty",value:function is_dirty(){if(null===this.id)return!0;var e,t=_createForOfIteratorHelper(this.fields.values());try{for(t.s();!(e=t.n()).done;){if(e.value.is_dirty())return!0}}catch(e){t.e(e)}finally{t.f()}return!1}},{key:"has_errors",value:function has_errors(){if(0!==this.errors.length)return!0;var e,t=_createForOfIteratorHelper(this.fields.values());try{for(t.s();!(e=t.n()).done;){if(e.value.has_errors())return!0}}catch(e){t.e(e)}finally{t.f()}return!1}},{key:"delete",value:function _delete(){var e=this.app.globals.handler.delete(this);return this._is_deleted=!0,e}},{key:"save",value:function save(){this.app.globals.handler.save(this)}},{key:"update",value:function update(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n._ismap(e)){var t,r=_createForOfIteratorHelper(e.entries());try{for(r.s();!(t=r.n()).done;){var o=_slicedToArray(t.value,2),l=o[0],a=o[1];if(!this.fields.has(l))throw new n.ArgumentError("update() get an unexpected keyword argument "+n._repr(l));fields.get(l).value=a}}catch(e){r.e(e)}finally{r.f()}}else{if(!n._isobject(e))throw new n.TypeError("values must be an object or a Map");for(var i in e){if(!this.fields.has(i))throw new n.ArgumentError("update() get an unexpected keyword argument "+n._repr(i));record.fields.get(i).value=e[i]}}this.app.globals.handler.save(this)}},{key:"template_url",value:function template_url(e,t){return url_with_params("https://"+this.app.globals.hostname+"/gateway/apps/"+this.app.id+"/"+this.id,["template",e],t)}},{key:"edit_embedded_url",value:function edit_embedded_url(e){return url_with_params("https://"+this.app.globals.hostname+"/dateneingabe/"+this.app.id+"/"+this.id+"/edit",e)}},{key:"edit_standalone_url",value:function edit_standalone_url(e){return url_with_params("https://"+this.app.globals.hostname+"/gateway/apps/"+this.app.id+"/"+this.id+"/edit",e)}},{key:"edit_url",value:function edit_url(e){return"standalone"===this.app[n.symbols.getattr]("pv_la_default_form_variant")?this.edit_standalone_url(e):this.edit_embedded_url(e)}},{key:"display_embedded_url",value:function display_embedded_url(e){return url_with_params("https://"+this.app.globals.hostname+"/dateneingabe/"+this.app.id+"/"+this.id+"/display",e)}},{key:"display_standalone_url",value:function display_standalone_url(e){return url_with_params("https://"+this.app.globals.hostname+"/gateway/apps/"+this.app.id+"/"+this.id+"/display",e)}},{key:"display_url",value:function display_url(e){return"standalone"===this.app[n.symbols.getattr]("pv_la_default_form_variant")?this.display_standalone_url(e):this.display_embedded_url(e)}},{key:"search",value:function search(e){for(var t in e){var r=e[t];if(n._bool(r)&&!this.fields.get(t).search(r))return!1}return!0}},{key:"ul4onload",value:function ul4onload(e){_get(_getPrototypeOf(Record.prototype),"ul4onload",this).call(this,e),this._is_new=!1}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return"values"===e?this._sparsevalues:this[e]}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){"values"===e?(this._sparsevalues=t,this._values=null,this._fields=null):this[e]=t}},{key:n.symbols.getattr,value:function value(e){return e.startsWith("c_")?this.children.get(e.substr(2)):e.startsWith("d_")?this.details.get(e.substr(2)):e.startsWith("f_")?this.fields.get(e.substr(2)):e.startsWith("v_")?this.fields.get(e.substr(2)).value:_get(_getPrototypeOf(Record.prototype),n.symbols.getattr,this).call(this,e)}},{key:n.symbols.setattr,value:function value(e,t){e.startsWith("c_")?this.children[e.substr(2)]=t:e.startsWith("v_")?this.fields.get(e.substr(2)).value=t:_get(_getPrototypeOf(Record.prototype),n.symbols.setattr,this).call(this,e,t)}}]),Record}(c);N.prototype._ul4onattrs=["app","createdat","createdby","updatedat","updatedby","updatecount","_sparsevalues","attachments","details","errors","_sparsefielderrors","_sparsefieldlookupdata"],N.prototype._ul4attrs=new Set(["id","app","createdat","createdby","updatedat","updatedby","updatecount","values","fields","attachments","details","children","errors","template_url","edit_embedded_url","edit_standalone_url"]),n.expose(N.prototype.is_dirty,[]),n.expose(N.prototype.has_errors,[]),n.expose(N.prototype.delete,[]),n.expose(N.prototype.save,[]),n.expose(N.prototype.update,["values","**"],{needsobject:!0}),n.expose(N.prototype.template_url,["identifier","p","params","**"]),n.expose(N.prototype.edit_embedded_url,["params","**"]),n.expose(N.prototype.edit_standalone_url,["params","**"]);var U=function(e){_inherits(FieldType,e);var t=_createSuper(FieldType);function FieldType(){return _classCallCheck(this,FieldType),t.apply(this,arguments)}return _createClass(FieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof q}}]),FieldType}(n.Type),G=new U("la","Field","Holds the value of a field of a record (and related information)"),q=function(e){_inherits(Field,e);var t=_createSuper(Field);function Field(e,n,r){var o;return _classCallCheck(this,Field),(o=t.call(this,null)).control=e,o.record=n,o._label=null,o._description=null,o._lookupdata=null,o.errors=[],o._value=null,o._in_form()||(o.value=r),o._dirty=!1,o._enabled=!0,o._writable=!0,o._visible=!0,o._required=null,o._in_text=null,o._top=null,o._left=null,o}return _createClass(Field,[{key:n.symbols.type,value:function value(){return G}},{key:"value",get:function get(){return this._in_form()?this._get_dom_value():this._value}},{key:"value",set:function set(e){var t=this._value,r={value:e,errors:[]};this._validate(r),n._ne(t,r.value)&&(null!==this.record._values&&this.record._values.set(this.control.identifier,r.value),this._value=r.value,this._dirty=!0),this.errors=r.errors,this._in_form()&&this._set_dom_value(this._value)}},{key:"value_as_text",value:function value_as_text(){return null}},{key:"_validate",value:function _validate(e){}},{key:"_set_dom_label",value:function _set_dom_label(){this._in_form()&&(this._dom_label.textContent=this.label)}},{key:"mode",get:function get(){var e;return null!==(e=this._mode)&&void 0!==e?e:this.control.mode}},{key:"mode",set:function set(e){this._mode=e}},{key:"label",get:function get(){var e;return null!==(e=this._label)&&void 0!==e?e:this.control.label}},{key:"label",set:function set(e){this._label=e,this._set_dom_label()}},{key:"description",get:function get(){var e;return null!==(e=this._description)&&void 0!==e?e:this.control.description}},{key:"description",set:function set(e){this._description=e}},{key:"globals",get:function get(){return this.control.globals}},{key:"is_empty",value:function is_empty(){return null===this._value}},{key:"is_dirty",value:function is_dirty(){return this._dirty}},{key:"has_errors",value:function has_errors(){return 0!==this.errors.length}},{key:"add_error",value:function add_error(e){this.errors.push(e)}},{key:"set_error",value:function set_error(e){this.errors=null!==e?[e]:[]}},{key:"top",get:function get(){var e;return null!==(e=this._top)&&void 0!==e?e:this.control.top}},{key:"top",set:function set(e){this._top=e,this._in_form()&&(this._dom_root.style.top=this.top+"px")}},{key:"left",get:function get(){var e;return null!==(e=this._left)&&void 0!==e?e:this.control.left}},{key:"left",set:function set(e){this._left=e,this._in_form()&&(this._dom_root.style.left=this.left+"px")}},{key:"width",get:function get(){return this.control.width}},{key:"height",get:function get(){return this.control.width}},{key:"search",value:function search(e){return this.control.search(this.value,e)}},{key:"msg_field_required",value:function msg_field_required(e){switch(this.globals.lang){case"de":return'"'.concat(this.label,'" wird benötigt!');default:return'"'.concat(this.label,'" is required!')}}},{key:"msg_field_wrong_type",value:function msg_field_wrong_type(e){return'"'.concat(this.label,"\" doesn't support the type ").concat(n._type(e).name,"!")}},{key:"msg_bool_truerequired",value:function msg_bool_truerequired(e){return'"'.concat(this.label,'" only accepts "Yes"!')}},{key:"msg_string_tooshort",value:function msg_string_tooshort(e){return'"'.concat(this.label,'" is too short. You must use at least ').concat(this.control.minlength," characters!")}},{key:"msg_string_toolong",value:function msg_string_toolong(e){return'"'.concat(this.label,'" is too long. You may use at most ').concat(this.control.maxlength," characters!")}},{key:"msg_email_format",value:function msg_email_format(e){return'"'.concat(this.label,'" must be a valid email address!')}},{key:"msg_url_format",value:function msg_url_format(e){return'"'.concat(this.label,'" must be a valid URL!')}},{key:"msg_tel_format",value:function msg_tel_format(e){return'"'.concat(this.label,'" must be a valid phone number!')}},{key:"msg_date_format",value:function msg_date_format(e){return'"'.concat(this.label,"\" doesn't support this date format!")}},{key:"msg_number_format",value:function msg_number_format(e){return'"'.concat(this.label,"\" doesn't support this number format!")}},{key:"msg_lookup_wrongitem",value:function msg_lookup_wrongitem(e){return"The option ".concat(n._repr(e),' for "').concat(this.label,"\" doesn't belong to this lookup!")}},{key:"msg_lookup_unknownkey",value:function msg_lookup_unknownkey(e){return"The option ".concat(n._repr(e),' for "').concat(this.label,'" is unknown!')}},{key:"msg_applookup_wrongrecord",value:function msg_applookup_wrongrecord(e){return"The record ".concat(n._repr(e),' for "').concat(this.label,"\" doesn't belong to the correct app!")}},{key:"msg_applookup_unknownkey",value:function msg_applookup_unknownkey(e){return"The record ".concat(n._repr(e),' for "').concat(this.label,"\" can't be found!")}},{key:"_in_form",value:function _in_form(){return this.record._in_form()}},{key:"_sel_root",get:function get(){return"#livingapps-form ."+this.control._cssclass_root+".llft-id-"+this.control.identifier}},{key:"_sel_label",get:function get(){return this._sel_root+" label span"}},{key:"_sel_control",get:function get(){return this._sel_root+" "+this.control._cssclass_control}},{key:"_dom_root",get:function get(){return document.querySelector(this._sel_root)}},{key:"_dom_label",get:function get(){return document.querySelector(this._sel_label)}},{key:"_dom_control",get:function get(){return document.querySelector(this._sel_control)}},{key:"_dom_controls",get:function get(){return document.querySelectorAll(this._sel_control)}},{key:"_get_dom_value",value:function _get_dom_value(){return this._dom_control.value}},{key:"_set_dom_value",value:function _set_dom_value(e){this._dom_control.value=null!==e?e:""}},{key:"visible",get:function get(){return this._visible}},{key:"visible",set:function set(e){this._in_form()&&(this._dom_root.hidden=!e),this._visible=e}},{key:"required",get:function get(){var e;return null!==(e=this._required)&&void 0!==e?e:this.control.required}},{key:"required",set:function set(e){this._required=e}},{key:"in_list",get:function get(){return this.control.in_list}},{key:"in_mobile_list",get:function get(){return this.control.in_mobile_list}},{key:"in_text",get:function get(){var e;return null!==(e=this._in_text)&&void 0!==e?e:this.control.in_text}},{key:"in_text",set:function set(e){this._in_text=e}},{key:"enabled",get:function get(){return this._in_form()?!this._dom_root.classList.contains("llft-control-readonly"):this._enabled}},{key:"enabled",set:function set(e){if(this._in_form()){var t,n=!e,r=_createForOfIteratorHelper(this._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.disabled=n}}catch(e){r.e(e)}finally{r.f()}this._dom_root.classList.toggle("llft-control-readonly",n)}this._enabled=e}},{key:"writable",get:function get(){return this._writable}},{key:"writable",set:function set(e){this._writable=e}},{key:n.symbols.repr,value:function value(){var e="<"+this.constructor.name+" identifier=";return e+=n._repr(this.control.identifier),this._dirty&&(e+=" is_dirty()=True"),this.errors.length>0&&(e+=" has_errors()=True"),e+=">"}},{key:n.symbols.setattr,value:function value(e,t){if("value"===e)this.value=t;else if("visible"===e)this.visible=n._bool(t);else if("enabled"===e)this.enabled=n._bool(t);else if("writable"===e)this.writable=n._bool(t);else if("required"===e)this.required=n._bool(t);else if("top"===e){if(null!==t&&"number"!=typeof t)throw new n.ArgumentError("top must be None or an int");this.top=t}else if("left"===e){if(null!==t&&"number"!=typeof t)throw new n.ArgumentError("left must be None or an int");this.left=t}else _get(_getPrototypeOf(Field.prototype),n.symbols.setattr,this).call(this,e,t)}}]),Field}(r);q.prototype._ul4onattrs=["control","record","label","value","errors","_visible","_enabled","_writable","_required"],q.prototype._ul4attrs=new Set(["control","record","label","description","value","mode","errors","visible","enabled","writable","required","in_text","top","left","width","height"]),q.prototype._inputevent="input";var V=new(function(e){_inherits(BoolFieldType,e);var t=_createSuper(BoolFieldType);function BoolFieldType(){return _classCallCheck(this,BoolFieldType),t.apply(this,arguments)}return _createClass(BoolFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof E}}]),BoolFieldType}(U))("la","BoolField","Holds the value of a bool field of a record (and related information)"),E=function(e){_inherits(BoolField,e);var t=_createSuper(BoolField);function BoolField(){return _classCallCheck(this,BoolField),t.apply(this,arguments)}return _createClass(BoolField,[{key:n.symbols.type,value:function value(){return V}},{key:"_validate",value:function _validate(e){null===e.value?this.control.required&&e.errors.push(this.msg_field_required(e.value)):"string"==typeof e.value?0===e.value.length?(this.control.required&&e.errors.push(this.msg_bool_truerequired(e.value)),e.value=null):["false","no","0","off"].includes(e.value.toLowerCase())?e.value=!1:e.value=!0:"boolean"==typeof e.value?this.control.required&&!e.value&&e.errors.push(this.msg_bool_truerequired(e.value)):(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}},{key:"_get_dom_value",value:function _get_dom_value(){return this._dom_control.checked}},{key:"_set_dom_value",value:function _set_dom_value(e){this._dom_control.checked=e}},{key:"value_as_text",value:function value_as_text(){return this.globals.msg_bool(this.value)}}]),BoolField}(q),j=new(function(e){_inherits(IntFieldType,e);var t=_createSuper(IntFieldType);function IntFieldType(){return _classCallCheck(this,IntFieldType),t.apply(this,arguments)}return _createClass(IntFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof W}}]),IntFieldType}(U))("la","IntField","Holds the value of an int field of a record (and related information)"),W=function(e){_inherits(IntField,e);var t=_createSuper(IntField);function IntField(){return _classCallCheck(this,IntField),t.apply(this,arguments)}return _createClass(IntField,[{key:n.symbols.type,value:function value(){return j}},{key:"_parse",value:function _parse(e){return/^\s*[-+]?\d+\s*$/.test(e)?parseInt(e):null}},{key:"_validate",value:function _validate(e){if(null===e.value)this.control.required&&e.errors.push(this.msg_field_required(e.value));else if("string"==typeof e.value){var t=this._parse(e.value);null!==t?e.value=t:e.errors.push(this.msg_number_format(e.value))}else"number"==typeof e.value?Math.round(e.value)!==e.value&&e.errors.push(this.msg_field_wrong_type(e.value)):(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}},{key:"_get_dom_value",value:function _get_dom_value(){var e=_get(_getPrototypeOf(IntField.prototype),"_get_dom_value",this).call(this);if(e){var t=this._parse(e);null!==t&&(e=t)}return e}},{key:"_set_dom_value",value:function _set_dom_value(e){_get(_getPrototypeOf(IntField.prototype),"_set_dom_value",this).call(this,null!==e?e+"":"")}},{key:"value_as_text",value:function value_as_text(){var e=this.value;return null!=e?e+"":null}},{key:"writable",get:function get(){return this._writable}},{key:"writable",set:function set(e){if(this._in_form()){var t,n=!e,r=_createForOfIteratorHelper(this._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.readOnly=n}}catch(e){r.e(e)}finally{r.f()}}_set(_getPrototypeOf(IntField.prototype),"writable",e,this,!0)}}]),IntField}(q),z=new(function(e){_inherits(NumberFieldType,e);var t=_createSuper(NumberFieldType);function NumberFieldType(){return _classCallCheck(this,NumberFieldType),t.apply(this,arguments)}return _createClass(NumberFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Y}}]),NumberFieldType}(U))("la","NumberField","Holds the value of a number field of a record (and related information)"),Y=function(e){_inherits(NumberField,e);var t=_createSuper(NumberField);function NumberField(){return _classCallCheck(this,NumberField),t.apply(this,arguments)}return _createClass(NumberField,[{key:n.symbols.type,value:function value(){return z}},{key:"_parse",value:function _parse(e){if(null===e)return null;for(var t=e,n="",r=0,o=0,l=0;l<e.length;++l){var a=e[l];","==a?(r++,n+=a):"."==a&&(o++,n+=a)}var i=null;if(0==r)o<=1||(i="de");else if(1==r)i=1==o?".,"==n?"de":"en":"de";else{if(!(o<=1))return null;i="en"}"de"===i?t=t.replace(/\./g,"").replace(/,/g,"."):"en"===i&&(t=t.replace(/,/g,""));var u=parseFloat(t);return isNaN(u)?e:u}},{key:"_validate",value:function _validate(e){if(null===e.value||""===e.value)this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null;else if("string"==typeof e.value){var t=this._parse(e.value);null!==t?(t=this._bound_value(t),null!==this.control.precision&&(t=n._round(t,this.control.precision)),e.value=t):e.errors.push(this.msg_number_format(e.value))}else if("number"==typeof e.value){var r=this._bound_value(e.value);null!==this.control.precision&&(r=n._round(r,this.control.precision)),e.value=r}else e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null}},{key:"_bound_value",value:function _bound_value(e){return null!==this.control.minimum&&e<this.control.minimum&&(e=this.control.minimum),null!==this.control.maximum&&e>this.control.maximum&&(e=this.control.maximum),e}},{key:"_get_dom_value",value:function _get_dom_value(){var e=_get(_getPrototypeOf(NumberField.prototype),"_get_dom_value",this).call(this);if(e){if("string"==typeof e){var t=this._parse(e);null!==t&&(e=t)}"number"==typeof e&&(null!==this.control.precision&&(e=n._round(e,this.control.precision)),e=this._bound_value(e))}else e=null;return e}},{key:"_set_dom_value",value:function _set_dom_value(e){"number"==typeof e?(e=this._bound_value(e),null!==this.control.precision&&(e=e.toFixed(this.control.precision))):null===e&&(e=""),e+="","de"==this.globals.lang&&null===this.control.precision&&(e=e.replace(".",",")),_get(_getPrototypeOf(NumberField.prototype),"_set_dom_value",this).call(this,e)}},{key:"value_as_text",value:function value_as_text(){var e=this.value;return null===e?null:null!==this.control.precision?e.toFixed(this.control.precision):e.toString()}},{key:"writable",get:function get(){return this._writable}},{key:"writable",set:function set(e){if(this._in_form()){var t,n=!e,r=_createForOfIteratorHelper(this._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.readOnly=n}}catch(e){r.e(e)}finally{r.f()}}_set(_getPrototypeOf(NumberField.prototype),"writable",e,this,!0)}}]),NumberField}(q),J=function(e){_inherits(StringFieldType,e);var t=_createSuper(StringFieldType);function StringFieldType(){return _classCallCheck(this,StringFieldType),t.apply(this,arguments)}return _createClass(StringFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof $}}]),StringFieldType}(U),K=new J("la","StringField","Holds the value of a string field of a record (and related information)"),$=function(e){_inherits(StringField,e);var t=_createSuper(StringField);function StringField(e,n,r){var o;return _classCallCheck(this,StringField),(o=t.call(this,e,n,r))._placeholder=null,o}return _createClass(StringField,[{key:n.symbols.type,value:function value(){return K}},{key:"placeholder",get:function get(){return null!==this._placeholder?this._placeholder:this.control.placeholder}},{key:"placeholder",set:function set(e){var t;this._placeholder=e,this._in_form()&&(this._dom_control.placeholder=null!==(t=this.placeholder)&&void 0!==t?t:"")}},{key:"_validate",value:function _validate(e){if(null===e.value||""===e.value)this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null;else if("string"==typeof e.value){var t=this.control.minlength,n=this.control.maxlength;null!==t&&e.value.length<t&&e.errors.push(this.msg_string_tooshort(e.value)),null!==n&&e.value.length>n&&e.errors.push(this.msg_string_toolong(e.value))}else e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null}},{key:"writable",get:function get(){return this._writable}},{key:"writable",set:function set(e){if(this._in_form()){var t,n=!e,r=_createForOfIteratorHelper(this._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.readOnly=n}}catch(e){r.e(e)}finally{r.f()}}_set(_getPrototypeOf(StringField.prototype),"writable",e,this,!0)}},{key:"value_as_text",value:function value_as_text(){return this.value}}]),StringField}(q);$.prototype._ul4onattrs=[].concat(_toConsumableArray(q.prototype._ul4onattrs),["_placeholder"]),$.prototype._ul4attrs=new Set([].concat(_toConsumableArray(q.prototype._ul4attrs),["placeholder"]));var Z=new(function(e){_inherits(PasswordFieldType,e);var t=_createSuper(PasswordFieldType);function PasswordFieldType(){return _classCallCheck(this,PasswordFieldType),t.apply(this,arguments)}return _createClass(PasswordFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Q}}]),PasswordFieldType}(J))("la","PasswordField","Holds the value of a string/password field of a record (and related information)"),Q=function(e){_inherits(PasswordField,e);var t=_createSuper(PasswordField);function PasswordField(){return _classCallCheck(this,PasswordField),t.apply(this,arguments)}return _createClass(PasswordField,[{key:n.symbols.type,value:function value(){return Z}}]),PasswordField}($),X=new(function(e){_inherits(EmailFieldType,e);var t=_createSuper(EmailFieldType);function EmailFieldType(){return _classCallCheck(this,EmailFieldType),t.apply(this,arguments)}return _createClass(EmailFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ee}}]),EmailFieldType}(J))("la","EmailField","Holds the value of a string/email field of a record (and related information)"),ee=function(e){_inherits(EmailField,e);var t=_createSuper(EmailField);function EmailField(){return _classCallCheck(this,EmailField),t.apply(this,arguments)}return _createClass(EmailField,[{key:n.symbols.type,value:function value(){return X}},{key:"_validate",value:function _validate(e){if("string"==typeof e.value&&e.value.length>0){/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i.test(e.value)||e.errors.push(this.msg_email_format(e.value))}_get(_getPrototypeOf(EmailField.prototype),"_validate",this).call(this,e)}}]),EmailField}($),te=new(function(e){_inherits(URLFieldType,e);var t=_createSuper(URLFieldType);function URLFieldType(){return _classCallCheck(this,URLFieldType),t.apply(this,arguments)}return _createClass(URLFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ne}}]),URLFieldType}(J))("la","URLField","Holds the value of a string/url field of a record (and related information)"),ne=function(e){_inherits(URLField,e);var t=_createSuper(URLField);function URLField(){return _classCallCheck(this,URLField),t.apply(this,arguments)}return _createClass(URLField,[{key:n.symbols.type,value:function value(){return te}},{key:"_validate",value:function _validate(e){if("string"==typeof e.value&&e.value.length>0){var t=null;try{t=new URL(e.value)}catch(t){e.errors.push(this.msg_url_format(e.value))}null!==t&&"http:"!==t.protocol&&"https:"!==t.protocol&&e.errors.push(this.msg_url_format(e.value))}_get(_getPrototypeOf(URLField.prototype),"_validate",this).call(this,e)}}]),URLField}($),re=new(function(e){_inherits(TelFieldType,e);var t=_createSuper(TelFieldType);function TelFieldType(){return _classCallCheck(this,TelFieldType),t.apply(this,arguments)}return _createClass(TelFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof oe}}]),TelFieldType}(J))("la","TelField","Holds the value of a string/tel field of a record (and related information)"),oe=function(e){_inherits(TelField,e);var t=_createSuper(TelField);function TelField(){return _classCallCheck(this,TelField),t.apply(this,arguments)}return _createClass(TelField,[{key:n.symbols.type,value:function value(){return re}},{key:"_validate",value:function _validate(e){if("string"==typeof e.value&&e.value.length>0){/^\\+?[0-9 /()-]+$/.test(e.value)||e.errors.push(this.msg_tel_format(e.value))}_get(_getPrototypeOf(TelField.prototype),"_validate",this).call(this,e)}}]),TelField}($),le=new(function(e){_inherits(TextAreaFieldType,e);var t=_createSuper(TextAreaFieldType);function TextAreaFieldType(){return _classCallCheck(this,TextAreaFieldType),t.apply(this,arguments)}return _createClass(TextAreaFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ae}}]),TextAreaFieldType}(J))("la","TextAreaField","Holds the value of a string/textarea field of a record (and related information)"),ae=function(e){_inherits(TextAreaField,e);var t=_createSuper(TextAreaField);function TextAreaField(){return _classCallCheck(this,TextAreaField),t.apply(this,arguments)}return _createClass(TextAreaField,[{key:n.symbols.type,value:function value(){return le}}]),TextAreaField}($),ie=new(function(e){_inherits(HTMLFieldType,e);var t=_createSuper(HTMLFieldType);function HTMLFieldType(){return _classCallCheck(this,HTMLFieldType),t.apply(this,arguments)}return _createClass(HTMLFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ue}}]),HTMLFieldType}(J))("la","HTMLField","Holds the value of a string/html field of a record (and related information)"),ue=function(e){_inherits(HTMLField,e);var t=_createSuper(HTMLField);function HTMLField(){return _classCallCheck(this,HTMLField),t.apply(this,arguments)}return _createClass(HTMLField,[{key:n.symbols.type,value:function value(){return ie}}]),HTMLField}($),se=new(function(e){_inherits(GeoFieldType,e);var t=_createSuper(GeoFieldType);function GeoFieldType(){return _classCallCheck(this,GeoFieldType),t.apply(this,arguments)}return _createClass(GeoFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof pe}}]),GeoFieldType}(U))("la","GeoField","Holds the value of a geo field of a record (and related information)"),pe=function(e){_inherits(GeoField,e);var t=_createSuper(GeoField);function GeoField(){return _classCallCheck(this,GeoField),t.apply(this,arguments)}return _createClass(GeoField,[{key:n.symbols.type,value:function value(){return se}},{key:"_get_dom_value",value:function _get_dom_value(){var e,t=_createForOfIteratorHelper(this._dom_controls);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.id.endsWith("_geoinfo")){var r=n.value;if(r)return r=JSON.parse(r),new ir(this.globals,r.geometry.coordinates[0],r.geometry.coordinates[1],r.properties.formatted_address)}}}catch(e){t.e(e)}finally{t.f()}return null}},{key:"_set_dom_value",value:function _set_dom_value(e){if(null===e){var t,r=_createForOfIteratorHelper(this._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.value=null}}catch(e){r.e(e)}finally{r.f()}}else{var o,l=_createForOfIteratorHelper(this._dom_controls);try{for(l.s();!(o=l.n()).done;){var a=o.value;if(a.id.endsWith("_geoinfo")){var i={type:"Feature",geometry:{coordinates:[e.lat,e.long]},properties:{formatted_address:e.info}};a.value=n._asjson(i)}else a.value=e.info}}catch(e){l.e(e)}finally{l.f()}}}},{key:"value_as_text",value:function value_as_text(){var e=this.value;if(null===this.value)return null;var t=e.lat.toFixed(5)+", "+e.long.toFixed(5);return null!==e.info&&(t+=" ("+e.info+")"),t}},{key:"_validate",value:function _validate(e){null===e.value||""===e.value?(this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null):e.value instanceof ir||(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}}]),GeoField}(q);pe.prototype._inputevent="llgeo";var ce=function(e){_inherits(FileFieldType,e);var t=_createSuper(FileFieldType);function FileFieldType(){return _classCallCheck(this,FileFieldType),t.apply(this,arguments)}return _createClass(FileFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof he}}]),FileFieldType}(U),_e=new ce("la","FileField","Holds the value of a file field of a record (and related information)"),he=function(e){_inherits(FileField,e);var t=_createSuper(FileField);function FileField(){return _classCallCheck(this,FileField),t.apply(this,arguments)}return _createClass(FileField,[{key:n.symbols.type,value:function value(){return _e}},{key:"_validate",value:function _validate(e){null===e.value||""===e.value?(this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null):e.value instanceof lr||(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}},{key:"_get_dom_value",value:function _get_dom_value(){return null}},{key:"_set_dom_value",value:function _set_dom_value(){}}]),FileField}(q),ye=new(function(e){_inherits(FileSignatureFieldType,e);var t=_createSuper(FileSignatureFieldType);function FileSignatureFieldType(){return _classCallCheck(this,FileSignatureFieldType),t.apply(this,arguments)}return _createClass(FileSignatureFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof de}}]),FileSignatureFieldType}(ce))("la","FileSignatureField","Holds the value of a file/signature field of a record (and related information)"),de=function(e){_inherits(FileSignatureField,e);var t=_createSuper(FileSignatureField);function FileSignatureField(){return _classCallCheck(this,FileSignatureField),t.apply(this,arguments)}return _createClass(FileSignatureField,[{key:n.symbols.type,value:function value(){return ye}},{key:"_validate",value:function _validate(e){_get(_getPrototypeOf(FileSignatureField.prototype),"_validate",this).call(this,e)}}]),FileSignatureField}(he),fe=function(e){_inherits(DateFieldBaseType,e);var t=_createSuper(DateFieldBaseType);function DateFieldBaseType(){return _classCallCheck(this,DateFieldBaseType),t.apply(this,arguments)}return _createClass(DateFieldBaseType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ke}}]),DateFieldBaseType}(U),ve=new fe("la","DateFieldBase","Holds the value of a date field of a record (and related information)"),ke=function(e){_inherits(DateFieldBase,e);var t=_createSuper(DateFieldBase);function DateFieldBase(){return _classCallCheck(this,DateFieldBase),t.apply(this,arguments)}return _createClass(DateFieldBase,[{key:n.symbols.type,value:function value(){return ve}},{key:"value_as_text",value:function value_as_text(){var e=this.value;return null===e?null:"string"==typeof e?e:n._format(e,this.control.formatstring())}},{key:"_parse",value:function _parse(e,t){var n=null,r=null,o=null,l=0,a=0,i=0,u=null;function _int(e,t,n,r){return(e=e.substring(0,t)).length!=t?null:(e=parseInt(e,10),isNaN(e)||e<n||e>r?null:e)}for(;e;){if(!t)return null;if(t.startsWith("%Y")){if(null===(n=_int(e,4)))return null;e=e.substring(4),t=t.substring(2)}else if(t.startsWith("%y")){if(null===(n=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%m")){if(null===(r=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%d")){if(null===(o=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%H")){if(null===(l=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%I")){if(null===(l=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%M")){if(null===(a=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%S")){if(null===(i=_int(e,2)))return null;e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%p")){if(e.toLowerCase().startsWith("pm"))u=!0;else{if(!e.toLowerCase().startsWith("am"))return null;u=!1}e=e.substring(2),t=t.substring(2)}else if(t.startsWith("%%")){if(!e.startsWith("%"))return null;e=e.substring(1),t=t.substring(2)}else if(t.startsWith("%z")){if(!e.startsWith("-")&&!e.startsWith("+"))return null;if(null===_int(e=e.substring(1),2))return null;if(!(e=e.substring(2)).startsWith(":"))return null;if(null===_int(e=e.substring(1),2))return null;e=e.substring(2),t=t.substring(2)}else{if(!e.startsWith(t.substring(0,1)))return null;e=e.substring(1),t=t.substring(1)}}if(t)return null;if(null===n)return null;if(null===r||r<1||r>12)return null;if(null===o||o<1||o>31)return null;if(null===u){if(l<0||l>23)return null}else{if(l<0||l>11)return null;u&&(l+=12)}return a<0||a>59||a<0||a>59||i<0||i>60?null:new Date(n,r-1,o,l,a,i)}},{key:"_validate",value:function _validate(e){if(null===e.value||""===e.value)this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null;else if(e.value instanceof Date)e.value=this._convert(e.value);else if(e.value instanceof n.Date_)e.value=this._convert(e.value._date);else if("string"==typeof e.value){var t,r=null,o=_createForOfIteratorHelper(this.control.formatstrings_parse());try{for(o.s();!(t=o.n()).done;){var l=t.value;if(null!==(r=this._parse(e.value,l)))break}}catch(e){o.e(e)}finally{o.f()}null!==r?e.value=this._convert(r):e.errors.push(this.msg_date_format(e.value))}else e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null}},{key:"_get_dom_value",value:function _get_dom_value(){var e=_get(_getPrototypeOf(DateFieldBase.prototype),"_get_dom_value",this).call(this);if(!e)return null;var t,n=_createForOfIteratorHelper(this.control.formatstrings_parse());try{for(n.s();!(t=n.n()).done;){var r=t.value,o=this._parse(e,r);if(null!==o)return this._convert(o)}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"_set_dom_value",value:function _set_dom_value(e){e=null!==e?n._format(e,this.control.formatstring(),this.globals.lang):"",_get(_getPrototypeOf(DateFieldBase.prototype),"_set_dom_value",this).call(this,e)}}]),DateFieldBase}(q),me=new(function(e){_inherits(DateFieldType,e);var t=_createSuper(DateFieldType);function DateFieldType(){return _classCallCheck(this,DateFieldType),t.apply(this,arguments)}return _createClass(DateFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ge}}]),DateFieldType}(fe))("la","DateField","Holds the value of a date/date field of a record (and related information)"),ge=function(e){_inherits(DateField,e);var t=_createSuper(DateField);function DateField(){return _classCallCheck(this,DateField),t.apply(this,arguments)}return _createClass(DateField,[{key:n.symbols.type,value:function value(){return me}},{key:"_convert",value:function _convert(e){return new n.Date_(e.getFullYear(),e.getMonth()+1,e.getDate())}}]),DateField}(ke),Ce=new(function(e){_inherits(DatetimeMinuteFieldType,e);var t=_createSuper(DatetimeMinuteFieldType);function DatetimeMinuteFieldType(){return _classCallCheck(this,DatetimeMinuteFieldType),t.apply(this,arguments)}return _createClass(DatetimeMinuteFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof be}}]),DatetimeMinuteFieldType}(fe))("la","DatetimeMinuteField","Holds the value of a date/datetimeminute field of a record (and related information)"),be=function(e){_inherits(DatetimeMinuteField,e);var t=_createSuper(DatetimeMinuteField);function DatetimeMinuteField(){return _classCallCheck(this,DatetimeMinuteField),t.apply(this,arguments)}return _createClass(DatetimeMinuteField,[{key:n.symbols.type,value:function value(){return Ce}},{key:"_convert",value:function _convert(e){return e.setSeconds(0),e.setMilliseconds(0),e}}]),DatetimeMinuteField}(ke),Le=new(function(e){_inherits(DatetimeSecondFieldType,e);var t=_createSuper(DatetimeSecondFieldType);function DatetimeSecondFieldType(){return _classCallCheck(this,DatetimeSecondFieldType),t.apply(this,arguments)}return _createClass(DatetimeSecondFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Te}}]),DatetimeSecondFieldType}(fe))("la","DatetimeSecondField","Holds the value of a date/datetimesecond field of a record (and related information)"),Te=function(e){_inherits(DatetimeSecondField,e);var t=_createSuper(DatetimeSecondField);function DatetimeSecondField(){return _classCallCheck(this,DatetimeSecondField),t.apply(this,arguments)}return _createClass(DatetimeSecondField,[{key:n.symbols.type,value:function value(){return Le}},{key:"_convert",value:function _convert(e){return e.setMilliseconds(0),e}}]),DatetimeSecondField}(ke),Ae=function(e){_inherits(ChoiceFieldBase,e);var t=_createSuper(ChoiceFieldBase);function ChoiceFieldBase(){return _classCallCheck(this,ChoiceFieldBase),t.apply(this,arguments)}return _createClass(ChoiceFieldBase,[{key:"_make_option",value:function _make_option(e,t,n){return element("option",n,{value:t,class:t===this.control.none_key?"la-none-option":null,selected:e?"selected":null})}},{key:"_set_dom_lookupdata_select",value:function _set_dom_lookupdata_select(e){var t;null===e&&(e=this.control.lookup_data),n._isobject(e)&&(e=new Map(Object.entries(e)));var r,o=!1,l=new Set,a=_createForOfIteratorHelper(this._dom_control.querySelectorAll("option:checked"));try{for(a.s();!(r=a.n()).done;){var i=r.value.getAttribute("value");e.has(i)?l.add(i):i===this.control.none_key&&(o=!0)}}catch(e){a.e(e)}finally{a.f()}var u=[];null!==this.control.none_key&&u.push(this._make_option(o,this.control.none_key,null!==this.control.none_label?this.control.none_label:this.globals.msg_nothing_selected()));var s,p=_createForOfIteratorHelper(e);try{for(p.s();!(s=p.n()).done;){var c=_slicedToArray(s.value,2),_=c[0],h=c[1];u.push(this._make_option(l.has(_),_,this._make_label(h)))}}catch(e){p.e(e)}finally{p.f()}(t=this._dom_control).replaceChildren.apply(t,u)}},{key:"_set_dom_lookupdata_input",value:function _set_dom_lookupdata_input(e){null===e?e=this.control.lookupdata:n._isobject(e)&&(e=new Map(Object.entries(e)));var t,r=!1,o=new Set,l=_createForOfIteratorHelper(this._dom_controls);try{for(l.s();!(t=l.n()).done;){var a=t.value,i=a.getAttribute("value");a.checked&&(e.has(i)?o.add(i):i===this.control.none_key&&(r=!0))}}catch(e){l.e(e)}finally{l.f()}var u=this._dom_root.querySelector("input[value="+this.control.none_key+"]");null!==u&&(u.checked=r);var s,p=_createForOfIteratorHelper(this.control.lookupdata);try{for(p.s();!(s=p.n()).done;){var c=_slicedToArray(s.value,2),_=c[0],h=(c[1],this._dom_root.querySelector("input[value="+_+"]")),y=this._dom_root.querySelector("label[for="+h.id+"]");e.has(_)?(h.style.display="inline",y.style.display="inline",y.innerText=this._make_label(e.get(_))):(h.style.display="none",y.style.display="none",y.checked=!1)}}catch(e){p.e(e)}finally{p.f()}}}]),ChoiceFieldBase}(q),Fe=function(e){_inherits(LookupFieldBaseType,e);var t=_createSuper(LookupFieldBaseType);function LookupFieldBaseType(){return _classCallCheck(this,LookupFieldBaseType),t.apply(this,arguments)}return _createClass(LookupFieldBaseType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Se}}]),LookupFieldBaseType}(U),we=new Fe("la","LookupFieldBase","Base type of LookupField and MultipleLookupField"),Se=function(e){_inherits(LookupFieldBase,e);var t=_createSuper(LookupFieldBase);function LookupFieldBase(){return _classCallCheck(this,LookupFieldBase),t.apply(this,arguments)}return _createClass(LookupFieldBase,[{key:n.symbols.type,value:function value(){return we}},{key:"lookupdata",get:function get(){return null!==this._lookupdata?this._lookupdata:this.control.lookupdata}},{key:"lookupdata",set:function set(e){this._in_form()&&this._set_dom_lookupdata(e),this._lookupdata=e}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){}},{key:"_make_label",value:function _make_label(e){return"string"==typeof e?e:e instanceof qn?e.label:n._str(e)}},{key:"_find_lookupitem",value:function _find_lookupitem(e){var t=e.value;if("string"==typeof t){if(null===this.lookupdata)return;var n=this.control.lookupdata.get(t);if(void 0===n)if(this.control.autoexpandable){var r,o=_createForOfIteratorHelper(this.lookupdata.values());try{for(o.s();!(r=o.n()).done;){var l=r.value;if(t===l.label)return void(e.value=l)}}catch(e){o.e(e)}finally{o.f()}}else e.errors.push(this.msg_lookup_unknownkey(t)),e.value=null;else e.value=n}else if(t instanceof qn){this.control.lookupdata.get(t.key)!==t&&(e.errors.push(this.msg_lookup_wrongitem(t)),e.value=null)}else e.errors.push(this.msg_field_wrong_type(t)),e.value=null}}]),LookupFieldBase}(Ae),Me=function(e){_inherits(LookupFieldType,e);var t=_createSuper(LookupFieldType);function LookupFieldType(){return _classCallCheck(this,LookupFieldType),t.apply(this,arguments)}return _createClass(LookupFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ie}}]),LookupFieldType}(Fe),xe=new Me("la","LookupField","Holds the value of a lookup field of a record (and related information)"),Ie=function(e){_inherits(LookupField,e);var t=_createSuper(LookupField);function LookupField(){return _classCallCheck(this,LookupField),t.apply(this,arguments)}return _createClass(LookupField,[{key:n.symbols.type,value:function value(){return xe}},{key:"value_as_text",value:function value_as_text(){var e=this.value;return null===e?null:e.label}},{key:"_validate",value:function _validate(e){var t=e.value;null===t||""===t||this.control.none_key===t?(this.control.required&&e.errors.push(this.msg_field_required(t)),e.value=null):this._find_lookupitem(e)}}]),LookupField}(Se),Oe=new(function(e){_inherits(LookupRadioFieldType,e);var t=_createSuper(LookupRadioFieldType);function LookupRadioFieldType(){return _classCallCheck(this,LookupRadioFieldType),t.apply(this,arguments)}return _createClass(LookupRadioFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof De}}]),LookupRadioFieldType}(Me))("la","LookupRadioField","Holds the value of a lookup/radio field of a record (and related information)"),De=function(e){_inherits(LookupRadioField,e);var t=_createSuper(LookupRadioField);function LookupRadioField(){return _classCallCheck(this,LookupRadioField),t.apply(this,arguments)}return _createClass(LookupRadioField,[{key:n.symbols.type,value:function value(){return Oe}},{key:"_sel_label",get:function get(){return this._sel_root+" label:not([for]) > span"}},{key:"_get_dom_value",value:function _get_dom_value(){var e,t=_createForOfIteratorHelper(this._dom_controls);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.checked){var r=n.getAttribute("value");return this.control.lookupdata.get(r)}}}catch(e){t.e(e)}finally{t.f()}return null}},{key:"_set_dom_value",value:function _set_dom_value(e){e instanceof qn&&(e=e.key),null===e&&(e=this.control.none_key);var t,n=_createForOfIteratorHelper(this._dom_controls);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.checked=r.getAttribute("value")===e}}catch(e){n.e(e)}finally{n.f()}}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_input(e)}}]),LookupRadioField}(Ie),Re=new(function(e){_inherits(LookupSelectFieldType,e);var t=_createSuper(LookupSelectFieldType);function LookupSelectFieldType(){return _classCallCheck(this,LookupSelectFieldType),t.apply(this,arguments)}return _createClass(LookupSelectFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof He}}]),LookupSelectFieldType}(Me))("la","LookupSelectField","Holds the value of a lookup/select field of a record (and related information)"),He=function(e){_inherits(LookupSelectField,e);var t=_createSuper(LookupSelectField);function LookupSelectField(){return _classCallCheck(this,LookupSelectField),t.apply(this,arguments)}return _createClass(LookupSelectField,[{key:n.symbols.type,value:function value(){return Re}},{key:"_get_dom_value",value:function _get_dom_value(){var e=_get(_getPrototypeOf(LookupSelectField.prototype),"_get_dom_value",this).call(this);return e&&(e=e===this.control.none_key?null:this.control.lookupdata.get(e)),e}},{key:"_set_dom_value",value:function _set_dom_value(e){var t={value:e,errors:[]};this._validate(t),_get(_getPrototypeOf(LookupSelectField.prototype),"_set_dom_value",this).call(this,null!=t.value?t.value.key:this.control.none_key)}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_select(e)}}]),LookupSelectField}(Ie),Pe=new(function(e){_inherits(LookupChoiceFieldType,e);var t=_createSuper(LookupChoiceFieldType);function LookupChoiceFieldType(){return _classCallCheck(this,LookupChoiceFieldType),t.apply(this,arguments)}return _createClass(LookupChoiceFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Be}}]),LookupChoiceFieldType}(Me))("la","LookupChoiceField","Holds the value of a lookup/choice field of a record (and related information)"),Be=function(e){_inherits(LookupChoiceField,e);var t=_createSuper(LookupChoiceField);function LookupChoiceField(){return _classCallCheck(this,LookupChoiceField),t.apply(this,arguments)}return _createClass(LookupChoiceField,[{key:n.symbols.type,value:function value(){return Pe}}]),LookupChoiceField}(Ie);Be.prototype._inputevent="llchoice";var Ne=function(e){_inherits(MultipleLookupFieldType,e);var t=_createSuper(MultipleLookupFieldType);function MultipleLookupFieldType(){return _classCallCheck(this,MultipleLookupFieldType),t.apply(this,arguments)}return _createClass(MultipleLookupFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ge}}]),MultipleLookupFieldType}(Fe),Ue=new Ne("la","MultipleLookupField","Holds the value of a multiple lookup field of a record (and related information)"),Ge=function(e){_inherits(MultipleLookupField,e);var t=_createSuper(MultipleLookupField);function MultipleLookupField(){return _classCallCheck(this,MultipleLookupField),t.apply(this,arguments)}return _createClass(MultipleLookupField,[{key:n.symbols.type,value:function value(){return Ue}},{key:"is_empty",value:function is_empty(){return 0===this._value.length}},{key:"value_as_text",value:function value_as_text(){var e=this.value;return null===e||0===e.length?null:e.map((function(e){return e.label})).join(", ")}},{key:"_validate",value:function _validate(e){var t=e.value,n="[object Array]"===Object.prototype.toString.call(t);if(null===t||""===t||this.control.none_key===t||n&&0===t.length)this.control.required&&e.errors.push(this.msg_field_required(t)),e.value=[];else if(n){var r,o=[],l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var a={value:r.value,errors:[]};this._find_lookupitem(a),a.errors.length>0?e.errors=[].concat(_toConsumableArray(e.errors),_toConsumableArray(a.errors)):o.push(a.value)}}catch(e){l.e(e)}finally{l.f()}e.value=o}else this._find_lookupitem(e),e.errors.length>0?e.value=[]:e.value=[e.value]}}]),MultipleLookupField}(Se),qe=new(function(e){_inherits(MultipleLookupCheckboxFieldType,e);var t=_createSuper(MultipleLookupCheckboxFieldType);function MultipleLookupCheckboxFieldType(){return _classCallCheck(this,MultipleLookupCheckboxFieldType),t.apply(this,arguments)}return _createClass(MultipleLookupCheckboxFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ve}}]),MultipleLookupCheckboxFieldType}(Ne))("la","MultipleLookupCheckboxField","Holds the value of a multiplelookup/radio field of a record (and related information)"),Ve=function(e){_inherits(MultipleLookupCheckboxField,e);var t=_createSuper(MultipleLookupCheckboxField);function MultipleLookupCheckboxField(){return _classCallCheck(this,MultipleLookupCheckboxField),t.apply(this,arguments)}return _createClass(MultipleLookupCheckboxField,[{key:n.symbols.type,value:function value(){return qe}},{key:"_sel_label",get:function get(){return this._sel_root+" label:not([for]) > span"}},{key:"_get_dom_value",value:function _get_dom_value(){var e,t=[],n=_createForOfIteratorHelper(this._dom_controls);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.checked){var o=r.getAttribute("value");t.push(this.control.lookupdata.get(o))}}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"_set_dom_value",value:function _set_dom_value(e){var t={value:e,errors:[]};this._validate(t);var n,r=new Set,o=_createForOfIteratorHelper(t.value);try{for(o.s();!(n=o.n()).done;){var l=n.value;r.add(l.key)}}catch(e){o.e(e)}finally{o.f()}var a,i=_createForOfIteratorHelper(this._dom_controls);try{for(i.s();!(a=i.n()).done;){var u=a.value;u.checked=r.has(u.getAttribute("value"))}}catch(e){i.e(e)}finally{i.f()}}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_input(e)}}]),MultipleLookupCheckboxField}(Ge),Ee=new(function(e){_inherits(MultipleLookupSelectFieldType,e);var t=_createSuper(MultipleLookupSelectFieldType);function MultipleLookupSelectFieldType(){return _classCallCheck(this,MultipleLookupSelectFieldType),t.apply(this,arguments)}return _createClass(MultipleLookupSelectFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof je}}]),MultipleLookupSelectFieldType}(Ne))("la","MultipleLookupSelectField","Holds the value of a multiplelookup/select field of a record (and related information)"),je=function(e){_inherits(MultipleLookupSelectField,e);var t=_createSuper(MultipleLookupSelectField);function MultipleLookupSelectField(){return _classCallCheck(this,MultipleLookupSelectField),t.apply(this,arguments)}return _createClass(MultipleLookupSelectField,[{key:n.symbols.type,value:function value(){return Ee}},{key:"_get_dom_value",value:function _get_dom_value(){var e,t=[],n=_createForOfIteratorHelper(this._dom_control.querySelectorAll("option"));try{for(n.s();!(e=n.n()).done;){var r=e.value;r.selected&&t.push(this.control.lookupdata.get(r.getAttribute("value")))}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"_set_dom_value",value:function _set_dom_value(e){var t={value:e,errors:[]};this._validate(t);var n,r=new Set,o=_createForOfIteratorHelper(t.value);try{for(o.s();!(n=o.n()).done;){var l=n.value;r.add(l.key)}}catch(e){o.e(e)}finally{o.f()}var a,i=_createForOfIteratorHelper(this._dom_control.querySelectorAll("option"));try{for(i.s();!(a=i.n()).done;){var u=a.value;u.selected=r.has(u.getAttribute("value"))}}catch(e){i.e(e)}finally{i.f()}}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_select(e)}}]),MultipleLookupSelectField}(Ge),We=new(function(e){_inherits(MultipleLookupChoiceFieldType,e);var t=_createSuper(MultipleLookupChoiceFieldType);function MultipleLookupChoiceFieldType(){return _classCallCheck(this,MultipleLookupChoiceFieldType),t.apply(this,arguments)}return _createClass(MultipleLookupChoiceFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ze}}]),MultipleLookupChoiceFieldType}(Ne))("la","MultipleLookupChoiceField","Holds the value of a multiplelookup/choice field of a record (and related information)"),ze=function(e){_inherits(MultipleLookupChoiceField,e);var t=_createSuper(MultipleLookupChoiceField);function MultipleLookupChoiceField(){return _classCallCheck(this,MultipleLookupChoiceField),t.apply(this,arguments)}return _createClass(MultipleLookupChoiceField,[{key:n.symbols.type,value:function value(){return We}}]),MultipleLookupChoiceField}(Ge);ze.prototype._inputevent="llchoice";var Ye=function(e){_inherits(AppLookupFieldBaseType,e);var t=_createSuper(AppLookupFieldBaseType);function AppLookupFieldBaseType(){return _classCallCheck(this,AppLookupFieldBaseType),t.apply(this,arguments)}return _createClass(AppLookupFieldBaseType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ke}}]),AppLookupFieldBaseType}(U),Je=new Ye("la","AppLookupFieldBase","Base type of AppLookupField and MultipleAppLookupField"),Ke=function(e){_inherits(AppLookupFieldBase,e);var t=_createSuper(AppLookupFieldBase);function AppLookupFieldBase(){return _classCallCheck(this,AppLookupFieldBase),t.apply(this,arguments)}return _createClass(AppLookupFieldBase,[{key:n.symbols.type,value:function value(){return Je}},{key:"lookupdata",get:function get(){return null!==this._lookupdata?this._lookupdata:null!==this.control.lookup_app.records?this.control.lookup_app.records:new Map}},{key:"lookupdata",set:function set(e){this._in_form()&&this._set_dom_lookupdata(e),this._lookupdata=e}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){}},{key:"_make_label",value:function _make_label(e){return"string"==typeof e?e:e instanceof N?e.as_text(this.control.lookup_controls):n._str(e)}},{key:"_find_record",value:function _find_record(e){var t=e.value;if("string"==typeof t){var n=null!==this.control.lookup_app.records?this.control.lookup_app.records.get(t):void 0;void 0===n?(e.errors.push(this.msg_applookup_unknownkey(t)),e.value=null):e.value=n}else t instanceof N?t.app!==this.control.lookup_app&&(e.errors.push(this.msg_applookup_wrongrecord(t)),e.value=null):(e.errors.push(this.msg_field_wrong_type(t)),e.value=null)}},{key:n.symbols.setattr,value:function value(e,t){"lookupdata"===e?this.lookupdata=t:_get(_getPrototypeOf(AppLookupFieldBase.prototype),n.symbols.setattr,this).call(this,e,t)}}]),AppLookupFieldBase}(Ae);Ke.prototype._ul4attrs=new Set([].concat(_toConsumableArray(q.prototype._ul4attrs),["lookupdata"]));var $e=function(e){_inherits(AppLookupFieldType,e);var t=_createSuper(AppLookupFieldType);function AppLookupFieldType(){return _classCallCheck(this,AppLookupFieldType),t.apply(this,arguments)}return _createClass(AppLookupFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Qe}}]),AppLookupFieldType}(Ye),Ze=new $e("la","AppLookupField","Holds the value of a applookup field of a record (and related information)"),Qe=function(e){_inherits(AppLookupField,e);var t=_createSuper(AppLookupField);function AppLookupField(){return _classCallCheck(this,AppLookupField),t.apply(this,arguments)}return _createClass(AppLookupField,[{key:n.symbols.type,value:function value(){return Ze}},{key:"value_as_text",value:function value_as_text(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=this.value;return null===t?null:"("+this.value.as_text(e)+")"}},{key:"_validate",value:function _validate(e){this._find_record(e)}}]),AppLookupField}(Ke),Xe=new(function(e){_inherits(AppLookupSelectFieldType,e);var t=_createSuper(AppLookupSelectFieldType);function AppLookupSelectFieldType(){return _classCallCheck(this,AppLookupSelectFieldType),t.apply(this,arguments)}return _createClass(AppLookupSelectFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof et}}]),AppLookupSelectFieldType}($e))("la","AppLookupSelectField","Holds the value of a `applookup`/`select` field of a record (and related information)"),et=function(e){_inherits(AppLookupSelectField,e);var t=_createSuper(AppLookupSelectField);function AppLookupSelectField(){return _classCallCheck(this,AppLookupSelectField),t.apply(this,arguments)}return _createClass(AppLookupSelectField,[{key:n.symbols.type,value:function value(){return Xe}},{key:"_get_dom_value",value:function _get_dom_value(){var e=_get(_getPrototypeOf(AppLookupSelectField.prototype),"_get_dom_value",this).call(this);return null!==this.control.lookup_app.records?void 0===(e=this.control.lookup_app.records.get(e))&&(e=null):e=null,e}},{key:"_set_dom_value",value:function _set_dom_value(e){var t={value:e,errors:[]};this._validate(t),_get(_getPrototypeOf(AppLookupSelectField.prototype),"_set_dom_value",this).call(this,null!=t.value?t.value.id:this.control.none_key)}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_select(e)}}]),AppLookupSelectField}(Qe),tt=new(function(e){_inherits(AppLookupRadioFieldType,e);var t=_createSuper(AppLookupRadioFieldType);function AppLookupRadioFieldType(){return _classCallCheck(this,AppLookupRadioFieldType),t.apply(this,arguments)}return _createClass(AppLookupRadioFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof nt}}]),AppLookupRadioFieldType}($e))("la","AppLookupRadioField","Holds the value of a `applookup`/`radio` field of a record (and related information)"),nt=function(e){_inherits(AppLookupRadioField,e);var t=_createSuper(AppLookupRadioField);function AppLookupRadioField(){return _classCallCheck(this,AppLookupRadioField),t.apply(this,arguments)}return _createClass(AppLookupRadioField,[{key:n.symbols.type,value:function value(){return tt}}]),AppLookupRadioField}(Qe),rt=new(function(e){_inherits(AppLookupChoiceFieldType,e);var t=_createSuper(AppLookupChoiceFieldType);function AppLookupChoiceFieldType(){return _classCallCheck(this,AppLookupChoiceFieldType),t.apply(this,arguments)}return _createClass(AppLookupChoiceFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ot}}]),AppLookupChoiceFieldType}($e))("la","AppLookupChoiceField","Holds the value of a `applookup`/`choice` field of a record (and related information)"),ot=function(e){_inherits(AppLookupChoiceField,e);var t=_createSuper(AppLookupChoiceField);function AppLookupChoiceField(e,n,r){var o;return _classCallCheck(this,AppLookupChoiceField),(o=t.call(this,e,n,r))._search_url=null,o._search_param_name=null,o._target_param_name=null,o}return _createClass(AppLookupChoiceField,[{key:n.symbols.type,value:function value(){return rt}},{key:"search_url",get:function get(){var e;return null!==(e=this._search_url)&&void 0!==e?e:this.control.search_url}},{key:"search_url",set:function set(e){this._search_url=e}},{key:"search_param_name",get:function get(){var e;return null!==(e=this._search_param_name)&&void 0!==e?e:this.control.search_param_name}},{key:"search_param_name",set:function set(e){this._search_param_name=e}},{key:"target_param_name",get:function get(){var e;return null!==(e=this._target_param_name)&&void 0!==e?e:this.control.target_param_name}},{key:"target_param_name",set:function set(e){this._target_param_name=e}}]),AppLookupChoiceField}(Qe);ot.prototype._inputevent="llchoice",ot.prototype._ul4attrs=new Set([].concat(_toConsumableArray(q.prototype._ul4attrs),["search_url","search_param_name","target_param_name"]));var lt=function(e){_inherits(MultipleAppLookupFieldType,e);var t=_createSuper(MultipleAppLookupFieldType);function MultipleAppLookupFieldType(){return _classCallCheck(this,MultipleAppLookupFieldType),t.apply(this,arguments)}return _createClass(MultipleAppLookupFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof it}}]),MultipleAppLookupFieldType}(Ye),at=new lt("la","MultipleAppLookupField","Holds the value of a multiple applookup field of a record (and related information)"),it=function(e){_inherits(MultipleAppLookupField,e);var t=_createSuper(MultipleAppLookupField);function MultipleAppLookupField(){return _classCallCheck(this,MultipleAppLookupField),t.apply(this,arguments)}return _createClass(MultipleAppLookupField,[{key:n.symbols.type,value:function value(){return at}},{key:"is_empty",value:function is_empty(){return 0===this._value.length}},{key:"_validate",value:function _validate(e){var t=e.value,n="[object Array]"===Object.prototype.toString.call(t);if(null===t||""===t||this.control.none_key===t||n&&0===t.length)this.control.required&&e.errors.push(this.msg_field_required(t)),e.value=[];else if(n){var r,o=[],l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var a={value:r.value,errors:[]};this._find_record(a),a.errors.length>0?e.errors=[].concat(_toConsumableArray(e.errors),_toConsumableArray(a.errors)):o.push(a.value)}}catch(e){l.e(e)}finally{l.f()}e.value=o}else this._find_record(e),e.errors.length>0?e.value=[]:e.value=[e.value]}}]),MultipleAppLookupField}(Ke),ut=new(function(e){_inherits(MultipleAppLookupCheckboxFieldType,e);var t=_createSuper(MultipleAppLookupCheckboxFieldType);function MultipleAppLookupCheckboxFieldType(){return _classCallCheck(this,MultipleAppLookupCheckboxFieldType),t.apply(this,arguments)}return _createClass(MultipleAppLookupCheckboxFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof st}}]),MultipleAppLookupCheckboxFieldType}(lt))("la","MultipleAppLookupCheckboxField","Holds the value of a `multipleapplookup`/`checkbox` field of a record (and related information)"),st=function(e){_inherits(MultipleAppLookupCheckboxField,e);var t=_createSuper(MultipleAppLookupCheckboxField);function MultipleAppLookupCheckboxField(){return _classCallCheck(this,MultipleAppLookupCheckboxField),t.apply(this,arguments)}return _createClass(MultipleAppLookupCheckboxField,[{key:n.symbols.type,value:function value(){return ut}}]),MultipleAppLookupCheckboxField}(it),pt=new(function(e){_inherits(MultipleAppLookupSelectFieldType,e);var t=_createSuper(MultipleAppLookupSelectFieldType);function MultipleAppLookupSelectFieldType(){return _classCallCheck(this,MultipleAppLookupSelectFieldType),t.apply(this,arguments)}return _createClass(MultipleAppLookupSelectFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ct}}]),MultipleAppLookupSelectFieldType}(lt))("la","MultipleAppLookupSelectField","Holds the value of a `multipleapplookup`/`select` field of a record (and related information)"),ct=function(e){_inherits(MultipleAppLookupSelectField,e);var t=_createSuper(MultipleAppLookupSelectField);function MultipleAppLookupSelectField(){return _classCallCheck(this,MultipleAppLookupSelectField),t.apply(this,arguments)}return _createClass(MultipleAppLookupSelectField,[{key:n.symbols.type,value:function value(){return pt}},{key:"_set_dom_lookupdata",value:function _set_dom_lookupdata(e){this._set_dom_lookupdata_select(e)}}]),MultipleAppLookupSelectField}(it),_t=new(function(e){_inherits(MultipleAppLookupChoiceFieldType,e);var t=_createSuper(MultipleAppLookupChoiceFieldType);function MultipleAppLookupChoiceFieldType(){return _classCallCheck(this,MultipleAppLookupChoiceFieldType),t.apply(this,arguments)}return _createClass(MultipleAppLookupChoiceFieldType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ht}}]),MultipleAppLookupChoiceFieldType}(lt))("la","MultipleAppLookupChoiceField","Holds the value of a `multipleapplookup`/`choice` field of a record (and related information)"),ht=function(e){_inherits(MultipleAppLookupChoiceField,e);var t=_createSuper(MultipleAppLookupChoiceField);function MultipleAppLookupChoiceField(){return _classCallCheck(this,MultipleAppLookupChoiceField),t.apply(this,arguments)}return _createClass(MultipleAppLookupChoiceField,[{key:n.symbols.type,value:function value(){return _t}}]),MultipleAppLookupChoiceField}(it);ht.prototype._inputevent="llchoice";var yt=function(e){_inherits(ControlType,e);var t=_createSuper(ControlType);function ControlType(){return _classCallCheck(this,ControlType),t.apply(this,arguments)}return _createClass(ControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ft}}]),ControlType}(n.Type),dt=new yt("la","Control","Metainformation about a field in a LivingApps application"),ft=function(e){_inherits(Control,e);var t=_createSuper(Control);function Control(e){var n;return _classCallCheck(this,Control),(n=t.call(this,e))._mode=null,n}return _createClass(Control,[{key:n.symbols.type,value:function value(){return dt}},{key:n.symbols.repr,value:function value(){return"<"+this.constructor.name+" id="+n._repr(this.id)+" identifier="+n._repr(this.identifier)+">"}},{key:"globals",get:function get(){return this.app.globals}},{key:"fulltype",get:function get(){return this.subtype?this.type+"/"+this.subtype:this.type}},{key:"translations",get:function get(){return void 0===this._translations&&(this._translations=new y(this)),this._translations}},{key:"_create_translation",value:function _create_translation(e){return new C(null,this,e)}},{key:"label",get:function get(){var e=this._view_control();if(null!==e){var t=e.label;if(null!==t)return t}var n=this.translations.get();return null!==n&&null!==n.label?n.label:this._label}},{key:"label",set:function set(e){this._label=e}},{key:"description",get:function get(){var e=this.translations.get();return null!==e&&null!==e.description?e.description:this._description}},{key:"description",set:function set(e){this._description=e}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return"translations"===e?this.translations.langs:this[e]}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){"translations"===e?this.translations.langs=t:this[e]=t}},{key:"_setDefaultUL4ONAttr",value:function _setDefaultUL4ONAttr(e){"translations"===e?this.translations.langs=null:this[e]=null}},{key:"priority",get:function get(){return this._priority}},{key:"priority",set:function set(e){this._priority=e}},{key:"in_list",get:function get(){return this._priority}},{key:"in_list",set:function set(e){this._priority=e}},{key:"in_mobile_list",get:function get(){return this._in_mobile_list}},{key:"in_mobile_list",set:function set(e){this._in_mobile_list=e}},{key:"in_text",get:function get(){return this._in_text}},{key:"in_text",set:function set(e){this._in_text=e}},{key:"in_structured_search",get:function get(){return this._in_structured_search}},{key:"in_structured_search",set:function set(e){this._in_structured_search=e}},{key:"in_fulltext_search",get:function get(){return this._in_fulltext_search}},{key:"in_fulltext_search",set:function set(e){this._in_fulltext_search=e}},{key:"in_expert_search",get:function get(){return this._in_expert_search}},{key:"in_expert_search",set:function set(e){this._in_expert_search=e}},{key:"default",get:function get(){return null}},{key:"top",get:function get(){var e=this._view_control();return null!==e?e.top:null}},{key:"left",get:function get(){var e=this._view_control();return null!==e?e.left:null}},{key:"width",get:function get(){var e=this._view_control();return null!==e?e.width:null}},{key:"height",get:function get(){var e=this._view_control();return null!==e?e.height:null}},{key:"z_index",get:function get(){var e=this._view_control();return null!==e?e.z_index:null}},{key:"liveupdate",get:function get(){var e=this._view_control();return null!==e&&e.liveupdate}},{key:"tabindex",get:function get(){var e=this._view_control();return null!==e?e.tabindex:null}},{key:"required",get:function get(){var e;if(null===this.app._active_view)return null!==(e=this._required)&&void 0!==e?e:this._required_in_view;var t=this._view_control();return null!==t&&t.required}},{key:"required",set:function set(e){this._required=e}},{key:"mode",get:function get(){if(null!==this._mode)return this._mode;var e=this._view_control();return null!==this.app._active_view&&null===e?null:null===this.app.globals.mode?"display":null!==e?e.mode:"edit"}},{key:"mode",set:function set(e){this._mode=e}},{key:"labelpos",get:function get(){var e=this._view_control();return null!==e?e.labelpos:"left"}},{key:"labelwidth",get:function get(){var e=this._view_control();return null!==e?e.labelwidth:null}},{key:"autoalign",get:function get(){var e=this._view_control();return null===e||e.autoalign}},{key:"in_active_view",get:function get(){return null!==this._view_control()}},{key:"_view_control",value:function _view_control(){if(null===this.app._active_view)return null;var e=this.app._active_view.controls.get(this.identifier);return null!=e?e:null}},{key:"_logsearch",value:function _logsearch(e,t){}},{key:"search",value:function search(e,t){return!1}}]),Control}(r);ft.prototype.type=null,ft.prototype.subtype=null,ft.prototype._ul4onattrs=["identifier","fieldname","app","_label","_description","base_mode","in_sum","_priority","_in_mobile_list","_in_text","_in_structured_search","_in_fulltext_search","_in_expert_search","_required","_required_in_view","order","ininsertprocedure","inupdateprocedure","translations"],ft.prototype._ul4attrs=new Set(["id","identifier","fieldname","app","base_mode","in_sum","priority","in_list","in_mobile_list","in_text","in_structured_search","in_fulltext_search","in_expert_search","order","ininsertprocedure","inupdateprocedure","fulltype","label","description","translations","top","left","width","height","z_index","liveupdate","tabindex","required","mode","labelpos","autoalign","in_active_view"]),ft.prototype._cssclass_root="llft-control",ft.prototype._cssclass_control="input";var vt=new(function(e){_inherits(BoolControlType,e);var t=_createSuper(BoolControlType);function BoolControlType(){return _classCallCheck(this,BoolControlType),t.apply(this,arguments)}return _createClass(BoolControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof kt}}]),BoolControlType}(yt))("la","BoolControl","A LivingApps boolean field (type 'bool')"),kt=function(e){_inherits(BoolControl,e);var t=_createSuper(BoolControl);function BoolControl(){return _classCallCheck(this,BoolControl),t.apply(this,arguments)}return _createClass(BoolControl,[{key:n.symbols.type,value:function value(){return vt}},{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator&&t.value===e}}]),BoolControl}(ft);kt.prototype.type="bool",kt.prototype.fieldtype=E;var mt=new(function(e){_inherits(IntControlType,e);var t=_createSuper(IntControlType);function IntControlType(){return _classCallCheck(this,IntControlType),t.apply(this,arguments)}return _createClass(IntControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof gt}}]),IntControlType}(yt))("la","IntControl","A LivingApps integer field (type 'int')"),gt=function(e){_inherits(IntControl,e);var t=_createSuper(IntControl);function IntControl(){return _classCallCheck(this,IntControl),t.apply(this,arguments)}return _createClass(IntControl,[{key:n.symbols.type,value:function value(){return mt}},{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator&&t.value===e}}]),IntControl}(ft);gt.prototype.type="int",gt.prototype.fieldtype=W;var Ct=new(function(e){_inherits(NumberControlType,e);var t=_createSuper(NumberControlType);function NumberControlType(){return _classCallCheck(this,NumberControlType),t.apply(this,arguments)}return _createClass(NumberControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof bt}}]),NumberControlType}(yt))("la","NumberControl","A LivingApps number field (type 'number')"),bt=function(e){_inherits(NumberControl,e);var t=_createSuper(NumberControl);function NumberControl(){return _classCallCheck(this,NumberControl),t.apply(this,arguments)}return _createClass(NumberControl,[{key:n.symbols.type,value:function value(){return Ct}},{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator?t.value===e:"range"===t.operator&&(null!==e&&((null===t.minvalue||t.minvalue<=e)&&(null===t.maxvalue||e<t.maxvalue)))}}]),NumberControl}(ft);bt.prototype.type="number",bt.prototype.fieldtype=Y,bt.prototype._ul4onattrs=[].concat(_toConsumableArray(ft.prototype._ul4onattrs),["precision","minimum","maximum"]),bt.prototype._ul4attrs=new Set([].concat(_toConsumableArray(ft.prototype._ul4attrs),["precision","minimum","maximum"]));var Lt=function(e){_inherits(StringControlType,e);var t=_createSuper(StringControlType);function StringControlType(){return _classCallCheck(this,StringControlType),t.apply(this,arguments)}return _createClass(StringControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof At}}]),StringControlType}(yt),Tt=new Lt("la","StringControl","A LivingApps number field (type 'string')"),At=function(e){_inherits(StringControl,e);var t=_createSuper(StringControl);function StringControl(){return _classCallCheck(this,StringControl),t.apply(this,arguments)}return _createClass(StringControl,[{key:n.symbols.type,value:function value(){return Tt}},{key:"placeholder",get:function get(){var e=this._view_control();return null!==e?e.placeholder:this._placeholder}},{key:"placeholder",set:function set(e){this._placeholder=e;var t=this.app.globals;if(t._in_form()&&this.app===t.record.app){var n=t.record.fields.get(this.identifier);n._dom_control.placeholder=n.placeholder}}},{key:"_user_placeholder",value:function _user_placeholder(e,t){if(null===t)return null;switch(t){case"{gender}":return null!==e?e.gender:null;case"{title}":return null!==e?e.title:null;case"{firstname}":return null!==e?e.firstname:null;case"{surname}":return null!==e?e.surname:null;case"{account}":return null!==e?e.email:null;case"{streetname}":return null!==e?e.streetname:null;case"{streetnumber}":return null!==e?e.streetnumber:null;case"{street}":return null===e?null:null===e.street?e.streetnumber:null===e.streetnumber?e.street:e.street+" "+e.streetnumber;case"{zip}":return null!==e?e.zip:null;case"{phone}":return null!==e?e.phone:null;case"{fax}":return null!==e?e.fax:null;case"{company}":return null!==e?e.company:null;case"{city}":return null!==e?e.city:null;case"{summary}":return null!==e?e.summary:null;case"{interests}":return null!==e?e.interests:null;case"{personal_website}":return null!==e?e.personal_website:null;case"{company_website}":return null!==e?e.company_website:null;case"{position}":return null!==e?e.position:null;case"{department}":return null!==e?e.department:null;case"{today}":return n.today();default:return t}}},{key:"default",get:function get(){var e=this._view_control();return null===e?null:this._user_placeholder(this.app.globals.user,e.default)}},{key:"minlength",get:function get(){var e=this._view_control();if(null===e)return 0;var t=e.minlength;return null===t||t<0?0:t}},{key:"maxlength",get:function get(){var e=this._view_control();if(null===e)return 4e3;var t=e.maxlength;return null===t||t<0||t>4e3?4e3:t}},{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator?t.value===e:"contains"===t.operator?null===t.value||null===e?t.value===e:e.toLowerCase().indexOf(t.value.toLowerCase())>=0:void 0}}]),StringControl}(ft);At.prototype.type="string",At.prototype._ul4attrs=new Set([].concat(_toConsumableArray(ft.prototype._ul4attrs),["minlength","maxlength","placeholder"]));var Ft=new(function(e){_inherits(TextControlType,e);var t=_createSuper(TextControlType);function TextControlType(){return _classCallCheck(this,TextControlType),t.apply(this,arguments)}return _createClass(TextControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof wt}}]),TextControlType}(Lt))("la","TextControl","A LivingApps text field (type 'string/text')"),wt=function(e){_inherits(TextControl,e);var t=_createSuper(TextControl);function TextControl(){return _classCallCheck(this,TextControl),t.apply(this,arguments)}return _createClass(TextControl,[{key:n.symbols.type,value:function value(){return Ft}}]),TextControl}(At);wt.prototype.subtype="text",wt.prototype.fieldtype=$;var St=new(function(e){_inherits(PasswordControlType,e);var t=_createSuper(PasswordControlType);function PasswordControlType(){return _classCallCheck(this,PasswordControlType),t.apply(this,arguments)}return _createClass(PasswordControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Mt}}]),PasswordControlType}(Lt))("la","PasswordControl","A LivingApps password field (type 'string/password')"),Mt=function(e){_inherits(PasswordControl,e);var t=_createSuper(PasswordControl);function PasswordControl(){return _classCallCheck(this,PasswordControl),t.apply(this,arguments)}return _createClass(PasswordControl,[{key:n.symbols.type,value:function value(){return St}}]),PasswordControl}(At);Mt.prototype.subtype="password",Mt.prototype.fieldtype=Q;var xt=new(function(e){_inherits(EmailControlType,e);var t=_createSuper(EmailControlType);function EmailControlType(){return _classCallCheck(this,EmailControlType),t.apply(this,arguments)}return _createClass(EmailControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof It}}]),EmailControlType}(Lt))("la","EmailControl","A LivingApps email field (type 'string/email')"),It=function(e){_inherits(EmailControl,e);var t=_createSuper(EmailControl);function EmailControl(){return _classCallCheck(this,EmailControl),t.apply(this,arguments)}return _createClass(EmailControl,[{key:n.symbols.type,value:function value(){return xt}}]),EmailControl}(At);It.prototype.subtype="email",It.prototype.fieldtype=ee;var Ot=new(function(e){_inherits(URLControlType,e);var t=_createSuper(URLControlType);function URLControlType(){return _classCallCheck(this,URLControlType),t.apply(this,arguments)}return _createClass(URLControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Dt}}]),URLControlType}(Lt))("la","URLControl","A LivingApps URL field (type 'string/url')"),Dt=function(e){_inherits(URLControl,e);var t=_createSuper(URLControl);function URLControl(){return _classCallCheck(this,URLControl),t.apply(this,arguments)}return _createClass(URLControl,[{key:n.symbols.type,value:function value(){return Ot}}]),URLControl}(At);Dt.prototype.subtype="url",Dt.prototype.fieldtype=ne;var Rt=new(function(e){_inherits(TelControlType,e);var t=_createSuper(TelControlType);function TelControlType(){return _classCallCheck(this,TelControlType),t.apply(this,arguments)}return _createClass(TelControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ht}}]),TelControlType}(Lt))("la","TelControl","A LivingApps phone number field (type 'string/tel')"),Ht=function(e){_inherits(TelControl,e);var t=_createSuper(TelControl);function TelControl(){return _classCallCheck(this,TelControl),t.apply(this,arguments)}return _createClass(TelControl,[{key:n.symbols.type,value:function value(){return Rt}}]),TelControl}(At);Ht.prototype.subtype="tel",Ht.prototype.fieldtype=oe;var Pt=new(function(e){_inherits(TextAreaControlType,e);var t=_createSuper(TextAreaControlType);function TextAreaControlType(){return _classCallCheck(this,TextAreaControlType),t.apply(this,arguments)}return _createClass(TextAreaControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Bt}}]),TextAreaControlType}(Lt))("la","TextAreaControl","A LivingApps textarea field (type 'string/textarea')"),Bt=function(e){_inherits(TextAreaControl,e);var t=_createSuper(TextAreaControl);function TextAreaControl(){return _classCallCheck(this,TextAreaControl),t.apply(this,arguments)}return _createClass(TextAreaControl,[{key:n.symbols.type,value:function value(){return Pt}},{key:"maxlength",get:function get(){var e=this._view_control();if(null===e)return null;if(null!==this.encrypted)return null;var t=e.maxlength;return t<0?null:t}}]),TextAreaControl}(At);Bt.prototype.subtype="textarea",Bt.prototype.fieldtype=ae,Bt.prototype._ul4onattrs=[].concat(_toConsumableArray(At.prototype._ul4onattrs),["encrypted"]),Bt.prototype._ul4attrs=new Set([].concat(_toConsumableArray(At.prototype._ul4attrs),["encrypted"])),Bt.prototype._cssclass_control="textarea";var Nt=new(function(e){_inherits(HTMLControlType,e);var t=_createSuper(HTMLControlType);function HTMLControlType(){return _classCallCheck(this,HTMLControlType),t.apply(this,arguments)}return _createClass(HTMLControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ut}}]),HTMLControlType}(Lt))("la","HTMLControl","A LivingApps HTML field (type 'string/html')"),Ut=function(e){_inherits(HTMLControl,e);var t=_createSuper(HTMLControl);function HTMLControl(){return _classCallCheck(this,HTMLControl),t.apply(this,arguments)}return _createClass(HTMLControl,[{key:n.symbols.type,value:function value(){return Nt}}]),HTMLControl}(At);Ut.prototype.subtype="html",Ut.prototype.fieldtype=ue;var Gt=function(e){_inherits(DateControlType,e);var t=_createSuper(DateControlType);function DateControlType(){return _classCallCheck(this,DateControlType),t.apply(this,arguments)}return _createClass(DateControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Vt}}]),DateControlType}(yt),qt=new Gt("la","DateControl","A LivingApps date field (type 'date/date')"),Vt=function(e){_inherits(DateControl,e);var t=_createSuper(DateControl);function DateControl(){return _classCallCheck(this,DateControl),t.apply(this,arguments)}return _createClass(DateControl,[{key:n.symbols.type,value:function value(){return qt}},{key:"default",get:function get(){var e=this._view_control();return null===e?null:"{today}"===e.default?n.today():null}},{key:"formatstring",value:function formatstring(e){return"de"!==(e=e||this.globals.lang)&&"fr"!==e&&"it"!==e&&(e="en"),this._formatstrings[e]}},{key:"formatstrings_parse",value:function formatstrings_parse(e){return"de"!==(e=e||this.globals.lang)&&"fr"!==e&&"it"!==e&&(e="en"),[].concat(_toConsumableArray(this._formatstrings_parse[e]),_toConsumableArray(this._formatstrings_parse.intl))}},{key:"search",value:function search(e,t){this._logsearch(e,t);var r=t.value;return"[object Date]"==Object.prototype.toString.call(r)&&(r=n._format(r,this.formatstring(),this.app.language)),null!==e&&(e=n._format(e,this.formatstring(),this.app.language)),"equals"===t.operator?r===e:"contains"===t.operator&&(null===r||null===e?r===e:e.toLowerCase().indexOf(r.toLowerCase())>=0)}}]),DateControl}(ft);Vt.prototype.type="date",Vt.prototype.subtype="date",Vt.prototype.fieldtype=ge,Vt.prototype._formatstrings={de:"%d.%m.%Y",fr:"%d.%m.%Y",it:"%d.%m.%Y",en:"%m/%d/%Y",intl:"%Y-%m-%d"};var Et=[""," %H:%M","T%H:%M"," %H:%M:%S","T%H:%M:%S"," %H:%M:%S.%f","T%H:%M:%S.%f"," %H:%M%z","T%H:%M%z"," %H:%M:%S%z","T%H:%M:%S%z"," %H:%M:%S.%f%z","T%H:%M:%S.%f%z"," %H:%M %z","T%H:%M %z"," %H:%M:%S %z","T%H:%M:%S %z"," %H:%M:%S.%f %z","T%H:%M:%S.%f %z"];Vt.prototype._formatstrings_parse={en:Et.map((function(e){return"%m/%d/%Y"+e})),de:Et.map((function(e){return"%d.%m.%Y"+e})),fr:Et.map((function(e){return"%d.%m.%Y"+e})),it:Et.map((function(e){return"%d.%m.%Y"+e})),intl:Et.map((function(e){return"%Y-%m-%d"+e}))};var jt=new(function(e){_inherits(DatetimeMinuteControlType,e);var t=_createSuper(DatetimeMinuteControlType);function DatetimeMinuteControlType(){return _classCallCheck(this,DatetimeMinuteControlType),t.apply(this,arguments)}return _createClass(DatetimeMinuteControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Wt}}]),DatetimeMinuteControlType}(Gt))("la","DatetimeMinuteControl","A LivingApps date field (type 'date/datetimeminute')"),Wt=function(e){_inherits(DatetimeMinuteControl,e);var t=_createSuper(DatetimeMinuteControl);function DatetimeMinuteControl(){return _classCallCheck(this,DatetimeMinuteControl),t.apply(this,arguments)}return _createClass(DatetimeMinuteControl,[{key:n.symbols.type,value:function value(){return jt}},{key:"default",get:function get(){var e=this._view_control();if(null===e)return null;if("{today}"===e.default){var t=new Date;return t.setSeconds(0),t.setMilliseconds(0),t}return null}}]),DatetimeMinuteControl}(Vt);Wt.prototype.subtype="datetimeminute",Wt.prototype.fieldtype=be,Wt.prototype._formatstrings={de:"%d.%m.%Y %H:%M",fr:"%d.%m.%Y %H:%M",it:"%d.%m.%Y %H:%M",en:"%m/%d/%Y %H:%M",intl:"%Y-%m-%d %H:%M"};var zt=new(function(e){_inherits(DatetimeSecondControlType,e);var t=_createSuper(DatetimeSecondControlType);function DatetimeSecondControlType(){return _classCallCheck(this,DatetimeSecondControlType),t.apply(this,arguments)}return _createClass(DatetimeSecondControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Yt}}]),DatetimeSecondControlType}(Gt))("la","DatetimeSecondControl","A LivingApps date field (type 'date/datetimesecond')"),Yt=function(e){_inherits(DatetimeSecondControl,e);var t=_createSuper(DatetimeSecondControl);function DatetimeSecondControl(){return _classCallCheck(this,DatetimeSecondControl),t.apply(this,arguments)}return _createClass(DatetimeSecondControl,[{key:n.symbols.type,value:function value(){return zt}},{key:"default",get:function get(){var e=this._view_control();if(null===e)return null;if("{today}"===e.default){var t=new Date;return t.setMilliseconds(0),t}return null}}]),DatetimeSecondControl}(Vt);Yt.prototype.subtype="datetimesecond",Yt.prototype.fieldtype=Te,Yt.prototype._formatstrings={de:"%d.%m.%Y %H:%M:%S",fr:"%d.%m.%Y %H:%M:%S",it:"%d.%m.%Y %H:%M:%S",en:"%m/%d/%Y %H:%M:%S",intl:"%Y-%m-%d %H:%M:%S"};var Jt=function(e){_inherits(LookupControlType,e);var t=_createSuper(LookupControlType);function LookupControlType(){return _classCallCheck(this,LookupControlType),t.apply(this,arguments)}return _createClass(LookupControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof $t}}]),LookupControlType}(yt),Kt=new Jt("la","LookupControl","A LivingApps date field (type 'lookup')"),$t=function(e){_inherits(LookupControl,e);var t=_createSuper(LookupControl);function LookupControl(){return _classCallCheck(this,LookupControl),t.apply(this,arguments)}return _createClass(LookupControl,[{key:n.symbols.type,value:function value(){return Kt}},{key:"default",get:function get(){var e,t=this._view_control();return null===t?null:null!==(e=this.lookupdata.get(t))&&void 0!==e?e:null}},{key:"autoexpandable",get:function get(){var e=this._view_control();return null!==e&&e.autoexpandable}},{key:"none_key",get:function get(){var e=this._view_control();return null===e?null:e.lookupnonekey}},{key:"none_label",get:function get(){var e=this._view_control();return null===e?null:e.lookupnonelabel}},{key:"search",value:function search(e,t){return"equals"===t.operator&&(null===e?null===t.value:e.key===t.value)}}]),LookupControl}(ft);$t.prototype.type="lookup",$t.prototype.fieldtype=Ie,$t.prototype._ul4onattrs=[].concat(_toConsumableArray(ft.prototype._ul4onattrs),["lookupdata"]),$t.prototype._ul4attrs=new Set([].concat(_toConsumableArray(ft.prototype._ul4attrs),["lookupdata"]));var Zt=new(function(e){_inherits(LookupSelectControlType,e);var t=_createSuper(LookupSelectControlType);function LookupSelectControlType(){return _classCallCheck(this,LookupSelectControlType),t.apply(this,arguments)}return _createClass(LookupSelectControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Qt}}]),LookupSelectControlType}(Jt))("la","LookupSelectControl","A LivingApps lookup field (type 'lookup/select')"),Qt=function(e){_inherits(LookupSelectControl,e);var t=_createSuper(LookupSelectControl);function LookupSelectControl(){return _classCallCheck(this,LookupSelectControl),t.apply(this,arguments)}return _createClass(LookupSelectControl,[{key:n.symbols.type,value:function value(){return Zt}}]),LookupSelectControl}($t);Qt.prototype.subtype="select",Qt.prototype.fieldtype=He,Qt.prototype._cssclass_control="select";var Xt=new(function(e){_inherits(LookupRadioControlType,e);var t=_createSuper(LookupRadioControlType);function LookupRadioControlType(){return _classCallCheck(this,LookupRadioControlType),t.apply(this,arguments)}return _createClass(LookupRadioControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof en}}]),LookupRadioControlType}(Jt))("la","LookupRadioControl","A LivingApps lookup field (type 'lookup/radio')"),en=function(e){_inherits(LookupRadioControl,e);var t=_createSuper(LookupRadioControl);function LookupRadioControl(){return _classCallCheck(this,LookupRadioControl),t.apply(this,arguments)}return _createClass(LookupRadioControl,[{key:n.symbols.type,value:function value(){return Xt}}]),LookupRadioControl}($t);en.prototype.subtype="radio",en.prototype.fieldtype=De,en.prototype._cssclass_root="llft-element";var tn=new(function(e){_inherits(LookupChoiceControlType,e);var t=_createSuper(LookupChoiceControlType);function LookupChoiceControlType(){return _classCallCheck(this,LookupChoiceControlType),t.apply(this,arguments)}return _createClass(LookupChoiceControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof nn}}]),LookupChoiceControlType}(Jt))("la","LookupChoiceControl","A LivingApps lookup field (type 'lookup/choice')"),nn=function(e){_inherits(LookupChoiceControl,e);var t=_createSuper(LookupChoiceControl);function LookupChoiceControl(){return _classCallCheck(this,LookupChoiceControl),t.apply(this,arguments)}return _createClass(LookupChoiceControl,[{key:n.symbols.type,value:function value(){return tn}}]),LookupChoiceControl}($t);nn.prototype.subtype="choice",nn.prototype.fieldtype=Be,nn.prototype._cssclass_control="select";var rn=function(e){_inherits(AppLookupControlType,e);var t=_createSuper(AppLookupControlType);function AppLookupControlType(){return _classCallCheck(this,AppLookupControlType),t.apply(this,arguments)}return _createClass(AppLookupControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ln}}]),AppLookupControlType}(yt),on=new rn("la","AppLookupControl","A LivingApps lookup field (type 'applookup')"),ln=function(e){_inherits(AppLookupControl,e);var t=_createSuper(AppLookupControl);function AppLookupControl(){return _classCallCheck(this,AppLookupControl),t.apply(this,arguments)}return _createClass(AppLookupControl,[{key:n.symbols.type,value:function value(){return on}},{key:"lookupdata",get:function get(){return null!==this.lookup_app&&null!==this.lookup_app.records?this.lookup_app.records:new Map}},{key:"none_key",get:function get(){var e=this._view_control();return null===e?null:e.lookupnonekey}},{key:"none_label",get:function get(){var e=this._view_control();return null===e?null:e.lookupnonelabel}},{key:"search",value:function search(e,t){return null===e||null===t.value?e===t.value:e.search(t)}}]),AppLookupControl}(ft);ln.prototype.type="applookup",ln.prototype.fieldtype=Qe,ln.prototype._ul4onattrs=[].concat(_toConsumableArray(ft.prototype._ul4onattrs),["lookup_app","lookup_controls","local_master_control","local_detail_controls","remote_master_control"]),ln.prototype._ul4attrs=new Set([].concat(_toConsumableArray(ft.prototype._ul4attrs),["lookup_app","lookup_controls","local_master_control","local_detail_controls","remote_master_control"]));var an=new(function(e){_inherits(AppLookupSelectControlType,e);var t=_createSuper(AppLookupSelectControlType);function AppLookupSelectControlType(){return _classCallCheck(this,AppLookupSelectControlType),t.apply(this,arguments)}return _createClass(AppLookupSelectControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof un}}]),AppLookupSelectControlType}(rn))("la","AppLookupSelectControl","A LivingApps applookup field (type 'applookup/select')"),un=function(e){_inherits(AppLookupSelectControl,e);var t=_createSuper(AppLookupSelectControl);function AppLookupSelectControl(){return _classCallCheck(this,AppLookupSelectControl),t.apply(this,arguments)}return _createClass(AppLookupSelectControl,[{key:n.symbols.type,value:function value(){return an}}]),AppLookupSelectControl}(ln);un.prototype.subtype="select",un.prototype.fieldtype=et,un.prototype._cssclass_control="select";var sn=new(function(e){_inherits(AppLookupRadioControlType,e);var t=_createSuper(AppLookupRadioControlType);function AppLookupRadioControlType(){return _classCallCheck(this,AppLookupRadioControlType),t.apply(this,arguments)}return _createClass(AppLookupRadioControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof pn}}]),AppLookupRadioControlType}(rn))("la","AppLookupRadioControl","A LivingApps applookup field (type 'applookup/radio')"),pn=function(e){_inherits(AppLookupRadioControl,e);var t=_createSuper(AppLookupRadioControl);function AppLookupRadioControl(){return _classCallCheck(this,AppLookupRadioControl),t.apply(this,arguments)}return _createClass(AppLookupRadioControl,[{key:n.symbols.type,value:function value(){return sn}}]),AppLookupRadioControl}(ln);pn.prototype.subtype="radio",pn.prototype.fieldtype=nt;var cn=new(function(e){_inherits(AppLookupChoiceControlType,e);var t=_createSuper(AppLookupChoiceControlType);function AppLookupChoiceControlType(){return _classCallCheck(this,AppLookupChoiceControlType),t.apply(this,arguments)}return _createClass(AppLookupChoiceControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof _n}}]),AppLookupChoiceControlType}(rn))("la","AppLookupChoiceControl","A LivingApps applookup field (type 'applookup/choice')"),_n=function(e){_inherits(AppLookupChoiceControl,e);var t=_createSuper(AppLookupChoiceControl);function AppLookupChoiceControl(){return _classCallCheck(this,AppLookupChoiceControl),t.apply(this,arguments)}return _createClass(AppLookupChoiceControl,[{key:n.symbols.type,value:function value(){return cn}},{key:"search_url",get:function get(){return"field_"+this.identifier+"_search"}},{key:"search_param_name",get:function get(){return"q"}},{key:"target_param_name",get:function get(){return"target"}}]),AppLookupChoiceControl}(ln);_n.prototype.subtype="choice",_n.prototype.fieldtype=ot,_n.prototype._cssclass_control="select",_n.prototype._ul4attrs=new Set([].concat(_toConsumableArray(ln.prototype._ul4attrs),["search_url","search_param_name","target_param_name"]));var hn=function(e){_inherits(MultipleLookupControlType,e);var t=_createSuper(MultipleLookupControlType);function MultipleLookupControlType(){return _classCallCheck(this,MultipleLookupControlType),t.apply(this,arguments)}return _createClass(MultipleLookupControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof dn}}]),MultipleLookupControlType}(Jt),yn=new hn("la","MultipleLookupControl","A LivingApps multiple applookup field (type 'multipleapplookup')"),dn=function(e){_inherits(MultipleLookupControl,e);var t=_createSuper(MultipleLookupControl);function MultipleLookupControl(){return _classCallCheck(this,MultipleLookupControl),t.apply(this,arguments)}return _createClass(MultipleLookupControl,[{key:n.symbols.type,value:function value(){return yn}},{key:"default",get:function get(){var e=this._view_control();if(null===e)return null;var t=this.lookupdata.get(e);return void 0!==t?[t]:[]}},{key:"search",value:function search(e,t){if("equals"===t.operator){var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){if(n.value.key===t.value)return!0}}catch(e){r.e(e)}finally{r.f()}return!1}return!1}}]),MultipleLookupControl}($t);dn.prototype.type="multiplelookup",dn.prototype.fieldtype=Ge;var fn=new(function(e){_inherits(MultipleLookupCheckboxControlType,e);var t=_createSuper(MultipleLookupCheckboxControlType);function MultipleLookupCheckboxControlType(){return _classCallCheck(this,MultipleLookupCheckboxControlType),t.apply(this,arguments)}return _createClass(MultipleLookupCheckboxControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof vn}}]),MultipleLookupCheckboxControlType}(hn))("la","MultipleLookupCheckboxControl","A LivingApps multiplelookup field (type 'multiplelookup/checkbox')"),vn=function(e){_inherits(MultipleLookupCheckboxControl,e);var t=_createSuper(MultipleLookupCheckboxControl);function MultipleLookupCheckboxControl(){return _classCallCheck(this,MultipleLookupCheckboxControl),t.apply(this,arguments)}return _createClass(MultipleLookupCheckboxControl,[{key:n.symbols.type,value:function value(){return fn}},{key:"_sel_label",get:function get(){return this._sel_root+" label:not([for]) > span"}}]),MultipleLookupCheckboxControl}(dn);vn.prototype.subtype="checkbox",vn.prototype.fieldtype=Ve,vn.prototype._cssclass_root="llft-element";var kn=new(function(e){_inherits(MultipleLookupSelectControlType,e);var t=_createSuper(MultipleLookupSelectControlType);function MultipleLookupSelectControlType(){return _classCallCheck(this,MultipleLookupSelectControlType),t.apply(this,arguments)}return _createClass(MultipleLookupSelectControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof mn}}]),MultipleLookupSelectControlType}(hn))("la","MultipleLookupSelectControl","A LivingApps multiplelookup field (type 'multiplelookup/select')"),mn=function(e){_inherits(MultipleLookupSelectControl,e);var t=_createSuper(MultipleLookupSelectControl);function MultipleLookupSelectControl(){return _classCallCheck(this,MultipleLookupSelectControl),t.apply(this,arguments)}return _createClass(MultipleLookupSelectControl,[{key:n.symbols.type,value:function value(){return kn}}]),MultipleLookupSelectControl}(dn);mn.prototype.subtype="select",mn.prototype.fieldtype=je,mn.prototype._cssclass_control="select";var gn=new(function(e){_inherits(MultipleLookupChoiceControlType,e);var t=_createSuper(MultipleLookupChoiceControlType);function MultipleLookupChoiceControlType(){return _classCallCheck(this,MultipleLookupChoiceControlType),t.apply(this,arguments)}return _createClass(MultipleLookupChoiceControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Cn}}]),MultipleLookupChoiceControlType}(hn))("la","MultipleLookupChoiceControl","A LivingApps multiplelookup field (type 'multiplelookup/choice')"),Cn=function(e){_inherits(MultipleLookupChoiceControl,e);var t=_createSuper(MultipleLookupChoiceControl);function MultipleLookupChoiceControl(){return _classCallCheck(this,MultipleLookupChoiceControl),t.apply(this,arguments)}return _createClass(MultipleLookupChoiceControl,[{key:n.symbols.type,value:function value(){return gn}}]),MultipleLookupChoiceControl}(dn);Cn.prototype.subtype="choice",Cn.prototype.fieldtype=ze,Cn.prototype._cssclass_control="select";var bn=function(e){_inherits(MultipleAppLookupControlType,e);var t=_createSuper(MultipleAppLookupControlType);function MultipleAppLookupControlType(){return _classCallCheck(this,MultipleAppLookupControlType),t.apply(this,arguments)}return _createClass(MultipleAppLookupControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Tn}}]),MultipleAppLookupControlType}(rn),Ln=new bn("la","MultipleAppLookupControl","A LivingApps multiple applookup field (type 'multipleapplookup')"),Tn=function(e){_inherits(MultipleAppLookupControl,e);var t=_createSuper(MultipleAppLookupControl);function MultipleAppLookupControl(){return _classCallCheck(this,MultipleAppLookupControl),t.apply(this,arguments)}return _createClass(MultipleAppLookupControl,[{key:n.symbols.type,value:function value(){return Ln}},{key:"search",value:function search(e,t){if("equals"===t.operator){if(null===t.value)return 0===e.length;var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){if(n.value.search(t.value))return!0}}catch(e){r.e(e)}finally{r.f()}return!1}return!1}}]),MultipleAppLookupControl}(ln);Tn.prototype.type="multipleapplookup",Tn.prototype.fieldtype=it;var An=new(function(e){_inherits(MultipleAppLookupSelectControlType,e);var t=_createSuper(MultipleAppLookupSelectControlType);function MultipleAppLookupSelectControlType(){return _classCallCheck(this,MultipleAppLookupSelectControlType),t.apply(this,arguments)}return _createClass(MultipleAppLookupSelectControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Fn}}]),MultipleAppLookupSelectControlType}(bn))("la","MultipleAppLookupSelectControl","A LivingApps multiple applookup field (type 'multipleapplookup/select')"),Fn=function(e){_inherits(MultipleAppLookupSelectControl,e);var t=_createSuper(MultipleAppLookupSelectControl);function MultipleAppLookupSelectControl(){return _classCallCheck(this,MultipleAppLookupSelectControl),t.apply(this,arguments)}return _createClass(MultipleAppLookupSelectControl,[{key:n.symbols.type,value:function value(){return An}}]),MultipleAppLookupSelectControl}(Tn);Fn.prototype.subtype="select",Fn.prototype.fieldtype=ct,Fn.prototype._cssclass_control="select";var wn=new(function(e){_inherits(MultipleAppLookupCheckboxControlType,e);var t=_createSuper(MultipleAppLookupCheckboxControlType);function MultipleAppLookupCheckboxControlType(){return _classCallCheck(this,MultipleAppLookupCheckboxControlType),t.apply(this,arguments)}return _createClass(MultipleAppLookupCheckboxControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Sn}}]),MultipleAppLookupCheckboxControlType}(bn))("la","MultipleAppLookupCheckboxControl","A LivingApps multiple applookup field (type 'multipleapplookup/checkbox')"),Sn=function(e){_inherits(MultipleAppLookupCheckboxControl,e);var t=_createSuper(MultipleAppLookupCheckboxControl);function MultipleAppLookupCheckboxControl(){return _classCallCheck(this,MultipleAppLookupCheckboxControl),t.apply(this,arguments)}return _createClass(MultipleAppLookupCheckboxControl,[{key:n.symbols.type,value:function value(){return wn}}]),MultipleAppLookupCheckboxControl}(Tn);Sn.prototype.subtype="checkbox",Sn.prototype.fieldtype=st;var Mn=new(function(e){_inherits(MultipleAppLookupChoiceControlType,e);var t=_createSuper(MultipleAppLookupChoiceControlType);function MultipleAppLookupChoiceControlType(){return _classCallCheck(this,MultipleAppLookupChoiceControlType),t.apply(this,arguments)}return _createClass(MultipleAppLookupChoiceControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof xn}}]),MultipleAppLookupChoiceControlType}(bn))("la","MultipleAppLookupChoiceControl","A LivingApps multiple applookup field (type 'multipleapplookup/choice')"),xn=function(e){_inherits(MultipleAppLookupChoiceControl,e);var t=_createSuper(MultipleAppLookupChoiceControl);function MultipleAppLookupChoiceControl(){return _classCallCheck(this,MultipleAppLookupChoiceControl),t.apply(this,arguments)}return _createClass(MultipleAppLookupChoiceControl,[{key:n.symbols.type,value:function value(){return Mn}}]),MultipleAppLookupChoiceControl}(Tn);xn.prototype.subtype="choice",xn.prototype.fieldtype=ht,xn.prototype._cssclass_control="select";var In=new(function(e){_inherits(GeoControlType,e);var t=_createSuper(GeoControlType);function GeoControlType(){return _classCallCheck(this,GeoControlType),t.apply(this,arguments)}return _createClass(GeoControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof On}}]),GeoControlType}(yt))("la","GeoControl","A LivingApps geo field (type 'geo')"),On=function(e){_inherits(GeoControl,e);var t=_createSuper(GeoControl);function GeoControl(){return _classCallCheck(this,GeoControl),t.apply(this,arguments)}return _createClass(GeoControl,[{key:n.symbols.type,value:function value(){return In}}]),GeoControl}(ft);On.prototype.type="geo",On.prototype.fieldtype=pe,On.prototype._cssclass_root="llft-element";var Dn=function(e){_inherits(FileControlType,e);var t=_createSuper(FileControlType);function FileControlType(){return _classCallCheck(this,FileControlType),t.apply(this,arguments)}return _createClass(FileControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Hn}}]),FileControlType}(yt),Rn=new Dn("la","FileControl","A LivingApps upload field (type 'file')"),Hn=function(e){_inherits(FileControl,e);var t=_createSuper(FileControl);function FileControl(){return _classCallCheck(this,FileControl),t.apply(this,arguments)}return _createClass(FileControl,[{key:n.symbols.type,value:function value(){return Rn}}]),FileControl}(ft);Hn.prototype.type="file",Hn.prototype.fieldtype=he,Hn.prototype._cssclass_root="llft-element";var Pn=new(function(e){_inherits(FileSignatureControlType,e);var t=_createSuper(FileSignatureControlType);function FileSignatureControlType(){return _classCallCheck(this,FileSignatureControlType),t.apply(this,arguments)}return _createClass(FileSignatureControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Bn}}]),FileSignatureControlType}(Dn))("la","FileSignatureControl","A LivingApps signature image field (type 'file/signature')"),Bn=function(e){_inherits(FileSignatureControl,e);var t=_createSuper(FileSignatureControl);function FileSignatureControl(){return _classCallCheck(this,FileSignatureControl),t.apply(this,arguments)}return _createClass(FileSignatureControl,[{key:n.symbols.type,value:function value(){return Pn}}]),FileSignatureControl}(Hn);Bn.prototype.subtype="signature",Bn.prototype.fieldtype=de;var Nn=new(function(e){_inherits(ButtonControlType,e);var t=_createSuper(ButtonControlType);function ButtonControlType(){return _classCallCheck(this,ButtonControlType),t.apply(this,arguments)}return _createClass(ButtonControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Un}}]),ButtonControlType}(yt))("la","ButtonControl","A submit button"),Un=function(e){_inherits(ButtonControl,e);var t=_createSuper(ButtonControl);function ButtonControl(){return _classCallCheck(this,ButtonControl),t.apply(this,arguments)}return _createClass(ButtonControl,[{key:n.symbols.type,value:function value(){return Nn}}]),ButtonControl}(ft);Un.prototype.type="button";var Gn=new(function(e){_inherits(LookupItemType,e);var t=_createSuper(LookupItemType);function LookupItemType(){return _classCallCheck(this,LookupItemType),t.apply(this,arguments)}return _createClass(LookupItemType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof qn}}]),LookupItemType}(n.Type))("la","LookupItem","An option in a lookup control/field"),qn=function(e){_inherits(LookupItem,e);var t=_createSuper(LookupItem);function LookupItem(){return _classCallCheck(this,LookupItem),t.apply(this,arguments)}return _createClass(LookupItem,[{key:n.symbols.type,value:function value(){return Gn}},{key:"globals",get:function get(){return null===this.control||null===this.control.app?null:this.control.app.globals}},{key:"translations",get:function get(){return void 0===this._translations&&(this._translations=new y(this)),this._translations}},{key:"_create_translation",value:function _create_translation(e){return new L(null,this,e)}},{key:"label",get:function get(){if(null!==this.control){var e=this._view_lookupitem();if(null!==e){var t=e.label;if(null!==t)return t}}var n=this.translations.get();return null!==n&&null!==n.label?n.label:this._label}},{key:"visible",get:function get(){if(null===this.control)return!0;var e=this._view_lookupitem();return null===e||e.visible}},{key:"_view_lookupitem",value:function _view_lookupitem(){var e=this.control.identifier,t=this.control.app.active_view;if(null!==t&&null!==t.controls){var n=t.controls.get(e);if(void 0!==n&&void 0!==n.lookupdata&&null!==n.lookupdata){var r=n.lookupdata.get(this.key);if(void 0!==r)return r}}return null}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return"translations"===e?this.translations.langs:this[e]}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){"translations"===e?this.translations.langs=t:this[e]=t}},{key:"_setDefaultUL4ONAttr",value:function _setDefaultUL4ONAttr(e){"translations"===e?this.translations.langs=null:this[e]=null}},{key:n.symbols.repr,value:function value(){var e="<LookupItem key="+n._repr(this.key)+" label="+n._repr(this.label);return this.visible||(e+="visible=False"),e+">"}}]),LookupItem}(r);qn.prototype._ul4onattrs=["control","key","_label","translations"],qn.prototype._ul4attrs=new Set(["id","control","key","label","translations"]);var Vn=new(function(e){_inherits(ViewLookupItemType,e);var t=_createSuper(ViewLookupItemType);function ViewLookupItemType(){return _classCallCheck(this,ViewLookupItemType),t.apply(this,arguments)}return _createClass(ViewLookupItemType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof En}}]),ViewLookupItemType}(n.Type))("la","ViewLookupItem","View specific information about a lookup item"),En=function(e){_inherits(ViewLookupItem,e);var t=_createSuper(ViewLookupItem);function ViewLookupItem(){return _classCallCheck(this,ViewLookupItem),t.apply(this,arguments)}return _createClass(ViewLookupItem,[{key:n.symbols.type,value:function value(){return Vn}},{key:n.symbols.repr,value:function value(){var e="<ViewLookupItem key="+n._repr(this.key)+" label="+n._repr(this.label);return this.visible||(e+=" visible=False"),e+">"}}]),ViewLookupItem}(r);En.prototype._ul4onattrs=["key","label","visible"],En.prototype._ul4attrs=new Set(["key","label","visible"]);var jn=function(e){_inherits(LayoutControlType,e);var t=_createSuper(LayoutControlType);function LayoutControlType(){return _classCallCheck(this,LayoutControlType),t.apply(this,arguments)}return _createClass(LayoutControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof zn}}]),LayoutControlType}(n.Type),Wn=new jn("la","LayoutControl","A decoration in an input form"),zn=function(e){_inherits(LayoutControl,e);var t=_createSuper(LayoutControl);function LayoutControl(){return _classCallCheck(this,LayoutControl),t.apply(this,arguments)}return _createClass(LayoutControl,[{key:"LayoutControl",value:function LayoutControl(){this.label=null,this.identifier=null,this.view=null,this.top=null,this.left=null,this.width=null,this.height=null,this._visible=!0}},{key:n.symbols.type,value:function value(){return Wn}},{key:n.symbols.repr,value:function value(){return"<"+this.constructor.name+" id="+n._repr(this.id)+" identifier="+n._repr(this.identifier)+">"}},{key:"globals",get:function get(){return this.view.globals}},{key:"_sel_root",get:function get(){return"#livingapps-form .llft-element.llft-id-"+this.identifier}},{key:"_dom_root",get:function get(){return document.querySelector(this._sel_root)}},{key:"visible",get:function get(){var e;return null===(e=this._visible)||void 0===e||e}},{key:"visible",set:function set(e){this.globals._in_form()&&(this._dom_root.hidden=!e),this._visible=e}},{key:n.symbols.setattr,value:function value(e,t){"visible"===e?this.visible=n._bool(t):_get(_getPrototypeOf(LayoutControl.prototype),n.symbols.setattr,this).call(this,e,t)}}]),LayoutControl}(r);zn.prototype._ul4onattrs=["label","identifier","view","top","left","width","height"],zn.prototype._ul4attrs=new Set(["id","label","identifier","view","top","left","width","height","visible"]);var Yn=new(function(e){_inherits(HTMLLayoutControlType,e);var t=_createSuper(HTMLLayoutControlType);function HTMLLayoutControlType(){return _classCallCheck(this,HTMLLayoutControlType),t.apply(this,arguments)}return _createClass(HTMLLayoutControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Jn}}]),HTMLLayoutControlType}(jn))("la","HTMLLayoutControl","HTML decoration in an input form"),Jn=function(e){_inherits(HTMLLayoutControl,e);var t=_createSuper(HTMLLayoutControl);function HTMLLayoutControl(){return _classCallCheck(this,HTMLLayoutControl),t.apply(this,arguments)}return _createClass(HTMLLayoutControl,[{key:n.symbols.type,value:function value(){return Yn}},{key:"value",get:function get(){return this._value}},{key:"value",set:function set(e){this._value=e,this.globals._in_form()&&this._set_dom_value(this._value)}},{key:"_set_dom_value",value:function _set_dom_value(e){this._dom_root.innerHTML=e}},{key:n.symbols.setattr,value:function value(e,t){"value"===e?this.value=t:_get(_getPrototypeOf(HTMLLayoutControl.prototype),n.symbols.setattr,this).call(this,e,t)}}]),HTMLLayoutControl}(zn);Jn.prototype._ul4onattrs=[].concat(_toConsumableArray(zn.prototype._ul4onattrs),["_value","_visible"]),Jn.prototype._ul4attrs=new Set([].concat(_toConsumableArray(zn.prototype._ul4attrs),["value"]));var Kn=new(function(e){_inherits(ImageLayoutControlType,e);var t=_createSuper(ImageLayoutControlType);function ImageLayoutControlType(){return _classCallCheck(this,ImageLayoutControlType),t.apply(this,arguments)}return _createClass(ImageLayoutControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof $n}}]),ImageLayoutControlType}(jn))("la","ImageLayoutControl","An image decoration in an input form"),$n=function(e){_inherits(ImageLayoutControl,e);var t=_createSuper(ImageLayoutControl);function ImageLayoutControl(){return _classCallCheck(this,ImageLayoutControl),t.apply(this,arguments)}return _createClass(ImageLayoutControl,[{key:n.symbols.type,value:function value(){return Kn}},{key:"image",get:function get(){return this._image}},{key:"image",set:function set(e){this._image=e,this.globals._in_form()&&this._set_dom_value(this._image)}},{key:"original",get:function get(){return this.image}},{key:"original",set:function set(e){this.image=image}},{key:"_set_dom_value",value:function _set_dom_value(e){var t=this._dom_root.querySelector("img");if(null!==t){var n=null===e?"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==":this.globals.scaled_url(e,this.width,this.height);t.setAttribute("src",n)}}},{key:n.symbols.setattr,value:function value(e,t){"original"===e?this.original=t:"image"===e?this.image=t:_get(_getPrototypeOf(ImageLayoutControl.prototype),n.symbols.setattr,this).call(this,e,t)}}]),ImageLayoutControl}(zn);$n.prototype._ul4onattrs=[].concat(_toConsumableArray(zn.prototype._ul4onattrs),["_image","_visible"]),$n.prototype._ul4attrs=new Set([].concat(_toConsumableArray(zn.prototype._ul4attrs),["image","original"]));var Zn=new(function(e){_inherits(ButtonLayoutControlType,e);var t=_createSuper(ButtonLayoutControlType);function ButtonLayoutControlType(){return _classCallCheck(this,ButtonLayoutControlType),t.apply(this,arguments)}return _createClass(ButtonLayoutControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Qn}}]),ButtonLayoutControlType}(jn))("la","ButtonLayoutControl","A submit button in an input form"),Qn=function(e){_inherits(ButtonLayoutControl,e);var t=_createSuper(ButtonLayoutControl);function ButtonLayoutControl(){return _classCallCheck(this,ButtonLayoutControl),t.apply(this,arguments)}return _createClass(ButtonLayoutControl,[{key:n.symbols.type,value:function value(){return Zn}}]),ButtonLayoutControl}(zn);Qn.prototype._ul4onattrs=[].concat(_toConsumableArray(zn.prototype._ul4onattrs),["original","scaled","_visible"]);var Xn=new(function(e){_inherits(ViewControlType,e);var t=_createSuper(ViewControlType);function ViewControlType(){return _classCallCheck(this,ViewControlType),t.apply(this,arguments)}return _createClass(ViewControlType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof er}}]),ViewControlType}(n.Type))("la","ViewControl","Contains view specific information about a control"),er=function(e){_inherits(ViewControl,e);var t=_createSuper(ViewControl);function ViewControl(){return _classCallCheck(this,ViewControl),t.apply(this,arguments)}return _createClass(ViewControl,[{key:n.symbols.type,value:function value(){return Xn}},{key:"mode",get:function get(){return this._mode?"display":"edit"}}]),ViewControl}(r);er.prototype._ul4onattrs=["view","control","top","left","width","height","z_index","liveupdate","default","tabindex","minlength","maxlength","required","placeholder","_mode","labelpos","lookupnonekey","lookupnonelabel","label","autoalign","labelwidth","lookupdata","autoexpandable"],er.prototype._ul4attrs=new Set(["id","view","control","top","left","width","height","z_index","liveupdate","default","tabindex","minlength","maxlength","required","placeholder","mode","labelpos","lookupnonekey","lookupnonelabel","label","autoalign","labelwidth","lookupdata","autoexpandable"]);var tr=function(e){_inherits(UserType,e);var t=_createSuper(UserType);function UserType(){return _classCallCheck(this,UserType),t.apply(this,arguments)}return _createClass(UserType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof rr}}]),UserType}(n.Type),nr=new tr("la","User","A LivingApps user/account"),rr=function(e){_inherits(User,e);var t=_createSuper(User);function User(){return _classCallCheck(this,User),t.apply(this,arguments)}return _createClass(User,[{key:n.symbols.type,value:function value(){return nr}},{key:n.symbols.repr,value:function value(){return"<User id="+n._repr(this.id)+" firstname="+n._repr(this.firstname)+" surname="+n._repr(this.surname)+" email="+n._repr(this.email)+">"}}]),User}(r);rr.prototype._ul4onattrs=["_id","gender","title","firstname","surname","initials","email","streetname","streetnumber","zip","city","phone","fax","lang","image","summary","interests","personalwebsite","companywebsite","company","position","department","keyviews","globals"],rr.prototype._ul4attrs=new Set(["id","globals","_id","gender","title","firstname","surname","initials","email","streetname","streetnumber","zip","city","phone","fax","lang","image","summary","interests","personalwebsite","companywebsite","company","position","department","keyviews"]);var or=new(function(e){_inherits(FileType,e);var t=_createSuper(FileType);function FileType(){return _classCallCheck(this,FileType),t.apply(this,arguments)}return _createClass(FileType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof lr}}]),FileType}(n.Type))("la","File","An uploaded file"),lr=function(e){_inherits(File,e);var t=_createSuper(File);function File(){return _classCallCheck(this,File),t.apply(this,arguments)}return _createClass(File,[{key:n.symbols.type,value:function value(){return or}},{key:n.symbols.repr,value:function value(){return"<File url="+n._repr(this.url)+" filename="+n._repr(this.filename)+">"}},{key:"url",get:function get(){return"https://"+this.globals.hostname+"/files/"+this.contextid+"/"+this.id}},{key:"archive_url",get:function get(){return null===this.archive?this.url:this.archive.url+"/"+this.filename}}]),File}(r);lr.prototype._ul4onattrs=["globals","filename","mimetype","width","height","internal_id","createdat","size","duration","geo","recordedat","storagefilename","archive","context_id"],lr.prototype._ul4attrs=new Set(["globals","id","internal_id","url","archive_url","filename","mimetype","width","height","size","duration","geo","recordedat","archive","createdat","context_id"]);var ar=new(function(e){_inherits(GeoType,e);var t=_createSuper(GeoType);function GeoType(){return _classCallCheck(this,GeoType),t.apply(this,arguments)}return _createClass(GeoType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof ir}}]),GeoType}(n.Type))("la","Geo","Geographical coordinates and location information"),ir=function(e){_inherits(Geo,e);var t=_createSuper(Geo);function Geo(e,n,r){var o,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,Geo),(o=t.call(this,null)).globals=e,o.lat=n,o.long=r,o.info=l,o}return _createClass(Geo,[{key:n.symbols.type,value:function value(){return ar}},{key:n.symbols.repr,value:function value(){return"<Geo lat="+n._repr(this.lat)+" long="+n._repr(this.long)+" info="+n._repr(this.info)+">"}}]),Geo}(r);ir.prototype._ul4onattrs=["globals","lat","long","info"],ir.prototype._ul4attrs=new Set(["globals","lat","long","info"]);var ur=function(e){_inherits(AttachmentType,e);var t=_createSuper(AttachmentType);function AttachmentType(){return _classCallCheck(this,AttachmentType),t.apply(this,arguments)}return _createClass(AttachmentType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof pr}}]),AttachmentType}(n.Type),sr=new ur("la","Attachment","An attachment of a record"),pr=function(e){_inherits(Attachment,e);var t=_createSuper(Attachment);function Attachment(e,n,r,o,l,a){var i;return _classCallCheck(this,Attachment),(i=t.call(this,e)).owner=n,i.label=r,i.namespace=o,i.active=l,i.value=a,i}return _createClass(Attachment,[{key:n.symbols.type,value:function value(){return sr}},{key:n.symbols.repr,value:function value(){return"<"+this.constructor.name+" id="+n._repr(this.id)+" label="+n._repr(this.label)+">"}},{key:"app",get:function get(){return this.owner instanceof w?this.owner:null}},{key:"appgroup",get:function get(){return this.owner instanceof M?this.owner:null}},{key:"record",get:function get(){return this.owner instanceof N?this.owner:null}}]),Attachment}(r);pr.prototype._ul4onattrs=["owner","label","namespace","active"],pr.prototype._ul4attrs=new Set(["id","owner","label","namespace","active"]);var cr=new(function(e){_inherits(NoteAttachmentType,e);var t=_createSuper(NoteAttachmentType);function NoteAttachmentType(){return _classCallCheck(this,NoteAttachmentType),t.apply(this,arguments)}return _createClass(NoteAttachmentType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof _r}}]),NoteAttachmentType}(ur))("la","NoteAttachment","A note attachment of a record"),_r=function(e){_inherits(NoteAttachment,e);var t=_createSuper(NoteAttachment);function NoteAttachment(){return _classCallCheck(this,NoteAttachment),t.apply(this,arguments)}return _createClass(NoteAttachment,[{key:n.symbols.type,value:function value(){return cr}}]),NoteAttachment}(pr);_r.prototype.type="noteattachment",_r.prototype._ul4onattrs=[].concat(_toConsumableArray(pr.prototype._ul4onattrs),["value"]),_r.prototype._ul4attrs=new Set([].concat(_toConsumableArray(pr.prototype._ul4onattrs),["value"]));var hr=new(function(e){_inherits(URLAttachmentType,e);var t=_createSuper(URLAttachmentType);function URLAttachmentType(){return _classCallCheck(this,URLAttachmentType),t.apply(this,arguments)}return _createClass(URLAttachmentType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof yr}}]),URLAttachmentType}(ur))("la","URLAttachment","A URL attachment of a record"),yr=function(e){_inherits(URLAttachment,e);var t=_createSuper(URLAttachment);function URLAttachment(){return _classCallCheck(this,URLAttachment),t.apply(this,arguments)}return _createClass(URLAttachment,[{key:n.symbols.type,value:function value(){return hr}}]),URLAttachment}(pr);yr.prototype.type="urlattachment",yr.prototype._ul4onattrs=[].concat(_toConsumableArray(pr.prototype._ul4onattrs),["value"]),yr.prototype._ul4attrs=new Set([].concat(_toConsumableArray(pr.prototype._ul4onattrs),["value"]));var dr=new(function(e){_inherits(FileAttachmentType,e);var t=_createSuper(FileAttachmentType);function FileAttachmentType(){return _classCallCheck(this,FileAttachmentType),t.apply(this,arguments)}return _createClass(FileAttachmentType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof fr}}]),FileAttachmentType}(ur))("la","FileAttachment","A file attachment of a record"),fr=function(e){_inherits(FileAttachment,e);var t=_createSuper(FileAttachment);function FileAttachment(){return _classCallCheck(this,FileAttachment),t.apply(this,arguments)}return _createClass(FileAttachment,[{key:n.symbols.type,value:function value(){return dr}}]),FileAttachment}(pr);fr.prototype.type="fileattachment",fr.prototype._ul4onattrs=[].concat(_toConsumableArray(pr.prototype._ul4onattrs),["value"]),fr.prototype._ul4attrs=new Set([].concat(_toConsumableArray(pr.prototype._ul4onattrs),["value"]));var vr=new(function(e){_inherits(JSONAttachmentType,e);var t=_createSuper(JSONAttachmentType);function JSONAttachmentType(){return _classCallCheck(this,JSONAttachmentType),t.apply(this,arguments)}return _createClass(JSONAttachmentType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof kr}}]),JSONAttachmentType}(ur))("la","JSONAttachment","A JSON attachment of a record"),kr=function(e){_inherits(JSONAttachment,e);var t=_createSuper(JSONAttachment);function JSONAttachment(){return _classCallCheck(this,JSONAttachment),t.apply(this,arguments)}return _createClass(JSONAttachment,[{key:n.symbols.type,value:function value(){return vr}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return"value"===e?n._asjson(this.value):this[e]}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){"value"===e?this.value=n._fromjson(t):this[e]=t}}]),JSONAttachment}(pr);kr.prototype.type="jsonattachment",kr.prototype._ul4onattrs=[].concat(_toConsumableArray(pr.prototype._ul4onattrs),["value"]),kr.prototype._ul4attrs=new Set([].concat(_toConsumableArray(pr.prototype._ul4onattrs),["value"]));var mr=new(function(e){_inherits(DataActionType,e);var t=_createSuper(DataActionType);function DataActionType(){return _classCallCheck(this,DataActionType),t.apply(this,arguments)}return _createClass(DataActionType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof gr}}]),DataActionType}(n.Type))("la","DataAction","A data action configured for an app."),gr=function(e){_inherits(DataAction,e);var t=_createSuper(DataAction);function DataAction(){return _classCallCheck(this,DataAction),t.apply(this,arguments)}return _createClass(DataAction,[{key:n.symbols.type,value:function value(){return mr}},{key:n.symbols.repr,value:function value(){return"<"+this.constructor.name+" id="+n._repr(this.id)+" identifier="+n._repr(this.identifier)+">"}}]),DataAction}(r);gr.prototype._ul4onattrs=["app","identifier","label","order","permission","active","icon","description","message","filter","as_multiple_action","as_single_action","as_mail_link","before_record_update_form","after_record_update","after_record_insert","before_record_delete"],gr.prototype._ul4attrs=new Set(["app","id","identifier","label","order","permission","active","icon","description","message","filter","as_multiple_action","as_single_action","as_link","before_record_update_form","after_record_update","after_record_insert","before_record_delete"]);var Cr=new(function(e){_inherits(InstallationType,e);var t=_createSuper(InstallationType);function InstallationType(){return _classCallCheck(this,InstallationType),t.apply(this,arguments)}return _createClass(InstallationType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof br}}]),InstallationType}(n.Type))("la","Installation","The installation that created an app"),br=function(e){_inherits(Installation,e);var t=_createSuper(Installation);function Installation(){return _classCallCheck(this,Installation),t.apply(this,arguments)}return _createClass(Installation,[{key:n.symbols.type,value:function value(){return Cr}},{key:n.symbols.repr,value:function value(){return"<Installation id="+n._repr(this.id)+" name="+n._repr(this.name)+">"}}]),Installation}(r);br.prototype._ul4onattrs=["name"],br.prototype._ul4attrs=new Set(["id","name"]);var Lr=new(function(e){_inherits(CategoryType,e);var t=_createSuper(CategoryType);function CategoryType(){return _classCallCheck(this,CategoryType),t.apply(this,arguments)}return _createClass(CategoryType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Tr}}]),CategoryType}(n.Type))("la","Category","A navigation category"),Tr=function(e){_inherits(Category,e);var t=_createSuper(Category);function Category(){return _classCallCheck(this,Category),t.apply(this,arguments)}return _createClass(Category,[{key:n.symbols.type,value:function value(){return Lr}},{key:n.symbols.repr,value:function value(){for(var e=[],t=this;null!==t;)e.splice(0,0,t.identifier),t=t.parent;return"<Category id="+n._repr(this.id)+" identifierpath="+n._repr(e.join("/"))+NaN+n._repr(this.name)+">"}}]),Category}(r);Tr.prototype._ul4onattrs=["identifier","name","order","parent","children","apps"],Tr.prototype._ul4attrs=new Set(["id","identifier","name","order","parent","children","apps"]);var Ar=new(function(e){_inherits(KeyViewType,e);var t=_createSuper(KeyViewType);function KeyViewType(){return _classCallCheck(this,KeyViewType),t.apply(this,arguments)}return _createClass(KeyViewType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Fr}}]),KeyViewType}(n.Type))("la","KeyView","Object granting access to a view template"),Fr=function(e){_inherits(KeyView,e);var t=_createSuper(KeyView);function KeyView(){return _classCallCheck(this,KeyView),t.apply(this,arguments)}return _createClass(KeyView,[{key:n.symbols.type,value:function value(){return Ar}},{key:n.symbols.repr,value:function value(){return"<KeyView id="+n._repr(this.id)+" identifier="+n._repr(this.identifier)+">"}}]),KeyView}(r);Fr.prototype._ul4onattrs=["identifier","name","key","user"],Fr.prototype._ul4attrs=new Set(["id","identifier","name","key","user"]);var wr=function(e){_inherits(AppParameterType,e);var t=_createSuper(AppParameterType);function AppParameterType(){return _classCallCheck(this,AppParameterType),t.apply(this,arguments)}return _createClass(AppParameterType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Mr}}]),AppParameterType}(n.Type),Sr=new wr("la","AppParameter","A parameter of a LivingApps application"),Mr=function(e){_inherits(AppParameter,e);var t=_createSuper(AppParameter);function AppParameter(){return _classCallCheck(this,AppParameter),t.apply(this,arguments)}return _createClass(AppParameter,[{key:n.symbols.type,value:function value(){return Sr}},{key:n.symbols.repr,value:function value(){return"<AppParameter id="+n._repr(this.id)+" identifier="+n._repr(this.identifier)+">"}},{key:"app",get:function get(){return this.owner instanceof w?this.owner:null}},{key:"appgroup",get:function get(){return this.owner instanceof M?this.owner:null}},{key:"full_identifier",get:function get(){return null===this.namespace||null===this.identifier?this.identifier:"".concat(this.namespace,".").concat(this.identifier)}}]),AppParameter}(r);Mr.prototype._ul4onattrs=["owner","parent","type","order","identifier","namespace","description","value","createdat","createdby","updatedat","updatedby"],Mr.prototype._ul4attrs=new Set(["id","owner","parent","app","type","order","identifier","namespace","full_identifier","description","value","createdat","createdby","updatedat","updatedby"]);var xr=new(function(e){_inherits(MutableAppParameterType,e);var t=_createSuper(MutableAppParameterType);function MutableAppParameterType(){return _classCallCheck(this,MutableAppParameterType),t.apply(this,arguments)}return _createClass(MutableAppParameterType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Ir}}]),MutableAppParameterType}(wr))("la","MutableAppParameter","A mutable parameter of a LivingApps application"),Ir=function(e){_inherits(MutableAppParameter,e);var t=_createSuper(MutableAppParameter);function MutableAppParameter(){return _classCallCheck(this,MutableAppParameter),t.apply(this,arguments)}return _createClass(MutableAppParameter,[{key:n.symbols.type,value:function value(){return xr}},{key:n.symbols.repr,value:function value(){return"<MutableAppParameter id="+n._repr(this.id)+" identifier="+n._repr(this.identifier)+">"}}]),MutableAppParameter}(Mr),Or=function(e){_inherits(MenuItemType,e);var t=_createSuper(MenuItemType);function MenuItemType(){return _classCallCheck(this,MenuItemType),t.apply(this,arguments)}return _createClass(MenuItemType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Rr}}]),MenuItemType}(n.Type),Dr=new Or("la","MenuItem","An additional menu item in an app that links to a target page."),Rr=function(e){_inherits(MenuItem,e);var t=_createSuper(MenuItem);function MenuItem(){return _classCallCheck(this,MenuItem),t.apply(this,arguments)}return _createClass(MenuItem,[{key:n.symbols.type,value:function value(){return Dr}},{key:n.symbols.repr,value:function value(){return"<MenuItem id="+n._repr(this.id)+"identifier="+n._repr(this.identifier)+" label="+n._repr(this.label)+" type="+n._repr(this.type)+">"}}]),MenuItem}(r);Rr.prototype._ul4onattrs=["app","identifier","label","type","icon","title","target","cssclass","url","order","start_time","end_time","on_app_overview_page","on_app_detail_page","on_form_page","on_iframe_page","on_view_template","on_custom_overview_page","accessible","children","createdat","createdby","updatedat","updatedby"],Rr.prototype._ul4attrs=new Set(["id","app","identifier","label","type","icon","title","target","cssclass","url","order","start_time","end_time","on_app_overview_page","on_app_detail_page","on_form_page","on_iframe_page","on_view_template","on_custom_overview_page","accessible","children","createdat","createdby","updatedat","updatedby"]);var Hr=new Or("la","Panel","An additional panel in an app that is displayed on various LivingApps pages and links to a target page."),Pr=function(e){_inherits(Panel,e);var t=_createSuper(Panel);function Panel(){return _classCallCheck(this,Panel),t.apply(this,arguments)}return _createClass(Panel,[{key:n.symbols.type,value:function value(){return Hr}},{key:n.symbols.repr,value:function value(){return"<Panel id="+n._repr(this.id)+"identifier="+n._repr(this.identifier)+" label="+n._repr(this.label)+" type="+n._repr(this.type)+">"}}]),Panel}(Rr);Pr.prototype._ul4onattrs=[].concat(_toConsumableArray(Rr.prototype._ul4onattrs),["description","description_url","image","row","column","width","height","header_type","header_background","text_color","background_color1","background_color2"]),Pr.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Rr.prototype._ul4attrs),["description","description_url","image","row","column","width","height"]));var Br=new tr("la","ViewTemplateInfo","basic information about a view template"),Nr=function(e){_inherits(ViewTemplateInfo,e);var t=_createSuper(ViewTemplateInfo);function ViewTemplateInfo(){return _classCallCheck(this,ViewTemplateInfo),t.apply(this,arguments)}return _createClass(ViewTemplateInfo,[{key:n.symbols.type,value:function value(){return Br}},{key:n.symbols.repr,value:function value(){return"<ViewTemplateInfo id="+n._repr(this.id)+" identifier="+n._repr(this.identifier)+" name="+n._repr(this.name)+">"}}]),ViewTemplateInfo}(r);Nr.prototype._ul4onattrs=["app","identifier","name","icon","type","mimetype","permission_level"],Nr.prototype._ul4attrs=new Set(["app","id","identifier","name","icon","type","mimetype","permission_level"]);var Ur=new(function(e){_inherits(FormType,e);var t=_createSuper(FormType);function FormType(){return _classCallCheck(this,FormType),t.apply(this,arguments)}return _createClass(FormType,[{key:"instancecheck",value:function instancecheck(e){return e instanceof Gr}}]),FormType}(n.Type))("la","Form","The input form."),Gr=function(e){_inherits(Form,e);var t=_createSuper(Form);function Form(e,n){var r;_classCallCheck(this,Form),(r=t.call(this)).globals=e,r.template=n,r._geo_wired=!1;var o,l=_createForOfIteratorHelper(e.record.fields.values());try{for(l.s();!(o=l.n()).done;){var a=o.value;r.wire_field(a)}}catch(e){l.e(e)}finally{l.f()}return r.render_template(null),r}return _createClass(Form,[{key:n.symbols.type,value:function value(){return Ur}},{key:"_dom_button",get:function get(){return document.querySelector(this._sel_form+" "+this._sel_button)}},{key:"enabled",get:function get(){return!this._dom_button.disabled}},{key:"enabled",set:function set(e){this._dom_button.disabled=!e}},{key:n.symbols.getattr,value:function value(e){if("enabled"===e)return this.enabled;throw new n.AttributeError(this,e)}},{key:n.symbols.setattr,value:function value(e,t){if("enabled"!==e)throw new n.AttributeError(this,e);this.enabled=n._bool(t)}},{key:n.symbols.repr,value:function value(){return"<"+this.constructor.name+" enabled="+n._repr(this.enabled)+">"}},{key:"toString",value:function toString(){return this[n.symbols.repr]()}},{key:"render_template",value:function render_template(e){var t=this,r={datasources:this.globals.datasources,record:this.globals.record,app:this.globals.app,fields:this.globals.record.fields,identifier:e},o={globals:this.globals,form:this,la:jr},l="LivingApps update template: ";l+=null===e?"Initialization":"Value change in "+n._repr(e),this.globals.group_logging(l,(function(){try{t.template.renders(r,o)}catch(e){console&&console.error&&(t.globals._start_log_message(),console.group&&console.group("UL4 stacktrace"),n.report_exc(e),console.groupEnd&&console.groupEnd(),console.groupCollapsed&&console.groupCollapsed("Javascript stacktrace"),console.error(e),console.groupEnd&&console.groupEnd())}}))}},{key:"wire_geo",value:function wire_geo(){var e=this;if(!this._geo_wired){if(null!==this.globals.app.active_view&&navigator.geolocation){var t=this.globals.app.active_view.use_geo;"once"!==t&&"watch"!==t||navigator.geolocation.getCurrentPosition((function(t){e.globals.mode=e.globals.mode.substring(0,e.globals.mode.lastIndexOf("/")+1)+"geo",e.globals.set_current_geo(t),e.render_template(null)})),"watch"===t&&navigator.geolocation.watchPosition((function(t){e.globals.mode=e.globals.mode.substring(0,e.globals.mode.lastIndexOf("/")+1)+"geo",e.globals.set_current_geo(t),e.render_template(null)}))}this._geo_wired=!0}}},{key:"wire_field",value:function wire_field(e){var t,n=this,r=_createForOfIteratorHelper(e._dom_controls);try{for(r.s();!(t=r.n()).done;){t.value.addEventListener(e._inputevent,(function(t){n.wire_geo(),n.globals.mode=n.globals.mode.substring(0,n.globals.mode.lastIndexOf("/")+1)+"input",n.render_template(e.control.identifier)}))}}catch(e){r.e(e)}finally{r.f()}}}]),Form}(n.Proto);Gr.prototype._ul4attrs=new Set(["enabled"]),Gr.prototype._sel_form="#livingapps-form form",Gr.prototype._sel_button="[type=submit]";for(var qr=0,Vr=[a,u,w,M,I,Rr,Pr,D,R,P,N,kt,gt,bt,wt,It,Dt,Ht,Bt,Vt,Wt,Yt,$t,Qt,en,nn,ln,un,pn,_n,dn,mn,vn,Cn,Tn,Fn,Sn,xn,On,Hn,Bn,Un,q,E,$,ee,ne,oe,ae,ue,W,Y,pe,he,de,ke,ge,be,Te,Se,Ie,Ge,Ke,Qe,it,qn,En,v,m,C,L,zn,Jn,$n,Qn,er,rr,lr,ir,_r,yr,fr,kr,gr,br,Tr,Fr,Mr,Ir,Nr];qr<Vr.length;qr++){var Er=Vr[qr];n.register("de.livinglogic.livingapi."+Er.name.toLowerCase(),Er)}var jr=new n.Module("la","LivingAPI types",{FlashMessage:u,File:lr,Geo:ir,User:rr,KeyView:Fr,Globals:a,App:w,AppGroup:M,TextControl:wt,URLControl:Dt,EmailControl:It,PasswordControl:Mt,TelControl:Ht,TextAreaControl:Bt,HTMLControl:Ut,IntControl:gt,NumberControl:bt,DateControl:Vt,DatetimeMinuteControl:Wt,DatetimeSecondControl:Yt,BoolControl:kt,LookupSelectControl:Qt,LookupRadioControl:en,LookupChoiceControl:nn,AppLookupSelectControl:un,AppLookupRadioControl:pn,AppLookupChoiceControl:_n,MultipleLookupSelectControl:mn,MultipleLookupCheckboxControl:vn,MultipleLookupChoiceControl:Cn,MultipleAppLookupSelectControl:Fn,MultipleAppLookupCheckboxControl:Sn,MultipleAppLookupChoiceControl:xn,FileControl:Hn,FileSignatureControl:Bn,GeoControl:On,ViewControl:er,RecordChildren:P,Record:N,FileAttachment:fr,URLAttachment:yr,NoteAttachment:_r,JSONAttachment:kr,DataAction:gr,Installation:br,HTMLLayoutControl:Jn,ImageLayoutControl:$n,ButtonLayoutControl:Qn,View:I,DataSource:D,DataSourceChildren:R,LookupItem:qn,ViewLookupItem:En,Translations:y,AppLang:v,AppGroupLang:m,ControlLang:C,LookupItemLang:L,Category:Tr,AppParameter:Mr,MutableAppParameter:Ir,MenuItem:Rr,Panel:Pr,ViewTemplateInfo:Nr});e.App=w,e.AppGroup=M,e.AppGroupLang=m,e.AppLang=v,e.AppLookupChoiceControl=_n,e.AppLookupChoiceField=ot,e.AppLookupControl=ln,e.AppLookupField=Qe,e.AppLookupFieldBase=Ke,e.AppLookupRadioControl=pn,e.AppLookupRadioField=nt,e.AppLookupSelectControl=un,e.AppLookupSelectField=et,e.AppParameter=Mr,e.Attachment=pr,e.Base=r,e.BoolControl=kt,e.BoolField=E,e.ButtonControl=Un,e.ButtonLayoutControl=Qn,e.Category=Tr,e.ChoiceFieldBase=Ae,e.Control=ft,e.ControlLang=C,e.DataAction=gr,e.DataSource=D,e.DataSourceChildren=R,e.DateControl=Vt,e.DateField=ge,e.DateFieldBase=ke,e.DatetimeMinuteControl=Wt,e.DatetimeMinuteField=be,e.DatetimeSecondControl=Yt,e.DatetimeSecondField=Te,e.EmailControl=It,e.EmailField=ee,e.Field=q,e.File=lr,e.FileAttachment=fr,e.FileControl=Hn,e.FileField=he,e.FileSignatureControl=Bn,e.FileSignatureField=de,e.FlashMessage=u,e.Form=Gr,e.Geo=ir,e.GeoControl=On,e.GeoField=pe,e.Globals=a,e.HTMLControl=Ut,e.HTMLField=ue,e.HTMLLayoutControl=Jn,e.Handler=o,e.ImageLayoutControl=$n,e.Installation=br,e.IntControl=gt,e.IntField=W,e.JSONAttachment=kr,e.KeyView=Fr,e.LangBase=d,e.LayoutControl=zn,e.LookupChoiceControl=nn,e.LookupChoiceField=Be,e.LookupControl=$t,e.LookupField=Ie,e.LookupFieldBase=Se,e.LookupItem=qn,e.LookupItemLang=L,e.LookupRadioControl=en,e.LookupRadioField=De,e.LookupSelectControl=Qt,e.LookupSelectField=He,e.MenuItem=Rr,e.MultipleAppLookupCheckboxControl=Sn,e.MultipleAppLookupCheckboxField=st,e.MultipleAppLookupChoiceControl=xn,e.MultipleAppLookupChoiceField=ht,e.MultipleAppLookupControl=Tn,e.MultipleAppLookupField=it,e.MultipleAppLookupSelectControl=Fn,e.MultipleAppLookupSelectField=ct,e.MultipleLookupCheckboxControl=vn,e.MultipleLookupCheckboxField=Ve,e.MultipleLookupChoiceControl=Cn,e.MultipleLookupChoiceField=ze,e.MultipleLookupControl=dn,e.MultipleLookupField=Ge,e.MultipleLookupSelectControl=mn,e.MultipleLookupSelectField=je,e.MutableAppParameter=Ir,e.NoteAttachment=_r,e.NumberControl=bt,e.NumberField=Y,e.Panel=Pr,e.PasswordControl=Mt,e.PasswordField=Q,e.Permission=p,e.Record=N,e.RecordChildren=P,e.StringControl=At,e.StringField=$,e.TelControl=Ht,e.TelField=oe,e.TextAreaControl=Bt,e.TextAreaField=ae,e.TextControl=wt,e.Translations=y,e.URLAttachment=yr,e.URLControl=Dt,e.URLField=ne,e.User=rr,e.View=I,e.ViewControl=er,e.ViewLookupItem=En,e.ViewTemplateInfo=Nr,e.element=element,e.module=jr,e.url_with_params=url_with_params,e.version="1.34.0",Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=livingapi.js.map