\n "),t+="\n\n"}},"+c4W":function(n,e,t){var l=t("711d"),i=t("4/ic"),o=t("9ggG"),r=t("9Nap");n.exports=function(n){return o(n)?l(r(n)):i(n)}},"+dm0":function(n,e,t){"use strict";function l(n){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}t("07d7"),t("SuFq"),t("uL8W"),t("eoL8"),t("XUE8"),t("5DmW"),t("gXIK"),t("7+zs"),t("pNMO"),t("4Brf"),t("qePV"),t("0oug"),t("4mDm"),t("PKPk"),t("3bBZ"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("ma9I"),t("ExoC"),t("wLYn"),t("NBAS");var i,o=(i=t("0xui"))&&i.__esModule?i:{default:i};function r(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function a(n,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return this.updateValue(n,e)}},{key:"getValue",value:function(){return this.dataValue}}])&&a(e.prototype,t),l&&a(e,l),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.default);e.default=h},"+fIg":function(n,e,t){"use strict";t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=[{type:"textfield",input:!0,key:"footer",label:"Footer Label",tooltip:"The footer text that appears below the signature area.",placeholder:"Footer Label",weight:10},{type:"textfield",input:!0,key:"width",label:"Width",tooltip:"The width of the signature area.",placeholder:"Width",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:50},{type:"textfield",input:!0,key:"height",label:"Height",tooltip:"The height of the signature area.",placeholder:"Height",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:51},{weight:52,type:"checkbox",label:"Keep Overlay Aspect Ratio",tooltip:"If checked, the field will have the same aspect ratio as its preview.",key:"keepOverlayRatio",customConditional:function(n){var e,t=n.options;return"pdf"===(null==t||null===(e=t.editForm)||void 0===e?void 0:e.display)},input:!0},{type:"textfield",input:!0,key:"backgroundColor",label:"Background Color",tooltip:"The background color of the signature area.",placeholder:"Background Color",weight:52},{type:"textfield",input:!0,key:"penColor",label:"Pen Color",tooltip:"The ink color for the signature area.",placeholder:"Pen Color",weight:53},{key:"placeholder",ignore:!0},{key:"autofocus",ignore:!0}]},"+iFO":function(n,e,t){var l=t("dTAl"),i=t("LcsW"),o=t("6sVZ");n.exports=function(n){return"function"!=typeof n.constructor||o(n)?{}:l(i(n))}},"+nhl":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var e,t="";Array.prototype.join;return t+='\n"}},"+o8x":function(n,e,t){"use strict";t("XUE8"),t("5DmW"),t("SuFq"),t("uL8W"),t("eoL8"),t("gXIK"),t("7+zs"),t("pNMO"),t("4Brf"),t("qePV"),t("ftMj"),t("0oug"),t("4mDm"),t("PKPk"),t("3bBZ"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("J30X"),t("2B1R"),t("tkto"),t("fbCW"),t("07d7"),t("zKZe"),t("E9XD"),t("ma9I"),t("QWBl"),t("FZtP"),t("sMBO"),t("pDQq"),t("ExoC"),t("wLYn"),t("NBAS");var l=u(t("3Iyw")),i=u(t("qkmR")),o=u(t("LvDl")),r=u(t("uhBA")),a=t("5P0i");function u(n){return n&&n.__esModule?n:{default:n}}function s(n){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function c(n,e){for(var t=0;t0&&(n.valueComponent=this.components[this.components.length-1].schema),o.default.omit(n,"components")}},{key:"init",value:function(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns=g({key:!0},this.valueKey,!0),this.component.valueComponent.hideLabel=!0}},{key:"defaultSchema",get:function(){return d.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"dataValue",get:function(){return!this.key||!this.visible&&this.component.clearOnHide?this.emptyValue:(!this.hasValue()&&this.shouldAddDefaultValue&&(this.dataValue=this.emptyValue),o.default.get(this.data,this.key))},set:function(n){p(C(d.prototype),"dataValue",n,this,!0)}},{key:"defaultValue",get:function(){var n=v(C(d.prototype),"defaultValue",this);return Array.isArray(n)?n[0]:this.emptyValue}},{key:"keySchema",get:function(){return{type:"textfield",input:!0,hideLabel:!0,label:this.component.keyLabel||"Key",key:"__key",disableBuilderActions:!0}}},{key:"valueKey",get:function(){return this.component.valueComponent.key}},{key:"getRowValues",value:function(){var n=this.dataValue;return this.builderMode?[n]:o.default.isEmpty(n)?[]:Object.keys(n).map((function(){return n}))}},{key:"getComponentsContainer",value:function(){return this.builderMode?this.getComponents().map((function(n){return n.component})):v(C(d.prototype),"getComponentsContainer",this).call(this)}},{key:"iteratableRows",get:function(){return this.rows.map((function(n){return Object.keys(n).map((function(e){return{components:n[e],data:n[e].dataValue}}))}))}},{key:"componentContext",value:function(n){return this.iteratableRows[n.row].find((function(e){return e.components.key===n.key})).data}},{key:"hasHeader",value:function(){return!0}},{key:"hasRemoveButtons",value:function(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode}},{key:"getColumns",value:function(){var n=Object.assign({},this.keySchema),e=Object.assign({},this.component.valueComponent);return n.hideLabel=!1,e.hideLabel=!1,this.component.keyBeforeValue?[n,e]:[e,n]}},{key:"getRowKey",value:function(n){var e=Object.keys(this.dataValue);return e[n]||(e[n]=(0,a.uniqueKey)(this.dataValue,this.defaultRowKey)),e[n]}},{key:"defaultRowKey",get:function(){return"key"}},{key:"setRowComponentsData",value:function(n,e){o.default.each(this.rows[n],(function(t){"__key"===t.key?t.data={__key:Object.keys(e)[n]}:t.data=e}))}},{key:"getValueAsString",value:function(n,e){var t=this;if(null!=e&&e.email&&this.visible&&!this.skipInEmail&&o.default.isObject(n)){var l='\n
\n \n\n"}},0:function(n,e,t){n.exports=t("zUnb")},"0/uQ":function(n,e,t){"use strict";t.d(e,"a",(function(){return h}));var l=t("6blF"),i=t("/WYv"),o=t("2ePl"),r=t("xTla");var a=t("En8+");var u=t("IUTb"),s=t("pugT"),c=t("S5XQ");var d=t("u67D");var p=t("JcRv");var g=t("Fxb1");function h(n,e){if(!e)return n instanceof l.a?n:new l.a(Object(g.a)(n));if(null!=n){if(function(n){return n&&"function"==typeof n[r.a]}(n))return function(n,e){return e?new l.a((function(t){var l=new s.a;return l.add(e.schedule((function(){var i=n[r.a]();l.add(i.subscribe({next:function(n){l.add(e.schedule((function(){return t.next(n)})))},error:function(n){l.add(e.schedule((function(){return t.error(n)})))},complete:function(){l.add(e.schedule((function(){return t.complete()})))}}))}))),l})):new l.a(Object(p.a)(n))}(n,e);if(Object(i.a)(n))return function(n,e){return e?new l.a((function(t){var l=new s.a;return l.add(e.schedule((function(){return n.then((function(n){l.add(e.schedule((function(){t.next(n),l.add(e.schedule((function(){return t.complete()})))})))}),(function(n){l.add(e.schedule((function(){return t.error(n)})))}))}))),l})):new l.a(Object(c.a)(n))}(n,e);if(Object(o.a)(n))return Object(u.a)(n,e);if(function(n){return n&&"function"==typeof n[a.a]}(n)||"string"==typeof n)return function(n,e){if(!n)throw new Error("Iterable cannot be null");return e?new l.a((function(t){var l,i=new s.a;return i.add((function(){l&&"function"==typeof l.return&&l.return()})),i.add(e.schedule((function(){l=n[a.a](),i.add(e.schedule((function(){if(!t.closed){var n,e;try{var i=l.next();n=i.value,e=i.done}catch(o){return void t.error(o)}e?t.complete():(t.next(n),this.schedule())}})))}))),i})):new l.a(Object(d.a)(n))}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}},"01rr":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t("wksE");e.default={form:l.default}},"03A+":function(n,e,t){var l=t("JTzB"),i=t("ExA7"),o=Object.prototype,r=o.hasOwnProperty,a=o.propertyIsEnumerable,u=l(function(){return arguments}())?l:function(n){return i(n)&&r.call(n,"callee")&&!a.call(n,"callee")};n.exports=u},"07d7":function(n,e,t){"use strict";var l=t("AO7/"),i=t("yy0I"),o=t("sEFX");l||i(Object.prototype,"toString",o,{unsafe:!0})},"09nb":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t("bv23");e.default={form:l.default}},"0BK2":function(n,e,t){"use strict";n.exports={}},"0Cz8":function(n,e,t){var l=t("Xi7e"),i=t("ebwN"),o=t("e4Nc");n.exports=function(n,e){var t=this.__data__;if(t instanceof l){var r=t.__data__;if(!i||r.length<199)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new o(r)}return t.set(n,e),this.size=t.size,this}},"0Dky":function(n,e,t){"use strict";n.exports=function(n){try{return!!n()}catch(e){return!0}}},"0GbY":function(n,e,t){"use strict";var l=t("2oRo"),i=t("Fib7"),o=function(n){return i(n)?n:void 0};n.exports=function(n,e){return arguments.length<2?o(l[n]):l[n]&&l[n][e]}},"0IpN":function(n,e,t){"use strict";function l(n){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}t("gXIK"),t("7+zs"),t("pNMO"),t("4Brf"),t("qePV"),t("eoL8"),t("tkto"),t("5DmW"),t("QWBl"),t("FZtP"),t("27RR"),t("HRxU"),t("0oug"),t("4mDm"),t("PKPk"),t("3bBZ"),t("tjZM"),t("lEou"),t("DEfu"),t("I9xj"),t("uL8W"),t("NBAS"),t("sMBO"),t("ExoC"),t("Junv"),t("+2oP"),Object.defineProperty(e,"__esModule",{value:!0}),e.setXhrHeaders=e.default=void 0,t("oVuX"),t("2B1R"),t("TeQF"),t("07d7"),t("SYor"),t("5s+n"),t("ma9I");var i=r(t("CFBA")),o=r(t("Zsd2"));function r(n){return n&&n.__esModule?n:{default:n}}function a(){a=function(){return n};var n={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(n,e,t){n[e]=t.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(n,e,t){return Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),n[e]}try{c({},"")}catch(I){c=function(n,e,t){return n[e]=t}}function d(n,e,t,l){var o=e&&e.prototype instanceof h?e:h,r=Object.create(o.prototype),a=new M(l||[]);return i(r,"_invoke",{value:_(n,t,a)}),r}function p(n,e,t){try{return{type:"normal",arg:n.call(e,t)}}catch(I){return{type:"throw",arg:I}}}n.wrap=d;var g={};function h(){}function m(){}function f(){}var b={};c(b,r,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(k([])));y&&y!==e&&t.call(y,r)&&(b=y);var C=f.prototype=h.prototype=Object.create(b);function w(n){["next","throw","return"].forEach((function(e){c(n,e,(function(n){return this._invoke(e,n)}))}))}function A(n,e){var o;i(this,"_invoke",{value:function(i,r){function a(){return new e((function(o,a){!function i(o,r,a,u){var s=p(n[o],n,r);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==l(d)&&t.call(d,"__await")?e.resolve(d.__await).then((function(n){i("next",n,a,u)}),(function(n){i("throw",n,a,u)})):e.resolve(d).then((function(n){c.value=n,a(c)}),(function(n){return i("throw",n,a,u)}))}u(s.arg)}(i,r,o,a)}))}return o=o?o.then(a,a):a()}})}function _(n,e,t){var l="suspendedStart";return function(i,o){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===i)throw o;return S()}for(t.method=i,t.arg=o;;){var r=t.delegate;if(r){var a=P(r,t);if(a){if(a===g)continue;return a}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===l)throw l="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);l="executing";var u=p(n,e,t);if("normal"===u.type){if(l=t.done?"completed":"suspendedYield",u.arg===g)continue;return{value:u.arg,done:t.done}}"throw"===u.type&&(l="completed",t.method="throw",t.arg=u.arg)}}}function P(n,e){var t=e.method,l=n.iterator[t];if(void 0===l)return e.delegate=null,"throw"===t&&n.iterator.return&&(e.method="return",e.arg=void 0,P(n,e),"throw"===e.method)||"return"!==t&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),g;var i=p(l,n.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var o=i.arg;return o?o.done?(e[n.resultName]=o.value,e.next=n.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function x(n){var e={tryLoc:n[0]};1 in n&&(e.catchLoc=n[1]),2 in n&&(e.finallyLoc=n[2],e.afterLoc=n[3]),this.tryEntries.push(e)}function O(n){var e=n.completion||{};e.type="normal",delete e.arg,n.completion=e}function M(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(x,this),this.reset(!0)}function k(n){if(n){var e=n[r];if(e)return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var l=-1,i=function e(){for(;++l=0;--i){var o=this.tryEntries[i],r=o.completion;if("root"===o.tryLoc)return l("end");if(o.tryLoc<=this.prev){var a=t.call(o,"catchLoc"),u=t.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--l){var i=this.tryEntries[l];if(i.tryLoc<=this.prev&&t.call(i,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===n)return this.complete(t.completion,t.afterLoc),O(t),g}},catch:function(n){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===n){var l=t.completion;if("throw"===l.type){var i=l.arg;O(t)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(n,e,t){return this.delegate={iterator:k(n),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),g}},n}function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);e&&(l=l.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,l)}return t}function s(n){for(var e=1;e=200&&u.status<300)r(t);else if(504===u.status){var n=new Error("Network request failed");n.networkError=!0,a(n)}else a(u.response||"Unable to upload file")},u.send(n)})).catch(a)}))}},h=g;e.default=h},"0JQy":function(n,e){var t="[\\ud800-\\udfff]",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+l+"|"+i+")"+"?",s="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[o,r,a].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[o+l+"?",l,r,a,t].join("|")+")",d=RegExp(i+"(?="+i+")|"+c+s,"g");n.exports=function(n){return n.match(d)||[]}},"0Kca":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t("/p9O");e.default={form:l.default}},"0TkE":function(n,e,t){"use strict";var l=t("67WC"),i=t("tycR").find,o=l.aTypedArray;(0,l.exportTypedArrayMethod)("find",(function(n){return i(o(this),n,arguments.length>1?arguments[1]:void 0)}))},"0XPj":function(n,e,t){var l=t("eUgh"),i=t("s+kx"),o=t("EA7m"),r=t("XzbM"),a=o((function(n){var e=l(n,r);return e.length&&e[0]===n[0]?i(e):[]}));n.exports=a},"0btd":function(n,e,t){"use strict";t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l,i=(l=t("5U3O"))&&l.__esModule?l:{default:l};var o=[{weight:0,type:"checkbox",label:"Multiple Values",tooltip:"Allows multiple values to be entered for this field.",key:"multiple",input:!0},{type:"textfield",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0},{weight:30,type:"radio",label:"Persistent",tooltip:"A persistent field will be stored in database when the form is submitted.",key:"persistent",input:!0,inline:!0,defaultValue:!0,values:[{label:"None",value:!1},{label:"Server",value:!0},{label:"Client",value:"client-only"}]},{weight:150,type:"checkbox",label:"Protected",tooltip:"A protected field will not be returned when queried via API.",key:"protected",input:!0},{type:"checkbox",input:!0,weight:200,key:"dbIndex",label:"Database Index",tooltip:"Set this field as an index within the database. Increases performance for submission queries."},{weight:400,type:"checkbox",label:"Encrypted",tooltip:"Encrypt this field on the server. This is two way encryption which is not suitable for passwords.",key:"encrypted",input:!0,logic:[{name:"disabled",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"disabled",type:"property",property:{label:"Disabled",value:"disabled",type:"boolean"},state:!0}]},{name:"disabledToolTip",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"addDisabledTooltip",type:"property",property:{label:"Tooltip",value:"tooltip",type:"string"},text:"Only available with Security Module. Contact sales@form.io for more information."}]}]},{type:"select",input:!0,key:"redrawOn",label:"Redraw On",weight:600,tooltip:"Redraw this component if another component changes. This is useful if interpolating parts of the component like the label.",dataSrc:"custom",valueProperty:"value",data:{custom:function(n){var e=[];return e.push({label:"Any Change",value:"data"}),n.utils.eachComponent(n.instance.options.editForm.components,(function(t,l){t.key!==n.data.key&&e.push({label:t.label||t.key,value:l})})),e}},conditional:{json:{"!":[{var:"data.dataSrc"}]}}},{weight:700,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0},i.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",1e3,'
',footer:""},type:"editgrid",addAnother:"Add Logic",saveRow:"Save Logic",components:[{weight:0,input:!0,inputType:"text",label:"Logic Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,key:"triggerPanel",input:!1,title:"Trigger",tableView:!1,components:[{weight:0,input:!0,tableView:!1,components:[{weight:0,input:!0,label:"Type",key:"type",tableView:!1,data:{values:[{value:"simple",label:"Simple"},{value:"javascript",label:"Javascript"},{value:"json",label:"JSON Logic"},{value:"event",label:"Event"}]},dataSrc:"values",template:"{{ item.label }}",type:"select"},{weight:10,label:"",key:"simple",type:"container",tableView:!1,customConditional:function(n){return"simple"===n.row.type},components:[{input:!0,key:"show",label:"Show",type:"hidden",tableView:!1,calculateValue:function(){return!0}},{type:"select",input:!0,label:"When the form component:",key:"when",dataSrc:"custom",valueProperty:"value",tableView:!1,data:{custom:function(n){return(0,o.getContextComponents)(n)}}},{type:"textfield",input:!0,label:"Has the value:",key:"eq",tableView:!1}]},{weight:10,type:"textarea",key:"javascript",rows:5,editor:"ace",as:"javascript",input:!0,tableView:!1,placeholder:"result = (data['mykey'] > 1);",description:'"row", "data", and "component" variables are available. Return "result".',customConditional:function(n){return"javascript"===n.row.type}},{weight:10,type:"textarea",key:"json",rows:5,editor:"ace",label:"JSON Logic",as:"json",input:!0,tableView:!1,placeholder:"{ ... }",description:'"row", "data", "component" and "_" variables are available. Return the result to be passed to the action if truthy.',customConditional:function(n){return"json"===n.row.type}},{weight:10,type:"textfield",key:"event",label:"Event Name",placeholder:"event",description:"The event that will trigger this logic. You can trigger events externally or via a button.",tableView:!1,customConditional:function(n){return"event"===n.row.type}}],key:"trigger",type:"container"}],type:"panel"},{weight:20,input:!0,label:"Actions",key:"actions",tableView:!1,templates:{header:'
\n
{{ value.length }} {{ ctx.t("actions") }}
\n
',row:'
\n
\n
{{ row.name }}
\n
\n
\n
\n \n \n
\n
\n
',footer:""},type:"editgrid",addAnother:"Add Action",saveRow:"Save Action",components:[{weight:0,title:"Action",input:!1,key:"actionPanel",type:"panel",components:[{weight:0,input:!0,inputType:"text",label:"Action Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,input:!0,label:"Type",key:"type",data:{values:[{value:"property",label:"Property"},{value:"value",label:"Value"},{label:"Merge Component Schema",value:"mergeComponentSchema"},{label:"Custom Action",value:"customAction"}]},dataSrc:"values",template:"{{ item.label }}",type:"select"},{weight:20,type:"select",template:"{{ item.label }}",dataSrc:"json",tableView:!1,data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Prefix",value:"prefix",type:"string"},{label:"Suffix",value:"suffix",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"Input Mask",value:"inputMask",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"}]},key:"property",label:"Component Property",input:!0,customConditional:function(n){return"property"===n.row.type}},{weight:30,input:!0,label:"Set State",key:"state",tableView:!1,data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]},dataSrc:"values",template:"{{ item.label }}",type:"select",customConditional:function(n){var e=n.row;return"property"===e.type&&e.hasOwnProperty("property")&&"boolean"===e.property.type}},{weight:30,type:"textfield",key:"text",label:"Text",inputType:"text",input:!0,tableView:!1,description:'Can use templating with {{ data.myfield }}. "data", "row", "component" and "result" variables are available.',customConditional:function(n){var e=n.row;return"property"===e.type&&e.hasOwnProperty("property")&&"string"===e.property.type&&!e.property.component}},{weight:20,input:!0,label:"Value (Javascript)",key:"value",editor:"ace",as:"javascript",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the value.',customConditional:function(n){return"value"===n.row.type}},{weight:20,input:!0,label:"Schema Defenition",key:"schemaDefinition",editor:"ace",as:"javascript",rows:5,placeholder:"schema = { label: 'Updated' };",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the schema.',customConditional:function(n){return"mergeComponentSchema"===n.row.type}},Object.assign(i.default.logicVariablesTable("
\n\n"}},"1ppg":function(n,e,t){!function(n){"use strict";n.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}(t("wd/R"))},"1rYy":function(n,e,t){!function(n){"use strict";n.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(n){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(n)},meridiem:function(n){return n<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":n<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":n<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(n,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===n?n+"-\u056b\u0576":n+"-\u0580\u0564";default:return n}},week:{dow:1,doy:7}})}(t("wd/R"))},"1tal":function(n,e,t){"use strict";var l=TypeError;n.exports=function(n,e){if(n>>1|$<<31)^(X>>>8|$<<24)^X>>>7,Z=($>>>1|X<<31)^($>>>8|X<<24)^($>>>7|X<<25),nn=s[q-2],en=nn.high,tn=nn.low,ln=(en>>>19|tn<<13)^(en<<3|tn>>>29)^en>>>6,on=(tn>>>19|en<<13)^(tn<<3|en>>>29)^(tn>>>6|en<<26),rn=s[q-7],an=rn.high,un=rn.low,sn=s[q-16],cn=sn.high,dn=sn.low;W=(W=(W=J+an+((G=Z+un)>>>0>>0?1:0))+ln+((G+=on)>>>0>>0?1:0))+cn+((G+=dn)>>>0>>0?1:0),Q.high=W,Q.low=G}var pn,gn=B&j^~B&V,hn=F&z^~F&U,mn=S&T^S&D^T&D,fn=I&E^I&R^E&R,bn=(S>>>28|I<<4)^(S<<30|I>>>2)^(S<<25|I>>>7),vn=(I>>>28|S<<4)^(I<<30|S>>>2)^(I<<25|S>>>7),yn=(B>>>14|F<<18)^(B>>>18|F<<14)^(B<<23|F>>>9),Cn=(F>>>14|B<<18)^(F>>>18|B<<14)^(F<<23|B>>>9),wn=u[q],An=wn.high,_n=wn.low,Pn=H+yn+((pn=Y+Cn)>>>0>>0?1:0),xn=vn+fn;H=V,Y=U,V=j,U=z,j=B,z=F,B=N+(Pn=(Pn=(Pn=Pn+gn+((pn+=hn)>>>0>>0?1:0))+An+((pn+=_n)>>>0<_n>>>0?1:0))+W+((pn+=G)>>>0>>0?1:0))+((F=L+pn|0)>>>0>>0?1:0)|0,N=D,L=R,D=T,R=E,T=S,E=I,S=Pn+(bn+mn+(xn>>>0>>0?1:0))+((I=pn+xn|0)>>>0>>0?1:0)|0}h=l.low=h+I,l.high=g+S+(h>>>0>>0?1:0),f=i.low=f+E,i.high=m+T+(f>>>0>>0?1:0),v=o.low=v+R,o.high=b+D+(v>>>0>>0?1:0),C=r.low=C+L,r.high=y+N+(C>>>0>>0?1:0),A=a.low=A+F,a.high=w+B+(A>>>0>>0?1:0),P=c.low=P+z,c.high=_+j+(P>>>0>>0?1:0),O=d.low=O+U,d.high=x+V+(O>>>0>>0?1:0),k=p.low=k+Y,p.high=M+H+(k>>>0>>0?1:0)},_doFinalize:function(){var n=this._data,e=n.words,t=8*this._nDataBytes,l=8*n.sigBytes;return e[l>>>5]|=128<<24-l%32,e[30+(l+128>>>10<<5)]=Math.floor(t/4294967296),e[31+(l+128>>>10<<5)]=t,n.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var n=e.clone.call(this);return n._hash=this._hash.clone(),n},blockSize:32});n.SHA512=e._createHelper(c),n.HmacSHA512=e._createHmacHelper(c)}(),l.SHA512)},"1v02":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){return"Loading...\n","Loading...\n"}},"1w02":function(n,e){n.exports=function(n,e,t){for(var l=-1,i=n.length,o=e.length,r={};++l=48&&e<=57))return!1;t++}return!0}function p(n){return-1===n.indexOf("/")&&-1===n.indexOf("~")?n:n.replace(/~/g,"~0").replace(/\//g,"~1")}function g(n){return n.replace(/~1/g,"/").replace(/~0/g,"~")}function h(n,e){var t=[n];for(var l in e){var i="object"==typeof e[l]?JSON.stringify(e[l],null,2):e[l];void 0!==i&&t.push(l+": "+i)}return t.join("\n")}var m=function(n){function e(e,t,l,i,o){var r=this.constructor,a=n.call(this,h(e,{name:t,index:l,operation:i,tree:o}))||this;return a.name=t,a.index=l,a.operation=i,a.tree=o,Object.setPrototypeOf(a,r.prototype),a.message=h(e,{name:t,index:l,operation:i,tree:o}),a}return r(e,n),e}(Error),f=m,b=c,v={add:function(n,e,t){return n[e]=this.value,{newDocument:t}},remove:function(n,e,t){var l=n[e];return delete n[e],{newDocument:t,removed:l}},replace:function(n,e,t){var l=n[e];return n[e]=this.value,{newDocument:t,removed:l}},move:function(n,e,t){var l=C(t,this.path);l&&(l=c(l));var i=w(t,{op:"remove",path:this.from}).removed;return w(t,{op:"add",path:this.path,value:i}),{newDocument:t,removed:l}},copy:function(n,e,t){var l=C(t,this.from);return w(t,{op:"add",path:this.path,value:c(l)}),{newDocument:t}},test:function(n,e,t){return{newDocument:t,test:O(n[e],this.value)}},_get:function(n,e,t){return this.value=n[e],{newDocument:t}}},y={add:function(n,e,t){return d(e)?n.splice(e,0,this.value):n[e]=this.value,{newDocument:t,index:e}},remove:function(n,e,t){return{newDocument:t,removed:n.splice(e,1)[0]}},replace:function(n,e,t){var l=n[e];return n[e]=this.value,{newDocument:t,removed:l}},move:v.move,copy:v.copy,test:v.test,_get:v._get};function C(n,e){if(""==e)return n;var t={op:"_get",path:e};return w(n,t),t.value}function w(n,e,t,l,i,o){if(void 0===t&&(t=!1),void 0===l&&(l=!0),void 0===i&&(i=!0),void 0===o&&(o=0),t&&("function"==typeof t?t(e,0,n,e.path):P(e,0)),""===e.path){var r={newDocument:n};if("add"===e.op)return r.newDocument=e.value,r;if("replace"===e.op)return r.newDocument=e.value,r.removed=n,r;if("move"===e.op||"copy"===e.op)return r.newDocument=C(n,e.from),"move"===e.op&&(r.removed=n),r;if("test"===e.op){if(r.test=O(n,e.value),!1===r.test)throw new f("Test operation failed","TEST_OPERATION_FAILED",o,e,n);return r.newDocument=n,r}if("remove"===e.op)return r.removed=n,r.newDocument=null,r;if("_get"===e.op)return e.value=n,r;if(t)throw new f("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",o,e,n);return r}l||(n=c(n));var a=(e.path||"").split("/"),u=n,s=1,p=a.length,h=void 0,m=void 0,b=void 0;for(b="function"==typeof t?t:P;;){if((m=a[s])&&-1!=m.indexOf("~")&&(m=g(m)),i&&("__proto__"==m||"prototype"==m&&s>0&&"constructor"==a[s-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(t&&void 0===h&&(void 0===u[m]?h=a.slice(0,s).join("/"):s==p-1&&(h=e.path),void 0!==h&&b(e,0,n,h)),s++,Array.isArray(u)){if("-"===m)m=u.length;else{if(t&&!d(m))throw new f("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,e,n);d(m)&&(m=~~m)}if(s>=p){if(t&&"add"===e.op&&m>u.length)throw new f("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,e,n);if(!1===(r=y[e.op].call(e,u,m,n)).test)throw new f("Test operation failed","TEST_OPERATION_FAILED",o,e,n);return r}}else if(s>=p){if(!1===(r=v[e.op].call(e,u,m,n)).test)throw new f("Test operation failed","TEST_OPERATION_FAILED",o,e,n);return r}if(u=u[m],t&&s
0)throw new f('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",e,n,t);if(("move"===n.op||"copy"===n.op)&&"string"!=typeof n.from)throw new f("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",e,n,t);if(("add"===n.op||"replace"===n.op||"test"===n.op)&&void 0===n.value)throw new f("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",e,n,t);if(("add"===n.op||"replace"===n.op||"test"===n.op)&&function n(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,l=e.length;t0&&(n.patches=[],n.callback&&n.callback(l)),l}function D(n,e,t,l,i){if(e!==n){"function"==typeof e.toJSON&&(e=e.toJSON());for(var o=s(e),r=s(n),a=!1,d=r.length-1;d>=0;d--){var g=n[m=r[d]];if(!u(e,m)||void 0===e[m]&&void 0!==g&&!1===Array.isArray(e))Array.isArray(n)===Array.isArray(e)?(i&&t.push({op:"test",path:l+"/"+p(m),value:c(g)}),t.push({op:"remove",path:l+"/"+p(m)}),a=!0):(i&&t.push({op:"test",path:l,value:n}),t.push({op:"replace",path:l,value:e}),!0);else{var h=e[m];"object"==typeof g&&null!=g&&"object"==typeof h&&null!=h&&Array.isArray(g)===Array.isArray(h)?D(g,h,t,l+"/"+p(m),i):g!==h&&(!0,i&&t.push({op:"test",path:l+"/"+p(m),value:c(g)}),t.push({op:"replace",path:l+"/"+p(m),value:c(h)}))}}if(a||o.length!=r.length)for(d=0;dd;)void 0!==(t=i(l,e=s[d++]))&&u(c,e,t);return c}})},"29mU":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var e,t="";Array.prototype.join;return t+='
\n"}},"3Iyw":function(n,e,t){"use strict";function l(n){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}t("SuFq"),t("uL8W"),t("eoL8"),t("XUE8"),t("5DmW"),t("gXIK"),t("7+zs"),t("pNMO"),t("4Brf"),t("qePV"),t("0oug"),t("4mDm"),t("3bBZ"),t("tkto"),t("27RR"),t("HRxU"),t("ENF9"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("zKZe"),t("sMBO"),t("U3f4"),t("wLYn"),t("QWBl"),t("07d7"),t("FZtP"),t("yXV3"),t("ma9I"),t("yq1k"),t("JTJg"),t("J30X"),t("rB9j"),t("UxlC"),t("LKBx"),t("oVuX"),t("DQNa"),t("JfAA"),t("2B1R"),t("pDQq"),t("E9XD"),t("4l63"),t("rZ3M"),t("TeQF"),t("pjDv"),t("PKPk"),t("Rfxz"),t("+2oP"),t("ExoC"),t("NBAS"),t("R5XZ");var i=t("uIYt"),o=y(t("CFBA")),r=y(t("b5oN")),a=y(t("LvDl")),u=y(t("A0fv")),s=t("1eKU"),c=function(n,e){if(!e&&n&&n.__esModule)return n;if(null===n||"object"!==l(n)&&"function"!=typeof n)return{default:n};var t=v(e);if(t&&t.has(n))return t.get(n);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in n)if("default"!==r&&Object.prototype.hasOwnProperty.call(n,r)){var a=o?Object.getOwnPropertyDescriptor(n,r):null;a&&(a.get||a.set)?Object.defineProperty(i,r,a):i[r]=n[r]}i.default=n,t&&t.set(n,i);return i}(t("5P0i")),d=y(t("g/h2")),p=y(t("A+qq")),g=y(t("E4Ma")),h=y(t("Nmqk")),m=y(t("kZaA")),f=t("Jw/Y"),b=y(t("Nq0N"));function v(n){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(v=function(n){return n?t:e})(n)}function y(n){return n&&n.__esModule?n:{default:n}}function C(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);e&&(l=l.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,l)}return t}function w(n){for(var e=1;e=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(n){throw n},f:i}}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,r=!0,a=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return r=n.done,n},e:function(n){a=!0,o=n},f:function(){try{r||null==t.return||t.return()}finally{if(a)throw o}}}}function P(n){return function(n){if(Array.isArray(n))return O(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||x(n)||function(){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 x(n,e){if(n){if("string"==typeof n)return O(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(n,e):void 0}}function O(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,l=new Array(e);t0&&void 0!==arguments[0]?arguments[0]:{};return a.default.defaultsDeep(n,this.defaultSchema)}},{key:"ready",get:function(){return o.default.resolve(this)}},{key:"isPDFReadOnlyMode",get:function(){return this.parent&&this.parent.form&&"pdf"===this.parent.form.display&&this.options.readOnly}},{key:"labelInfo",get:function(){var n={};n.hidden=this.labelIsHidden(),n.className="",n.labelPosition=this.component.labelPosition,n.tooltipClass="".concat(this.iconClass("question-sign")," text-muted");var e=this.isPDFReadOnlyMode;return this.hasInput&&this.component.validate&&(0,c.boolValue)(this.component.validate.required)&&!e&&(n.className+=" field-required"),n.hidden&&(n.className+=" control-label--hidden"),this.info.attr.id&&(n.for=this.info.attr.id),n}},{key:"init",value:function(){var n,e=this;this.disabled=this.shouldDisabled,this._visible=this.conditionallyVisible(null,null),null!==(n=this.component.addons)&&void 0!==n&&n.length&&this.component.addons.forEach((function(n){return e.createAddon(n)}))}},{key:"afterComponentAssign",value:function(){}},{key:"createAddon",value:function(n){var e,t=n.name;if(t){var l=(null===(e=n.settings)||void 0===e?void 0:e.data)||{},i=m.default[t.value],o=null;if(i){var r=i.info.supportedComponents;null!=r&&r.length&&-1===r.indexOf(this.component.type)?console.warn("Addon ".concat(t.label," does not support component of type ").concat(this.component.type,".")):(o=new i(l,this),this.addons.push(o))}return o}}},{key:"destroy",value:function(){S(N(v.prototype),"destroy",this).call(this),this.detach(),this.addons.forEach((function(n){return n.destroy()}))}},{key:"shouldDisabled",get:function(){return this.options.readOnly||this.component.disabled||this.options.hasOwnProperty("disabled")&&this.options.disabled[this.key]}},{key:"isInputComponent",get:function(){return!this.component.hasOwnProperty("input")||this.component.input}},{key:"allowData",get:function(){return this.hasInput}},{key:"hasInput",get:function(){return this.isInputComponent||this.refs.input&&this.refs.input.length}},{key:"defaultSchema",get:function(){return v.schema()}},{key:"key",get:function(){return a.default.get(this.component,"key","")}},{key:"parentVisible",get:function(){return this._parentVisible},set:function(n){this._parentVisible=n}},{key:"parentDisabled",get:function(){return this._parentDisabled},set:function(n){this._parentDisabled=n}},{key:"shouldForceVisibility",value:function(n,e){return!!this.options[e]&&(n||(n=this.component),a.default.isArray(this.options[e])?this.options[e].includes(n.key):this.options[e][n.key])}},{key:"shouldForceHide",value:function(n){return this.shouldForceVisibility(n,"hide")}},{key:"shouldForceShow",value:function(n){return this.shouldForceVisibility(n,"show")}},{key:"visible",get:function(){return!!(this.builderMode||this.previewMode||this.options.showHiddenFields)||!this.shouldForceHide()&&(!!this.shouldForceShow()||this._visible&&this._parentVisible)},set:function(n){if(this._visible!==n){if(n&&this.shouldForceHide())return;if(!n&&this.shouldForceShow())return;this._visible=n,this.clearOnHide(),this.redraw()}}},{key:"currentForm",get:function(){return this._currentForm},set:function(n){this._currentForm=n}},{key:"fullMode",get:function(){return"full"===this.options.attachMode}},{key:"builderMode",get:function(){return"builder"===this.options.attachMode}},{key:"calculatedPath",get:function(){return console.error("component.calculatedPath was deprecated, use component.path instead."),this.path}},{key:"labelPosition",get:function(){return this.component.labelPosition}},{key:"labelWidth",get:function(){var n=this.component.labelWidth;return n>=0?n:30}},{key:"labelMargin",get:function(){var n=this.component.labelMargin;return n>=0?n:3}},{key:"isAdvancedLabel",get:function(){return["left-left","left-right","right-left","right-right"].includes(this.labelPosition)}},{key:"labelPositions",get:function(){return this.labelPosition.split("-")}},{key:"skipInEmail",get:function(){return!1}},{key:"rightDirection",value:function(n){return!this.options.condensedMode&&"right"===n}},{key:"getLabelInfo",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.rightDirection(this.labelPositions[0]),t="left"===this.labelPositions[0]||n,l=this.rightDirection(this.labelPositions[1]),i="";if(this.component.hideLabel){var o=n?0:this.labelWidth+this.labelMargin;i=e?"margin-right: ".concat(o,"%"):"",i=t?"margin-left: ".concat(o,"%"):""}var r="\n flex: ".concat(this.labelWidth,";\n ").concat(e?"margin-left":"margin-right",": ").concat(this.labelMargin,"%;\n "),a="\n flex: ".concat(100-this.labelWidth-this.labelMargin,";\n ").concat(i,";\n ").concat(this.component.hideLabel?"max-width: ".concat(100-this.labelWidth-this.labelMargin):"",";\n ");return{isRightPosition:e,isRightAlign:l,labelStyles:r,contentStyles:a}}},{key:"getModifiedSchema",value:function(n,e,t){var l=this,i={};return e?(a.default.each(n,(function(n,o){if(!a.default.isArray(n)&&a.default.isObject(n)&&e.hasOwnProperty(o)){var r=l.getModifiedSchema(n,e[o],!0);a.default.isEmpty(r)||(i[o]=r)}else a.default.isArray(n)?0===n.length||a.default.isEqual(n,e[o])||(i[o]=n):(!t&&"type"===o||!t&&"key"===o||!t&&"label"===o||!t&&"input"===o||!t&&"tableView"===o||""!==n&&!e.hasOwnProperty(o)||""!==n&&n!==e[o]||e[o]&&n!==e[o])&&(i[o]=n)})),i):n}},{key:"schema",get:function(){return(0,c.fastCloneDeep)(this.getModifiedSchema(a.default.omit(this.component,"id"),this.defaultSchema))}},{key:"isInDataGrid",get:function(){return this.inDataGrid}},{key:"t",value:function(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n)return"";if(n in b.default&&t._userInput)return n;t.data=this.rootValue,t.row=this.data,t.component=this.component;for(var l=arguments.length,i=new Array(l>2?l-2:0),o=2;o");return this.getFormattedAttribute(e)}},{key:"isHtmlRenderMode",value:function(){return"html"===this.options.renderMode}},{key:"renderTemplate",value:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0,i=l||this.options.renderMode||"form";t.component=this.component,t.self=this,t.options=this.options,t.readOnly=this.options.readOnly,t.iconClass=this.iconClass.bind(this),t.size=this.size.bind(this),t.t=this.t.bind(this),t.transform=this.transform.bind(this),t.id=t.id||this.id,t.key=t.key||this.key,t.value=t.value||this.dataValue,t.disabled=this.disabled,t.builder=this.builderMode,t.render=function(){return console.warn("Form.io 'render' template function is deprecated.\n If you need to render template (template A) inside of another template (template B),\n pass pre-compiled template A (use this.renderTemplate('template_A_name') as template context variable for template B"),e.renderTemplate.apply(e,arguments)},t.label=t.labelInfo||this.labelInfo,t.tooltip=this.getFormattedTooltip(this.component.tooltip);var o=["".concat(n,"-").concat(this.component.type,"-").concat(this.key),"".concat(n,"-").concat(this.component.type),"".concat(n,"-").concat(this.key),"".concat(n)];return this.hook("render".concat(n.charAt(0).toUpperCase()+n.substring(1,n.length)),this.interpolate(this.getTemplate(o,i),t),t,i)}},{key:"sanitize",value:function(n,e,t){var l;return this.shouldSanitizeValue||e?c.sanitize(n,{sanitizeConfig:a.default.merge((null===(l=this.options)||void 0===l?void 0:l.sanitizeConfig)||{},t||{})}):n}},{key:"renderString",value:function(n,e){return n?this.interpolate(n,e):""}},{key:"performInputMapping",value:function(n){return n}},{key:"widget",get:function(){var n,e=this.component.widget;return e&&null!==(n=this.root)&&void 0!==n&&n.shadowRoot&&(e.shadowRoot=this.root.shadowRoot),e&&h.default[e.type]?new h.default[e.type](e,this.component,this):null}},{key:"getBrowserLanguage",value:function(){var n,e=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"];if(Array.isArray(e.languages))for(var l=0;l [ref="'.concat(t,'"]'):'[ref="'.concat(t,'"]');i&&l.startsWith("single")?this.refs[t]=n.querySelector(o):this.refs[t]=n.querySelectorAll(o)}}},{key:"setOpenModalElement",value:function(n){this.componentModal.setOpenModalElement(n||this.getModalPreviewTemplate())}},{key:"getModalPreviewTemplate",value:function(){var n,e,t="password"===this.component.type?this.dataValue.replace(/./g,"\u2022"):this.dataValue,l=this.error?{level:"error",message:this.error.message}:"";return this.hasInput&&null!==(n=this.component.validate)&&void 0!==n&&n.required&&!this.isPDFReadOnlyMode&&(e={className:"field-required"}),this.renderTemplate("modalPreview",{previewText:this.getValueAsString(t,{modalPreview:!0})||this.t("Click to set value"),messages:l&&this.renderTemplate("message",l),labelInfo:e})}},{key:"build",value:function(n){return n=n||this.element,this.empty(n),this.setContent(n,this.render()),this.attach(n)}},{key:"hasModalSaveButton",get:function(){return!0}},{key:"render",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unknown component: ".concat(this.component.type),e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=this.visible;return this.rendered=!0,this.builderMode||this.previewMode||!this.component.modalEdit?this.renderTemplate("component",{visible:t,id:this.id,classes:this.className,styles:this.customStyle,children:n},e):g.default.render(this,{visible:t,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:n},e)}},{key:"attachTooltips",value:function(n){var e=this;null==n||n.forEach((function(n,t){if(n){var l=n.getAttribute("data-tooltip"),i=n.getAttribute("data-title"),o=e.interpolate(i||l).replace(/(?:\r\n|\r|\n)/g," ");e.tooltips[t]=(0,r.default)(n,{allowHTML:!0,trigger:"mouseenter click focus",placement:"right",zIndex:1e4,interactive:!0,content:e.t(e.sanitize(o),{_userInput:!0})})}}))}},{key:"createComponentModal",value:function(n,e,t){return new g.default(this,n,e,t)}},{key:"attach",value:function(n){if(!this.builderMode&&!this.previewMode&&this.component.modalEdit){var e=!!this.componentModal&&this.componentModal.isOpened,t=e?this.componentModal.currentValue:this.dataValue,l=this.componentModal&&e?this.componentModal.openModalTemplate:null;this.componentModal=this.createComponentModal(n,e,t),this.setOpenModalElement(l)}this.attached=!0,this.element=n,n.component=this,this.element.id&&(this.id=this.element.id,this.component.id=this.id),this.loadRefs(n,{messageContainer:"single",tooltip:"multiple"}),this.attachTooltips(this.refs.tooltip),this.attachLogic(),this.autofocus(),this.hook("attachComponent",n,this);var i=this.component.type;return i&&this.hook("attach".concat(i.charAt(0).toUpperCase()+i.substring(1,i.length)),n,this),this.restoreFocus(),this.addons.forEach((function(e){return e.attach(n)})),o.default.resolve()}},{key:"restoreFocus",value:function(){var n,e,t;(null===(n=this.root)||void 0===n||null===(e=n.focusedComponent)||void 0===e?void 0:e.path)===this.path&&(this.loadRefs(this.element,{input:"multiple"}),this.focus(null===(t=this.root.currentSelection)||void 0===t?void 0:t.index),this.restoreCaretPosition())}},{key:"addShortcut",value:function(n,e){n&&this.root&&this.root!==this&&(e||(e=this.component.shortcut),this.root.addShortcut(n,e))}},{key:"removeShortcut",value:function(n,e){n&&this.root!==this&&(e||(e=this.component.shortcut),this.root.removeShortcut(n,e))}},{key:"detach",value:function(){this.refs={},this.removeEventListeners(),this.detachLogic(),this.tooltip&&this.tooltip.destroy()}},{key:"checkRefresh",value:function(n,e,t){var l=a.default.get(e,"instance.path",!1);l&&this.path===l||("data"===n?this.refresh(this.data,e,t):l&&(0,c.getComponentPath)(e.instance)===n&&e&&e.instance&&this.inContext(e.instance)&&this.refresh(e.value,e,t))}},{key:"checkRefreshOn",value:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n=n||[],!t.noRefresh){!n.length&&t.changed&&(n=[t.changed]);var l=t.fromBlur?this.component.refreshOnBlur:this.component.refreshOn||this.component.redrawOn;l&&(Array.isArray(l)?l.forEach((function(l){return n.forEach((function(n){return e.checkRefresh(l,n,t)}))})):n.forEach((function(n){return e.checkRefresh(l,n,t)})))}}},{key:"refresh",value:function(n){this.hasOwnProperty("refreshOnValue")?this.refreshOnChanged=!a.default.isEqual(n,this.refreshOnValue):this.refreshOnChanged=!0,this.refreshOnValue=(0,c.fastCloneDeep)(n),this.refreshOnChanged&&(this.component.clearOnRefresh&&this.setValue(null),this.triggerRedraw())}},{key:"inContext",value:function(n){if(n.data===this.data)return!0;for(var e=this.parent;e;){if(e.data===n.data)return!0;e=e.parent}return!1}},{key:"viewOnly",get:function(){return this.options.readOnly&&this.options.viewAsHtml}},{key:"createViewOnlyElement",value:function(){return this.element=this.ce("dl",{id:this.id}),this.element&&(this.element.component=this),this.element}},{key:"defaultViewOnlyValue",get:function(){return"-"}},{key:"getWidgetValueAsString",value:function(n,e){var t=this,l=!this.refs.input||!this.refs.input[0]||!this.refs.input[0].widget;if(!n||l)return this.widget&&n?this.widget.getValueAsString(n):n;if(Array.isArray(n)){var i=[];return n.forEach((function(n,l){var o=t.refs.input[l]&&t.refs.input[l].widget;o&&i.push(o.getValueAsString(n,e))})),i}return this.refs.input[0].widget.getValueAsString(n,e)}},{key:"getValueAsString",value:function(n,e){if(!n)return"";if(n=this.getWidgetValueAsString(n,e),Array.isArray(n))return n.join(", ");if(a.default.isPlainObject(n))return JSON.stringify(n);if(null==n)return"";var t=n.toString();return this.sanitize(t)}},{key:"getView",value:function(n,e){return this.component.protected?"--- PROTECTED ---":this.getValueAsString(n,e)}},{key:"updateItems",value:function(){this.restoreValue(),this.onChange.apply(this,arguments)}},{key:"itemValue",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(a.default.isObject(n)&&!a.default.isArray(n)){if(this.valueProperty)return a.default.get(n,this.valueProperty);if(e)return n.value}return n}},{key:"itemValueForHTMLMode",value:function(n){var e=this;return Array.isArray(n)?n.map((function(n){return Array.isArray(n)?e.itemValueForHTMLMode(n):e.itemValue(n)})).join(", "):this.itemValue(n)}},{key:"createModal",value:function(n,e,t){var l=this,i=this.ce("div",e||{});this.setContent(i,this.renderTemplate("dialog")),i.refs={},this.loadRefs.call(i,i,{dialogOverlay:"single",dialogContents:"single",dialogClose:"single"}),i.refs.dialogContents.appendChild(n),document.body.appendChild(i),document.body.classList.add("modal-open"),i.close=function(){document.body.classList.remove("modal-open"),i.dispatchEvent(new CustomEvent("close"))},this.addEventListener(i,"close",(function(){return l.removeChildFrom(i,document.body)}));var o=function(n){n.preventDefault(),i.close()},r=function(n){t?t().then((function(){return o(n)})).catch((function(){})):o(n)};return this.addEventListener(i.refs.dialogOverlay,"click",r),this.addEventListener(i.refs.dialogClose,"click",r),i}},{key:"optimizeRedraw",get:function(){return!(!this.options.optimizeRedraw||!this.element||this.visible||(this.addClass(this.element,"formio-removed"),0))}},{key:"className",get:function(){var n=this.hasInput?"".concat(this.transform("class","form-group")," has-feedback "):"";return n+="formio-component formio-component-".concat(this.component.type," "),this.key&&"form"!==this.key&&(n+="formio-component-".concat(this.key," ")),this.component.multiple&&(n+="formio-component-multiple "),this.component.customClass&&(n+=this.component.customClass),this.hasInput&&this.component.validate&&(0,c.boolValue)(this.component.validate.required)&&(n+=" required"),this.labelIsHidden()&&(n+=" formio-component-label-hidden"),this.visible||(n+=" formio-hidden"),n}},{key:"customStyle",get:function(){var n="";return a.default.each(this.component.style,(function(e,t){""!==e&&(n+="".concat(t,":").concat(e,";"))})),n}},{key:"isMobile",get:function(){return(0,u.default)()}},{key:"getElement",value:function(){return this.element}},{key:"evalContext",value:function(n){return S(N(v.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.rootValue,iconClass:this.iconClass.bind(this),t:this.t.bind(this),submission:this.root?this.root._submission:{data:this.rootValue},form:this.root?this.root._form:{},options:this.options},n))}},{key:"setPristine",value:function(n){this.pristine=n}},{key:"isPristine",get:function(){return this.pristine}},{key:"setDirty",value:function(n){this.dirty=n}},{key:"isDirty",get:function(){return this.dirty}},{key:"removeValue",value:function(n){this.splice(n),this.redraw(),this.restoreValue(),this.triggerRootChange()}},{key:"iconClass",value:function(n,e){var t=this.options.iconset||B.current.defaultIconset||"fa";return B.current.hasOwnProperty("iconClass")?B.current.iconClass(t,n,e):"fa"===this.options.iconset?B.defaultTemplates.iconClass(t,n,e):n}},{key:"size",value:function(n){return B.current.hasOwnProperty("size")?B.current.size(n):n}},{key:"name",get:function(){return this.t(this.component.label||this.component.placeholder||this.key,{_userInput:!0})}},{key:"errorLabel",get:function(){return this.t(this.component.errorLabel||this.component.label||this.component.placeholder||this.key)}},{key:"errorMessage",value:function(n){return this.component.errors&&this.component.errors[n]?this.component.errors[n]:n}},{key:"setContent",value:function(n,e,t,l){return n instanceof HTMLElement&&(n.innerHTML=this.sanitize(e,t,l),!0)}},{key:"restoreCaretPosition",value:function(){var n,e;if(null!==(n=this.root)&&void 0!==n&&n.currentSelection&&null!==(e=this.refs.input)&&void 0!==e&&e.length){var t=this.root.currentSelection,l=t.selection,i=t.index,o=this.refs.input[i],r=function(n){return/text|search|password|tel|url/i.test((null==n?void 0:n.type)||"")};if(o){var a;r(o)&&(a=o).setSelectionRange.apply(a,P(l))}else{var u,s=(null===(u=(o=this.refs.input[this.refs.input.length]).value)||void 0===u?void 0:u.length)||0;r(o)&&o.setSelectionRange(s,s)}}}},{key:"redraw",value:function(){if(!this.element||!this.element.parentNode||this.optimizeRedraw)return o.default.resolve();this.detach(),this.emit("redraw");var n=this.element.parentNode,e=Array.prototype.indexOf.call(n.children,this.element);return this.element.outerHTML=this.sanitize(this.render()),this.element=n.children[e],this.attach(this.element)}},{key:"rebuild",value:function(){return this.destroy(),this.init(),this.visible=this.conditionallyVisible(null,null),this.redraw()}},{key:"removeEventListeners",value:function(){S(N(v.prototype),"removeEventListeners",this).call(this),this.tooltips.forEach((function(n){return n.destroy()})),this.tooltips=[]}},{key:"hasClass",value:function(n,e){if(n)return S(N(v.prototype),"hasClass",this).call(this,n,this.transform("class",e))}},{key:"addClass",value:function(n,e){if(n)return S(N(v.prototype),"addClass",this).call(this,n,this.transform("class",e))}},{key:"removeClass",value:function(n,e){if(n)return S(N(v.prototype),"removeClass",this).call(this,n,this.transform("class",e))}},{key:"hasCondition",value:function(){return null!==this._hasCondition||(this._hasCondition=c.hasCondition(this.component)),this._hasCondition}},{key:"conditionallyVisible",value:function(n,e){return n=n||this.rootValue,e=e||this.data,this.builderMode||this.previewMode||!this.hasCondition()?!this.component.hidden:(n=n||(this.root?this.root.data:{}),this.checkCondition(e,n))}},{key:"checkCondition",value:function(n,e){return c.checkCondition(this.component,n||this.data,e||this.rootValue,this.root?this.root._form:{},this)}},{key:"checkComponentConditions",value:function(n,e,t){n=n||this.rootValue,e=e||{},t=t||this.data,!this.builderMode&!this.previewMode&&this.fieldLogic(n,t)&&this.redraw();var l=this.conditionallyVisible(n,t);return this.visible!==l&&(this.visible=l),l}},{key:"checkConditions",value:function(n,e,t){return n=n||this.rootValue,e=e||{},t=t||this.data,this.checkComponentConditions(n,e,t)}},{key:"logic",get:function(){return this.component.logic||[]}},{key:"fieldLogic",value:function(n,e){var t=this;n=n||this.rootValue,e=e||this.data;var l=this.logic;if(0!==l.length){var i=(0,c.fastCloneDeep)(this.originalComponent),o=l.reduce((function(l,o){var r=c.checkTrigger(i,o.trigger,e,n,t.root?t.root._form:{},t);return!!r&&t.applyActions(i,o.actions,r,e,n)||l}),!1);if(!a.default.isEqual(this.component,i)){this.component=i,o=!0;var r=this.shouldDisabled;this.disabled!==r&&(this.disabled=r)}return o}}},{key:"isIE",value:function(){if("undefined"==typeof window)return!1;var n=window.navigator.userAgent,e=n.indexOf("MSIE ");if(e>0)return parseInt(n.substring(e+5,n.indexOf(".",e)),10);if(n.indexOf("Trident/")>0){var t=n.indexOf("rv:");return parseInt(n.substring(t+3,n.indexOf(".",t)),10)}var l=n.indexOf("Edge/");return l>0&&parseInt(n.substring(l+5,n.indexOf(".",l)),10)}},{key:"defineActionValue",value:function(n,e){return this.evaluate(n.value,e,"value")}},{key:"applyActions",value:function(n,e,t,l,i){var o=this;return i=i||this.rootValue,l=l||this.data,e.reduce((function(e,r){switch(r.type){case"property":c.setActionProperty(n,r,t,l,i,o);var u=r.property.value;a.default.isEqual(a.default.get(o.component,u),a.default.get(n,u))||(e=!0);break;case"value":var s=o.getValue(),d=o.defineActionValue(r,{value:a.default.clone(s),data:i,row:l,component:n,result:t});a.default.isEqual(s,d)||o.component.clearOnHide&&!o.visible||(o.setValue(d),o.viewOnly&&(o.dataValue=d),e=!0);break;case"mergeComponentSchema":var p=o.evaluate(r.schemaDefinition,{value:a.default.clone(o.getValue()),data:i,row:l,component:n,result:t},"schema");a.default.assign(n,p),a.default.isEqual(o.component,n)||(e=!0);break;case"customAction":var g=o.getValue(),h=o.evaluate(r.customAction,{value:a.default.clone(g),data:i,row:l,input:g,component:n,result:t},"value");a.default.isEqual(g,h)||o.component.clearOnHide&&!o.visible||(o.setValue(h),o.viewOnly&&(o.dataValue=h),e=!0)}return e}),!1)}},{key:"addInputError",value:function(n,e,t){this.addMessages(n),this.setErrorClasses(t,e,!!n)}},{key:"removeInputError",value:function(n){this.setErrorClasses(n,!0,!1)}},{key:"addMessages",value:function(n){var e=this;n&&("string"==typeof n&&(n={messages:n,level:"error"}),Array.isArray(n)||(n=[n]),n=a.default.uniqBy(n,(function(n){return n.message})),this.refs.messageContainer&&this.setContent(this.refs.messageContainer,n.map((function(n){return n.message&&"string"==typeof n.message&&(n.message=n.message.replaceAll("<","<").replaceAll(">",">")),e.renderTemplate("message",n)})).join("")))}},{key:"setErrorClasses",value:function(n,e,t,l){var i=this,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.clearErrorClasses(),n.forEach((function(n){i.setElementInvalid(i.performInputMapping(n),!1)})),this.setInputWidgetErrorClasses(n,t),t&&(n.forEach((function(n){i.setElementInvalid(i.performInputMapping(n),!0)})),e&&this.options.highlightErrors?this.addClass(o,this.options.componentErrorClass):this.addClass(o,"has-error")),l&&this.addClass(o,"has-message")}},{key:"setElementInvalid",value:function(n,e){n&&(e?this.addClass(n,"is-invalid"):this.removeClass(n,"is-invalid"),n.setAttribute("aria-invalid",e?"true":"false"))}},{key:"clearOnHide",value:function(){this.rootPristine&&!this.options.server&&!(0,c.isInsideScopingComponent)(this)||!1===this.component.clearOnHide||this.options.readOnly||this.options.showHiddenFields||(this.visible?!this.hasValue()&&this.shouldAddDefaultValue&&this.setValue(this.defaultValue,{noUpdateEvent:!0}):this.deleteValue())}},{key:"triggerRootChange",value:function(){var n;if(this.options.onChange)(n=this.options).onChange.apply(n,arguments);else if(this.root){var e;(e=this.root).triggerChange.apply(e,arguments)}}},{key:"onChange",value:function(n,e){(n=n||{}).modified&&(n.noPristineChangeOnModified||(this.pristine=!1),this.addClass(this.getElement(),"formio-modified")),"blur"!==this.component.validateOn||this.errors.length||(n.noValidate=!0),this.component.onChange&&this.evaluate(this.component.onChange,{flags:n});var t={instance:this,component:this.component,value:this.dataValue,flags:n};this.emit("componentChange",t);var l=!1;return n.modified&&(l=!0,delete n.modified),e||this.triggerRootChange(n,t,l),t}},{key:"wysiwygDefault",get:function(){return{quill:{theme:"snow",placeholder:this.t(this.component.placeholder,{_userInput:!0}),modules:{toolbar:[[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],["bold","italic","underline","strike",{script:"sub"},{script:"super"},"clean"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["blockquote","code-block"],["link","image","video","formula","source"]]}},ace:{theme:"ace/theme/xcode",maxLines:12,minLines:12,tabSize:2,mode:"ace/mode/javascript",placeholder:this.t(this.component.placeholder,{_userInput:!0})},ckeditor:{image:{toolbar:["imageTextAlternative","|","imageStyle:full","imageStyle:alignLeft","imageStyle:alignCenter","imageStyle:alignRight"],styles:["full","alignLeft","alignCenter","alignRight"]},extraPlugins:[]},default:{}}}},{key:"addCKE",value:function(n,e,t){return(e=a.default.isEmpty(e)?{}:e).base64Upload=!this.component.isUploadEnabled,e.mediaEmbed={previewsInData:!0},e=a.default.merge(this.wysiwygDefault.ckeditor,a.default.get(this.options,"editors.ckeditor.settings",{}),e),this.component.isUploadEnabled&&e.extraPlugins.push((0,f.getFormioUploadAdapterPlugin)(this.fileService,this)),s.GlobalFormio.requireLibrary("ckeditor",L?"CKEDITOR":"ClassicEditor",a.default.get(this.options,"editors.ckeditor.src","".concat(s.GlobalFormio.cdn.ckeditor,"/ckeditor.js")),!0).then((function(){if(!n.parentNode)return o.default.reject();if(L){var l=CKEDITOR.replace(n);return l.on("change",(function(){return t(l.getData())})),o.default.resolve(l)}return ClassicEditor.create(n,e).then((function(n){return n.model.document.on("change",(function(){return t(n.data.get())})),n}))}))}},{key:"addQuill",value:function(n,e,t){var l=this;return e=a.default.isEmpty(e)?this.wysiwygDefault.quill:e,e=w(w({},e=a.default.merge(this.wysiwygDefault.quill,a.default.get(this.options,"editors.quill.settings",{}),e)),{},{modules:w({table:!0},e.modules)}),s.GlobalFormio.requireLibrary("quill-css-".concat(e.theme),"Quill",[{type:"styles",src:"".concat(s.GlobalFormio.cdn.quill,"/quill.").concat(e.theme,".css")}],!0),s.GlobalFormio.requireLibrary("quill","Quill",a.default.get(this.options,"editors.quill.src","".concat(s.GlobalFormio.cdn.quill,"/quill.min.js")),!0).then((function(){return s.GlobalFormio.requireLibrary("quill-table","Quill","".concat(s.GlobalFormio.cdn.baseUrl,"/quill/quill-table.js"),!0).then((function(){if(!n.parentNode)return o.default.reject();l.quill=new Quill(n,L?w(w({},e),{},{modules:{}}):e);var i=document.createElement("textarea");i.setAttribute("class","quill-source-code"),l.quill.addContainer("ql-custom").appendChild(i);var r=n.parentNode.querySelector(".ql-source");r&&l.addEventListener(r,"click",(function(n){n.preventDefault(),"inherit"===i.style.display&&l.quill.setContents(l.quill.clipboard.convert({html:i.value})),i.style.display="none"===i.style.display?"inherit":"none"})),l.addEventListener(n,"click",(function(){return l.quill.focus()}));for(var a=document.querySelectorAll(".ql-formats > button"),u=0;u1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasValue()){var t=this.dataValue||[];a.default.isArray(t)&&t.hasOwnProperty(n)&&(t.splice(n,1),this.dataValue=t,this.triggerChange(e))}}},{key:"unset",value:function(){a.default.unset(this._data,this.key)}},{key:"deleteValue",value:function(){this.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}},{key:"getCustomDefaultValue",value:function(n){return this.component.customDefaultValue&&!this.options.preview&&(n=this.evaluate(this.component.customDefaultValue,{value:""},"value")),n}},{key:"shouldAddDefaultValue",get:function(){return!this.options.noDefaults||this.component.defaultValue&&!this.isEmpty(this.component.defaultValue)||this.component.customDefaultValue}},{key:"defaultValue",get:function(){var n=this,e=this.emptyValue;this.component.defaultValue&&(e=this.component.defaultValue),e=this.getCustomDefaultValue(e);var t=function(e){if("string"==typeof e){var t=n.placeholderChar;e=(0,i.conformToMask)(e,n.defaultMask,{placeholderChar:t}).conformedValue,c.matchInputMask(e,n.defaultMask)||(e="")}else e="";return e};return this.defaultMask&&(e=Array.isArray(e)?e.map(t):t(e)),a.default.cloneDeep(e)}},{key:"getValue",value:function(){if(!this.hasInput||this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var n=[];for(var e in this.refs.input)if(this.refs.input.hasOwnProperty(e)){if(!this.component.multiple)return this.getValueAt(e);n.push(this.getValueAt(e))}return 0!==n.length||this.component.multiple?n:""}},{key:"getValueAt",value:function(n){var e=this.performInputMapping(this.refs.input[n]);return e?e.value:void 0}},{key:"setValue",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=this.updateValue(n,e);if(n=this.dataValue,!this.hasInput)return t;var l=Array.isArray(n),i=this.refs.fileLink||this.refs.input;if(l&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&i&&i.length!==n.length&&this.visible&&this.redraw(),this.isHtmlRenderMode()&&e&&e.fromSubmission&&t)return this.redraw(),t;for(var o in this.refs.input)this.refs.input.hasOwnProperty(o)&&this.setValueAt(o,l?n[o]:n,e);return t}},{key:"setValueAt",value:function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.noDefault||null!=e||this.component.multiple||(e=this.defaultValue);var l=this.performInputMapping(this.refs.input[n]),i=this.refs.valueMaskInput;null!=i&&i.mask&&i.mask.textMaskInputElement.update(e),l.mask?l.mask.textMaskInputElement.update(e):l.widget&&l.widget.setValue?l.widget.setValue(e):l.value=e}},{key:"hasSetValue",get:function(){return this.hasValue()&&!this.isEmpty(this.dataValue)}},{key:"setDefaultValue",value:function(){if(this.defaultValue&&this.shouldAddDefaultValue){var n=this.component.multiple&&!this.dataValue.length?[]:this.defaultValue;this.setValue(n,{noUpdateEvent:!0})}}},{key:"restoreValue",value:function(){this.hasSetValue?this.setValue(this.dataValue,{noUpdateEvent:!0}):this.setDefaultValue()}},{key:"normalizeValue",value:function(n){return this.component.multiple&&!Array.isArray(n)&&(n=n?[n]:[]),n}},{key:"updateComponentValue",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.resetValue||null!=n?n:this.getValue();t=this.normalizeValue(t,e);var l=this.dataValue,i=void 0!==t&&this.hasChanged(t,l);return i&&(this.dataValue=t,i=this.dataValue!==l,this.updateOnChange(e,i)),this.componentModal&&e&&e.fromSubmission&&this.componentModal.setValue(n),i}},{key:"updateValue",value:function(){return this.updateComponentValue.apply(this,arguments)}},{key:"getIcon",value:function(n,e,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"icon";return this.renderTemplate("icon",{className:this.iconClass(n),ref:l,styles:t,content:e})}},{key:"resetValue",value:function(){this.unset(),this.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}},{key:"hasChanged",value:function(n,e){return!(null==n&&(null==e||this.isEmpty(e))||(null==n||!this.allowData||this.hasValue())&&a.default.isEqual(n,e))}},{key:"updateOnChange",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(n.noUpdateEvent||!e||(this.triggerChange(n),0))}},{key:"convertNumberOrBoolToString",value:function(n){return"number"==typeof n||"boolean"==typeof n?n.toString():n}},{key:"doValueCalculation",value:function(n,e,t){var l;return this.evaluate(this.component.calculateValue,{value:n,data:e,row:t||this.data,submission:(null===(l=this.root)||void 0===l?void 0:l._submission)||{data:this.rootValue}},"value")}},{key:"calculateComponentValue",value:function(n,e,t){if(this.builderMode||a.default.isUndefined(a.default.get(this,"root.data")))return!1;var l=this.component.clearOnHide,i=!this.visible&&l,o=a.default.get(this.component,"allowCalculateOverride",!1);if(i)return this.hasOwnProperty("calculatedValue")&&o&&a.default.unset(this,"calculatedValue"),!1;if(this.options.readOnly&&!this.options.pdf&&!this.component.calculateValue||!this.component.calculateValue&&!this.component.calculateValueVariable||this.options.server&&!this.component.calculateServer||e.dataSourceInitialLoading&&o)return!1;var r=this.dataValue,u=this.doValueCalculation(r,n,t,e);if(this.options.readOnly&&r&&!u)return!1;a.default.isNil(u)&&(u=this.emptyValue);var s=!a.default.isEqual(r,u);if(o){var d=e.fromSubmission&&!0===this.component.persistent;if(this.isEmpty(r))this.calculationLocked=!1;else if(this.calculationLocked||d)return this.calculationLocked=!0,!1;var p=void 0===this.calculatedValue||e.resetValue;p&&(this.calculatedValue=null);var g=this.normalizeValue(this.convertNumberOrBoolToString(u)),h=this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue)),m=this.normalizeValue(this.convertNumberOrBoolToString(r)),f=!a.default.isEqual(h,g),b=!a.default.isEqual(m,h);if(f&&b&&!p)return!1;if(h&&b&&!f)return this.calculatedValue=null,!1;if(e.isReordered||!f)return!1;if(d)return this.calculatedValue=(0,c.fastCloneDeep)(u),!1;if(p&&!this.isEmpty(r)&&s&&f)return!0}return this.calculatedValue=(0,c.fastCloneDeep)(u),!!s&&(e.noPristineChangeOnModified||(this.pristine=!1),e.triggeredComponentId=this.id,this.setValue(u,e))}},{key:"calculateValue",value:function(n,e,t){return n=n||this.rootValue,e=e||{},t=t||this.data,this.calculateComponentValue(n,e,t)}},{key:"label",get:function(){return this.component.label},set:function(n){this.component.label=n,this.labelElement&&(this.labelElement.innerText=n)}},{key:"getRoot",value:function(){return this.root}},{key:"invalidMessage",value:function(n,e,t,l){return t||this.checkCondition(l,n)?this.invalid?this.invalid:!this.hasInput||!e&&this.pristine?"":a.default.map(d.default.checkComponent(this,n),"message").join("\n\n"):""}},{key:"isValid",value:function(n,e){return!this.invalidMessage(n,e)}},{key:"setComponentValidity",value:function(n,e,t){var l=!!n.filter((function(n){return"error"===n.level&&!n.fromServer})).length;return!n.length||t&&!this.error||this.isEmpty(this.defaultValue)&&!e&&this.pristine?t||this.setCustomValidity(""):this.setCustomValidity(n,e),!l}},{key:"checkComponentValidity",value:function(n,e,t){var l,i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=n||this.rootValue,t=t||this.data;var a=r.async,u=void 0!==a&&a,s=r.silentCheck,c=void 0!==s&&s;if(this.shouldSkipValidation(n,e,t))return this.setCustomValidity(""),!u||o.default.resolve(!0);var p=d.default.checkComponent(this,n,t,!0,u),g=p;return null!==(l=this.serverErrors)&&void 0!==l&&l.length&&(g=p.concat(this.serverErrors)),u?g.then((function(n){return i.setComponentValidity(n,e,c)})):this.setComponentValidity(g,e,c)}},{key:"checkValidity",value:function(n,e,t,l){n=n||this.rootValue,t=t||this.data;var i=this.checkComponentValidity(n,e,t,{silentCheck:l});return this.checkModal(),i}},{key:"checkAsyncValidity",value:function(n,e,t,l){return o.default.resolve(this.checkComponentValidity(n,e,t,{async:!0,silentCheck:l}))}},{key:"checkData",value:function(n,e,t){if(n=n||this.rootValue,e=e||{},t=t||this.data,this.resetCaches(),e.fromBlur||this.checkRefreshOn(e.changes,e),e.noCheck)return!0;if(this.checkComponentConditions(n,e,t),this.id!==e.triggeredComponentId&&this.calculateComponentValue(n,e,t),e.noValidate&&!e.validateOnInit&&!e.fromIframe)return e.fromSubmission&&this.rootPristine&&this.pristine&&this.error&&e.changed&&this.checkComponentValidity(n,!!this.options.alwaysDirty,t,!0),!0;var l=!1;if((this.options.alwaysDirty||e.dirty)&&(l=!0),e.fromSubmission&&this.hasValue(n)&&(l=!0),this.setDirty(l),"blur"===this.component.validateOn&&e.fromSubmission)return!0;var i=this.checkComponentValidity(n,l,t,e);return this.checkModal(),i}},{key:"checkModal",value:function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.component.modalEdit&&this.componentModal&&(e&&!n?this.setErrorClasses([this.refs.openModal],e,!n,!!this.errors.length,this.refs.openModalWrapper):this.clearErrorClasses(this.refs.openModalWrapper))}},{key:"validationValue",get:function(){return this.dataValue}},{key:"isEmpty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,e=!(!a.default.isArray(n)||1!==n.length)&&a.default.isEqual(n[0],this.emptyValue);return null==n||0===n.length||a.default.isEqual(n,this.emptyValue)||e}},{key:"isEqual",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(n)&&this.isEmpty(e)||a.default.isEqual(n,e)}},{key:"validateMultiple",value:function(){return!0}},{key:"errors",get:function(){return this.error?[this.error]:[]}},{key:"clearErrorClasses",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;this.removeClass(n,this.options.componentErrorClass),this.removeClass(n,"alert alert-danger"),this.removeClass(n,"has-error"),this.removeClass(n,"has-message")}},{key:"setInputWidgetErrorClasses",value:function(n,e){this.isInputComponent&&this.component.widget&&null!=n&&n.length&&n.forEach((function(n){null!=n&&n.widget&&n.widget.setErrorClasses&&n.widget.setErrorClasses(e)}))}},{key:"addFocusBlurEvents",value:function(n){var e=this;this.addEventListener(n,"focus",(function(){e.root.focusedComponent!==e?(e.root.pendingBlur&&e.root.pendingBlur(),e.root.focusedComponent=e,e.emit("focus",e)):e.root.focusedComponent===e&&e.root.pendingBlur&&(e.root.pendingBlur.cancel(),e.root.pendingBlur=null)})),this.addEventListener(n,"blur",(function(){e.root.pendingBlur=c.delay((function(){e.emit("blur",e),"blur"===e.component.validateOn&&e.root.triggerChange({fromBlur:!0},{instance:e,component:e.component,value:e.dataValue,flags:{fromBlur:!0}}),e.root.focusedComponent=null,e.root.pendingBlur=null}))}))}},{key:"setCustomValidity",value:function(n,e,t){var l=this,i=this.isInputComponent?this.refs.input||[]:null;"string"==typeof n&&n&&(n={level:"error",message:n}),Array.isArray(n)||(n=n?[n]:[]);var o=!!n.filter((function(n){return"error"===n.level})).length,r=i;if(this.component.multiple){var a=Array.from(i);a.forEach((function(n){l.setElementInvalid(l.performInputMapping(n),!1)})),this.setInputWidgetErrorClasses(a,!1),r=a.filter((function(e){var t,l;return null===(t=(l=n).some)||void 0===t?void 0:t.call(l,(function(n){var t;return(null==n||null===(t=n.context)||void 0===t?void 0:t.input)===e}))}))}n.length?(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.error={component:this.component,message:n[0].message,messages:n,external:!!t},this.emit("componentError",this.error),this.addMessages(n,e,r),r&&this.setErrorClasses(r,e,o,!!n.length)):(!this.error||this.error&&this.error.external===!!t)&&(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.refs.modalMessageContainer&&this.empty(this.refs.modalMessageContainer),this.error=null,r&&this.setErrorClasses(r,e,o,!!n.length),this.clearErrorClasses())}},{key:"isValueHidden",value:function(){return(!this.component.protected||!this.root.editing)&&!(!this.root||!this.root.hasOwnProperty("editing"))&&!(!this.root||!this.root.editing)&&(this.component.protected||!this.component.persistent||"client-only"===this.component.persistent)}},{key:"shouldSkipValidation",value:function(n,e,t){var l=this;return[function(){return l.options.readOnly},function(){return!l.hasInput},function(){return l.isValueHidden()},function(){return!l.visible},function(){return!l.checkCondition(t,n)}].some((function(n){return n()}))}},{key:"whenReady",value:function(){return console.warn("The whenReady() method has been deprecated. Please use the dataReady property instead."),this.dataReady}},{key:"dataReady",get:function(){return o.default.resolve()}},{key:"asString",value:function(n){return n=n||this.getValue(),(Array.isArray(n)?n:[n]).map(a.default.toString).join(", ")}},{key:"disabled",get:function(){return this._disabled||this.parentDisabled},set:function(n){this._disabled=n}},{key:"setDisabled",value:function(n,e){n&&(n.disabled=e,e?n.setAttribute("disabled","disabled"):n.removeAttribute("disabled"))}},{key:"setLoading",value:function(n,e){n&&n.loading!==e&&(n.loading=e,!n.loader&&e&&(n.loader=this.ce("i",{class:"".concat(this.iconClass("refresh",!0)," button-icon-right")})),n.loader&&(e?this.appendTo(n.loader,n):this.removeChildFrom(n.loader,n)))}},{key:"selectOptions",value:function(n,e,t,l){var i=this;a.default.each(t,(function(e){var t={value:e.value};void 0!==l&&e.value===l&&(t.selected="selected");var o=i.ce("option",t);o.appendChild(i.text(e.label)),n.appendChild(o)}))}},{key:"setSelectValue",value:function(n,e){var t=n.querySelectorAll("option");a.default.each(t,(function(n){n.value===e?n.setAttribute("selected","selected"):n.removeAttribute("selected")})),n.onchange&&n.onchange(),n.onselect&&n.onselect()}},{key:"getRelativePath",value:function(n){var e=".".concat(this.key),t=this.isInputComponent?this.path:this.path.slice(0).replace(e,"");return n.replace(t,"")}},{key:"clear",value:function(){this.detach(),this.empty(this.getElement())}},{key:"append",value:function(n){this.appendTo(n,this.element)}},{key:"prepend",value:function(n){this.prependTo(n,this.element)}},{key:"removeChild",value:function(n){this.removeChildFrom(n,this.element)}},{key:"detachLogic",value:function(){var n=this;this.logic.forEach((function(e){if("event"===e.trigger.type){var t=n.interpolate(e.trigger.event);n.off(t)}}))}},{key:"attachLogic",value:function(){var n=this;this.builderMode||this.logic.forEach((function(e){if("event"===e.trigger.type){var t=n.interpolate(e.trigger.event);n.on(t,(function(){for(var t=(0,c.fastCloneDeep)(n.originalComponent),l=arguments.length,i=new Array(l),o=0;o0&&void 0!==arguments[0]?arguments[0]:this.element;if(n){var e=n.getBoundingClientRect(),t=e.left,l=e.top;window.scrollTo(t+window.scrollX,l+window.scrollY)}}},{key:"focus",value:function(n){var e;if("beforeFocus"in this.parent&&this.parent.beforeFocus(this),null!==(e=this.refs.input)&&void 0!==e&&e.length){var t,l="number"==typeof n&&this.refs.input[n]?this.refs.input[n]:this.refs.input[this.refs.input.length-1];if("calendar"===(null===(t=this.component.widget)||void 0===t?void 0:t.type)){var i=l.nextSibling;i&&i.focus()}else l.focus()}this.refs.openModal&&this.refs.openModal.focus(),this.parent.refs.openModal&&this.parent.refs.openModal.focus()}},{key:"fileService",get:function(){if(this.options.fileService)return this.options.fileService;if(this.options.formio)return this.options.formio;if(this.root&&this.root.formio)return this.root.formio;var n=new s.GlobalFormio;return this.root&&this.root._form&&this.root._form._id&&(n.formUrl="".concat(n.projectUrl,"/form/").concat(this.root._form._id)),n}},{key:"resetCaches",value:function(){}},{key:"previewMode",get:function(){return!1}}])&&M(e.prototype,t),l&&M(e,l),Object.defineProperty(e,"prototype",{writable:!1}),v}(p.default);e.default=F,F.externalLibraries={},F.requireLibrary=function(n,e,t,l){if(!F.externalLibraries.hasOwnProperty(n)){F.externalLibraries[n]={},F.externalLibraries[n].ready=new o.default((function(e,t){F.externalLibraries[n].resolve=e,F.externalLibraries[n].reject=t}));var i="".concat(n,"Callback");l||window[i]||(window[i]=(function(){this.resolve()}).bind(F.externalLibraries[n]));var r=a.default.get(window,e);r?F.externalLibraries[n].resolve(r):((t=Array.isArray(t)?t:[t]).forEach((function(n){var e={},t="";switch("string"==typeof n&&(n={type:"script",src:n}),n.type){case"script":t="script",e={src:n.src,type:"text/javascript",defer:!0,async:!0};break;case"styles":t="link",e={href:n.src,rel:"stylesheet"}}var l=document.createElement(t);for(var i in e)l.setAttribute(i,e[i]);document.getElementsByTagName("head")[0].appendChild(l)})),l&&setTimeout((function t(){var l=a.default.get(window,e);l?F.externalLibraries[n].resolve(l):setTimeout(t,200)}),200))}return F.externalLibraries[n].ready},F.libraryReady=function(n){return F.externalLibraries.hasOwnProperty(n)&&F.externalLibraries[n].ready?F.externalLibraries[n].ready:o.default.reject("".concat(n," library was not required."))}},"3KsH":function(n,e,t){"use strict";t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l,i=(l=t("gpP3"))&&l.__esModule?l:{default:l};var o=[{type:"textarea",label:"Header Template",key:"templates.header",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the Lodash Template used to render the header of the Edit grid.",customConditional:function(n){var e=n.data;return(!i.default.noeval||i.default.protectedEval)&&!e.displayAsTable}},{type:"textarea",label:"Table Header Template",key:"templates.tableHeader",rows:6,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the Lodash Template used to render the header of the Edit grid.",customConditional:function(n){var e=n.data;return(!i.default.noeval||i.default.protectedEval)&&e.displayAsTable}},{type:"textarea",label:"Row Template",key:"templates.row",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the Lodash Template used to render each row of the Edit grid.",customConditional:function(n){var e=n.data;return(!i.default.noeval||i.default.protectedEval)&&!e.displayAsTable}},{type:"textarea",label:"Table Row Template",key:"templates.tableRow",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the Lodash Template used to render each row of the Edit grid.",customConditional:function(n){var e=n.data;return(!i.default.noeval||i.default.protectedEval)&&e.displayAsTable}},{type:"textarea",label:"Footer Template",key:"templates.footer",rows:5,editor:"ace",as:"handlebars",input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the Lodash Template used to render the footer of the Edit grid.",customConditional:function(){return!i.default.noeval||i.default.protectedEval}},{type:"textfield",input:!0,key:"rowClass",label:"Row CSS Class",placeholder:"Row CSS Class",tooltip:"CSS class to add to the edit row wrapper."},{type:"textfield",input:!0,key:"addAnother",label:"Add Another Text",placeholder:"Add Another",tooltip:"Set the text of the Add Another button."},{weight:70,type:"checkbox",label:"Display as Modal",tooltip:"Display a modal to add or edit entries in the table",key:"modal",input:!0},{type:"textfield",input:!0,key:"saveRow",label:"Save Row Text",placeholder:"Save",tooltip:"Set the text of the Save Row button."},{type:"textfield",input:!0,key:"removeRow",label:"Remove Row Text",placeholder:"Remove",tooltip:"Set the text of the remove Row button."}];e.default=o},"3L66":function(n,e,t){var l=t("MMmD"),i=t("ExA7");n.exports=function(n){return i(n)&&l(n)}},"3MOf":function(n,e,t){"use strict";var l=t("rpNk").IteratorPrototype,i=t("fHMY"),o=t("XGwC"),r=t("1E5z"),a=t("P4y1"),u=function(){return this};n.exports=function(n,e,t,s){var c=e+" Iterator";return n.prototype=i(l,{next:o(+!s,t)}),r(n,c,!1,!0),a[c]=u,n}},"3U0i":function(n,e,t){"use strict";function l(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}t.d(e,"a",(function(){return i})),l.prototype=Object.create(Error.prototype);var i=l},"3WF5":function(n,e,t){var l=t("eUgh"),i=t("ut/Y"),o=t("l9OW"),r=t("Z0cm");n.exports=function(n,e){return(r(n)?l:o)(n,i(e,3))}},"3Wpx":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t("owDf");e.default={form:l.default}},"3azA":function(n,e,t){var l=t("M96O"),i=t("z6cq");n.exports=function(n){return l.filter(i(n),(function(e){return e.length>1||1===e.length&&n.hasEdge(e[0],e[0])}))}},"3bBZ":function(n,e,t){"use strict";var l=t("2oRo"),i=t("/byt"),o=t("eFrH"),r=t("4mDm"),a=t("kRJp"),u=t("1E5z"),s=t("tiKp")("iterator"),c=r.values,d=function(n,e){if(n){if(n[s]!==c)try{a(n,s,c)}catch(l){n[s]=c}if(u(n,e,!0),i[e])for(var t in r)if(n[t]!==r[t])try{a(n,t,r[t])}catch(l){n[t]=r[t]}}};for(var p in i)d(l[p]&&l[p].prototype,p);d(o,"DOMTokenList")},"3duJ":function(n,e,t){"use strict";var l,i=this&&this.__extends||(l=function(n,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}l(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0});var o=t("imqj"),r=function(){};e.Point=r;var a=function(n,e,t,l){this.x1=n,this.y1=e,this.x2=t,this.y2=l};e.LineSegment=a;var u=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return i(e,n),e}(r);function s(n,e,t){return(e.x-n.x)*(t.y-n.y)-(t.x-n.x)*(e.y-n.y)}function c(n,e,t){return s(n,e,t)>0}function d(n,e,t){return s(n,e,t)<0}function p(n,e){var t,l,i,o,r=e.length-1;if(d(n,e[1],e[0])&&!c(n,e[r-1],e[0]))return 0;for(t=0,l=r;;){if(l-t==1)return c(n,e[t],e[l])?t:l;if((o=d(n,e[(i=Math.floor((t+l)/2))+1],e[i]))&&!c(n,e[i-1],e[i]))return i;c(n,e[t+1],e[t])?o||c(n,e[t],e[i])?l=i:t=i:o&&d(n,e[t],e[i])?l=i:t=i}}function g(n,e){var t,l,i,o,r=e.length-1;if(c(n,e[r-1],e[0])&&!d(n,e[1],e[0]))return 0;for(t=0,l=r;;){if(l-t==1)return d(n,e[t],e[l])?t:l;if(o=d(n,e[(i=Math.floor((t+l)/2))+1],e[i]),c(n,e[i-1],e[i])&&!o)return i;d(n,e[t+1],e[t])?o?d(n,e[t],e[i])?l=i:t=i:l=i:o?t=i:c(n,e[t],e[i])?l=i:t=i}}function h(n,e,t,l,i,o){var r,a;a=l(n[r=t(e[0],n)],e);for(var u=!1;!u;){for(u=!0;r===n.length-1&&(r=0),!i(e[a],n[r],n[r+1]);)++r;for(;0===a&&(a=e.length-1),!o(n[r],e[a],e[a-1]);)--a,u=!1}return{t1:r,t2:a}}function m(n,e){return h(n,e,p,g,c,d)}e.PolyPoint=u,e.isLeft=s,e.ConvexHull=function(n){var e,t=n.slice(0).sort((function(n,e){return n.x!==e.x?e.x-n.x:e.y-n.y})),l=n.length,i=t[0].x;for(e=1;e=0&&t[e].x===c;e--);for(a=e+1,e=o;++e<=a;)if(!(s(t[0],t[a],t[e])>=0&&e1&&!(s(r[r.length-2],r[r.length-1],t[e])>0);)r.length-=1;0!=e&&r.push(t[e])}u!=a&&r.push(t[u]);var d=r.length;for(e=a;--e>=o;)if(!(s(t[u],t[o],t[e])>=0&&e>o)){for(;r.length>d&&!(s(r[r.length-2],r[r.length-1],t[e])>0);)r.length-=1;0!=e&&r.push(t[e])}}return r},e.clockwiseRadialSweep=function(n,e,t){e.slice(0).sort((function(e,t){return Math.atan2(e.y-n.y,e.x-n.x)-Math.atan2(t.y-n.y,t.x-n.x)})).forEach(t)},e.tangent_PolyPolyC=h,e.LRtangent_PolyPolyC=function(n,e){var t=m(e,n);return{t1:t.t2,t2:t.t1}},e.RLtangent_PolyPolyC=m,e.LLtangent_PolyPolyC=function(n,e){return h(n,e,g,g,d,d)},e.RRtangent_PolyPolyC=function(n,e){return h(n,e,p,p,c,c)};var f=function(n,e){this.t1=n,this.t2=e};e.BiTangent=f;var b=function(){};e.BiTangents=b;var v=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return i(e,n),e}(r);e.TVGPoint=v;var y=function(n,e,t,l){this.id=n,this.polyid=e,this.polyvertid=t,this.p=l,l.vv=this};e.VisibilityVertex=y;var C=function(){function n(n,e){this.source=n,this.target=e}return n.prototype.length=function(){var n=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(n*n+e*e)},n}();e.VisibilityEdge=C;var w=function(){function n(n,e){if(this.P=n,this.V=[],this.E=[],e)this.V=e.V.slice(0),this.E=e.E.slice(0);else{for(var t=n.length,l=0;l0&&this.E.push(new C(i[o-1].vv,a))}i.length>1&&this.E.push(new C(i[0].vv,i[i.length-1].vv))}for(l=0;l0)return!0;return!1},n}();function A(n,e){for(var t=[],l=1,i=e.length;l=0&&m>=0&&v<0&&y>=0&&C>=0&&w<0?i.ll=new f(o,r):h<=0&&m<=0&&v>0&&y<=0&&C<=0&&w>0?i.rr=new f(o,r):h<=0&&m>0&&v<=0&&y>=0&&C<0&&w>=0?i.rl=new f(o,r):h>=0&&m<0&&v>=0&&y<=0&&C>0&&w<=0&&(i.lr=new f(o,r))}return i}function P(n,e){return!n.every((function(n){return!function(n,e){for(var t=1,l=e.length;t0)return!0}return!1}},"3fWJ":function(n,e,t){"use strict";function l(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}t.d(e,"a",(function(){return i})),l.prototype=Object.create(Error.prototype);var i=l},"3fes":function(n,e,t){"use strict";t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=[{key:"spellcheck",ignore:!0},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},"3hoe":function(n,e,t){"use strict";t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=[{label:"HTML Attributes",type:"datamap",input:!0,key:"attributes",keyLabel:"Attribute Name",valueComponent:{type:"textfield",key:"value",label:"Attribute Value",input:!0},tooltip:"Provide a map of HTML attributes for component's input element (attributes provided by other component settings or other attributes generated by form.io take precedence over attributes in this grid)",addAnother:"Add Attribute"},{type:"panel",legend:"PDF Overlay",title:"PDF Overlay",key:"overlay",tooltip:"The settings inside apply only to the PDF forms.",weight:2e3,collapsible:!0,collapsed:!0,components:[{type:"textfield",input:!0,key:"overlay.style",label:"Style",placeholder:"",tooltip:"Custom styles that should be applied to this component when rendered in PDF."},{type:"textfield",input:!0,key:"overlay.page",label:"Page",placeholder:"",tooltip:"The PDF page to place this component."},{type:"textfield",input:!0,key:"overlay.left",label:"Left",placeholder:"",tooltip:"The left margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.top",label:"Top",placeholder:"",tooltip:"The top margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.width",label:"Width",placeholder:"",tooltip:"The width of the component (in pixels)."},{type:"textfield",input:!0,key:"overlay.height",label:"Height",placeholder:"",tooltip:"The height of the component (in pixels)."}]}]},"3ipb":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t("idMQ");e.default={form:l.default}},"3qOy":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var e,t="";Array.prototype.join;return t+='
"))}))}},{key:"triggerRecaptcha",value:function(){if(this&&this.components){var n=(0,g.searchComponents)(this.components,{"component.type":"recaptcha","component.eventType":"formLoad"});n.length>0&&n[0].verify("".concat(this.form.name?this.form.name:"form","Load"))}}},{key:"nosubmit",get:function(){return this._nosubmit||!1},set:function(n){this._nosubmit=!!n,this.emit("nosubmit",this._nosubmit)}},{key:"conditions",get:function(){var n,e;return null!==(n=null===(e=this.schema.settings)||void 0===e?void 0:e.conditions)&&void 0!==n?n:[]}},{key:"variables",get:function(){var n,e;return null!==(n=null===(e=this.schema.settings)||void 0===e?void 0:e.variables)&&void 0!==n?n:[]}}])&&C(e.prototype,t),r&&C(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(p.default);e.default=T,T.setBaseUrl=s.GlobalFormio.setBaseUrl,T.setApiUrl=s.GlobalFormio.setApiUrl,T.setAppUrl=s.GlobalFormio.setAppUrl},"7fqy":function(n,e){n.exports=function(n){var e=-1,t=Array(n.size);return n.forEach((function(n,l){t[++e]=[l,n]})),t}},"7lQs":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){return"\n","\n"}},"7p4B":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){return'\n','\n'}},"7xO9":function(n,e,t){"use strict";t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var n=arguments.length,e=new Array(n),t=0;t=10?n:n+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?n+12:void 0},meridiem:function(n,e,t){return n<4?"\u0a30\u0a3e\u0a24":n<10?"\u0a38\u0a35\u0a47\u0a30":n<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":n<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(t("wd/R"))},"8/JR":function(n,e,t){"use strict";var l=t("8T9/"),i=t("Ibf7");n.exports=function(n,e){var t=e||{},o={};return void 0===n&&(n={}),n.on=function(e,t){return o[e]?o[e].push(t):o[e]=[t],n},n.once=function(e,t){return t._once=!0,n.on(e,t),n},n.off=function(e,t){var l=arguments.length;if(1===l)delete o[e];else if(0===l)o={};else{var i=o[e];if(!i)return n;i.splice(i.indexOf(t),1)}return n},n.emit=function(){var e=l(arguments);return n.emitterSnapshot(e.shift()).apply(this,e)},n.emitterSnapshot=function(e){var r=(o[e]||[]).slice(0);return function(){var o=l(arguments),a=this||n;if("error"===e&&!1!==t.throws&&!r.length)throw 1===o.length?o[0]:o;return r.forEach((function(l){t.async?i(l,o,a):l.apply(a,o),l._once&&n.off(e,l)})),n}},n}},"81LO":function(n,e,t){var l=t("b5wT"),i=t("tQ6r");function o(n,e,t){for(var i;e.length&&(i=l.last(e)).i<=t;)e.pop(),n.push(i.vs),t++;return t}n.exports=function(n,e){var t=i.partition(n,(function(n){return l.has(n,"barycenter")})),r=t.lhs,a=l.sortBy(t.rhs,(function(n){return-n.i})),u=[],s=0,c=0,d=0;r.sort((p=!!e,function(n,e){return n.barycentere.barycenter?1:p?e.i-n.i:n.i-e.i})),d=o(u,a,d),l.forEach(r,(function(n){d+=n.vs.length,u.push(n.vs),s+=n.barycenter*n.weight,c+=n.weight,d=o(u,a,d)}));var p;var g={vs:l.flatten(u,!0)};c&&(g.barycenter=s/c,g.weight=c);return g}},"81S3":function(n,e,t){"use strict";var l=t("0Dky"),i=t("tiKp"),o=t("g6v/"),r=t("xDBR"),a=i("iterator");n.exports=!l((function(){var n=new URL("b?a=1&b=2&c=3","http://a"),e=n.searchParams,t=new URLSearchParams("a=1&a=2&b=3"),l="";return n.pathname="c%20d",e.forEach((function(n,t){e.delete("b"),l+=t+n})),t.delete("a",2),t.delete("b",void 0),r&&(!n.toJSON||!t.has("a",1)||t.has("a",2)||!t.has("a",void 0)||t.has("b"))||!e.size&&(r||!o)||!e.sort||"http://a/c%20d?a=1&c=3"!==n.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==l||"x"!==new URL("http://x",void 0).host}))},"82Gu":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var e,t="";Array.prototype.join;return t+='\n"}},"82LE":function(n,e,t){"use strict";t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=[{key:"labelPosition",ignore:!0},{weight:15,type:"checkbox",label:"Hide Input Labels",tooltip:"Hide the labels of component inputs. This allows you to show the labels in the form builder, but not when it is rendered.",key:"hideInputLabels",input:!0},{type:"select",input:!0,key:"inputsLabelPosition",label:"Inputs Label Position",tooltip:"Position for the labels for inputs for this field.",weight:40,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{key:"placeholder",ignore:!0},{weight:213,type:"checkbox",label:"Use Locale Settings",tooltip:"Use locale settings to display day.",key:"useLocaleSettings",input:!0}]},"82ph":function(n,e,t){"use strict";var l=t("4zBA");n.exports=l([].slice)},"83RN":function(n,e,t){"use strict";t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=[{key:"validate.required",ignore:!0},{key:"validate.unique",ignore:!0},{weight:0,type:"checkbox",label:"Require Day",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.day.required",input:!0},{weight:10,type:"checkbox",label:"Require Month",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.month.required",input:!0},{weight:20,type:"checkbox",label:"Require Year",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.year.required",input:!0},{weight:40,type:"textfield",label:"Minimum Day",placeholder:"yyyy-MM-dd",tooltip:"A minimum date that can be set. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",key:"minDate",input:!0},{weight:30,type:"textfield",label:"Maximum Day",placeholder:"yyyy-MM-dd",tooltip:"A maximum day that can be set. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",key:"maxDate",input:!0}]},"846U":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t("ai4O");e.default={form:l.default}},"87QY":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var e,t="";return t+='
'+(null==(e=n.children)?"":e)+"
\n"}},"88Gu":function(n,e){var t=Date.now;n.exports=function(n){var e=0,l=0;return function(){var i=t(),o=16-(i-l);if(l=i,o>0){if(++e>=800)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}},"8Aq1":function(n,e,t){"use strict";var l;t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={form:((l=t("s8pA"))&&l.__esModule?l:{default:l}).default};e.default=i},"8AyJ":function(n,e,t){"use strict";t("I+eb")({target:"Number",stat:!0},{isFinite:t("4oU/")})},"8GHX":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t("oRM5");e.default={form:l.default}},"8GlL":function(n,e,t){"use strict";var l=t("We1y"),i=TypeError,o=function(n){var e,t;this.promise=new n((function(n,l){if(void 0!==e||void 0!==t)throw new i("Bad Promise constructor");e=n,t=l})),this.resolve=l(e),this.reject=l(t)};n.exports.f=function(n){return new o(n)}},"8KB7":function(n,e,t){"use strict";t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option.",key:"validate.onlyAvailableItems",input:!0}]},"8MA5":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var e,t="";Array.prototype.join;return t+='
\n"}},"8O7S":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var e,t="";Array.prototype.join;for(var l in t+="<"+(null==(e=n.input.type)?"":e)+'\n ref="button"\n class="ui button '+(null==(e=n.transform("theme",n.component.theme))?"":e)+" "+(null==(e=n.component.customClass)?"":e)+'"\n ',n.input.attr)t+="\n "+(null==(e=l)?"":e)+'="'+(null==(e=n.input.attr[l])?"":e)+'"\n ';return t+="\n>\n",n.component.leftIcon&&(t+=' '),t+="\n"+(null==(e=n.input.content)?"":e)+"\n",n.component.tooltip&&(t+='\n \n'),t+="\n",n.component.rightIcon&&(t+=' '),t+="\n"+(null==(e=n.input.type)?"":e)+'>\n
\n \n
\n'}},"8T9/":function(n,e){n.exports=function(n,e){return Array.prototype.slice.call(n,e)}},"8VeQ":function(n,e){},"8YOa":function(n,e,t){"use strict";var l=t("I+eb"),i=t("4zBA"),o=t("0BK2"),r=t("hh1v"),a=t("Gi26"),u=t("m/L8").f,s=t("JBy8"),c=t("BX/b"),d=t("T63f"),p=t("kOOl"),g=t("uy83"),h=!1,m=p("meta"),f=0,b=function(n){u(n,m,{value:{objectID:"O"+f++,weakData:{}}})},v=n.exports={enable:function(){v.enable=function(){},h=!0;var n=s.f,e=i([].splice),t={};t[m]=1,n(t).length&&(s.f=function(t){for(var l=n(t),i=0,o=l.length;iu||s>e[i].lim));o=i,i=l;for(;(i=n.parent(i))!==o;)a.push(i);return{path:r.concat(a.reverse()),lca:o}}(n,e,i.v,i.w),r=o.path,a=o.lca,u=0,s=r[u],c=!0;t!==i.w;){if(l=n.node(t),c){for(;(s=r[u])!==a&&n.node(s).maxRank',n.value?t+=null==(e=n.self.itemValueForHTMLMode(n.value))?"":e:t+="-",t+="\n"}},"8mBD":function(n,e,t){!function(n){"use strict";n.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(t("wd/R"))},"8qph":function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var e,t="";Array.prototype.join;return n.selected&&(t+=null==(e=n.t(n.option.label))?"":e),t+="\n"}},"8r76":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t("vEJ5");e.default={form:l.default}},"8s0q":function(n,e,t){"use strict";var l;t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={form:((l=t("s0kn"))&&l.__esModule?l:{default:l}).default};e.default=i},"8t0+":function(n,e,t){"use strict";t("eoL8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{type:"textfield",input:!0,key:"tag",weight:50,label:"HTML Tag",placeholder:"HTML Element Tag",tooltip:"The tag of this HTML element."},{type:"textfield",input:!0,key:"className",weight:60,label:"CSS Class",placeholder:"CSS Class",tooltip:"The CSS class for this HTML element."},{type:"datagrid",input:!0,label:"Attributes",key:"attrs",tooltip:"The attributes for this HTML element. Only safe attributes are allowed, such as src, href, and title.",weight:70,components:[{label:"Attribute",key:"attr",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textarea",input:!0,editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'
',"","",!0),{label:"Increase Characters Pool Size",description:"Set this to amount of characters that may be used in the password if there is a specific group of characters is used.\nE.g., if your validation checks if there is any numeric symbol in the password, then you should set it to 10 (there are 10 possible numbers).\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",key:"increaseCharactersPoolSize",type:"number",input:!0},{label:"Required",tooltip:"Check if this check is required to proceed",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},i.default.javaScriptValue("Is Valid","isValid","",1100,"
Example:
valid = entropy > maxEntropy / 2 ;
","","
entropy
Current entropy bits of the password.
level
Current strength level of the password.
",!0),{label:"Required",description:"Check this if you don't want to allow submitting password which does not correspond to the minimal strength requirements.",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1},{label:"Black List",tooltip:"Add words to search in the password. If there are some words from that list were found, the entropy of the password will be recalculated.\n",tableView:!0,multiple:!0,key:"blackList",type:"textfield",input:!0},i.default.javaScriptValue("Custom Blacklisted Words","customBlackListedWords","",1100,"
","","",!0),{label:"Disable Blacklisted Words",tooltip:"Check if you want to disable submitting passwords containing words form the clack list",tableView:!1,key:"disableBlacklistedWords",type:"checkbox",input:!0,defaultValue:!1},{label:"Location",hideLabel:!1,tableView:!1,key:"location",type:"container",input:!0,components:[{label:"Insert",tooltip:"Specifies where the indicator will be inserted: before or aftre an element",tableView:!0,data:{values:[{label:"Before",value:"before"},{label:"After",value:"after"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"insert",type:"select",indexeddb:{filter:{}},input:!0},{label:"Selector",placeholder:"[ref='element']",description:"Specifies the selector of the element which will be used as a reference to insert the indicator template",tableView:!0,key:"selector",type:"textfield",input:!0}]},{label:"Template",editor:"ace",tableView:!0,key:"template",type:"textarea",input:!0,as:"html"}];e.default=o},CXJR:function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){return'\n','\n'}},CZoQ:function(n,e){n.exports=function(n,e,t){for(var l=t-1,i=n.length;++l\n \n