PageSourceSearch

https://gov.st/_next/static/chunks/formiojs-vendor.4a64aef58cc10c6b.js

js gov.st collected 2026-10-02 10:07:29 UTC 1,626,309 bytes, 1 lines download raw bytes

vendor: 4,619 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7522],{58006:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(88087);n.default={framework:"bootstrap3",templates:o.default}},66156:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<div\n  ",e.attrs)r+="\n    "+(null==(n=o)?"":n)+'="'+(null==(n=e.attrs[o])?"":n)+'"\n  ';return r+("\n>"+(null==(n=e.message)?"":n))+"</div>\n"}},1616:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(66156);n.default={form:o.default}},89567:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(n=e.sidebar)?"":n)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n    '+(null==(n=e.form)?"":n)+"\n  </div>\n</div>\n"}},17839:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(89567);n.default={form:o.default}},7712:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="builder-component" ref="dragComponent">\n  ',e.disableBuilderActions||(r+='\n    <div class="component-btn-group" data-noattach="true">\n      <div class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove" ref="removeComponent">\n        <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-copy" ref="copyComponent">\n        <i class="'+(null==(n=e.iconClass("copy"))?"":n)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-paste" ref="pasteComponent">\n        <i class="'+(null==(n=e.iconClass("save"))?"":n)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" ref="editJson">\n        <i class="'+(null==(n=e.iconClass("wrench"))?"":n)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-move" ref="moveComponent">\n        <i class="'+(null==(n=e.iconClass("move"))?"":n)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-edit", ref="editComponent">\n        <i class="'+(null==(n=e.iconClass("cog"))?"":n)+'"></i>\n      </div>\n    </div>\n  '),r+="\n  "+(null==(n=e.html)?"":n)+"\n</div>\n"}},65691:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(7712);n.default={form:o.default}},16868:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="builder-components drag-container formio-builder-'+(null==(n=e.type)?"":n)+'" ref="'+(null==(n=e.key)?"":n)+'-container">\n  '+(null==(n=e.html)?"":n)+"\n</div>\n"}},24053:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(16868);n.default={form:o.default}},61460:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n  <div class="col col-sm-6">\n    <p class="lead">'+(null==(n=e.t(e.componentInfo.title,{_userInput:!0}))?"":n)+" "+(null==(n=e.t("Component"))?"":n)+"</p>\n  </div>\n  ",e.helplinks&&(r+='\n  <div class="col col-sm-6">\n    <div class="pull-right" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(n=e.t(e.helplinks+e.componentInfo.documentation))?"":n)+'" target="_blank">\n        <i class="'+(null==(n=e.iconClass("new-window"))?"":n)+'"> '+(null==(n=e.t("Help"))?"":n)+"</i>\n      </a>\n    </div>\n  </div>\n"),r+='\n</div>\n<div class="row component-edit-content">\n  <div class="col component-edit-tabs ',e.preview?r+="col-sm-6":r+="col-sm-12",r+='">\n    <div class="editForm" ref="editForm">\n      '+(null==(n=e.editForm)?"":n)+"\n    </div>\n    ",e.preview||(r+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n      <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n    </div>\n    "),r+="\n  </div>
1\n  ",e.preview&&(r+='\n  <div class="col col-sm-6">\n    <div class="panel panel-default preview-panel">\n      <div class="panel-heading">\n        <h3 class="panel-title">'+(null==(n=e.t("Preview"))?"":n)+'</h3>\n      </div>\n      <div class="panel-body">\n        <div class="component-preview" ref="preview">\n          '+(null==(n=e.preview)?"":n)+"\n        </div>\n      </div>\n    </div>\n    ",e.componentInfo.help&&(r+='\n    <div class="well formio-settings-help">\n      '+(null==(n=e.componentInfo.help)?"":n)+"\n    </div>\n    "),r+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n      <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n    </div>\n  </div>\n  "),r+="\n</div>\n"}},79713:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(61460);n.default={form:o.default}},15997:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div\n  class="alert alert-info no-drag"\n  style="text-align:center; margin-bottom: 5px;"\n  role="alert"\n  data-noattach="true"\n  data-position="'+(null==(n=e.position)?"":n)+'"\n>\n  '+(null==(n=e.t("Drag and Drop a form component"))?"":n)+"\n</div>\n"}},47264:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(15997);n.default={form:o.default}},14969:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="builder-sidebar'+(n=e.scrollEnabled?" builder-sidebar_scroll":"")+'" ref="sidebar">\n  <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n  <div id="'+(null==(n=e.groupId)?"":n)+'" class="panel-group" ref="sidebar-groups">\n    ',e.groups.forEach(function(e){r+="\n      "+(null==(n=e)?"":n)+"\n    "}),r+="\n  </div>\n</div>\n"}},42136:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(14969);n.default={form:o.default}},21451:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="panel panel-default form-builder-panel" ref="group-panel-'+(null==(n=e.groupKey)?"":n)+'">\n  <div class="panel-heading form-builder-group-header">\n    <h5 class="panel-title">\n      <button\n        class="btn btn-block builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(n=e.groupKey)?"":n)+'"\n        data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n        href="#group-'+(null==(n=e.groupKey)?"":n)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(n=e.t(e.group.title,{_userInput:!0}))?"":n)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(n=e.groupKey)?"":n)+'"\n    class="panel-collapse collapse'+(n=e.group.default?" in":"")+'"\n    data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n    data-default="'+(null==(n=e.group.default)?"":n)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(n=e.groupKey)?"":n)+'" class="panel-body no-drop" ref="sidebar-container">\n      ',e.group.componentOrder.length||e.subgroups.length?(r+="\n        ",e.group.componentOrder.forEach(function(o){r+='\n          <span\n            data-group="'+(null==(n=e.groupKey)?"":n)+'"\n            data-key="'+(null==(n=e.group.components[o].key)?"":n)+'"\n            data-type="'+(null==(n=e.group.components[o].schema.type)?"":n)+'"\n            class="btn btn-primary btn-xs btn-block formcomponent drag-copy"\n          >\n            ',e.group.components[o].icon&&(r+='\n              <i class="'+(null==(n=e.iconClass(e.group.components[o].icon))?"":n)+'" style="margin-right: 5px;"></i>\n            '),r+="\n            "+(null==(n=e.t(e.group.components[o].title,{_userInput:!0}))?"":n)+"\n          </span>\n        "}),r+="\n        "+(null==(n=e.subgroups.join(""))?"":n)+"\n      "):r+="\n        <div>"+(null==(n=e.t("No Matches Found"))?"":n)+"</div>
1\n      ",r+="\n    </div>\n  </div>\n</div>\n\n"}},60618:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(21451);n.default={form:o.default}},36794:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.component.columns.forEach(function(o,i){r+='\n<div class="col\n    col-'+(null==(n=o.size)?"":n)+"-"+(null==(n=o.width)?"":n)+"\n    col-"+(null==(n=o.size)?"":n)+"-offset-"+(null==(n=o.offset)?"":n)+"\n    col-"+(null==(n=o.size)?"":n)+"-push-"+(null==(n=o.push)?"":n)+"\n    col-"+(null==(n=o.size)?"":n)+"-pull-"+(null==(n=o.pull)?"":n)+'\n  " ref="'+(null==(n=e.columnKey)?"":n)+'">\n  '+(null==(n=e.columnComponents[i])?"":n)+"\n</div>\n"}),r+="\n"}},77142:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(36794);n.default={form:o.default}},27855:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={"formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active"}},12512:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-condensed":"")+'\n    " ',e.component.layoutFixed&&(r+='style="table-layout: fixed;"'),r+=">\n  ",e.hasHeader&&(r+="\n  <thead>\n    <tr>\n      ",e.component.reorder&&(r+="<th></th>"),r+="\n      ",e.columns.forEach(function(o){r+='\n        <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n          '+(null==(n=o.hideLabel?"":e.t(o.label||o.title,{_userInput:!0}))?"":n)+"\n          ",o.tooltip&&(r+=' <i ref="tooltip" data-title="'+(null==(n=o.tooltip)?"":n)+'" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n        </th>\n      "}),r+="\n      ",e.hasExtraColumn&&(r+="\n      <th>\n        ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(r+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n        </button>\n        "),r+="\n      </th>\n      "),r+="\n    </tr>\n  </thead>\n  "),r+='\n  <tbody ref="'+(null==(n=e.datagridKey)?"":n)+'-tbody" data-key="'+(null==(n=e.datagridKey)?"":n)+'">\n    ',e.rows.forEach(function(o,i){r+="\n    ",e.hasGroups&&e.groups[i]&&(r+='\n    <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-group-header" class="datagrid-group-header'+(n=e.hasToggle?" clickable":"")+'">\n      <td\n        ref="'+(null==(n=e.datagridKey)?"":n)+'-group-label"\n        colspan="'+(null==(n=e.numColumns)?"":n)+'"\n        class="datagrid-group-label">'+(null==(n=e.groups[i].label)?"":n)+"</td>\n    </tr>\n    "),r+='\n    <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-row">\n      ',e.component.reorder&&(r+='\n        <td class="col-md-1">\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(n=e.datagridKey)?"":n)+'"></button>\n        </td>\n      '),r+="\n      ",e.columns.forEach(function(i){r+='\n        <td ref="'+(null==(n=e.datagridKey)?"":n)+'">\n          '+(null==(n=o[i.key])?"":n)+"\n        </td>\n      "}),r+="\n      ",e.hasExtraColumn&&(r+="\n        ",e.hasRemoveButtons&&(r+='\n        <td class="col-md-1">\n          <button type="button" class="btn btn-default formio-button-remove-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-removeRow">\n            <i class="'+(null==(n=e.iconClass("remove-circle"))?"":n)+'"></i>\n          </button>\n        </td>\n        '),r+="\n        ",e.canAddColumn&&(r+='\n        <td ref="'+(null==(n=e.key)?"":n)+'-container" class="col-md-3">\n          '+(null==(n=e.placeholder)?"":n)+"\n        </td>\n        "),r+="\n      "),r+="\n    </tr>\n    "}),r+="\n  </tbody>
1\n  ",e.hasAddButton&&e.hasBottomSubmit&&(r+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(n=e.component.layoutFixed?e.numColumns:e.numColumns+1)?"":n)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),r+="\n</table>\n"}},2993:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n    '+(n=component.striped?"table-striped":"")+"\n    "+(n=component.hover?"table-hover":"")+"\n    "+(n=component.condensed?"table-condensed":"")+'\n    ">\n  ',hasHeader&&(r+="\n  <thead>\n    <tr>\n      ",columns.forEach(function(e){r+='\n        <th class="'+(n=e.validate&&e.validate.required?"field-required":"")+'">\n          '+(null==(n=e.hideLabel?"":t(e.label||e.title))?"":n)+"\n          ",e.tooltip&&(r+=' <i ref="tooltip" data-title="'+(null==(n=e.tooltip)?"":n)+'" class="'+(null==(n=iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.tooltip)?"":n)+'"></i>'),r+="\n        </th>\n      "}),r+="\n    </tr>\n  </thead>\n  "),r+="\n  <tbody>\n    ",rows.forEach(function(e){r+="\n    <tr>\n      ",columns.forEach(function(o){r+='\n        <td ref="'+(null==(n=datagridKey)?"":n)+'">\n          '+(null==(n=e[o.key])?"":n)+"\n        </td>\n      "}),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},47522:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(12512),i=r(2993);n.default={form:o.default,html:i.default}},34301:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n  ',e.dayFirst&&e.showDay&&(r+='\n  <div class="form-group col col-xs-3">\n    ',e.component.hideInputLabels||(r+='\n    <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="',e.component.fields.day.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Day"))?"":n)+"</label>\n    "),r+="\n    <div>"+(null==(n=e.day)?"":n)+"</div>\n  </div>\n  "),r+="\n  ",e.showMonth&&(r+='\n  <div class="form-group col col-xs-4">\n    ',e.component.hideInputLabels||(r+='\n    <label for="'+(null==(n=e.component.key)?"":n)+'-month" class="',e.component.fields.month.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Month"))?"":n)+"</label>\n    "),r+="\n    <div>"+(null==(n=e.month)?"":n)+"</div>\n  </div>\n  "),r+="\n  ",!e.dayFirst&&e.showDay&&(r+='\n  <div class="form-group col col-xs-3">\n    ',e.component.hideInputLabels||(r+='\n    <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="',e.component.fields.day.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Day"))?"":n)+"</label>\n    "),r+="\n    <div>"+(null==(n=e.day)?"":n)+"</div>\n  </div>\n  "),r+="\n  ",e.showYear&&(r+='\n  <div class="form-group col col-xs-5">\n    ',e.component.hideInputLabels||(r+='\n    <label for="'+(null==(n=e.component.key)?"":n)+'-year" class="',e.component.fields.year.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Year"))?"":n)+"</label>\n    "),r+="\n    <div>"+(null==(n=e.year)?"":n)+"</div>\n  </div>\n  "),r+='\n</div>\n<input name="data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},56746:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(34301);n.default={form:o.default}},61645:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n  <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n  <div class="formio-dialog-content" ref="dialogContents">\n    <div ref="dialogContents"></div>\n    <button class="formio-dialog-close pull-right btn btn-default btn-xs" aria-label="close" ref="dialogClose"></button>\n  </div>\n</div>\n'}},59656:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(61645);n.default={form:o.default}},56921:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="editgrid-listgroup list-group\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.bordered?"table-bordered":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-condensed":"")+'\n    ">
1\n  ',e.header&&(r+='\n  <li class="list-group-item list-group-header">\n    '+(null==(n=e.header)?"":n)+"\n  </li>\n  "),r+="\n  ",e.rows.forEach(function(o,i){r+='\n  <li class="list-group-item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n    '+(null==(n=o)?"":n)+"\n    ",e.openRows[i]&&!e.readOnly&&(r+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n      ",e.component.removeRow&&(r+='\n      <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n      "),r+="\n    </div>\n    "),r+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(n=e.errors[i])?"":n)+"\n      </div>\n    </div>\n  </li>\n  "}),r+="\n  ",e.footer&&(r+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(n=e.footer)?"":n)+"\n  </li>\n  "),r+="\n</ul>\n",!e.readOnly&&e.hasAddButton&&(r+='\n<button class="btn btn-primary formio-button-add-another" ref="'+(null==(n=e.ref.addRow)?"":n)+'">\n  <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n</button>\n"),r+="\n"}},6591:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="editgrid-listgroup list-group\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.bordered?"table-bordered":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-sm":"")+'\n    ">\n  ',e.header&&(r+='\n  <li class="list-group-item list-group-header">\n    '+(null==(n=e.header)?"":n)+"\n  </li>\n  "),r+="\n  ",e.rows.forEach(function(o,i){r+='\n  <li class="list-group-item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n    '+(null==(n=o)?"":n)+"\n    ",e.openRows[i]&&!e.readOnly&&(r+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n      ",e.component.removeRow&&(r+='\n      <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n      "),r+="\n    </div>\n    "),r+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(n=e.errors[i])?"":n)+"\n      </div>\n    </div>\n  </li>\n  "}),r+="\n  ",e.footer&&(r+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(n=e.footer)?"":n)+"\n  </li>\n  "),r+="\n</ul>\n"}},63650:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(56921),i=r(6591);n.default={form:o.default,html:i.default}},27231:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+="<p>"+(null==(n=e.t("error"))?"":n)+"</p>\n<ul>\n  ",e.errors.forEach(function(o){r+='\n    <li\n      data-component-key = "'+(null==(n=o.keyOrPath)?"":n)+'"\n      aria-label = "'+(null==(n=o.message)?"":n)+". "+(null==(n=e.t("errorsListNavigationMessage"))?"":n)+'"\n      ref = "errorRef"\n      tabIndex = "0",\n      style = "cursor:pointer;"\n    ><span>'+(null==(n=o.message)?"":n)+"</span></li>\n  "}),r+="\n</ul>\n"}},63194:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(27231);n.default={form:o.default}},34828:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="field-wrapper\n  '+(n=e.isRightPosition?"field-wrapper--reverse":"")+'">\n  ',e.label.hidden||(r+='\n    <div class="field-label\n      '+(n=e.isRightAlign?"field-label--right":"")+'"\n      style="'+(null==(n=e.labelStyles)?"":n)+'">\n    '+(null==(n=e.labelMarkup)?"":n)+"\n    </div>\n  "),r+="\n\n  ",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n    <div class="field-label\n      '+(n=e.isRightAlign?"field-label--right":"")+'"\n      style="'+(null==(n=e.labelStyles)?"":n)+'">\n      <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n    </div>\n  '),r+='\n\n  <div class="filed-content" style="'+(null==(n=e.contentStyles)?"":n)+'">
1\n    '+(null==(n=e.element)?"":n)+"\n  </div>\n</div>\n\n",e.component.description&&(r+='\n  <div class="form-text text-muted">'+(null==(n=e.t(e.component.description,{_userInput:!0}))?"":n)+"</div>\n"),r+="\n"}},62742:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(r+="\n  "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n  <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n'),r+="\n\n"+(null==(n=e.element)?"":n)+"\n",e.label.hidden||"bottom"!==e.label.labelPosition||(r+="\n  "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n",e.component.description&&(r+='\n  <div class="help-block">'+(null==(n=e.t(e.component.description,{_userInput:!0}))?"":n)+"</div>\n"),r+="\n"}},63938:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(34828),i=r(62742);n.default={align:o.default,form:i.default}},97974:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.self.imageUpload?(r+="\n  <div>\n    ",e.files.forEach(function(o){r+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(n=o.originalName||o.name)?"":n)+'" style="width:'+(null==(n=e.component.imageSize)?"":n)+'px">\n          ',e.disabled||(r+='\n            <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i>\n          '),r+="\n        </span>\n      </div>\n    "}),r+="\n  </div>\n"):(r+='\n  <ul class="list-group list-group-striped">\n    <li class="list-group-item list-group-header hidden-xs hidden-sm">\n      <div class="row">\n        ',e.disabled||(r+='\n          <div class="col-md-1"></div>\n        '),r+='\n        <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='"><strong>'+(null==(n=e.t("File Name"))?"":n)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(n=e.t("Size"))?"":n)+"</strong></div>\n        ",e.self.hasTypes&&(r+='\n          <div class="col-md-2"><strong>'+(null==(n=e.t("Type"))?"":n)+"</strong></div>\n        "),r+="\n      </div>\n    </li>\n    ",e.files.forEach(function(o){r+='\n      <li class="list-group-item">\n        <div class="row">\n          ',e.disabled||(r+='\n            <div class="col-md-1"><i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i></div>\n          '),r+='\n          <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='">\n            ',e.component.uploadOnly?r+="\n              "+(null==(n=o.originalName||o.name)?"":n)+"\n            ":r+='\n              <a href="'+(null==(n=o.url||"#")?"":n)+'" target="_blank" ref="fileLink">'+(null==(n=o.originalName||o.name)?"":n)+"</a>\n            ",r+='\n          </div>\n          <div class="col-md-2">'+(null==(n=e.fileSize(o.size))?"":n)+"</div>\n          ",e.self.hasTypes&&!e.disabled&&(r+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType" >\n                ',e.component.fileTypes.map(function(e){r+='\n                  <option class="test" value="'+(null==(n=e.value)?"":n)+'" ',e.label===o.fileType&&(r+='selected="selected"'),r+=">"+(null==(n=e.label)?"":n)+"</option>\n                "}),r+="\n              </select>\n            </div>\n          "),r+="\n          ",e.self.hasTypes&&e.disabled&&(r+='\n          <div class="col-md-2">'+(null==(n=o.fileType)?"":n)+"</div>\n          "),r+="\n        </div>\n      </li>\n    "}),r+="\n  </ul>\n"),r+="\n",e.disabled||!e.component.multiple&&e.files.length||(r+="\n  ",e.self.useWebViewCamera?r+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(n=e.t("Gallery"))?"":n)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Camera"))?"":n)+"</button>\n    </div>\n  ":e.self.cameraMode?r+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Take Picture"))?"":n)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(n=e.t("Switch to file upload"))?"":n)+"</button>\n  ":(r+='\n    <div class="fileSelector" ref="fileDrop" '+(n=e.fileDropHidden?"hidden":"")+'>\n      <i class="'+(null==(n=e.iconClass("cloud-upload"))?"":n)+'"></i> '+(null==(n=e.t("Drop files to attach,"))?"":n)+"\n        ",e.self.imageUpload&&e.component.webcam&&(r+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(n=e.t("Use Camera,"))?"":n)+"</a>\n        "),r+="\n        "+(null==(n=e.t("or"))?"":n)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(n=e.t("browse"))?"":n)+"</a>\n    </div>
1\n  "),r+="\n"),r+="\n",e.statuses.forEach(function(o){r+='\n  <div class="file '+(n="error"===e.statuses.status?" has-error":"")+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(n=o.originalName)?"":n)+' <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="fileStatusRemove"></i></div>\n      <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(n=e.fileSize(o.size))?"":n)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',"progress"===o.status?r+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(n=o.progress)?"":n)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(n=o.progress)?"":n)+'%">\n              <span class="sr-only">'+(null==(n=o.progress)?"":n)+"% "+(null==(n=e.t("Complete"))?"":n)+"</span>\n            </div>\n          </div>\n        ":"error"===o.status?r+='\n          <div class="alert alert-danger bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n        ":r+='\n          <div class="bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n        ",r+="\n      </div>\n    </div>\n  </div>\n"}),r+="\n",(!e.component.storage||e.support.hasWarning)&&(r+='\n  <div class="alert alert-warning">\n    ',e.component.storage||(r+="\n      <p>"+(null==(n=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":n)+"</p>\n    "),r+="\n    ",e.support.filereader||(r+="\n      <p>"+(null==(n=e.t("File API & FileReader API not supported."))?"":n)+"</p>\n    "),r+="\n    ",e.support.formdata||(r+="\n      <p>"+(null==(n=e.t("XHR2's FormData is not supported."))?"":n)+"</p>\n    "),r+="\n    ",e.support.progress||(r+="\n      <p>"+(null==(n=e.t("XHR2's upload progress isn't supported."))?"":n)+"</p>\n    "),r+="\n  </div>\n"),r}},65253:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(97974);n.default={form:o.default}},41084:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<i ref="'+(null==(n=e.ref)?"":n)+'" class="'+(null==(n=e.className)?"":n)+'" style="'+(null==(n=e.styles)?"":n)+'">'+(null==(n=e.content)?"":n)+"</i>\n"}},39718:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(41084);n.default={form:o.default}},11319:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,r){if("fa"===e)switch(n){case"save":n="download";break;case"zoom-in":n="search-plus";break;case"zoom-out":n="search-minus";break;case"question-sign":n="question-circle";break;case"remove-circle":n="times-circle-o";break;case"new-window":n="window-restore";break;case"move":n="arrows"}return r?e+" "+e+"-"+n+" "+e+"-spin":e+" "+e+"-"+n}},46006:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(50625),i=r(17839),a=r(65691),l=r(24053),s=r(79713),u=r(47264),c=r(42136),f=r(60618),d=r(77142),p=r(27855),h=r(47522),y=r(56746),m=r(59656),v=r(63650),b=r(63938),g=r(65253),w=r(39718),k=r(11319),O=r(1894),P=r(44144),j=r(46314),_=r(53860),S=r(12614),C=r(60645),E=r(66958),x=r(41191),R=r(45408),M=r(73442),T=r(54556),A=r(22807),D=r(84736),V=r(76232),I=r(15803),L=r(11175),N=r(42306),F=r(56425),B=r(67254),z=r(51525),U=r(1616),q=r(63194);n.default={transform:function(e,n){return n&&"class"===e&&this.cssClasses.hasOwnProperty(n.toString())?this.cssClasses[n.toString()]:n},handleBuilderSidebarScroll:function(e){e.scrollResizeObserver&&e.scrollResizeObserver.disconnect(),e.scrollResizeObserver=new o.default(function(){setTimeout(function(){var n=e.refs,r=n.form,o=n.sidebar,i=r&&r.parentNode&&r.parentNode.clientHeight,a=o&&o.clientHeight,l=o&&o.parentNode&&o.parentNode.style;l&&i&&a&&(l.height=Math.max(a+20,i)+"px")})}),e.scrollResizeObserver.observe(e.refs.form),e.scrollResizeObserver.observe(e.refs.sidebar)},clearBuilderSidebarScroll:function(e){e.scrollResizeObserver&&(e.scrollResizeObserver.disconnect(),e.scrollResizeObserver=null)}
vendor: 4,156 bytes, line 1
1,defaultIconset:"glyphicon",iconClass:k.default,cssClasses:p.default,builder:i.default,builderComponent:a.default,builderComponents:l.default,builderEditForm:s.default,builderPlaceholder:u.default,builderSidebar:c.default,builderSidebarGroup:f.default,columns:d.default,datagrid:h.default,day:y.default,dialog:m.default,editgrid:v.default,field:b.default,file:g.default,icon:w.default,input:O.default,label:P.default,message:j.default,modaldialog:_.default,modaledit:S.default,multiValueRow:C.default,multiValueTable:E.default,panel:x.default,radio:R.default,resourceAdd:M.default,signature:T.default,survey:A.default,tab:D.default,table:V.default,well:I.default,wizard:L.default,wizardHeader:N.default,wizardHeaderClassic:F.default,wizardHeaderVertical:B.default,wizardNav:z.default,errorsList:q.default,alert:U.default}},45225:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";if(Array.prototype.join,(e.prefix||e.suffix)&&(r+='\n<div class="input-group">\n  '),r+="\n  ",e.prefix&&(r+='\n    <div class="input-group-addon" ref="prefix">\n      ',e.prefix instanceof HTMLElement?r+="\n        "+(null==(n=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":n)+"\n      ":r+="\n        "+(null==(n=e.t(e.prefix,{_userInput:!0}))?"":n)+"\n      ",r+="\n    </div>\n  "),r+="\n  ",!e.component.editor&&!e.component.wysiwyg){for(var o in r+="\n    <"+(null==(n=e.input.type)?"":n)+'\n      ref="'+(null==(n=e.input.ref?e.input.ref:"input")?"":n)+'"\n      ',e.input.attr)r+="\n        "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n      ';r+='\n      id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n    >'+(null==(n=e.input.content)?"":n)+"</"+(null==(n=e.input.type)?"":n)+">\n    ",e.hasValueMaskInput&&(r+='\n      <input ref="valueMaskInput" />\n    '),r+="\n"}return r+="\n",(e.component.editor||e.component.wysiwyg)&&(r+='\n  <div ref="input"></div>\n'),r+="\n",e.suffix&&(r+='\n  <div class="input-group-addon" ref="suffix">\n    ',e.suffix instanceof HTMLElement?r+="\n      "+(null==(n=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":n)+"\n    ":r+="\n      "+(null==(n=e.t(e.suffix,{_userInput:!0}))?"":n)+"\n    ",r+="\n  </div>\n"),r+="\n",(e.prefix||e.suffix)&&(r+="\n  </div>\n"),r+="\n",e.component.showCharCount&&(r+='\n<span class="text-muted pull-right" ref="charcount"></span>\n'),r+="\n",e.component.showWordCount&&(r+='\n<span class="text-muted pull-right" ref="wordcount"></span>\n'),r+="\n"}},71634:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.value)?"":n:r+="-",r+="</div>\n"}},1894:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(45225),i=r(71634);n.default={form:o.default,html:i.default}},92064:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label\n  class="control-label '+(null==(n=e.label.className)?"":n)+'"\n  for="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n>\n  ',e.label.hidden||(r+="\n    "+(null==(n=e.t(e.component.label,{_userInput:!0}))?"":n)+"\n    ",e.component.tooltip&&(r+='\n      <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n    '),r+="\n  "),r+="\n</label>\n"}},44144:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(92064);n.default={form:o.default}},59896:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<p class="help-block '+(null==(n=e.level)?"":n)+'">'+(null==(n=e.message)?"":n)+"</p>\n"}},46314:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(59896);n.default={form:o.default}},36224:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio-dialog formio-dialog-theme-default formio-modaledit-dialog">\n  <div ref="overlay" class="formio-dialog-overlay"></div>
1\n  <div ref="content" class="formio-modaledit-content">\n    <button\n      ref="close"\n      type="button"\n      role="button"\n      class="btn btn-primary btn-xs formio-modaledit-close">\n      '+(null==(n=e.t("Close"))?"":n)+'\n    </button>\n    <div ref="inner" class="reset-margins"></div>\n  </div>\n</div>\n'}},53860:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(36224);n.default={form:o.default}},5669:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div ref="container" class="formio-modaledit-view-container">\n  <button\n    ref="edit"\n    type="button"\n    role="button"\n    class="btn btn-xxs btn-warning formio-modaledit-edit">\n    <i class="'+(null==(n=e.iconClass("edit"))?"":n)+'"></i>\n  </button>\n  <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(n=e.content)?"":n)+"</div>\n</div>\n"}},12614:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(5669);n.default={form:o.default}},96678:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<tr ref="row">\n  <td>\n    '+(null==(n=e.element)?"":n)+"\n  </td>\n  ",e.disabled||(r+='\n  <td>\n    <button type="button" class="btn btn-default" ref="removeRow">\n      <i class="'+(null==(n=e.iconClass("remove-circle"))?"":n)+'"></i>\n    </button>\n  </td>\n  '),r+="\n</tr>\n"}},60645:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(96678);n.default={form:o.default}},61017:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-bordered">\n  <tbody>\n  '+(null==(n=e.rows)?"":n)+"\n  ",e.disabled||(r+='\n  <tr>\n    <td colspan="2">\n      <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.addAnother,{_userInput:!0}))?"":n)+"</button>\n    </td>\n  </tr>\n  "),r+="\n  </tbody>\n</table>\n"}},66958:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(61017);n.default={form:o.default}},15055:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="panel panel-'+(null==(n=e.component.theme)?"":n)+'">\n  ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(r+='\n  <div class="panel-heading"\n    ',e.component.collapsible&&(r+='\n    tabindex="0"\n    '),r+='\n    role="button"\n    aria-expanded="'+(null==(n=!e.component.collapsible||!e.collapsed)?"":n)+'"\n    aria-controls="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n    ref="header"\n  >\n    <h4 class="mb-0 panel-title">\n      ',e.component.collapsible&&(r+='\n        <i class="formio-collapse-icon '+(null==(n=e.iconClass(e.collapsed?"plus":"minus"))?"":n)+' text-muted" data-title="Collapse Panel"></i>\n      '),r+="\n      ",(!e.component.hideLabel||e.builder)&&(r+="\n      "+(null==(n=e.t(e.component.title,{_userInput:!0}))?"":n)+"\n      "),r+="\n      ",e.component.tooltip&&(r+='\n        <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n      '),r+="\n    </h4>\n  </div>\n  "),r+="\n  ",(!e.collapsed||e.builder)&&(r+='\n  <div class="panel-body" ref="'+(null==(n=e.nestedKey)?"":n)+'" id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'">\n    '+(null==(n=e.children)?"":n)+"\n  </div>\n  "),r+="\n</div>\n"}},41191:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(15055);n.default={form:o.default}},69921:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="input-group">\n  ',e.values.forEach(function(o){for(var i in r+='\n  <div class="'+(null==(n=e.input.attr.type)?"":n)+(n=e.inline?"-inline":"")+'" ref="wrapper">\n    <label class="control-label form-check-label label-position-'+(null==(n=e.component.optionsLabelPosition)?"":n)+'" for="'+(null==(n=e.instance.root&&e.instance.root.i
vendor: 4,070 bytes, line 1
1d)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'">\n      ',("left"===e.component.optionsLabelPosition||"top"===e.component.optionsLabelPosition)&&(r+="\n      <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n      "),r+="\n      <"+(null==(n=e.input.type)?"":n)+'\n        ref="input"\n        ',e.input.attr)r+="\n        "+(null==(n=i)?"":n)+'="'+(null==(n=e.input.attr[i])?"":n)+'"\n        ';r+='\n        value="'+(null==(n=o.value)?"":n)+'"\n        ',(e.value===o.value||"object"==typeof e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value])&&(r+="\n          checked=true\n        "),r+="\n        ",o.disabled&&(r+="\n          disabled=true\n        "),r+='\n        id="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'"\n      >\n      ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(r+="\n      <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n      "),r+="\n    </label>\n  </div>\n  "}),r+="\n</div>\n"}},8271:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n="";Array.prototype.join,n+='<div ref="value">\n  ';var r=e.values.filter(function(n){return e.value===n.value||"object"==typeof e.value&&e.value.hasOwnProperty(n.value)&&e.value[n.value]}).map(function(n){return e.t(n.label,{_userInput:!0})}).join(", ");return n+("\n  "+(null==r?"":r))+"\n  </div>\n"}},45408:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(69921),i=r(8271);n.default={form:o.default,html:i.default}},6011:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<table class="table table-bordered">\n  <tbody>\n    <tr>\n      <td>\n        '+(null==(n=e.element)?"":n)+'\n      </td>\n    </tr>\n    <tr>\n      <td colspan="2">\n        <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>\n          '+(null==(n=e.t(e.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":n)+"\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n"}},73442:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(6011);n.default={form:o.default}},88829:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+=(null==(n=e.element)?"":n)+'\n<div\n  class="signature-pad-body"\n  style="width: '+(null==(n=e.component.width)?"":n)+";height: "+(null==(n=e.component.height)?"":n)+';padding:0;margin:0;"\n  tabindex="'+(null==(n=e.component.tabindex||0)?"":n)+'"\n  ref="padBody"\n>\n\n  <a class="btn btn-sm btn-default signature-pad-refresh" ref="refresh">\n    <i class="'+(null==(n=e.iconClass("refresh"))?"":n)+'"></i>\n  </a>\n  <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(n=e.component.height)?"":n)+'" ref="canvas"></canvas>\n  ',e.required&&(r+='\n  <span class="form-control-feedback field-required-inline text-danger">\n    <i class="'+(null==(n=e.iconClass("asterisk"))?"":n)+'"></i>\n  </span>\n  '),r+='\n  <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(r+='\n  <div class="signature-pad-footer">\n    '+(null==(n=e.t(e.component.footer,{_userInput:!0}))?"":n)+"\n  </div>\n"),r+="\n"}},47549:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},54556:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(88829),i=r(47549);n.default={form:o.default,html:i.default}},25207:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-striped table-bordered">\n  <thead>\n    <tr>\n      <th></th>
1\n      ',e.component.values.forEach(function(o){r+='\n      <th style="text-align: center;">\n        '+(null==(n=e.t(o.label))?"":n)+"\n        ",o.tooltip&&(r+='\n          <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n        '),r+="\n      </th>\n      "}),r+="\n    </tr>\n  </thead>\n  <tbody>\n    ",e.component.questions.forEach(function(o){r+="\n    <tr>\n      <td>\n        "+(null==(n=e.t(o.label))?"":n)+"\n        ",o.tooltip&&(r+='\n          <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n        '),r+="\n      </td>\n      ",e.component.values.forEach(function(i){r+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(n=e.self.getInputName(o))?"":n)+'" value="'+(null==(n=i.value)?"":n)+'" id="'+(null==(n=e.key)?"":n)+"-"+(null==(n=o.value)?"":n)+"-"+(null==(n=i.value)?"":n)+'" ref="input">\n      </td>\n      '}),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},89920:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-striped table-bordered">\n  <tbody>\n    ',e.component.questions.forEach(function(o){r+="\n    <tr>\n      <th>"+(null==(n=e.t(o.label))?"":n)+"</th>\n      <td>\n      ",e.component.values.forEach(function(i){r+="\n        ",e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value]===i.value&&(r+="\n          "+(null==(n=e.t(i.label))?"":n)+"\n        "),r+="\n      "}),r+="\n      </td>\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},22807:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(25207),i=r(89920);n.default={form:o.default,html:i.default}},77193:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.component.components.forEach(function(o,i){r+='\n  <div class="panel panel-default">\n    <div class="panel-heading">\n      <h4 class="panel-title">'+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+'</h4>\n    </div>\n    <div class="panel-body" ref="'+(null==(n=e.tabKey)?"":n)+'">\n      '+(null==(n=e.tabComponents[i])?"":n)+"\n    </div>\n  </div>\n"}),r+="\n"}},28991:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="tab-container'+(n=e.component.verticalLayout?" card-vertical":"")+'">\n  <ul class="nav nav-tabs'+(n=e.component.verticalLayout?" nav-tabs-vertical":"")+'">\n    ',e.component.components.forEach(function(o,i){r+='\n    <li class="nav-item'+(n=e.currentTab===i?" active":"")+'" role="presentation" ref="'+(null==(n=e.tabLikey)?"":n)+'">\n      <a class="nav-link'+(n=e.currentTab===i?" active":"")+(n=e.component.verticalLayout?" nav-link-vertical":"")+'" href="#'+(null==(n=o.key)?"":n)+'" ref="'+(null==(n=e.tabLinkKey)?"":n)+'">'+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</a>\n    </li>\n    "}),r+='\n  </ul>\n  <div class="tab-content">\n    ',e.component.components.forEach(function(o,i){r+='\n    <div role="tabpanel" class="tab-pane'+(n=e.currentTab===i?" active":"")+'" ref="'+(null==(n=e.tabKey)?"":n)+'">'+(null==(n=e.tabComponents[i])?"":n)+"</div>\n    "}),r+="\n  </div>\n</div>\n"}},84736:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(77193),i=r(28991);n.default={flat:o.default,form:i.default}},9943:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.bordered?"table-bordered":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-condensed":"")+'\n  ">\n  ',e.component.header&&e.component.header.length>0&&(r+="\n  <thead>\n    <tr>\n      ",e.component.header.forEach(function(o){r+="\n      <th>"+(null==(n=e.t(o,{_userInput:!0}))?"":n)+"</th>\n      "}),r+="\n    </tr>\n  </thead>\n  "),r+="\n  <tbody>
1\n    ",e.tableComponents.forEach(function(o,i){r+='\n    <tr ref="row-'+(null==(n=e.id)?"":n)+'">\n      ',o.forEach(function(o,a){r+='\n      <td ref="'+(null==(n=e.tableKey)?"":n)+"-"+(null==(n=i)?"":n)+'"',e.cellClassName&&(r+=' class="'+(null==(n=e.cellClassName)?"":n)+'"'),r+=">"+(null==(n=o)?"":n)+"</td>\n      "}),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},76232:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(9943);n.default={form:o.default}},21223:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="well">\n  <div ref="'+(null==(n=e.nestedKey)?"":n)+'">\n    '+(null==(n=e.children)?"":n)+"\n  </div>\n</div>\n"}},15803:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(21223);n.default={form:o.default}},87591:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="text-muted text-center">'+(null==(n=e.t(e.component.title,{_userInput:!0}))?"":n)+"</div>\n"}},78274:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="'+(null==(n=e.className)?"":n)+'">\n  <div style="position: relative;">\n    ',"wizardHeaderVertical"===e.wizardHeaderType?r+='\n      <div class="row">\n        <div class="col-sm-12 col-md-2">\n          '+(null==(n=e.wizardHeader)?"":n)+'\n        </div>\n        <div class="wizard-page col-sm-offset-1 col-md-offset-0 col-sm-10" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n          '+(null==(n=e.components)?"":n)+'\n        </div>\n      </div>\n      <div class="col-sm-offset-4 col-sm-7 col-md-offset-2 col-md-10" style="margin-top: 10px;">\n        '+(null==(n=e.wizardNav)?"":n)+"\n      </div>\n    ":r+=" \n      "+(null==(n=e.wizardHeader)?"":n)+'\n      <div class="wizard-page" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n        '+(null==(n=e.components)?"":n)+"\n      </div>\n      "+(null==(n=e.wizardNav)?"":n)+"\n    ",r+=" \n  </div>\n</div>"}},11175:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(87591),i=r(78274);n.default={form:i.default,builder:o.default}},7058:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header" ref="'+(null==(n=e.wizardKey)?"":n)+'-header">\n  <ul class="pagination">\n    ',e.panels.forEach(function(o,i){r+='\n    <li class="page-item'+(n=e.currentPage===i?" active":"")+'" style="">
1\n      <span class="page-link" ref="'+(null==(n=e.wizardKey)?"":n)+'-link">\n        '+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"\n        ",o.tooltip&&e.currentPage===i&&(r+='\n        <i ref="'+(null==(n=e.wizardKey)?"":n)+'-tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n        '),r+="\n      </span>\n    </li>\n    "}),r+="\n  </ul>\n</nav>\n"}},42306:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(7058);n.default={form:o.default}},32062:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n  <div class="classic-pagination row" style="border-bottom:0;">\n    ',e.panels.forEach(function(o,i){r+='\n      <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n          '+(n=e.currentPage<i?" disabled":"")+"\n          "+(n=e.currentPage===i?" active":"")+"\n          "+(n=e.currentPage>i?" complete":"")+'">\n        <div class="text-center classic-pagination-title">'+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"</div>\n        ",e.panels.length>1&&(r+='\n          <div class="progress"><div class="progress-bar"></div></div>\n        '),r+=' \n        <span ref="'+(null==(n=e.wizardKey)?"":n)+'-link" class="classic-pagination-dot"></span>\n      </div>\n    '}),r+="\n  </div>\n</nav>\n"}},56425:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(32062);n.default={form:o.default}},92312:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n  <ul class="pagination">\n    ',e.panels.forEach(function(o,i){r+='\n    <li class="col-sm-offset-3 col-sm-6 col-md-offset-0 col-md-12 page-item'+(n=e.currentPage===i?" active":"")+'" style="cursor: pointer;">
1\n      <span class="page-link" ref="'+(null==(n=e.wizardKey)?"":n)+'-link" style="margin: 0px 0px 5px;">\n        '+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"\n        ",o.tooltip&&e.currentPage===i&&(r+='\n        <i ref="'+(null==(n=e.wizardKey)?"":n)+'-tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n        '),r+="\n      </span>\n    </li>\n    "}),r+="\n  </ul>\n</nav>\n"}},67254:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(92312);n.default={form:o.default}},85871:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="list-inline" id="'+(null==(n=e.wizardKey)?"":n)+'-nav">\n  ',e.buttons.cancel&&(r+='\n  <li class="list-inline-item">\n    <button class="btn btn-default btn-wizard-nav-cancel" ref="'+(null==(n=e.wizardKey)?"":n)+'-cancel">'+(null==(n=e.t("cancel"))?"":n)+"</button>\n  </li>\n  "),r+="\n  ",e.buttons.previous&&(r+='\n  <li class="list-inline-item">\n    <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(n=e.wizardKey)?"":n)+'-previous">'+(null==(n=e.t("previous"))?"":n)+"</button>\n  </li>\n  "),r+="\n  ",e.buttons.next&&(r+='\n  <li class="list-inline-item">\n    <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(n=e.wizardKey)?"":n)+'-next">'+(null==(n=e.t("next"))?"":n)+"</button>\n  </li>\n  "),r+="\n  ",e.buttons.submit&&(r+='\n  <li class="list-inline-item">\n    <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(n=e.wizardKey)?"":n)+'-submit">'+(null==(n=e.t("submit"))?"":n)+"</button>\n  </li>\n  "),r+="\n</ul>\n"}},51525:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(85871);n.default={form:o.default}},88087:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(46006);n.default={bootstrap3:o.default}},55779:function(e){/*! @formio/choices.js v10.2.1 | © 2024 Josh Johnson | https://github.com/jshjohnson/Choices#readme */window,e.exports=(()=>{"use strict";var e={282:(e,n,r)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.clearChoices=n.activateChoices=n.filterChoices=n.addChoice=void 0;var o=r(883);n.addChoice=function(e){var n=e.value,r=e.label,i=e.id,a=e.groupId,l=e.disabled,s=e.elementId,u=e.customProperties,c=e.placeholder,f=e.keyCode;return{type:o.ACTION_TYPES.ADD_CHOICE,value:n,label:r,id:i,groupId:a,disabled:l,elementId:s,customProperties:u,placeholder:c,keyCode:f}},n.filterChoices=function(e){return{type:o.ACTION_TYPES.FILTER_CHOICES,results:e}},n.activateChoices=function(e){return void 0===e&&(e=!0),{type:o.ACTION_TYPES.ACTIVATE_CHOICES,active:e}},n.clearChoices=function(){return{type:o.ACTION_TYPES.CLEAR_CHOICES}}},783:(e,n,r)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.addGroup=void 0;var o=r(883);n.addGroup=function(e){var n=e.value,r=e.id,i=e.active,a=e.disabled;return{type:o.ACTION_TYPES.ADD_GROUP,value:n,id:r,active:i,disabled:a}}},464:(e,n,r)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.highlightItem=n.removeItem=n.addItem=void 0;var o=r(883);n.addItem=function(e){var n=e.value,r=e.label,i=e.id,a=e.choiceId,l=e.groupId,s=e.customProperties,u=e.placeholder,c=e.keyCode;return{type:o.ACTION_TYPES.ADD_ITEM,value:n,label:r,id:i,choiceId:a,groupId:l,customProperties:s,placeholder:u,keyCode:c}},n.removeItem=function(e,n){return{type:o.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:n}},n.highlightItem=function(e,n){return{type:o.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:n}}},137:(e,n,r)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.setIsLoading=n.resetTo=n.clearAll=void 0;var o=r(883);n.clearAll=function(){return{type:o.ACTION_TYPES.CLEAR_ALL}},n.resetTo=function(e){return{type:o.ACTION_TYPES.RESET_TO,state:e}},n.setIsLoading=function(e){return{type:o.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,n,r){var o=this&&this.__spreadArray||function(e,n,r){if(r||2==arguments.length)for(var o,i=0,a=n.length;i<a;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))}
vendor: 4,437 bytes, line 1
1,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var a=i(r(996)),l=i(r(221)),s=r(282),u=r(783),c=r(464),f=r(137),d=r(520),p=r(883),h=r(789),y=r(799),m=r(655),v=i(r(744)),b=i(r(686)),g="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,w={},k=function(){function e(n,r){void 0===n&&(n="[data-choice]"),void 0===r&&(r={});var i=this;void 0===r.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=a.default.all([h.DEFAULT_CONFIG,e.defaults.options,r],{arrayMerge:function(e,n){return o([],n,!0)}}),r.shadowRoot&&(this.config.shadowRoot=r.shadowRoot);var l=(0,y.diff)(this.config,h.DEFAULT_CONFIG);l.length&&console.warn("Unknown config option(s) passed",l.join(", "));var s="string"==typeof n?document.querySelector(n):n;if(!(s instanceof HTMLInputElement||s instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=s.type===p.TEXT_TYPE,this._isSelectOneElement=s.type===p.SELECT_ONE_TYPE,this._isSelectMultipleElement=s.type===p.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),r.addItemFilter&&"function"!=typeof r.addItemFilter){var u=r.addItemFilter instanceof RegExp?r.addItemFilter:new RegExp(r.addItemFilter);this.config.addItemFilter=u.test.bind(u)}if(this._isTextElement?this.passedElement=new d.WrappedInput({element:s,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new d.WrappedSelect({element:s,classNames:this.config.classNames,template:function(e){return i._templates.option(e)}}),this.initialised=!1,this._store=new v.default,this._initialState=m.defaultState,this._currentState=m.defaultState,this._prevState=m.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,y.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var c=window.getComputedStyle(this.passedElement.element).direction;c!==window.getComputedStyle(document.documentElement).direction&&(this._direction=c)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var f=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(f)}if(this.passedElement.options&&this.passedElement.options.forEach(function(e){i._presetChoices.push({value:e.value,label:e.innerHTML,selected:!!e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:(0,y.parseCustomProperties)(e.dataset.customProperties)})}),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive){this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:n}),this.initialised=!0;return}this.init()}return Object.defineProperty(e,"defaults",{get:function(){return Object.preventExtensions({get options(){return w},get templates(){return b.default}})}
1,enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&"function"==typeof e&&e.call(this)}},e.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=b.default,this.initialised=!1)},e.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},e.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},e.prototype.highlightItem=function(e,n){if(void 0===n&&(n=!0),!e||!e.id)return this;var r=e.id,o=e.groupId,i=void 0===o?-1:o,a=e.value,l=e.label,s=i>=0?this._store.getGroupById(i):null;return this._store.dispatch((0,c.highlightItem)(r,!0)),n&&this.passedElement.triggerEvent(p.EVENTS.highlightItem,{id:r,value:void 0===a?"":a,label:void 0===l?"":l,groupValue:s&&s.value?s.value:null}),this},e.prototype.unhighlightItem=function(e){if(!e||!e.id)return this;var n=e.id,r=e.groupId,o=void 0===r?-1:r,i=e.value,a=e.label,l=o>=0?this._store.getGroupById(o):null;return this._store.dispatch((0,c.highlightItem)(n,!1)),this.passedElement.triggerEvent(p.EVENTS.highlightItem,{id:n,value:void 0===i?"":i,label:void 0===a?"":a,groupValue:l&&l.value?l.value:null}),this},e.prototype.highlightAll=function(){var e=this;return this._store.items.forEach(function(n){return e.highlightItem(n)}),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.items.forEach(function(n){return e.unhighlightItem(n)}),this},e.prototype.removeActiveItemsByValue=function(e){var n=this;return this._store.activeItems.filter(function(n){return n.value===e}).forEach(function(e){return n._removeItem(e)}),this},e.prototype.removeActiveItems=function(e){var n=this;return this._store.activeItems.filter(function(n){return n.id!==e}).forEach(function(e){return n._removeItem(e)}),this},e.prototype.removeHighlightedItems=function(e){var n=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach(function(r){n._removeItem(r),e&&n._triggerChange(r.value)}),this},e.prototype.showDropdown=function(e){var n=this;return this.dropdown.isActive||requestAnimationFrame(function(){n.dropdown.show(),n.containerOuter.open(n.dropdown.distanceFromTopWindow,n.dropdown.height),!e&&n._canSearch&&n.input.focus(),n.passedElement.triggerEvent(p.EVENTS.showDropdown,{})}),this},e.prototype.hideDropdown=function(e){var n=this;return this.dropdown.isActive&&requestAnimationFrame(function(){n.dropdown.hide(),n.containerOuter.close(),!e&&n._canSearch&&(n.input.removeActiveDescendant(),n.input.blur()),n.passedElement.triggerEvent(p.EVENTS.hideDropdown,{})}),this},e.prototype.getValue=function(e){void 0===e&&(e=!1);var n=this._store.activeItems.reduce(function(n,r){var o=e?r.value:r;return n.push(o),n},[]);return this._isSelectOneElement?n[0]:n},e.prototype.setValue=function(e){var n=this;return this.initialised&&e.forEach(function(e){return n._setChoiceOrItem(e)}),this},e.prototype.setChoiceByValue=function(e){var n=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach(function(e){return n._findAndSelectChoiceByValue(e)}),this},e.prototype.setChoices=function(e,n,r,o){var i=this;if(void 0===e&&(e=[]),void 0===n&&(n="value"),void 0===r&&(r="label"),void 0===o&&(o=!1),!this.initialised)throw ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof n||!n)throw TypeError("value parameter must be a name of 'value' field in passed objects");if(o&&this.clearChoices(),"function"==typeof e){var a=e(this);if("function"==typeof Promise&&a instanceof Promise)return new Promise(function(e){return requestAnimationFrame(e)}).then(function(){return i._handleLoadingState(!0)}).then(function(){return a}).then(function(e){return i.setChoices(e,n,r,o)}).catch(function(e){i.config.silent||console.error(e)}).then(function(){return i._handleLoadingState(!1)}).then(function(){return i});if(!Array.isArray(a))throw TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof a));return this.setChoices(a,n,r,!1)}if(!Array.isArray(e))throw TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach(function(e){e.choices?i._addGroup({id:e.id?parseInt("".concat(e.id),10):null,group:e,valueKey:n,labelKey:r}):i._addChoice({value:e[n],label:e[r],isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:e.customProperties})}),this._stopLoading(),this},e.prototype.clearChoices=function(){return this._store.dispatch((0,s.clearChoices)()),this},e.prototype.clearStore=function(){return this._store.dispatch((0,f.clearAll)()),this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,s.activateChoices)(!0))),this},e.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,n=this._isSelectElement,r=this._currentState.items!==this._prevState.items;e&&(n&&this._renderChoices(),r&&this._renderItems(),this._prevState=this._currentState)}},e.prototype._renderChoices=function(){var e=this,n=this._store,r=n.activeGroups,o=n.activeChoices,i=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame(function(){return e.choiceList.scrollToTop()}),r.length>=1&&!this._isSearching){var a=o.filter(function(e){return!0===e.placeholder&&-1===e.groupId});a.length>=1&&(i=this._createChoicesFragment(a,i)),i=this._createGroupsFragment(r,o,i)}else o.length>=1&&(i=this._createChoicesFragment(o,i));if(i.childNodes&&i.childNodes.length>0){var l=this._store.activeItems,s=this._canAddItem(l,this.input.value);if(s.response)this.choiceList.append(i),this._highlightChoice();else{var u=this._getTemplate("notice",s.notice);this.choiceList.append(u)}}else{var c=void 0,u=void 0;this._isSearching?(u="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,c=this._getTemplate("notice",u,"no-results")):(u="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,c=this._getTemplate("notice",u,"no-choices")),this.choiceList.append(c)}},e.prototype._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var n=this._createItemsFragment(e);n.childNodes&&this.itemList.append(n)},e.prototype._createGroupsFragment=function(e,n,r){var o=this;return void 0===r&&(r=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach(function(e){var i=n.filter(function(n){return o._isSelectOneElement?n.groupId===e.id:n.groupId===e.id&&("always"===o.config.render
vendor: 14,292 bytes, line 1
1SelectedChoices||!n.selected)});if(i.length>=1){var a=o._getTemplate("choiceGroup",e);r.appendChild(a),o._createChoicesFragment(i,r,!0)}}),r},e.prototype._createChoicesFragment=function(e,n,r){var i=this;void 0===n&&(n=document.createDocumentFragment()),void 0===r&&(r=!1);var a=this.config,l=a.renderSelectedChoices,s=a.searchResultLimit,u=a.renderChoiceLimit,c=this._isSearching?y.sortByScore:this.config.sorter,f=e;"auto"!==l||this._isSelectOneElement||(f=e.filter(function(e){return!e.selected}));var d=f.reduce(function(e,n){return n.placeholder?e.placeholderChoices.push(n):e.normalChoices.push(n),e},{placeholderChoices:[],normalChoices:[]}),p=d.placeholderChoices,h=d.normalChoices;(this.config.shouldSort||this._isSearching)&&h.sort(c);var m=f.length,v=this._isSelectOneElement?o(o([],p,!0),h,!0):h;this._isSearching?m=s:u&&u>0&&!r&&(m=u);for(var b=0;b<m;b+=1)v[b]&&function(e){if("auto"!==l||i._isSelectOneElement||!e.selected){var r=i._getTemplate("choice",e,i.config.itemSelectText);n.appendChild(r)}}(v[b]);return n},e.prototype._createItemsFragment=function(e,n){var r=this;void 0===n&&(n=document.createDocumentFragment());var o=this.config,i=o.shouldSortItems,a=o.sorter,l=o.removeItemButton;return i&&!this._isSelectOneElement&&e.sort(a),this._isTextElement?this.passedElement.value=e.map(function(e){return e.value}).join(this.config.delimiter):this.passedElement.options=e,e.forEach(function(e){var o=r._getTemplate("item",e,l);n.appendChild(o)}),n},e.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(p.EVENTS.change,{value:e})},e.prototype._selectPlaceholderChoice=function(e){this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value)},e.prototype._handleButtonAction=function(e,n){if(e&&n&&this.config.removeItems&&this.config.removeItemButton){var r=n.parentNode&&n.parentNode.dataset.id,o=r&&e.find(function(e){return e.id===parseInt(r,10)});o&&(this._removeItem(o),this._triggerChange(o.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},e.prototype._handleItemAction=function(e,n,r){var o=this;if(void 0===r&&(r=!1),e&&n&&this.config.removeItems&&!this._isSelectOneElement){var i=n.dataset.id;e.forEach(function(e){e.id!==parseInt("".concat(i),10)||e.highlighted?!r&&e.highlighted&&o.unhighlightItem(e):o.highlightItem(e)}),this.input.focus()}},e.prototype._handleChoiceAction=function(e,n){if(e&&n){var r=n.dataset.id,o=r&&this._store.getChoiceById(r);if(o){var i=e[0]&&e[0].keyCode?e[0].keyCode:void 0,a=this.dropdown.isActive;o.keyCode=i,this.passedElement.triggerEvent(p.EVENTS.choice,{choice:o}),o.selected||o.disabled||!this._canAddItem(e,o.value).response||(this._addItem({value:o.value,label:o.label,choiceId:o.id,groupId:o.groupId,customProperties:o.customProperties,placeholder:o.placeholder,keyCode:o.keyCode}),this._triggerChange(o.value)),this.clearInput(),a&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},e.prototype._handleBackspace=function(e){if(this.config.removeItems&&e){var n=e[e.length-1],r=e.some(function(e){return e.highlighted});this.config.editItems&&!r&&n?(this.input.value=n.value,this.input.setWidth(),this._removeItem(n),this._triggerChange(n.value)):(r||this.highlightItem(n,!1),this.removeHighlightedItems(!0))}},e.prototype._startLoading=function(){this._store.dispatch((0,f.setIsLoading)(!0))},e.prototype._stopLoading=function(){this._store.dispatch((0,f.setIsLoading)(!1))},e.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var n=this.itemList.getChild(".".concat(this.config.classNames.placeholder));e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?n?n.innerHTML=this.config.loadingText:(n=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(n):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?n&&(n.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},e.prototype._handleSearch=function(e){if(this.input.isFocussed){var n=this._store.choices,r=this.config,o=r.searchFloor,i=r.searchChoices,a=n.some(function(e){return!e.active});if(null!=e&&e.length>=o){var l=i?this._searchChoices(e):0;this.passedElement.triggerEvent(p.EVENTS.search,{value:e,resultCount:l})}else a&&(this._isSearching=!1,this._store.dispatch((0,s.activateChoices)(!0)))}},e.prototype._canAddItem=function(e,n){var r=!0,o="function"==typeof this.config.addItemText?this.config.addItemText(n):this.config.addItemText;if(!this._isSelectOneElement){var i=(0,y.existsInArray)(e,n);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(r=!1,o="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&i&&r&&(r=!1,o="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(n):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&r&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(n)&&(r=!1,o="function"==typeof this.config.customAddItemText?this.config.customAddItemText(n):this.config.customAddItemText)}return{response:r,notice:o}},e.prototype._searchChoices=function(e){var n="string"==typeof e?e.trim():e,r="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(n.length<1&&n==="".concat(r," "))return 0;var i=this._store.searchableChoices,a=Object.assign(this.config.fuseOptions,{keys:o([],this.config.searchFields,!0),includeMatches:!0}),u=new l.default(i,a).search(n);return this._currentValue=n,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,s.filterChoices)(u)),u.length},e.prototype._addEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var n=e.keyCode,r=this._store.activeItems,o=this.input.isFocussed,i=this.dropdown.isActive,a=this.itemList.hasChildren(),l=String.fromCharCode(n),s=/[^\x00-\x1F]/.test(l),u=p.KEY_CODES.BACK_KEY,c=p.KEY_CODES.DELETE_KEY,f=p.KEY_CODES.ENTER_KEY,d=p.KEY_CODES.A_KEY,h=p.KEY_CODES.ESC_KEY,y=p.KEY_CODES.UP_KEY,m=p.KEY_CODES.DOWN_KEY,v=p.KEY_CODES.PAGE_UP_KEY,b=p.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||i||!s||(this.showDropdown(),this.input.isFocussed||(this.input.value+=e.key.toLowerCase())),n){case d:return this._onSelectKey(e,a);case f:return this._onEnterKey({event:e,activeItems:r,hasActiveDropdown:i});case h:return this._onEscapeKey(i);case y:case v:case m:case b:return this._onDirectionKey({event:e,hasActiveDropdown:i});case c:case u:return this._onDeleteKey(e,r,o)}},e.prototype._onKeyUp=function(e){var n=e.target,r=e.keyCode,o=this.input.value,i=this._store.activeItems,a=this._canAddItem(i,o),l=p.KEY_CODES.BACK_KEY,u=p.KEY_CODES.DELETE_KEY;if(this._isTextElement){if(a.notice&&o){var c=this._getTemplate("notice",a.notice);this.dropdown.element.innerHTML=c.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0)}else{var f=(r===l||r===u)&&n&&!n.value,d=!this._isTextElement&&this._isSearching,h=this._canSearch&&a.response;f&&d?(this._isSearching=!1,this._store.dispatch((0,s.activateChoices)(!0))):h&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},e.prototype._onSelectKey=function(e,n){var r=e.ctrlKey,o=e.metaKey;(r||o)&&n&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e){var n=e.event,r=e.activeItems,o=e.hasActiveDropdown,i=n.target,a=p.KEY_CODES.ENTER_KEY,l=i&&i.hasAttribute("data-button");if(this._isTextElement&&i&&i.value){var s=this.input.value;this._canAddItem(r,s).response&&(this.hideDropdown(!0),this._addItem({value:s}),this._triggerChange(s),this.clearInput())}if(l&&(this._handleButtonAction(r,i),n.preventDefault()),o){var u=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));u&&(r[0]&&(r[0].keyCode=a),this._handleChoiceAction(r,u)),n.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),n.preventDefault())},e.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},e.prototype._onDirectionKey=function(e){var n=e.event,r=e.hasActiveDropdown,o=n.keyCode,i=n.metaKey,a=p.KEY_CODES.DOWN_KEY,l=p.KEY_CODES.PAGE_UP_KEY,s=p.KEY_CODES.PAGE_DOWN_KEY;if(r||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var u=o===a||o===s?1:-1,c="[data-choice-selectable]",f=void 0;if(i||o===s||o===l)f=u>0?this.dropdown.element.querySelector("".concat(c,":last-of-type")):this.dropdown.element.querySelector(c);else{var d=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));f=d?(0,y.getAdjacentEl)(d,c,u):this.dropdown.element.querySelector(c)}f&&((0,y.isScrolledIntoView)(f,this.choiceList.element,u)||this.choiceList.scrollToChildElement(f,u),this._highlightChoice(f)),n.preventDefault()}},e.prototype._onDeleteKey=function(e,n,r){var o=e.target;this._isSelectOneElement||o.value||!r||(this._handleBackspace(n),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var n=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(n)&&((n===this.containerOuter.element||n===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},e.prototype._onMouseDown=function(e){var n=e.target;if(n instanceof HTMLElement){if(g&&this.choiceList.element.contains(n)){var r=this.choiceList.element.firstElementChild,o="ltr"===this._direction?e.offsetX>=r.offsetWidth:e.offsetX<r.offsetLeft;this._isScrollingOnIe=o}if(n!==this.input.element){var i=n.closest("[data-button],[data-item],[data-choice]");if(i instanceof HTMLElement){var a=e.shiftKey,l=this._store.activeItems,s=i.dataset;"button"in s?this._handleButtonAction(l,i):"item"in s?this._handleItemAction(l,i,a):"choice"in s&&this._handleChoiceAction(l,i)}e.preventDefault()}}},e.prototype._onMouseOver=function(e){var n=e.target;n instanceof HTMLElement&&"choice"in n.dataset&&this._highlightChoice(n)},e.prototype._onClick=function(e){var n=e.target;this.containerOuter.element.contains(n)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&n!==this.input.element&&!this.dropdown.element.contains(n)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},e.prototype._onFocus=function(e){var n,r=this,o=e.target;o&&this.containerOuter.element.contains(o)&&((n={})[p.TEXT_TYPE]=function(){o===r.input.element&&r.containerOuter.addFocusState()},n[p.SELECT_ONE_TYPE]=function(){r.containerOuter.addFocusState(),o===r.input.element&&r.showDropdown(!0)},n[p.SELECT_MULTIPLE_TYPE]=function(){o===r.input.element&&(r.showDropdown(!0),r.containerOuter.addFocusState())},n)[this.passedElement.element.type]()},e.prototype._onBlur=function(e){var n,r=this,o=e.target;if(o&&this.containerOuter.element.contains(o)&&!this._isScrollingOnIe){var i=this._store.activeItems.some(function(e){return e.highlighted});((n={})[p.TEXT_TYPE]=function(){o===r.input.element&&(r.containerOuter.removeFocusState(),i&&r.unhighlightAll(),r.hideDropdown(!0))},n[p.SELECT_ONE_TYPE]=function(){r.containerOuter.removeFocusState(),o!==r.input.element&&(o!==r.containerOuter.element||r._canSearch)||r.hideDropdown(!0)},n[p.SELECT_MULTIPLE_TYPE]=function(){o===r.input.element&&(r.containerOuter.removeFocusState(),r.hideDropdown(!0),i&&r.unhighlightAll())},n)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},e.prototype._onFormReset=function(){this._store.dispatch((0,f.resetTo)(this._initialState))},e.prototype._highlightChoice=function(e){var n=this;void 0===e&&(e=null);var r=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(r.length){var o=e;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEac
1h(function(e){e.classList.remove(n.config.classNames.highlightedState),e.setAttribute("aria-selected","false")}),o?this._highlightPosition=r.indexOf(o):(o=r.length>this._highlightPosition?r[this._highlightPosition]:r[r.length-1])||(o=r[0]),o.classList.add(this.config.classNames.highlightedState),o.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(p.EVENTS.highlightChoice,{el:o}),this.dropdown.isActive&&(this.input.setActiveDescendant(o.id),this.containerOuter.setActiveDescendant(o.id))}},e.prototype._addItem=function(e){var n=e.value,r=e.label,o=e.choiceId,i=e.groupId,a=void 0===i?-1:i,l=e.customProperties,s=void 0===l?{}:l,u=e.placeholder,f=e.keyCode,d=void 0===f?-1:f,h="string"==typeof n?n.trim():n,y=this._store.items,m=(void 0===r?null:r)||h,v=a>=0?this._store.getGroupById(a):null,b=y?y.length+1:1;this.config.prependValue&&(h=this.config.prependValue+h.toString()),this.config.appendValue&&(h+=this.config.appendValue.toString()),this._store.dispatch((0,c.addItem)({value:h,label:m,id:b,choiceId:(void 0===o?-1:o)||-1,groupId:a,customProperties:s,placeholder:void 0!==u&&u,keyCode:d})),this._isSelectOneElement&&this.removeActiveItems(b),this.passedElement.triggerEvent(p.EVENTS.addItem,{id:b,value:h,label:m,customProperties:s,groupValue:v&&v.value?v.value:null,keyCode:d})},e.prototype._removeItem=function(e){var n=e.id,r=e.value,o=e.label,i=e.customProperties,a=e.choiceId,l=e.groupId,s=l&&l>=0?this._store.getGroupById(l):null;n&&a&&(this._store.dispatch((0,c.removeItem)(n,a)),this.passedElement.triggerEvent(p.EVENTS.removeItem,{id:n,value:r,label:o,customProperties:i,groupValue:s&&s.value?s.value:null}))},e.prototype._addChoice=function(e){var n=e.value,r=e.label,o=e.isSelected,i=e.isDisabled,a=e.groupId,l=e.customProperties,u=void 0===l?{}:l,c=e.placeholder,f=void 0!==c&&c,d=e.keyCode,p=void 0===d?-1:d;if(null!=n){var h=this._store.choices,y=(void 0===r?null:r)||n,m=h?h.length+1:1,v="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(m);this._store.dispatch((0,s.addChoice)({id:m,groupId:void 0===a?-1:a,elementId:v,value:n,label:y,disabled:void 0!==i&&i,customProperties:u,placeholder:f,keyCode:p})),void 0!==o&&o&&this._addItem({value:n,label:y,choiceId:m,customProperties:u,placeholder:f,keyCode:p})}},e.prototype._addGroup=function(e){var n=this,r=e.group,o=e.id,i=e.valueKey,a=void 0===i?"value":i,l=e.labelKey,s=void 0===l?"label":l,c=(0,y.isType)("Object",r)?r.choices:Array.from(r.getElementsByTagName("OPTION")),f=o||Math.floor(new Date().valueOf()*Math.random()),d=!!r.disabled&&r.disabled;c?(this._store.dispatch((0,u.addGroup)({value:r.label,id:f,active:!0,disabled:d})),c.forEach(function(e){var r=e.disabled||e.parentNode&&e.parentNode.disabled;n._addChoice({value:e[a],label:(0,y.isType)("Object",e)?e[s]:e.innerHTML,isSelected:e.selected,isDisabled:r,groupId:f,customProperties:e.customProperties,placeholder:e.placeholder})})):this._store.dispatch((0,u.addGroup)({value:r.label,id:r.id,active:!1,disabled:r.disabled}))},e.prototype._getTemplate=function(e){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(n=this._templates[e]).call.apply(n,o([this,this.config],r,!1))},e.prototype._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,n={};e&&"function"==typeof e&&(n=e.call(this,y.strToEl)),this._templates=(0,a.default)(b.default,n)},e.prototype._createElements=function(){this.containerOuter=new d.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new d.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new d.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new d.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new d.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new d.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},e.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},e.prototype._addPredefinedGroups=function(e){var n=this,r=this.passedElement.placeholderOption;r&&r.parentNode&&"SELECT"===r.parentNode.tagName&&this._addChoice({value:r.value,label:r.innerHTML,isSelected:r.selected,isDisabled:r.disabled,placeholder:!0}),e.forEach(function(e){return n._addGroup({group:e,id:e.id||null})})},e.prototype._addPredefinedChoices=function(e){var n=this;this.config.shouldSort&&e.sort(this.config.sorter);var r=e.some(function(e){return e.selected}),o=e.findIndex(function(e){return void 0===e.disabled||!e.disabled});e.forEach(function(e,i){var a=e.value,l=void 0===a?"":a,s=e.label,u=e.customProperties,c=e.placeholder;if(n._isSelectElement){if(e.choices)n._addGroup({group:e,id:e.id||null});else{var f=!!(n._isSelectOneElement&&!r&&i===o)||e.selected,d=e.disabled;n._addChoice({value:l,label:s,isSelected:!!f,isDisabled:!!d,placeholder:!!c,customProperties:u})}}else n._addChoice({value:l,label:s,isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:u})})},e.prototype._addPredefinedItems=function(e){var n=this;e.forEach(function(e){"object"==typeof e&&e.value&&n._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&n._addItem({value:e})})},e.prototype._setChoiceOrItem=function(e){var n=this;({object:function(){e.value&&(n._isTextElement?n._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):n._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){n._isTextElement?n._addItem({value:e}):n._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[(0,y.getType)(e).toLowerCase()]()},e.prototype._findAndSelectChoiceByValue=function(e){var n=this,r=this._store.choices.find(function(r){return n.config.valueComparer(r.value,e)});r&&!r.selected&&this._addItem({value:r.value,label:r.label,choiceId:r.id,groupId:r.groupId,customProperties:r.customProperties,placeholder:r.placeholder,ke
vendor: 4,331 bytes, line 1
1yCode:r.keyCode})},e.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var e=this.passedElement.placeholderOption;return e?e.text:null}var n=this.config,r=n.placeholder,o=n.placeholderValue,i=this.passedElement.element.dataset;if(r){if(o)return o;if(i.placeholder)return i.placeholder}return null},e}();n.default=k},613:(e,n,r)=>{Object.defineProperty(n,"__esModule",{value:!0});var o=r(799),i=r(883),a=function(){function e(e){var n=e.element,r=e.type,o=e.classNames,i=e.position;this.element=n,this.classNames=o,this.type=r,this.position=i,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return e.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},e.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.shouldFlip=function(e,n,r){if("number"!=typeof e)return!1;var o=!1;return"auto"===this.position?(o=!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches)&&r.getBoundingClientRect().top-n<0&&(o=!1):"top"===this.position&&(o=!0),o},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype.open=function(e,n){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e,n,this.element)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},e.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},e.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===i.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===i.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.prototype.wrap=function(e){(0,o.wrap)(e,this.element)},e.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},e.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();n.default=a},217:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e){var n=e.element,r=e.type,o=e.classNames;this.element=n,this.classNames=o,this.type=r,this.isActive=!1}return Object.defineProperty(e.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.element.getBoundingClientRect().height},enumerable:!1,configurable:!0}),e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","fal
1se"),this.isActive=!1,this},e}();n.default=r},520:function(e,n,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.WrappedSelect=n.WrappedInput=n.List=n.Input=n.Container=n.Dropdown=void 0;var i=o(r(217));n.Dropdown=i.default;var a=o(r(613));n.Container=a.default;var l=o(r(11));n.Input=l.default;var s=o(r(624));n.List=s.default;var u=o(r(541));n.WrappedInput=u.default;var c=o(r(982));n.WrappedSelect=c.default},11:(e,n,r)=>{Object.defineProperty(n,"__esModule",{value:!0});var o=r(799),i=r(883),a=function(){function e(e){var n=e.element,r=e.type,o=e.classNames,i=e.preventPaste;this.element=n,this.type=r,this.classNames=o,this.preventPaste=i,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=n.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return(0,o.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},e.prototype.setWidth=function(){var e=this.element,n=e.style,r=e.value,o=e.placeholder;n.minWidth="".concat(o.length+1,"ch"),n.width="".concat(r.length+1,"ch")},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype._onInput=function(){this.type!==i.SELECT_ONE_TYPE&&this.setWidth()},e.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();n.default=a},624:(e,n,r)=>{Object.defineProperty(n,"__esModule",{value:!0});var o=r(883),i=function(){function e(e){var n=e.element;this.element=n,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.clear=function(){this.element.innerHTML=""},e.prototype.append=function(e){this.element.appendChild(e)},e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.hasChildren=function(){return this.element.hasChildNodes()},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,n){var r=this;if(e){var o=this.element.offsetHeight,i=this.element.scrollTop+o,a=e.offsetHeight,l=e.offsetTop+a,s=n>0?this.element.scrollTop+l-i:e.offsetTop;requestAnimationFrame(function(){r._animateScroll(s,n)})}},e.prototype._scrollDown=function(e,n,r){var o=(r-e)/n;this.element.scrollTop=e+(o>1?o:1)},e.prototype._scrollUp=function(e,n,r){var o=(e-r)/n;this.element.scrollTop=e-(o>1?o:1)},e.prototype._animateScroll=function(e,n){var r=this,i=o.SCROLLING_SPEED,a=this.element.scrollTop,l=!1;n>0?(this._scrollDown(a,i,e),a<e&&(l=!0)):(this._scrollUp(a,i,e),a>e&&(l=!0)),l&&requestAnimationFrame(function(){r._animateScroll(e,n)})},e}();n.default=i},730:(e,n,r)=>{Object.defineProperty(n,"__esModule",{value:!0});var o=r(799),i=function(){function e(e){var n=e.element,r=e.classNames;if(this.element=n,this.classNames=r,!(n instanceof HTMLInputElement)&&!(n instanceof HTMLSelectElement))throw TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice}
vendor: 10,231 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},e.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,n){(0,o.dispatchEvent)(this.element,e,n)},e}();n.default=i},541:function(e,n,r){var o,i=this&&this.__extends||(o=function(e,n){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var l=function(e){function n(n){var r=n.element,o=n.classNames,i=n.delimiter,a=e.call(this,{element:r,classNames:o})||this;return a.delimiter=i,a}return i(n,e),Object.defineProperty(n.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),n}(a(r(730)).default);n.default=l},982:function(e,n,r){var o,i=this&&this.__extends||(o=function(e,n){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var l=function(e){function n(n){var r=n.element,o=n.classNames,i=n.template,a=e.call(this,{element:r,classNames:o})||this;return a.template=i,a}return i(n,e),Object.defineProperty(n.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(e){var n=this,r=document.createDocumentFragment(),o=function(e){var o=n.template(e);r.appendChild(o)};e.forEach(function(e){return o(e)}),this.appendDocFragment(r)},enumerable:!1,configurable:!0}),n.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},n}(a(r(730)).default);n.default=l},883:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.SCROLLING_SPEED=n.SELECT_MULTIPLE_TYPE=n.SELECT_ONE_TYPE=n.TEXT_TYPE=n.KEY_CODES=n.ACTION_TYPES=n.EVENTS=void 0,n.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},n.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},n.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},n.TEXT_TYPE="text",n.SELECT_ONE_TYPE="select-one",n.SELECT_MULTIPLE_TYPE="select-multiple",n.SCROLLING_SPEED=4},789:(e,n,r)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.DEFAULT_CONFIG=n.DEFAULT_CLASSNAMES=void 0;var o=r(799);n.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},n.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:o.sortByAlpha,shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'.concat((0,o.sanitise)(e),'"</b>')},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,n){return e===n},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:n.DEFAULT_CLASSNAMES}},18:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},978:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},948:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},359:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},285:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},533:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},187:function(e,n,r){var o=this&&this.__createBinding||(Object.create?function(e,n,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(n,r);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(e,o,i)}:function(e,n,r,o){void 0===o&&(o=r),e[o]=n[r]}),i=this&&this.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||o(n,e,r)};Object.defineProperty(n,"__esModule",{value:!0}),i(r(18),n),i(r(978),n),i(r(948),n),i(r(359),n),i(r(285),n),i(r(533),n),i(r(287),n),i(r(132),n),i(r(837),n),i(r(598),n),i(r(369),n),i(r(37),n),i(r(47),n),i(r(923),n),i(r(876),n)},287:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},132:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},837:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},598:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},37:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},369:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},47:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},923:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},876:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},799:(e,n)=>{var r;Object.defineProperty(n,"__esModule",{value:!0}),n.parseCustomProperties=n.diff=n.cloneObject=n.existsInArray=n.dispatchEvent=n.sortByScore=n.sortByAlpha=n.strToEl=n.sanitise=n.isScrolledIntoView=n.getAdjacentEl=n.wrap=n.isType=n.getType=n.generateId=n.generateChars=n.getRandomNumber=void 0,n.getRandomNumber=function(e,n){return Math.floor(Math.random()*(n-e)+e)},n.generateChars=function(e){return Array.from({length:e},function(){return(0,n.getRandomNumber)(0,36).toString(36)}).join("")},n.generateId=function(e,r){var o=e.id||e.name&&"".concat(e.name,"-").concat((0,n.generateChars)(2))||(0,n.generateChars)(4);return o=o.replace(/(:|\.|\[|\]|,)/g,""),o="".concat(r,"-").concat(o)},n.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},n.isType=function(e,r){return null!=r&&(0,n.getType)(r)===e},n.wrap=function(e,n){return void 0===n&&(n=document.createElement("div")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(n,e.nextSibling):e.parentNode.appendChild(n)),n.appendChild(e)},n.getAdjacentEl=function(e,n,r){void 0===r&&(r=1);for(var o="".concat(r>0?"next":"previous","ElementSibling"),i=e[o];i&&!i.matches(n);)i=i[o];return i},n.isScrolledIntoView=function(e,n,r){return void 0===r&&(r=1),!!e&&(r>0?n.scrollTop+n.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=n.scrollTop)},n.sanitise=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},n.strToEl=(r=document.createElement("div"),function(e){var n=e.trim();r.innerHTML=n;for(var o=r.children[0];r.firstChild;)r.removeChild(r.firstChild);return o}
1),n.sortByAlpha=function(e,n){var r=e.value,o=e.label,i=n.value,a=n.label,l=void 0===a?i:a;return(void 0===o?r:o).localeCompare(l,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},n.sortByScore=function(e,n){var r=e.score,o=n.score;return(void 0===r?0:r)-(void 0===o?0:o)},n.dispatchEvent=function(e,n,r){void 0===r&&(r=null);var o=new CustomEvent(n,{detail:r,bubbles:!0,cancelable:!0});return e.dispatchEvent(o)},n.existsInArray=function(e,n,r){return void 0===r&&(r="value"),e.some(function(e){return"string"==typeof n?e[r]===n.trim():e[r]===n})},n.cloneObject=function(e){return JSON.parse(JSON.stringify(e))},n.diff=function(e,n){var r=Object.keys(e).sort(),o=Object.keys(n).sort();return r.filter(function(e){return 0>o.indexOf(e)})},n.parseCustomProperties=function(e){if(void 0!==e)try{return JSON.parse(e)}catch(n){return e}return{}}},273:function(e,n){var r=this&&this.__spreadArray||function(e,n,r){if(r||2==arguments.length)for(var o,i=0,a=n.length;i<a;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.defaultState=void 0,n.defaultState=[],n.default=function(e,o){switch(void 0===e&&(e=n.defaultState),void 0===o&&(o={}),o.type){case"ADD_CHOICE":var i=o,a={id:i.id,elementId:i.elementId,groupId:i.groupId,value:i.value,label:i.label||i.value,disabled:i.disabled||!1,selected:!1,active:!0,score:9999,customProperties:i.customProperties,placeholder:i.placeholder||!1};return r(r([],e,!0),[a],!1);case"ADD_ITEM":var l=o;if(l.choiceId>-1)return e.map(function(e){return e.id===parseInt("".concat(l.choiceId),10)&&(e.selected=!0),e});return e;case"REMOVE_ITEM":var s=o;if(s.choiceId&&s.choiceId>-1)return e.map(function(e){return e.id===parseInt("".concat(s.choiceId),10)&&(e.selected=!1),e});return e;case"FILTER_CHOICES":var u=o;return e.map(function(e){return e.active=u.results.some(function(n){var r=n.item,o=n.score;return r.id===e.id&&(e.score=o,!0)}),e});case"ACTIVATE_CHOICES":var c=o;return e.map(function(e){return e.active=c.active,e});case"CLEAR_CHOICES":return n.defaultState;default:return e}}},871:function(e,n){var r=this&&this.__spreadArray||function(e,n,r){if(r||2==arguments.length)for(var o,i=0,a=n.length;i<a;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.defaultState=void 0,n.defaultState=[],n.default=function(e,o){switch(void 0===e&&(e=n.defaultState),void 0===o&&(o={}),o.type){case"ADD_GROUP":var i=o;return r(r([],e,!0),[{id:i.id,value:i.value,active:i.active,disabled:i.disabled}],!1);case"CLEAR_CHOICES":return[];default:return e}}},655:function(e,n,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.defaultState=void 0;var i=r(791),a=o(r(52)),l=o(r(871)),s=o(r(273)),u=o(r(502)),c=r(799);n.defaultState={groups:[],items:[],choices:[],loading:!1};var f=(0,i.combineReducers)({items:a.default,groups:l.default,choices:s.default,loading:u.default});n.default=function(e,r){var o=e;if("CLEAR_ALL"===r.type)o=n.defaultState;else if("RESET_TO"===r.type)return(0,c.cloneObject)(r.state);return f(o,r)}},52:function(e,n){var r=this&&this.__spreadArray||function(e,n,r){if(r||2==arguments.length)for(var o,i=0,a=n.length;i<a;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.defaultState=void 0,n.defaultState=[],n.default=function(e,o){switch(void 0===e&&(e=n.defaultState),void 0===o&&(o={}),o.type){case"ADD_ITEM":var i=o;return r(r([],e,!0),[{id:i.id,choiceId:i.choiceId,groupId:i.groupId,value:i.value,label:i.label,active:!0,highlighted:!1,customProperties:i.customProperties,placeholder:i.placeholder||!1,keyCode:null}],!1).map(function(e){return e.highlighted=!1,e});case"REMOVE_ITEM":return e.map(function(e){return e.id===o.id&&(e.active=!1),e});case"HIGHLIGHT_ITEM":var a=o;return e.map(function(e){return e.id===a.id&&(e.highlighted=a.highlighted),e});default:return e}}},502:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.defaultState=void 0,n.defaultState=!1,n.default=function(e,r){return(void 0===e&&(e=n.defaultState),void 0===r&&(r={}),"SET_IS_LOADING"===r.type)?r.isLoading:e}},744:function(e,n,r){var o=this&&this.__spreadArray||function(e,n,r){if(r||2==arguments.length)for(var o,i=0,a=n.length;i<a;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))}
vendor: 6,075 bytes, line 1
1,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var a=r(791),l=i(r(655)),s=function(){function e(){this._store=(0,a.createStore)(l.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return e.prototype.subscribe=function(e){this._store.subscribe(e)},e.prototype.dispatch=function(e){this._store.dispatch(e)},Object.defineProperty(e.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeItems",{get:function(){return this.items.filter(function(e){return!0===e.active})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightedActiveItems",{get:function(){return this.items.filter(function(e){return e.active&&e.highlighted})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeChoices",{get:function(){return this.choices.filter(function(e){return!0===e.active})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectableChoices",{get:function(){return this.choices.filter(function(e){return!0!==e.disabled})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter(function(e){return!0!==e.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholderChoice",{get:function(){return o([],this.choices,!0).reverse().find(function(e){return!0===e.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroups",{get:function(){var e=this.groups,n=this.choices;return e.filter(function(e){var r=!0===e.active&&!1===e.disabled,o=n.some(function(e){return!0===e.active&&!1===e.disabled});return r&&o},[])},enumerable:!1,configurable:!0}),e.prototype.isLoading=function(){return this.state.loading},e.prototype.getChoiceById=function(e){return this.activeChoices.find(function(n){return n.id===parseInt(e,10)})},e.prototype.getGroupById=function(e){return this.groups.find(function(n){return n.id===e})},e}();n.default=s},686:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.default={containerOuter:function(e,n,r,o,i,a,l){var s=e.classNames.containerOuter,u=Object.assign(document.createElement("div"),{className:s});return u.dataset.type=a,n&&(u.dir=n),o&&(u.tabIndex=0),r&&(u.setAttribute("role",i?"combobox":"listbox"),i&&u.setAttribute("aria-autocomplete","list")),u.setAttribute("aria-haspopup","true"),u.setAttribute("aria-expanded","false"),l&&u.setAttribute("aria-labelledby",l),u},containerInner:function(e){var n=e.classNames.containerInner;return Object.assign(document.createElement("div"),{className:n})},itemList:function(e,n){var r=e.classNames,o=r.list,i=r.listSingle,a=r.listItems;return Object.assign(document.createElement("div"),{className:"".concat(o," ").concat(n?i:a)})},placeholder:function(e,n){var r,o=e.allowHTML,i=e.classNames.placeholder;return Object.assign(document.createElement("div"),((r={className:i})[o?"innerHTML":"innerText"]=n,r))},item:function(e,n,r){var o,i,a=e.allowHTML,l=e.classNames,s=l.item,u=l.button,c=l.highlightedState,f=l.itemSelectable,d=l.placeholder,p=n.id,h=n.value,y=n.label,m=n.customProperties,v=n.active,b=n.disabled,g=n.highlighted,w=n.placeholder,k=Object.assign(document.createElement("div"),((o={className:s})[a?"innerHTML":"innerText"]=y,o));if(Object.assign(k.dataset,{item:"",id:p,value:h,customProperties:m}),v&&k.setAttribute("aria-selected","true"),b&&k.setAttribute("aria-disabled","true"),w&&k.classList.add(d),k.classList.add(g?c:f),r){b&&k.classList.remove(f),k.dataset.deletable="";var O="Remove item",P=Object.assign(document.createElement("button"),((i={type:"button",className:u})[a?"innerHTML":"innerText"]=O,i));P.setAttribute("aria-label","".concat(O,": '").concat(h,"'")),P.dataset.button="",k.appendChild(P)}return k},choiceList:function(e,n){var r=e.classNames.list,o=Object.assign(document.createElement("div"),{className:r});return n||o.setAttribute("aria-multiselectable","true"),o.setAttribute("role","listbox"),o},choiceGroup:function(e,n){var r,o=e.allowHTML,i=e.classNames,a=i.group,l=i.groupHeading,s=i.itemDisabled,u=n.id,c=n.value,f=n.disabled,d=Object.assign(document.createElement("div"),{className:"".concat(a," ").concat(f?s:"")});return d.setAttribute("role","group"),Object.assign(d.dataset,{group:"",id:u,value:c}),f&&d.setAttribute("aria-disabled","true"),d.appendChild(Object.assign(document.createElement("div"),((r={className:l})[o?"innerHTML":"innerText"]=c,r))),d},choice:function(e,n,r){var o,i=e.allowHTML,a=e.classNames,l=a.item,s=a.itemChoice,u=a.itemSelectable,c=a.selectedState,f=a.itemDisabled,d=a.placeholder,p=n.id,h=n.value,y=n.label,m=n.groupId,v=n.elementId,b=n.disabled,g=n.selected,w=n.placeholder,k=Object.assign(document.createElement("div"),((o={id:v})[i?"innerHTML":"innerText"]=y,o.className="".concat(l," ").concat(s),o));return g&&k.classList.add(c),w&&k.classList.add(d),k.setAttribute("role",m&&m>0?"treeitem":"option"),Object.assign(k.dataset,{choice:"",id:p,value:h,selectText:r}),b?(k.classList.add(f),k.dataset.choiceDisabled="",k.setAttribute("aria-disabled","true")):(k.classList.add(u),k.dataset.choiceSelectable=""),k},input:function(e,n){var r=e.classNames,o=r.input,i=r.inputCloned,a=Object.assign(document.createElement("input"),{type:"text",name:"search_terms",className:"".concat(o," ").concat(i),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return a.setAttribute("role","textbox"),a.setAttribute("aria-autocomplete","list"),a.setAttribute("aria-label",n),a},dropdown:function(e){var n=e.classNames,r=n.list,o=n.listDropdown,i=document.createElement("div");
1return i.classList.add(r,o),i.setAttribute("aria-expanded","false"),i},notice:function(e,n,r){var o,i=e.allowHTML,a=e.classNames,l=a.item,s=a.itemChoice,u=a.noResults,c=a.noChoices;void 0===r&&(r="");var f=[l,s];return"no-choices"===r?f.push(c):"no-results"===r&&f.push(u),Object.assign(document.createElement("div"),((o={})[i?"innerHTML":"innerText"]=n,o.className=f.join(" "),o))},option:function(e){var n=e.label,r=e.value,o=e.customProperties,i=e.active,a=e.disabled,l=new Option(n,r,!1,i);return o&&(l.dataset.customProperties="".concat(o)),l.disabled=!!a,l}}},996:e=>{var n=function(e){var n;return!!e&&"object"==typeof e&&"[object RegExp]"!==(n=Object.prototype.toString.call(e))&&"[object Date]"!==n&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,n){return!1!==n.clone&&n.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,n):e}function i(e,n,r){return e.concat(n).map(function(e){return o(e,r)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(n){return e.propertyIsEnumerable(n)}):[])}function l(e,n){try{return n in e}catch(e){return!1}}function s(e,r,u){(u=u||{}).arrayMerge=u.arrayMerge||i,u.isMergeableObject=u.isMergeableObject||n,u.cloneUnlessOtherwiseSpecified=o;var c,f,d=Array.isArray(r);return d!==Array.isArray(e)?o(r,u):d?u.arrayMerge(e,r,u):(f={},(c=u).isMergeableObject(e)&&a(e).forEach(function(n){f[n]=o(e[n],c)}),a(r).forEach(function(n){l(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))||(l(e,n)&&c.isMergeableObject(r[n])?f[n]=(function(e,n){if(!n.customMerge)return s;var r=n.customMerge(e);return"function"==typeof r?r:s})(n,c)(e[n],r[n],c):f[n]=o(r[n],c))}),f)}s.all=function(e,n){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,n)},{})},e.exports=s},221:(e,n,r)=>{function o(e){return Array.isArray?Array.isArray(e):"[object Array]"===f(e)}r.r(n),r.d(n,{default:()=>W});let i=1/0;function a(e){return"string"==typeof e}function l(e){return"number"==typeof e}function s(e){return"object"==typeof e}function u(e){return null!=e}function c(e){return!e.trim().length}function f(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let d=e=>`Invalid value for key ${e}`,p=e=>`Pattern length exceeds max of ${e}.`,h=e=>`Missing ${e} property in key`,y=e=>`Property 'weight' in key '${e}' must be a positive integer`,m=Object.prototype.hasOwnProperty;class v{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(e=>{let r=b(e);n+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,n+=r.weight}),this._keys.forEach(e=>{e.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function b(e){let n=null,r=null,i=null,l=1,s=null;if(a(e)||o(e))i=e,n=g(e),r=w(e);else{if(!m.call(e,"name"))throw Error(h("name"));let o=e.name;if(i=o,m.call(e,"weight")&&(l=e.weight)<=0)throw Error(y(o));n=g(o),r=w(o),s=e.getFn}return{path:n,id:r,weight:l,src:i,getFn:s}}function g(e){return o(e)?e:e.split(".")}function w(e){return o(e)?e.join("."):e}var k={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,n)=>e.score===n.score?e.idx<n.idx?-1:1:e.score<n.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,n){let r=[],c=!1,d=(e,n,p)=>{if(u(e)){if(n[p]){var h,y;let m=n[p],v=e[m];if(u(v)){if(p===n.length-1&&(a(v)||l(v)||!0===(h=v)||!1===h||s(y=h)&&null!==y&&"[object Boolean]"==f(h)))r.push(null==v?"":function(e){if("string"==typeof e)return e;let n=e+"";return"0"==n&&1/e==-i?"-0":n}(v));else if(o(v)){c=!0;for(let e=0,r=v.length;e<r;e+=1)d(v[e],n,p+1)}else n.length&&d(v,n,p+1)}}else r.push(e)}};return d(e,a(n)?n.split("."):n,0),c?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let O=/[^ ]+/g;class P{constructor({getFn:e=k.getFn,fieldNormWeight:n=k.fieldNormWeight}={}){this.norm=function(e=1,n=3){let r=new Map,o=Math.pow(10,n);return{get(n){let i=n.match(O).length;if(r.has(i))return r.get(i);let a=1/Math.pow(i,.5*e),l=parseFloat(Math.round(a*o)/o);return r.set(i,l),l},clear(){r.clear()}}}(n,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,n)=>{this._keysMap[e.id]=n}
1)}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,a(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){let n=this.size();a(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_addString(e,n){if(!u(e)||c(e))return;let r={v:e,i:n,n:this.norm.get(e)};this.records.push(r)}_addObject(e,n){let r={i:n,$:{}};this.keys.forEach((n,i)=>{let l=n.getFn?n.getFn(e):this.getFn(e,n.path);if(u(l)){if(o(l)){let e=[],n=[{nestedArrIndex:-1,value:l}];for(;n.length;){let{nestedArrIndex:r,value:i}=n.pop();if(u(i)){if(a(i)&&!c(i)){let n={v:i,i:r,n:this.norm.get(i)};e.push(n)}else o(i)&&i.forEach((e,r)=>{n.push({nestedArrIndex:r,value:e})})}}r.$[i]=e}else if(a(l)&&!c(l)){let e={v:l,n:this.norm.get(l)};r.$[i]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function j(e,n,{getFn:r=k.getFn,fieldNormWeight:o=k.fieldNormWeight}={}){let i=new P({getFn:r,fieldNormWeight:o});return i.setKeys(e.map(b)),i.setSources(n),i.create(),i}function _(e,{errors:n=0,currentLocation:r=0,expectedLocation:o=0,distance:i=k.distance,ignoreLocation:a=k.ignoreLocation}={}){let l=n/e.length;if(a)return l;let s=Math.abs(o-r);return i?l+s/i:s?1:l}class S{constructor(e,{location:n=k.location,threshold:r=k.threshold,distance:o=k.distance,includeMatches:i=k.includeMatches,findAllMatches:a=k.findAllMatches,minMatchCharLength:l=k.minMatchCharLength,isCaseSensitive:s=k.isCaseSensitive,ignoreLocation:u=k.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:s,ignoreLocation:u},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;let c=(e,n)=>{this.chunks.push({pattern:e,alphabet:function(e){let n={};for(let r=0,o=e.length;r<o;r+=1){let i=e.charAt(r);n[i]=(n[i]||0)|1<<o-r-1}return n}(e),startIndex:n})},f=this.pattern.length;if(f>32){let e=0,n=f%32,r=f-n;for(;e<r;)c(this.pattern.substr(e,32),e),e+=32;if(n){let e=f-32;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){let{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(e=e.toLowerCase()),this.pattern===e){let n={isMatch:!0,score:0};return r&&(n.indices=[[0,e.length-1]]),n}let{location:o,distance:i,threshold:a,findAllMatches:l,minMatchCharLength:s,ignoreLocation:u}=this.options,c=[],f=0,d=!1;this.chunks.forEach(({pattern:n,alphabet:h,startIndex:y})=>{let{isMatch:m,score:v,indices:b}=function(e,n,r,{location:o=k.location,distance:i=k.distance,threshold:a=k.threshold,findAllMatches:l=k.findAllMatches,minMatchCharLength:s=k.minMatchCharLength,includeMatches:u=k.includeMatches,ignoreLocation:c=k.ignoreLocation}={}){let f;if(n.length>32)throw Error(p(32));let d=n.length,h=e.length,y=Math.max(0,Math.min(o,h)),m=a,v=y,b=s>1||u,g=b?Array(h):[];for(;(f=e.indexOf(n,v))>-1;)if(m=Math.min(_(n,{currentLocation:f,expectedLocation:y,distance:i,ignoreLocation:c}),m),v=f+d,b){let e=0;for(;e<d;)g[f+e]=1,e+=1}v=-1;let w=[],O=1,P=d+h,j=1<<d-1;for(let o=0;o<d;o+=1){let a=0,s=P;for(;a<s;){let e=_(n,{errors:o,currentLocation:y+s,expectedLocation:y,distance:i,ignoreLocation:c});e<=m?a=s:P=s,s=Math.floor((P-a)/2+a)}P=s;let u=Math.max(1,y-s+1),f=l?h:Math.min(y+s,h)+d,p=Array(f+2);p[f+1]=(1<<o)-1;for(let a=f;a>=u;a-=1){let l=a-1,s=r[e.charAt(l)];if(b&&(g[l]=+!!s),p[a]=(p[a+1]<<1|1)&s,o&&(p[a]|=(w[a+1]|w[a])<<1|1|w[a+1]),p[a]&j&&(O=_(n,{errors:o,currentLocation:l,expectedLocation:y,distance:i,ignoreLocation:c}))<=m){if(m=O,(v=l)<=y)break;u=Math.max(1,2*y-v)}}let k=_(n,{errors:o+1,currentLocation:y,expectedLocation:y,distance:i,ignoreLocation:c});if(k>m)break;w=p}let S={isMatch:v>=0,score:Math.max(.001,O)};if(b){let e=function(e=[],n=k.minMatchCharLength){let r=[],o=-1,i=-1,a=0;for(let l=e.length;a<l;a+=1){let l=e[a];l&&-1===o?o=a:l||-1===o||((i=a-1)-o+1>=n&&r.push([o,i]),o=-1)}return e[a-1]&&a-o>=n&&r.push([o,a-1]),r}(g,s);e.length?u&&(S.indices=e):S.isMatch=!1}return S}(e,n,h,{location:o+y,distance:i,threshold:a,findAllMatches:l,minMatchCharLength:s,includeMatches:r,ignoreLocation:u});m&&(d=!0),f+=v,m&&b&&(c=[...c,...b])});let h={isMatch:d,score:d?f/this.chunks.length:1};return d&&r&&(h.indices=c),h}}class C{constructor(e){this.pattern=e}static isMultiMatch(e){return E(e,this.multiRegex)}static isSingleMatch(e){return E(e,this.singleRegex)}search(){}}function E(e,n){let r=e.match(n);return r?r[1]:null}class x extends C{constructor(e,{location:n=k.location,threshold:r=k.threshold,distance:o=k.distance,includeMatches:i=k.includeMatches,findAllMatches:a=k.findAllMatches,minMatchCharLength:l=k.minMatchCharLength,isCaseSensitive:s=k.isCaseSensitive,ignoreLocation:u=k.ignoreLocation}={}){super(e),this._bitapSearch=new S(e,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:s,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class R extends C{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n,r=0,o=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,r))>-1;)r=n+i,o.push([n,r-1]);let a=!!o.length;return{isMatch:a,score:a?0:1,indices:o}}}let M=[class extends C{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}
vendor: 4,228 bytes, line 1
1search(e){let n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}},R,class extends C{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}},class extends C{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}},class extends C{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}},class extends C{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends C{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let n=e.indexOf(this.pattern),r=-1===n;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}},x],T=M.length,A=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,D=new Set([x.type,R.type]),V=[];function I(e,n){for(let r=0,o=V.length;r<o;r+=1){let o=V[r];if(o.condition(e,n))return new o(e,n)}return new S(e,n)}let L={AND:"$and",OR:"$or"},N={PATH:"$path",PATTERN:"$val"},F=e=>!!(e[L.AND]||e[L.OR]),B=e=>!!e[N.PATH],z=e=>!o(e)&&s(e)&&!F(e),U=e=>({[L.AND]:Object.keys(e).map(n=>({[n]:e[n]}))});function q(e,n,{auto:r=!0}={}){let i=e=>{let l=Object.keys(e),s=B(e);if(!s&&l.length>1&&!F(e))return i(U(e));if(z(e)){let o=s?e[N.PATH]:l[0],i=s?e[N.PATTERN]:e[o];if(!a(i))throw Error(d(o));let u={keyId:w(o),pattern:i};return r&&(u.searcher=I(i,n)),u}let u={children:[],operator:l[0]};return l.forEach(n=>{let r=e[n];o(r)&&r.forEach(e=>{u.children.push(i(e))})}),u};return F(e)||(e=U(e)),i(e)}function K(e,n){let r=e.matches;n.matches=[],u(r)&&r.forEach(e=>{if(!u(e.indices)||!e.indices.length)return;let{indices:r,value:o}=e,i={indices:r,value:o};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),n.matches.push(i)})}function H(e,n){n.score=e.score}class W{constructor(e,n={},r){this.options={...k,...n},this.options.useExtendedSearch,this._keyStore=new v(this.options.keys),this.setCollection(e,r)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof P))throw Error("Incorrect 'index' type");this._myIndex=n||j(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){u(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let n=[];for(let r=0,o=this._docs.length;r<o;r+=1){let i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,o-=1,n.push(i))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:n=-1}={}){let{includeMatches:r,includeScore:o,shouldSort:i,sortFn:s,ignoreFieldNorm:u}=this.options,c=a(e)?a(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:n=k.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:o,score:i})=>{let a=e?e.weight:null;r*=Math.pow(0===i&&a?Number.EPSILON:i,(a||1)*(n?1:o))}),e.score=r})}(c,{ignoreFieldNorm:u}),i&&c.sort(s),l(n)&&n>-1&&(c=c.slice(0,n)),function(e,n,{includeMatches:r=k.includeMatches,includeScore:o=k.includeScore}={}){let i=[];return r&&i.push(K),o&&i.push(H),e.map(e=>{let{idx:r}=e,o={item:n[r],refIndex:r};return i.length&&i.forEach(n=>{n(e,o)}),o})}(c,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(e){let n=I(e,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:e,i:r,n:i})=>{if(!u(e))return;let{isMatch:a,score:l,indices:s}=n.searchIn(e);a&&o.push({item:e,idx:r,matches:[{score:l,value:e,norm:i,indices:s}]})}),o}_searchLogical(e){let n=q(e,this.options),r=(e,n,o)=>
1{if(!e.children){let{keyId:r,searcher:i}=e,a=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(n,r),searcher:i});return a&&a.length?[{idx:o,item:n,matches:a}]:[]}let i=[];for(let a=0,l=e.children.length;a<l;a+=1){let l=e.children[a],s=r(l,n,o);if(s.length)i.push(...s);else if(e.operator===L.AND)return[]}return i},o=this._myIndex.records,i={},a=[];return o.forEach(({$:e,i:o})=>{if(u(e)){let l=r(n,e,o);l.length&&(i[o]||(i[o]={idx:o,item:e,matches:[]},a.push(i[o])),l.forEach(({matches:e})=>{i[o].matches.push(...e)}))}}),a}_searchObjectList(e){let n=I(e,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:e,i:o})=>{if(!u(e))return;let a=[];r.forEach((r,o)=>{a.push(...this._findMatches({key:r,value:e[o],searcher:n}))}),a.length&&i.push({idx:o,item:e,matches:a})}),i}_findMatches({key:e,value:n,searcher:r}){if(!u(n))return[];let i=[];if(o(n))n.forEach(({v:n,i:o,n:a})=>{if(!u(n))return;let{isMatch:l,score:s,indices:c}=r.searchIn(n);l&&i.push({score:s,key:e,value:n,idx:o,norm:a,indices:c})});else{let{v:o,n:a}=n,{isMatch:l,score:s,indices:u}=r.searchIn(o);l&&i.push({score:s,key:e,value:o,norm:a,indices:u})}return i}}W.version="6.6.2",W.createIndex=j,W.parseIndex=function(e,{getFn:n=k.getFn,fieldNormWeight:r=k.fieldNormWeight}={}){let{keys:o,records:i}=e,a=new P({getFn:n,fieldNormWeight:r});return a.setKeys(o),a.setIndexRecords(i),a},W.config=k,W.parseQuery=q,function(...e){V.push(...e)}(class{constructor(e,{isCaseSensitive:n=k.isCaseSensitive,includeMatches:r=k.includeMatches,minMatchCharLength:o=k.minMatchCharLength,ignoreLocation:i=k.ignoreLocation,findAllMatches:a=k.findAllMatches,location:l=k.location,threshold:s=k.threshold,distance:u=k.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:o,findAllMatches:a,ignoreLocation:i,location:l,threshold:s,distance:u},this.pattern=n?e:e.toLowerCase(),this.query=function(e,n={}){return e.split("|").map(e=>{let r=e.trim().split(A).filter(e=>e&&!!e.trim()),o=[];for(let e=0,i=r.length;e<i;e+=1){let i=r[e],a=!1,l=-1;for(;!a&&++l<T;){let e=M[l],r=e.isMultiMatch(i);r&&(o.push(new e(r,n)),a=!0)}if(!a)for(l=-1;++l<T;){let e=M[l],r=e.isSingleMatch(i);if(r){o.push(new e(r,n));break}}}return o})}(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){let n=this.query;if(!n)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:o}=this.options;e=o?e:e.toLowerCase();let i=0,a=[],l=0;for(let o=0,s=n.length;o<s;o+=1){let s=n[o];a.length=0,i=0;for(let n=0,o=s.length;n<o;n+=1){let o=s[n],{isMatch:u,indices:c,score:f}=o.search(e);if(u){if(i+=1,l+=f,r){let e=o.constructor.type;D.has(e)?a=[...a,...c]:a.push(c)}}else{l=0,i=0,a.length=0;break}}if(i){let e={isMatch:!0,score:l/i};return r&&(e.indices=a),e}}return{isMatch:!1,score:1}}})},791:(e,n,r)=>{function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach(function(n){!function(e,n,r){var i;i=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"===o(i)?i:String(i))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}r.r(n),r.d(n,{__DO_NOT_USE__ActionTypes:()=>c,applyMiddleware:()=>v,bindActionCreators:()=>y,combineReducers:()=>p,compose:()=>m,createStore:()=>f,legacy_createStore:()=>d});var s="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function f(e,n,r){if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(l(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw Error(l(1));return r(f)(e,n)}if("function"!=typeof e)throw Error(l(2));var o,i=e,a=n,u=[],d=u,p=!1;function h(){d===u&&(d=u.slice())}function y(){if(p)throw Error(l(3));return a}function m(e){if("function"!=typeof e)throw Error(l(4));if(p)throw Error(l(5));var n=!0;return h(),d.push(e),function(){if(n){if(p)throw Error(l(6));n=!1,h();var r=d.indexOf(e);d.splice(r,1),u=null}}}function v(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}(e))throw Error(l(7));if(void 0===e.type)throw Error(l(8));if(p)throw Error(l(9));try{p=!0,a=i(a,e)}finally{p=!1}for(var n=u=d,r=0;r<n.length;r++)(0,n[r])();return e}return v({type:c.INIT}),(o={dispatch:v,subscribe:m,getState:y,replaceReducer:function(e){if("function"!=typeof e)throw Error(l(10));i=e,v({type:c.REPLACE})}})[s]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(l(11));function n(){e.next&&e.next(y())}return n(),{unsubscribe:m(n)}}})[s]=function(){return this},e},o}var d=f;function p(e){for(var n,r=Object.keys(e),o={},i=0;i<r.length;i++){var a=r[i];"function"==typeof e[a]&&(o[a]=e[a])}var s=Object.keys(o);try{!function(e){Object.keys(e).forEach(function(n){var r=e[n];if(void 0===r(void 0,{type:c.INIT}))throw Error(l(12));if(void 0===r(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw Error(l(13))})}(o)}catch(e){n=e}return function(e,r){if(void 0===e&&(e={}),n)throw n;for(var i=!1,a={},u=0;u<s.length;u++){var c=s[u],f=o[c],d=e[c],p=f(d,r);if(void 0===p)throw r&&r.type,Error(l(14));a[c]=p,i=i||p!==d}return(i=i||s.length!==Object.keys(e).length)?a:e}}function h(e,n){return function(){return n(e.apply(this,arguments))}}function y(e,n){if("function"==typeof e)return h(e,n);if("object"!=typeof e||null===e)throw Error(l(16));var r={};for(var o in e){var i=e[o];"function"==typeof i&&(r[o]=h(i,n))}return r}function m(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?function(e){return e}:1===n.length?n[0]:n.reduce(function(e,n){return function(){return e(n.apply(void 0,arguments))}})}function v(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),o=function(){throw Error(l(15))},i={getState:r.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=n.map(function(e){return e(i)});return o=m.apply(void 0,s)(r.dispatch),a(a({},r),{},{dispatch:o})}}}}},n={};function r(o){var i=n[o];if(void 0!==i)return i.exports;var a=n[o]={exports:{}};return e[o].call(a.exports,a,a.exports,r),a.exports}r.n=e=>
vendor: 4,926 bytes, line 1
1{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var o in n)r.o(n,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{r.d(o,{default:()=>i});var e=r(373),n=r.n(e);r(187),r(883),r(789),r(686);let i=n()})(),o=o.default})()},14441:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(28226);n.default={framework:"semantic",templates:o.default}},28226:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(82080);n.default={semantic:o.default}},37703:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<div\n  ",e.attrs)r+="\n    ","class"===o?r+="\n      "+(null==(n=o)?"":n)+'="ui message '+(null==(n=e.attrs[o])?"":n)+'"\n    ':r+="\n      "+(null==(n=o)?"":n)+'="'+(null==(n=e.attrs[o])?"":n)+'"\n    ',r+="\n  ";return r+("\n>"+(null==(n=e.message)?"":n))+"</div>\n"}},28553:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(37703);n.default={form:o.default}},45098:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio builder ui grid formbuilder">\n  <div class="four wide column formcomponents">\n    '+(null==(n=e.sidebar)?"":n)+'\n  </div>\n  <div class="twelve wide column formarea" ref="form">\n    '+(null==(n=e.form)?"":n)+"\n  </div>\n</div>\n"}},96737:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(45098);n.default={form:o.default}},83778:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="builder-component" ref="dragComponent">\n  <div class="component-btn-group" data-noattach="true">\n    <div class="ui button mini icon primary component-settings-button-edit", ref="editComponent">\n      <i class="'+(null==(n=e.iconClass("cog"))?"":n)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-copy" ref="copyComponent">\n      <i class="'+(null==(n=e.iconClass("copy"))?"":n)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-paste" ref="pasteComponent">\n      <i class="'+(null==(n=e.iconClass("save"))?"":n)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-edit-json" ref="editJson">\n      <i class="'+(null==(n=e.iconClass("wrench"))?"":n)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-move" ref="moveComponent">\n      <i class="'+(null==(n=e.iconClass("move"))?"":n)+'"></i>\n    </div>\n    <div class="ui button mini icon secondary component-settings-button-remove" ref="removeComponent">\n      <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'"></i>\n    </div>\n  </div>\n  '+(null==(n=e.html)?"":n)+"\n</div>\n"}},73606:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(83778);n.default={form:o.default}},97036:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="builder-components drag-container '+(null==(n=e.type)?"":n)+'" ref="'+(null==(n=e.key)?"":n)+'-container">\n  '+(null==(n=e.html)?"":n)+"\n</div>\n"}},40228:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(97036);n.default={form:o.default}},24827:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui grid">\n  <div class="eight wide column">\n    <h3 class="lead">'+(null==(n=e.t(e.componentInfo.title))?"":n)+" "+(null==(n=e.t("Component"))?"":n)+'</h3>\n  </div>\n  <div class="eight wide column">\n    <div class="right floated" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(n=e.componentInfo.documentation)?"":n)+'" target="_blank">\n        <i class="'+(null==(n=e.iconClass("new-window"))?"":n)+'"> '+(null==(n=e.t("Help"))?"":n)+'</i>\n      </a>\n    </div>\n  </div>\n</div>\n<div class="ui grid">\n  <div class="',e.preview?r+="eight":r+="sixteen",r+=' wide column">\n    <div ref="editForm">\n        '+(null==(n=e.editForm)?"":n)+"\n    </div>\n    ",e.preview||(r+='\n    <div style="margin-top: 10px;">\n      <button class="ui button primary" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n      <button class="ui button default" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n      <button class="ui button negative" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n    </div>\n    "),r+="\n  </div>
1\n  ",e.preview&&(r+='\n  <div class="eight wide column">\n    <div class="ui top attached block header">\n      '+(null==(n=e.t("Preview"))?"":n)+'\n    </div>\n    <div class="ui bottom attached segment" ref="preview">\n      '+(null==(n=e.preview)?"":n)+"\n    </div>\n    ",e.componentInfo.help&&(r+='\n    <div class="ui secondary segment formio-settings-help">\n      '+(null==(n=e.componentInfo.help)?"":n)+"\n    </div>\n    "),r+='\n    <div style="margin-top: 10px;">\n      <button class="ui button primary" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n      <button class="ui button default" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n      <button class="ui button negative" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n    </div>\n  </div>\n  "),r+="\n</div>\n"}},96992:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(24827);n.default={form:o.default}},67329:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div\n  class="ui info message no-drag"\n  style="text-align:center; margin-bottom: 5px;"\n  role="alert"\n  data-noattach="true"\n  data-position="'+(null==(n=e.position)?"":n)+'"\n>\n  Drag and Drop a form component\n</div>\n'}},40468:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(67329);n.default={form:o.default}},62904:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div id="builder-sidebar-'+(null==(n=e.id)?"":n)+'" class="ui segments" ref="sidebar">\n  ',e.groups.forEach(function(e){r+="\n    "+(null==(n=e)?"":n)+"\n  "}),r+="\n</div>\n"}},34484:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(62904);n.default={form:o.default}},35267:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui segment secondary form-builder-panel" style="padding: 0" ref="group-panel-'+(null==(n=e.groupKey)?"":n)+'">\n  <div class="form-builder-group-header">\n    <h5 class="panel-title">\n      <button\n        class="ui button basic fluid builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(n=e.groupKey)?"":n)+'"\n        data-parent="'+(null==(n=e.groupId)?"":n)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(n=e.t(e.group.title))?"":n)+'\n      </button>\n    </h5>\n  </div>\n</div>\n<div class="ui segment" style="padding: 0">\n  <div\n    class="panel-collapse collapse '+(n=e.group.default?" in":"")+'"\n    data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n    data-default="'+(null==(n=e.group.default)?"":n)+'"\n    id="group-'+(null==(n=e.groupKey)?"":n)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(n=e.groupKey)?"":n)+'" class="card-body panel-body no-drop" ref="sidebar-container">\n      ',e.group.componentOrder.forEach(function(o){r+='\n      <span\n        data-group="'+(null==(n=e.groupKey)?"":n)+'"\n        data-key="'+(null==(n=e.group.components[o].key)?"":n)+'"\n        data-type="'+(null==(n=e.group.components[o].schema.type)?"":n)+'"\n        class="ui button mini primary fluid formcomponent drag-copy"\n      >\n        ',e.group.components[o].icon&&(r+='\n          <i class="'+(null==(n=e.iconClass(e.group.components[o].icon))?"":n)+'" style="margin-right: 5px;"></i>\n        '),r+="\n        "+(null==(n=e.t(e.group.components[o].title))?"":n)+"\n        </span>\n      "}),r+="\n      "+(null==(n=e.subgroups.join(""))?"":n)+"\n    </div>\n  </div>\n</div>\n"}},29622:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(35267);n.default={form:o.default}},51773:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="formio builder ui grid formbuilder">\n  <div class="four wide column formcomponents">\n    '+(null==(n=e.sidebar)?"":n)+'\n  </div>\n  <div class="twelve wide column formarea">\n    <div class="ui breadcrumb" style="margin-bottom: 0.5em">
1\n      ',e.pages.forEach(function(o,i){r+='\n        <div title="'+(null==(n=o.title)?"":n)+'" class="',i===e.self.page?r+=" active section ":r+=" section ",r+=' wizard-page-label" ref="gotoPage">'+(null==(n=o.title)?"":n)+'</div>\n        <div class="divider">/</div>\n      '}),r+='\n      <div title="'+(null==(n=e.t("Create Page"))?"":n)+'" class="section wizard-page-label" ref="addPage"><i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t("Page"))?"":n)+'</div>\n    </div>\n    <div ref="form">\n      '+(null==(n=e.form)?"":n)+"\n    </div>\n  </div>\n</div>\n"}},60844:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(51773);n.default={form:o.default}},46085:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<"+(null==(n=e.input.type)?"":n)+'\n  ref="button"\n  class="ui button '+(null==(n=e.transform("theme",e.component.theme))?"":n)+" "+(null==(n=e.component.customClass)?"":n)+'"\n  ',e.input.attr)r+="\n  "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n  ';return r+="\n>\n",e.component.leftIcon&&(r+='<i class="'+(null==(n=e.component.leftIcon)?"":n)+'"></i>&nbsp;'),r+="\n"+(null==(n=e.input.content)?"":n)+"\n",e.component.tooltip&&(r+='\n  <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n'),r+="\n",e.component.rightIcon&&(r+='&nbsp;<i class="'+(null==(n=e.component.rightIcon)?"":n)+'"></i>'),r+="\n</"+(null==(n=e.input.type)?"":n)+'>\n<div ref="buttonMessageContainer">\n  <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},33057:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return"\n"}},12778:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(46085),i=r(33057);n.default={form:o.default,html:i.default}},62615:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+='<div class="ui checkbox">\n  <'+(null==(n=e.input.type)?"":n)+'\n    ref="input"\n    id="'+(null==(n=e.id)?"":n)+'"\n    ',e.input.attr)r+="\n    "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n    ';return r+="\n    ",e.checked&&(r+="checked=true"),r+="\n    >\n  </"+(null==(n=e.input.type)?"":n)+'>\n  <label class="'+(null==(n=e.input.labelClass)?"":n)+'" for="'+(null==(n=e.id)?"":n)+'">\n    '+(null==(n=e.input.content)?"":n)+"\n    ",e.self.labelIsHidden()||(r+="<span>"+(null==(n=e.input.label)?"":n)+"</span>"),r+="\n  </label>\n  ",e.component.tooltip&&(r+='\n    <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n  '),r+="\n</div>\n"}},49554:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label class="'+(null==(n=e.input.labelClass)?"":n)+'">\n    '+(null==(n=e.input.content)?"":n)+"\n    ",e.self.labelIsHidden()||(r+="<span>"+(null==(n=e.input.label)?"":n)+"</span>"),r+='\n</label>\n<div ref="value">',e.checked?r+="True":r+="False",r+="</div>\n"}},25659:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(62615),i=r(49554);n.default={form:o.default,html:i.default}},60288:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui grid" style="width: 100%">\n    ',e.component.columns.forEach(function(o,i){r+='\n    <div class="'+(null==(n=e.transform("columns",o.width))?"":n)+' wide column" ref="'+(null==(n=e.columnKey)?"":n)+'">\n      '+(null==(n=e.columnComponents[i])?"":n)+"\n    </div>\n    "}),r+="\n</div>\n"}},86273:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(60288);n.default={form:o.default}},37080:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div id="'+(null==(n=e.id)?"":n)+'" class="field '+(null==(n=e.classes)?"":n)+'"',e.styles&&(r+=' style="'+(null==(n=e.styles)?"":n)+'"'),r+=' ref="component">\n  ',e.visible&&(r+="\n  "+(null==(n=e.children)?"":n)+'\n  <div ref="messageContainer"></div>\n  '),r+="\n</div>\n"}},79575:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(37080);n.default={form:o.default}},9195:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={"has-error":"error","is-invalid":"error","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active"}}
1,61248:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui table datagrid-table\n    '+(n=e.component.striped?"striped":"")+"\n    "+(n=e.component.bordered?"celled":"")+"\n    "+(n=e.component.hover?"selectable":"")+"\n    "+(n=e.component.condensed?"compact":"padded")+'\n    " ',e.component.layoutFixed&&(r+='style="table-layout: fixed;"'),r+=">\n  ",e.hasHeader&&(r+="\n  <thead>\n    <tr>\n      ",e.component.reorder&&(r+="<th></th>"),r+="\n      ",e.columns.forEach(function(o){r+='\n        <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n          '+(null==(n=o.hideLabel?"":e.t(o.label||o.title))?"":n)+"\n          ",o.tooltip&&(r+=' <i ref="tooltip" data-title="'+(null==(n=o.tooltip)?"":n)+'" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n        </th>\n      "}),r+="\n      ",e.hasExtraColumn&&(r+="\n      <th>\n        ",e.hasAddButton&&e.hasTopSubmit&&(r+='\n        <button class="ui button primary" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another"))?"":n)+"\n        </button>\n        "),r+="\n      </th>\n      "),r+="\n    </tr>\n  </thead>\n  "),r+='\n  <tbody ref="'+(null==(n=e.datagridKey)?"":n)+'-tbody">\n    ',e.rows.forEach(function(o,i){r+="\n    ",e.hasGroups&&e.groups[i]&&(r+='\n    <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-group-header" class="datagrid-group-header'+(n=e.hasToggle?" clickable":"")+'">\n      <td\n        ref="'+(null==(n=e.datagridKey)?"":n)+'-group-label"\n        colspan="'+(null==(n=e.numColumns)?"":n)+'"\n        class="datagrid-group-label">'+(null==(n=e.groups[i].label)?"":n)+"</td>\n    </tr>\n    "),r+='\n    <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-row">\n      ',e.component.reorder&&(r+='\n        <td>\n          <button type="button" class="formio-drag-button ui icon button"><i aria-hidden="true" class="bars icon"></i></button>\n        </td>\n      '),r+="\n      ",e.columns.forEach(function(i){r+='\n        <td ref="'+(null==(n=e.datagridKey)?"":n)+'">\n          '+(null==(n=o[i.key])?"":n)+"\n        </td>\n      "}),r+="\n      ",e.hasExtraColumn&&(r+="\n        ",e.hasRemoveButtons&&(r+='\n        <td>\n          <button type="button" class="btn-xss ui icon button secondary formio-'+(null==(n=e.component.type)?"":n)+'-remove" ref="'+(null==(n=e.datagridKey)?"":n)+'-removeRow">\n            <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'"></i>\n          </button>\n        </td>\n        '),r+="\n        ",e.canAddColumn&&(r+='\n        <td ref="'+(null==(n=e.key)?"":n)+'-container">\n          '+(null==(n=e.placeholder)?"":n)+"\n        </td>\n        "),r+="\n      "),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n  ",e.hasAddButton&&e.hasBottomSubmit&&(r+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(n=e.numColumns+1)?"":n)+'">\n        <button class="ui button primary" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another"))?"":n)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),r+="\n</table>\n"}},63231:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui table datagrid-table\n    '+(n=e.component.striped?"striped":"")+"\n    "+(n=e.component.bordered?"celled":"")+"\n    "+(n=e.component.hover?"selectable":"")+"\n    "+(n=e.component.condensed?"compact":"padded")+'\n    ">\n  ',e.hasHeader&&(r+="\n  <thead>\n    <tr>\n      ",e.columns.forEach(function(o){r+='\n        <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n          '+(null==(n=o.hideLabel?"":e.t(o.label||o.title))?"":n)+"\n          ",o.tooltip&&(r+=' <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n        </th>\n      "}),r+="\n    </tr>\n  </thead>\n  "),r+="\n  <tbody>\n    ",e.rows.forEach(function(o){r+="\n    <tr>\n      ",e.columns.forEach(function(i){r+='\n        <td ref="'+(null==(n=e.datagridKey)?"":n)+'">\n          '+(null==(n=o[i.key])?"":n)+"\n        </td>\n      "}),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},58393:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(61248),i=r(63231);n.default={form:o.default,html:i.default}},94874:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui grid">
1\n  ',e.dayFirst&&e.showDay&&(r+='\n  <div class="four wide column">\n    <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="">'+(null==(n=e.t("Day"))?"":n)+"</label>\n    "+(null==(n=e.day)?"":n)+"\n  </div>\n  "),r+="\n  ",e.showMonth&&(r+='\n  <div class="five wide column">\n    <label for="'+(null==(n=e.component.key)?"":n)+'-month" class="">'+(null==(n=e.t("Month"))?"":n)+"</label>\n    "+(null==(n=e.month)?"":n)+"\n  </div>\n  "),r+="\n  ",!e.dayFirst&&e.showDay&&(r+='\n  <div class="four wide column">\n    <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="">'+(null==(n=e.t("Day"))?"":n)+"</label>\n    "+(null==(n=e.day)?"":n)+"\n  </div>\n  "),r+="\n  ",e.showYear&&(r+='\n  <div class="seven wide column">\n    <label for="'+(null==(n=e.component.key)?"":n)+'-year" class="">'+(null==(n=e.t("Year"))?"":n)+"</label>\n    "+(null==(n=e.year)?"":n)+"\n  </div>\n  "),r+='\n</div>\n<input name="data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},79060:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(94874);n.default={form:o.default}},75058:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="editgrid-listgroup ui celled list">\n  ',e.header&&(r+='\n  <div class="item list-group-header">\n    '+(null==(n=e.header)?"":n)+"\n  </div>\n  "),r+="\n  ",e.rows.forEach(function(o,i){r+='\n  <div class="item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n    '+(null==(n=o)?"":n)+"\n    ",e.openRows[i]&&!e.readOnly&&(r+='\n    <div class="editgrid-actions">\n      <button class="ui button primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save"))?"":n)+"</button>\n      ",e.component.removeRow&&(r+='\n      <button class="ui button secondary" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel"))?"":n)+"</button>\n      "),r+="\n    </div>\n    "),r+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(n=e.errors[i])?"":n)+"\n      </div>\n    </div>\n  </div>\n  "}),r+="\n  ",e.footer&&(r+='\n  <div class="item list-group-footer">\n    '+(null==(n=e.footer)?"":n)+"\n  </div>\n  "),r+="\n</div>\n",!e.readOnly&&e.hasAddButton&&(r+='\n<button class="ui button primary" ref="'+(null==(n=e.ref.addRow)?"":n)+'">\n  <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another"))?"":n)+"\n</button>\n"),r+="\n"}},70781:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="editgrid-listgroup ui celled list">\n  ',e.header&&(r+='\n  <div class="item list-group-header">\n    '+(null==(n=e.header)?"":n)+"\n  </div>\n  "),r+="\n  ",e.rows.forEach(function(o,i){r+='\n  <div class="item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n    '+(null==(n=o)?"":n)+"\n    ",e.openRows[i]&&!e.readOnly&&(r+='\n    <div class="editgrid-actions">\n      <button class="ui button primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save"))?"":n)+"</button>\n      ",e.component.removeRow&&(r+='\n      <button class="ui button secondary" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel"))?"":n)+"</button>\n      "),r+="\n    </div>\n    "),r+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(n=e.errors[i])?"":n)+"\n      </div>\n    </div>\n  </div>\n  "}),r+="\n  ",e.footer&&(r+='\n  <div class="item list-group-footer">\n    '+(null==(n=e.footer)?"":n)+"\n  </div>\n  "),r+="\n</div>\n"}},86186:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(75058),i=r(70781);n.default={form:o.default,html:i.default}},61344:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+="<p>"+(null==(n=e.t("error"))?"":n)+"</p>\n<ul>
1\n  ",e.errors.forEach(function(o){r+='\n    <li\n      data-component-key = "'+(null==(n=o.keyOrPath)?"":n)+'"\n      aria-label = "'+(null==(n=o.message)?"":n)+". "+(null==(n=e.t("errorsListNavigationMessage"))?"":n)+'"\n      ref = "errorRef"\n      tabIndex = "0",\n      style = "cursor:pointer;"\n    ><span>'+(null==(n=o.message)?"":n)+"</span></li>\n  "}),r+="\n</ul>\n\n"}},30717:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(61344);n.default={form:o.default}},79436:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="field-wrapper\n  '+(n=e.isRightPosition?"field-wrapper--reverse":"")+'">\n  ',e.label.hidden||(r+='\n    <div class="field-label\n      '+(n=e.isRightAlign?"field-label--right":"")+'"\n      style="'+(null==(n=e.labelStyles)?"":n)+'">\n    '+(null==(n=e.labelMarkup)?"":n)+"\n    </div>\n  "),r+="\n\n  ",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n    <div class="field-label\n      '+(n=e.isRightAlign?"field-label--right":"")+'"\n      style="'+(null==(n=e.labelStyles)?"":n)+'">\n      <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n    </div>\n  '),r+='\n\n  <div class="filed-content" style="'+(null==(n=e.contentStyles)?"":n)+'">\n    '+(null==(n=e.element)?"":n)+"\n  </div>\n</div>\n\n",e.component.description&&(r+='\n  <div class="form-text text-muted">'+(null==(n=e.t(e.component.description))?"":n)+"</div>\n"),r+="\n"}},62350:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(r+="\n  "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n    <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n'),r+="\n\n"+(null==(n=e.element)?"":n)+"\n",e.label.hidden||"bottom"!==e.label.labelPosition||(r+="\n  "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n",e.component.description&&(r+='\n  <div class="help-block">'+(null==(n=e.t(e.component.description))?"":n)+"</div>\n"),r+="\n"}},53618:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(62350),i=r(79436);n.default={form:o.default,align:i.default}},10491:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<fieldset>\n  <legend ref="header" class="'+(n=e.component.collapsible?"formio-clickable":"")+'">\n    '+(null==(n=e.t(e.component.legend))?"":n)+"\n    ",e.component.tooltip&&(r+='\n      <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+'" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n    '),r+="\n  </legend>  ",e.collapsed||(r+='\n  <div class="card-body" ref="'+(null==(n=e.nestedKey)?"":n)+'">\n    '+(null==(n=e.children)?"":n)+"\n  </div>\n  "),r+="\n</fieldset>\n"}},9353:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(10491);n.default={form:o.default}},64085:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.self.imageUpload?(r+="\n  <div>\n    ",e.files.forEach(function(o){r+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(n=o.originalName||o.name)?"":n)+'" style="width:'+(null==(n=e.component.imageSize)?"":n)+'px">\n          ',e.disabled||(r+='\n            <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i>\n          '),r+="\n        </span>\n      </div>\n    "}),r+="\n  </div>\n"):(r+='\n  <div class="ui celled list">\n    <div class="item">\n      <div class="ui grid">\n        ',e.disabled||(r+='\n          <div class="one wide column"></div>\n        '),r+='\n        <div class="',e.self.hasTypes?r+="nine":r+="twelve",r+=' wide column"><strong>'+(null==(n=e.t("File Name"))?"":n)+'</strong></div>\n        <div class="three wide column"><strong>'+(null==(n=e.t("Size"))?"":n)+"</strong></div>\n        ",e.self.hasTypes&&(r+='\n          <div class="three wide column"><strong>'+(null==(n=e.t("Type"))?"":n)+"</strong></div>\n        "),r+="\n      </div>\n    </div>
1\n    ",e.files.forEach(function(o){r+='\n      <li class="list-group-item">\n        <div class="ui grid">\n          ',e.disabled||(r+='\n            <div class="one wide column"><i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i></div>\n          '),r+='\n          <div class="',e.self.hasTypes?r+="nine":r+="twelve",r+=' wide column">\n            ',e.component.uploadOnly?r+="\n              "+(null==(n=o.originalName||o.name)?"":n)+"\n            ":r+='\n              <a href="'+(null==(n=o.url||"#")?"":n)+'" target="_blank" ref="fileLink">'+(null==(n=o.originalName||o.name)?"":n)+"</a>\n            ",r+='\n          </div>\n          <div class="three wide column">'+(null==(n=e.fileSize(o.size))?"":n)+"</div>\n          ",e.self.hasTypes&&!e.disabled&&(r+='\n            <div class="three wide column">\n              <select class="file-type" ref="fileType">\n                ',e.component.fileTypes.map(function(e){r+='\n                  <option class="test" value="'+(null==(n=e.value)?"":n)+'" ',e.label===o.fileType&&(r+='selected="selected"'),r+=">"+(null==(n=e.label)?"":n)+"</option>\n                "}),r+="\n              </select>\n            </div>\n          "),r+="\n          ",e.self.hasTypes&&e.disabled&&(r+='\n          <div class="three wide column">'+(null==(n=o.fileType)?"":n)+"</div>\n          "),r+="\n        </div>\n      </li>\n    "}),r+="\n    </div>\n"),r+="\n",e.disabled||!e.component.multiple&&e.files.length||(r+="\n  ",e.self.useWebViewCamera?r+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(n=e.t("Gallery"))?"":n)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Camera"))?"":n)+"</button>\n    </div>\n  ":e.self.cameraMode?r+='\n    <div>\n      <video class="video" autoplay="true" ref="videoPlayer"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Take Picture"))?"":n)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(n=e.t("Switch to file upload"))?"":n)+"</button>\n  ":(r+='\n    <div class="fileSelector" ref="fileDrop" '+(n=e.fileDropHidden?"hidden":"")+'>\n      <i class="'+(null==(n=e.iconClass("cloud-upload"))?"":n)+'"></i> '+(null==(n=e.t("Drop files to attach,"))?"":n)+"\n        ",e.self.imageUpload&&e.component.webcam&&(r+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(n=e.t("Use Camera,"))?"":n)+"</a>\n        "),r+="\n        "+(null==(n=e.t("or"))?"":n)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(n=e.t("browse"))?"":n)+"</a>\n    </div>\n  "),r+="\n"),r+="\n",e.statuses.forEach(function(o){r+='\n  <div class="file '+(n="error"===e.statuses.status?" has-error":"")+'">\n    <div class="ui grid">\n      <div class="fileName control-label thirteen wide column">'+(null==(n=o.originalName)?"":n)+' <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="fileStatusRemove"></i></div>\n      <div class="fileSize control-label three wide column">'+(null==(n=e.fileSize(o.size))?"":n)+'</div>\n    </div>\n    <div class="ui grid">\n      <div class="thirteen wide column">\n        ',"progress"===o.status?r+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(n=o.progress)?"":n)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(n=o.progress)?"":n)+'">\n              <span class="sr-only">'+(null==(n=o.progress)?"":n)+"% "+(null==(n=e.t("Complete"))?"":n)+"</span>\n            </div>\n          </div>\n        ":r+='\n          <div class="bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n        ",r+="\n      </div>\n    </div>\n  </div>\n"}),r+="\n",(!e.component.storage||e.support.hasWarning)&&(r+='\n  <div class="alert alert-warning">\n    ',e.component.storage||(r+="\n      <p>"+(null==(n=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":n)+"</p>
vendor: 7,282 bytes, line 1
1\n    "),r+="\n    ",e.support.filereader||(r+="\n      <p>"+(null==(n=e.t("File API & FileReader API not supported."))?"":n)+"</p>\n    "),r+="\n    ",e.support.formdata||(r+="\n      <p>"+(null==(n=e.t("XHR2's FormData is not supported."))?"":n)+"</p>\n    "),r+="\n    ",e.support.progress||(r+="\n      <p>"+(null==(n=e.t("XHR2's upload progress isn't supported."))?"":n)+"</p>\n    "),r+="\n  </div>\n"),r+="\n"}},58245:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(64085);n.default={form:o.default}},95354:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<i ref="'+(null==(n=e.ref)?"":n)+'" class="'+(null==(n=e.className)?"":n)+'" style="'+(null==(n=e.styles)?"":n)+'">'+(null==(n=e.content)?"":n)+"</i>\n"}},72750:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(95354);n.default={form:o.default}},95777:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,r){var o={"plus-squre-o":"plus square outline","minus-squre-o":"minus square outline","question-sign":"question circle","remove-circle":"trash alternate outline","new-window":"external alternate","files-o":"file outline",move:"arrows alternate",link:"linkify"};return o.hasOwnProperty(n)&&(n=o[n]),n=(n=(n=n||"").replace(/-/g," ")).replace(/ o$/," outline"),r?"icon ".concat(n," loading"):"icon ".concat(n)}},82080:function(e,n,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var i=r(96737),a=r(73606),l=r(40228),s=r(96992),u=r(40468),c=r(34484),f=r(29622),d=r(60844),p=r(12778),h=r(25659),y=r(86273),m=r(79575),v=r(9195),b=r(58393),g=r(79060),w=r(86186),k=r(53618),O=r(9353),P=r(58245),j=r(72750),_=r(95777),S=r(90396),C=r(14246),E=r(58315),x=r(3765),R=r(29108),M=r(55856),T=r(23734),A=r(86863),D=r(77593),V=r(66624),I=r(81136),L=r(2414),N=r(99290),F=r(49002),B=r(15898),z=r(48757),U=r(79210),q=r(90257),K=r(74338),H=r(90813),W=r(30012),G=r(8553),Y=r(62570),J=r(2779),Z=r(98287),X=r(28553),Q=r(30717);n.default=o(o({transform:function(e,n){if(!n)return n;var r={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};switch(e){case"columns":return r.hasOwnProperty(n.toString())?r[n.toString()]:n;case"class":return this.cssClasses.hasOwnProperty(n.toString())?this.cssClasses[n.toString()]:n}return n},defaultIconset:"icon",iconClass:_.default,cssClasses:v.default,builder:i.default,builderComponent:a.default,builderComponents:l.default,builderEditForm:s.default,builderPlaceholder:u.default,builderSidebar:c.default,builderSidebarGroup:f.default,builderWizard:d.default,button:p.default,checkbox:h.default,columns:y.default,component:m.default,datagrid:b.default,day:g.default,editgrid:w.default,field:k.default,fieldset:O.default,file:P.default,icon:j.default,input:S.default,label:C.default,loader:E.default,loading:x.default,message:R.default,multiValueRow:M.default,multiValueTable:T.default,panel:A.default,radio:D.default,resourceAdd:V.default,select:I.default,selectOption:L.default,signature:N.default,survey:F.default,tab:B.default,tree:U.default},q.default),{table:z.default,webform:K.default,well:H.default,wizard:W.default,wizardHeader:G.default,wizardHeaderClassic:Y.default,wizardHeaderVertical:J.default,wizardNav:Z.default,alert:X.default,errorsList:Q.default})},80090:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";if(Array.prototype.join,r+='<div class="ui '+(n=e.component.editor?"":"input")+" fluid "+(n=e.suffix?" right":"")+(n=e.prefix||e.suffix?" labeled":"")+'">\n',e.prefix&&(r+='\n<label class="ui label" ref="prefix">\n',e.prefix instanceof HTMLElement?r+="\n  "+(null==(n=e.t(e.prefix.outerHTML))?"":n)+"\n":r+="\n  "+(null==(n=e.t(e.prefix))?"":n)+"\n",r+="\n</label>\n"),r+="\n",!e.component.editor&&!e.component.wysiwyg){for(var o in r+="\n<"+(null==(n=e.input.type)?"":n)+'\n  ref="'+(null==(n=e.input.ref?e.input.ref:"input")?"":n)+'"\n  ',e.input.attr)r+="\n  "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n  ';r+='\n  id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n>'+(null==(n=e.input.content)?"":n)+"</"+(null==(n=e.input.type)?"":n)+">\n"}return r+="\n",(e.component.editor||e.component.wysiwyg)&&(r+='\n<div ref="input"></div>\n'),r+="\n",e.component.showCharCount&&(r+='\n<span class="ui right floated" ref="charcount"></span>\n'),r+="\n",e.component.showWordCount&&(r+='\n<span class="ui right floated" ref="wordcount"></span>\n'),r+="\n",e.suffix&&(r+='\n<div class="ui label" ref="suffix">\n',e.suffix instanceof HTMLElement?r+="\n  "+(null==(n=e.t(e.suffix.outerHTML))?"":n)+"\n":r+="\n  "+(null==(n=e.t(e.suffix))?"":n)+"\n",r+="\n</div>\n"),r+="\n</div>\n"}},84978:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.value)?"":n:r+="-",r+="</div>\n"}},90396:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(80090),i=r(84978);n.default={form:o.default,html:i.default}},20551:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label\n  class="'+(null==(n=e.label.className)?"":n)+'"\n  for="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n>\n  ',e.label.hidden||(r+="\n    "+(null==(n=e.t(e.component.label))?"":n)+"\n    ",e.component.tooltip&&(r+='\n      <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n    '),r+="\n  "),r+="\n</label>\n"}},14246:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(20551);n.default={form:o.default}},42587:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<div class="formio-loader">\n  <div class="loader-wrapper">\n    <div class="ui active centered inline loader"></div>\n  </div>\n</div>\n'}},58315:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(42587);n.default={form:o.default}},1276:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return"Loading...\n"}},3765:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(1276);n.default={form:o.default}},17346:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="ui pointing red basic label '+(null==(n=e.level)?"":n)+'">\n  '+(null==(n=e.message)?"":n)+"\n</div>\n"}},29108:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(17346);n.default={form:o.default}},88947:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<tr ref="row">\n  <td>
1\n    '+(null==(n=e.element)?"":n)+"\n  </td>\n  ",e.disabled||(r+='\n  <td>\n    <button type="button" class="ui icon button secondary" ref="removeRow">\n      <i class="trash icon"></i>\n    </button>\n  </td>\n  '),r+="\n</tr>\n"}},55856:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(88947);n.default={form:o.default}},52878:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui celled table">\n  <tbody>\n  '+(null==(n=e.rows)?"":n)+"\n  ",e.disabled||(r+='\n  <tr>\n    <td colspan="2">\n      <button class="ui button primary" ref="addButton"><i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.addAnother))?"":n)+"</button>\n    </td>\n  </tr>\n  "),r+="\n  </tbody>\n</table>\n"}},23734:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(52878);n.default={form:o.default}},5516:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(r+='\n<h4 class="ui top attached block header '+(null==(n=e.component.className)?"":n)+'" ref="header">\n  ',e.component.collapsible&&(r+='\n    <i class="formio-collapse-icon '+(null==(n=e.iconClass(e.collapsed?"plus-square-o":"minus-square-o"))?"":n)+' text-muted" data-title="Collapse Panel"></i>\n  '),r+="\n  ",(!e.component.hideLabel||e.builder)&&(r+="\n  "+(null==(n=e.t(e.component.title))?"":n)+"\n  "),r+="\n  ",e.component.tooltip&&(r+='\n    <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n  '),r+="\n</h4>\n"),r+="\n",(!e.collapsed||e.builder)&&(r+='\n<div class="ui bottom attached segment" ref="'+(null==(n=e.nestedKey)?"":n)+'">\n  '+(null==(n=e.children)?"":n)+"\n</div>\n"),r+="\n"}},86863:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(5516);n.default={form:o.default}},33654:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="fields '+(n=e.inline?"inline":"grouped")+'">\n  ',e.values.forEach(function(o){for(var i in r+='\n  <div class="field">\n    <div class="ui '+(n="radio"===e.input.attr.type?"radio":"")+' checkbox" ref="wrapper">\n      <'+(null==(n=e.input.type)?"":n)+'\n        ref="input"\n        ',e.input.attr)r+="\n        "+(null==(n=i)?"":n)+'="'+(null==(n=e.input.attr[i])?"":n)+'"\n        ';r+='\n        value="'+(null==(n=o.value)?"":n)+'"\n        ',(e.value===o.value||"object"==typeof e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value])&&(r+="\n          checked=true\n        "),r+="\n        ",o.disabled&&(r+="\n          disabled=true\n        "),r+='\n        id="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'"\n      >\n      <label class="" for="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'">\n        <span>'+(null==(n=e.t(o.label))?"":n)+"</span>\n      </label>\n    </div>\n  </div>\n  "}),r+="\n</div>\n"}},29949:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n="";Array.prototype.join,n+='<div ref="value">\n  ';var r=e.values.filter(function(n){return e.value===n.value||"object"==typeof e.value&&e.value.hasOwnProperty(n.value)&&e.value[n.value]}).map(function(n){return e.t(n.label)}).join(", ");return n+("\n  "+(null==r?"":r))+"\n  </div>\n"}},77593:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(33654),i=r(29949);n.default={form:o.default,html:i.default}},31665:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<table class="ui table celled">\n  <tbody>\n    <tr>\n      <td>\n        '+(null==(n=e.element)?"":n)+'\n      </td>\n    </tr>\n    <tr>\n      <td colspan="2">\n        <button class="ui button primary" ref="addResource">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>\n          '+(null==(n=e.t(e.component.addResourceLabel||"Add Resource"))?"":n)+"\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n"}},66624:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(31665);n.default={form:o.default}},23084:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+='<select\n  ref="'+(null==(n=e.input.ref?e.input.ref:"selectContainer")?"":n)+'"\n  class="ui search dropdown"\n  '+(n=e.input.multiple?"multiple":"")+"\n  ",e.input.attr)r+="\n  "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n  ';return r+="\n  ",e.input.attr.id||(r+='\n  id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  '),r+="\n>"+(null==(n=e.selectOptions)?"":n)+'</select>\n<input type="text"\n       class="formio-select-autocomplete-input"\n       ref="autocompleteInput"\n       ',e.input.attr.autocomplete&&(r+='\n       autocomplete="'+(null==(n=e.input.attr.autocomplete)?"":n)+'"\n       '),r+='\n       tabindex="-1"\n/>\n'}},55623:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.self.itemValueForHTMLMode(e.value))?"":n:r+="-",r+="</div>\n"}},81136:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(23084),i=r(55623);n.default={form:o.default,html:i.default}},80683:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<option "+(n=e.selected?'selected="selected"':"")+"\n  value='"+(null==(n=e.option.value)?"":n)+"'\n  ",e.attrs)r+="\n  "+(null==(n=o)?"":n)+'="'+(null==(n=e.attrs[o])?"":n)+'"\n  ';return r+("\n  >\n  "+(null==(n=e.t(e.option.label))?"":n))+"\n</option>\n"}},89277:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.selected&&(r+=null==(n=e.t(e.option.label))?"":n),r+="\n"}},2414:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(80683),i=r(89277);n.default={form:o.default,html:i.default}},63448:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+=(null==(n=e.element)?"":n)+'\n<div\n  class="signature-pad-body"\n  style="width: '+(null==(n=e.component.width)?"":n)+";height: "+(null==(n=e.component.height)?"":n)+';padding:0;margin:0;"\n  tabindex="'+(null==(n=e.component.tabindex||0)?"":n)+'"\n  ref="padBody"\n>\n\n  <a class="ui basic button mini icon signature-pad-refresh" ref="refresh">\n    <i class="'+(null==(n=e.iconClass("refresh"))?"":n)+'"></i>\n  </a>\n  <canvas class="signature-pad-canvas" height="'+(null==(n=e.component.height)?"":n)+'" ref="canvas"></canvas>
1\n  ',e.required&&(r+='\n  <span class="form-control-feedback field-required-inline text-danger">\n    <i class="'+(null==(n=e.iconClass("asterisk"))?"":n)+'"></i>\n  </span>\n  '),r+='\n  <img style="width: 100%;display: none;" ref="signatureImage">\n</div>\n',e.component.footer&&(r+='\n  <div class="signature-pad-footer">\n    '+(null==(n=e.t(e.component.footer))?"":n)+"\n  </div>\n"),r+="\n"}},78597:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},99290:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(63448),i=r(78597);n.default={form:o.default,html:i.default}},67030:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui table striped celled">\n  <thead>\n    <tr>\n      <th></th>\n      ',e.component.values.forEach(function(o){r+='\n      <th style="text-align: center;">'+(null==(n=e.t(o.label))?"":n)+"</th>\n      "}),r+="\n    </tr>\n  </thead>\n  <tbody>\n    ",e.component.questions.forEach(function(o){r+="\n    <tr>\n      <td>"+(null==(n=e.t(o.label))?"":n)+"</td>\n      ",e.component.values.forEach(function(i){r+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(n=e.self.getInputName(o))?"":n)+'" value="'+(null==(n=i.value)?"":n)+'" id="'+(null==(n=e.key)?"":n)+"-"+(null==(n=o.value)?"":n)+"-"+(null==(n=i.value)?"":n)+'" ref="input">\n      </td>\n      '}),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},59380:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui table striped celled">\n  <tbody>\n    ',e.component.questions.forEach(function(o){r+="\n    <tr>\n      <th>"+(null==(n=e.t(o.label))?"":n)+"</th>\n      <td>\n      ",e.component.values.forEach(function(i){r+="\n        ",e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value]===i.value&&(r+="\n          "+(null==(n=e.t(i.label))?"":n)+"\n        "),r+="\n      "}),r+="\n      </td>\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},49002:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(67030),i=r(59380);n.default={form:o.default,html:i.default}},4366:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.component.components.forEach(function(o,i){r+='\n  <h4 class="ui top attached block header">'+(null==(n=e.t(o.label))?"":n)+'</h4>\n  <div class="ui bottom attached segment">\n    '+(null==(n=e.tabComponents[i])?"":n)+"\n  </div>\n"}),r+="\n"}},3771:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="tab-container'+(n=e.component.verticalLayout?" card-vertical":"")+'">\n  <div class="ui top attached tabular menu'+(n=e.component.verticalLayout?" nav-tabs-vertical":"")+'">\n    ',e.component.components.forEach(function(o,i){r+='\n    <a class="item'+(n=e.currentTab===i?" active":"")+'" role="presentation" ref="'+(null==(n=e.tabLinkKey)?"":n)+'">'+(null==(n=e.t(o.label))?"":n)+"</a>\n    "}),r+="\n  </div>\n  ",e.component.components.forEach(function(o,i){r+='\n  <div role="tabpanel" class="ui bottom attached tab segment'+(n=e.currentTab===i?" active":"")+'" ref="'+(null==(n=e.tabKey)?"":n)+'"">'+(null==(n=e.tabComponents[i])?"":n)+"</div>\n  "}),r+="\n</div>\n"}},15898:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(4366),i=r(3771);n.default={flat:o.default,form:i.default}},71616:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui table\n    '+(n=e.component.striped?"striped":"")+"\n    "+(n=e.component.bordered?"celled":"")+"\n    "+(n=e.component.hover?"selectable":"")+"\n    "+(n=e.component.condensed?"compact":"padded")+'\n  ">\n  ',e.component.header&&e.component.header.length>0&&(r+="\n  <thead>\n    <tr>\n      ",e.component.header.forEach(function(o){r+="\n      <th>"+(null==(n=e.t(o))?"":n)+"</th>\n      "}),r+="\n    </tr>\n  </thead>\n  "),r+="\n  <tbody>
1\n    ",e.tableComponents.forEach(function(o,i){r+='\n    <tr ref="row-'+(null==(n=e.id)?"":n)+'">\n      ',o.forEach(function(o,i){r+='\n      <td ref="'+(null==(n=e.tableKey)?"":n)+"-"+(null==(n=e.rowIndex)?"":n)+'"',e.cellClassName&&(r+=' class="'+(null==(n=e.cellClassName)?"":n)+'"'),r+=">"+(null==(n=o)?"":n)+"</td>\n      "}),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},48757:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(71616);n.default={form:o.default}},37934:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.node.isRoot?r+='\n  <div class="ui relaxed list">\n  <div class="item" ref="root" role="listitem">\n  ':r+='\n  <div ref="node" class="item tree__level" role="listitem">\n    ',r+="\n    ",e.content&&(r+='\n    <div ref="content" class="tree__node-content content">\n      '+(null==(n=e.content)?"":n)+"\n    </div>\n    "),r+="\n    ",e.childNodes&&e.childNodes.length&&(r+='\n    <div ref="childNodes" class="tree__node-children list" role="list">\n      '+(null==(n=e.childNodes.join(""))?"":n)+"\n    </div>\n    "),r+="\n    ",e.node.isRoot?r+="\n    </div>\n  </div>\n  ":r+="\n  </div>\n",r+="\n"}},79210:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(37934);n.default={form:o.default}},63977:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="node-edit">\n  <div ref="nodeEdit">'+(null==(n=e.children)?"":n)+"</div>\n  ",e.readOnly||(r+='\n    <div class="node-actions">\n      <button ref="saveNode" class="ui mini primary button saveNode">'+(null==(n=e.t("Save"))?"":n)+'</button>\n      <button ref="cancelNode" class="ui mini negative button cancelNode">'+(null==(n=e.t("Cancel"))?"":n)+"\n    </div>\n  "),r+="\n</div>\n"}},90257:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(63977),i=r(8882);n.default={treeView:{form:i.default},treeEdit:{form:o.default}}},8882:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui grid">\n  <div class="row">\n    ',e.values.forEach(function(e){r+='\n    <div class="two wide column">\n      '+(null==(n=e)?"":n)+"\n    </div>\n    "}),r+='\n    <div class="five wide column">\n      <div class="ui mini right floated buttons">\n        ',e.node.hasChildren&&(r+='\n        <button ref="toggleNode" class="ui button toggleNode">'+(null==(n=e.t(e.node.collapsed?"Expand":"Collapse"))?"":n)+'</button>\n        <div class="or"></div>\n        '),r+="\n        ",e.readOnly||(r+='\n        <button ref="addChild" class="ui button primary addChild">'+(null==(n=e.t("Add"))?"":n)+'</button>\n        <div class="or"></div>\n        <button ref="editNode" class="ui button editNode">'+(null==(n=e.t("Edit"))?"":n)+'</button>\n        <div class="or"></div>\n        <button ref="removeNode" class="ui button negative removeNode">'+(null==(n=e.t("Delete"))?"":n)+"</button>\n        ",e.node.revertAvailable&&(r+='\n        <div class="or"></div>\n        <button ref="revertNode" class="ui button negative revertNode">'+(null==(n=e.t("Revert"))?"":n)+"</button>\n        "),r+="\n        "),r+="\n      </div>\n    </div>\n  </div>\n</div>\n"}},61220:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="ui visible message"><p>'+(null==(n=e.t(e.component.title))?"":n)+"</p></div>\n"}},73928:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="'+(null==(n=e.classes)?"":n)+' ui form" ref="webform" novalidate>'+(null==(n=e.children)?"":n)+"</div>\n"}},74338:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(61220),i=r(73928);n.default={form:i.default,builder:o.default}},54740:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="ui secondary segment">\n  <div class="content" ref="'+(null==(n=e.nestedKey)?"":n)+'">
1\n    '+(null==(n=e.children)?"":n)+"\n  </div>\n</div>\n"}},90813:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(54740);n.default={form:o.default}},23109:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio-wizard-builder-component-title">'+(null==(n=e.t(e.component.title))?"":n)+"</div>\n"}},87169:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="'+(null==(n=e.className)?"":n)+'">\n  <div style="position: relative;">\n    ',"wizardHeaderVertical"===e.wizardHeaderType?r+='\n      <div class="ui stackable grid">\n        <div class="three wide computer sixteen wide tablet sixteen wide mobile column">\n          '+(null==(n=e.wizardHeader)?"":n)+'\n        </div>\n        <div class="one wide computer one wide mobile one wide tablet column"></div>\n        <div class="wizard-page ten wide computer fourteen wide tablet fourteen wide mobiles column" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n          '+(null==(n=e.components)?"":n)+'\n        </div>\n      </div>\n      <div class="ui grid" style="margin-top: 10px;">\n        <div class="four wide column"></div>\n        <div class="twelve wide column">\n          '+(null==(n=e.wizardNav)?"":n)+"\n        </div>\n      </div>\n    ":r+=" \n      "+(null==(n=e.wizardHeader)?"":n)+'\n      <div class="wizard-page" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n        '+(null==(n=e.components)?"":n)+"\n      </div>\n      "+(null==(n=e.wizardNav)?"":n)+"\n    ",r+=" \n  </div>\n</div>"}},30012:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(23109),i=r(87169);n.default={form:i.default,builder:o.default}},19200:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header" ref="'+(null==(n=e.wizardKey)?"":n)+'-header">\n  <div class="ui steps">\n    ',e.panels.forEach(function(o,i){r+='\n    <a class="'+(n=e.currentPage===i?" active":"")+' step" ref="'+(null==(n=e.wizardKey)?"":n)+'-link">\n      <div class="content">\n        <div class="title">\n        '+(null==(n=o.title)?"":n)+"\n        ",o.tooltip&&e.currentPage===i&&(r+='\n        <span data-tooltip="'+(null==(n=e.wizardPageTooltip)?"":n)+'" data-position="right center">\n        <i class="'+(null==(n=e.iconClass("question-sign"))?"":n)+'"></i>\n        </span>\n        '),r+="\n        </div>\n      </div>\n    </a>\n    "}),r+="\n  </div>\n</nav>\n"}},8553:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(19200);n.default={form:o.default}},12549:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n  <div class=" ui stackable grid" style="border-bottom:0;">\n    ',e.panels.forEach(function(o,i){r+='\n      <div class="classic-pagination-page four wide computer eight wide tablet sixteen wide mobile column\n          '+(n=e.currentPage<i?" disabled":"")+"\n          "+(n=e.currentPage===i?" active":"")+"\n          "+(n=e.currentPage>i?" complete":"")+'" style="padding: 0;">\n        <div class="ui center aligned header classic-pagination-title">'+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"</div>\n        ",e.panels.length>1&&(r+='\n          <div class="classic-pagination-progress" style="border-radius: 0;"><div class="classic-pagination-progress-bar"></div></div>\n        '),r+=' \n        <span ref="'+(null==(n=e.wizardKey)?"":n)+'-link" class="classic-pagination-dot" style="top: 45px;"></span>\n      </div>\n    '}),r+="\n  </div>\n</nav>\n"}},62570:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(12549);n.default={form:o.default}},32553:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n  <ul class="ui vertical fluid tabular menu">
1\n    ',e.panels.forEach(function(o,i){r+='\n    <li class=" item page-item'+(n=e.currentPage===i?" active":"")+'" style="cursor: pointer;">\n      <span class="page-link" ref="'+(null==(n=e.wizardKey)?"":n)+'-link" style="margin-left: 0px;">\n        '+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"\n        ",o.tooltip&&e.currentPage===i&&(r+='\n        <i ref="'+(null==(n=e.wizardKey)?"":n)+'-tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n        '),r+="\n      </span>\n    </li>\n    "}),r+="\n  </ul>\n</nav>\n"}},2779:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(32553);n.default={form:o.default}},54897:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui horizontal list" id="'+(null==(n=e.wizardKey)?"":n)+'-nav">\n  ',e.buttons.cancel&&(r+='\n  <div class="item">\n    <button class="ui button secondary btn-wizard-nav-cancel" ref="'+(null==(n=e.wizardKey)?"":n)+'-cancel">'+(null==(n=e.t("cancel"))?"":n)+"</button>\n  </div>\n  "),r+="\n  ",e.buttons.previous&&(r+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-previous" ref="'+(null==(n=e.wizardKey)?"":n)+'-previous">'+(null==(n=e.t("previous"))?"":n)+"</button>\n  </div>\n  "),r+="\n  ",e.buttons.next&&(r+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-next" ref="'+(null==(n=e.wizardKey)?"":n)+'-next">'+(null==(n=e.t("next"))?"":n)+"</button>\n  </div>\n  "),r+="\n  ",e.buttons.submit&&(r+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-submit" ref="'+(null==(n=e.wizardKey)?"":n)+'-submit">'+(null==(n=e.t("submit"))?"":n)+"</button>\n  </div>\n  "),r+="\n</div>\n"}},98287:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(54897);n.default={form:o.default}},15236:function(e){e.exports=function(e){function n(o){if(r[o])return r[o].exports;var i=r[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var r={};return n.m=e,n.c=r,n.p="",n(0)}([function(e,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(1);Object.defineProperty(n,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return o(i).default}});var a=r(2);Object.defineProperty(n,"createNumberMask",{enumerable:!0,get:function(){return o(a).default}});var l=r(3);Object.defineProperty(n,"emailMask",{enumerable:!0,get:function(){return o(l).default}})},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.minYear,a=void 0===i?1:i,l=n.maxYear,s=void 0===l?9999:l,u=e.split(/[^dmyHMS]+/).sort(function(e,n){return o.indexOf(e)-o.indexOf(n)});return function(n){var o=[],i={dd:31,mm:12,yy:99,yyyy:s,HH:23,MM:59,SS:59},l={dd:1,mm:1,yy:0,yyyy:a,HH:0,MM:0,SS:0},c=n.split("");u.forEach(function(n){var r=e.indexOf(n),a=parseInt(i[n].toString().substr(0,1),10);parseInt(c[r],10)>a&&(c[r+1]=c[r],c[r]=0,o.push(r))});var f=0;return!u.some(function(o){var u=e.indexOf(o),c=o.length,d=n.substr(u,c).replace(/\D/g,""),p=parseInt(d,10);"mm"===o&&(f=p||0);var h="dd"===o?r[f]:i[o];if("yyyy"===o&&(1!==a||9999!==s)){var y=parseInt(i[o].toString().substring(0,d.length),10);return p<parseInt(l[o].toString().substring(0,d.length),10)||p>y}return p>h||d.length===c&&p<l[o]})&&{value:c.join(""),indexesOfPipedChars:o}}};var r=[31,31,29,31,30,31,30,31,31,30,31,30,31],o=["yyyy","yy","mm","dd","HH","MM","SS"]},function(e,n){"use strict";function r(e){if(Array.isArray(e)){for(var n=0,r=Array(e.length);n<e.length;n++)r[n]=e[n];return r}return Array.from(e)}function o(e){return e.split(s).map(function(e){return y.test(e)?y:e})}Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,n){var r=[],o=!0,i=!1,a=void 0;try{for(var l,s=e[Symbol.iterator]();!(o=(l=s.next()).done)&&(r.push(l.value),!n||r.length!==n);o=!0);}catch(e){i=!0,a=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw a}}return r}(e,n);
vendor: 1,053 bytes, line 1
1throw TypeError("Invalid attempt to destructure non-iterable instance")},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.default=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,l=n.length;if(n===s||n[0]===b[0]&&1===l)return b.split(s).concat([y]).concat(w.split(s));if(n===E&&S)return b.split(s).concat(["0",E,y]).concat(w.split(s));var u=n[0]===f&&D;u&&(n=n.toString().substr(1));var c=n.lastIndexOf(E),v=-1!==c,g=void 0,k=void 0,P=void 0;if(n.slice(-1*U)===w&&(n=n.slice(0,-1*U)),v&&(S||T)?(g=n.slice(n.slice(0,z)===b?z:0,c),k=o((k=n.slice(c+1,l)).replace(p,s))):g=n.slice(0,z)===b?n.slice(z):n,N&&(void 0===N?"undefined":a(N))===h){var _="."===j?"[.]":""+j,C=(g.match(RegExp(_,"g"))||[]).length;g=g.slice(0,N+C*q)}if(g=g.replace(p,s),I||(g=g.replace(/^0+(0$|[^0])/,"$1")),P=o(g=O?g.replace(/\B(?=(\d{3})+(?!\d))/g,j):g),(v&&S||!0===T)&&(n[c-1]!==E&&P.pu
1sh(m),P.push(E,m),k&&((void 0===R?"undefined":a(R))===h&&(k=k.slice(0,R)),P=P.concat(k)),!0===T&&n[c-1]===E&&P.push(y)),z>0&&(P=b.split(s).concat(P)),u&&(P.length===z&&P.push(y),P=[d].concat(P)),w.length>0&&(P=P.concat(w.split(s))),B&&/[eE]/.test(n)){var x=i(n.split(/[eE]/),2),M=x[0],A=x[1],V=M.match(/^[-+]?[0-9]*\.?[0-9]+/),L=A&&A.match(/^[-+]?[0-9]+$/);if(V&&(!A||L)){var F=e(V[0]),K=L?o(L[0]):[];return[].concat(r(F),["e"],r(K))}}return P}var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},v=n.prefix,b=void 0===v?l:v,g=n.suffix,w=void 0===g?s:g,k=n.includeThousandsSeparator,O=void 0===k||k,P=n.thousandsSeparatorSymbol,j=void 0===P?u:P,_=n.allowDecimal,S=void 0!==_&&_,C=n.decimalSymbol,E=void 0===C?c:C,x=n.decimalLimit,R=void 0===x?2:x,M=n.requireDecimal,T=void 0!==M&&M,A=n.allowNegative,D=void 0!==A&&A,V=n.allowLeadingZeroes,I=void 0!==V&&V,L=n.integerLimit,N=void 0===L?null:L,F=n.allowScientificNotation,B=void 0===F||F,z=b&&b.length||0,U=w&&w.length||0,q=j&&j.length||0;return e.instanceOf="createNumberMask",e};var l="$",s="",u=",",c=".",f="-",d=/-/,p=/\D+/g,h="number",y=/\d/,m="[]"},function(e,n,r){"use strict";function o(e,n,r){var o=[];return e[n]===r?o.push(r):o.push(u,r),o.push(u),o}function i(e,n){return e.split(s).map(function(e){return e===c?e:n?d:f})}Object.defineProperty(n,"__esModule",{value:!0});var a,l=(a=r(4))&&a.__esModule?a:{default:a},s="",u="[]",c=" ",f=/[^\s]/,d=/[^.\s]/,p=/\s/g;n.default={mask:function(e,n){e=e.replace(p,s);var r,a,l,u,f,d=n.placeholderChar,h=n.currentCaretPosition,y=e.indexOf("@"),m=e.lastIndexOf("."),v=m<y?-1:m,b=o(e,y+1,"@"),g=o(e,v-1,"."),w=(r=e,-1===y?r:r.slice(0,y)),k=(a=e,l=s,-1!==y&&(l=-1===v?a.slice(y+1,a.length):a.slice(y+1,v)),"@"===(l=l.replace(RegExp("[\\s"+d+"]","g"),s))?"*":l.length<1?c:"."===l[l.length-1]?l.slice(0,l.length-1):l),O=(u=e,f=s,-1!==v&&(f=u.slice(v+1,u.length)),0===(f=f.replace(RegExp("[\\s"+d+".]","g"),s)).length?"."===u[v-1]&&h!==u.length?"*":s:f);return w=i(w),k=i(k),O=i(O,!0),w.concat(b).concat(k).concat(g).concat(O)},pipe:l.default}},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){var f,d=n.currentCaretPosition,p=n.rawValue,h=n.previousConformedValue,y=n.placeholderChar,m=e,v=(f=0,m=m.replace(o,function(){return 1==++f?r:i})).indexOf(a);if(null===p.match(RegExp("[^@\\s."+y+"]")))return i;if(-1!==m.indexOf(s)||-1!==v&&d!==v+1||-1===p.indexOf(r)&&h!==i&&-1!==p.indexOf(l))return!1;var b=m.indexOf(r);return(m.slice(b+1,m.length).match(c)||u).length>1&&m.substr(-1)===l&&d!==p.length&&(m=m.slice(0,m.length-1)),m};var r="@",o=/@/g,i="",a="@.",l=".",s="..",u=[],c=/\./g}])},23436:function(e){e.exports=function(e){function n(o){if(r[o])return r[o].exports;var i=r[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var r={};return n.m=e,n.c=r,n.p="",n(0)}([function(e,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var n=e.inputElement,r=e.afterUpdate,o=(0,l.default)(e),i=function(e){var n=e.target.value;o.update(n),"function"==typeof r&&r(n)};return n.addEventListener("input",i),o.update(n.value),{textMaskInputElement:o,destroy:function(){n.removeEventListener("input",i)}}}Object.defineProperty(n,"__esModule",{value:!0}),n.conformToMask=void 0,n.maskInput=i;var a=r(2);Object.defineProperty(n,"conformToMask",{enumerable:!0,get:function(){return o(a).default}});var l=o(r(5));n.default=i},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.placeholderChar="_",n.strFunction="function"},function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isArray)(n)){if((void 0===n?"undefined":o(n))!==a.strFunction)throw Error("Text-mask:conformToMask; The mask property must be an array.");n=n(e,r),n=(0,i.processCaretTraps)(n).maskWithoutCaretTraps}var u=r.guide,c=void 0===u||u,f=r.previousConformedValue,d=void 0===f?s:f,p=r.placeholderChar,h=void 0===p?a.placeholderChar:p,y=r.placeholder,m=void 0===y?(0,i.convertMaskToPlaceholder)(n,h):y,v=r.currentCaretPosition,b=r.keepCharPositions,g=!1===c&&void 0!==d,w=e.length,k=d.length,O=m.length,P=n.length,j=w-k,_=j>0,S=v+(_?-j:0),C=S+Math.abs(j);if(!0===b&&!_){for(var E=s,x=S;x<C;x++)m[x]===h&&(E+=h);e=e.slice(0,S)+E+e.slice(S,w)}for(var R=e.split(s).map(function(e,n){return{char:e,isNew:n>=S&&n<C}}),M=w-1;M>=0;M--){var T=R[M].char;T!==h&&T===m[M>=S&&k===P?M-j:M]&&R.splice(M,1)}var A=s,D=!1;e:for(var V=0;V<O;V++){var I=m[V];if(I===h){if(R.length>0)for(;R.length>0;){var L=R.shift(),N=L.char,F=L.isNew;if(N===h&&!0!==g){A+=h;continue e}if(n[V].test(N)){if(!0===b&&!1!==F&&d!==s&&!1!==c&&_){for(var B=R.length,z=null,U=0;U<B;U++){var q=R[U];if(q.char!==h&&!1===q.isNew)break;if(q.char===h){z=U;break}}null!==z?(A+=N,R.splice(z,1)):V--}else A+=N;continue e}D=!0}!1===g&&(A+=m.substr(V,O));break}A+=I}if(g&&!1===_){for(var K=null,H=0;H<A.length;H++)m[H]===h&&(K=H);A=null!==K?A.substr(0,K+1):s}return{conformedValue:A,meta:{someCharsRejected:D}}};var i=r(3),a=r(1),l=[],s=""},function(e,n,r){"use strict";function o(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}Object.defineProperty(n,"__esModule",{value:!0}),n.convertMaskToPlaceholder=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.placeholderChar;if(!o(e))throw Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(n))throw Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(n)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map(function(e){return e instanceof RegExp?n:e}).join("")},n.isArray=o,n.isString=function(e){return"string"==typeof e||e instanceof String},n.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},n.isNil=function(e){return null==e},n.processCaretTraps=function(e){for(var n=[],r=void 0;-1!==(r=e.indexOf(l));)n.push(r),e.splice(r,1);return{maskWithoutCaretTraps:e,indexes:n}};var i=r(1),a=[],l="[]"},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=e.previousConformedValue,i=void 0===n?o:n,a=e.previousPlaceholder,l=void 0===a?o:a,s=e.currentCaretPosition,u=void 0===s?0:s,c=e.conformedValue,f=e.rawValue,d=e.placeholderChar,p=e.placeholder,h=e.indexesOfPipedChars,y=e.caretTrapIndexes,m=void 0===y?r:y;if(0===u||!f.length)return 0;var v=f.length,b=i.length,g=p.length,w=c.length,k=v-b,O=k>0;if(k>1&&!O&&0!==b)return u;var P=0,j=void 0,_=void 0;if(O&&(i===c||c===p))P=u-k;else{var S=c.toLowerCase(),C=f.toLowerCase().substr(0,u).split(o).filter(function(e){return -1!==S.indexOf(e)});_=C[C.length-1];var E=l.substr(0,C.length).split(o).filter(function(e){return e!==d}).length,x=p.substr(0,C.length).split(o).filter(function(e){return e!==d}).length,R=void 0!==l[C.length-1]&&void 0!==p[C.length-2]&&l[C.length-1]!==d&&l[C.length-1]!==
1p[C.length-1]&&l[C.length-1]===p[C.length-2];!O&&(x!==E||R)&&E>0&&p.indexOf(_)>-1&&void 0!==f[u]&&(j=!0,_=f[u]);for(var M=(void 0===h?r:h).map(function(e){return S[e]}),T=M.filter(function(e){return e===_}).length,A=C.filter(function(e){return e===_}).length,D=p.substr(0,p.indexOf(d)).split(o).filter(function(e,n){return e===_&&f[n]!==e}).length,V=D+A+T+(j?1:0),I=0,L=0;L<w;L++){var N=S[L];if(P=L+1,N===_&&I++,I>=V)break}}if(O){for(var F=P,B=P;B<=g;B++)if(p[B]===d&&(F=B),p[B]===d||-1!==m.indexOf(B)||B===g)return F}else if(j){for(var z=P-1;z>=0;z--)if(c[z]===_||-1!==m.indexOf(z)||0===z)return z}else for(var U=P;U>=0;U--)if(p[U-1]===d||-1!==m.indexOf(U)||0===U)return U};var r=[],o=""},function(e,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.default=function(e){var n={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:n,update:function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,m=o.inputElement,v=o.mask,b=o.guide,g=o.pipe,w=o.placeholderChar,k=void 0===w?c.placeholderChar:w,O=o.keepCharPositions,P=o.showMask;if(void 0===r&&(r=m.value),r!==n.previousConformedValue){(void 0===v?"undefined":a(v))===p&&void 0!==v.pipe&&void 0!==v.mask&&(g=v.pipe,v=v.mask);var j=void 0,_=void 0;if(v instanceof Array&&(j=(0,u.convertMaskToPlaceholder)(v,k)),!1!==v){var S,C=function(e){if((0,u.isString)(e))return e;if((0,u.isNumber)(e))return String(e);if(null==e)return f;throw Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}(r),E=m.selectionEnd,x=n.previousConformedValue,R=n.previousPlaceholder,M=void 0;if((void 0===v?"undefined":a(v))===c.strFunction){if(!1===(_=v(C,{currentCaretPosition:E,previousConformedValue:x,placeholderChar:k})))return;var T=(0,u.processCaretTraps)(_),A=T.maskWithoutCaretTraps,D=T.indexes;_=A,M=D,j=(0,u.convertMaskToPlaceholder)(_,k)}else _=v;var V={previousConformedValue:x,guide:b,placeholderChar:k,pipe:g,placeholder:j,currentCaretPosition:E,keepCharPositions:void 0!==O&&O},I=(0,s.default)(C,_,V).conformedValue,L=(void 0===g?"undefined":a(g))===c.strFunction,N={};L&&(!1===(N=g(I,i({rawValue:C},V)))?N={value:x,rejected:!0}:(0,u.isString)(N)&&(N={value:N}));var F=L?N.value:I,B=(0,l.default)({previousConformedValue:x,previousPlaceholder:R,conformedValue:F,placeholder:j,rawValue:C,currentCaretPosition:E,placeholderChar:k,indexesOfPipedChars:N.indexesOfPipedChars,caretTrapIndexes:M}),z=F===j&&0===B,U=void 0!==P&&P?j:f,q=z?U:F;n.previousConformedValue=q,n.previousPlaceholder=j,m.value!==q&&(C.includes("e-")?m.value=C:m.value=q,((S=e.shadowRoot)?S.activeElement:document.activeElement)===m&&(h?y(function(){return m.setSelectionRange(B,B,d)},0):m.setSelectionRange(B,B,d)))}}}}};var l=o(r(4)),s=o(r(2)),u=r(3),c=r(1),f="",d="none",p="object",h="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),y="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},24270:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}
vendor: 4,489 bytes, line 1
1r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var a=function(){var e,n;function r(e){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r),this.baseUrl=e||"https://cdn.form.io",this.overrides={},this.libs={ace:"1.4.12",bootstrap:"4.6.2",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}return e=[{key:"getVersion",value:function(e){return this.libs[e]}},{key:"setVersion",value:function(e,n){this.libs[e]=n,this.updateUrls()}},{key:"setBaseUrl",value:function(e){this.baseUrl=e,this.updateUrls()}},{key:"setOverrideUrl",value:function(e,n){this.overrides[e]=n,this.updateUrls()}},{key:"removeOverride",value:function(e){delete this.overrides[e],this.updateUrls()}},{key:"removeOverrides",value:function(){this.overrides={},this.updateUrls()}},{key:"buildUrl",value:function(e,n,r){return"latest"===r||""===r?"".concat(e,"/").concat(n):"".concat(e,"/").concat(n,"/").concat(r)}},{key:"updateUrls",value:function(){for(var e in this.libs)e in this.overrides?this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]):this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}],i(r.prototype,e),n&&i(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.default=a},26184:function(e,n,r){"use strict";r(64652),r(11414),r(41135),r(28839),r(88910),r(2223),r(80107),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(66334),r(67998),r(49907),r(37753),r(30890),r(92471),r(70601),r(45399),r(45945),r(55096),r(20680),r(93538),r(789),r(94195),r(31490),r(33546),r(88852),r(7122),r(62107),r(21430),r(6778),r(68428),r(21587);var o=d(r(3528)),i=r(79408),a=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var r=f(n);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(38163)),l=d(r(57310)),s=d(r(2890)),u=d(r(62067)),c=d(r(23436));function f(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:n})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==p(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===p(n)?n:String(n)}(o.key),o)}}var y=function(){var e,n;function r(e){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r),this.options=Object.assign({language:"en",highlightErrors:!0,componentErrorClass:"formio-error-wrapper",componentWarningClass:"formio-warning-wrapper",row:"",namespace:"formio"},e||{}),this.id=a.getRandomComponentId(),this.eventHandlers=[],this.i18next=this.options.i18next||l.default,this.events=e&&e.events?e.events:new o.default,this.defaultMask=null,this.helplinks="false"!==this.options.helplinks&&(this.options.helplinks||"https://help.form.io")}return e=[{key:"on",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.events){var i="".concat(this.options.namespace,".").concat(e);return n.id=this.id,n.key=this.key,n.internal=r,this.events[o?"once":"on"](i,n)}}},{key:"once",value:function(e,n,r){return this.on(e,n,r,!0)}},{key:"onAny",value:function(e){if(this.events)return this.events.onAny(e)}},{key:"offAny",value:function(e){if(this.events)return this.events.offAny(e)}},{key:"off",value:function(e,n){var r=this;if(this.events){var o="".concat(this.options.namespace,".").concat(e);
1this.events.listeners(o).forEach(function(e){e&&e.id===r.id&&(!n||n===e)&&r.events.off(o,e)})}}},{key:"emit",value:function(e){if(this.events){for(var n,r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(n=this.events).emit.apply(n,["".concat(this.options.namespace,".").concat(e)].concat(o))}}},{key:"hasEventHandler",value:function(e){var n=this;if(!this.events)return!1;var r="".concat(this.options.namespace,".").concat(e);return this.events.listeners(r).some(function(e){return!!e&&(e.id===n.id||e.key===n.key)})}},{key:"addEventListener",value:function(e,n,r,o,i){if(e)return o||this.eventHandlers.push({id:this.id,obj:e,type:n,func:r}),"addEventListener"in e?e.addEventListener(n,r,!!i):"attachEvent"in e&&e.attachEvent("on".concat(n),r),this}},{key:"removeEventListener",value:function(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[];if(e)return this.eventHandlers.forEach(function(a,l){a.id===r.id&&e.removeEventListener&&a.type===n&&(!o||a.func===o)&&(e.removeEventListener(n,a.func),i.push(l))}),i.length&&s.default.pullAt(this.eventHandlers,i),this}},{key:"removeEventListeners",value:function(){var e=this;this.eventHandlers.forEach(function(n){e.id===n.id&&n.type&&n.obj&&n.obj.removeEventListener&&n.obj.removeEventListener(n.type,n.func)}),this.eventHandlers=[]}},{key:"removeAllEvents",value:function(e){var n=this;s.default.each(this.events._events,function(r,o){s.default.each(r,function(r){r&&n.id===r.id&&(e||r.internal)&&n.events.off(o,r)})})}},{key:"destroy",value:function(){this.removeEventListeners(),this.removeAllEvents()}},{key:"appendTo",value:function(e,n){return null==n||n.appendChild(e),this}},{key:"prependTo",value:function(e,n){if(n){if(n.firstChild)try{n.insertBefore(e,n.firstChild)}catch(r){console.warn(r),n.appendChild(e)}else n.appendChild(e)}return this}},{key:"removeChildFrom",value:function(e,n){if(n&&n.contains(e))try{n.removeChild(e)}catch(e){console.warn(e)}return this}},{key:"ce",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=document.createElement(e);return n&&this.attr(o,n),this.appendChild(o,r),o}},{key:"appendChild",value:function(e,n){var r=this;return Array.isArray(n)?n.forEach(function(n){return r.appendChild(e,n)}):n instanceof HTMLElement||n instanceof Text?e.appendChild(n):n&&e.appendChild(this.text(n.toString())),this}},{key:"maskPlaceholder",value:function(e){var n=this;return e.map(function(e){return e instanceof RegExp?n.placeholderChar:e}).join("")}},{key:"placeholderChar",get:function(){var e;return(null===(e=this.component)||void 0===e?void 0:e.inputMaskPlaceholderChar)||"_"}},{key:"setInputMask",value:function(e,n,r){if(e&&n){var o=a.getInputMask(n,this.placeholderChar);this.defaultMask=o;try{e.mask&&e.mask.destroy(),e.mask=(0,c.default)({inputElement:e,mask:o,placeholderChar:this.placeholderChar,shadowRoot:this.root?this.root.shadowRoot:null})}catch(e){console.warn(e)}o.numeric&&e.setAttribute("pattern","\\d*"),r&&e.setAttribute("placeholder",this.maskPlaceholder(o))}}},{key:"t",value:function(e){for(var n,r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return(n=this.i18next).t.apply(n,[e].concat(o))}},{key:"text",value:function(e){return document.createTextNode(this.t(e))}},{key:"attr",value:function(e,n){var r=this;e&&s.default.each(n,function(n,o){void 0!==n&&(0===o.indexOf("on")?r.addEventListener(e,o.substr(2).toLowerCase(),n):e.setAttribute(o,n))})}},{key:"hasClass",value:function(e,n){return!!e&&(n=" ".concat(n," ")," ".concat(e.className," ").replace(/[\n\t\r]/g," ").indexOf(n)>-1)}},{key:"addClass",value:function(e,n){if(!e||!(e instanceof HTMLElement))return this;var r=e.getAttribute("class");return null!=r&&r.includes(n)||e.setAttribute("class","".concat(r," ").concat(n)),this}},{key:"removeClass",value:function(e,n){if(!e||!n||!(e instanceof HTMLElement))return this;var r=e.getAttribute("class");return r&&(r=r.replace(RegExp(" ".concat(n),"g"),""),e.setAttribute("class",r)),this}},{key:"empty",value:function(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}},{key:"evalContext",value:function(e){var n;return Object.assign({_:s.default,utils:a,util:a,user:i.GlobalFormio.getUser(),moment:u.default,instance:this,self:this,token:i.GlobalFormio.getToken({decode:!0}),config:this.root&&this.root.form&&this.root.form.config?this.root.form.config:null!==(n=this.options)&&void 0!==n&&n.formConfig?this.options.formConfig:{}},e,s.default.get(this.root,"options.evalContext",{}))}},{key:"interpolate",value:function(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"function"!=typeof e&&(this.component.content||this.component.html)&&!a.Evaluator.templateSettings.interpolate.test(e)&&(e=a.translateHTMLTemplate(String(e),function(e){return r.t(e)})),a.interpolate(e,this.evalContext(n),o)}},{key:"evaluate",value:function(e,n,r,o){return a.evaluate(e,this.evalContext(n),r,o)}},{key:"hook",value:function(){var e=arguments[0];if(this.options&&this.options.hooks&&this.options.hooks[e])return this.options.hooks[e].apply(this,Array.prototype.slice.call(arguments,1
1));var n="function"==typeof arguments[arguments.length-1]?arguments[arguments.length-1]:null;return n?n(null,arguments[1]):arguments[1]}}],h(r.prototype,e),n&&h(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.default=y},3528:function(e,n,r){"use strict";r(64652),r(43053),r(56613),r(65813),r(37097),r(80107),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(2223),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o=r(28729),i=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var r=a(n);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}return o.default=e,r&&r.set(e,o),o}(r(38163));function a(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:n})(e)}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=d(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,n,r){return(n=h(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function h(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(h,e);var n,r,o,a=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(h);if(n){var o=d(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===l(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return c(e)}(this,e)});function h(){var e,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h);var l=o.loadLimit,s=void 0===l?1e3:l,u=o.eventsSafeInterval,y=void 0===u?300:u;p(c(r=a.call(this)),"onAny",function(e){r.on("any",e)}),p(c(r),"offAny",function(e){r.off("any",e)});var m=i.observeOverload(function(){console.warn("There were more than ".concat(s," events emitted in ").concat(y," ms. It might be caused by events' infinite loop"),r.id)},{limit:s,delay:y});return r.emit=function(){for(var o,i,a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];(o=f((e=c(r),d(h.prototype)),"emit",e)).call.apply(o,[e].concat(l)),(i=f((n=c(r),d(h.prototype)),"emit",n)).call.apply(i,[n,"any"].concat(l)),m()},r}return r&&s(h.prototype,r),o&&s(h,o),Object.defineProperty(h,"prototype",{writable:!1}),h}(o.EventEmitter);n.default=y},52539:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(41135),r(28839),r(2223),r(889
110),r(80107),r(11414),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(66334),r(45399),r(37753),r(45945),r(67998),r(18666),r(43053),r(56613),r(65813);var i=d(r(26184)),a=r(79408),l=d(r(89530)),s=d(r(33401)),u=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=f(n);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,r&&r.set(e,i),i}(r(38163)),c=d(r(32780));function f(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:n})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function p(e,n,r){return(p=m()?Reflect.construct.bind():function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&y(i,r.prototype),i}).apply(null,arguments)}function h(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function y(e,n){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function m(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(d,e);var n,r,i,f=(n=m(),function(){var e,r=v(d);if(n){var i=v(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);var e,n=(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1];return a.GlobalFormio.options&&a.GlobalFormio.options.form&&(n=Object.assign(n,a.GlobalFormio.options.form)),(e=f.call(this,n)).options.useSessionToken&&a.GlobalFormio.useSessionToken(e.options),e.ready=new c.default(function(n,r){e.readyResolve=n,e.readyReject=r}),e.instance=null,(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?(e.element=arguments.length<=0?void 0:arguments[0],e.options=(arguments.length<=2?void 0:arguments[2])||{},e.options.events=e.events,e.setForm(arguments.length<=1?void 0:arguments[1]).then(function(){return e.readyResolve(e.instance)}).catch(e.readyReject)):(arguments.length<=0?void 0:arguments[0])?(e.element=null,e.options=(arguments.length<=1?void 0:arguments[1])||{},e.options.events=e.events,e.setForm(arguments.length<=0?void 0:arguments[0]).then(function(){return e.readyResolve(e.instance)}).catch(e.readyReject)):(e.element=null,e.options={},e.options.events=e.events),e.display="",e}return r=[{key:"create",value:function(e){return(this.options&&(this.options.flatten||"flat"===this.options.renderMode)&&(e="form"),this.display=e,l.default.displays[e])?new l.default.displays[e](this.element,this.options):new l.default.displays.webform(this.element,this.options)}},{key:"form",get:function(){return this._form},set:function(e){return this.setForm(e)}},{key:"errorForm",value:function(e){return{components:[{label:"HTML",tag:"div",className:"error error-message alert alert-danger ui red message",attrs:[{attr:"role",value:"alert"}],key:"errorMessage",type:"htmlelement",input:!1,content:"string"==typeof e?e:e.message}]}}},{key:"setForm",value:function(e){var n=this;if("string"==typeof(e=e||this.form)){var r,o,i=new a.GlobalFormio(e);r=this.getSubmission(i,this.options).catch(function(e){o=e}).then(function(r){return i.loadForm().catch(function(e){o=e}).then(function(i){if(o&&(i=n.errorForm(o)),n.instance=n.instance||n.create(i.display),n.instance.url=e,n.instance.nosubmit=!1,n._form=n.instance.form=i,r&&(n.instance.submission=r),o)throw o;return n.instance})})}
1else this.instance=this.instance||this.create(e.display),this._form=this.instance.form=e,r=this.instance.ready;return r.then(function(){return n.element=n.instance.element,n.instance})}},{key:"getSubmission",value:function(e,n){return e.submissionId?e.loadSubmission(null,n):c.default.resolve()}},{key:"setDisplay",value:function(e){return this.display===e&&this.instance?c.default.resolve(this.instance):(this.form.display=e,this.instance.destroy(),this.instance=this.create(e),this.setForm(this.form))}},{key:"empty",value:function(){if(this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}},{key:"sanitize",value:function(e,n){return!1!==this.options.sanitize||n?u.sanitize(e,this.options):e}},{key:"setContent",value:function(e,n,r){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(n,r),!0)}},{key:"build",value:function(){var e=this;if(!this.instance)return c.default.reject("Form not ready. Use form.ready promise");if(!this.element)return c.default.reject("No DOM element for form.");var n=this.options&&this.options.template?this.options.template:"bootstrap",r=s.default[n].loader||s.default.bootstrap.loader;return this.setContent(this.element,r.form),this.render().then(function(n){return e.setContent(e.element,n),e.attach(e.element).then(function(){return e.instance})}).then(function(n){return e.emit("build",n),n})}},{key:"render",value:function(){var e=this;return this.instance?c.default.resolve(this.instance.render()).then(function(n){return e.emit("render",n),n}):c.default.reject("Form not ready. Use form.ready promise")}},{key:"attach",value:function(e){var n=this;return this.instance?(this.element=e,this.instance.attach(this.element).then(function(e){return n.emit("attach",e),e})):c.default.reject("Form not ready. Use form.ready promise")}}],i=[{key:"embed",value:function(e){var n=this;return new c.default(function(r){e&&e.src||r();var o=n.id||"formio-".concat(Math.random().toString(36).substring(7)),i=e.class||"formio-form-wrapper",a=e.styles?'<link rel="stylesheet" href="'.concat(e.styles,'">'):"";a+='<div id="'.concat(o,'" class="').concat(i,'"></div>'),document.write(a);var l=0,s=setInterval(function(){l++;var n=document.getElementById(o);(n||l>10)&&(r(new d(n,e.src).ready),clearInterval(s))},10)})}}],r&&h(d.prototype,r),i&&h(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(i.default);n.default=b,a.GlobalFormio.embedForm=function(e){return b.embed(e)},a.GlobalFormio.createForm=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return p(b,n).ready},a.GlobalFormio.Form=b},20655:function(e,n,r){"use strict";r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(66334),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o,i,a=r(79408),l=s(r(63032));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,n,r){return(u=p()?Reflect.construct.bind():function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&d(i,r.prototype),i}).apply(null,arguments)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function d(e,n){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function p(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==c(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===c(n)?n:String(n)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(i,e);var n,r,o=(n=p(),function(){var e,r=h(i);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e,n,r){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,i),n=n||{},r=r||{},o.call(this,e,n,Object.assign(r,i.options,a.GlobalFormio.options&&a.GlobalFormio.options.builder?a.GlobalFormio.options.builder:{}))}return f(i.prototype,[{key:"create",value:function(e){return l.default.builders[e]?new l.default.builders[e](this.element,this.options):new l.default.builders.webform(this.element,this.options)}}]),r&&f(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(s(r(52539)).default);n.default=m,i={},(o=y(o="options"))in m?Object.defineProperty(m,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):m[o]=i,a.GlobalFormio.builder=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return u(m,n).ready},a.GlobalFormio.FormBuilder=m},79408:function(e,n,r){"use strict";r(62107),r(21430),r(64652),r(7122),r(3616),r(26343),Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.GlobalFormio=void 0,r(70601),r(789),r(64284),r(65801),r(94195),r(67998),r(93538),r(45945),r(31490),r(55096),r(33546),r(88852),r(70776),r(66334),r(49907),r(37753),r(30890),r(21587),r(48510),r(1385),r(20680),r(44991),r(45399),r(18666),r(6778),r(68428),r(11414),r(41135),r(28839),r(889
vendor: 9,392 bytes, line 1
110);var o,i=v(r(32780)),a=v(r(82604)),l=v(r(3528)),s=v(r(65521)),u=v(r(3966)),c=v(r(16586)),f=v(r(98614)),d=v(r(34098)),p=v(r(16028)),h=r(38163),y=v(r(175));r(62301);var m=v(r(24270));function v(e){return e&&e.__esModule?e:{default:e}}function b(e,n){if(e){if("string"==typeof e)return g(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,n)}}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function w(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function k(e){var n=function(e,n){if("object"!==O(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==O(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===O(n)?n:String(n)}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var P=(0,a.default)({Promise:i.default}),j=P.fetch,_=P.Headers,S=function(e){return null==e},C=function(e){return e&&"object"===O(e)};function E(e){var n=(0,d.default)(e);return Array.isArray(e)&&(n.skip=e.skip,n.limit=e.limit,n.serverCount=e.serverCount),n}var x=function(){var e,n;function o(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,o),!(this instanceof o))return new o(e);if(this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.path=e,this.options=r,r.useSessionToken&&o.useSessionToken(r),r.hasOwnProperty("base")?this.base=r.base:o.baseUrl?this.base=o.baseUrl:this.base=window.location.href.match(/http[s]?:\/\/api./)[0],!e){this.projectUrl=o.projectUrl||"".concat(this.base,"/project"),this.projectsUrl="".concat(this.base,"/project"),this.projectId=!1,this.query="";return}r.hasOwnProperty("project")&&(this.projectUrl=r.project);var i=this.projectUrl||o.projectUrl,a=/(^|\/)(project)($|\/[^/]+)/,l=-1!==e.search(a);i&&this.base===i&&!l&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);var s=this.getUrlParts(e),u=[],c=s[1]+s[2],f=(e=s.length>3?s[3]:"").split("?");f.length>1&&(e=f[0],this.query="?".concat(f[1]));var d=function(r,o){n["".concat(r,"sUrl")]="".concat(o,"/").concat(r);var i=new RegExp("/".concat(r,"/([^/]+)"));return -1!==e.search(i)&&(u=e.match(i),n["".concat(r,"Url")]=u?o+u[0]:"",n["".concat(r,"Id")]=u.length>1?u[1]:"",o+=u[0]),o},p=function e(n,r,o){for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];if(Array.isArray(a))e(a,r,!0);else{var l=d(a,r);r=o?r:l}}};if(!this.projectUrl||this.projectUrl===this.base){if(this.projectUrl||l||"Subdirectories"!==o.pathType)this.projectUrl=c;else{var h="^".concat(c.replace(/\//g,"\\/"),".[^/]+"),y=i.match(new RegExp(h));this.projectUrl=y?y[0]:c}}var m=!1;if(o.pathType&&(m="Subdomains"!==o.pathType),!this.noProject){if(l)p(["project"],c),e=e.replace(a,"");else if(c===this.base){if(s.length>3&&e.split("/").length>1){var v=e.match(/.json/),b=e.split("/");v?this.projectUrl=c:(b.shift(),this.projectId=b.shift(),e="/".concat(b.join("/")),this.projectUrl="".concat(c,"/").concat(this.projectId))}}else s.length>2&&(s[2].split(".").length>2||c.includes("localhost"))&&!m&&(this.projectUrl=c,this.projectId=s[2].split(".")[0]);this.projectsUrl=this.projectsUrl||"".concat(this.base,"/project")}if(p(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))p(["form",["submission","action","v"]],this.projectUrl);else{var g=RegExp("/(submission|action|v)($|/.*)"),w=e.match(g);this.pathType=w&&w.length>1?w[1]:"",e=(e=e.replace(g,"")).replace(/\/$/,""),this.formsUrl="".concat(this.projectUrl,"/form"),this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");var k=["submission","action","v"];for(var O in k)if(k.hasOwnProperty(O)){var P=k[O];this["".concat(P,"sUrl")]="".concat(this.projectUrl+e,"/").concat(P),this.pathType===P&&w.length>2&&w[2]&&(this["".concat(P,"Id")]=w[2].replace(/^\/+|\/+$/g,""),this["".concat(P,"Url")]=this.projectUrl+e+w[0])}}o.projectUrlSet||(o.projectUrl=this.projectUrl)}return e=[{key:"delete",value:function(e,n){var r="".concat(e,"Id"),a="".concat(e,"Url");return this[r]?(o.cache={},this.makeRequest(e,this[a],"delete",null,n)):i.default.reject("Nothing to delete")}},{key:"index",value:function(e,n,r){var i="".concat(e,"Url");return(n=n||"")&&C(n)&&(n="?".concat(o.serialize(n.params))),this.makeRequest(e,this[i]+n,"get",null,r)}},{key:"save",value:function(e,n,r){var i="".concat(e,"Id"),a="".concat(e,"Url"),l=this[i]||n._id?"put":"post",s=this[i]?this[a]:this["".concat(e,"sUrl")];return this[i]||!n._id||"put"!==l||s.includes(n._id)||(s+="/".concat(n._id)),o.cache={},this.makeRequest(e,s+this.query,l,n,r)}},{key:"load",value:function(e,n,r){var a="".concat(e,"Id"),l="".concat(e,"Url");if(n&&C(n)&&(n=o.serialize(n.params)),n=n?this.query?"".concat(this.query,"&").concat(n):"?".concat(n):this.query,!this[a])return i.default.reject("Missing ".concat(a));var s=this[l]+n;return"form"!==e||isNaN(parseInt(this.vId))||0===parseInt(this.vId)||(s+=(s.match(/\?/)?"&":"?")+"formRevision=".concat(this.vId)),this.makeRequest(e,s,"get",null,r)}},{key:"makeRequest",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.makeRequest.apply(o,[this].concat(n))}},{key:"loadProject",value:function(e,n){return this.load("project",e,n)}},{key:"saveProject",value:function(e,n){return this.save("project",e,n)}},{key:"deleteProject",value:function(e){return this.delete("project",e)}},{key:"loadRole",value:function(e){return this.load("role",null,e)}},{key:"saveRole",value:function(e,n){return this.save("role",e,n)}},{key:"deleteRole",value:function(e){return this.delete("role",e)}},{key:"loadRoles",value:function(e){return this.index("roles",null,e)}},{key:"loadForm",value:function(e,n){var r=this;return this.load("form",e,n).then(function(i){return!i.revisions||isNaN(parseInt(r.vId))||"current"===i.revisions&&r.submissionId||i._vid==r.vId||i.revisionId===r.vId?i:(e&&C(e)&&(e=o.serialize(e.params)),e=e?r.query?"".concat(r.query,"&").concat(e):"?".concat(e):r.query,r.makeRequest("form",r.vUrl+e,"get",null,n).then(function(e){return i._vid=e._vid,i.components=e.components,i.settings=e.settings,i.revisionId=e.revisionId,Object.assign({},i)}).catch(function(){return Object.assign({},i)}))})}},{key:"saveForm",value:function(e,n){return this.save("form",e,n)}},{key:"deleteForm",value:function(e){return this.delete("form",e)}},{key:"loadForms",value:function(e,n){return this.index("forms",e,n)}},{key:"loadSubmission",value:function(e,n){var r=this;return this.load("submission",e,n).then(function(e){return r.vId=e._frid||e._fvid,r.vUrl="".concat(r.formUrl,"/v/").concat(r.vId),e})}},{key:"saveSubmission",value:function(e,n){return isNaN(parseInt(this.vId))||(e._fvid=this.vId),this.save("submission",e,n)}},{key:"deleteSubmission",value:function(e){return this.delete("submission",e)}},{key:"loadSubmissions",value:function(e,n){return this.index("submissions",e,n)}},{key:"loadAction",value:function(e,n){return this.load("action",e,n)}},{key:"saveAction",value:function(e,n){return this.save("action",e,n)}},{key:"deleteAction",value:function(e){return this.delete("action",e)}},{key:"loadActions",value:function(e,n){return this.index("actions",e,n)}},{key:"availableActions",value:function(){return this.makeRequest("availableActions","".concat(this.formUrl,"/actions"))}},{key:"actionInfo",value:function(e){return this.makeRequest("actionInfo","".concat(this.formUrl,"/actions/").concat(e))}},{key:"isObjectId",value:function(e){return RegExp("^[0-9a-fA-F]{24}$").test(e)}},{key:"getProjectId",value:function(){return this.projectId?this.isObjectId(this.projectId)?i.default.resolve(this.projectId):this.loadProject().then(function(e){return e._id}):i.default.resolve("")}},{key:"getFormId",value:function(){return this.formId?this.isObjectId(this.formId)?i.default.resolve(this.formId):this.loadForm().then(function(e){return e._id}):i.default.resolve("")}},{key:"currentUser",value:function(e){return o.currentUser(this,e)}},{key:"accessInfo",value:function(){return o.accessInfo(this)}},{key:"oauthLogoutURI",value:function(e,n){return o.oauthLogoutURI(e,Object.assign({formio:this},this.options,n))}},{key:"getToken",value:function(e){return o.getToken(Object.assign({formio:this},this.options,e))}},{key:"setToken",value:function(e,n){return o.setToken(e,Object.assign({formio:this},this.options,n))}},{key:"getTempToken",value:function(e,n,r){if(!o.getToken(r))return i.default.reject("You must be authenticated to generate a temporary auth token.");var a=o.authUrl||this.projectUrl;
1return this.makeRequest("tempToken","".concat(a,"/token"),"GET",null,{ignoreCache:!0,header:new _({"x-expire":e,"x-allow":n})})}},{key:"getDownloadUrl",value:function(e){var n=this;if(!this.submissionId)return i.default.resolve("");if(!e)return this.loadForm().then(function(e){return e?n.getDownloadUrl(e):""});var r="/project/".concat(e.project);r+="/form/".concat(e._id)+"/submission/".concat(this.submissionId);var o=e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download";r+=o;var a=this.base+r;return new i.default(function(e,o){n.getTempToken(3600,"GET:".concat(r)).then(function(n){e(a+="?token=".concat(n.key))},function(){e(a)}).catch(o)})}},{key:"uploadFile",value:function(e,n,r,i,a,l,s,c,f,d,p,h,y){var m=this,v={provider:e,method:"upload",file:n,fileName:r,dir:i};c=c||"file";var b=o.pluginWait("preRequest",v).then(function(){return o.pluginGet("fileRequest",v).then(function(o){if(e&&S(o)){var v=u.default.getProvider("storage",e);if(v){var b=new v(m);return p&&p(),b.uploadFile(n,r,i,a,l,s,c,f,d,h,y)}throw"Storage provider not found"}return o||{url:""}})});return o.pluginAlter("wrapFileRequestPromise",b,v)}},{key:"downloadFile",value:function(e,n){var r=this,i={method:"download",file:e},a=o.pluginWait("preRequest",i).then(function(){return o.pluginGet("fileRequest",i).then(function(o){if(e.storage&&S(o)){var i=u.default.getProvider("storage",e.storage);if(i)return new i(r).downloadFile(e,n);throw"Storage provider not found"}return o||{url:""}})});return o.pluginAlter("wrapFileRequestPromise",a,i)}},{key:"deleteFile",value:function(e,n){var r=this,i={method:"delete",file:e},a=o.pluginWait("preRequest",i).then(function(){return o.pluginGet("fileRequest",i).then(function(o){if(e.storage&&S(o)){var i=u.default.getProvider("storage",e.storage);if(i)return new i(r).deleteFile(e,n);throw"Storage provider not found"}return o||{url:""}})});return o.pluginAlter("wrapFileRequestPromise",a,i)}},{key:"userPermissions",value:function(e,n,r){return i.default.all([void 0!==n?i.default.resolve(n):this.loadForm(),void 0!==e?i.default.resolve(e):this.currentUser(),void 0===r&&this.submissionId?this.loadSubmission():i.default.resolve(r),this.accessInfo()]).then(function(e){var n=e.shift(),r=e.shift()||{_id:!1,roles:[]},o=e.shift(),i=e.shift(),a={create:"create",read:"read",update:"edit",delete:"delete"},l={user:r,form:n,access:i,create:!1,read:!1,edit:!1,delete:!1};for(var s in i.roles)if(i.roles.hasOwnProperty(s)){var u=i.roles[s];if(u.default&&!1===r._id)r.roles.push(u._id);else if(u.admin&&-1!==r.roles.indexOf(u._id))return l.create=!0,l.read=!0,l.delete=!0,l.edit=!0,l}if(n&&n.submissionAccess)for(var d=0;d<n.submissionAccess.length;d++){var p,y=n.submissionAccess[d],m=function(e){if(Array.isArray(e))return e}(p=y.type.split("_"))||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(p,2)||b(p,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),v=m[0],g=m[1];["create","read","update","delete"].includes(v)&&(0,c.default)(y.roles,r.roles).length&&(l[a[v]]="all"===g||!o||r._id===o.owner)}return o&&(0,h.eachComponent)(n.components,function(e,n){if(e&&e.defaultPermission){var i=(0,f.default)(o.data,n);(Array.isArray(i)?i:[i]).forEach(function(n){n&&n._id&&r.roles.indexOf(n._id)>-1&&("read"===e.defaultPermission&&(l[a.read]=!0),"create"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0),"write"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0),"admin"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0,l[a.delete]=!0))})}}),l})}},{key:"canSubmit",value:function(){var e=this;return this.userPermissions().then(function(n){return!n.create&&o.getUser()?e.userPermissions(null).then(function(e){return!!e.create&&(o.setUser(null),!0)}):n.create})}},{key:"getUrlParts",value:function(e){return o.getUrlParts(e,this)}}
1],n=[{key:"useSessionToken",value:function(e){var n="".concat(e.namespace||o.namespace||"formio","Token"),r=localStorage.getItem(n);r&&(localStorage.removeItem(n),sessionStorage.setItem(n,r));var i="".concat(e.namespace||o.namespace||"formio","User"),a=localStorage.getItem(i);a&&(localStorage.removeItem(i),sessionStorage.setItem(i,a)),localStorage.setItem("useSessionToken",!0)}},{key:"loadProjects",value:function(e,n){return C(e=e||"")&&(e="?".concat(o.serialize(e.params))),o.makeStaticRequest("".concat(o.baseUrl,"/project").concat(e),"GET",null,n)}},{key:"getUrlParts",value:function(e,n){var r=n&&n.base?n.base:o.baseUrl,i="^(http[s]?:\\/\\/)";return r&&0===e.indexOf(r)?i+="(".concat(r.replace(/^http[s]?:\/\//,""),")"):i+="([^/]+)",i+="($|\\/.*)",e.match(new RegExp(i))}},{key:"serialize",value:function(e,n){var r,o=[];for(var i in e)e.hasOwnProperty(i)&&o.push("".concat(encodeURIComponent(i),"=").concat(encodeURIComponent((r=e[i],n?n(r):r))));return o.join("&")}},{key:"getRequestArgs",value:function(e,n,r,o,i,a){o=(o||"GET").toUpperCase(),a&&C(a)||(a={});var l={url:r,method:o,data:i||null,opts:a};return n&&(l.type=n),e&&(l.formio=e),l}},{key:"makeStaticRequest",value:function(e,n,r,i){var a=o.getRequestArgs(null,"",e,n,r,i),l=o.pluginWait("preRequest",a).then(function(){return o.pluginGet("staticRequest",a).then(function(e){return S(e)?o.request(a.url,a.method,a.data,a.opts.header,a.opts):e})});return o.pluginAlter("wrapStaticRequestPromise",l,a)}},{key:"makeRequest",value:function(e,n,r,i,a,l){if(!e)return o.makeStaticRequest(r,i,a,l);var s=o.getRequestArgs(e,n,r,i,a,l);s.opts=s.opts||{},s.opts.formio=e,s.opts.headers||(s.opts.headers={}),s.opts.headers=(0,p.default)(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});var u=o.pluginWait("preRequest",s).then(function(){return o.pluginGet("request",s).then(function(e){return S(e)?o.request(s.url,s.method,s.data,s.opts.header,s.opts):e})});return o.pluginAlter("wrapRequestPromise",u,s)}},{key:"request",value:function(e,n,r,a,l){if(!e)return i.default.reject("No url provided");n=(n||"GET").toUpperCase(),O(l)===O(!0)&&(l={ignoreCache:l}),l&&C(l)||(l={});var s=btoa(encodeURI(e));if(!l.ignoreCache&&"GET"===n&&o.cache.hasOwnProperty(s))return i.default.resolve(E(o.cache[s]));var u=a||new _(l.headers||{Accept:"application/json","Content-type":"application/json"}),c=o.getToken(l);c&&!l.noToken&&u.append("x-jwt-token",c);var f={};u.forEach(function(e,n){f[n]=e});var d={method:n,headers:f,mode:"cors"};r&&(d.body=JSON.stringify(r)),((d=o.pluginAlter("requestOptions",d,e)).namespace||o.namespace)&&(l.namespace=d.namespace||o.namespace);var p=d.headers["x-jwt-token"];return o.pluginAlter("wrapFetchRequestPromise",o.fetch(e,d),{url:e,method:n,data:r,opts:l}).then(function(a){if(!(a=o.pluginAlter("requestResponse",a,o,r)).ok){if(440===a.status)o.setToken(null,l),o.events.emit("formio.sessionExpired",a.body);else if(401===a.status)o.events.emit("formio.unauthorized",a.body);else if(416===a.status)o.events.emit("formio.rangeIsNotSatisfiable",a.body);else if(504===a.status)return i.default.reject(Error("Network request failed"));return(a.headers.get("content-type").includes("application/json")?a.json():a.text()).then(function(e){return i.default.reject(e)})}var s=a.headers.get("x-jwt-token"),u=!1;return("GET"!==n||p||!s||l.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),u=!0),a.status>=200&&a.status<300&&s&&""!==s&&!u&&o.setToken(s,l),204===a.status)?{}:(a.headers.get("content-type").includes("application/json")?a.json():a.text()).then(function(e){var n=a.headers.get("content-range");if(n&&C(e)){if("*"!==(n=n.split("/"))[0]){var r=n[0].split("-");e.skip=Number(r[0]),e.limit=r[1]-r[0]+1}e.serverCount="*"===n[1]?n[1]:Number(n[1])}if(!l.getHeaders)return e;var o={};return a.headers.forEach(function(e,n){o[n]=e}),{result:e,headers:o}})}).then(function(e){return l.getHeaders?e:("GET"===n&&(o.cache[s]=e),E(e))}).catch(function(r){return"Bad Token"===r&&(o.setToken(null,l),o.events.emit("formio.badToken",r)),r.message&&((r=Error("Could not connect to API server (".concat(r.message,"): ").concat(e))).networkError=!0),"GET"===n&&delete o.cache[s],i.default.reject(r)})}},{key:"token",get:function(){return o.tokens||(o.tokens={}),o.tokens.formioToken||""},set:function(e){o.tokens||(o.tokens={}),o.tokens.formioToken=e||""}},{key:"setToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;e=e||"",n="string"==typeof n?{namespace:n}:n||{};var r="".concat(n.namespace||o.namespace||"formio","Token");o.tokens||(o.tokens={});var a=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){n.fromUser||(n.fromToken=!0,o.setUser(null,n));try{a.removeItem(r)}catch(e){s.default.erase(r,{path:"/"})}return o.tokens[r]=e,i.default.resolve(null)}if(o.tokens[r]!==e){o.tokens[r]=e;try{a.setItem(r,e)}catch(n){s.default.set(r,e,{path:"/"})}}return this.currentUserResolved?o.currentUser(n.formio,n):i.default.resolve(null)}},{key:"getToken",value:function(e){e="string"==typeof e?{namespace:e}:e||{};var n="".concat(e.namespace||o.namespace||"formio","Token"),r=e.decode?"".concat(n,"Decoded"):n;if(o.tokens||(o.tokens={}),o.tokens[r])return o.tokens[r];try{var i=localStorage.getItem("useSessionToken")?sessionStorage.getItem(n):localStorage.getItem(n);if(o.tokens[n]=i||"",e.decode)return o.tokens[r]=o.tokens[n]?(0,y.default)(o.tokens[n]):{},o.tokens[r];return o.tokens[n]}catch(e){return o.tokens[n]=s.default.get(n),o.tokens[n]}}}
vendor: 4,317 bytes, line 1
1,{key:"oauthLogoutURI",value:function(e,n){n="string"==typeof n?{namespace:n}:n||{};var r="".concat(n.namespace||o.namespace||"formio","LogoutAuthUrl");return o.tokens[r],localStorage.setItem(r,e),o.tokens[r]}},{key:"setUser",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="".concat(n.namespace||o.namespace||"formio","User"),i=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){n.fromToken||(n.fromUser=!0,o.setToken(null,n)),o.events.emit("formio.user",null);try{return i.removeItem(r)}catch(e){return s.default.erase(r,{path:"/"})}}try{i.setItem(r,JSON.stringify(e))}catch(n){s.default.set(r,JSON.stringify(e),{path:"/"})}o.events.emit("formio.user",e)}},{key:"getUser",value:function(e){e=e||{};var n="".concat(e.namespace||o.namespace||"formio","User");try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(n)||null)}catch(e){return JSON.parse(s.default.get(n))}}},{key:"setBaseUrl",value:function(e){o.baseUrl=e,o.projectUrlSet||(o.projectUrl=e)}},{key:"getBaseUrl",value:function(){return o.baseUrl}},{key:"setApiUrl",value:function(e){return o.setBaseUrl(e)}},{key:"getApiUrl",value:function(){return o.getBaseUrl()}},{key:"setAppUrl",value:function(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),o.projectUrl=e,o.projectUrlSet=!0}},{key:"setProjectUrl",value:function(e){o.projectUrl=e,o.projectUrlSet=!0}},{key:"setAuthUrl",value:function(e){o.authUrl=e}},{key:"getAppUrl",value:function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),o.projectUrl}},{key:"getProjectUrl",value:function(){return o.projectUrl}},{key:"clearCache",value:function(){o.cache={}}},{key:"noop",value:function(){}},{key:"identity",value:function(e){return e}},{key:"deregisterPlugin",value:function(e){var n=o.plugins.length;return o.plugins=o.plugins.filter(function(n){return n!==e&&n.__name!==e||((n.deregister||o.noop).call(e,o),!1)}),n!==o.plugins.length}},{key:"registerPlugin",value:function(e,n){o.plugins.push(e),o.plugins.sort(function(e,n){return(n.priority||0)-(e.priority||0)}),e.__name=n,(e.init||o.noop).call(e,o)}},{key:"getPlugin",value:function(e){var n,r=function(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(e))){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw a}}}}(o.plugins);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.__name===e)return i}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"pluginWait",value:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return i.default.all(o.plugins.map(function(n){var i;return(i=n[e]||o.noop).call.apply(i,[n].concat(r))}))}},{key:"pluginGet",value:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return function n(a){var l,s=o.plugins[a];return s?i.default.resolve((l=s[e]||o.noop).call.apply(l,[s].concat(r))).then(function(e){return S(e)?n(a+1):e}):i.default.resolve(null)}(0)}},{key:"pluginAlter",value:function(e,n){for(var r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return o.plugins.reduce(function(n,r){return(r[e]||o.identity).apply(void 0,[n].concat(i))},n)}},{key:"accessInfo",value:function(e){var n=e?e.projectUrl:o.projectUrl;return o.makeRequest(e,"accessInfo","".concat(n,"/access"))}},{key:"projectRoles",value:function(e){var n=e?e.projectUrl:o.projectUrl;return o.makeRequest(e,"projectRoles","".concat(n,"/role"))}},{key:"currentUser",value:function(e,n){var r=this,a=o.authUrl;a||(a=e?e.projectUrl:o.projectUrl||o.baseUrl),a+="/current";var l=o.getUser(n);if(l)return o.pluginAlter("wrapStaticRequestPromise",i.default.resolve(l),{url:a,method:"GET",options:n});var s=o.getToken(n);return n&&n.external||s?(this.currentUserResolved=!1,o.makeRequest
1(e,"currentUser",a,"GET",null,n).then(function(e){return r.currentUserResolved=!0,o.setUser(e,n),e})):o.pluginAlter("wrapStaticRequestPromise",i.default.resolve(null),{url:a,method:"GET",options:n})}},{key:"logout",value:function(e,n){(n=n||{}).formio=e;var r=o.authUrl?o.authUrl:e?e.projectUrl:o.baseUrl,i=function(){o.setToken(null,n),o.setUser(null,n),o.clearCache(),localStorage.removeItem("useSessionToken")};return o.makeRequest(e,"logout","".concat(r,"/logout")).then(function(e){return i(),e}).catch(function(e){throw i(),e})}},{key:"pageQuery",value:function(){var e={};e.paths=[];var n=location.hash.substr(1).replace(/\?/g,"&").split("&"),r=[];return location.search.substr(1).split("&").forEach(function(n){(r=n.split("=")).length>1&&(e[r[0]]=r[1]&&decodeURIComponent(r[1]))}),n.forEach(function(n){(r=n.split("=")).length>1?e[r[0]]=r[1]&&decodeURIComponent(r[1]):0===n.indexOf("/")&&(e.paths=n.substr(1).split("/"))}),e}},{key:"oAuthCurrentUser",value:function(e,n){return o.currentUser(e,{external:!0,headers:{Authorization:"Bearer ".concat(n)}})}},{key:"samlInit",value:function(e){e=e||{};var n=o.pageQuery();if(n.saml){o.setUser(null);var r=o.setToken(n.saml),i=window.location.toString();return i=i.substring(0,i.indexOf("?")),window.location.hash&&(i+=window.location.hash),window.history.replaceState({},document.title,i),r}e.relay||(e.relay=window.location.href);var a=o.authUrl||o.projectUrl;return window.location.href="".concat(a,"/saml/sso?relay=").concat(encodeURI(e.relay)),!1}},{key:"oktaInit",value:function(e){if(e=e||{},("undefined"==typeof OktaAuth?"undefined":O(OktaAuth))!==void 0&&(e.OktaAuth=OktaAuth),void 0===O(e.OktaAuth)){var n="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(n),i.default.reject(n)}return new i.default(function(n,r){var i=e.OktaAuth;delete e.OktaAuth;var a=new i(e);a.tokenManager.get("accessToken").then(function(i){i?n(o.oAuthCurrentUser(e.formio,i.accessToken)):location.hash?a.token.parseFromUrl().then(function(r){a.tokenManager.add("accessToken",r),n(o.oAuthCurrentUser(e.formio,r.accessToken))}).catch(function(e){console.warn(e),r(e)}):(a.token.getWithRedirect({responseType:"token",scopes:e.scopes}),n(!1))}).catch(function(e){r(e)})})}},{key:"ssoInit",value:function(e,n){switch(e){case"saml":return o.samlInit(n);case"okta":return o.oktaInit(n);default:return console.warn("Unknown SSO type"),i.default.reject("Unknown SSO type")}}},{key:"requireLibrary",value:function(e,n,r,a,l){if(!o.libraries.hasOwnProperty(e)){o.libraries[e]={},o.libraries[e].ready=new i.default(function(n,r){o.libraries[e].resolve=n,o.libraries[e].reject=r});var s="".concat(e,"Callback");a||window[s]||(window[s]=function(){return o.libraries[e].resolve()});var u=(0,f.default)(window,n);if(u)o.libraries[e].resolve(u);else if((r=Array.isArray(r)?r:[r]).forEach(function(n){var r={},i="";switch("string"==typeof n&&(n={type:"script",src:n}),n.type){case"script":i="script",r={src:n.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":i="link",r={href:n.src,rel:"stylesheet"}}var a=document.createElement(i);if(a.setAttribute)for(var s in r)a.setAttribute(s,r[s]);l&&a.addEventListener("load",function(){o.libraries[e].loaded=!0,l(o.libraries[e].ready)});var u=document.head;u&&u.appendChild(a)}),a)var c=setInterval(function(){var r=(0,f.default)(window,n);r&&(clearInterval(c),o.libraries[e].resolve(r))},200)}var d=o.libraries[e];return l&&d.loaded?l(d.ready):d.ready}},{key:"libraryReady",value:function(e){return o.libraries.hasOwnProperty(e)&&o.libraries[e].ready?o.libraries[e].ready:i.default.reject("".concat(e," library was not required."))}},{key:"addToGlobal",value:function(e){"object"!==O(e)||e.Formio||(e.Formio=o)}},{key:"setPathType",value:function(e){"string"==typeof e&&(o.pathType=e)}},{key:"getPathType",value:function(){return o.pathType}},{key:"rulesEntities",get:function(){return{ValueSources:o.ValueSources,Conjunctions:o.Conjunctions,Operators:o.Operators,Transformers:o.Transformers,Qu
1ickRules:o.QuickRules,Rules:o.Rules}}},{key:"GlobalFormio",get:function(){return void 0!==r.g&&r.g.Formio?r.g.Formio:window.Formio?window.Formio:o}}],e&&w(o.prototype,e),n&&w(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}();(o=k(o="currentUserResolved"))in x?Object.defineProperty(x,o,{value:!0,enumerable:!0,configurable:!0,writable:!0}):x[o]=!0,x.libraries={},x.Promise=i.default,x.fetch=j,x.Headers=_,x.baseUrl="https://api.form.io",x.projectUrl=x.baseUrl,x.authUrl="",x.projectUrlSet=!1,x.plugins=[],x.cache={},x.Providers=u.default,x.version="4.21.7",x.pathType="",x.events=new l.default,x.cdn=new m.default,(x.version||"").includes("rc")&&x.cdn.setBaseUrl("https://cdn.test-form.io"),void 0!==r.g&&x.addToGlobal(r.g),x.addToGlobal(window);var R=x.GlobalFormio;n.GlobalFormio=R,n.default=x},88606:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(37753),r(26803),r(97599),r(55096),r(3616),r(71287),r(43053),r(56613),r(65813);var i=u(r(32780)),a=r(79408),l=u(r(15921)),s=r(38163);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=y(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function h(e,n){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&h(e,n)}(m,e);var n,r,l,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(m);if(n){var i=y(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(e,n){var r;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m),n.display="pdf",(r=u.call(this,e,n)).components=[],r}return r=[{key:"init",value:function(){var e=this;p(y(m.prototype),"init",this).call(this),this.on("iframe-submission",function(n){return e.setValue(n,{fromIframe:!0})},!0),this.on("iframe-change",function(n){return e.setValue(n,{fromIframe:!0})},!0),this.on("iframe-getIframePositions",function(n){var r=document.getElementById("iframe-".concat(n.formId));if(r){var o=r.getBoundingClientRect();e.postMessage({name:"iframePositions",data:{formId:n.formId,iframe:{top:o.top},scrollY:window.scrollY||window.pageYOffset}})}}),this.on("iframe-ready",function(){return e.iframeReadyResolve()},!0)}},{key:"render",value:function(){return this.submitButton=this.addComponent({disabled:this.form.disableWizardSubmit,input:!0,type:"button",action:"submit",internal:!0,label:"Submit",key:"submit",ref:"button",hidden:this.isSubmitButtonHidden()}),this.renderTemplate("pdf",{submitButton:this.submitButton.render(),classes:"formio-form-pdf",children:this.renderComponents()})}},{key:"redraw",value:function(){return this.postMessage({name:"redraw"}),this.builderMode?i.default.resolve():p(y(m.prototype),"redraw",this).call(this)}},{key:"rebuild",value:function(){return this.builderMode&&this.component.components?(this.destroyComponents(),this.addComponents(),i.default.resolve()):(this.postMessage({name:"redraw"}),p(y(m.prototype),"rebuild",this).call(this))}},{key:"attachComponents",value:function(e,n,r){return n=n||this.components,r=r||this.component.components,e=this.hook("attachComponents",e,n,r,this),Promise.resolve()}},{key:"attach",value:function(e){var n=this;return p(y(m.prototype),"attach",this).call(this,e).then(function(){n.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single",zoomIn:"single",zoomOut:"single",iframeContainer:"single"}),n.submitButton.refs=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?c(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=d(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}({},n.refs),n.submitButton.attachButton(),n.iframeReady=new i.default(function(e,r){n.iframeReadyResolve=e,n.iframeReadyReject=r}),n.iframeElement=n.ce("iframe",{src:n.getSrc(),id:"iframe-".concat(n.id),seamless:!0,class:"formio-iframe"}),n.iframeElement.formioContainer=n.component.components,n.iframeElement.formioComponent=n,n.empty(n.refs.iframeContainer),n.appendChild(n.refs.iframeContainer,n.iframeElement),n.form.base=a.GlobalFormio.getBaseUrl(),n.form.projectUrl=a.GlobalFormio.getProjectUrl(),n.postMessage({name:"form",data:n.form});var r=n.components.find(function(e){return e.element===n.refs.button});r&&n.refs.button.classList.toggle("hidden",!r.visible),n.addEventListener(n.refs.zoomIn,"click",function(e){e.preventDefault(),n.postMessage({name:"zoomIn"})}),n.addEventListener(n.refs.zoomOut,"click",function(e){e.preventDefault(),n.postMessage({name:"zoomOut"})});var o=(0,s.fastCloneDeep)(n.form);n.formio&&(o.projectUrl=n.formio.projectUrl,o.url=n.formio.formUrl,o.base=n.formio.base,n.postMessage({name:"token",data:n.formio.getToken()})),n.emit("attach")})}},{key:"getSubmission",value:function(){var e=this;return new i.default(function(n){e.once("iframe-submission",n),e.postMessage({name:"getSubmission"})})}},{key:"submitForm",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.postMessage({name:"getErrors"}),this.getSubmission().then(function(){return p(y(m.prototype),"submitForm",e).call(e,n)})}},{key:"getSrc",value:function(){if(!this._form||!this._form.settings||!this._form.settings.pdf)return"";var e="".concat(this._form.settings.pdf.src,".html"),n=["id=".concat(this.id)];return(this.options.showCheckboxBackground||this._form.settings.showCheckboxBackground)&&n.push("checkboxbackground=1"),this.options.readOnly&&n.push("readonly=1"),this.options.zoom&&n.push("zoom=".concat(this.options.zoom)),this.builderMode&&n.push("builder=1"),n.length&&(e+="?".concat(n.join("&"))),e}},{key:"setForm",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(y(m.prototype),"setForm",this).call(this,e,r).then(function(){n.formio&&(e.projectUrl=n.formio.projectUrl,e.url=n.formio.formUrl,e.base=n.formio.base,n.postMessage({name:"token",data:n.formio.getToken()})),n.postMessage({name:"form",data:n.form})})}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=p(y(m.prototype),"setValue",this).call(this,e,r);return r&&r.fromIframe||this.once("iframe-ready",function(){o&&n.postMessage({name:"submission",data:e})}),o}},{key:"postMessage",value:function(e){var n=this;this.iframeReady&&(e.type||(e.type="iframe-data"),this.iframeReady.then(function(){n.iframeElement&&n.iframeElement.contentWindow&&!("form"===e.name&&n.iframeFormSetUp)&&(n.iframeElement.contentWindow.postMessage(JSON.stringify(e),"*"),n.iframeFormSetUp="form"===e.name)}))}},{key:"focusOnComponent",value:function(e){this.postMessage({name:"focusErroredField",data:e})}},{key:"clear",value:function(){}},{key:"showErrors",value:function(e,n){var r,o=document.getElementById("submit-error"),i=this.t("submitError"),a=(null===(r=this.refs.buttonMessage)||void 0===r?void 0:r.textContent.trim())===i;if(!o&&this.errors.length&&!a){var l=this.ce("p",{class:"help-block"});this.setContent(l,i),l.addEventListener("click",function(){window.scrollTo(0,0)});var s=this.ce("div",{id:"submit-error",class:"has-error"});this.appendTo(l,s),this.appendTo(s,this.element)}!this.errors.length&&o&&o.remove(),p(y(m.prototype),"showErrors",this).call(this,e,n)}},{key:"isSubmitButtonHidden",value:function(){var e=!1;return(0,s.eachComponent)(this.component.components,function(n){"button"!==n.type||"submit"!==n.action&&n.action||(e=n.hidden||!1)}),e}}],f(m.prototype,r),l&&f(m,l),Object.defineProperty(m,"prototype",{writable:!1}),m}(l.default);n.default=m,window.addEventListener("message",function(e){var n=null;try{n=JSON.parse(e.data)}catch(e){n=null}n&&n.name&&n.formId&&a.GlobalFormio.forms.hasOwnProperty(n.formId)&&a.GlobalFormio.forms[n.formId].emit("iframe-".concat(n.name),n.data)})},42532:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(70601),r(11414),r(26343),r(7122),r(3616),r(789),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(20680),r(67998),r(41135),r(37753),r(28839),r(889
110),r(50703),r(68854),r(33546),r(88852),r(56613),r(49907),r(30890),r(86132),r(43053),r(65813);var i=p(r(2890)),a=p(r(32780)),l=r(79408),s=p(r(99588)),u=r(38163),c=r(53669),f=p(r(71125)),d=p(r(88606));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return y(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function m(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=w(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function b(e,n){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function g(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}(p,e);var n,r,o,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w(p);if(n){var o=w(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return g(this,e)});function p(){var e,n,r;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),arguments[0]instanceof HTMLElement||arguments[1]?(n=arguments[0],r=arguments[1]):r=arguments[0],r.skipInit=!0,r.display="pdf",(e=n?s.call(this,n,r):s.call(this,r)).dragDropEnabled=!1,g(e)}return r=[{key:"defaultGroups",get:function(){return{pdf:{title:"PDF Fields",weight:0,default:!0,components:{textfield:!0,number:!0,password:!0,email:!0,phoneNumber:!0,currency:!0,checkbox:!0,signature:!0,select:!0,textarea:!0,datetime:!0,file:!0,htmlelement:!0,signrequestsignature:!0}},basic:!1,advanced:!1,layout:!1,data:!1,premium:!1,resource:!1}}},{key:"hasPDF",get:function(){return i.default.has(this.webform.form,"settings.pdf")}},{key:"projectUrl",get:function(){return this.options.projectUrl||l.GlobalFormio.getProjectUrl()}},{key:"init",value:function(){this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.webform.init()}},{key:"render",value:function(){var e=this;return this.renderTemplate("pdfBuilder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id
1),groups:this.groupOrder.map(function(n){return e.renderTemplate("builderSidebarGroup",{group:e.groups[n],groupKey:n,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[n].subgroups.map(function(r){return e.renderTemplate("builderSidebarGroup",{group:r,groupKey:r.key,groupId:"group-container-".concat(n),subgroups:[]})})})})}),form:this.hasPDF?this.webform.render():this.renderTemplate("pdfBuilderUpload",{})})}},{key:"attach",value:function(e){var n=this;if(!this.hasPDF){if(this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",hiddenFileInputElement:"single",uploadError:"single",uploadProgress:"single",uploadProgressWrapper:"single",dragDropText:"single"}),this.addEventListener(this.refs["pdf-upload-button"],"click",function(e){e.preventDefault()}),this.projectUrl?this.setUploadError():this.setUploadError('Form options.projectUrl not set. Please set the "projectUrl" property of the options for this form or use Formio.setProjectUrl(). This setting is necessary to upload a pdf background.'),this.refs.fileDrop){var r=this;this.addEventListener(this.refs.fileDrop,"dragover",function(e){this.className="fileSelector fileDragOver",e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"dragleave",function(e){this.className="fileSelector",e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"drop",function(e){return this.className="fileSelector",e.preventDefault(),r.upload(e.dataTransfer.files[0]),!1})}return this.refs.fileBrowse&&this.refs.hiddenFileInputElement&&(this.addEventListener(this.refs.fileBrowse,"click",function(e){e.preventDefault(),"function"==typeof n.refs.hiddenFileInputElement.trigger?n.refs.hiddenFileInputElement.trigger("click"):n.refs.hiddenFileInputElement.click()}),this.addEventListener(this.refs.hiddenFileInputElement,"change",function(){n.refs.hiddenFileInputElement.value&&(n.upload(n.refs.hiddenFileInputElement.files[0]),n.refs.hiddenFileInputElement.value="")}
1)),a.default.resolve()}return v(w(p.prototype),"attach",this).call(this,e).then(function(){return n.loadRefs(n.element,{iframeDropzone:"single","sidebar-container":"multiple",sidebar:"single"}),n.afterAttach(),n.element})}},{key:"afterAttach",value:function(){var e=this;this.on("saveComponent",function(n){e.webform.postMessage({name:"updateElement",data:n})}),this.on("removeComponent",function(n){e.webform.postMessage({name:"removeElement",data:n})}),this.initIframeEvents(),this.updateDropzoneDimensions();var n=this.refs.sidebar;n&&(this.addClass(n,"disabled"),this.webform.on("iframe-ready",function(){e.pdfLoaded=!0,e.updateDragAndDrop(),e.removeClass(n,"disabled")},!0))}},{key:"upload",value:function(e){var n=this,r=new l.GlobalFormio(this.projectUrl);this.refs.dragDropText&&(this.refs.dragDropText.style.display="none"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="inherit"),r.uploadFile("url",e,e,"",function(e){if(n.refs.uploadProgress){var r=Math.floor(e.loaded/e.total*100);n.refs.uploadProgress.style.width="".concat(r,"%"),r>98?n.refs.uploadProgress.innerHTML=n.t("Converting PDF. Please wait."):n.refs.uploadProgress.innerHTML="".concat(n.t("Uploading")," ").concat(r,"%")}},"".concat(this.projectUrl,"/upload"),{},"file").then(function(e){var r=!1;if(null!==(o=e.data.formfields)&&void 0!==o&&o.components&&e.data.formfields.components.length){var o,a,l,s,u=(null===(a=n.webform.form.components[0])||void 0===a?void 0:a.key)==="submit",c=(null===(l=n.webform.form.components[0])||void 0===l?void 0:l.key)==="page1"&&(null===(s=n.webform.form.components[0])||void 0===s?void 0:s.components.length)===0,f=0===n.webform.form.components.length;(u||c||f)&&(r=!0,n.webform.form.components=e.data.formfields.components)}n.refs.dragDropText&&(n.refs.dragDropText.style.display="inherit"),n.refs.uploadProgressWrapper&&(n.refs.uploadProgressWrapper.style.display="none"),i.default.set(n.webform.form,"settings.pdf",{id:e.data.file,src:e.data.filesServer?"".concat(e.data.filesServer).concat(e.data.path):"".concat(new URL(n.projectUrl).origin,"/pdf-proxy").concat(e.data.path),nonFillableConversionUsed:r&&e.data.formfields.nonFillableConversionUsed}),n.emit("pdfUploaded",e.data),n.redraw()}).catch(function(e){return n.setUploadError(e)})}},{key:"setUploadError",value:function(e){this.refs.uploadError&&(this.refs.uploadError.style.display=e?"":"none",this.refs.uploadError.innerHTML=e)}},{key:"createForm",value:function(e){var n=this;return e.skipInit=!1,e.hideLoader=!0,this.webform=new d.default(this.element,e),this.webform.on("attach",function(){n.refs.iframeDropzone&&!h(n.refs.form.children).includes(n.refs.iframeDropzone)&&n.prependTo(n.refs.iframeDropzone,n.refs.form)}),this.webform}},{key:"destroy",value:function(e){v(w(p.prototype),"destroy",this).call(this,e),this.webform.destroy(e)}},{key:"getParentContainer",value:function(e){var n=[],r=null;return(0,c.eachComponent)(this.webform._form.components,function(o,i,a){if(o.id===e.component.id)return n=a,r=o,!0},!0),{formioComponent:e.parent,formioContainer:n,originalComponent:r}}},{key:"initIframeEvents",value:function(){var e=this;this.webform.off("iframe-elementUpdate"),this.webform.off("iframe-componentUpdate"),this.webform.off("iframe-componentClick"),this.webform.on("iframe-elementUpdate",function(n){var r=e.webform.getComponentById(n.id);return r&&r.component&&(r.component.overlay={page:n.page,left:n.left,top:n.top,height:n.height,width:n.width},e.options.noNewEdit||r.component.noNewEdit||e.editComponent(r.component,e.getParentContainer(r),!0),e.emit("updateComponent",r.component)),r}),this.webform.on("iframe-componentUpdate",function(n){var r=e.webform.getComponentById(n.id);return r&&r.component&&(r.component.overlay={page:n.overlay.page,left:n.overlay.left,top:n.overlay.top,height:n.overlay.height,width:n.overlay.width},e.emit("updateComponent",r.component),e.emit("change",e.form)),r}),this.webform.on("iframe-componentClick",function(n){var r=e.webform.getComponentById(n.id);r&&e.editComponent(r.component,e.getParentContainer(r))},!0)}},{key:"initDropzoneEvents",value:function(){this.refs.iframeDropzone&&(this.removeEventListener(this.refs.iframeDropzone,"dragover"),this.removeEventListener(this.refs.iframeDropzone,"drop"),this.addEventListener(this.refs.iframeDropzone,"dragover",function(e){return e.preventDefault(),!1}),this.addEventListener(this.refs.iframeDropzone,"drop",this.onDropzoneDrop.bind(this)))}},{key:"updateDragAndDrop",value:function(){this.pdfLoaded&&(this.initDropzoneEvents(),this.prepSidebarComponentsForDrag())}},{key:"prepSidebarComponentsForDrag",value:function(){var e=this;this.refs["sidebar-container"]&&this.refs["sidebar-container"].forEach(function(n){h(n.
1children).forEach(function(n){n.draggable=!0,n.setAttribute("draggable",!0),e.removeEventListener(n,"dragstart"),e.removeEventListener(n,"dragend"),e.addEventListener(n,"dragstart",e.onDragStart.bind(e),!0),e.addEventListener(n,"dragend",e.onDragEnd.bind(e),!0),e.addEventListener(n,"drag",function(e){e.target.style.cursor="none"})})})}},{key:"updateDropzoneDimensions",value:function(){if(this.refs.iframeDropzone){var e=(0,u.getElementRect)(this.webform.refs.iframeContainer);this.refs.iframeDropzone.style.height=e&&e.height?"".concat(e.height,"px"):"1000px",this.refs.iframeDropzone.style.width=e&&e.width?"".concat(e.width,"px"):"100%"}}},{key:"onDragStart",value:function(e){var n=e.offsetX,r=e.offsetY;this.itemOffsetX=void 0===n?0:n,this.itemOffsetY=void 0===r?0:r,e.dataTransfer.setData("text",""),this.updateDropzoneDimensions(),this.addClass(this.refs.iframeDropzone,"enabled"),this.dropEmitted=!1}},{key:"onDropzoneDrop",value:function(e){return this.dropEmitted=!0,this.dropEvent=e,e.preventDefault(),!1}},{key:"onDragEnd",value:function(e){var n=this.webform.refs.iframeContainer.getBoundingClientRect(),r=this.dropEvent?this.dropEvent.layerX:null,o=this.dropEvent?this.dropEvent.layerY:null;if(this.removeClass(this.refs.iframeDropzone,"enabled"),!this.dropEvent){if(this.dropEmitted||!(0,u.getBrowserInfo)().chrome&&!(0,u.getBrowserInfo)().edge||"macOS"!==globalThis.navigator.userAgentData.platform||!(n.left<e.clientX)||!(n.top<e.clientY))return;this.dropEvent=e,this.dropEvent.dataTransfer.effectAllowed="all",this.dropEmitted=!0}var a=e.target,l=a.getAttribute("data-type"),s=a.getAttribute("data-key"),c=a.getAttribute("data-group"),d=(0,u.fastCloneDeep)(this.schemas[l]);if(s&&c){var p=this.getComponentInfo(s,c);i.default.merge(d,p)}f.default.uniquify([this.webform._form],d),this.webform._form.components.push(d),d.overlay={top:o?o-this.itemOffsetY+20:e.clientY-n.top-(this.itemOffsetY-20)*2,left:r?r-this.itemOffsetX:e.clientX-n.left-2*this.itemOffsetX,width:100,height:20},this.webform.addComponent(d,{},null,!0),this.webform.postMessage({name:"addElement",data:d}),this.emit("addComponent",d,this.webform,d.key,this.webform.component.components.length,!this.options.noNewEdit&&!d.noNewEdit),this.dropEvent=null,e.target.style.cursor="default"}},{key:"highlightInvalidComponents",value:function(){var e=this,n=this.findRepeatablePaths();i.default.isEqual(this.repeatablePaths,n)||((0,c.eachComponent)(this.webform.getComponents(),function(n,r){e.repeatablePaths.includes(r)&&e.webform.postMessage({name:"updateElement",data:n.component})}),this.repeatablePaths=n),n.length&&(0,c.eachComponent)(this.webform.getComponents(),function(n,r){e.repeatablePaths.includes(r)&&e.webform.postMessage({name:"showBuilderErrors",data:{compId:n.component.id,errorMessage:"API Key is not unique: ".concat(n.key)}})})}}],m(p.prototype,r),o&&m(p,o),Object.defineProperty(p,"prototype",{writable:!1}),p}(s.default);n.default=k},15921:function(e,n,r){"use strict";r(64652),r(43053),r(65813),r(84812),r(23850),r(37097),r(80107),r(89352),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(56613),r(94195),r(789),r(66334),r(18666),r(71287),r(67998),r(70601),r(49907),r(37753),r(30890),r(48510),r(70776),r(33546),r(88852),r(20680),r(3616),r(62107),r(21430),r(6778),r(68428),r(21587);var o=m(r(2890)),i=m(r(62067)),a=m(r(83161)),l=m(r(3528)),s=m(r(57310)),u=m(r(82135)),c=r(79408),f=m(r(32780)),d=m(r(5956)),p=m(r(51824)),h=r(38163),y=r(53669);function m(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function g(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?b(Object(r),!0).forEach(function(n){_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,S(o.key),o)}}function k(){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=j(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function O(e,n){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function P(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,n,r){return(n=S(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function S(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==v(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===v(n)?n:String(n)}c.GlobalFormio.forms={},c.GlobalFormio.registerComponent=d.default.setComponent;var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&O(e,n)}(m,e);var n,r,d,p=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=j(m);if(n){var o=j(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===v(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return P(e)}(this,e)});function m(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m),arguments[0]instanceof HTMLElement||arguments[1]?(i=arguments[0],a=arguments[1]):a=arguments[0],_(P(r=p.call(this,null,(e=a,(e=o.default.defaults(e,{submitOnEnter:!1,iconset:"fontawesome"===(n=e&&e.icons?e.icons:c.GlobalFormio.icons)?"fa":n||"",i18next:s.default,saveDraft:!1,alwaysDirty:!1,saveDraftThrottle:5e3,display:"form",cdnUrl:c.GlobalFormio.cdn.baseUrl})).events||(e.events=new l.default),e))),"executeShortcuts",function(e){var n=e.target;if(r.keyboardCatchableElement(n)){var i=e.ctrlKey||e.metaKey,a=e.keyCode,l="";65<=a&&a<=90?l=String.fromCharCode(a):13===a?l="Enter":27===a&&(l="Esc"),o.default.each(r.shortcuts,function(n){(!n.ctrl||i)&&n.shortcut===l&&(n.element.click(),e.preventDefault())})}}),r.element=i,c.GlobalFormio.forms[r.id]=P(r),r.options.baseUrl&&c.GlobalFormio.setBaseUrl(r.options.baseUrl);var e,n,r,i,a,d=u.default;return a&&a.i18n&&!a.i18nReady&&(a.i18n.resources?d=a.i18n:o.default.each(a.i18n,function(e,n){"options"===n?o.default.merge(d,e):d.resources[n]?o.default.assign(d.resources[n].translation,e):d.resources[n]={translation:o.default.assign((0,h.fastCloneDeep)(u.default.resources.en.translation),e)}}),a.i18n=d,a.i18nReady=!0),a&&a.i18n?r.options.i18n=a.i18n:r.options.i18n=d,r.options.language&&(r.options.i18n.lng=r.options.language),r.type="form",r._src="",r._loading=!1,r._form={},r.draftEnabled=!1,r.savingDraft=!0,r.options.saveDraftThrottle?r.triggerSaveDraft=o.default.throttle(r.saveDraft.bind(P(r)),r.options.saveDraftThrottle):r.triggerSaveDraft=r.saveDraft.bind(P(r)),r.customErrors=[],r.nosubmit=!1,r.submitted=!1,r.submitting=!1,r.formio=null,r.loader=null,r.alert=null,r.onSubmission=null,r.submissionSet=!1,r.formReady=new f.default(function(e,n){r.formReadyResolve=e,r.formReadyReject=n}),r.submissionReady=new f.default(function(e,n){r.submissionReadyResolve=e,r.submissionReadyReject=n}),r.shortcuts=[],r.localize().then(function(){r.language=r.options.language}),r.options.saveDraft&&r.formReady.then(function(){if(r.options.skipDraftRestore)r.draftEnabled=!0,r.savingDraft=!1;else{var e=c.GlobalFormio.getUser();e&&!r.submissionSet&&r.restoreDraft(e._id)}}),r.component.clearOnHide=!1,r.root=P(r),r.localRoot=P(r),r}return r=[{key:"language",get:function(){return this.options.language},set:function(e){var n=this;if(this.options.language=e,this.i18next.language!==e)try{this.i18next.changeLanguage(e,function(e){e||(n.rebuild(),n.emit("languageChanged"))})}catch(e){return}}},{key:"emptyValue",get:function(){return null}},{key:"componentContext",value:function(){return this._data}},{key:"componentComponents",get:function(){return this.form.components}},{key:"shadowRoot",get:function(){return this.options.shadowRoot}},{key:"addLanguage",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=o.default.assign((0,h.fastCloneDeep)(u.default.resources.en.translation),n);this.i18next.addResourceBundle(e,"translation",i,!0,!0),r&&(this.language=e)}},{key:"localize",value:function(){var e=this;return this.i18next.initialized?f.default.resolve(this.i18next):(this.i18next.initialized=!0,new f.default(function(n,r){try{e.i18next.init(g(g({},e.options.i18n),{compatibilityJSON:"v3"}
1),function(o){if(e.options.language=e.i18next.language.split(";")[0],o)return r(o);n(e.i18next)})}catch(e){return r(e)}}))}},{key:"keyboardCatchableElement",value:function(e){return"TEXTAREA"!==e.nodeName&&("INPUT"!==e.nodeName||-1===["text","email","password"].indexOf(e.type))}},{key:"addShortcut",value:function(e,n){n&&/^([A-Z]|Enter|Esc)$/i.test(n)&&("Enter"===(n=o.default.capitalize(n))||"Esc"===n?"BUTTON"===e.tagName&&this.shortcuts.push({shortcut:n,element:e}):this.shortcuts.push({ctrl:!0,shortcut:n,element:e}))}},{key:"removeShortcut",value:function(e,n){n&&/^([A-Z]|Enter|Esc)$/i.test(n)&&o.default.remove(this.shortcuts,{shortcut:n,element:e})}},{key:"src",get:function(){return this._src},set:function(e){this.setSrc(e)}},{key:"loadSubmission",value:function(){var e=this;return this.loadingSubmission=!0,this.formio.submissionId?this.onSubmission=this.formio.loadSubmission().then(function(n){return e.setSubmission(n)},function(n){return e.submissionReadyReject(n)}).catch(function(n){return e.submissionReadyReject(n)}):this.submissionReadyResolve(),this.submissionReady}},{key:"setSrc",value:function(e,n){var r=this;return this.setUrl(e,n)?(this.nosubmit=!1,this.formio.loadForm({params:{live:1}}).then(function(e){var n=r.setForm(e);return r.loadSubmission(),n}).catch(function(e){console.warn(e),r.formReadyReject(e)})):f.default.resolve()}},{key:"url",get:function(){return this._src},set:function(e){this.setUrl(e)}},{key:"setUrl",value:function(e,n){return!!e&&"string"==typeof e&&e!==this._src&&(this._src=e,this.nosubmit=!0,this.formio=this.options.formio=new c.GlobalFormio(e,n),"form"===this.type&&(this.options.src=e),!0)}},{key:"ready",get:function(){var e=this;return this.formReady.then(function(){return k(j(m.prototype),"ready",e).then(function(){return!e.loadingSubmission||e.submissionReady})})}},{key:"loading",get:function(){return this._loading},set:function(e){if(this._loading!==e){if(this._loading=e,!this.loader&&e){this.loader=this.ce("div",{class:"loader-wrapper"});var n=this.ce("div",{class:"loader text-center"});this.loader.appendChild(n)}if(this.loader)try{e?this.prependTo(this.loader,this.wrapper):this.removeChildFrom(this.loader,this.wrapper)}catch(e){}}}},{key:"setForm",value:function(e,n){var r,i,l,s=this,u=this._form&&(null===(l=this._form.components)||void 0===l?void 0:l.length);try{if(u&&JSON.stringify(this._form)===JSON.stringify(e)||(this._form=null!=n&&n.keepAsReference?e:o.default.cloneDeep(e),this.onSetForm&&this.onSetForm(o.default.cloneDeep(this._form),e),null!==(r=this.parent)&&void 0!==r&&null!==(i=r.component)&&void 0!==i&&i.modalEdit))return f.default.resolve()}catch(e){return console.warn(e),f.default.resolve()}if(e&&e.settings&&e.settings.components&&(this.options.components=e.settings.components),e&&e.properties&&(this.options.properties=e.properties),this.options.sanitizeConfig||this.builderMode||(this.options.sanitizeConfig=o.default.get(e,"settings.sanitizeConfig")||o.default.get(e,"globalSettings.sanitizeConfig")),"schema"in e&&(0,a.default)(e.schema,"1.x")>0&&this.ready.then(function(){s.setAlert("alert alert-danger","Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.")}),e&&e.module){var d=null;if("string"==typeof e.module)try{d=this.evaluate("return ".concat(e.module))}catch(e){console.warn(e)}else d=e.module;d&&(c.GlobalFormio.use(d),d.options&&d.options.form&&(this.options=Object.assign(this.options,d.options.form)))}return this.initialized=!1,(this.rebuild()||f.default.resolve()).then(function(){return s.emit("formLoad",e),s.triggerCaptcha(),setTimeout(function(){s.onChange(n),s.formReadyResolve()},0),s.formReady})}},{key:"form",get:function(){return this._form||(this._form={components:[]}),this._form},set:function(e){this.setForm(e)}},{key:"submission",get:function(){return this.getValue()},set:function(e){this.setSubmission(e)}},{key:"setSubmission",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=g(g({},r),{},{fromSubmission:!o.default.has(r,"fromSubmission")||r.fromSubmission}),this.onSubmission=this.formReady.then(function(o){return o&&(r=g(g({},r),o)),n.submissionSet=!0,n.triggerChange(r),n.emit("beforeSetSubmission",e),n.setValue(e,r),n.submissionReadyResolve(e)},function(e){return n.submissionReadyReject(e)}).catch(function(e){return n.submissionReadyReject(e)})}},{key:"handleDraftError",value:function(e,n,r){var i=o.default.trim("".concat(this.t(e)," ").concat(n||""));
1console.warn(i),this.emit(r?"restoreDraftError":"saveDraftError",n||i)}},{key:"saveDraft",value:function(){var e=this;if(this.draftEnabled){if(!this.formio){this.handleDraftError("saveDraftInstanceError");return}if(!c.GlobalFormio.getUser()){this.handleDraftError("saveDraftAuthError");return}var n=(0,h.fastCloneDeep)(this.submission);n.state="draft",this.savingDraft||this.submitting||(this.emit("saveDraftBegin"),this.savingDraft=!0,this.formio.saveSubmission(n).then(function(n){e.submission._id=n._id,e.savingDraft=!1,e.emit("saveDraft",n)}).catch(function(n){e.savingDraft=!1,e.handleDraftError("saveDraftError",n)}))}}},{key:"restoreDraft",value:function(e){var n=this,r=this.formio||this.options.formio;if(!r){this.handleDraftError("restoreDraftInstanceError",null,!0);return}this.savingDraft=!0,r.loadSubmissions({params:{state:"draft",owner:e}}).then(function(e){if(e.length>0&&!n.options.skipDraftRestore){var r=(0,h.fastCloneDeep)(e[0]);return n.setSubmission(r).then(function(){n.draftEnabled=!0,n.savingDraft=!1,n.emit("restoreDraft",r)})}n.draftEnabled=!0,n.savingDraft=!1,n.emit("restoreDraft",null)}
1).catch(function(e){n.draftEnabled=!0,n.savingDraft=!1,n.handleDraftError("restoreDraftError",e,!0)})}},{key:"schema",get:function(){var e=(0,h.fastCloneDeep)(o.default.omit(this._form,["components"]));return e.components=[],this.eachComponent(function(n){return e.components.push(n.schema)}),e}},{key:"mergeData",value:function(e,n){o.default.mergeWith(e,n,function(e,n){if(Array.isArray(e)&&Array.isArray(n)&&e.length!==n.length)return n})}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&e.data||(e={data:{}}),this._submission.metadata=e.metadata||{},this.editing=!!e._id,!this.options.submissionTimezone&&e.metadata&&e.metadata.timezone&&(this.options.submissionTimezone=e.metadata.timezone);var r=k(j(m.prototype),"setValue",this).call(this,e.data,n);return n.sanitize||this.mergeData(this.data,e.data),e.data=this.data,this._submission=e,r}},{key:"getValue",value:function(){return this._submission.data||(this._submission.data={}),this.viewOnly||(this._submission.data=this.data),this._submission}},{key:"init",value:function(){var e=this;return this._submission=this._submission||{data:{}},this.components&&this.components.length&&(this.destroyComponents(),this.components=[]),this.component?this.component.components=this.form?this.form.components:[]:this.component=this.form,this.component.type="form",this.component.input=!1,this.addComponents(),this.on("submitButton",function(n){e.submit(!1,n).catch(function(e){return!1!==e&&console.log(e)})},!0),this.on("checkValidity",function(n){return e.checkValidity(n,!0,n)},!0),this.on("requestUrl",function(n){return e.submitUrl(n.url,n.headers)},!0),this.on("resetForm",function(){return e.resetValue()},!0),this.on("deleteSubmission",function(){return e.deleteSubmission()},!0),this.on("refreshData",function(){return e.updateValue()},!0),this.executeFormController(),this.formReady}},{key:"executeFormController",value:function(){var e=this;if(!this.form||!this.form.controller||(!this.visible||this.component.hidden)&&this.component.clearOnHide&&!this.rootPristine)return!1;this.formReady.then(function(){e.evaluate(e.form.controller,{components:e.components,instance:e})})}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.off("submitButton"),this.off("checkValidity"),this.off("requestUrl"),this.off("resetForm"),this.off("deleteSubmission"),this.off("refreshData"),e&&(this.emit
1("formDelete",this.id),delete c.GlobalFormio.forms[this.id]),k(j(m.prototype),"destroy",this).call(this)}},{key:"build",value:function(e){var n=this;return e||this.element?this.ready.then(function(){e=e||n.element,k(j(m.prototype),"build",n).call(n,e)}):this.ready}},{key:"getClassName",value:function(){var e="formio-form";return this.options.readOnly&&(e+=" formio-read-only"),e}},{key:"render",value:function(){return k(j(m.prototype),"render",this).call(this,this.renderTemplate("webform",{classes:this.getClassName(),children:this.renderComponents()}),this.builderMode?"builder":"form",!0)}},{key:"redraw",value:function(){return this.element?(this.clear(),this.setContent(this.element,this.render()),this.attach(this.element)):f.default.resolve()}},{key:"attach",value:function(e){var n=this;this.element=e,this.loadRefs(e,{webform:"single"});var r=this.attachComponents(this.refs.webform);return this.addEventListener(document,"keydown",this.executeShortcuts),this.currentForm=this,this.hook("attachWebform",e,this),r.then(function(){return n.emit("render",n.element),n.setValue(n._submission,{noUpdateEvent:!0})})}},{key:"hasRequiredFields",value:function(){var e=!1;return(0,y.eachComponent)(this.form.components,function(n){if(n.validate.required)return e=!0,!0},!0),e}},{key:"resetValue",value:function(){o.default.each(this.getComponents(),function(e){return e.resetValue()}),this.setPristine(!0),this.onChange({resetValue:!0})}},{key:"setAlert",value:function(e,n,r){var o=this;if(!e&&this.submitted){this.alert&&(this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach(function(e){o.removeEventListener(e,"click"),o.removeEventListener(e,"keypress")}),this.removeChild(this.alert),this.alert=null);return}if(this.options.noAlerts){n||this.emit("error",!1);return}if(this.alert)try{this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach(function(e){o.removeEventListener(e,"click"),o.removeEventListener(e,"keypress")}),this.removeChild(this.alert),this.alert=null}catch(e){}if(n){var i={class:r&&r.classes||"alert alert-".concat(e),id:"error-list-".concat(this.id)},a={message:n instanceof HTMLElement?n.outerHTML:n,attrs:i,type:e};this.alert=(0,h.convertStringToHTMLElement)(this.renderTemplate("alert",a),"#".concat(i.id))}this.alert&&(this.loadRefs(this.alert,{errorRef:"multiple"}),this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach(function(e){o.addEventListener(e,"click",function(e){var n=e.currentTarget.dataset.componentKey;o.focusOnComponent(n)}),o.addEventListener(e,"keydown",function(e){if(13===e.keyCode){e.preventDefault();var n=e.currentTarget.dataset.componentKey;o.focusOnComponent(n)}})}),this.prepend(this.alert))}},{key:"focusOnComponent",value:function(e){if(e){var n=this.getComponent(e);n&&n.focus()}}},{key:"showErrors",value:function(e,n,r){var i=this;this.loading=!1;var a=this.errors;if(e?Array.isArray(e)?a=a.concat(e):a.push(e):a=k(j(m.prototype),"errors",this),!(a=a.concat(this.customErrors)).length){this.setAlert(!1);return}a.forEach(function(e){var n=e.components,r=void 0===n?[]:n;e.component&&r.push(e.component),e.path&&r.push(e.path),r.forEach(function(n){var r=i._parentPath+(0,h.getStringFromComponentPath)(n),a=i.getComponent(n,o.default.identity,r);e.fromServer&&(a.serverErrors?a.serverErrors.push(e):a.serverErrors=[e]),o.default.compact(Array.isArray(a)?a:[a]).forEach(function(n){return n.setCustomValidity(e.message,!0)})})});var l=[];a.forEach(function(e){if(e){var n=function(n,r){var a=!o.default.isUndefined(r)&&e.messages&&e.messages[r],l=a&&a.formattedKeyOrPath||a.path||e.component&&e.component.key||e.fromServer&&e.path,s=l?(0,h.getStringFromComponentPath)(l):"";return s=i._parentPath+s,"string"==typeof e||e.formattedKeyOrPath||(e.formattedKeyOrPath=s),{message:(0,h.unescapeHTML)(n),keyOrPath:s}};if(e.messages=o.default.uniqBy(e.messages,function(e){return e.message}),e.messages&&e.messages.length){var r=e.component;e.messages.forEach(function(e,o){var a=e.message,s=e.context,u=e.fromServer,c=null!=s&&s.hasLabel||u?i.t("alertMessage",{message:i.t(a)}):i.t("alertMessageWithLabel",{label:i.t(r.label),message:i.t(a)});l.push(n(c,o))})}else if(e){var a=o.default.isObject(e)?i.t("alertMessage",{message:i.t(e.message||"")}):i.t("alertMessage",{message:i.t(e)});l.push(n(a))}}});var s=this.renderTemplate("errorsList",{errors:l});
vendor: 1,530 bytes, line 1
1return this.root.setAlert("danger",s),n&&this.emit("error",a),a}},{key:"onSubmit",value:function(e,n){var r;return this.loading=!1,this.submitting=!1,this.setPristine(!0),this.setValue((0,h.fastCloneDeep)(e),{noValidate:!0,noCheck:!0}),this.setAlert("success","<p>".concat(this.t("complete"),"</p>")),this.draftEnabled&&null!==(r=this.triggerSaveDraft)&&void 0!==r&&r.cancel&&this.triggerSaveDraft.cancel(),this.emit("submit",e,n),n&&this.emit("submitDone",e),e}},{key:"normalizeError",value:function(e){return e&&("object"===v(e)&&"details"in e&&(e=e.details),"string"==typeof e&&(e={message:e})),e}},{key:"onSubmissionError",value:function(e){if(e=this.normalizeError(e),this.submitting=!1,this.setPristine(!1),this.emit("submitError",e||this.errors),e&&e.silent)return this.emit("change",{isValid:!0},{silent:!0}),!1;var n=this.showErrors(e,!0);return this.root&&this.root.alert&&this.scrollIntoView(this.root.alert),n}},{key:"onChange",value:function(e,n,r,i){e=e||{};var a=!1;n&&n.component&&(this.customErrors=this.customErrors.filter(function(e){return e.component&&e.component!==n.component.key})),k(j(m.prototype),"onChange",this).call(this,e,!0);var l=o.default.clone(this.submission);if(e.changed=l.changed=n,e.changes=i,r&&this.pristine&&(this.pristine=!1),l.isValid=this.checkData(l.data,e),this.loading=!1,this.submitted){var s=o.default.filter(this.serverErrors||[],function(e){return!e.component&&!e.path});this.showErrors(s.length?s:null)}r&&this.options.saveDraft&&this.triggerSaveDraft(),e&&e.noEmit||(this.emit
1("change",l,e,r),a=!0),a&&!this.initialized&&(this.emit("initialized"),this.initialized=!0)}},{key:"checkData",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=k(j(m.prototype),"checkData",this).call(this,e,n);return(o.default.isEmpty(n)||n.noValidate)&&this.submitted&&this.showErrors(),r}},{key:"deleteSubmission",value:function(){var e=this;return this.formio.deleteSubmission().then(function(){e.emit("submissionDeleted",e.submission),e.resetValue()})}},{key:"cancel",value:function(e){return this.hook("beforeCancel",!0)&&(e||confirm(this.t("confirmCancel")))?(this.resetValue(),!0):(this.emit("cancelSubmit"),!1)}},{key:"setMetadata",value:function(e){e.metadata=e.metadata||{},o.default.defaults(e.metadata,{timezone:o.default.get(this,"_submission.metadata.timezone",(0,h.currentTimezone)()),offset:parseInt(o.default.get(this,"_submission.metadata.offset",(0,i.default)().utcOffset()),10),origin:document.location.origin,referrer:document.referrer,browserName:navigator.appName,userAgent:navigator.userAgent,pathName:window.location.pathname,onLine:navigator.onLine})}},{key:"submitForm",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clearServerErrors(),new f.default(function(r,i){if(e.options.readOnly)return r({submission:e.submission,saved:!1});var a=(0,h.fastCloneDeep)(e.submission||{});e.setMetadata(a),a.state=n.state||"submitted";var l="draft"===a.state;e.hook("beforeSubmit",g(g({},a),{},{component:n.component}),function(s,u){return s?i(s):(a._vnote=u&&u._vnote?u._vnote:"",l||a.data)?l||e.checkValidity(a.data,!0)?void(e.everyComponent(function(e){a._vnote&&"form"===e.type&&e.component.reference&&(o.default.get(a.data,e.path,{})._vnote=a._vnote),"client-only"===e.component.persistent&&o.default.unset(a.data,e.path)}),e.hook("customValidation",g(g({},a),{},{component:n.component}),function(n){if(n)return"string"==typeof n&&(n={message:n}),n=Array.isArray(n)?n:[n],e.customErrors=n,i();if(e.loading=!0,e._form&&e._form.action){var o=a.data._id&&e._form.action.includes(a.data._id)?"PUT":"POST";return c.GlobalFormio.makeStaticRequest(e._form.action,o,a,e.formio?e.formio.options:{}).then(function(e){return r({submission:e,saved:!0})}).catch(function(n){return e.setServerErrors(n),i(n)})}var l=e.formio;if(e.nosubmit||!l)return r({submission:a,saved:!1});var s=l.actionUrl?"saveAction":"saveSubmission";l[s](a).then(function(e){return r({submission:e,saved:!0})}).catch(function(n){return e.setServerErrors(n),i(n)})})):i():i("Invalid Submission")})})}},{key:"setServerErrors",value:function(e){e.details?this.serverErrors=e.details.filter(function(e){return e.level?"error"===e.level:e}).map(function(e){return e.fromServer=!0,e}):"string"==typeof e&&(this.serverErrors=[{fromServer:!0,level:"error",message:e}])}},{key:"executeSubmit",value:function(e){var n=this;return this.submitted=!0,this.submitting=!0,this.submitForm(e).then(function(e){var r=e.submission,o=e.saved;return n.onSubmit(r,o)}).then(function(e){return n.submissionInProcess=!1,e}).catch(function(e){return n.submissionInProcess=!1,f.default.reject(n.onSubmissionError(e))})}},{key:"clearServerErrors",value:function(){var e,n=this;null===(e=this.serverErrors)||void 0===e||e.forEach(function(e){if(e.path){var r=(0,h.getArrayFromComponentPath)(e.path),i=n.getComponent(r,o.default.identity,e.formattedKeyOrPath);i&&(i.serverErrors=[])}}),this.serverErrors=[]}},{key:"submit",value:function(e,n){var r=this;return(this.submissionInProcess=!0,e)?this.executeSubmit(n):this.beforeSubmit(n).then(function(){return r.executeSubmit(n)})}},{key:"submitUrl",value:function(e,n){var r=this;if(!e)return console.warn("Missing URL argument");var o=this.submission||{},i={method:"POST",headers:{}};if(n&&n.length>0&&n.map(function(e){""!==e.header&&""!==e.value&&(i.headers[e.header]=r.interpolate(e.value,o))}),!e||!i)return this.emit("error","You should add a URL to this button."),this.setAlert("warning","You should add a URL to this button."),console.warn("You should add a URL to this button.");c.GlobalFormio.makeStaticRequest(e,i.method,o,{headers:i.headers}).then(function(){r.emit("requestDone"),r.setAlert("success","<p> Success </p>")}).catch(function(e){r.showErrors("".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e)),r.emit("error","".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e)),console.error("".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e)),r.setAlert("danger","<p> ".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e," </p>"))})}},{key:"triggerCaptcha",value:function(){if(this&&this.components){var e=[];(0,y.eachComponent)(this.components,function(n){/^(re)?captcha$/.test(n.type)&&"formLoad"===n.component.eventType&&e.push(n)}),e.length>0&&e[0].verify("".concat(this.form.name?this.form.name:"form","Load"))}}},{key:"nosubmit",get:function(){return this._nosubmit||!1}
1,set:function(e){this._nosubmit=!!e,this.emit("nosubmit",this._nosubmit)}},{key:"conditions",get:function(){var e,n;return null!==(e=null===(n=this.schema.settings)||void 0===n?void 0:n.conditions)&&void 0!==e?e:[]}},{key:"variables",get:function(){var e,n;return null!==(e=null===(n=this.schema.settings)||void 0===n?void 0:n.variables)&&void 0!==e?e:[]}}],w(m.prototype,r),d&&w(m,d),Object.defineProperty(m,"prototype",{writable:!1}),m}(p.default);n.default=C,C.setBaseUrl=c.GlobalFormio.setBaseUrl,C.setApiUrl=c.GlobalFormio.setApiUrl,C.setAppUrl=c.GlobalFormio.setAppUrl},99588:function(e,n,r){"use strict";r(64652),r(43053),r(65813),r(84812),r(23850),r(37097),r(80107),r(33559),r(78089),r(11414),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(20680),r(1385),r(48510),r(37753),r(789),r(31490),r(33546),r(88852),r(3616),r(56613),r(89352),r(94195),r(70601),r(67998),r(49907),r(30890),r(7122),r(64284),r(55096),r(26343),r(28839),r(97599),r(86328),r(92471),r(41967),r(41135),r(70440),r(88910),r(98797),r(14483),r(62107),r(21430),r(6778),r(68428),r(21587);var o,i=m(r(15921)),a=m(r(35849)),l=m(r(52069)),s=m(r(32780)),u=m(r(5956)),c=r(79408),f=r(38163),d=r(53669),p=m(r(71125)),h=m(r(2890)),y=m(r(25857));function m(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return g(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function w(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function k(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?w(Object(r),!0).forEach(function(n){C(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,E(o.key),o)}}function P(){return(P="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=S(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function j(e,n){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function _(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,n,r){return(n=E(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function E(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==v(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===v(n)?n:String(n)}r(77387);var x=c.GlobalFormio.Templates;x||(x=r(41880).default),o=r(70153);var R=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&j(e,n)}(g,e);var n,r,a,m=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=S(g);if(n){var o=S(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===v(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return _(e)}(this,e)});function g(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,g),arguments[0]instanceof HTMLElement||arguments[1]?(n=arguments[0],r=arguments[1]):r=arguments[0],r.skipInit=!1,r.display=r.display||"form",C(_(e=m.call(this,null,r)),"moveHandler",function(n){(38===n.keyCode||40===n.keyCode||13===n.keyCode)&&(n.stopPropagation(),n.preventDefault()),38===n.keyCode&&e.updateComponentPlacement(!0),40===n.keyCode&&e.updateComponentPlacement(!1),13===n.keyCode&&e.stopMoving(e.selectedComponent)}),e.element=n,e.builderHeight=0,e.schemas={},e.repeatablePaths=[],e.sideBarScroll=h.default.get(e.options,"sideBarScroll",!0),e.sideBarScrollOffset=h.default.get(e.options,"sideBarScrollOffset",0),e.dragDropEnabled=!0,e.builder=h.default.defaultsDeep({},e.options.builder,e.defaultGroups),h.default.each(e.defaultGroups,function(n,r){!1===n&&(e.builder[r]=!1)}),e.groups={},e.groupOrder=[];
1var e,n,r,o=function(n){e.builder[n]&&(e.builder[n].key=n,e.groups[n]=e.builder[n],e.groups[n].components=e.groups[n].components||{},e.groups[n].componentOrder=e.groups[n].componentOrder||[],e.groups[n].subgroups=Object.keys(e.groups[n].groups||{}).map(function(r){return e.groups[n].groups[r].componentOrder=Object.keys(e.groups[n].groups[r].components).map(function(e){return e}),e.groups[n].groups[r]}),e.groupOrder.push(e.groups[n]))};for(var i in e.builder)o(i);for(var a in e.groupOrder=e.groupOrder.filter(function(e){return e&&!e.ignore}).sort(function(e,n){return e.weight-n.weight}).map(function(e){return e.key}),u.default.components){var l=u.default.components[a];if(l.builderInfo&&l.builderInfo.schema){e.schemas[a]=l.builderInfo.schema,l.type=a;var s=l.builderInfo;s.key=l.type,e.addBuilderComponentInfo(s)}}for(var f in e.groups){var d=e.groups[f];for(var p in d.components){var y="resource"===f?"component-".concat(p):p,v=d.components[y];!0===v&&u.default.components[p]&&u.default.components[p].builderInfo&&(v=u.default.components[p].builderInfo),v&&v.schema?(e.schemas[p]=v.schema,d.components[y]=v,d.components[y].key=p):delete d.components[y]}e.orderComponents(d)}e.options.hooks=e.options.hooks||{},e.options.hooks.renderComponent=function(n,r){var o,i,a=r.component,l=r.self;return"form"!==l.type||l.key?e.options.disabled&&e.options.disabled.includes(l.key)||l.parent.noDragDrop?n:e.renderTemplate("builderComponent",{html:n,disableBuilderActions:null==l?void 0:null===(o=l.component)||void 0===o?void 0:o.disableBuilderActions,childComponent:a,design:null==l?void 0:null===(i=l.options)||void 0===i?void 0:i.design}):e.hook("renderComponentFormTemplate",n.replace("formio-component-form",""))},e.options.hooks.renderComponents=function(n,r){var o=r.components,i=r.self;return"datagrid"===i.type&&o.length>0||i.noDragDrop?n:(o&&(o.length||o.nodrop)&&("form"!==i.type||!(o.length<=1)||0!==o.length&&"button"!==o[0].type)||(n=e.renderTemplate("builderPlaceholder",{position:0})+n),e.renderTemplate("builderComponents",{key:i.key,type:i.type,html:n}))},e.options.hooks.renderInput=function(e,n){var r=n.self;return"hidden"===r.type?e+r.name:e},e.options.hooks.renderLoading=function(e,n){var r=n.self;return"form"===r.type&&r.key?r.name:e},e.options.hooks.attachComponents=function(n,r,o,i){if(n){if(i.noDragDrop)return n;var a=n.querySelector('[ref="'.concat(i.component.key,'-container"]'))||n;return(a.formioContainer=o,a.formioComponent=i,e.dragula&&e.allowDrop(n)&&e.dragula.containers.push(a),("datagrid"===i.type||"datamap"===i.type)&&r.length>0)?n:n.children[0]}}
vendor: 5,801 bytes, line 1
1,e.options.hooks.attachDatagrid=function(e,n){n.loadRefs(e,C({},"".concat(n.key,"-container"),"single"));var r=n.refs["".concat(n.key,"-container")];r&&n.attachComponents(r.parentNode,[],n.component.components)},e.options.hooks.attachComponent=e.attachComponent.bind(_(e));var b={params:{type:"resource",limit:1e6,select:"_id,title,name,components"}};e.options&&e.options.resourceTag?b.params.tags=[e.options.resourceTag]:e.options&&e.options.hasOwnProperty("resourceTag")||(b.params.tags=["builder"]);var w=new c.GlobalFormio(c.GlobalFormio.projectUrl),k=e.options.builder&&!1===e.options.builder.resource;if(w.loadProject().then(function(n){if(n&&(h.default.get(n,"settings.addConfigToForms",!1)||h.default.get(n,"addConfigToForms",!1))){var r=n.config||{};e.options.formConfig=r;var o="webform._form.config",i=h.default.get(_(e),o);e.webform&&!i&&h.default.set(_(e),o,r)}}).catch(function(e){console.warn("Could not load project settings: ".concat(e.message||e))}),!w.noProject&&!k){var O=e.options.builder&&e.options.builder.resource;w.loadForms(b).then(function(n){n.length&&(e.builder.resource={title:O?O.title:"Existing Resource Fields",key:"resource",weight:O?O.weight:50,subgroups:[],components:[],componentOrder:[]},e.groups.resource={title:O?O.title:"Existing Resource Fields",key:"resource",weight:O?O.weight:50,subgroups:[],components:[],componentOrder:[]},e.groupOrder.includes("resource")||e.groupOrder.push("resource"),e.addExistingResourceFields(n))})}return e.options.attachMode="builder",e.webform=e.webform||e.createForm(e.options),e.pathComponentsMapping={},e.arrayDataComponentPaths=[],e.nestedDataComponents=[],e.arrayDataComponents=[],e}return r=[{key:"allowDrop",value:function(){return!0}},{key:"addExistingResourceFields",value:function(e){var n=this;h.default.each(e,function(e,r){var o="resource-".concat(e.name),i={key:o,title:e.title,components:[],componentOrder:[],default:0===r};(0,d.eachComponent)(e.components,function(r){if("button"!==r.type&&(!n.options||!n.options.resourceFilter||r.tags&&-1!==r.tags.indexOf(n.options.resourceFilter))){var a=r.label;!a&&r.key&&(a=h.default.upperFirst(r.key)),i.componentOrder.push("component-".concat(r.key)),i.components["component-".concat(r.key)]=h.default.merge((0,f.fastCloneDeep)(u.default.components[r.type]?u.default.components[r.type].builderInfo:u.default.components.unknown.builderInfo),{key:r.key,title:a,group:"resource",subgroup:o},{schema:k(k({},r),{},{label:r.label,key:r.key,lockKey:!0,source:n.options.noSource?void 0:e._id,isNew:!0})})}},!0),n.groups.resource.subgroups.push(i)}),this.triggerRedraw()}},{key:"attachTooltip",value:function(e,n){return(0,l.default)(e,{allowHTML:!0,trigger:"mouseenter focus",placement:"top",delay:[200,0],zIndex:1e4,content:n})}},{key:"attachComponent",value:function(e,n){var r=this;if(!(n instanceof g)){if(e.formioComponent=n,n.loadRefs(e,{removeComponent:"single",editComponent:"single",moveComponent:"single",copyComponent:"single",pasteComponent:"single",editJson:"single"}),n.refs.copyComponent&&(this.attachTooltip(n.refs.copyComponent,this.t("Copy")),n.addEventListener(n.refs.copyComponent,"click",function(){return r.copyComponent(n)})),n.refs.pasteComponent){var o=this.attachTooltip(n.refs.pasteComponent,this.t("Paste below"));n.addEventListener(n.refs.pasteComponent,"click",function(){o.hide(),r.pasteComponent(n)})}n.refs.moveComponent&&(this.attachTooltip(n.refs.moveComponent,this.t("Move")),this.keyboardActionsEnabled&&n.addEventListener(n.refs.moveComponent,"click",function(){r.moveComponent(n)}));var i=this.getParentElement(e);return n.refs.editComponent&&(this.attachTooltip(n.refs.editComponent,this.t("Edit")),n.addEventListener(n.refs.editComponent,"click",function(){return r.editComponent(n.schema,i,!1,!1,n.component,{inDataGrid:n.isInDataGrid})})),n.refs.editJson&&(this.attachTooltip(n.refs.editJson,this.t("Edit JSON")),n.addEventListener(n.refs.editJson,"click",function(){return r.editComponent(n.schema,i,!1,!0,n.component)})),n.refs.removeComponent&&(this.attachTooltip(n.refs.removeComponent,this.t("Remove")),n.addEventListener(n.refs.removeComponent,"click",function(){return r.removeComponent(n.schema,i,n.component,n)})),e}}},{key:"createForm",value:function(e){return this.webform=new i.default(this.element,e),this.element&&(this.loadRefs(this.element,{form:"single"}),this.refs.form&&(this.webform.element=this.refs.form)),this.webform}},{key:"ready",get:function(){return this.webform.ready}},{key:"defaultGroups",get:function(){return{basic:{title:"Basic",weight:0,default:!0},advanced:{title:"Advanced",weight:10},layout:{title:"Layout",weight:20},data:{title:"Data",weight:30},premium:{title:"Premium",weight:40}}}},{key:"redraw",value:function(){return i.default.prototype.redraw.call(this)}},{key:"form",get:function(){return this.webform.form},set:function(e){this.setForm(e)}},{key:"schema",get:function(){return this.webform.schema}},{key:"container",get:function(){return this.webform.form.components}},{key:"findNamespaceRoot",value:function(e){var n=(0,f.getArrayFromComponentPath)(e.path),r=this.webform.getComponent(n);r=Array.isArray(r)?r[0]:r;var o=this.recurseNamespace(r);if(!o||this.form.key===o)return this.form.components;var i=e.component;if(o===e.key)return[].concat(b(i.components),[i]);var a=(0,d.getComponent)(this.form.components,o,!0);return a?a.components:r.components}},{key:"recurseNamespace",value:function(e){return e?["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree?e.key:this.recurseNamespace(e.parent):null}},{key:"render",value:function(){var e=this;return this.renderTemplate("builder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id
1),groups:this.groupOrder.map(function(n){return e.renderTemplate("builderSidebarGroup",{group:e.groups[n],groupKey:n,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[n].subgroups.map(function(r){return e.renderTemplate("builderSidebarGroup",{group:r,groupKey:r.key,groupId:"group-container-".concat(n),subgroups:[]})}),keyboardActionsEnabled:e.keyboardActionsEnabled})})}),form:this.webform.render()})}},{key:"attach",value:function(e){var n=this;return this.on("change",function(e){n.populateCaptchaSettings(e),n.webform.setAlert(!1)}),P(S(g.prototype),"attach",this).call(this,e).then(function(){n.loadRefs(e,{form:"single",sidebar:"single","sidebar-search":"single","sidebar-groups":"single",container:"multiple","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple","sidebar-component":"multiple"}),n.sideBarScroll&&x.current.handleBuilderSidebarScroll&&x.current.handleBuilderSidebarScroll.call(n,n),window.sessionStorage&&window.sessionStorage.getItem("formio.clipboard")&&n.addClass(n.refs.form,"builder-paste-mode"),(0,f.bootstrapVersion)(n.options)||(n.refs["sidebar-group"].forEach(function(e){e.style.display="true"===e.getAttribute("data-default")?"inherit":"none"}),n.refs["sidebar-anchor"].forEach(function(e,r){n.addEventListener(e,"click",function(){var o=e.getAttribute("data-parent").slice(17),i=e.getAttribute("data-target").slice(7);n.refs["sidebar-group"].forEach(function(e,n){var a="true"===e.getAttribute("data-default"),l=e.getAttribute("id").slice(6),s=e.getAttribute("data-parent").slice(17);e.style.display=a&&s===i||l===o||n===r?"inherit":"none"})},!0)})),n.keyboardActionsEnabled&&n.refs["sidebar-component"].forEach(function(e){n.addEventListener(e,"keydown",function(r){13===r.keyCode&&n.addNewComponent(e)})}),n.addEventListener(n.refs["sidebar-search"],"input",h.default.debounce(function(e){var r=e.target.value;n.searchFields(r)},300)),n.dragDropEnabled&&n.initDragula();var r=n.dragula;if(n.refs.form)return(0,y.default)([window],{margin:20,maxSpeed:6,scrollWhenOutside:!0,autoScroll:function(){return this.down&&(null==r?void 0:r.dragging)}}),n.webform.attach(n.refs.form)})}},{key:"searchFields",value:function(){var e,n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=r.toLowerCase(),i=this.refs.sidebar,a=this.refs["sidebar-groups"];if(i&&a){var l=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=h.default.toPlainObject(e),i=o.subgroups,a=o.components,l=[];for(var s in a){var u=a[s].title.toLowerCase().match(r),c=a[s].key.toLowerCase().match(r);(u||c)&&l.push(a[s])}return(n.orderComponents(o,l),r&&(o.default=!0),o.componentOrder.length||(void 0===i?[]:i).length)?o:null},s=function(e){var r;return{group:l(n.groups[e],o),groupKey:e,groupId:i.id||a.id,subgroups:(r=n.groups[e].subgroups,h.default.clone(r).map(function(e){return l(e,o)}).filter(function(e){return!h.default.isNull(e)})).map(function(r){return n.renderTemplate("builderSidebarGroup",{group:r,groupKey:r.key,groupId:"group-container-".concat(e),subgroups:[]})})}};a.innerHTML=(e=this.groupOrder,h.default.cloneDeep(e).filter(function(e){return l(n.groups[e],o)})).map(function(e){return n.renderTemplate("builderSidebarGroup",s(e))}).join(""),this.loadRefs(this.element,{"sidebar-groups":"single","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),this.updateDragAndDrop(),""===o&&this.triggerRedraw()}}},{key:"orderComponents",value:function(e,n){var r=n||e.components,o=0===e.key.indexOf("resource-");r&&(e.componentOrder=Object.keys(r).map(function(e){return r[e]}).filter(function(e){return e&&!e.ignore&&!e.ignoreForForm}).sort(function(e,n){return e.weight-n.weight}).map(function(e){return o?"component-".concat(e.key):e.key}))}},{key:"updateDragAndDrop",value:function(){if(this.dragDropEnabled&&this.initDragula(),this.refs.form)return this.webform.attach(this.refs.form)}},{key:"initDragula",value:function(){var e=this,n=this.options;this.dragula&&this.dragula.destroy();var r=Array.prototype.slice.call(this.refs["sidebar-container"]).filter(function(e){return"group-container-resource"!==e.id});o&&(this.dragula=o(r,{moves:function(e){var r=!0;return Array.from(e.classList).filter(function(e){return 0===e.indexOf("formio-component-")}
1).forEach(function(e){var o=e.slice(17);n.disabled&&n.disabled.includes(o)&&(r=!1)}),e.classList.contains("no-drag")&&(r=!1),r},copy:function(e){return e.classList.contains("drag-copy")},accepts:function(e,n){return!e.contains(n)&&!n.classList.contains("no-drop")}}).on("drop",function(n,r,o,i){return e.onDrop(n,r,o,i)}))}},{key:"detach",value:function(){this.dragula&&this.dragula.destroy(),this.dragula=null,this.sideBarScroll&&x.current.clearBuilderSidebarScroll&&x.current.clearBuilderSidebarScroll.call(this,this),P(S(g.prototype),"detach",this).call(this)}},{key:"getComponentInfo",value:function(e,n){var r;if(n&&"resource"===n.slice(0,n.indexOf("-"))){var o=this.groups.resource.subgroups,i=h.default.find(o,{key:n});i&&i.components.hasOwnProperty("component-".concat(e))&&(r=(0,f.fastCloneDeep)(i.components["component-".concat(e)].schema))}else if(this.schemas.hasOwnProperty(e))r=(0,f.fastCloneDeep)(this.schemas[e]);else if(this.groups.hasOwnProperty(n)){var a=this.groups[n].components;a.hasOwnProperty(e)&&(r=(0,f.fastCloneDeep)(a[e].schema))}else if("searchFields"===n)for(var l=this.groups.resource.subgroups,s=0;s<l.length;s++){var u=l[s];if(u.components.hasOwnProperty("component-".concat(e))){r=(0,f.fastCloneDeep)(u.components["component-".concat(e)].schema);break}}return r&&(r.key=this.generateKey(r)),r}},{key:"getComponentsPath",value:function(e,n){var r="components",o=0,i=0,a=0,l=0;switch(n.type){case"table":i=h.default.findIndex(n.rows,function(n){return n.some(function(n){return n.components.some(function(n){return n.key===e.key})})}),a=h.default.findIndex(n.rows[i],function(n){return n.components.some(function(n){return n.key===e.key})}),r="rows[".concat(i,"][").concat(a,"].components");break;case"columns":o=h.default.findIndex(n.columns,function(n){return n.components.some(function(n){return n.key===e.key})}),r="columns[".concat(o,"].components");break;case"tabs":l=h.default.findIndex(n.components,function(n){return n.components.some(function(n){return n.key===e.key})}),r="components[".concat(l,"].components")}return r}},{key:"onDrop",value:function(e,n,r,o){var i,a,l,u,c,f,y=this;if(!(!n||e.contains(n))){var m=e.getAttribute("data-key"),v=e.getAttribute("data-type"),b=e.getAttribute("data-group");if(m&&b?((i=this.getComponentInfo(m,b))||!v||(i=this.getComponentInfo(v,b)),a=!0):r.formioContainer&&-1!==(u=h.default.findIndex(r.formioContainer,{key:e.formioComponent.component.key}))&&(i=(i=r.formioContainer.splice(h.default.findIndex(r.formioContainer,{key:e.formioComponent.component.key}),1))[0]),i){var g="resource"===b?"component-".concat(m):m,w=(null===(f=this.groups[b])||void 0===f?void 0:f.components[g])||{};if(w.disableSiblings){var k=!1;if((0,d.eachComponent)(this.webform.components,function(e){if(e.type===w.schema.type){k=!0;return}},!0),k){this.webform.redraw(),this.webform.setAlert("danger","You cannot add more than one ".concat(w.key," component to one page."));return}}if(w.uniqueComponent){var O=!1;if((0,d.eachComponent)(this.webform.components,function(e){if(e.key===w.schema.key){O=!0;return}},!0),O){this.webform.redraw(),this.webform.setAlert("danger","You cannot add more than one ".concat(w.title," component to one page."));return}}n!==r&&p.default.uniquify(this.findNamespaceRoot(n.formioComponent),i);var P=n.formioComponent;n.formioContainer&&(o?-1!==(u=o.getAttribute("data-noattach")?o.getAttribute("data-position"):-1===(u=h.default.findIndex(n.formioContainer,{key:h.default.get(o,"formioComponent.component.key")}))?0:u)&&n.formioContainer.splice(u,0,i):n.formioContainer.push(i),l=this.getComponentsPath(i,P.component),-1===(u=h.default.findIndex(h.default.get(P.schema,l),{key:i.key}))&&(u=0)),P&&P.addChildComponent&&P.addChildComponent(i,e,n,r,o);var j="datagrid"===P.type;return!a||this.options.noNewEdit||i.noNewEdit||this.options.design&&"reviewpage"===i.type||this.editComponent(i,n,a,null,null,{inDataGrid:j}),n!==r?r.formioContainer&&r.contains(n)?c=r.formioComponent.rebuild():(n.contains(r)||r.formioContainer&&(c=r.formioComponent.rebuild()),c=n.formioComponent.rebuild()):c=n.formioComponent.rebuild(),c||(c=s.default.resolve()),c.then(function(){y.emit("addComponent",i,P,l,u,a&&!y.options.noNewEdit&&!i.noNe
1wEdit),(!a||y.options.noNewEdit||i.noNewEdit)&&y.emit("change",y.form)})}}}},{key:"setForm",value:function(e){var n,r=this;if(e.components||(e.components=[]),e&&e.properties&&(this.options.properties=e.properties),this.keyboardActionsEnabled=h.default.get(this.options,"keyboardBuilder",!1)||(null===(n=this.options.properties)||void 0===n?void 0:n.keyboardBuilder),this.options.noDefaultSubmitButton||e.components.length||e.components.push({type:"button",label:"Submit",key:"submit",size:"md",block:!1,action:"submit",disableOnInvalid:!0,theme:"primary"}),this.webform){var o=!this.webform.form.components||e.components.length!==this.webform.form.components.length;return this.webform.setForm(e,{keepAsReference:!0}).then(function(){return(r.refs.form&&(r.builderHeight=r.refs.form.offsetHeight),o)?r.rebuild().then(function(){return r.form}):r.form})}return s.default.resolve(e)}},{key:"populateCaptchaSettings",value:function(e){var n=!1;this.form.components&&((0,d.eachComponent)(e.components,function(e){if(!n&&"captcha"===e.type)return n=!0,!1}),n?h.default.set(e,"settings.captcha.isEnabled",!0):h.default.get(e,"settings.captcha.isEnabled")&&h.default.set(e,"settings.captcha.isEnabled",!1))}},{key:"removeComponent",value:function(e,n,r,o){var i=this;if(n){var a=!0,l=!e.skipRemoveConfirm&&(Array.isArray(e.components)&&e.components.length||Array.isArray(e.rows)&&e.rows.length||Array.isArray(e.columns)&&e.columns.length);(this.options.alwaysConfirmComponentRemoval||l)&&(a=window.confirm(this.t(l?"Removing this component will also remove all of its children. Are you sure you want to do this?":"Are you sure you want to remove this component?"))),r||(r=n.formioContainer.find(function(n){return n.id===e.id}));var u=n.formioContainer?n.formioContainer.indexOf(r):0;if(a&&-1!==u){var c=this.getComponentsPath(e,n.formioComponent.component);n.formioContainer?n.formioContainer.splice(u,1):n.formioComponent&&n.formioComponent.removeChildComponent&&n.formioComponent.removeChildComponent(e),e.input&&o&&o.parent&&h.default.unset(o._data,o.key),(n.formioComponent.rebuild()||s.default.resolve()).then(function(){i.emit("removeComponent",e,n.formioComponent.schema,c,u),i.emit("change",i.form)})}return a}}},{key:"replaceDoubleQuotes",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e)return n.forEach(function(n){e[n]&&(e[n]=e[n].replace(/"/g,"'"))}),e}},{key:"updateComponent",value:function(e,n){var r=this,o=h.default.get(this.webform,"form.settings.sanitizeConfig")||h.default.get(this.webform,"form.globalSettings.sanitizeConfig");if(this.preview){this.preview.form={components:[h.default.omit(k({},e),["hidden","conditional","calculateValue","logic","autofocus","customConditional"])],config:this.options.formConfig||{},sanitizeConfig:o};var i=["label","tooltip"];this.preview.form.components.forEach(function(e){return r.replaceDoubleQuotes(e,i)});var a=this.componentEdit.querySelector('[ref="preview"]');a&&(this.setContent(a,this.preview.render(),null,o),this.preview.attach(a))}var l=(0,d.getComponent)(this.editForm.components,"defaultValue",!0);if(l&&"hidden"!==e.type){if(n&&(n.component&&"defaultValue"===n.component.key||n.instance&&l.hasComponent&&l.hasComponent(n.instance))){var s=n.instance._data.key,u=(0,f.getArrayFromComponentPath)(n.instance.path);u.shift(),u.length&&(u.unshift(e.key),s=(0,f.getStringFromComponentPath)(u)),h.default.set(this.preview._data,s,n.value),h.default.set(this.webform._data,s,n.value)}else{h.default.assign(l.component,h.default.omit(k({},e),["key","label","labelPosition","labelMargin","labelWidth","placeholder","tooltip","hidden","autofocus","validate","disabled","defaultValue","customDefaultValue","calculateValue","conditional","customConditional","id"]));var c=l.parent,p=-1,y=-1;if(c.tabs.some(function(e,n){e.some(function(e,r){return e.id===l.id&&(p=n,y=r,!0)})}),-1!==p&&-1!==y&&n&&!h.default.isNil(n.value)){var m=c.tabs[p][y+1];c.removeComponent(l);var v=c.addComponent(l.component,l.data,m);h.default.pull(v.validators,"required"),c.tabs[p].splice(y,1,v),v.checkValidity=function(){return!0},v.build(l.element)}}}
vendor: 9,790 bytes, line 1
1this.emit("updateComponent",e)}},{key:"findRepeatablePaths",value:function(){var e=[],n=new Map;return(0,d.eachComponent)(this.form.components,function(r,o){r.key&&(n.has(r.key)?n.get(r.key).includes(o)?e.push(o):n.set(r.key,[].concat(b(n.get(r.key)),[o])):n.set(r.key,[o]))},!0),e}},{key:"highlightInvalidComponents",value:function(){var e=this.findRepeatablePaths(),n=!1;this.webform.everyComponent(function(r){var o,i,a=r.path;e.includes(a)?(r.setCustomValidity("API Key is not unique: ".concat(r.key)),n=!0):null!==(o=r.error)&&void 0!==o&&null!==(i=o.message)&&void 0!==i&&i.startsWith("API Key is not unique")&&r.setCustomValidity("")}),this.emit("builderFormValidityChange",n)}},{key:"saveComponent",value:function(e,n,r,o){var i=this;this.editForm.detach();var a=n?n.formioContainer:this.container,l=n?n.formioComponent:this;this.dialog.close();var u=a?this.getComponentsPath(e,l.component):"";o||(o=n.formioContainer.find(function(n){return n.id===e.id}));var c=a?a.indexOf(o):0;if(-1!==c){var f=this.editForm.submission.data;f=f.componentJson||f,this.replaceDoubleQuotes(f,["label","tooltip"]),this.hook("beforeSaveComponentSettings",f);var d=null;l.getComponents().forEach(function(e){e.component.key===o.key&&(d=e)});var p=d.component,h=d.schema,y=this.isParentSaveChildMethod(n.formioComponent);return a&&!y?(a[c]=f,d&&(d.component=f)):y&&n.formioComponent.saveChildComponent(f),(l.rebuild()||s.default.resolve()).then(function(){var e=a?a[c]:d?d.schema:[];if(i.emitSaveComponentEvent(e,p,l.schema,u,c,r,h),i.emit("change",i.form),i.highlightInvalidComponents(),i.isComponentCreated){var o=n.formioComponent.components[0];i.moveComponent(o),i.isComponentCreated=!1}})}return this.highlightInvalidComponents(),s.default.resolve()}},{key:"emitSaveComponentEvent",value:function(e,n,r,o,i,a,l){this.emit("saveComponent",e,n,r,o,i,a,l)}},{key:"attachEditComponentControls",value:function(e,n,r,o,i){var a=this;this.componentEdit.querySelectorAll('[ref="cancelButton"]').forEach(function(n){a.editForm.addEventListener(n,"click",function(n){n.preventDefault(),a.editForm.detach(),a.emit("cancelComponent",e),a.dialog.close(),a.highlightInvalidComponents()})}),this.componentEdit.querySelectorAll('[ref="removeButton"]').forEach(function(r){a.editForm.addEventListener(r,"click",function(r){r.preventDefault(),a.saved=!0,a.editForm.detach(),a.removeComponent(e,n,o),a.dialog.close(),a.highlightInvalidComponents()})}),this.componentEdit.querySelectorAll('[ref="saveButton"]').forEach(function(i){a.editForm.addEventListener(i,"click",function(i){if(i.preventDefault(),!a.editForm.checkValidity(a.editForm.data,!0,a.editForm.data))return a.editForm.setPristine(!1),a.editForm.showErrors(),!1;a.saved=!0,a.saveComponent(e,n,r,o)})}),this.componentEdit.querySelectorAll('[ref="previewButton"]').forEach(function(l){a.editForm.addEventListener(l,"click",function(l){l.preventDefault(),a.showPreview=!a.showPreview,a.editForm.detach(),a.setContent(a.componentEdit,a.renderTemplate("builderEditForm",{componentInfo:i.builderInfo,editForm:a.editForm.render(),preview:!!a.preview&&a.preview.render(),showPreview:a.showPreview,helplinks:a.helplinks})),a.editForm.attach(a.componentEdit.querySelector('[ref="editForm"]')),a.attachEditComponentControls(e,n,r,o,i)})})}},{key:"editComponent",value:function(e,n,r,o,a){var l,s=this,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(e.key){this.saved=!1;var d=(0,f.fastCloneDeep)(e),y=u.default.components[d.type],m=void 0===y;o=o||m,y=m?u.default.components.unknown:y,this.dialog&&(this.dialog.close(),this.highlightInvalidComponents());var v=h.default.clone(h.default.get(this,"options.editForm",{}));this.editForm&&this.editForm.destroy();var b=h.default.get(this.options,"editForm.".concat(d.type),{});v.editForm=this.form,v.editComponent=e,v.flags=c,this.hook("editComponentParentInstance",v,n),this.editForm=new i.default(k(k({},h.default.omit(this.options,["hooks","builder","events","attachMode","skipInit"])),{},{language:this.options.language},v)),this.hook("editFormProperties",n),this.editForm.form=o&&!m?{components:[{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Component JSON",tooltip:"Edit the JSON for this component."},{type:"checkbox",key:"showFullSchema",label:"Full Schema"}]}:y.editForm(h.default.cloneDeep(b));var g={inFormBuilder:!0};this.hook("instanceOptionsPreview",g);var w=new y(d,g),O=this.hook("builderComponentSchema",e,w);this.editForm.submission=o?{data:{componentJson:O,showFullSchema:this.options.showFullJsonSchema}}:{data:w.component},this.preview&&this.preview.destroy(),(!y.builderInfo.hasOwnProperty("preview")||y.builderInfo.preview)&&(this.preview=new i.default(h.default.omit(k(k({},this.options),{},{preview:!0}),["hooks","builder","events","attachMode","calculateValue"])),this.hook("previewFormSettitngs",O,o)),this.showPreview=null===(l=y.builderInfo.showPreview)||void 0===l||l,this.componentEdit=this.ce("div",{class:"component-edit-container"}),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:y.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),showPreview:this.showPreview,helplinks:this.helplinks})),this.dialog=this.createModal(this.componentEdit,h.default.get(this.options,"dialogAttr",{})),this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]')),this.hook("editFormWrapper"),this.updateComponent(d),this.editForm.on("change",function(i){if(i.changed){if(i.changed.component&&"showFullSchema"===i.changed.component.key){var a=i.changed.value;s.editForm.submission={data:{componentJson:a?w.component:e,showFullSchema:a}};return}(i.changed.component&&"key"===i.changed.component.key||o)&&(d.keyModified=!0);var l=!1;if(i.changed.instance?l=["label","title"].includes(i.changed.instance.path):i.changed.component&&(l=["label","title"].includes(i.changed.component.key)),l&&r&&(i.data.keyModified||s.editForm.everyComponent(function(e){if("key"===e.key&&"tabs"===e.parent.component.key)return e.setValue(s.updateComponentKey(i.data)),!1}),s.form)){var u=s.findNamespaceRoot(n.formioComponent);u=u.filter(function(e){return v.editComponent.id!==e.id}),p.default.uniquify(u,i.data)}s.updateComponent(i.data.componentJson||i.data,i.changed)}}),this.attachEditComponentControls(e,n,r,a,y),this.addEventListener(this.dialog,"close",function o(){s.editForm.destroy(!0),s.preview&&(s.preview.destroy(!0),s.preview=null),r&&!s.saved&&(s.removeComponent(e,n,a),s.highlightInvalidComponents()),s.removeEventListener(s.dialog,"close",o),s.dialog=null}),this.emit("editComponent",e)}}},{key:"updateComponentKey",value:function(e){return h.default.camelCase(e.title||e.label||e.placeholder||e.type).replace(/^[0-9]*/,"")}},{key:"moveComponent",value:function(e){if(this.selectedComponent){var n;null===(n=this.selectedComponent.element)||void 0===n||n.classList.remove("builder-component-selected"),this.removeEventListener(document,"keydown")}e.element.focus(),e.element.classList.add("builder-component-selected"),this.selectedComponent=e,this.addEventListener(document,"keydown",this.moveHandler.bind(this))}},{key:"updateComponentPlacement",value:function(e){var n,r,o=this.selectedComponent;if(o){var i=o.element,a=e?i.previousElementSibling:i.nextElementSibling,l=i.parentNode,s=l.formioContainer.length;if(s&&s<=1)return;l.formioContainer&&-1!==(n=h.default.findIndex(l.formioContainer,{key:i.formioComponent.component.key}))&&(r=(r=l.formioContainer.splice(h.default.findIndex(l.formioContainer,{key:i.formioComponent.component.key}),1))[0],l.removeChild(i));var u=l.formioComponent.components.length;if(-1===(n=-1===n?0:n+(e?-1:1)))l.formioContainer.push(r),l.appendChild(i);else if(n===u){var c=l.formioContainer[0].key;n=h.default.findIndex(l.formioComponent.components,{key:c});var f=l.formioComponent.components[n].element;l.formioContainer.splice(0,0,r),l.insertBefore(i,f)}else -1!==n&&(l.formioContainer.splice(n,0,r),e?l.insertBefore(i,a):l.insertBefore(i,a.nextElementSibling));i.focus()}}},{key:"stopMoving",value:function(e){var n=e.element.parentNode;this.removeEventListener(document,"keydown"),n.formioComponent.rebuild(),this.selectedComponent=null}},{key:"addNewComponent",value:function(e){var n,r,o=this,i=document.querySelector(".formio-builder-form"),a=e.getAttribute("data-key"),l=e.getAttribute("data-group");a&&l&&(n=this.getComponentInfo(a,l)),this.options.noNewEdit||n.noNewEdit||(p.default.uniquify(this.findNamespaceRoot(i.formioComponent),n),this.editComponent(n,i,!0,null,null)),(null===(r=i.formioComponent.components[0])||void 0===r?void 0:r.element)?i.formioContainer.splice(0,0,n):i.formioContainer.push(n),i.formioComponent.rebuild().then(function(){o.isComponentCreated=!0})}},{key:"copyComponent",value:function(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");this.addClass(this.refs.form,"builder-paste-mode"),window.sessionStorage.setItem("formio.clipboard",JSON.stringify(e.schema))}},{key:"pasteComponent",value:function(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");if(this.removeClass(this.refs.form,"builder-paste-mode"),window.sessionStorage){var n=window.sessionStorage.getItem("formio.clipboard");if(n){var r=JSON.parse(n),o=this.getParentElement(e.element);if(o){p.default.uniquify(this.findNamespaceRoot(o.formioComponent),r);var i="",a=0,l=this.isParentSaveChildMethod(o.formioComponent);o.formioContainer&&!l?(a=o.formioContainer.indexOf(e.component),i=this.getComponentsPath(r,o.formioComponent.component),o.formioContainer.splice(a+1,0,r)):l&&o.formioComponent.saveChildComponent(r,!1),o.formioComponent.rebuild(),this.emitSaveComponentEvent(r,r,o.formioComponent.component,i,a+1,!0,r)}
1this.emit("change",this.form)}}}},{key:"isParentSaveChildMethod",value:function(e){return!!(e&&e.saveChildComponent)}},{key:"getParentElement",value:function(e){var n=e;do n=n.parentNode;while(n&&!n.formioComponent);return n}},{key:"addBuilderComponentInfo",value:function(e){if(e&&e.group&&this.groups[e.group]){e=h.default.clone(e);var n=this.groups[e.group];return n.components.hasOwnProperty(e.key)||(n.components[e.key]=e),e}}},{key:"init",value:function(){return this.webform&&this.webform.init(),P(S(g.prototype),"init",this).call(this)}},{key:"clear",value:function(){this.webform.initialized&&this.webform.clear()}},{key:"destroy",value:function(e){this.webform.initialized&&this.webform.destroy(e),P(S(g.prototype),"destroy",this).call(this,e)}},{key:"addBuilderGroup",value:function(e,n){this.groups[e]?this.updateBuilderGroup(e,n):(this.groups[e]=n,this.groupOrder.push(e),this.triggerRedraw())}},{key:"updateBuilderGroup",value:function(e,n){this.groups[e]&&(this.groups[e]=n,this.triggerRedraw())}},{key:"generateKey",value:function(e){return e.key||h.default.camelCase(e.title||e.label||e.placeholder||e.type)}}],O(g.prototype,r),a&&O(g,a),Object.defineProperty(g,"prototype",{writable:!1}),g}(a.default);n.default=R},35295:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(33559),r(78089),r(70601),r(11414),r(41135),r(28839),r(88910),r(26343),r(7122),r(789),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(48510),r(37753),r(33546),r(88852),r(49907),r(30890),r(97599),r(3616),r(20680),r(89352),r(67998),r(56613),r(86328),r(70776),r(44991),r(43053),r(65813);var i=c(r(32780)),a=c(r(2890)),l=c(r(15921)),s=r(79408),u=r(38163);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){if(e){if("string"==typeof e)return p(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,n)}}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function h(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?h(Object(r),!0).forEach(function(n){m(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m(e,n,r){return(n=b(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function v(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,b(o.key),o)}}function b(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function g(){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=k(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function w(e,n){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&w(e,n)}(c,e);var n,r,l,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=k(c);if(n){var i=k(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){var e,n,r;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c),arguments[0]instanceof HTMLElement||arguments[1]?(n=arguments[0],r=arguments[1]||{}):r=arguments[0]||{},r.display="wizard",(e=s.call(this,n,r)).pages=[],e.prefixComps=[],e.suffixComps=[],e.components=[],e.originalComponents=[],e.page=0,e.currentPanel=null,e.currentPanels=null,e.currentNextPage=0,e._seenPages=[0],e.subWizards=[],e.allPages=[],e.lastPromise=i.default.resolve(),e.enabledIndex=0,e.editMode=!1,e.originalOptions=a.default.cloneDeep(e.options),e}return r=[{key:"isLastPage",value:function(){var e=this.getNextPage();return a.default.isNumber(e)?-1===e:a.default.isNull(e)}},{key:"getPages",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.all,o=void 0!==r&&r;return(this.hasExtraPages?this.components:this.pages).filter(o?a.default.identity:function(n,r){return e._seenPages.includes(r)})}},{key:"hasExtraPages",get:function(){return!a.default.isEmpty(this.subWizards)}},{key:"data",get:function(){return g(k(c.prototype),"data",this)},set:function(e){var n=this;this._data=e,a.default.each(this.getPages({all:!0}),function(e){e.data=n.componentContext(e)})}},{key:"localData",get:function(){var e,n;return(null===(e=this.pages[this.page])||void 0===e?void 0:null===(n=e.root)||void 0===n?void 0:n.submission.data)||this.submission.data}},{key:"checkConditions",value:function(e,n,r){var o=g(k(c.prototype),"checkConditions",this).call(this,e,n,r);return this.establishPages(e),o}},{key:"getComponents",value:function(){return this.submitting?this.getPages({all:this.isLastPage()}):g(k(c.prototype),"getComponents",this).call(this)}},{key:"resetValue",value:function(){this.getPages({all:!0}).forEach(function(e){return e.resetValue()}),this.setPristine(!0)}},{key:"init",value:function(){var e,n,r,o=this;this.options.buttonSettings=a.default.defaults(this.options.buttonSettings,{showPrevious:!0,showNext:!0,showSubmit:!0,showCancel:!this.options.readOnly}),this.isSecondInit||(this.isClickableDefined=null===(e=this.options)||void 0===e?void 0:null===(n=e.breadcrumbSettings)||void 0===n?void 0:n.hasOwnProperty("clickable"),this.isSecondInit=!0),this.options.breadcrumbSettings=a.default.defaults(this.options.breadcrumbSettings,{clickable:!0}),this.options.allowPrevious=this.options.allowPrevious||!1,this.page=0;var i=g(k(c.prototype),"init",this).call(this);return this.setComponentSchema(),null!==(r=this.pages)&&void 0!==r&&r[this.page]&&(this.component=this.pages[this.page].component),this.on("subWizardsUpdated",function(e){var n=o.subWizards.find(function(n){var r;return(null==e?void 0:e.id)&&(null===(r=n.subForm)||void 0===r?void 0:r.id)===(null==e?void 0:e.id)});o.subWizards.length&&n&&(n.subForm.setValue(e._submission,{},!0),o.establishPages(),o.redraw())}),i}}
1,{key:"wizardKey",get:function(){return"wizard-".concat(this.id)}},{key:"wizard",get:function(){return this.form},set:function(e){this.setForm(e)}},{key:"buttons",get:function(){var e=this,n={};return[{name:"cancel",method:"cancel"},{name:"previous",method:"prevPage"},{name:"next",method:"nextPage"},{name:"submit",method:"submit"}].forEach(function(r){e.hasButton(r.name)&&(n[r.name]=r)}),n}},{key:"buttonOrder",get:function(){var e,n,r;return null!==(e=null===(n=this.options.properties)||void 0===n?void 0:null===(r=n.wizardButtonOrder)||void 0===r?void 0:r.toLowerCase().split(", "))&&void 0!==e?e:["cancel","previous","next","submit"]}},{key:"renderContext",get:function(){var e,n;return{disableWizardSubmit:this.form.disableWizardSubmit,wizardKey:this.wizardKey,isBreadcrumbClickable:this.isBreadcrumbClickable(),isSubForm:!!this.parent&&(null!==(e=this.root)&&void 0!==e&&null!==(n=e.component)&&void 0!==n&&n.type,!1),panels:this.allPages.length?this.allPages.map(function(e){return e.component}):this.pages.map(function(e){return e.component}),buttons:this.buttons,currentPage:this.page,buttonOrder:this.buttonOrder}}},{key:"prepareNavigationSettings",value:function(e){var n=this.currentPanel;return n&&n.buttonSettings&&Object.keys(n.buttonSettings).forEach(function(){Object.keys(e.buttons).forEach(function(r){(void 0!==n.buttonSettings[r]&&!n.buttonSettings[r]||e.isSubForm)&&(e.buttons[r]=null)})}),this.renderTemplate("wizardNav",e)}},{key:"prepareHeaderSettings",value:function(e,n){return this.currentPanel&&"none"===this.currentPanel.breadcrumb||e.isSubForm?null:this.renderTemplate(n,e)}},{key:"render",value:function(){var e=this,n=this.renderContext;this.component.key&&n.panels.map(function(r){r.key===e.component.key&&(e.currentPanel=r,n.wizardPageTooltip=e.getFormattedTooltip(r.tooltip))});var r=this.prepareNavigationSettings(n),o="wizardHeader".concat(a.default.get(this.form,"settings.wizardHeaderType","")),i=a.default.get(this.form,"settings.wizardHeaderLocation","left"),l=this.prepareHeaderSettings(n,o);return this.renderTemplate("wizard",y(y({},n),{},{className:g(k(c.prototype),"getClassName",this).call(this),wizardHeader:l,wizardHeaderType:o,wizardHeaderLocation:i,wizardNav:r,components:this.renderComponents([].concat(f(this.prefixComps),f(this.currentPage.components),f(this.suffixComps)))}),this.builderMode?"builder":"form")}},{key:"redrawNavigation",value:function(){if(this.element){var e,n=this.element.querySelector("#".concat(this.wizardKey,"-nav"));n&&(this.detachNav(),n.outerHTML=this.renderTemplate("wizardNav",this.renderContext),n=this.element.querySelector("#".concat(this.wizardKey,"-nav")),this.loadRefs(n,(m(e={},"".concat(this.wizardKey,"-cancel"),"single"),m(e,"".concat(this.wizardKey,"-previous"),"single"),m(e,"".concat(this.wizardKey,"-next"),"single"),m(e,"".concat(this.wizardKey,"-submit"),"single"),e)),this.attachNav())}}},{key:"redrawHeader",value:function(){if(this.element){var e,n=this.element.querySelector("#".concat(this.wizardKey,"-header"));n&&(this.detachHeader(),n.outerHTML=this.renderTemplate("wizardHeader".concat(a.default.get(this.form,"settings.wizardHeaderType","")),this.renderContext),n=this.element.querySelector("#".concat(this.wizardKey,"-header")),this.loadRefs(n,(m(e={},"".concat(this.wizardKey,"-link"),"multiple"),m(e,"".concat(this.wizardKey,"-tooltip"),"multiple"),e)),this.attachHeader())}}},{key:"attach",value:function(e){var n,r,o=this;this.element=e,this.loadRefs(e,(m(r={},this.wizardKey,"single"),m(r,"".concat(this.wizardKey,"-header"),"single"),m(r,"".concat(this.wizardKey,"-cancel"),"single"),m(r,"".concat(this.wizardKey,"-previous"),"single"),m(r,"".concat(this.wizardKey,"-next"),"single"),m(r,"".concat(this.wizardKey,"-submit"),"single"),m(r,"".concat(this.wizardKey,"-link"),"multiple"),m(r,"".concat(this.wizardKey,"-tooltip"),"multiple"),r)),(this.options.readOnly||this.editMode)&&!this.enabledIndex&&(this.enabledIndex=(null===(n=this.pages)||void 0===n?void 0:n.length)-1),this.hook("attachWebform",e,this);var i=this.attachComponents(this.refs[this.wizardKey],[].concat(f(this.prefixComps),f(this.currentPage.components),f(this.suffixComps))
1);return this.attachNav(),this.attachHeader(),i.then(function(){o.emit("render",{component:o.currentPage,page:o.page}),o.component.scrollToTop&&o.scrollPageToTop()})}},{key:"scrollPageToTop",value:function(){var e,n=null!==(e=this.refs["".concat(this.wizardKey,"-header")])&&void 0!==e?e:this.refs[this.wizardKey];n&&("scrollIntoView"in n?n.scrollIntoView(!0):this.scrollIntoView(n))}},{key:"isBreadcrumbClickable",value:function(){var e=this,n=null;return this.pages.map(function(r){a.default.isEqual(e.currentPage.component,r.component)&&(n=r)}),this.isClickableDefined?this.options.breadcrumbSettings.clickable:a.default.get(n,"component.breadcrumbClickable",!0)}},{key:"isAllowPrevious",value:function(){var e=this,n=null;return this.pages.map(function(r){a.default.isEqual(e.currentPage.component,r.component)&&(n=r)}),a.default.get(n.component,"allowPrevious",this.options.allowPrevious)}},{key:"handleNaviageteOnEnter",value:function(e){if(13===e.keyCode){var n=new CustomEvent("click"),r=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.next.name)];r&&r.dispatchEvent(n)}}},{key:"handleSaveOnEnter",value:function(e){if(13===e.keyCode){var n=new CustomEvent("click"),r=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.submit.name)];r&&r.dispatchEvent(n)}}},{key:"attachNav",value:function(){var e=this;this.component.navigateOnEnter&&this.addEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.addEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),a.default.each(this.buttons,function(n){var r=e.refs["".concat(e.wizardKey,"-").concat(n.name)];e.addEventListener(r,"click",function(o){o.preventDefault(),r.setAttribute("disabled","disabled"),e.setLoading(r,!0),e[n.method]().then(function(){r.removeAttribute("disabled"),e.setLoading(r,!1)}).catch(function(){r.removeAttribute("disabled"),e.setLoading(r,!1)})})})}},{key:"emitWizardPageSelected",value:function(e){this.emit("wizardPageSelected",this.pages[e],e)}},{key:"attachHeader",value:function(){var e,n=this,r=this.isAllowPrevious();this.attachTooltips(this.refs["".concat(this.wizardKey,"-tooltip")],this.currentPanel.tooltip),(this.isBreadcrumbClickable()||r)&&(null===(e=this.refs["".concat(this.wizardKey,"-link")])||void 0===e||e.forEach(function(e,o){(!r||o<=n.enabledIndex)&&n.addEventListener(e,"click",function(e){return n.emit("wizardNavigationClicked",n.pages[o]),e.preventDefault(),n.setPage(o).then(function(){n.emitWizardPageSelected(o)})})}))}},{key:"detachNav",value:function(){var e=this;this.component.navigateOnEnter&&this.removeEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.removeEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),a.default.each(this.buttons,function(n){e.removeEventListener(e.refs["".concat(e.wizardKey,"-").concat(n.name)],"click")})}},{key:"detachHeader",value:function(){var e=this;this.refs["".concat(this.wizardKey,"-link")]&&this.refs["".concat(this.wizardKey,"-link")].forEach(function(n){e.removeEventListener(n,"click")})}},{key:"transformPages",value:function(){var e=this,n=[],r=this.getSortedComponents(this),o=[];this.allPages=[];var i=function n(r,i){var l=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=[],c=["datagrid","editgrid","dynamicWizard"],d=null!=r&&r.subForm?e.getSortedComponents(r.subForm):(null==r?void 0:r.components)||[],p=d.filter(function(e){return e._visible}).filter(function(e){return!c.includes(e.component.type)&&("form"!==e.type||e.isNestedWizard)}),h=d.filter(function(e){var n;return(null===(n=e.subForm)||void 0===n?void 0:n._form.display)!=="wizard"}),y=!1;if((0,u.eachComponent)(p,function(r){if(r&&r.component&&("panel"===r.component.type&&null!=r&&r.parent.wizard&&!n(r,i,!1)&&(l&&(e.setRootPanelId(r),s.push(r)),y=!0),r.isNestedWizard&&r.subForm)){var o=n(r,s,l);y||(y=o)}},!0),"panel"===r.component.type&&(!y&&l&&(e.setRootPanelId(r),i.push(r)),y&&h.length)){var m=a.default.clone(r);m.components=h,e.setRootPanelId(m),o.push(m)}return l&&(i.push.apply(i,f(o).concat(s)),o=[]),y};r.forEach(function(e){e.visible&&i(e,n)}
1,[]),this.localRoot&&this.id===this.localRoot.id&&n.forEach(function(e,n){e.eachComponent(function(e){e.page=n})}),this.allPages=n}},{key:"getSortedComponents",value:function(e){var n=e.components,r=e.originalComponents,o=[],i=[];return n&&n.length&&n.map(function(e){"panel"===e.component.type&&(i[e.component.key||e.component.title]=e)}),null==r||r.forEach(function(e){e.key||(e.key=e.title),i[e.key]&&o.push(i[e.key])}),o}},{key:"findRootPanel",value:function(e){var n;return null!==(n=e.parent)&&void 0!==n&&n.parent?this.findRootPanel(e.parent):e}},{key:"setRootPanelId",value:function(e){if(!e.rootPanelId||e.rootPanelId===e.id){var n,r=null!==(n=e.parent)&&void 0!==n&&n.parent?this.findRootPanel(e.parent):e;e.rootPanelId=r.id}}},{key:"establishPages",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.data;this.pages=[],this.prefixComps=[],this.suffixComps=[];var r=[],o={},i=y(y({},a.default.clone(this.options)),this.parent?{root:this}:{});return this.components&&this.components.length&&this.components.forEach(function(e){"panel"===e.component.type&&(o[e.component.key||e.component.title]=e)}),this.originalComponents&&this.originalComponents.forEach(function(a){if("panel"===a.type){a.key||(a.key=a.title);var l=o[a.key],s=e.shouldForceShow(a),c=e.shouldForceHide(a),f=l?l.visible:(0,u.checkCondition)(a,n,n,e.component,e)&&!a.hidden;s?f=!0:c&&(f=!1),f&&(r.push(a),l&&e.pages.push(l)),!l&&f&&((l=e.createComponent(a,i)).visible=f,e.pages.push(l),l.eachComponent(function(n){n.page=e.pages.length-1}))}else"button"!==a.type&&(e.pages.length?e.suffixComps.push(e.createComponent(a,i)):e.prefixComps.push(e.createComponent(a,i)))}),this.pages.length&&this.emit("pagesChanged"),this.transformPages(),this.allPages&&this.allPages.length&&this.updatePages(),r}},{key:"updatePages",value:function(){this.pages=this.allPages}},{key:"addComponents",value:function(){this.establishPages()}},{key:"setPage",value:function(e){var n=this;if(e===this.page)return i.default.resolve();if(e>=0&&e<this.pages.length){this.page=e,this.pageFieldLogic(e),this.getNextPage();var r=e;if(this.hasExtraPages){var o=this.pages[e],a=this.components[e];a&&(null==o?void 0:o.id)===a.id||(r=this.components.findIndex(function(e){var o,i;return e.id===(null===(o=n.pages)||void 0===o?void 0:null===(i=o[r])||void 0===i?void 0:i.rootPanelId)}))}return this._seenPages.includes(r)||(this._seenPages=this._seenPages.concat(r)),this.redraw().then(function(){n.checkData(n.submission.data)}),i.default.resolve()}return this.pages.length?i.default.reject("Page not found"):(this.redraw(),i.default.resolve())}},{key:"pageFieldLogic",value:function(e){var n;null!==(n=this.pages)&&void 0!==n&&n[e]&&(this.component=this.pages[e].component,this.originalComponent=(0,u.fastCloneDeep)(this.component),this.fieldLogic(this.data),this.disabled=this.shouldDisabled)}},{key:"currentPage",get:function(){return this.pages&&this.pages.length>=this.page?this.pages[this.page]:{components:[]}}},{key:"getNextPage",value:function(){var e;if(null!==(e=this.pages)&&void 0!==e&&e[this.page]){var n=this.submission.data,r=this.pages[this.page].component;if(r){var o=this.pages.length>this.page+1&&!this.showAllErrors?this.page+1:-1;if(r.nextPage){var i=this.evaluate(r.nextPage,{next:o,data:n,page:o,form:r},"next");if(null===i)return this.currentNextPage=null,null;var a=parseInt(i,10);return!isNaN(parseInt(a,10))&&isFinite(a)?(this.currentNextPage=a,a):(this.currentNextPage=this.getPageIndexByKey(i),this.currentNextPage)}return this.currentNextPage=o,o}this.currentNextPage=null}return null}},{key:"getPreviousPage",value:function(){return this.page-1}},{key:"beforeSubmit",value:function(){var e=this.getPages();return i.default.all(e.map(function(e){return e.options.beforeSubmit=!0,e.beforeSubmit()}))}},{key:"beforePage",value:function(e){var n=this;return new i.default(function(r,o){n.hook(e?"beforeNext":"beforePrev",n.currentPage,n.submission,function(i){i&&(n.showErrors(i,!0),o(i));var a=n.currentPage;a?a.beforePage(e).then(r).catch(o):r()})})}}
1,{key:"emitNextPage",value:function(){this.emit("nextPage",{page:this.page,submission:this.submission})}},{key:"nextPage",value:function(){var e=this;return this.options.readOnly?this.beforePage(!0).then(function(){return e.setPage(e.getNextPage()).then(function(){e.emitNextPage()})}):this.checkValidity(this.localData,!0,this.localData,!0)?(this.checkData(this.submission.data),this.beforePage(!0).then(function(){return e.setPage(e.getNextPage()).then(function(){!(e.options.readOnly||e.editMode)&&e.enabledIndex<e.page&&(e.enabledIndex=e.page,e.redraw()),e.emitNextPage()})})):(this.currentPage.components.forEach(function(e){return e.setPristine(!1)}),this.scrollIntoView(this.element,!0),i.default.reject(this.showErrors([],!0)))}},{key:"emitPrevPage",value:function(){this.emit("prevPage",{page:this.page,submission:this.submission})}},{key:"prevPage",value:function(){var e=this;return this.beforePage().then(function(){return e.setPage(e.getPreviousPage()).then(function(){e.emitPrevPage()})})}},{key:"cancel",value:function(e){var n=this;return this.options.readOnly?i.default.resolve():g(k(c.prototype),"cancel",this).call(this,e)?(this.setPristine(!0),this.setPage(0).then(function(){return n.enabledIndex&&(n.enabledIndex=0),n.onChange({resetValue:!0}),n.redraw(),n.page})):i.default.resolve()}},{key:"getPageIndexByKey",value:function(e){var n=this.page;return this.pages.forEach(function(r,o){if(r.component.key===e)return n=o,!1}),n}},{key:"schema",get:function(){return this.wizard}},{key:"setComponentSchema",value:function(){var e=this,n={};if(this.originalComponents=[],this.component.components.map(function(r){"panel"===r.type&&(r.key=(0,u.uniqueKey)(n,r.key||"panel"),n[r.key]=!0,e.wizard.full?(e.options.show=e.options.show||{},e.options.show[r.key]=!0):e.wizard.hasOwnProperty("full")&&!a.default.isEqual(e.originalOptions.show,e.options.show)&&(e.options.show=y({},e.originalOptions.show||{}))),e.originalComponents.push(a.default.clone(r))}),!Object.keys(n).length){var r={type:"panel",title:"Page 1",label:"Page 1",key:"page1",components:this.component.components};this.component.components=[r],this.originalComponents.push(a.default.clone(r))}}},{key:"setForm",value:function(e,n){if(e)return g(k(c.prototype),"setForm",this).call(this,e,n)}},{key:"onSetForm",value:function(e,n){this.component.components=(this._parentPath?n.components:e.components)||[],this.setComponentSchema()}},{key:"setEditMode",value:function(e){this.editMode||!e._id||this.options.readOnly||(this.editMode=!0,this.redraw())}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=this.getPages({all:!0}).reduce(function(o,i){return n.setNestedValue(i,e.data,r,o)||o},!1);return this.mergeData(this.data,e.data),i&&this.pageFieldLogic(this.page),e.data=this.data,this._submission=e,o||this.establishPages(e.data),this.setEditMode(e),i}},{key:"isClickable",value:function(e,n){return this.page!==n&&(0,u.firstNonNil)([a.default.get(e,"breadcrumbClickable"),this.options.breadcrumbSettings.clickable])}},{key:"hasButton",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getNextPage(),r=a.default.get(this.currentPage,"component.buttonSettings",{}),o=r.previous,i=void 0===o?this.options.buttonSettings.showPrevious:o,l=r.cancel,s=void 0===l?this.options.buttonSettings.showCancel:l,u=r.submit,c=void 0===u?this.options.buttonSettings.showSubmit:u,f=r.next,d=void 0===f?this.options.buttonSettings.showNext:f;switch(e){case"previous":return i&&this.getPreviousPage()>-1;case"next":return d&&null!==n&&-1!==n;case"cancel":return s&&!this.options.readOnly;case"submit":return c&&!this.options.readOnly&&(null===n||this.page===this.pages.length-1);default:return!0}}},{key:"pageId",value:function(e){return e.key?"".concat(e.key,"-").concat(e.title):e.components&&e.components.length>0?this.pageId(e.components[0]):e.title}},{key:"onChange",value:function(e,n,r,o){var i,l,s,u,f=this;g(k(c.prototype),"onChange",this).call(this,e,n,r,o),this.alert&&!this.submitted&&(this.checkValidity(this.localData,!1,this.localData,!0),this.showErrors([],!0,!0));var d=this.currentNextPage;this.hasExtraPages?(i=this.pages.map(function(e){return e.component.key}),this.establishPages(),l=this.pages.map(function(e){return e.component.key})):(i=this.currentPanels||this.pages.map(function(e){return e.component.key}),l=this.establishPages().map(function(e){return e.key}),this.currentPanels=l,null!==(s=this.currentPanel)&&void 0!==s&&s.key&&null!==(u=this.currentPanels)&&void 0!==u&&u.length&&this.setPage(this.currentPanels.findIndex(function(e){return e===f.currentPanel.key}))),(!a.default.isEqual(l,i)||e&&e.fromSubmission)&&this.redrawHeader(),d!==this.getNextPage()&&this.redrawNavigation(),this.options.readOnly&&(this.prefixComps.length||this.suffixComps.length)&&this.redraw()}},{key:"redraw",value:function(){var e,n;return null!==(e=this.parent)&&void 0!==e&&null!==(n=e.component)&&void 0!==n&&n.modalEdit?this.parent.redraw():g(k(c.prototype),"redraw",this).call(this)}},{key:"rebuild",value:function(){var e=this,n=this.page;return g(k(c.prototype),"rebuild",this).call(this).then(function(){return e.setPage(n)})}},{key:"checkValidity",value:function(e,n,r,o){return this.checkCondition(r,e)?(!o||this.isLastPage()?this.getComponents():this.currentPage.components).reduce(function(o,i){return i.checkValidity(e,n,r)&&o},!0):(this.setCustomValidity(""),!0)}},{key:"errors",get:function(){return this.isLastPage()?g(k(c.prototype),"errors",this):this.currentPage.errors}},{key:"focusOnComponent",value:function(e){var n,r=this,o=0,i=(function(e){if(Array.isArray(e))return e}(n=this.pages.filter(function(n,r){var i=!1;return n.getComponent(e,function(n){n.path===e&&(o=r,i=!0)}),i}))||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}
1finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(n,1)||d(n,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return i&&i!==this.currentPage?this.setPage(o).then(function(){r.checkValidity(r.submission.data,!0,r.submission.data),r.showErrors(),g(k(c.prototype),"focusOnComponent",r).call(r,e)}):g(k(c.prototype),"focusOnComponent",this).call(this,e)}}],v(c.prototype,r),l&&v(c,l),Object.defineProperty(c,"prototype",{writable:!1}),c}(l.default);n.default=O,O.setBaseUrl=s.GlobalFormio.setBaseUrl,O.setApiUrl=s.GlobalFormio.setApiUrl,O.setAppUrl=s.GlobalFormio.setAppUrl},89835:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(20680),r(33546),r(88852),r(94195),r(86328),r(1385),r(48510),r(37753),r(89352),r(70601),r(49907),r(30890),r(56613),r(41967),r(97599),r(43053),r(65813);var i,a=f(r(99588)),l=f(r(15921)),s=f(r(71125)),u=f(r(2890)),c=r(38163);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=y(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function h(e,n){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}i=r(70153);var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&h(e,n)}(m,e);var n,r,a,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(m);if(n){var i=y(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m),arguments[0]instanceof HTMLElement||arguments[1]?(n=arguments[0],r=arguments[1]):r=arguments[0],r.skipInit=!1,r.display="wizard",(e=f.call(this,n,r))._form={components:[e.getPageConfig(1)]},e.page=0;var e,n,r,o=function(n){e.groups[n]&&e.groups[n].components&&(e.groups[n].componentOrder=Object.keys(e.groups[n].components).map(function(r){return e.groups[n].components[r]}).filter(function(e){return e&&!e.ignore}).sort(function(e,n){return e.weight-n.weight}).map(function(e){return e.key}))};for(var i in e.groups)o(i);var a=e.options.hooks.renderComponents;e.options.hooks.renderComponents=function(e,n){var r=n.components,o=n.self;return"form"!==o.type||o.root?a(e,{components:r,self:o}):e};var l=e.options.hooks.attachComponents;return e.options.hooks.attachComponents=function(e,n,r,o){return"form"!==o.type||o.root?l(e,n,r,o):e},e.on("saveComponent",function(n,r){var o=e.webform.components.map(function(e){return e.component});if(e._form.components.includes(r))e._form.components[e._form.components.indexOf(r)]=n,e.rebuild();else if(o.includes(r))e._form.components.push(n),e.rebuild();else{var i=e._form.components.findIndex(function(e){return r.key===e.key});-1!==i&&(e._form.components[i]=n,e.rebuild())}},!0),e}return r=[{key:"removeComponent",value:function(e,n,r){var o=p(y(m.prototype),"removeComponent",this).call(this,e,n,r);if(o&&"panel"===e.type){var i=this.pages.findIndex(function(n){return n.key===e.key}),a=this._form.components.findIndex(function(n){return n.key===e.key});-1!==i&&this.removePage(i,a)}return o}},{key:"allowDrop",value:function(e){return!this.webform||!this.webform.refs||this.webform.refs.webform!==e}},{key:"pages",get:function(){return u.default.filter(this._form.components,{t
1ype:"panel"})}},{key:"currentPage",get:function(){var e=this.pages;return e&&e.length>=this.page?e[this.page]:null}},{key:"form",get:function(){return this._form},set:function(e){if(this._form=e,this._form.components&&Array.isArray(this._form.components)||(this._form.components=[]),0===this.pages.length){var n=this._form.components.filter(function(e){return"button"!==e.type});this._form.components=[this.getPageConfig(1,n)]}this.rebuild()}},{key:"schema",get:function(){u.default.assign(this.currentPage,this.webform._form.components[0]);var e=new l.default(this.options);return e.setForm(this._form,{noEmit:!0}),e.schema}},{key:"render",value:function(){var e=this;return this.renderTemplate("builderWizard",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id),groups:this.groupOrder.map(function(n){return e.renderTemplate("builderSidebarGroup",{group:e.groups[n],groupKey:n,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[n].subgroups.map(function(r){return e.renderTemplate("builderSidebarGroup",{group:r,groupKey:r.key,groupId:"group-container-".concat(n),subgroups:[]})})})})}),pages:this.pages,form:this.webform.render()})}},{key:"attach",value:function(e){var n=this;return this.loadRefs(e,{addPage:"multiple",gotoPage:"multiple"}),this.refs.gotoPage.forEach(function(e,n){e.parentNode.dragInfo={index:n}}),i&&(this.navigationDragula=i([this.element.querySelector(".wizard-pages")],{moves:function(e){return!e.classList.contains("wizard-add-page")},accepts:function(e,n,r,o){return!!o}}).on("drop",this.onReorder.bind(this))),this.refs.addPage.forEach(function(e){n.addEventListener(e,"click",function(e){e.preventDefault(),n.addPage()})}),this.refs.gotoPage.forEach(function(e,r){n.addEventListener(e,"click",function(e){e.preventDefault(),n.setPage(r)})}),p(y(m.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){this.navigationDragula&&this.navigationDragula.destroy(),this.navigationDragula=null,p(y(m.prototype),"detach",this).call(this)}},{key:"rebuild",value:function(){var e,n=this.currentPage;return this.webform.setForm({display:"form",type:"form",components:n?[n]:[],controller:(null===(e=this._form)||void 0===e?void 0:e.controller)||""},{keepAsReference:!0}),this.redraw()}},{key:"addPage",value:function(e){var n=e&&e.schema?(0,c.fastCloneDeep)(e.schema):this.getPageConfig(this.pages.length+1);return s.default.uniquify(this._form.components,n),this._form.components.push(n),this.emitSaveComponentEvent(n,n,this._form,"components",this._form.components.length-1,!0,n),this.emit("change",this._form),this.rebuild()}},{key:"removePage",value:function(e,n){return(this._form.components.splice(n,1),this.emit("change",this._form),e!==this.pages.length)?this.rebuild():0===e?(this._form.components.push(this.getPageConfig(1)),this.rebuild()):this.setPage(e-1)}},{key:"onReorder",value:function(e,n,r,o){var i=this,a=null==o?void 0:o.classList.contains("wizard-add-page");if(!e.dragInfo||o&&!o.dragInfo&&!a){console.warn("There is no Drag Info available for either dragged or sibling element");return}var l=e.dragInfo.index,s=o&&o.dragInfo?o.dragInfo.index:this.pages.length,u=s>l,f=(0,c.fastCloneDeep)(this._form.components),d=this._form.components[l];return f.splice(s,0,d),f.splice(u?l:l+1,1),this._form.components=(0,c.fastCloneDeep)(f),this.rebuild().then(function(){i.emit("change",i._form)})}},{key:"setPage",value:function(e){if(e!==this.page)return this.page=e,this.rebuild()}},{key:"getPageConfig",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{title:"Page ".concat(e),label:"Page ".concat(e),type:"panel",key:"page".concat(e),components:n}}},{key:"pasteComponent",value:function(e){if(!(e instanceof m)){if(!this._form.components.find(function(n){return u.default.isEqual(e.component,n)}))return p(y(m.prototype),"pasteComponent",this).call(this,e);this.addPage(e)}}}],d(m.prototype,r),a&&d(m,a),Object.defineProperty(m,"prototype",{writable:!1}),m}(a.default);n.default=m},28068:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(889
110),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var i=s(r(26184)),a=s(r(32780)),l=s(r(2890));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(d,e);var n,r,i,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(d);if(n){var i=f(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(e,n){var r;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),(r=s.call(this,e)).namespace="formio.plugin",r.component=n||{},r.settings=l.default.merge({},r.defaultSettings,e||{}),r}return i=[{key:"info",get:function(){return{supportedComponents:[],name:"formioAddon",components:[],label:"Formio Addon",defaultSettings:{}}}}],r=[{key:"defaultSettings",get:function(){return d.info.defaultSettings}},{key:"element",get:function(){return this._element}},{key:"attach",value:function(e){return this._element=e,a.default.resolve()}},{key:"destroy",value:function(){}}],u(d.prototype,r),i&&u(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(i.default);n.default=d},48269:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(16700))&&o.__esModule?o:{default:o},a=[{label:"Strength Levels",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"levels",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},{label:"Max Entropy",description:"Specifies the top boundary of the password's entropy(strength) which belongs to this level.\nCommon entropy values are:\n<ul>\n  <li>&lt; 28 bits = Very Weak;</li>\n  <li>28 - 35 bits = Weak; should keep out most people;</li>\n  <li>36 - 59 bits = Reasonable; fairly secure passwords for network and company passwords;</li>\n  <li>60 - 127 bits = Strong; can be good for guarding financial information;</li>\n  <li>&gt; 128 bits = Very Strong; often overkill;</li>\n</ul>\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",validate:{required:!0,min:1,max:128},key:"maxEntropy",type:"number",input:!0},{label:"Style",tooltip:"Specifies the background color style using bootstrap classes",tableView:!0,data:{values:[{label:"Danger",value:"danger"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"style",type:"select",indexeddb:{filter:{}}
vendor: 4,382 bytes, line 1
1,input:!0},{label:"Color",placeholder:"#0079c0",tooltip:"Specifies a color of the indicator element",tableView:!0,key:"color",type:"textfield",input:!0}]},{label:"Update On",tableView:!0,data:{values:[{label:"Strength Level Change",value:"levelChange"},{label:"Entropy Change",value:"entropyChange"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"updateOn",type:"select",indexeddb:{filter:{}},input:!0},{label:"Rules",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"rulesSettings",type:"datagrid",input:!0,components:[{label:"Name",tableView:!0,data:{values:[{label:"Length",value:"length"},{label:"Lower Case",value:"lowerCase"},{label:"Upper Case",value:"upperCase"},{label:"Numeric",value:"numeric"},{label:"Symbols",value:"symbols"}]},selectThreshold:.3,validate:{required:!0,onlyAvailableItems:!1},key:"name",type:"select",indexeddb:{filter:{}},input:!0},{label:"Error Message",tableView:!0,key:"errorMessage",type:"textfield",input:!0},{label:"Required",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},{label:"Custom Rules",tableView:!1,rowDrafts:!1,key:"customRules",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},i.default.javaScriptValue("Check","check","",1100,'<p><h4>Example:</h4><pre>valid = !value.includes(data.email) ? true : "Password should not be variation of the email";</pre></p>',"","",!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,"<p><h4>Example:</h4><pre>valid = entropy > maxEntropy / 2 ;</pre></p>","","<tr><th>entropy</th><td>Current entropy bits of the password.</td></tr><tr><th>level</th><td>Current strength level of the password.</td></tr>",!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,"<p><h4>Example:</h4><pre>values = [ data.name, data.dataOfBirth, data.favoriteColor ];</pre></p>","","",!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"}];n.default=a},49848:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(70601),r(11414),r(41135),r(28839),r(889
110),r(26343),r(7122),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(1385),r(789),r(3616),r(81512),r(31490),r(56613),r(93538),r(45945),r(49907),r(37753),r(30890),r(67998),r(55096),r(43053),r(65813);var i=s(r(2890)),a=s(r(28068)),l=s(r(48269));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function f(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(c,e);var n,r,a,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(c);if(n){var i=h(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(e,n){var r;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c),(r=s.call(this,e,n))._entropy=0,r.levels=u(r.settings.levels||r.defaultSettings.levels),r.levels.sort(function(e,n){return e.maxEntropy-n.maxEntropy}),r.level=r.levels[0],r.maxEntropy=r.levels[r.levels.length-1].maxEntropy,r}return r=[{key:"defaultSettings",get:function(){return c.info.defaultSettings}},{key:"rules",get:function(){var e=this;return{length:{check:function(n,r){var o=r.minLength||e.component.component.validate.minLength||6;return!(n.length<o)||"Value must be longer than ".concat(o," characters")}},upperCase:{check:function(e){return!!/[A-Z]/g.test(e)||"Value must contain uppercased alphabetical characters"},increaseCharactersPoolSize:26},numeric:{check:function(e){return!!/[0-9]/g.test(e)||"Value must contain numeric characters"},increaseCharactersPoolSize:10},lowerCase:{check:function(e){return!!/[a-z]/g.test(e)||"Value must contain lowercased alphabetical characters"},increaseCharactersPoolSize:26},symbols:{check:function(e){return!!/[ `!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/.test(e)||"Value must contain symbols"},increaseCharactersPoolSize:32}}}},{key:"charactersPoolLength",get:function(){return this._charactersPoolLength},set:function(e){this._charactersPoolLength=e}},{key:"level",get:function(){return this._level||this.getLevel()},set:function(e){this._level=e}},{key:"entropy",get:function(){return this._entropy},set:function(e){var n=this.getLevel(),r="entropyChange"===this.settings.updateOn&&this._entropy!==e;this._entropy=e,this.level=this.getLevel(),("levelChange"===this.settings.updateOn&&n.name!==this.level.name||r)&&this.updateView()}},{key:"dictionarySize",get:function(){return this.settings.dictionarySize||171476}},{key:"template",get:function(){return this.settings.template}},{key:"tooltip",get:function(){var e,n;return(null===(e=this.level)||void 0===e?void 0:e.tooltip)||"".concat(null===(n=this.level)||void 0===n?void 0:n.name," strongness")}},{key:"rulesSettings",get:function(){return this.settings.rulesSettings||[]}},{key:"customRules",get:function(){return this.settings.customRules||[]}},{key:"log2",value:function(e){return"function"==typeof Math.log2?Math.log2(e):Math.log(e)*Math.LOG2E}},{key:"calculatePasswordEntropy",value:function(e,n){return e&&n?this.log2(Math.pow(n,e)):0}},{key:"calculatePasswordEntropyWords",value:function(e){return this.dictionarySize?this.log2(this.dictionarySize)*e:0}},{key:"render",value:function(){var e=this.component.interpolate(this.template,{entropy:this.entropy,maxEntropy:this.maxEntropy,level:this.level,levelName:this.level.name.replace(" ","-").toLowerCase(),levels:this.levels,readOnly:this.component.options.readOnly,pristine:this.component.pristine,t:this.t.bind(this),tooltip:this.tooltip});return this.component.sanitize(e)}},{key:"checkBlackList",value:function(e){var n=u(this.settings.blackList),r=this.settings.customBlacklistedWords;r&&"string"==typeof r&&(r=this.evaluate(r,this.component.evalContext({value:e}),"values"))&&r.length&&n.push.apply(n,u(r));for(var o=e,i=[],a=0;a<n.length;a++){var l=n[a],s=RegExp("".concat(l),"gi");if(s.test(e)&&(i.push(l),o=o.replace(s,"")),o.length<3)break}if(i.length){var c=(o.length?this.performChecks(o):0).charactersPoolSize,f
vendor: 5,312 bytes, line 1
1=this.calculatePasswordEntropy(o.length,c);return{entropy:this.calculatePasswordEntropyWords(i.length)+f,blacklistedWords:i}}return!0}},{key:"isValid",value:function(){var e=this.settings.isValid;return e&&"string"==typeof e?this.evaluate(e,this.component.evalContext({entropy:this.entropy,level:this.level}),"valid"):this.entropy>=Math.round(this.maxEntropy/2)}},{key:"handleRuleCheckResult",value:function(e,n,r,o){if(!0!==e)o.push({validation:n.name,message:r,level:n.required?"error":"warning"});else if(n.increaseCharactersPoolSize)return n.increaseCharactersPoolSize;return 0}},{key:"performChecks",value:function(e){var n=this,r=[],o=0;return this.rulesSettings.forEach(function(a){if(n.rules[a.name]){var l=i.default.merge({},n.rules[a.name],a),s=l.check(e,a.options||{}),u=a.message||s;o+=n.handleRuleCheckResult(s,l,u,r)}}),this.customRules.forEach(function(i){if(i.check&&"string"==typeof i.check){var a=n.evaluate(i.check,n.component.evalContext({value:e}),"valid"),l="string"==typeof a?a:"Password does not meet ".concat(i.name," validation");o+=n.handleRuleCheckResult(a,i,l,r)}}),{charactersPoolSize:o,errors:r}}},{key:"checkValidity",value:function(e){var n,r=e.length,o=this.performChecks(e),i=o.charactersPoolSize,a=o.errors;this.errors=a;var l=this.calculatePasswordEntropy(r,i),s=null!==(n=this.settings.blackList)&&void 0!==n&&n.length||this.settings.customBlacklistedWords?this.checkBlackList(e):null;return s&&!0!==s?(this.handleBlackListCheckResult(s),this.entropy=Math.min(l,s.entropy)):this.entropy=l,this.isValid()||this.errors.push({message:"Password is not strong enough",level:this.settings.required?"error":"warning"}),!this.errors.length}},{key:"handleBlackListCheckResult",value:function(e){var n=e.blacklistedWords,r=this.settings.disableBlacklistedWords,o="Password ".concat(r?"must":"should"," not include common words: ").concat(n.join(", "));this.handleRuleCheckResult(!1,{name:"blacklist",required:r},o,this.errors)}},{key:"attach",value:function(e){var n=this;d(h(c.prototype),"attach",this).call(this,e);var r=this.component.ce("div",{ref:"passwordStrengthIndicator"});this.insertContainer(e,r)||this.component.append(r),this._element=r,this.component.on("redraw",function(){return n.updateView()}),this.component.on("componentError",function(){return n.updateView()}),this.updateView()}},{key:"insertContainer",value:function(e,n){if(!e||!n)return!1;var r,o,i,a=null===(r=this.settings.location)||void 0===r?void 0:r.insert,l=null===(o=this.settings.location)||void 0===o?void 0:o.selector;if(l&&(i=e.querySelector(l)),!i)return console.warn("No elements found using selector: ".concat(l)),!1;var s=i.parentNode;switch(a){case"after":if(s)return s.insertBefore(n,i.nextSibling||null),!0;return!1;case"before":if(s)return s.insertBefore(n,i),!0;return!1;default:return console.warn("Unknown insert option: ".concat(a)),!1}}},{key:"destroy",value:function(){d(h(c.prototype),"destroy",this).call(this)}},{key:"getLevel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.entropy,n=this.levels[0],r=n.maxEntropy;if(e<=n.maxEntropy)return n;if(e>=this.maxEntropy)return this.levels[this.levels.length-1];for(var o=1;o<this.levels.length;o++){var i=this.levels[o];if(e>r&&e<=i.maxEntropy)return i;r=i.maxEntropy}return n}},{key:"updateView",value:function(){if(this.element){var e=this.render();this.element.innerHTML=e}}}],a=[{key:"info",get:function(){return{supportedComponents:["password"],name:"passwordStrength",components:l.default,label:"Password Strength",defaultSettings:{rulesSettings:[{name:"length",required:!1,message:"Value should be longer"},{name:"upperCase",required:!1,message:"Value should have uppercase letters"},{name:"numeric",required:!1,message:"Value should have numeric symbols"},{name:"lowerCase",required:!1,message:"Value should be have lowercase letters"},{name:"symbols",required:!1,message:"Value should have symbols"}],updateOn:"levelChange",required:!0,levels:[{name:"Low",maxEntropy:28,style:"danger"},{name:"Medium",maxEntropy:45,style:"warning"},{name:"High",maxEntropy:59,style:"info"},{name:"Very High",maxEntropy:85,style:"success"}],blackList:[],template:"\n          <div class=\"formio-security-indicator\">\n            {% if (!ctx.readOnly && !ctx.pristine) { %}\n              <div\n                title=\"{{ctx.t(ctx.tooltip)}}\"\n                class=\"security-{{ctx.levelName}} {{ ctx.level.style ? 'bg-' + ctx.level.style : ''}}\"\n                style=\"{{ctx.level.color ? 'background-color: ' + ctx.level.color + ';' : ''}}\"\n              ></div>\n            {% } %}\n          </div>\n        ",location:{insert:"after",selector:'[ref="element"]'}}}}}],r&&f(c.prototype,r),a&&f(c,a),Object.defineProperty(c,"prototype",{writable:!1}),c}(a.default);n.default=y},20658:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.editForms=n.default=void 0,r(20680),r(3616);var o,i=(o=r(49848))&&o.__esModule?o:{default:o},a=[i.default.info].map(function(e){var n=e.components,r=e.name;return{type:"form",key:"settings",display:"form",input:!0,components:n,defaultValue:{data:e.defaultSettings},customConditional:function(e){return e.row.name.value===r}}});n.editForms=a;var l={passwordStrength:i.default};n.default=l},35864:function(e,n,r){"use strict";
1r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o,i,a=c(r(2890)),l=c(r(42532)),s=c(r(99588)),u=c(r(89835));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==f(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===f(n)?n:String(n)}var p=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addBuilder",value:function(e,r){n.builders[e]=r}},{key:"addBuilders",value:function(e){n.builders=a.default.merge(n.builders,e)}},{key:"getBuilder",value:function(e){return n.builders[e]}},{key:"getBuilders",value:function(){return n.builders}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=p,o="builders",i={pdf:l.default,webform:s.default,wizard:u.default},(o=d(o))in p?Object.defineProperty(p,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):p[o]=i},63032:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=((o=r(35864))&&o.__esModule?o:{default:o}).default;n.default=i},5956:function(e,n,r){"use strict";r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o=s(r(35849)),i=s(r(16700)),a=s(r(8826)),l=s(r(2890));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n,r){return(n=f(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function f(e){var n=function(e,n){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==u(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===u(n)?n:String(n)}var d=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"EditFormUtils",get:function(){return n._editFormUtils},set:function(e){n._editFormUtils=e}},{key:"baseEditForm",get:function(){return n._baseEditForm},set:function(e){n._baseEditForm=e}},{key:"recalculateComponents",value:function(){window&&window.Formio&&window.Formio.AllComponents&&n.setComponents(window.Formio.AllComponents)}},{key:"components",get:function(){return n._components||(n._components={}),n._components}},{key:"setComponents",value:function(e){e.base&&(e.base.tableView=function(e,r){return n.create(r.component,r.options||{},r.data||{},!0).getView(e)}),l.default.assign(n.components,e)}},{key:"addComponent",value:function(e,r){return n.setComponent(e,r)}},{key:"setComponent",value:function(e,r){n.components[e]=r}},{key:"create",value:function(e,r,i){return e.type&&n.components.hasOwnProperty(e.type)?new n.components[e.type](e,r,i):e.arrayTree?new n.components.datagrid(e,r,i):e.tree?new n.components.nesteddata(e,r,i):Array.isArray(e.components)?new n.components.nested(e,r,i):r&&r.server?new n.components.hidden(e,r,i):new o.default(e,r,i)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=d,c(d,"_editFormUtils",i.default),c(d,"_baseEditForm",a.default)},8826:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var p=o.default.cloneDeep([{type:"tabs",key:"tabs",components:[{label:"Display",key:"display",weight:0,components:s.default},{label:"Data",key:"data",weight:10,components:a.default},{label:"Validation",key:"validation",weight:20,components:c.default},{label:"API",key:"api",weight:30,components:l.default},{label:"Conditional",key:"conditional",weight:40,components:i.default},{label:"Logic",key:"logic",weight:50,components:u.default},{label:"Layout",key:"layout",weight:60,components:f.default}]}]).concat(n.map(function(e){return{type:"tabs",key:"tabs",components:o.default.cloneDeep(e)}}));return{components:o.default.unionWith(p,d.default.unifyComponents).concat({type:"hidden",key:"type"})}},r(67998),r(20680);var o=p(r(2890)),i=p(r(74210)),a=p(r(32783)),l=p(r(64391)),s=p(r(80218)),u=p(r(88034)),c=p(r(92057)),f=p(r(22446)),d=p(r(16700));
1function p(e){return e&&e.__esModule?e:{default:e}}},35849:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(88910),r(89352),r(33559),r(78089),r(2223),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(66334),r(3616),r(14483),r(56613),r(49907),r(37753),r(30890),r(94195),r(67998),r(33546),r(88852),r(70601),r(789),r(31490),r(98797),r(55096),r(45399),r(45945),r(20680),r(41967),r(44991),r(70776),r(60757),r(48510),r(26343),r(28839),r(92471),r(7122),r(43053),r(65813),r(18666);var i=r(23436),a=w(r(32780)),l=w(r(52069)),s=w(r(2890)),u=w(r(79027)),c=r(79408),f=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=g(n);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,r&&r.set(e,i),i}(r(38163)),d=w(r(55272)),p=w(r(26184)),h=w(r(40411)),y=w(r(34596)),m=w(r(20658)),v=r(63373),b=w(r(67394));function g(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:n})(e)}function w(e){return e&&e.__esModule?e:{default:e}}function k(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function O(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?k(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=E(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw a}}}}function j(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,n){if(e){if("string"==typeof e)return S(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,n)}}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function C(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,E(o.key),o)}}function E(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function x(){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=T(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
vendor: 6,046 bytes, line 1
1function R(e,n){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function M(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=f.getBrowserInfo().ie,D=c.GlobalFormio.Templates;D||(D=r(41880).default);var V=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&R(e,n)}(w,e);var n,r,p,g=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=T(w);if(n){var i=T(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return M(e)}(this,e)});function w(e,n,r){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,w),o=g.call(this,Object.assign({renderMode:"form",attachMode:"full",noDefaults:!1},n||{})),e&&e.id&&(o.id=e.id),o._hasCondition=null,o.refs={},e&&o.options.components&&o.options.components[e.type]&&s.default.merge(e,o.options.components[e.type]),o.validator=d.default,o.path="",o.component=o.mergeSchema(e||{}),o.component.id=o.id,o.afterComponentAssign(),o.originalComponent=(0,f.fastCloneDeep)(o.component),o.attached=!1,o.rendered=!1,o._data=r||{},o.error="",o.tooltip="",o.row=o.options.row,o._disabled=!!(0,f.boolValue)(o.component.disabled)&&o.component.disabled,o.root=o.options.root,o.localRoot=o.options.localRoot,o.pristine=!0,o.parent=o.options.parent,o.options.name=o.options.name||"data",o.validators=["required","minLength","maxLength","minWords","maxWords","custom","pattern","json","mask"],o._path="",o._parentPath=o.options.parentPath||"",o.resetCaches(),o._parentVisible=!o.options.hasOwnProperty("parentVisible")||o.options.parentVisible,o._visible=o._parentVisible&&o.conditionallyVisible(null,r),o._parentDisabled=!1;var o,i=[],a=null,l=[],u=s.default.debounce(function(){o.root&&(o.root.changing=!1),l=[];for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];!n[1]&&a&&(n[1]=a),s.default.isEmpty(n[0])&&a&&(n[0]=a.flags),a=null,n[3]=i;var u=o.onChange.apply(o,n);return i=[],u},100);return o.triggerChange=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n[1]&&(a=n[1],i.push(a)),o.root&&(o.root.changing=!0),n.length&&(l=n),u.apply(void 0,j(l))},o.triggerRedraw=s.default.debounce(o.redraw.bind(M(o)),100),o.tooltips=[],o.addons=[],o.invalid=!1,o.component&&(o.type=o.component.type,o.allowData&&o.key&&(o.options.name+="[".concat(o.key,"]"),(o.visible||!o.component.clearOnHide)&&(o.hasValue()?o.dataValue=o.dataValue:o.shouldAddDefaultValue&&(o.dataValue=o.defaultValue))),o.info=o.elementInfo()),o.hook("component"),o.options.skipInit||o.init(),o}return r=[{key:"data",get:function(){return this._data},set:function(e){this._data=e}},{key:"mergeSchema",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.default.defaultsDeep(e,this.defaultSchema)}},{key:"ready",get:function(){return a.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 e={};e.hidden=this.labelIsHidden(),e.className="",e.labelPosition=this.component.labelPosition,e.tooltipClass="".concat(this.iconClass("question-sign")," text-muted");var n=this.isPDFReadOnlyMode;return this.hasInput&&this.component.validate&&(0,f.boolValue)(this.component.validate.required)&&!n&&(e.className+=" field-required"),e.hidden&&(e.className+=" control-label--hidden"),this.info.attr.id&&(e.for=this.info.attr.id),e}},{key:"init",value:function(){var e,n=this;this.disabled=this.shouldDisabled,this._visible=this.conditionallyVisible(null,null),null!==(e=this.component.addons)&&void 0!==e&&e.length&&this.component.addons.forEach(function(e){return n.createAddon(e)})}},{key:"afterComponentAssign",value:function(){}},{key:"createAddon",value:function(e){var n,r=e.name;if(r){var o=(null===(n=e.settings)||void 0===n?void 0:n.data)||{},i=m.default[r.value],a=null;if(i){var l=i.info.supportedComponents;null!=l&&l.length&&-1===l.indexOf(this.component.type)?console.warn("Addon ".concat(r.label," does not support component of type ").concat(this.component.type,".")):(a=new i(o,this),this.addons.push(a))}return a}}},{key:"destroy",value:function(){x(T(w.prototype),"destroy",this).call(this),this.detach(),this.addons.forEach(function(e){return e.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 w.schema()}},{key:"key",get:function(){return s.default.get(this.component,"key","")}},{key:"parentVisible",get:function(){return this._parentVisible},set:function(e){this._parentVisible=e}},{key:"parentDisabled",get:function(){return this._parentDisabled},set:function(e){this._parentDisabled=e}},{key:"shouldForceVisibility",value:function(e,n){return!!this.options[n]&&((e||(e=this.component),s.default.isArray(this.options[n]))?this.options[n].includes(e.ke
1y):this.options[n][e.key])}},{key:"shouldForceHide",value:function(e){return this.shouldForceVisibility(e,"hide")}},{key:"shouldForceShow",value:function(e){return this.shouldForceVisibility(e,"show")}},{key:"visible",get:function(){return!!this.builderMode||!!this.previewMode||!!this.options.showHiddenFields||!this.shouldForceHide()&&(!!this.shouldForceShow()||this._visible&&this._parentVisible)},set:function(e){this._visible===e||e&&this.shouldForceHide()||!e&&this.shouldForceShow()||(this._visible=e,this.clearOnHide(),this.redraw())}},{key:"currentForm",get:function(){return this._currentForm},set:function(e){this._currentForm=e}},{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 e=this.component.labelWidth;return e>=0?e:30}},{key:"labelMargin",get:function(){var e=this.component.labelMargin;return e>=0?e: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(e){return!this.options.condensedMode&&"right"===e}},{key:"getLabelInfo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rightDirection(this.labelPositions[0]),r="left"===this.labelPositions[0]||e,o=this.rightDirection(this.labelPositions[1]),i="";if(this.component.hideLabel){var a=e?0:this.labelWidth+this.labelMargin;i=n?"margin-right: ".concat(a,"%"):"",i=r?"margin-left: ".concat(a,"%"):""}var l="\n      flex: ".concat(this.labelWidth,";\n      ").concat(n?"margin-left":"margin-right",": ").concat(this.labelMargin,"%;\n    ");return{isRightPosition:n,isRightAlign:o,labelStyles:l,contentStyles:"\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    ")}}},{key:"getModifiedSchema",value:function(e,n,r){var o=this,i={};return n?(s.default.each(e,function(e,a){if(!s.default.isArray(e)&&s.default.isObject(e)&&n.hasOwnProperty(a)){var l=o.getModifiedSchema(e,n[a],!0);s.default.isEmpty(l)||(i[a]=l)}else s.default.isArray(e)?0===e.length||s.default.isEqual(e,n[a])||(i[a]=e):(r||"type"!==a)&&(r||"key"!==a)&&(r||"label"!==a)&&(r||"input"!==a)&&(r||"tableView"!==a)&&(""===e||n.hasOwnProperty(a))&&(""===e||e===n[a])&&(!n[a]||e===n[a])||(i[a]=e)}),i):e}},{key:"schema",get:function(){return(0,f.fastCloneDeep)(this.getModifiedSchema(s.default.omit(this.component,"id"),this.defaultSchema))}},{key:"isInDataGrid",get:function(){return this.inDataGrid}},{key:"t",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";if(e in b.default&&r._userInput)return e;r.data=this.rootValue,r.row=this.data,r.component=this.component;for(var o=arguments.length,i=Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];return(n=x(T(w.prototype),"t",this)).call.apply(n,[this,e,r].concat(i))}},{key:"labelIsHidden",value:function(){return!this.component.label||(!this.isInDataGrid&&this.component.hideLabel||this.isInDataGrid&&!this.component.dataGridLabel||this.options.inputsOnly)&&!this.builderMode}},{key:"transform",value:function(e,n){var r=this.options.template?D.templates[this.options.template]:D.current;return r.hasOwnProperty("transform")?r.transform(e,n):function(e,n){return n}}}
vendor: 1,170 bytes, line 1
1,{key:"getTemplate",value:function(e,n){n=Array.isArray(n)?n:[n],e=Array.isArray(e)?e:[e],n.includes("form")||n.push("form");var r=null;if(this.options.templates&&(r=this.checkTemplate(this.options.templates,e,n)))return r;var o=this.options.template?D.templates[this.options.template]:D.current;if(r=this.checkTemplate(o,e,n))return r;var i=e[e.length-1],a=D.defaultTemplates[i];return a?this.checkTemplateMode(a,n)||a.form:"Unknown template: ".concat(i)}},{key:"checkTemplate",value:function(e,n,r){var o,i=P(n);try{for(i.s();!(o=i.n()).done;){var a=e[o.value];if(a){var l=this.checkTemplateMode(a,r);if(l)return l}}}catch(e){i.e(e)}finally{i.f()}return null}},{key:"checkTemplateMode",value:function(e,n){var r,o=P(n);try{for(o.s();!(r=o.n()).done;){var i=e[r.value];if(i)return i}}catch(e){o.e(e)}finally{o.f()}return null}},{key:"getFormattedAttribute",value:function(e){return e?this.t(e,{_userInput:!0}).replace(/"/g,"&quot;"):""}},{key:"getFormattedTooltip",value:function(e){var n=this.interpolate(e||"").replace(/(?:\r\n|\r|\n)/g,"<br />");return this.getFormattedAttribute(n)}},{key:"isHtmlRenderMode",value:function(){return"html"===this.options.renderMode}}
vendor: 11,332 bytes, line 1
1,{key:"renderTemplate",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=o||this.options.renderMode||"form";r.component=this.component,r.self=this,r.options=this.options,r.readOnly=this.options.readOnly,r.iconClass=this.iconClass.bind(this),r.size=this.size.bind(this),r.t=this.t.bind(this),r.transform=this.transform.bind(this),r.id=r.id||this.id,r.key=r.key||this.key,r.value=r.value||this.dataValue,r.disabled=this.disabled,r.builder=this.builderMode,r.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"),n.renderTemplate.apply(n,arguments)},r.label=r.labelInfo||this.labelInfo,r.tooltip=this.getFormattedTooltip(this.component.tooltip);var a=["".concat(e,"-").concat(this.component.type,"-").concat(this.key),"".concat(e,"-").concat(this.component.type),"".concat(e,"-").concat(this.key),"".concat(e)];return this.hook("render".concat(e.charAt(0).toUpperCase()+e.substring(1,e.length)),this.interpolate(this.getTemplate(a,i),r),r,i)}},{key:"sanitize",value:function(e,n,r){var o;return this.shouldSanitizeValue||n?f.sanitize(e,{sanitizeConfig:s.default.merge((null===(o=this.options)||void 0===o?void 0:o.sanitizeConfig)||{},r||{})}):e}},{key:"renderString",value:function(e,n){return e?this.interpolate(e,n):""}},{key:"performInputMapping",value:function(e){return e}},{key:"widget",get:function(){var e,n=this.component.widget;return n&&null!==(e=this.root)&&void 0!==e&&e.shadowRoot&&(n.shadowRoot=this.root.shadowRoot),n&&y.default[n.type]?new y.default[n.type](n,this.component,this):null}},{key:"getBrowserLanguage",value:function(){var e,n=window.navigator,r=["language","browserLanguage","systemLanguage","userLanguage"];if(Array.isArray(n.languages)){for(var o=0;o<n.languages.length;o++)if((e=n.languages[o])&&e.length)return e.split(";")[0]}for(var i=0;i<r.length;i++)if((e=n[r[i]])&&e.length)return e.split(";")[0];return null}},{key:"beforePage",value:function(){return a.default.resolve(!0)}},{key:"beforeNext",value:function(){return this.beforePage(!0)}},{key:"beforeSubmit",value:function(){return a.default.resolve(!0)}},{key:"submissionTimezone",get:function(){return this.options.submissionTimezone=this.options.submissionTimezone||s.default.get(this.root,"options.submissionTimezone"),this.options.submissionTimezone}},{key:"timezone",get:function(){return this.getTimezone(this.component)}},{key:"getTimezone",value:function(e){if(e.timezone)return e.timezone;if("utc"===e.displayInTimezone)return"UTC";var n=this.submissionTimezone;return n&&("submission"===e.displayInTimezone||(this.options.pdf||this.options.server)&&"viewer"===e.displayInTimezone)?n:(0,f.currentTimezone)()}},{key:"loadRefs",value:function(e,n){for(var r in n){var o=n[r],i="string"==typeof o,a=i&&o.includes("scope")?':scope > [ref="'.concat(r,'"]'):'[ref="'.concat(r,'"]');i&&o.startsWith("single")?this.refs[r]=e.querySelector(a):this.refs[r]=e.querySelectorAll(a)}}},{key:"setOpenModalElement",value:function(e){this.componentModal.setOpenModalElement(e||this.getModalPreviewTemplate())}},{key:"getModalPreviewTemplate",value:function(){var e,n,r="password"===this.component.type?this.dataValue.replace(/./g,"•"):this.dataValue,o=this.error?{level:"error",message:this.error.message}:"";return this.hasInput&&null!==(e=this.component.validate)&&void 0!==e&&e.required&&!this.isPDFReadOnlyMode&&(n={className:"field-required"}),this.renderTemplate("modalPreview",{previewText:this.getValueAsString(r,{modalPreview:!0})||this.t("Click to set value"),messages:o&&this.renderTemplate("message",o),labelInfo:n})}},{key:"build",value:function(e){return e=e||this.element,this.empty(e),this.setContent(e,this.render()),this.attach(e)}},{key:"hasModalSaveButton",get:function(){return!0}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unknown component: ".concat(this.component.type),n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.visible;return(this.rendered=!0,this.builderMode||this.previewMode||!this.component.modalEdit)?this.renderTemplate("component",{visible:r,id:this.id,classes:this.className,styles:this.customStyle,children:e},n):h.default.render(this,{visible:r,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:e},n)}},{key:"attachTooltips",value:function(e){var n=this;null==e||e.forEach(function(e,r){if(e){var o=e.getAttribute("data-tooltip"),i=e.getAttribute("data-title"),a=n.interpolate(i||o).replace(/(?:\r\n|\r|\n)/g,"<br />");n.tooltips[r]=(0,l.default)(e,{allowHTML:!0,trigger:"mouseenter click focus",placement:"right",zIndex:1e4,interactive:!0,content:n.t(n.sanitize(a),{_userInput:!0})})}})}},{key:"createComponentModal",value:function(e,n,r){return new h.default(this,e,n,r)}},{key:"attach",value:function(e){if(!this.builderMode&&!this.previewMode&&this.component.modalEdit){var n=!!this.componentModal&&this.componentModal.isOpened,r=n?this.componentModal.currentValue:this.dataValue,o=this.componentModal&&n?this.componentModal.openModalTemplate:null;this.componentModal=this.createComponentModal(e,n,r),this.setOpenModalElement(o)}this.attached=!0,this.element=e,e.component=this,this.element.id&&(this.id=this.element.id,this.component.id=this.id),this.loadRefs(e,{messageContainer:"single",tooltip:"multiple"}),this.attachTooltips(this.refs.tooltip),this.attachLogic(),this.autofocus(),this.hook("attachComponent",e,this);var i=this.component.type;return i&&this.hook("attach".concat(i.charAt(0).toUpperCase()+i.substring(1,i.length)),e,this),this.restoreFocus(),this.addons.forEach(function(n){return n.attach(e)}),a.default.resolve()}},{key:"restoreFocus",value:function(){var e,n,r;(null===(e=this.root)||void 0===e?void 0:null===(n=e.focusedComponent)||void 0===n?void 0:n.path)===this.path&&(this.loadRefs(this.element,{input:"multiple"}),this.focus(null===(r=this.root.currentSelection)||void 0===r?void 0:r.index),this.restoreCaretPosition())}},{key:"addShortcut",value:function(e,n){e&&this.root&&this.root!==this&&(n||(n=this.component.shortcut),this.root.addShortcut(e,n))}},{key:"removeShortcut",value:function(e,n){e&&this.root!==this&&(n||(n=this.component.shortcut),this.root.removeShortcut(e,n))}},{key:"detach",value:function(){this.refs={},this.removeEventListeners(),this.detachLogic(),this.tooltip&&this.tooltip.destroy()}},{key:"checkRefresh",value:function(e,n,r){var o=s.default.get(n,"instance.path",!1);(!o||this.path!==o)&&("data"===e?this.refresh(this.data,n,r):o&&(0,f.getComponentPath)(n.instance)===e&&n&&n.instance&&this.inContext(n.instance)&&this.refresh(n.value,n,r))}},{key:"checkRefreshOn",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=e||[],!r.noRefresh){!e.length&&r.changed&&(e=[r.changed]);var o=r.fromBlur?this.component.refreshOnBlur:this.component.refreshOn||this.component.redrawOn;o&&(Array.isArray(o)?o.forEach(function(o){return e.forEach(function(e){return n.checkRefresh(o,e,r)})}):e.forEach(function(e){return n.checkRefresh(o,e,r)}))}}},{key:"refresh",value:function(e){this.hasOwnProperty("refreshOnValue")?this.refreshOnChanged=!s.default.isEqual(e,this.refreshOnValue):this.refreshOnChanged=!0,this.refreshOnValue=(0,f.fastCloneDeep)(e),this.refreshOnChanged&&(this.component.clearOnRefresh&&this.setValue(null),this.triggerRedraw())}},{key:"inContext",value:function(e){if(e.data===this.data)return!0;for(var n=this.parent;n;){if(n.data===e.data)return!0;n=n.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(e,n){var r=this,o=!this.refs.input||!this.refs.input[0]||!this.refs.input[0].widget;if(!e||o)return this.widget&&e?this.widget.getValueAsString(e):e;if(Array.isArray(e)){var i=[];return e.forEach(function(e,o){var a=r.refs.input[o]&&r.refs.input[o].widget;a&&i.push(a.getValueAsString(e,n))}),i}return this.refs.input[0].widget.getValueAsString(e,n)}},{key:"getValueAsString",value:function(e,n){if(!e)return"";if(Array.isArray(e=this.getWidgetValueAsString(e,n)))return e.join(", ");if(s.default.isPlainObject(e))return JSON.stringify(e);if(null==e)return"";var r=e.toString();return this.sanitize(r)}},{key:"getView",value:function(e,n){return this.component.protected?"--- PROTECTED ---":this.getValueAsString(e,n)}},{key:"updateItems",value:function(){this.restoreValue(),this.onChange.apply(this,arguments)}},{key:"itemValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(s.default.isObject(e)&&!s.default.isArray(e)){if(this.valueProperty)return s.default.get(e,this.valueProperty);if(n)return e.value}return e}},{key:"itemValueForHTMLMode",value:function(e){var n=this;return Array.isArray(e)?e.map(function(e){return Array.isArray(e)?n.itemValueForHTMLMode(e):n.itemValue(e)}).join(", "):this.itemValue(e)}},{key:"createModal",value:function(e,n,r){var o=this,i=this.ce("div",n||{});this.setContent(i,this.renderTemplate("dialog")),i.refs={},this.loadRefs.call(i,i,{dialogOverlay:"single",dialogContents:"single",dialogClose:"single"}),i.refs.dialogContents.appendChild(e),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 o.removeChildFrom(i,document.body)});var a=function(e){e.preventDefault(),i.close()},l=function(e){r?r().then(function(){return a(e)}).catch(function(){}):a(e)};return this.addEventListener(i.refs.dialogOverlay,"click",l),this.addEventListener(i.refs.dialogClose,"click",l),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 e=this.hasInput?"".concat(this.transform("class","form-group")," has-feedback "):"";return e+="formio-component formio-component-".concat(this.component.type," "),this.key&&"form"!==this.key&&(e+="formio-component-".concat(this.key," ")),this.component.multiple&&(e+="formio-component-multiple "),this.component.customClass&&(e+=this.component.customClass),this.hasInput&&this.component.validate&&(0,f.boolValue)(this.component.validate.required)&&(e+=" required"),this.labelIsHidden()&&(e+=" formio-component-label-hidden"),this.visible||(e+=" formio-hidden"),e}},{key:"customStyle",get:function(){var e="";return s.default.each(this.component.style,function(n,r){""!==n&&(e+="".concat(r,":").concat(n,";"))}),e}},{key:"isMobile",get:function(){return(0,u.default)()}},{key:"getElement",value:function(){return this.element}},{key:"evalContext",value:function(e){return x(T(w.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.root
vendor: 3,098 bytes, line 1
1Value,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},e))}},{key:"setPristine",value:function(e){this.pristine=e}},{key:"isPristine",get:function(){return this.pristine}},{key:"setDirty",value:function(e){this.dirty=e}},{key:"isDirty",get:function(){return this.dirty}},{key:"removeValue",value:function(e){this.splice(e),this.redraw(),this.restoreValue(),this.triggerRootChange()}},{key:"iconClass",value:function(e,n){var r=this.options.iconset||D.current.defaultIconset||"fa";return D.current.hasOwnProperty("iconClass")?D.current.iconClass(r,e,n):"fa"===this.options.iconset?D.defaultTemplates.iconClass(r,e,n):e}},{key:"size",value:function(e){return D.current.hasOwnProperty("size")?D.current.size(e):e}},{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(e){return this.component.errors&&this.component.errors[e]?this.component.errors[e]:e}},{key:"setContent",value:function(e,n,r,o){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(n,r,o),!0)}},{key:"restoreCaretPosition",value:function(){if(null!==(a=this.root)&&void 0!==a&&a.currentSelection&&null!==(l=this.refs.input)&&void 0!==l&&l.length){var e=this.root.currentSelection,n=e.selection,r=e.index,o=this.refs.input[r],i=function(e){return/text|search|password|tel|url/i.test((null==e?void 0:e.type)||"")};if(o)i(o)&&(s=o).setSelectionRange.apply(s,j(n));else{var a,l,s,u,c=(null===(u=(o=this.refs.input[this.refs.input.length]).value)||void 0===u?void 0:u.length)||0;i(o)&&o.setSelectionRange(c,c)}}}},{key:"redraw",value:function(){if(!this.element||!this.element.parentNode||this.optimizeRedraw)return a.default.resolve();this.detach(),this.emit("redraw");var e=this.element.parentNode,n=Array.prototype.indexOf.call(e.children,this.element);return this.element.outerHTML=this.sanitize(this.render()),this.element=e.children[n],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(){x(T(w.prototype),"removeEventListeners",this).call(this),this.tooltips.forEach(function(e){return e.destroy()}),this.tooltips=[]}},{key:"hasClass",value:function(e,n){if(e)return x(T(w.prototype),"hasClass",this).call(this,e,this.transform("class",n))}},{key:"addClass",value:function(e,n){if(e)return x(T(w.prototype),"addClass",this).call(this,e,this.transform("class",n))}},{key:"removeClass",value:function(e,n){if(e)return x(T(w.prototype),"removeClass",this).call(this,e,this.transform("class",n))}},{key:"hasCondition",value:function(){return null!==this._hasCondition||(this._hasCondition=f.hasCondition(this.component)),this._hasCondition}},{key:"conditionallyVisible",value:function(e,n){return(e=e||this.root
vendor: 11,555 bytes, line 1
1Value,n=n||this.data,this.builderMode||this.previewMode||!this.hasCondition())?!this.component.hidden:(e=e||(this.root?this.root.data:{}),this.checkCondition(n,e))}},{key:"checkCondition",value:function(e,n){return f.checkCondition(this.component,e||this.data,n||this.rootValue,this.root?this.root._form:{},this)}},{key:"checkComponentConditions",value:function(e,n,r){e=e||this.rootValue,n=n||{},r=r||this.data,!this.builderMode&!this.previewMode&&this.fieldLogic(e,r)&&this.redraw();var o=this.conditionallyVisible(e,r);return this.visible!==o&&(this.visible=o),o}},{key:"checkConditions",value:function(e,n,r){return e=e||this.rootValue,n=n||{},r=r||this.data,this.checkComponentConditions(e,n,r)}},{key:"logic",get:function(){return this.component.logic||[]}},{key:"fieldLogic",value:function(e,n){var r=this;e=e||this.rootValue,n=n||this.data;var o=this.logic;if(0!==o.length){var i=(0,f.fastCloneDeep)(this.originalComponent),a=o.reduce(function(o,a){var l=f.checkTrigger(i,a.trigger,n,e,r.root?r.root._form:{},r);return!!l&&r.applyActions(i,a.actions,l,n,e)||o},!1);if(!s.default.isEqual(this.component,i)){this.component=i,a=!0;var l=this.shouldDisabled;this.disabled!==l&&(this.disabled=l)}return a}}},{key:"isIE",value:function(){var e=window.navigator.userAgent,n=e.indexOf("MSIE ");if(n>0)return parseInt(e.substring(n+5,e.indexOf(".",n)),10);if(e.indexOf("Trident/")>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var o=e.indexOf("Edge/");return o>0&&parseInt(e.substring(o+5,e.indexOf(".",o)),10)}},{key:"defineActionValue",value:function(e,n){return this.evaluate(e.value,n,"value")}},{key:"applyActions",value:function(e,n,r,o,i){var a=this;return i=i||this.rootValue,o=o||this.data,n.reduce(function(n,l){switch(l.type){case"property":f.setActionProperty(e,l,r,o,i,a);var u=l.property.value;s.default.isEqual(s.default.get(a.component,u),s.default.get(e,u))||(n=!0);break;case"value":var c=a.getValue(),d=a.defineActionValue(l,{value:s.default.clone(c),data:i,row:o,component:e,result:r});s.default.isEqual(c,d)||a.component.clearOnHide&&!a.visible||(a.setValue(d),a.viewOnly&&(a.dataValue=d),n=!0);break;case"mergeComponentSchema":var p=a.evaluate(l.schemaDefinition,{value:s.default.clone(a.getValue()),data:i,row:o,component:e,result:r},"schema");s.default.assign(e,p),s.default.isEqual(a.component,e)||(n=!0);break;case"customAction":var h=a.getValue(),y=a.evaluate(l.customAction,{value:s.default.clone(h),data:i,row:o,input:h,component:e,result:r},"value");s.default.isEqual(h,y)||a.component.clearOnHide&&!a.visible||(a.setValue(y),a.viewOnly&&(a.dataValue=y),n=!0)}return n},!1)}},{key:"addInputError",value:function(e,n,r){this.addMessages(e),this.setErrorClasses(r,n,!!e)}},{key:"removeInputError",value:function(e){this.setErrorClasses(e,!0,!1)}},{key:"addMessages",value:function(e){var n=this;e&&("string"==typeof e&&(e={messages:e,level:"error"}),Array.isArray(e)||(e=[e]),e=s.default.uniqBy(e,function(e){return e.message}),this.refs.messageContainer&&this.setContent(this.refs.messageContainer,e.map(function(e){return e.message&&"string"==typeof e.message&&(e.message=e.message.replaceAll("<","&lt;").replaceAll(">","&gt;")),n.renderTemplate("message",e)}).join("")))}},{key:"setErrorClasses",value:function(e,n,r,o){var i=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.clearErrorClasses(),e.forEach(function(e){i.setElementInvalid(i.performInputMapping(e),!1)}),this.setInputWidgetErrorClasses(e,r),this.visible&&(r&&(e.forEach(function(e){i.setElementInvalid(i.performInputMapping(e),!0)}),n&&this.options.highlightErrors?this.addClass(a,this.options.componentErrorClass):this.addClass(a,"has-error")),o&&this.addClass(a,"has-message"))}},{key:"setElementInvalid",value:function(e,n){e&&(n?this.addClass(e,"is-invalid"):this.removeClass(e,"is-invalid"),e.setAttribute("aria-invalid",n?"true":"false"))}},{key:"clearOnHide",value:function(){(!this.rootPristine||this.options.server||(0,f.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 e,n;this.options.onChange?(e=this.options).onChange.apply(e,arguments):this.root&&(n=this.root).triggerChange.apply(n,arguments)}},{key:"onChange",value:function(e,n){(e=e||{}).modified&&(e.noPristineChangeOnModified||(this.pristine=!1),this.addClass(this.getElement(),"formio-modified")),"blur"!==this.component.validateOn||this.errors.length||(e.noValidate=!0),this.component.onChange&&this.evaluate(this.component.onChange,{flags:e});var r={instance:this,component:this.component,value:this.dataValue,flags:e};this.emit("componentChange",r);var o=!1;return e.modified&&(o=!0,delete e.modified),n||this.triggerRootChange(e,r,o),r}},{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(e,n,r){return(n=s.default.isEmpty(n)?{}:n).base64Upload=!this.component.isUploadEnabled,n.mediaEmbed={previewsInData:!0},n=s.default.merge(this.wysiwygDefault.ckeditor,s.default.get(this.options,"editors.ckeditor.settings",{}),n),this.component.isUploadEnabled&&n.extraPlugins.push((0,v.getFormioUploadAdapterPlugin)(this.fileService,this)),c.GlobalFormio.requireLibrary("ckeditor",A?"CKEDITOR":"ClassicEditor",s.default.get(this.options,"editors.ckeditor.src","".concat(c.GlobalFormio.cdn.ckeditor,"/ckeditor.js")),!0).then(function(){if(!e.parentNode)return a.default.reject();if(!A)return ClassicEditor.create(e,n).then(function(e){return e.model.document.on("change",function(){return r(e.data.get())}),e});var o=CKEDITOR.replace(e);return o.on("change",function(){return r(o.getData())}),a.default.resolve(o)})}},{key:"addQuill",value:function(e,n,r){var o=this;return n=s.default.isEmpty(n)?this.wysiwygDefault.quill:n,n=O(O({},n=s.default.merge(this.wysiwygDefault.quill,s.default.get(this.options,"editors.quill.settings",{}),n)),{},{modules:O({table:!0},n.modules)}),c.GlobalFormio.requireLibrary("quill-css-".concat(n.theme),"Quill",[{type:"styles",src:"".concat(c.GlobalFormio.cdn.quill,"/quill.").concat(n.theme,".css")}],!0),c.GlobalFormio.requireLibrary("quill","Quill",s.default.get(this.options,"editors.quill.src","".concat(c.GlobalFormio.cdn.quill,"/quill.min.js")),!0).then(function(){return c.GlobalFormio.requireLibrary("quill-table","Quill","".concat(c.GlobalFormio.cdn.baseUrl,"/quill/quill-table.js"),!0).then(function(){if(!e.parentNode)return a.default.reject();o.quill=new Quill(e,A?O(O({},n),{},{modules:{}}):n);var i=document.createElement("textarea");i.setAttribute("class","quill-source-code"),o.quill.addContainer("ql-custom").appendChild(i);var l=e.parentNode.querySelector(".ql-source");l&&o.addEventListener(l,"click",function(e){e.preventDefault(),"inherit"===i.style.display&&o.quill.setContents(o.quill.clipboard.convert({html:i.value})),i.style.display="none"===i.style.display?"inherit":"none"}),o.addEventListener(e,"click",function(){return o.quill.focus()});for(var s=document.querySelectorAll(".ql-formats > button"),u=0;u<s.length;u++)s[u].setAttribute("tabindex","-1");return o.quill.on("text-change",function(){i.value=o.quill.root.innerHTML,r(i)}),o.quill})})}},{key:"shouldSanitizeValue",get:function(){var e;return(null===(e=this.options)||void 0===e?void 0:e.sanitize)!==!1}},{key:"addAce",value:function(e,n,r){if(!n||"snow"===n.theme){var o=n?n.mode:"";n={},o&&(n.mode=o)}return n=s.default.merge(this.wysiwygDefault.ace,s.default.get(this.options,"editors.ace.settings",{}),n||{}),c.GlobalFormio.requireLibrary("ace","ace",s.default.get(this.options,"editors.ace.src","".concat(c.GlobalFormio.cdn.ace,"/ace.js")),!0).then(function(o){return(o=o.edit(e)).removeAllListeners("change"),o.setOptions(n),o.getSession().setMode(n.mode),o.on("change",function(){return r(o.getValue())}),n.isUseWorkerDisabled&&o.session.setUseWorker(!1),o})}},{key:"tree",get:function(){return this.component.tree||!1}},{key:"emptyValue",get:function(){return null}},{key:"hasValue",value:function(e){return!s.default.isUndefined(s.default.get(e||this.data,this.key))}},{key:"rootValue",get:function(){return this.root?this.root.data:this.data}},{key:"rootPristine",get:function(){return s.default.get(this,"root.pristine",!1)}},{key:"dataValue",get:function(){if(!this.key||!this.visible&&this.component.clearOnHide&&!this.rootPristine)return this.emptyValue;if(!this.hasValue()&&this.shouldAddDefaultValue){var e=this.component.multiple?[]:this.emptyValue;return this.rootPristine||(this.dataValue=e),e}return s.default.get(this._data,this.key)},set:function(e){if(this.allowData&&this.key&&(this.visible||!this.component.clearOnHide||this.rootPristine)){if(null!=e&&(e=this.hook("setDataValue",e,this.key,this._data)),null==e){this.unset();return}s.default.set(this._data,this.key,e)}}},{key:"splice",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasValue()){var r=this.dataValue||[];s.default.isArray(r)&&r.hasOwnProperty(e)&&(r.splice(e,1),this.dataValue=r,this.triggerChange(n))}}},{key:"unset",value:function(){s.default.unset(this._data,this.key)}},{key:"deleteValue",value:function(){this.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}},{key:"getCustomDefaultValue",value:function(e){return this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}},{key:"shouldAddDefaultValue",get:function(){return!this.options.noDefaults||this.component.defaultValue&&!this.isEmpty(this.component.defaultValue)||this.component.customDefaultValue}},{key:"defaultValue",get:function(){var e=this,n=this.emptyValue;this.component.defaultValue&&(n=this.component.defaultValue),n=this.getCustomDefaultValue(n);var r=function(n){if("string"==typeof n){if("textfield"!==e.component.type){var r=e.placeholderChar;n=(0,i.conformToMask)(n,e.defaultMask,{placeholderChar:r}).conformedValue,f.matchInputMask(n,e.defaultMask)||(n="")}}else n="";return n};return this.defaultMask&&(n=Array.isArray(n)?n.map(r):r(n)),s.default.cloneDeep(n)}},{key:"getValue",value:function(){if(!this.hasInput||this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var e=[];for(var n in this.refs.input)if(this.refs.input.hasOwnProperty(n)){if(!this.component.multiple)return this.getValueAt(n);e.push(this.getValueAt(n))}return 0!==e.length||this.component.multiple?e:""}},{key:"getValueAt",value:function(e){var n=this.performInputMapping(this.refs.input[e]);return n?n.value:void 0}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
vendor: 4,746 bytes, line 1
1,r=this.updateValue(e,n);if(e=this.dataValue,!this.hasInput)return r;var o=Array.isArray(e),i=this.refs.fileLink||this.refs.input;if(o&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&i&&i.length!==e.length&&this.visible&&this.redraw(),this.isHtmlRenderMode()&&n&&n.fromSubmission&&r)return this.redraw(),r;for(var a in this.refs.input)this.refs.input.hasOwnProperty(a)&&this.setValueAt(a,o?e[a]:e,n);return r}},{key:"setValueAt",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.noDefault||null!=n||this.component.multiple||(n=this.defaultValue);var o=this.performInputMapping(this.refs.input[e]),i=this.refs.valueMaskInput;null!=i&&i.mask&&i.mask.textMaskInputElement&&i.mask.textMaskInputElement.update(n),o.mask&&o.mask.textMaskInputElement?o.mask.textMaskInputElement.update(n):o.widget&&o.widget.setValue?o.widget.setValue(n):o.value=n}},{key:"hasSetValue",get:function(){return this.hasValue()&&!this.isEmpty(this.dataValue)}},{key:"setDefaultValue",value:function(){if(this.defaultValue&&this.shouldAddDefaultValue){var e=this.component.multiple&&!this.dataValue.length?[]:this.defaultValue;this.setValue(e,{noUpdateEvent:!0})}}},{key:"restoreValue",value:function(){this.hasSetValue?this.setValue(this.dataValue,{noUpdateEvent:!0}):this.setDefaultValue()}},{key:"normalizeValue",value:function(e){return this.component.multiple&&!Array.isArray(e)&&(e=e?[e]:[]),e}},{key:"updateComponentValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.resetValue||null!=e?e:this.getValue();r=this.normalizeValue(r,n);var o=this.dataValue,i=void 0!==r&&this.hasChanged(r,o);return i&&(this.dataValue=r,i=this.dataValue!==o,this.updateOnChange(n,i)),this.componentModal&&n&&n.fromSubmission&&this.componentModal.setValue(e),i}},{key:"updateValue",value:function(){return this.updateComponentValue.apply(this,arguments)}},{key:"getIcon",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"icon";return this.renderTemplate("icon",{className:this.iconClass(e),ref:o,styles:r,content:n})}},{key:"resetValue",value:function(){this.unset(),this.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}},{key:"hasChanged",value:function(e,n){return!(null==e&&(null==n||this.isEmpty(n)))&&(null!=e&&!!this.allowData&&!this.hasValue()||!s.default.isEqual(e,n))}},{key:"updateOnChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e.noUpdateEvent&&!!n&&(this.triggerChange(e),!0)}},{key:"convertNumberOrBoolToString",value:function(e){return"number"==typeof e||"boolean"==typeof e?e.toString():e}},{key:"doValueCalculation",value:function(e,n,r){var o;return this.evaluate(this.component.calculateValue,{value:e,data:n,row:r||this.data,submission:(null===(o=this.root)||void 0===o?void 0:o._submission)||{data:this.rootValue}},"value")}},{key:"calculateComponentValue",value:function(e,n,r){if(this.builderMode||s.default.isUndefined(s.default.get(this,"root.data")))return!1;var o=this.component.clearOnHide,i=!this.visible&&o,a=s.default.get(this.component,"allowCalculateOverride",!1);if(i)return this.hasOwnProperty("calculatedValue")&&a&&s.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||n.dataSourceInitialLoading&&a||this.options.readOnly&&this.options.pdf&&a&&s.default.get(this.root,"submission._id",!1))return!1;var l=this.dataValue,u=this.doValueCalculation(l,e,r,n);if(this.options.readOnly&&l&&!u)return!1;s.default.isNil(u)&&(u=this.emptyValue);var c=!s.default.isEqual(l,u);if(a){var d=n.fromSubmission&&!0===this.component.persistent;if(this.isEmpty(l))this.calculationLocked=!1;else if(this.calculationLocked||d)return this.calculationLocked=!0,!1;var p=void 0===this.calculatedValue||n.resetValue;p&&(this.calculatedValue=null);var h=this.normalizeValue(this.convertNumberOrBoolToString(u)),y=this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue)),m=this.normalizeValue(this.convertNumberOrBoolToString(l)),v=!s.default.isEqual(y,h),b=!s.default.isEqual(m,y);if(v&&b&&!p)return!1;if(y&&b&&!v)return this.calculatedValue=null,!1;if(n.isReordered||!v)return!1;if(d)return this.calculatedValue=(0,f.fastCloneDeep)(u),!1;if(p&&!this.isEmpty(l)&&c&&v)return!0}return this.calculatedValue=(0,f.fastCloneDeep)(u),!!c&&(n.noPristineChangeOnModified||(this.pristine=!1),n.triggeredComponentId=this.id,this.setValue(u,n))}},{key:"calculateValue",value:function(e,n,r){return e=e||this.root
1Value,n=n||{},r=r||this.data,this.calculateComponentValue(e,n,r)}},{key:"label",get:function(){return this.component.label},set:function(e){this.component.label=e,this.labelElement&&(this.labelElement.innerText=e)}},{key:"getRoot",value:function(){return this.root}},{key:"invalidMessage",value:function(e,n,r,o){return r||this.checkCondition(o,e)?this.invalid?this.invalid:this.hasInput&&(n||!this.pristine)?s.default.map(d.default.checkComponent(this,e),"message").join("\n\n"):"":""}},{key:"isValid",value:function(e,n){return!this.invalidMessage(e,n)}},{key:"setComponentValidity",value:function(e,n,r){var o=!!e.filter(function(e){return"error"===e.level&&!e.fromServer}).length;return e.length&&(!r||this.error)&&(!this.isEmpty(this.defaultValue)||n||!this.pristine)?this.setCustomValidity(e,n):r||this.setCustomValidity(""),!o}},{key:"checkComponentValidity",value:function(e,n,r){var o,i=this,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=e||this.rootValue,r=r||this.data;var s=l.async,u=void 0!==s&&s,c=l.silentCheck,f=void 0!==c&&c;if(this.shouldSkipValidation(e,n,r))return this.setCustomValidity(""),!u||a.default.resolve(!0);var p=d.default.checkComponent(this,e,r,!0,u),h=p;return null!==(o=this.serverErrors)&&void 0!==o&&o.length&&(h=p.concat(this.serverErrors)),u?h.then(function(e){return i.setComponentValidity(e,n,f)}):this.setComponentValidity(h,n,f)}}
1,{key:"checkValidity",value:function(e,n,r,o){e=e||this.rootValue,r=r||this.data;var i=this.checkComponentValidity(e,n,r,{silentCheck:o});return this.checkModal(),i}},{key:"checkAsyncValidity",value:function(e,n,r,o){return a.default.resolve(this.checkComponentValidity(e,n,r,{async:!0,silentCheck:o}))}},{key:"checkData",value:function(e,n,r){if(e=e||this.rootValue,n=n||{},r=r||this.data,this.resetCaches(),n.fromBlur||this.checkRefreshOn(n.changes,n),n.noCheck)return!0;if(this.checkComponentConditions(e,n,r),this.id!==n.triggeredComponentId&&this.calculateComponentValue(e,n,r),n.noValidate&&!n.validateOnInit&&!n.fromIframe)return n.fromSubmission&&this.rootPristine&&this.pristine&&this.error&&n.changed&&this.checkComponentValidity(e,!!this.options.alwaysDirty,r,!0),!0;var o=!1;if((this.options.alwaysDirty||n.dirty)&&(o=!0),n.fromSubmission&&this.hasValue(e)&&(o=!0),this.setDirty(o),"blur"===this.component.validateOn&&n.fromSubmission)return!0;var i=this.checkComponentValidity(e,o,r,n);return this.checkModal(),i}},{key:"checkModal",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.component.modalEdit&&this.componentModal&&(n&&!e?this.setErrorClasses([this.refs.openModal],n,!e,!!this.errors.length,this.refs.openModalWrapper):this.clearErrorClasses(this.refs.openModalWrapper))}},{key:"validationValue",get:function(){return this.dataValue}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,n=!!s.default.isArray(e)&&1===e.length&&s.default.isEqual(e[0],this.emptyValue);return null==e||0===e.length||s.default.isEqual(e,this.emptyValue)||n}},{key:"isEqual",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(e)&&this.isEmpty(n)||s.default.isEqual(e,n)}},{key:"validateMultiple",value:function(){return!0}},{key:"errors",get:function(){return this.error?[this.error]:[]}},{key:"clearErrorClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;this.removeClass(e,this.options.componentErrorClass),this.removeClass(e,"alert alert-danger"),this.removeClass(e,"has-error"),this.removeClass(e,"has-message")}},{key:"setInputWidgetErrorClasses",value:function(e,n){this.isInputComponent&&this.component.widget&&null!=e&&e.length&&e.forEach(function(e){null!=e&&e.widget&&e.widget.setErrorClasses&&e.widget.setErrorClasses(n)})}},{key:"addFocusBlurEvents",value:function(e){var n=this;this.addEventListener(e,"focus",function(){n.root.focusedComponent!==n?(n.root.pendingBlur&&n.root.pendingBlur(),n.root.focusedComponent=n,n.emit("focus",n)):n.root.focusedComponent===n&&n.root.pendingBlur&&(n.root.pendingBlur.cancel(),n.root.pendingBlur=null)}),this.addEventListener(e,"blur",function(){n.root.pendingBlur=f.delay(function(){n.emit("blur",n),"blur"===n.component.validateOn&&n.root.triggerChange({fromBlur:!0},{instance:n,component:n.component,value:n.dataValue,flags:{fromBlur:!0}}),n.root.focusedComponent=null,n.root.pendingBlur=null})})}},{key:"setCustomValidity",value:function(e,n,r){var o=this,i=this.isInputComponent?this.refs.input||[]:null;"string"==typeof e&&e&&(e={level:"error",message:e}),Array.isArray(e)||(e=e?[e]:[]);var a=!!e.filter(function(e){return"error"===e.level}).length,l=i;if(this.component.multiple){var s=Array.from(i);s.forEach(function(e){o.setElementInvalid(o.performInputMapping(e),!1)}),this.setInputWidgetErrorClasses(s,!1),l=s.filter(function(n){var r,o;return null===(r=(o=e).some)||void 0===r?void 0:r.call(o,function(e){var r;return(null==e?void 0:null===(r=e.context)||void 0===r?void 0:r.input)===n})})}e.length?(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.error={component:this.component,message:e[0].message,messages:e,external:!!r},this.emit("componentError",this.error),this.addMessages(e,n,l),l&&this.setErrorClasses(l,n,a,!!e.length)):(!this.error||this.error&&!!r===this.error.external)&&(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.refs.modalMessageContainer&&this.empty(this.refs.modalMessageContainer),this.error=null,l&&this.setErrorClasses(l,n,a,!!e.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(e,n,r){var o=this,i=(this.component||{}
vendor: 5,514 bytes, line 1
1).validateWhenHidden,a=void 0!==i&&i;return[function(){return o.options.readOnly},function(){return!o.hasInput},function(){return o.isValueHidden()},function(){return!o.visible&&!a},function(){return!o.checkCondition(r,e)&&!a}].some(function(e){return e()})}},{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 a.default.resolve()}},{key:"asString",value:function(e){return(Array.isArray(e=e||this.getValue())?e:[e]).map(s.default.toString).join(", ")}},{key:"disabled",get:function(){return this._disabled||this.parentDisabled},set:function(e){this._disabled=e}},{key:"setDisabled",value:function(e,n){e&&(e.disabled=n,n?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"))}},{key:"setLoading",value:function(e,n){e&&e.loading!==n&&(e.loading=n,!e.loader&&n&&(e.loader=this.ce("i",{class:"".concat(this.iconClass("refresh",!0)," button-icon-right")})),e.loader&&(n?this.appendTo(e.loader,e):this.removeChildFrom(e.loader,e)))}},{key:"selectOptions",value:function(e,n,r,o){var i=this;s.default.each(r,function(n){var r={value:n.value};void 0!==o&&n.value===o&&(r.selected="selected");var a=i.ce("option",r);a.appendChild(i.text(n.label)),e.appendChild(a)})}},{key:"setSelectValue",value:function(e,n){var r=e.querySelectorAll("option");s.default.each(r,function(e){e.value===n?e.setAttribute("selected","selected"):e.removeAttribute("selected")}),e.onchange&&e.onchange(),e.onselect&&e.onselect()}},{key:"getRelativePath",value:function(e){var n=".".concat(this.key),r=this.isInputComponent?this.path:this.path.slice(0).replace(n,"");return e.replace(r,"")}},{key:"clear",value:function(){this.detach(),this.empty(this.getElement())}},{key:"append",value:function(e){this.appendTo(e,this.element)}},{key:"prepend",value:function(e){this.prependTo(e,this.element)}},{key:"removeChild",value:function(e){this.removeChildFrom(e,this.element)}},{key:"detachLogic",value:function(){var e=this;this.logic.forEach(function(n){if("event"===n.trigger.type){var r=e.interpolate(n.trigger.event);e.off(r)}})}},{key:"attachLogic",value:function(){var e=this;this.builderMode||this.logic.forEach(function(n){if("event"===n.trigger.type){var r=e.interpolate(n.trigger.event);e.on(r,function(){for(var r=(0,f.fastCloneDeep)(e.originalComponent),o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];if(e.applyActions(r,n.actions,i)&&!s.default.isEqual(e.component,r)){e.component=r;var l=e.conditionallyVisible(null,null),u=e.shouldDisabled;e.visible!==l&&(e.visible=l),e.disabled!==u&&(e.disabled=u),e.redraw()}},!0)}})}},{key:"elementInfo",value:function(){var e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder,{_userInput:!0})),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),s.default.defaults(e,this.component.attributes),{type:"input",component:this.component,changeEvent:"change",attr:e}}},{key:"autofocus",value:function(){var e=this;!this.component.autofocus||this.builderMode||this.options.preview||this.on("render",function(){return e.focus()},!0)}},{key:"scrollIntoView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element,n=arguments.length>1?arguments[1]:void 0;if(e){var r=e.getBoundingClientRect(),o=r.left,i=r.top;window.scrollTo(n?window.scrollX:o+window.scrollX,i+window.scrollY)}}},{key:"focus",value:function(e){var n;if("beforeFocus"in this.parent&&this.parent.beforeFocus(this),null!==(n=this.refs.input)&&void 0!==n&&n.length){var r,o="number"==typeof e&&this.refs.input[e]?this.refs.input[e]:this.refs.input[this.refs.input.length-1];if((null===(r=this.component.widget)||void 0===r?void 0:r.type)==="calendar"){var i=o.nextSibling;i&&i.focus()}else o.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 e=new c.GlobalFormio;return this.root&&this.root._form&&this.root._form._id&&(e.formUrl="".concat(e.projectUrl,"/form/").concat(this.root._form._id)),e}},{key:"resetCaches",value:function(){}},{key:"previewMode",get:function(){return!1}}],p=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return s.default.merge.apply(s.default,[{input:!0,key:"",placeholder:"",prefix:"",customClass:"",suffix:"",multiple:!1,defaultValue:null,protected:!1,unique:!1,persistent:!0,hidden:!1,clearOnHide:!0,refreshOn:"",redrawOn:"",tableView:!1,modalEdit:!1,label:"",dataGridLabel:!1,labelPosition:"top",description:"",errorLabel:"",tooltip:"",hideLabel:!1,tabindex:"",disabled:!1,autofocus:!1,dbIndex:!1,customDefaultValue:"",calculateValue:"",calculateServer:!1,widget:null,attributes:{},validateOn:"change",validate:{required:!1,custom:"",customPrivate:!1,strictDateValidation:!1,multiple:!1,unique:!1},conditional:{show:null,when:null,eq:""},overlay:{style:"",left:"",top:"",width:"",height:""},allowCalculateOverride:!1,encrypted:!1,showCharCount:!1,showWordCount:!1,properties:{},allowMultipleMasks:!1,addons:[]}].concat(n))}},{key:"Validator",get:function(){return d.default}}
vendor: 9,691 bytes, line 1
1,{key:"conditionOperatorsSettings",get:function(){return{operators:["isEqual","isNotEqual","isEmpty","isNotEmpty"],valueComponent:function(){return{type:"textfield",widget:{type:"input"}}}}}},{key:"savedValueTypes",value:function(e){return e=e||{},f.getComponentSavedTypes(e)||[f.componentValueTypes.any]}},{key:"tableView",value:function(e,n){}},{key:"serverConditionSettings",get:function(){return w.conditionOperatorsSettings}}],r&&C(w.prototype,r),p&&C(w,p),Object.defineProperty(w,"prototype",{writable:!1}),w}(p.default);n.default=V,V.externalLibraries={},V.requireLibrary=function(e,n,r,o){if(!V.externalLibraries.hasOwnProperty(e)){V.externalLibraries[e]={},V.externalLibraries[e].ready=new a.default(function(n,r){V.externalLibraries[e].resolve=n,V.externalLibraries[e].reject=r});var i="".concat(e,"Callback");o||window[i]||(window[i]=(function(){this.resolve()}).bind(V.externalLibraries[e]));var l=s.default.get(window,n);l?V.externalLibraries[e].resolve(l):((r=Array.isArray(r)?r:[r]).forEach(function(e){var n={},r="";switch("string"==typeof e&&(e={type:"script",src:e}),e.type){case"script":r="script",n={src:e.src,type:"text/javascript",defer:!0,async:!0};break;case"styles":r="link",n={href:e.src,rel:"stylesheet"}}var o=document.createElement(r);for(var i in n)o.setAttribute(i,n[i]);document.getElementsByTagName("head")[0].appendChild(o)}),o&&setTimeout(function r(){var o=s.default.get(window,n);o?V.externalLibraries[e].resolve(o):setTimeout(r,200)},200))}return V.externalLibraries[e].ready},V.libraryReady=function(e){return V.externalLibraries.hasOwnProperty(e)&&V.externalLibraries[e].ready?V.externalLibraries[e].ready:a.default.reject("".concat(e," library was not required."))}},64391:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{weight:0,type:"textfield",input:!0,key:"key",label:"Property Name",tooltip:"The name of this field in the API endpoint.",validate:{pattern:"(\\w|\\w[\\w-.]*\\w)",patternMessage:"The property name must only contain alphanumeric characters, underscores, dots and dashes and should not be ended by dash or dot.",required:!0}},{weight:100,type:"tags",input:!0,label:"Field Tags",storeas:"array",tooltip:"Tag the field for use in custom logic.",key:"tags"},{weight:200,type:"datamap",label:"Custom Properties",tooltip:"This allows you to configure any custom properties for this component.",key:"properties",valueComponent:{type:"textfield",key:"value",label:"Value",placeholder:"Value",input:!0}}]},74210:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(16700))&&o.__esModule?o:{default:o},a=r(38163),l=[{type:"panel",title:"Simple",key:"simple-conditional",theme:"default",weight:105,components:[{type:"select",input:!0,label:"This component should Display:",key:"conditional.show",dataSrc:"values",data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]}},{type:"select",input:!0,label:"When the form component:",key:"conditional.when",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){return(0,a.getContextComponents)(e)}}},{type:"textfield",input:!0,label:"Has the value:",key:"conditional.eq"}]},i.default.javaScriptValue("Advanced Conditions","customConditional","conditional.json",110,"<p>You must assign the <strong>show</strong> variable a boolean result.</p><p><strong>Note: Advanced Conditional logic will override the results of the Simple Conditional logic.</strong></p><h5>Example</h5><pre>show = !!data.showMe;</pre>",'<p><a href="http://formio.github.io/formio.js/app/examples/conditions.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>')];n.default=l},32783:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(16700))&&o.__esModule?o:{default:o},a=[{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 [email protected] 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(e){var n=[];return n.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,function(r,o){r.key!==e.data.key&&n.push({label:r.label||r.key,value:o})}),n}},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,'<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>','<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),i.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",1100,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>',"<tr><th>token</th><td>The decoded JWT token for the authenticated user.</td></tr>"),{type:"checkbox",input:!0,weight:1100,key:"calculateServer",label:"Calculate Value on server",tooltip:"Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server."},{type:"checkbox",input:!0,weight:1200,key:"allowCalculateOverride",label:"Allow Manual Override of Calculated Value",tooltip:"When checked, this will allow the user to manually override the calculated value."}];n.default=a},80218:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(14483),n.default=[{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field that will appear next to it.",validate:{required:!0},autofocus:!0},{type:"select",input:!0,key:"labelPosition",label:"Label Position",tooltip:"Position for the label for this field.",weight:20,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left (Left-aligned)",value:"left-left"},{label:"Left (Right-aligned)",value:"left-right"},{label:"Right (Left-aligned)",value:"right-left"},{label:"Right (Right-aligned)",value:"right-right"},{label:"Bottom",value:"bottom"}]}},{type:"number",input:!0,key:"labelWidth",label:"Label Width",tooltip:"The width of label on line in percentages.",clearOnHide:!1,weight:30,placeholder:"30",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{type:"number",input:!0,key:"labelMargin",label:"Label Margin",tooltip:"The width of label margin on line in percentages.",clearOnHide:!1,weight:30,placeholder:"3",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{weight:100,type:"textfield",input:!0,key:"placeholder",label:"Placeholder",placeholder:"Placeholder",tooltip:"The placeholder text that will appear when this field is empty."},{weight:200,type:"textarea",input:!0,key:"description",label:"Description",placeholder:"Description for this field.",tooltip:"The description is text that will appear below the input field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:300,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:500,type:"textfield",input:!0,key:"customClass",label:"Custom CSS Class",placeholder:"Custom CSS Class",tooltip:"
1Custom CSS class to add to this component."},{weight:600,type:"textfield",input:!0,key:"tabindex",label:"Tab Index",placeholder:"0",tooltip:"Sets the tabindex attribute of this component to override the tab order of the form. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex'>MDN documentation</a> on tabindex for more information."},{weight:1100,type:"checkbox",label:"Hidden",tooltip:"A hidden field is still a part of the form, but is hidden from view.",key:"hidden",input:!0},{weight:1200,type:"checkbox",label:"Hide Label",tooltip:"Hide the label (title, if no label) of this component. This allows you to show the label in the form builder, but not when it is rendered.",key:"hideLabel",input:!0},{weight:1350,type:"checkbox",label:"Initial Focus",tooltip:"Make this field the initially focused element on this form.",key:"autofocus",input:!0},{weight:1370,type:"checkbox",label:"Show Label in DataGrid",tooltip:"Show the label inside each row when in a Datagrid.",key:"dataGridLabel",input:!0,customConditional:function(e){var n,r;return null===(n=e.instance.options)||void 0===n?void 0:null===(r=n.flags)||void 0===r?void 0:r.inDataGrid}},{weight:1400,type:"checkbox",label:"Disabled",tooltip:"Disable the form input.",key:"disabled",input:!0},{weight:1500,type:"checkbox",label:"Table View",tooltip:"Shows this value within the table view of the submissions.",key:"tableView",input:!0},{weight:1600,type:"checkbox",label:"Modal Edit",tooltip:"Opens up a modal to edit the value of this component.",key:"modalEdit",input:!0}]},22446:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.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)."}]}]},88034:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(66334);var o,i=(o=r(16700))&&o.__esModule?o:{default:o},a=r(38163),l=[{weight:0,input:!0,label:"Advanced Logic",key:"logic",templates:{header:'<div class="row"> \n  <div class="col-sm-6">\n    <strong>{{ value.length }} {{ ctx.t("Advanced Logic Configured") }}</strong>\n  </div>\n</div>',row:'<div class="row"> \n  <div class="col-sm-6">\n    <div>{{ row.name }} </div>\n  </div>\n  <div class="col-sm-2"> \n    <div class="btn-group pull-right"> \n      <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n      <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n    </div> \n  </div> \n</div>',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:"<span>{{ item.label }}</span>",type:"select"},{weight:10,label:"",key:"simple",type:"container",tableView:!1,customConditional:function(e){return"simple"===e.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(e){return(0,a.getContextComponents)(e)}}}
vendor: 10,151 bytes, line 1
1,{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(e){return"javascript"===e.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(e){return"json"===e.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(e){return"event"===e.row.type}}],key:"trigger",type:"container"}],type:"panel"},{weight:20,input:!0,label:"Actions",key:"actions",tableView:!1,templates:{header:'<div class="row"> \n  <div class="col-sm-6"><strong>{{ value.length }} {{ ctx.t("actions") }}</strong></div>\n</div>',row:'<div class="row"> \n  <div class="col-sm-6">\n    <div>{{ row.name }} </div>\n  </div>\n  <div class="col-sm-2"> \n    <div class="btn-group pull-right"> \n      <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n      <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n    </div> \n  </div> \n</div>',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:"<span>{{ item.label }}</span>",type:"select"},{weight:20,type:"select",template:"<span>{{ item.label }}</span>",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(e){return"property"===e.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:"<span>{{ item.label }}</span>",type:"select",customConditional:function(e){var n=e.row;return"property"===n.type&&n.hasOwnProperty("property")&&"boolean"===n.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(e){var n=e.row;return"property"===n.type&&n.hasOwnProperty("property")&&"string"===n.property.type&&!n.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(e){return"value"===e.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(e){return"mergeComponentSchema"===e.row.type}},Object.assign(i.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{customConditional:function(e){return"customAction"===e.row.type}}),{weight:20,input:!0,label:"Custom Action (Javascript)",key:"customAction",editor:"ace",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,customConditional:function(e){return"customAction"===e.row.type}}]}]}]}];n.default=l},92057:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(16700)),i=a(r(62277));function a(e){return e&&e.__esModule?e:{default:e}}var l=[{weight:10,type:"checkbox",label:"Required",tooltip:"A required field must be filled in before the form can be submitted.",key:"validate.required",input:!0},{weight:100,type:"checkbox",label:"Unique",tooltip:"Makes sure the data submitted for this field is unique, and has not been submitted before.",key:"unique",input:!0},{weight:100,type:"checkbox",label:"Validate When Hidden",tooltip:"Validates the component when it is hidden/conditionally hidden. Vaildation errors are displayed in the error alert on the form submission.",key:"validateWhenHidden",input:!0},{weight:0,type:"select",key:"validateOn",defaultValue:"change",input:!0,label:"Validate On",tooltip:"Determines when this component should trigger front-end validation.",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]}},{weight:190,type:"textfield",input:!0,key:"errorLabel",label:"Error Label",placeholder:"Error Label",tooltip:"The label for this field when an error occurs."},{weight:200,key:"validate.customMessage",label:"Custom Error Message",placeholder:"Custom Error Message",type:"textfield",tooltip:"Error message displayed if any error occurred.",input:!0},{type:"panel",title:"Custom Validation",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"custom-validation-js",weight:300,customConditional:function(){return!i.default.noeval||i.default.protectedEval},components:[o.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{type:"textarea",key:"validate.custom",rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"\n          <small>\n            <p>Enter custom validation code.</p>\n            <p>You must assign the <strong>valid</strong> variable as either <strong>true</strong> or an error message if validation fails.</p>\n            <h5>Example:</h5>\n            <pre>valid = (input === 'Joe') ? true : 'Your name must be \"Joe\"';</pre>\n          </small>"},{type:"well",components:[{weight:100,type:"checkbox",label:"Secret Validation",tooltip:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",description:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",key:"validate.customPrivate",input:!0}]}]},{type:"panel",title:"JSONLogic Validation",collapsible:!0,collapsed:!0,key:"json-validation-json",weight:400,components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank" rel="noopener noreferrer">JSONLogic</a>.</p><h5>Example:</h5><pre>'+JSON.stringify({if:[{"===":[{var:"input"},"Bob"]},!0,"Your name must be 'Bob'!"]},null,2)+"</pre>"},{type:"textarea",key:"validate.json",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0}]},{type:"panel",title:"Custom Errors",collapsible:!0,collapsed:!0,key:"errors",weight:400,components:[{type:"textarea",key:"errors",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0},{type:"htmlelement",tag:"div",content:'\n          <p>This allows you to set different custom error messages for different errors\n          (in contrast to “Custom Error Message”, which only allows you to set one\n          error message for all errors). E.g.</p>\n\n<pre>{\n  "required": "{<span/>{ field }} is required. Try again.",\n  "maxLength": "{<span/>{ field }} is too long. Try again."\n}</pre>\n\n          <p>You can set the following keys (among others):</p>\n          <ul>\n            <li>r<span/>equired</li>\n            <li>m<span/>in</li>\n            <li>m<span/>ax</li>\n            <li>m<span/>inLength</li>\n            <li>m<span/>axLength</li>\n            <li>m<span/>inWords</li>\n            <li>m<span/>axWords</li>\n            <li>i<span/>nvalid_email</li>\n            <li>i<span/>nvalid_date</li>\n            <li>i<span/>nvalid_day</li>\n            <li>i<span/>nvalid_regex</li>\n            <li>m<span/>ask</li>\n            <li>p<span/>attern</li>\n            <li>c<span/>ustom</li>\n          </ul>\n\n          <p>Depending on the error message some of the following template variables can be used in the script:</p>\n          <ul>\n           <li><code>{<span/>{ f<span/>ield }}</code> is replaced with the label of the field.</li>\n           <li><code>{<span/>{ m<span/>in }}</code></li>\n           <li><code>{<span/>{ m<span/>ax }}</code></li>\n           <li><code>{<span/>{ l<span/>ength }}</code></li>\n           <li><code>{<span/>{ p<span/>attern }}</code></li>\n           <li><code>{<span/>{ m<span/>inDate }}</code></li>\n           <li><code>{<span/>{ m<span/>axDate }}</code></li>\n           <li><code>{<span/>{ m<span/>inYear }}</code></li>\n           <li><code>{<span/>{ m<span/>axYear }}</code></li>\n           <li><code>{<span/>{ r<span/>egex }}</code></li>\n          </ul>\n        '}]}];n.default=l},16700:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(48510),r(37753),r(41967);var o=a(r(2890)),i=a(r(62277));
1function a(e){return e&&e.__esModule?e:{default:e}}var l={sortAndFilterComponents:function(e){return o.default.filter(o.default.sortBy(e,"weight"),function(e){return!e.ignore})},unifyComponents:function(e,n){return e.key&&n.key?!e.skipMerge&&!n.skipMerge&&e.key===n.key&&(o.default.each(e,function(r,o){(e.overrideEditForm||!n.hasOwnProperty(o))&&(n[o]=r)}),o.default.each(n,function(r,o){(n.overrideEditForm||!e.hasOwnProperty(o))&&(e[o]=r)}),e.components&&(n.components=l.sortAndFilterComponents(o.default.unionWith(e.components,n.components,l.unifyComponents))),!0):o.default.isEqual(e,n)},logicVariablesTable:function(e){return{type:"htmlelement",tag:"div",content:'<p>The following variables are available in all scripts.</p><table class="table table-bordered table-condensed table-striped">'+(e=e||"")+'<tr><th>form</th><td>The complete form JSON object</td></tr><tr><th>submission</th><td>The complete submission object.</td></tr><tr><th>data</th><td>The complete submission data object.</td></tr><tr><th>row</th><td>Contextual "row" data, used within DataGrid, EditGrid, and Container components</td></tr><tr><th>component</th><td>The current component JSON</td></tr><tr><th>instance</th><td>The current component instance.</td></tr><tr><th>value</th><td>The current value of the component.</td></tr><tr><th>moment</th><td>The moment.js library for date manipulation.</td></tr><tr><th>_</th><td>An instance of <a href="https://lodash.com/docs/" target="_blank" rel="noopener noreferrer">Lodash</a>.</td></tr><tr><th>utils</th><td>An instance of the <a href="http://formio.github.io/formio.js/docs/identifiers.html#utils" target="_blank" rel="noopener noreferrer">FormioUtils</a> object.</td></tr><tr><th>util</th><td>An alias for "utils".</td></tr></table><br/>'}},javaScriptValue:function(e,n,r,o,a,l){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",u=arguments.length>7?arguments[7]:void 0,c=[this.logicVariablesTable(s),{type:"panel",title:"JavaScript",collapsible:!0,collapsed:!1,style:{"margin-bottom":"10px"},key:"".concat(n,"-js"),customConditional:function(){return!i.default.noeval||i.default.protectedEval},components:[{type:"textarea",key:n,rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"<p>Enter custom javascript code.</p>".concat(a)}]},{type:"panel",title:"JSONLogic",collapsible:!0,collapsed:!0,key:"".concat(n,"-json"),components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank" rel="noopener noreferrer">JSONLogic</a>.</p><p>Full <a href="https://lodash.com/docs" target="_blank" rel="noopener noreferrer">Lodash</a> support is provided using an "_" before each operation, such as <code>{"_sum": {var: "data.a"}}</code></p>'+l},{type:"textarea",key:r,rows:5,editor:"ace",hideLabel:!0,as:"json",input:!0}]}];return u&&c.splice(2,1),{type:"panel",title:e,theme:"default",collapsible:!0,collapsed:!0,key:"".concat(n,"Panel"),weight:o,components:c}}};n.default=l},40411:function(e,n,r){"use strict";r(64652),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(56613),r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o,i=(o=r(2890))&&o.__esModule?o:{default:o},a=r(38163);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function u(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=f(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEac
vendor: 7,184 bytes, line 1
1h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}var d=function(){var e,n;function r(e,n,o,i){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r),this.isOpened=o,this.component=e,this.element=n,this.currentValue=(0,a.fastCloneDeep)(null!=i?i:this.component.getValue()),this.dataLoaded=!1,this.init()}return e=[{key:"refs",get:function(){return this.component.refs}},{key:"init",value:function(){var e=this;this.openModalListener=this.openModalHandler.bind(this),this.showDialogListener=function(n){e.isValueChanged()&&!e.component.disabled?e.showDialog():e.closeModalHandler(n)},this.closeModalListener=this.closeModalHandler.bind(this),this.saveModalListener=this.saveModalValueHandler.bind(this),this.closeDialogListener=this.closeDialog.bind(this),this.saveDialogListener=this.saveDialog.bind(this),this.loadRefs()}},{key:"setValue",value:function(e){this.dataLoaded&&this.currentValue===e||(this.currentValue=(0,a.fastCloneDeep)(e),this.dataLoaded=!0,this.updateView())}},{key:"setOpenModalElement",value:function(e){var n;null!==(n=this.component)&&void 0!==n&&n.visible&&(this.openModalTemplate=e,this.component.setContent(this.refs.openModalWrapper,e),this.loadRefs(),this.setEventListeners(),this.isOpened&&(this.refs.modalWrapper.classList.add("formio-dialog-disabled-animation"),this.openModal()))}},{key:"templateRefs",get:function(){return{modalOverlay:"single",modalContents:"single",modalClose:"single",openModalWrapper:"single",openModal:"single",modalSave:"single",modalWrapper:"single"}}},{key:"loadRefs",value:function(){this.component.loadRefs(this.element,this.templateRefs)}},{key:"removeEventListeners",value:function(){this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.removeEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.removeEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.removeEventListener(this.refs.modalSave,"click",this.saveModalListener)}},{key:"setEventListeners",value:function(){this.removeEventListeners(),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener),this.component.addEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.addEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.addEventListener(this.refs.modalSave,"click",this.saveModalListener)}},{key:"isValueChanged",value:function(){var e=this.component.getValue(),n=this.currentValue;return e&&e.data&&e.metadata&&(e=this.component.getValue().data,n=this.currentValue.data),!i.default.isEqual((0,a.fastCloneDeep)(e),n)}},{key:"setOpenEventListener",value:function(){var e;this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.loadRefs(null!==(e=this.refs.openModalWrapper)&&void 0!==e?e:this.element,{openModal:"single"}),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener)}},{key:"openModalHandler",value:function(e){e.preventDefault(),this.openModal()}},{key:"positionOverElement",value:function(){var e=this.element.getBoundingClientRect().top-this.refs.modalContents.getBoundingClientRect().height-10;e=e>0?e:10,this.refs.modalWrapper.style.paddingTop="".concat(e,"px")}},{key:"openModal",value:function(){this.isOpened=!0,this.refs.modalWrapper.classList.remove("component-rendering-hidden"),"signature"===this.component.component.type&&this.positionOverElement()}},{key:"updateView",value:function(){var e=i.default.isEqual(this.currentValue,this.component.defaultValue)?this.openModalTemplate:this.component.getModalPreviewTemplate();this.component.setContent(this.refs.openModalWrapper,e),this.setOpenEventListener()}},{key:"closeModal",value:function(){this.refs.modalWrapper.classList.remove("formio-dialog-disabled-animation"),this.refs.modalWrapper.classList.add("component-rendering-hidden"),this.isOpened=!1,this.updateView()}},{key:"closeModalHandler",value:function(e){e.preventDefault(),this.component.disabled||this.component.setValue(i.default.cloneDeep(this.currentValue),{resetValue:!0}),this.closeModal()}},{key:"showDialog",value:function(){this.dialogElement=this.component.ce("div");var e='\n      <h3 ref="dialogHeader">'.concat(this.component.t("Do you want to clear changes?"),'</h3>\n      <div style="display:flex; justify-content: flex-end;">\n        <button ref="dialogCancelButton" class="btn btn-secondary">').concat(this.component.t("Cancel"),'</button>\n        <button ref="dialogYesButton" class="btn btn-danger">').concat(this.component.t("Yes, delete it"),"</button>\n      </div>\n    ");this.dialogElement.innerHTML=e,this.dialogElement.refs={},this.component.loadRefs.call(this.dialogElement,this.dialogElement,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"}),this.dialog=this.component.createModal(this.dialogElement),this.component.addEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.addEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}},{key:"closeDialog",value:function(e){e.preventDefault(),this.dialog.close(),this.component.removeEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.removeEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}},{key:"saveDialog",value:function(e){this.closeDialog(e),this.closeModalHandler(e)}},{key:"saveModalValueHandler",value:function(e){var n;e.preventDefault(),this.currentValue=(0,a.fastCloneDeep)(null!==(n=this.component.dataValue)&&void 0!==n?n:this.component.getValue()),this.closeModal()}}],n=[{key:"render",value:function(e,n,r){var o=e.renderTemplate("component",n,r);return e.renderTemplate("componentModal",u(u({},n),{},{children:o}))}}],e&&c(r.prototype,e),n&&c(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.default=d},32802:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?i(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=s(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}function s(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=f(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var d,p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(d,e);var n,r,i,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(d);if(n){var i=f(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),s.apply(this,arguments)}return r=[{key:"render",value:function(e){return this.noField?u(f(d.prototype),"render",this).call(this,e):this.isAdvancedLabel||this.options.condensedMode?u(f(d.prototype),"render",this).call(this,this.renderTemplate("field",a(a({},this.getLabelInfo(this.options.condensedMode)),{},{labelMarkup:this.renderTemplate("label"),element:e}),"align")):u(f(d.prototype),"render",this).call(this,this.renderTemplate("field",{labelMarkup:this.renderTemplate("label"),element:e}))}},{key:"saveCaretPosition",value:function(e,n){var r,o;if((null===(r=this.root)||void 0===r?void 0:null===(o=r.focusedComponent)||void 0===o?void 0:o.path)===this.path)try{this.root.currentSelection={selection:[e.selectionStart,e.selectionEnd],index:n}}catch(e){e instanceof DOMException||console.debug(e)}}}],l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(((d=r(35849))&&d.__esModule?d:{default:d}).default);n.default=p},95306:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(889
110),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(56613),r(3616),r(20680),r(97599),r(37753),r(789),r(88754),r(71287),r(31490),r(67998),r(43053),r(65813);var i=c(r(2627)),a=r(38163),l=c(r(34596)),s=c(r(32780)),u=c(r(2890));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=y(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(v,e);var n,r,c,m=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(v);if(n){var i=y(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function v(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,v),(o=m.call(this,e,n,r)).triggerUpdateValueAt=u.default.debounce(o.updateValueAt.bind(h(o)),100),o}return r=[{key:"inputInfo",get:function(){var e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return("builder"===this.options.attachMode||this.options.building||u.default.get(this.root,"form.settings.disableAutocomplete"))&&(e.autocomplete=this.autocompleteDisableAttrName),this.component.inputMode&&(e.inputmode=this.component.inputMode),this.component.placeholder&&(e.placeholder=this.getFormattedAttribute(this.component.placeholder)),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),this.component.autocomplete&&(e.autocomplete=this.component.autocomplete),u.default.defaults(e,this.component.attributes),{id:this.key,type:"input",changeEvent:"input",content:"",attr:e}}},{key:"autocompleteDisableAttrName",get:function(){return"off"}},{key:"maskOptions",get:function(){return u.default.map(this.component.inputMasks,function(e){return{label:e.label,value:e.label}})}},{key:"isMultipleMasksField",get:function(){return this.component.allowMultipleMasks&&!!this.component.inputMasks&&!!this.component.inputMasks.length}},{key:"getMaskByName",value:function(e){var n=u.default.find(this.component.inputMasks,function(n){return n.label===e});return n?n.mask:void 0}},{key:"setInputMask",value:function(e,n){var r=n||this.component.displayMask||this.component.inputMask;return d(y(v.prototype),"setInputMask",this).call(this,e,r,!this.component.placeholder)}},{key:"getMaskOptions",value:function(){return this.component.inputMasks.map(function(e){return{label:e.label,value:e.label}})}},{key:"getWordCount",value:function(e){return e?e.trim().split(/\s+/).length:0}},{key:"remainingWords",get:function(){return u.default.parseInt(u.default.get(this.component,"validate.maxWords"),10)-this.getWordCount(this.dataValue)}},{key:"prefix",get:function(){return this.component.prefix}},{key:"suffix",get:function(){if(this.component.widget&&"calendar"===this.component.widget.type){var e=this.renderTemplate("icon",{ref:"icon",className:this.iconClass(this.component.enableDate||this.component.widget.enableDate?"calendar":"clock-o"),styles:"",content:""}).trim();if(this.component.prefix!==e)return(0,a.convertStringToHTMLElement)(e,'[ref="icon"]')}return this.component.suffix}},{key:"renderElement",value:function(e,n){e&&"string"==typeof e&&(e=e.replace(/"/g,"&quot;"));var r=this.inputInfo;r.attr=r.attr||{},r.attr.value=this.getValueAsString(this.formatValue(this.parseValue(e))).replace(/"/g,"&quot;");var o=this.component.inputMask,i=this.component.displayMask;return this.isMultipleMasksField&&(r.attr.class+=" formio-multiple-mask-input"),this.isMultipleMasksField?this.renderTemplate("multipleMasksInput",{input
vendor: 4,481 bytes, line 1
1:r,value:e,index:n,selectOptions:this.getMaskOptions()||[]},this.isHtmlRenderMode()?"html":null):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:r,value:this.formatValue(this.parseValue(e)),hasValueMaskInput:o&&i&&o!==i,index:n},this.isHtmlRenderMode()?"html":null)}},{key:"setCounter",value:function(e,n,r,o){if(o){var i=o-r;i>0?this.removeClass(n,"text-danger"):this.addClass(n,"text-danger"),this.setContent(n,this.t("{{ remaining }} ".concat(e," remaining."),{remaining:i}))}else this.setContent(n,this.t("{{ count }} ".concat(e),{count:r}))}},{key:"updateValueAt",value:function(e,n,r){if(n=n||{},u.default.get(this.component,"showWordCount",!1)&&this.refs.wordcount&&this.refs.wordcount[r]){var o=u.default.parseInt(u.default.get(this.component,"validate.maxWords",0),10);this.setCounter(this.t("words"),this.refs.wordcount[r],this.getWordCount(e),o)}if(u.default.get(this.component,"showCharCount",!1)&&this.refs.charcount&&this.refs.charcount[r]){var i=u.default.parseInt(u.default.get(this.component,"validate.maxLength",0),10);this.setCounter(this.t("characters"),this.refs.charcount[r],e.length,i)}}},{key:"getValueAt",value:function(e){var n=this.performInputMapping(this.refs.input[e]);return n&&n.widget?n.widget.getValue():n?n.value:void 0}},{key:"updateValue",value:function(e,n,r){n=n||{};var o=d(y(v.prototype),"updateValue",this).call(this,e,n);return this.triggerUpdateValueAt(this.dataValue,n,r),o}},{key:"parseValue",value:function(e){return e}},{key:"formatValue",value:function(e){return e}},{key:"attach",value:function(e){return this.loadRefs(e,{charcount:"multiple",wordcount:"multiple",prefix:"multiple",suffix:"multiple"}),d(y(v.prototype),"attach",this).call(this,e)}},{key:"getWidget",value:function(e){return(e=e||0,this.refs.input&&this.refs.input[e])?this.refs.input[e].widget:null}},{key:"attachElement",value:function(e,n){var r=this;d(y(v.prototype),"attachElement",this).call(this,e,n),e.widget&&e.widget.destroy();var o=s.default.resolve();return e.widget=this.createWidget(n),e.widget&&(o=e.widget.attach(e),this.refs.prefix&&this.refs.prefix[n]&&e.widget.addPrefix(this.refs.prefix[n]),this.refs.suffix&&this.refs.suffix[n]&&e.widget.addSuffix(this.refs.suffix[n])),this.addFocusBlurEvents(e),this.options.submitOnEnter&&this.addEventListener(e,"keypress",function(e){13===(e.keyCode||e.which)&&(e.preventDefault(),e.stopPropagation(),r.emit("submitButton"))}),o}},{key:"createWidget",value:function(e){var n,r,o=this;if(!this.component.widget)return null;var i="string"==typeof this.component.widget?{type:this.component.widget}:this.component.widget;if(null!==(r=this.root)&&void 0!==r&&r.shadowRoot&&(i.shadowRoot=null===(n=this.root)||void 0===n?void 0:n.shadowRoot),!l.default.hasOwnProperty(i.type))return null;var a=new l.default[i.type](i,this.component,this,e);return a.on("update",function(){return o.updateValue(o.getValue(),{modified:!0},e)},!0),a.on("redraw",function(){return o.redraw()},!0),a}},{key:"detach",value:function(){if(d(y(v.prototype),"detach",this).call(this),this.refs&&this.refs.input)for(var e=0;e<=this.refs.input.length;e++){var n=this.getWidget(e);n&&n.destroy()}this.refs.input=[]}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{widget:{type:"input"}}].concat(n))}}],r&&f(v.prototype,r),c&&f(v,c),Object.defineProperty(v,"prototype",{writable:!1}),v}(i.default);n.default=m},68693:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"data",components:i.default}]].concat(n))},r(67998);var o=a(r(5956)),i=a(r(6001));function a(e){return e&&e.__esModule?e:{default:e}}},94374:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(28839),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(44991),r(37753),r(77273),r(45399),r(45945),r(789),r(31490),r(41135),r(88910),r(98797),r(49907),r(30890),r(48510),r(67998),r(43053),r(56613),r(65813);var i=c(r(32802)),a=r(79408),l=c(r(2890)),s=c(r(32780)),u=r(38163);
1function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function d(e,n){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(y,e);var n,r,c,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=p(y);if(n){var i=p(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y),h.apply(this,arguments)}return r=[{key:"isSelectURL",get:function(){return"url"===this.component.dataSrc}},{key:"selectData",get:function(){var e=l.default.get(this.root,"submission.metadata.selectData",{});return l.default.get(e,this.path)}},{key:"shouldLoad",get:function(){if(this.loadingError)return!1;if(!this.options.readOnly)return!0;if(this.templateKeys&&this.templateKeys.length){var e=this.dataValue,n=this.selectData;return this.templateKeys.reduce(function(r,o){var i=l.default.has(e,o)||(l.default.isArray(n)?n.every(function(e){return l.default.has(e,o)}):l.default.has(n,o));return r||!i},!1)}return!0}},{key:"getTemplateKeys",value:function(){var e=this.component.template;this.templateKeys=this.options.readOnly&&e?(0,u.getItemTemplateKeys)(e):[]}},{key:"requestHeaders",get:function(){var e=this,n=new a.GlobalFormio.Headers;if(this.component.data&&this.component.data.headers)try{l.default.each(this.component.data.headers,function(r){r.key&&n.set(r.key,e.interpolate(r.value))})}catch(e){console.warn(e.message)}return n}},{key:"setItems",value:function(){}},{key:"updateCustomItems",value:function(){}},{key:"loadItems",value:function(){}},{key:"getOptionTemplate",value:function(e,n,r){if(!this.component.template)return e.label;var o={noeval:!0,data:{}},i=this.sanitize(this.component.template?this.interpolate(this.component.template,{item:e},o):e.label,this.shouldSanitizeValue),a=this.component.reference&&null!=n&&n._id?n._id.toString():n;return a&&!l.default.isObject(a)&&o.data.item&&(this.templateData[a]=o.data.item),l.default.isNumber(r)&&(this.templateData[r]=o.data.item),i}},{key:"itemTemplate",value:function(e,n,r){if(l.default.isEmpty(e))return"";var o=this.sanitize(this.getOptionTemplate(e,n,r),this.shouldSanitizeValue);if(!o)return this.sanitize(JSON.stringify(e),this.shouldSanitizeValue);var i,a=o.replace(/<\/?[^>]+(>|$)/g,""),s=null===(i=this.i18next)||void 0===i?void 0:i.translator;if(a&&(!s||this.t(a,{_userInput:!0})))return s?o.replace(a,this.t(a,{_userInput:!0})):a}},{key:"handleLoadingError",value:function(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn("Unable to load resources for ".concat(this.key))}},{key:"updateItems",value:function(e,n){var r=this;if(!this.component.data){console.warn("Select component ".concat(this.key," does not have data configuration.")),this.itemsLoadedResolve();return}if(!this.visible){this.itemsLoadedResolve();return}switch(this.component.dataSrc){case"values":this.setItems(this.component.data.values);break;case"json":this.setItems(this.component.data.json);break;
1case"custom":this.updateCustomItems(n);break;case"resource":if(!this.component.data.resource||!n&&!this.active){this.itemsLoadedResolve();return}var o=this.options.formio?this.options.formio.formsUrl:"".concat(a.GlobalFormio.getProjectUrl(),"/form");if(o+="/".concat(this.component.data.resource,"/submission"),n||this.additionalResourcesAvailable||!this.serverCount)try{this.loadItems(o,e,this.requestHeaders)}catch(e){console.warn("Unable to load resources for ".concat(this.key))}else this.setItems(this.downloadedResources);break;case"url":if(!n&&!this.active&&!this.calculatedValue&&"select"===this.component.type){this.itemsLoadedResolve();return}var i,u,c=this.component.data.url;c.startsWith("/")&&(c=(c.startsWith("/project")?a.GlobalFormio.getBaseUrl():a.GlobalFormio.getProjectUrl()||a.GlobalFormio.getBaseUrl())+c),this.component.data.method?u="POST"===(i=this.component.data.method).toUpperCase()?this.component.data.body:null:i="GET";var f=this.component.authenticate?{}:{noToken:!0};this.loadItems(c,e,this.requestHeaders,f,i,u);break;case"indexeddb":if(window.indexedDB||window.alert("Your browser doesn't support current version of indexedDB"),this.component.indexeddb&&this.component.indexeddb.database&&this.component.indexeddb.table){var d=window.indexedDB.open(this.component.indexeddb.database);d.onupgradeneeded=function(e){if(r.component.customOptions){var n=e.target.result;n.createObjectStore(r.component.indexeddb.table,{keyPath:"myKey",autoIncrement:!0}).transaction.oncomplete=function(){var e=n.transaction(r.component.indexeddb.table,"readwrite");r.component.customOptions.forEach(function(n){e.objectStore(r.component.indexeddb.table).put(n)})}}},d.onerror=function(){window.alert(d.errorCode)},d.onsuccess=function(e){var n=e.target.result.transaction(r.component.indexeddb.table,"readwrite").objectStore(r.component.indexeddb.table);new s.default(function(e){var r=[];n.getAll().onsuccess=function(n){n.target.result.forEach(function(e){r.push(e)}),e(r)}}).then(function(e){l.default.isEmpty(r.component.indexeddb.filter)||(e=l.default.filter(e,r.component.indexeddb.filter)),r.setItems(e)})}}}}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{dataSrc:"values",authenticate:!1,ignoreCache:!1,template:"<span>{{ item.label }}</span>",validate:{onlyAvailableItems:!1}}].concat(n))}}],r&&f(y.prototype,r),c&&f(y,c),Object.defineProperty(y,"prototype",{writable:!1}),y}(i.default);n.default=h},6001:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",input:!0,weight:0,tooltip:"The source to use for the select data. Values lets you provide your own values and labels. JSON lets you provide raw JSON data. URL lets you provide a URL to retrieve the JSON data from.",key:"dataSrc",defaultValue:"values",label:"Data Source Type",dataSrc:"values"},{type:"textfield",input:!0,key:"data.url",weight:10,label:"Data Source URL",placeholder:"Data Source URL",tooltip:"A URL that returns a JSON array to use as the data source.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"datagrid",input:!0,label:"Request Headers",key:"data.headers",tooltip:"Set any headers that should be sent along with the request to the url. This is useful for authentication.",weight:11,components:[{label:"Key",key:"key",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!1,weight:13,description:"The selected item's property to save.",tooltip:"The property of each item in the data source to use as the select value. If not specified, the item itself will be used.",conditional:{json:{in:[{var:"data.dataSrc"},["json","url","custom"]]}}},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:18,tooltip:"The HTML template for the result data items.",allowCalculateOverride:!0,calculateValue:function(e){return!e.data.template&&e.instance&&e.instance._currentForm.options.editComponent?e.instance._currentForm.options.editComponent.template:e.data.template}},{type:"checkbox",input:!0,weight:26,key:"authenticate",label:"Formio Authenticate",tooltip:"
1Check this if you would like to use Formio Authentication with the request.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"checkbox",input:!0,weight:29,key:"ignoreCache",label:"Disables Storing Request Result in the Cache",tooltip:"Check it if you don't want the requests and its results to be stored in the cache. By default, it is stored and if the Select tries to make the request to the same URL with the same paremetrs, the cached data will be returned. It allows to increase performance, but if the remote source's data is changing quite often and you always need to keep it up-to-date, uncheck this option.",conditional:{json:{or:[{"===":[{var:"data.dataSrc"},"url"]},{"===":[{var:"data.dataSrc"},"resource"]}]}}}]},2627:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(28656),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(55096),r(20680),r(56613),r(49907),r(37753),r(30890),r(18666),r(97599),r(67998),r(43053),r(65813);var i=s(r(32802)),a=s(r(32780)),l=s(r(2890));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function c(e,n,r,o){return(c="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a,l=p(e,n);if(l){if((a=Object.getOwnPropertyDescriptor(l,n)).set)return a.set.call(o,r),!0;if(!a.writable)return!1}if(a=Object.getOwnPropertyDescriptor(o,n)){if(!a.writable)return!1;a.value=r,Object.defineProperty(o,n,a)}else(i=f(i=n))in o?Object.defineProperty(o,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[i]=r;return!0})(e,n,r,o)}function f(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=p(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=y(e)););return e}function h(e,n){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&h(e,n)}(f,e);var n,r,i,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(f);if(n){var i=y(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),s.apply(this,arguments)}return r=[{key:"dataValue",get:function(){var e=d(y(f.prototype),"dataValue",this);return!e&&this.component.multiple?[]:e}
1,set:function(e){!function(e,n,r,o,i){if(!c(e,n,r,o||e)&&i)throw Error("failed to set property")}(y(f.prototype),"dataValue",e,this,!0)}},{key:"defaultValue",get:function(){var e=d(y(f.prototype),"defaultValue",this);return this.component.multiple&&(e=l.default.isArray(e)?e.length?e:[d(y(f.prototype),"emptyValue",this)]:[e]),e}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}},{key:"useWrapper",value:function(){return this.component.hasOwnProperty("multiple")&&this.component.multiple}},{key:"render",value:function(){if(!this.useWrapper())return d(y(f.prototype),"render",this).call(this,'<div ref="element">\n          '.concat(this.renderElement("hidden"!==this.component.type?this.dataValue:""),"\n        </div>"));var e=this.dataValue;return Array.isArray(e)||(e=e?[e]:[]),d(y(f.prototype),"render",this).call(this,this.renderTemplate("multiValueTable",{rows:e.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother}))}},{key:"renderElement",value:function(){return""}},{key:"renderRow",value:function(e,n){return this.renderTemplate("multiValueRow",{index:n,disabled:this.disabled,element:"".concat(this.renderElement(e,n))})}},{key:"attach",value:function(e){var n=this,r=d(y(f.prototype),"attach",this).call(this,e);this.loadRefs(e,{addButton:"multiple",input:"multiple",removeRow:"multiple",mask:"multiple",select:"multiple"});var o=[];return(this.refs.input.forEach(function(e,r){o.push(n.attachElement.call(n,e,r))}),this.component.multiple)?(this.refs.removeRow.forEach(function(e,r){n.addEventListener(e,"click",function(e){e.preventDefault(),n.removeValue(r)})}),this.refs.addButton.forEach(function(e){n.addEventListener(e,"click",function(e){e.preventDefault(),n.addValue()})}),r.then(function(){return a.default.all(o)})):a.default.all(o)}},{key:"detach",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input.forEach(function(e){e.mask&&(e.mask.destroy?e.mask.destroy():e.mask.remove()),e.widget&&e.widget.destroy()}),this.refs.mask&&this.refs.mask.length&&this.refs.mask.forEach(function(e){e.mask&&(e.mask.destroy?e.mask.destroy():e.mask.remove())}),d(y(f.prototype),"detach",this).call(this)}},{key:"attachElement",value:function(e,n){var r=this;if(this.addEventListener(e,this.inputInfo.changeEvent,function(){var o=l.default.get(r.component,"case","mixed");if("mixed"!==o){var i=e.selectionStart,a=e.selectionEnd;"uppercase"===o&&e.value&&(e.value=e.value.toUpperCase()),"lowercase"===o&&e.value&&(e.value=e.value.toLowerCase()),e.selectionStart&&e.selectionEnd&&(e.selectionStart=i,e.selectionEnd=a)}try{r.saveCaretPosition(e,n)}catch(e){console.warn("An error occurred while trying to save caret position",e)}if(!e.mask)return r.updateValue(null,{modified:"hidden"!==r.component.type},n);setTimeout(function(){return r.updateValue(null,{modified:"hidden"!==r.component.type},n)},1)}),!this.attachMultiMask(n)){var o=function(){r.setInputMask(e);var n=r.component.inputMask,o=r.component.displayMask;n&&o&&o!==n&&r.refs.valueMaskInput&&r.setInputMask(r.refs.valueMaskInput,n)};"blur"===this.inputInfo.changeEvent?this.addEventListener(e,this.inputInfo.changeEvent,function(){var e;o(),r.dataValue=r.refs.input[0].value,null===(e=document.querySelector('[name="data[submit]"]'))||void 0===e||e.disabled,r.checkComponentValidity()&&r.updateComponentValue(r.refs.input[0].value)}):o()}}},{key:"onSelectMaskHandler",value:function(e){this.updateMask(e.target.maskInput,this.getMaskPattern(e.target.value))}},{key:"getMaskPattern",value:function(e){if(this.multiMasks||(this.multiMasks={}),this.multiMasks[e])return this.multiMasks[e];var n=this.component.inputMasks.find(function(n){return n.label===e});return this.multiMasks[e]=n?n.mask:this.component.inputMasks[0].mask,this.multiMasks[e]}},{key:"attachMultiMask",value:function(e){if(!(this.isMultipleMasksField&&this.component.inputMasks.length&&this.refs.input.length))return!1;var n=this.refs.select[e];return n.onchange=this.onSelectMaskHandler.bind(this),n.maskInput=this.refs.mask[e],this.setInputMask(n.maskInput,this.component.inputMasks[0].mask),!0}}
1,{key:"updateMask",value:function(e,n){n&&(this.setInputMask(e,n,!this.component.placeholder),this.updateValue())}},{key:"addNewValue",value:function(e){void 0===e&&Array.isArray(e=this.component.defaultValue?this.component.defaultValue:this.emptyValue)&&0===e.length&&(e=this.emptyValue);var n=this.dataValue||[];Array.isArray(n)||(n=[n]),Array.isArray(e)?n=n.concat(e):n.push(e),this.dataValue=n}},{key:"addValue",value:function(){this.addNewValue(),this.redraw(),this.checkConditions(),this.isEmpty(this.dataValue)||this.restoreValue(),this.root&&this.root.onChange()}}],u(f.prototype,r),i&&u(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=m},53409:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.baseEditForm.apply(i.default,[[{key:"data",ignore:!0},{key:"validation",ignore:!0}]].concat(n))},r(67998);var o,i=(o=r(5956))&&o.__esModule?o:{default:o}},77975:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(28656),r(89352),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(20680),r(49907),r(37753),r(30890),r(33546),r(88852),r(97291),r(21587),r(67998),r(86328),r(41967),r(7122),r(44991),r(77273),r(48510),r(43053),r(56613),r(65813);var i=c(r(2890)),a=c(r(32802)),l=c(r(5956)),s=c(r(32780)),u=r(38163);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){m(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}function h(e,n,r,o){return(h="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=g(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else m(o,n,r);return!0})(e,n,r,o)}function y(e,n,r,o,i){if(!h(e,n,r,o||e)&&i)throw Error("failed to set property");return r}function m(e,n,r){return(n=v(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function v(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=g(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function g(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=k(e)););return e}function w(e,n){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&w(e,n)}(h,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=k(h);if(n){var i=k(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h),(o=f.call(this,e,n,r)).type="components",o._collapsed=!!o.component.collapsed,o}return r=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"schema",get:function(){var e=b(k(h.prototype),"schema",this),n=i.default.uniqBy(this.getComponents(),"component.key");return e.components=i.default.map(n,"schema"),e}},{key:"collapsed",get:function(){return this._collapsed},set:function(e){this._collapsed=e,this.collapse(e)}},{key:"collapse",value:function(e){var n=this.redraw();return e||this.checkValidity(this.data,!this.pristine,null,this.pristine),n}},{key:"visible",get:function(){return b(k(h.prototype),"visible",this)},set:function(e){var n=this._visible!==e;this._visible=e;var r=this.visible,o=this.shouldForceShow(),i=this.shouldForceHide();
1this.components.forEach(function(e){e.parentVisible=r;var n=e.conditionallyVisible();o||n?e.visible=!0:!i&&r&&n||(e.visible=!1),e.visible||(e.error="")}),n&&(this.clearOnHide(),this.redraw())}},{key:"parentVisible",get:function(){return b(k(h.prototype),"parentVisible",this)},set:function(e){var n=this;y(k(h.prototype),"parentVisible",e,this,!0),this.components.forEach(function(e){return e.parentVisible=n.visible})}},{key:"disabled",get:function(){return b(k(h.prototype),"disabled",this)},set:function(e){y(k(h.prototype),"disabled",e,this,!0),this.components.forEach(function(n){return n.parentDisabled=e})}},{key:"parentDisabled",get:function(){return b(k(h.prototype),"parentDisabled",this)},set:function(e){var n=this;y(k(h.prototype),"parentDisabled",e,this,!0),this.components.forEach(function(e){e.parentDisabled=n.disabled})}},{key:"ready",get:function(){return s.default.all(this.getComponents().map(function(e){return e.ready}))}},{key:"currentForm",get:function(){return b(k(h.prototype),"currentForm",this)},set:function(e){y(k(h.prototype),"currentForm",e,this,!0),this.getComponents().forEach(function(n){n.currentForm=e})}},{key:"rowIndex",get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.eachComponent(function(n){n.rowIndex=e})}},{key:"componentContext",value:function(){return this._data}},{key:"data",get:function(){return this._data},set:function(e){var n=this;this._data=e,this.eachComponent(function(e){e.data=n.componentContext(e)})}},{key:"getComponents",value:function(){return this.components||[]}},{key:"everyComponent",value:function(e,n){var r=this.getComponents();i.default.each(r,function(o,i){if(!1===e(o,r,i)||"function"==typeof o.everyComponent&&!1===o.everyComponent(e,n))return!1})}},{key:"hasComponent",value:function(e){var n=!1;return this.everyComponent(function(r){if(r===e)return n=!0,!1}),n}},{key:"flattenComponents",value:function(){var e={};return this.everyComponent(function(n){e[n.component.flattenAs||n.key]=n}),e}},{key:"eachComponent",value:function(e){i.default.each(this.getComponents(),function(n,r){if(!1===e(n,r))return!1})}},{key:"getComponent",value:function(e,n,r){r=r||(0,u.getStringFromComponentPath)(e),e=(0,u.getArrayFromComponentPath)(e);var o=r,a=i.default.clone(e),l=a.shift(),s=null,c=null;return i.default.isNumber(l)&&(l=a.shift()),i.default.isString(l)&&(this.everyComponent(function(e,i){var u=!e.hasInput||!e.path||o.includes(e.path);if(e.component.key===l&&(c=e,u))return s=e,a.length>0&&"getComponent"in e?s=e.getComponent(a,n,r):n&&n(e,i),!1}),s||(s=c)),s}},{key:"getComponentById",value:function(e,n){var r=null;return this.everyComponent(function(o,i){if(o.id===e)return r=o,n&&n(o,i),!1}),r}},{key:"calculateComponentPath",value:function(e){if(e.component.key){for(var n=this;n&&!n.allowData&&n.parent;)n=n.parent;var r=e.row&&!["container"].includes(n.component.type)?"[".concat(Number.parseInt(e.row),"]"):"";return(n.path?"".concat(n.path).concat(r,"."):"")+(e._parentPath&&e.component.shouldIncludeSubFormPath?e._parentPath:"")+e.component.key}}},{key:"createComponent",value:function(e,n,r,o,a){if(e){n=n||this.options,r=r||this.data,n.parent=this,n.parentVisible=this.visible,n.root=(null==n?void 0:n.root)||this.root||this,n.localRoot=this.localRoot,n.skipInit=!0,"pdf"===n.display&&this.builderMode||(e.id=(0,u.getRandomComponentId)()),!this.isInputComponent&&this.component.shouldIncludeSubFormPath&&(e.shouldIncludeSubFormPath=!0);var s=l.default.create(e,n,r,!0),c=this.calculateComponentPath(s);if(c&&(s.path=c),s.init(),e.internal)return s;if(o){var f=i.default.findIndex(this.components,{id:o.id});-1!==f?this.components.splice(f,0,s):this.components.push(s)}else if(a){var d=i.default.findIndex(this.components,{id:a.id});-1!==d?this.components[d]=s:this.components.push(s)}else this.components.push(s);return s}}},{key:"getContainer",value:function(){return this.element}},{key:"componentComponents",get:function(){return this.component.components||[]}},{key:"nestedKey",get:function(){return"nested-".concat(this.key)}},{key:"templateName",get:function(){return"container"}},{key:"init",value:function(){return this.components=this.components||[],this.addComponents(),b(k(h.prototype),"init",this).call(this)}},{key:"addComponents",value:function(e,n){var r=this;e=e||this.data,(n=n||this.options).components?this.components=n.components:(this.hook("addComponents",this.componentComponents,this)||[]).forEac
1h(function(n){return r.addComponent(n,e)})}},{key:"addComponent",value:function(e,n,r,o){return n=n||this.data,this.options.parentPath&&(e.shouldIncludeSubFormPath=!0),e=this.hook("addComponent",e,n,r,o),this.createComponent(e,this.options,n,r||null)}},{key:"beforeFocus",value:function(){this.parent&&"beforeFocus"in this.parent&&this.parent.beforeFocus(this)}},{key:"render",value:function(e){return b(k(h.prototype),"render",this).call(this,e||this.renderTemplate(this.templateName,{children:this.visible?this.renderComponents():"",nestedKey:this.nestedKey,collapsed:!this.options.pdf&&this.collapsed}))}},{key:"renderComponents",value:function(e){var n=(e=e||this.getComponents()).map(function(e){return e.render()});return this.renderTemplate("components",{children:n,components:e})}},{key:"attach",value:function(e){var n=this,r=b(k(h.prototype),"attach",this).call(this,e);this.loadRefs(e,m({header:"single",collapsed:this.collapsed},this.nestedKey,"single"));var o=s.default.resolve();return this.refs[this.nestedKey]&&(o=this.attachComponents(this.refs[this.nestedKey])),this.visible||this.attachComponentsLogic(),this.component.collapsible&&this.refs.header&&(this.addEventListener(this.refs.header,"click",function(){n.collapsed=!n.collapsed}),this.addEventListener(this.refs.header,"keydown",function(e){(13===e.keyCode||32===e.keyCode)&&(e.preventDefault(),n.collapsed=!n.collapsed)})),s.default.all([r,o])}},{key:"attachComponentsLogic",value:function(e){e=e||this.components,i.default.each(e,function(e){e.attachLogic(),i.default.isFunction(e.attachComponentsLogic)&&e.attachComponentsLogic()})}},{key:"attachComponents",value:function(e,n,r){if(n=n||this.components,r=r||this.component.components,!(e=this.hook("attachComponents",e,n,r,this)))return new s.default(function(){});var o=0,i=[];return Array.prototype.slice.call(e.children).forEach(function(e){!e.getAttribute("data-noattach")&&n[o]&&(i.push(n[o].attach(e)),o++)}),s.default.all(i)}}
1,{key:"removeComponent",value:function(e,n){n=n||this.components,e.destroy(),i.default.remove(n,{id:e.id})}},{key:"removeComponentByKey",value:function(e,n){var r=this;if(!this.getComponent(e,function(e,o){r.removeComponent(e,o),n&&n(e,o)}))return n&&n(null),null}},{key:"removeComponentById",value:function(e,n){var r=this;if(!this.getComponentById(e,function(e,o){r.removeComponent(e,o),n&&n(e,o)}))return n&&n(null),null}},{key:"updateValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.components.reduce(function(e,r){return r.updateValue(null,n)||e},b(k(h.prototype),"updateValue",this).call(this,e,n))}},{key:"shouldSkipValidation",value:function(e,n,r){return!this.component.input||b(k(h.prototype),"shouldSkipValidation",this).call(this,e,n,r)}},{key:"checkData",value:function(e,n,r,o){if(this.builderMode)return!0;e=e||this.rootValue,n=n||{},r=r||this.data;var a=(o=o&&i.default.isArray(o)?o:this.getComponents()).reduce(function(o,i){return i.checkData(e,d({},n),r)&&o},b(k(h.prototype),"checkData",this).call(this,e,d({},n),r));return this.checkModal(a,this.isDirty),a}},{key:"checkConditions",value:function(e,n,r){var o=b(k(h.prototype),"checkConditions",this).call(this,e,n,r);return this.getComponents().forEach(function(r){return r.checkConditions(e,n,r.data)}),o}},{key:"clearOnHide",value:function(e){b(k(h.prototype),"clearOnHide",this).call(this,e),this.component.clearOnHide&&(!this.allowData||this.hasValue()||this.options.server&&!this.visible||(this.dataValue=this.defaultValue),this.hasValue()&&this.restoreComponentsContext()),this.getComponents().forEach(function(n){return n.clearOnHide(e)})}},{key:"restoreComponentsContext",value:function(){var e=this;this.getComponents().forEach(function(n){return n.data=e.dataValue})}},{key:"beforePage",value:function(e){return s.default.all(this.getComponents().map(function(n){return n.beforePage(e)}))}},{key:"beforeSubmit",value:function(){return s.default.all(this.getComponents().map(function(e){return e.beforeSubmit()}))}},{key:"calculateValue",value:function(e,n,r){return!!this.conditionallyVisible()&&this.getComponents().reduce(function(o,i){return i.calculateValue(e,n,r)||o},b(k(h.prototype),"calculateValue",this).call(this,e,n,r))}},{key:"isLastPage",value:function(){return this.pages.length-1===this.page}},{key:"isValid",value:function(e,n){return this.getComponents().reduce(function(r,o){return o.isValid(e,n)&&r},b(k(h.prototype),"isValid",this).call(this,e,n))}},{key:"checkChildComponentsValidity",value:function(e,n,r,o,i){return this.getComponents().reduce(function(i,a){return a.checkValidity(e,n,r,o)&&i},i)}},{key:"checkValidity",value:function(e,n,r,o){if(!this.checkCondition(r,e))return this.setCustomValidity(""),!0;var i=this.checkChildComponentsValidity(e,n,r,o,b(k(h.prototype),"checkValidity",this).call(this,e,n,r,o));return this.checkModal(i,n),i}},{key:"checkAsyncValidity",value:function(e,n,r,o){var i=this;return this.ready.then(function(){var a=[b(k(h.prototype),"checkAsyncValidity",i).call(i,e,n,r,o)];return i.eachComponent(function(i){return a.push(i.checkAsyncValidity(e,n,r,o))}),s.default.all(a).then(function(e){return e.reduce(function(e,n){return e&&n},!0)})})}},{key:"setPristine",value:function(e){b(k(h.prototype),"setPristine",this).call(this,e),this.getComponents().forEach(function(n){return n.setPristine(e)})}},{key:"isPristine",get:function(){return this.pristine&&this.getComponents().every(function(e){return e.isPristine})}},{key:"isDirty",get:function(){return this.dirty&&this.getComponents().every(function(e){return e.isDirty})}},{key:"detach",value:function(){this.components.forEach(function(e){e.detach()}),b(k(h.prototype),"detach",this).call(this)}},{key:"clear",value:function(){this.components.forEach(function(e){e.clear()}),b(k(h.prototype),"clear",this).call(this)}},{key:"destroy",value:function(){this.destroyComponents(),b(k(h.prototype),"destroy",this).call(this)}},{key:"destroyComponents",value:function(){var e=this;this.getComponents().slice().forEach(function(n){return e.removeComponent(n,e.components)}),this.components=[]}},{key:"errors",get:function(){var e=this.error?[this.error]:[];return this.getComponents().reduce(function(e,n){return e.concat(n.errors||[])},e).filter(function(e){return"hidden"!==e.level})}},{key:"getValue",value:function(){return this.data}},{key:"resetValue",value:function(){b(k(h.prototype),"resetValue",this).call(this),this.getComponents().forEac
1h(function(e){return e.resetValue()}),this.setPristine(!0)}},{key:"dataReady",get:function(){return s.default.all(this.getComponents().map(function(e){return e.dataReady}))}},{key:"setNestedValue",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e._data=this.componentContext(e),"button"!==e.type&&("components"===e.type?e.tree&&e.hasValue(n)?e.setValue(i.default.get(n,e.key),r):e.setValue(n,r):n&&e.hasValue(n)?e.setValue(i.default.get(n,e.key),r):(!this.rootPristine||e.visible)&&e.shouldAddDefaultValue?(r.noValidate=!r.dirty,r.resetValue=!0,e.setValue(e.defaultValue,r)):void 0)}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e&&(e.submitAsDraft&&!e.submit&&(r.noValidate=!0),this.getComponents().reduce(function(o,i){return n.setNestedValue(i,e,r,o)||o},!1))}},{key:"lazyLoad",get:function(){var e;return null!==(e=this.component.lazyLoad)&&void 0!==e&&e}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{tree:!1,lazyLoad:!1}].concat(n))}}],r&&p(h.prototype,r),c&&p(h,c),Object.defineProperty(h,"prototype",{writable:!1}),h}(a.default);n.default=O},40618:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(44991),r(37753),r(70601),r(67998),r(49907),r(30890),r(41967),r(43053),r(56613),r(65813);var i=u(r(2890)),a=r(38163),l=u(r(35849)),s=u(r(51824));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=p(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function d(e,n){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(y,e);var n,r,u,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=p(y);if(n){var i=p(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y),h.apply(this,arguments)}return r=[{key:"componentContext",value:function(e){return this.iteratableRows[e.rowIndex].data}},{key:"iteratableRows",get:function(){throw Error("Getter #iteratableRows() is not implemented")}},{key:"rowIndex",get:function(){return f(p(y.prototype),"rowIndex",this)},set:function(e){this._rowIndex=e}},{key:"init",value:function(){f(p(y.prototype),"init",this).call(this),this.prevHasAddButton=this.hasAddButton()}},{key:"checkAddButtonChanged",value:function(){var e=this.hasAddButton();e!==this.prevHasAddButton&&(this.prevHasAddButton=e,this.redraw())}}
1,{key:"checkData",value:function(e,n,r){return e=e||this.rootValue,n=n||{},r=r||this.data,this.checkAddButtonChanged(),this.checkRows("checkData",e,n,l.default.prototype.checkData.call(this,e,n,r))}},{key:"checkRows",value:function(e,n,r,o,i){var a=this;return this.iteratableRows.reduce(function(o,l,s){return null!=r&&r.rowIndex&&(null==r?void 0:r.rowIndex)!==s?o:a.checkRow(e,n,r,l.data,l.components,i)&&o},o)}},{key:"checkRow",value:function(e,n,r,o,a,l){null!=r&&r.isolateRow&&(l=!0,r.noRefresh=!0);var s=i.default.reduce(a,function(i,a){return a[e](n,r,o,l)&&i},!0);return null!=r&&r.noRefresh&&delete r.noRefresh,s}},{key:"hasAddButton",value:function(){var e=i.default.get(this.component,"validate.maxLength"),n=i.default.get(this.component,"conditionalAddButton");return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&!this.options.preview&&(!e||this.iteratableRows.length<e)&&(!n||this.evaluate(n,{value:this.dataValue},"show"))}},{key:"getComponent",value:function(e,n,r){var o=(e=Array.isArray(e)?e:[e]).shift(),a=e,l=[],s=null,u=null,c=null;return i.default.isNumber(o)&&(c=o,o=a.shift()),i.default.isString(o)&&(this.everyComponent(function(e,i){e.component.key===o&&(s=e,a.length>0&&"getComponent"in e?u=e.getComponent(a,n,r):n&&n(e,i),l=null!==c?u:l.concat(u||s))},c),(!l||0===l.length)&&s&&(l=null!==c?s:[s])),l}},{key:"everyComponent",value:function(e,n,r){if(i.default.isObject(n)&&(r=n,n=null),null==r||!r.email){var o=this.getComponents(n);i.default.each(o,function(n,i){if(!1===e(n,o,i)||"function"==typeof n.everyComponent&&!1===n.everyComponent(e,r))return!1})}}},{key:"getValueAsString",value:function(e,n){if(null!=n&&n.email){var r,o='\n        <table border="1" style="width:100%">\n          <thead>\n            <tr>\n      ';return null===(r=this.component.components)||void 0===r||r.forEach(function(e){var n=e.label||e.key;o+='<th style="padding: 5px 10px;">'.concat(n,"</th>")}),o+="\n          </tr>\n        </thead>\n        <tbody>\n      ",this.iteratableRows.forEach(function(e){var r=e.components;o+="<tr>",i.default.each(r,function(e){o+='<td style="padding:5px 10px;">',e.isInputComponent&&e.visible&&!e.skipInEmail&&(o+=e.getView(e.dataValue,n)),o+="</td>"}),o+="</tr>"}),o+="\n          </tbody>\n        </table>\n      "}return e&&e.length?f(p(y.prototype),"getValueAsString",this).call(this,e,n):""}},{key:"getComponents",value:function(e){return void 0!==e?this.iteratableRows[e]?this.iteratableRows[e].components:[]:f(p(y.prototype),"getComponents",this).call(this)}},{key:"removeSubmissionMetadataRow",value:function(e){var n=i.default.get(this.root,"submission.metadata.selectData.".concat(this.path),null);i.default.isArray(n)&&n.splice(e,1)}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return s.default.schema.apply(s.default,[{disableAddingRemovingRows:!1}].concat(n))}},{key:"savedValueTypes",value:function(){return[a.componentValueTypes.array]}}],r&&c(y.prototype,r),u&&c(y,u),Object.defineProperty(y,"prototype",{writable:!1}),y}(s.default);n.default=h},51824:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(93538),r(789),r(45945),r(49907),r(37753),r(30890),r(31490),r(43053),r(56613),r(65813);var i=u(r(35849)),a=u(r(77975)),l=u(r(2890)),s=r(38163);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?c(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=p(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function p(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=m(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,n){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(c,e);var n,r,a,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=m(c);if(n){var i=m(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return r=[{key:"hasChanged",value:function(e,n){return!(null==e||this.hasValue())||!l.default.isEqual(e,n)}},{key:"allowData",get:function(){return!0}},{key:"emptyValue",get:function(){return{}}},{key:"shouldAddDefaultValue",get:function(){return!this.options.noDefaults||!this.options.server}},{key:"componentContext",value:function(){return this.dataValue}},{key:"getValueAsString",value:function(e,n){if(null!=n&&n.email){var r='\n        <table border="1" style="width:100%">\n          <tbody>\n      ';return this.everyComponent(function(e){e.isInputComponent&&e.visible&&!e.skipInEmail&&(r+='\n            <tr>\n              <th style="padding: 5px 10px;">'.concat(e.label,'</th>\n              <td style="width:100%;padding:5px 10px;">').concat(e.getView(e.dataValue,n),"</td>\n            </tr>\n          "))},f(f({},n),{},{fromRoot:!0})),r+="\n          </tbody>\n        </table>\n      "}return l.default.isEmpty(e)?"":null!=n&&n.modalPreview?(delete n.modalPreview,this.getDataValueAsTable(e,n)):"[Complex Data]"}},{key:"getDataValueAsTable",value:function(e,n){var r='\n      <table border="1" style="width:100%">\n        <tbody>\n    ',o=RegExp("<(.*?)>");return this.components.forEach(function(e){if(e.isInputComponent&&e.visible&&!e.skipInEmail){var i=e.getView(e.dataValue,n);r+='\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(e.label,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(e.component&&"html"===e.component.inputFormat&&o.test(i)?i:'<input type="text" value="'.concat(i.replace(/"/g,"&quot;"),'" readonly/>'),"</td>\n          </tr>\n        ")}},f(f({},n),{},{fromRoot:!0})),r+="\n        </tbody>\n      </table>\n    "}},{key:"everyComponent",value:function(e,n){if(null!=n&&n.email){if(!n.fromRoot)return;delete n.fromRoot}return h(m(c.prototype),"everyComponent",this).call(this,e,n)}},{key:"getValue",value:function(){return this.dataValue}}
1,{key:"updateValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.default.prototype.updateValue.call(this,e,n)}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!1,o=this.hasValue();return o&&l.default.isEmpty(this.dataValue)&&(n.noValidate=!0),e&&l.default.isObject(e)&&o||(r=!0,this.dataValue=this.defaultValue),r=h(m(c.prototype),"setValue",this).call(this,e,n)||r,this.updateOnChange(n,r),r}}],a=[{key:"savedValueTypes",value:function(e){return(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.object]}}],r&&d(c.prototype,r),a&&d(c,a),Object.defineProperty(c,"prototype",{writable:!1}),c}(a.default);n.default=v},48838:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"data",components:i.default},{key:"display",components:a.default},{label:"Provider",key:"provider",weight:15,components:l.default}]].concat(n))},r(67998);var o=s(r(5956)),i=s(r(82537)),a=s(r(97884)),l=s(r(37975));function s(e){return e&&e.__esModule?e:{default:e}}},60034:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(33559),r(78089),r(70601),r(11414),r(41135),r(28839),r(88910),r(26343),r(7122),Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.AddressComponentMode=void 0,r(20680),r(3616),r(49907),r(37753),r(30890),r(55096),r(56613),r(67998),r(789),r(65801),r(48510),r(43053),r(65813);var i=p(r(17792)),a=p(r(2890)),l=r(79408),s=r(83061),u=p(r(32802)),c=p(r(77975)),f=p(r(44381)),d=r(38163);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(e,n)||y(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,n){if(e){if("string"==typeof e)return m(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,n)}}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function v(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function b(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?v(Object(r),!0).forEach(function(n){g(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g(e,n,r){return(n=k(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function w(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function k(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function O(){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=j(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function P(e,n){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
vendor: 14,259 bytes, line 1
1function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _={Autocomplete:"autocomplete",Manual:"manual"};n.AddressComponentMode=_;var S="address-autocomplete-remove-value-icon--hidden",C="show = _.get(instance, 'parent.manualMode', false);",E=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&P(e,n)}(k,e);var n,r,p,v=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=j(k);if(n){var i=j(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function k(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,k),v.apply(this,arguments)}return r=[{key:"mergeSchema",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.defaultSchema;return e.components&&(n=a.default.omit(n,"components")),a.default.defaultsDeep(e,n)}},{key:"init",value:function(){if(this.components=this.components||[],(this.builderMode||this.manualModeEnabled)&&c.default.prototype.addComponents.call(this,this.manualMode?this.address:{}),u.default.prototype.init.call(this),!this.builderMode){if(this.component.provider){var e=this.component,n=e.provider,r=e.providerOptions;this.provider=this.initializeProvider(n,r)}else if(this.component.map){this.component.provider=s.GoogleAddressProvider.name,this.component.providerOptions=this.component.providerOptions||{};var o=this.component,i=o.map,l=o.provider,f=o.providerOptions,d=i.key,p=i.region;d&&a.default.set(f,"params.key",d),p&&a.default.set(f,"params.region",p),this.provider=this.initializeProvider(l,f)}}}},{key:"initializeProvider",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.interpolate(n.url);return new(l.GlobalFormio.Providers.getProvider("address",e))(b(b({},n),{},{url:r}))}},{key:"emptyValue",get:function(){return this.manualModeEnabled?{mode:_.Autocomplete,address:{}}:{}}},{key:"mode",get:function(){var e,n;return this.manualModeEnabled&&null!==(e=null===(n=this.dataValue)||void 0===n?void 0:n.mode)&&void 0!==e?e:_.Autocomplete},set:function(e){this.manualModeEnabled&&(this.dataValue.mode=e)}},{key:"autocompleteMode",get:function(){return this.mode===_.Autocomplete}},{key:"manualMode",get:function(){return this.mode===_.Manual}},{key:"manualModeEnabled",get:function(){return!this.isMultiple&&!!this.component.enableManualMode}},{key:"restoreComponentsContext",value:function(){var e=this;this.getComponents().forEach(function(n){n.data=e.address,n.setValue(n.dataValue,{noUpdateEvent:!0})})}},{key:"isMultiple",get:function(){return!!this.component.multiple}},{key:"address",get:function(){return this.isMultiple?a.default.isArray(this.dataValue)?this.dataValue:[this.dataValue]:this.manualModeEnabled&&this.dataValue?this.dataValue.address:this.dataValue},set:function(e){!this.manualModeEnabled||this.isMultiple||a.default.isEqual(e,this.emptyValue)?this.dataValue=e:this.dataValue.address=e}},{key:"defaultValue",get:function(){var e=O(j(k.prototype),"defaultValue",this);return this.isMultiple&&(e=a.default.isArray(e)?e:[e]),e}},{key:"defaultSchema",get:function(){return k.schema()}},{key:"isValueInLegacyFormat",value:function(e){return e&&!e.mode}},{key:"normalizeValue",value:function(e){return this.manualModeEnabled&&this.isValueInLegacyFormat(e)?{mode:_.Autocomplete,address:e}:e}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=u.default.prototype.setValue.call(this,e,n);return this.manualMode&&this.restoreComponentsContext(),(r||!a.default.isEmpty(e)&&n.fromSubmission)&&this.redraw(),r}},{key:"modeSwitcher",get:function(){return this.refs&&this.refs[k.modeSwitcherRef]||null}},{key:"removeValueIcon",get:function(){return this.refs&&this.refs[k.removeValueIconRef]||null}},{key:"searchInput",get:function(){return this.refs&&this.refs[k.searchInputRef]||null}},{key:"addRowButton",get:function(){return this.refs&&this.refs[k.addRowButtonRef]||null}},{key:"removeRowButton",get:function(){return this.refs&&this.refs[k.removeRowButtonRef]||null}},{key:"searchInputAttributes",get:function(){var e={name:this.options.name,type:"text",class:"form-control",lang:this.options.language,tabindex:this.component.tabindex||0};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder)),this.disabled&&(e.disabled="disabled"),a.default.defaults(e,this.component.attributes),e}},{key:"templateName",get:function(){return"address"}},{key:"gridTemplateName",get:function(){return"multiValueTable"}},{key:"rowTemplateName",get:function(){return"multiValueRow"}},{key:"hasChildren",get:function(){return!this.isMultiple&&(this.builderMode||this.manualModeEnabled)}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}},{key:"renderElement",value:function(e){return this.renderTemplate(this.templateName,{children:this.hasChildren?this.renderComponents():"",nestedKey:this.nestedKey,inputAttributes:this.searchInputAttributes,ref:{modeSwitcher:k.modeSwitcherRef,removeValueIcon:k.removeValueIconRef,searchInput:k.searchInputRef},displayValue:this.getDisplayValue(e),mode:{autocomplete:this.autocompleteMode,manual:this.manualMode}})}},{key:"renderRow",value:function(e,n){return this.renderTemplate(this.rowTemplateName,{index:n,disabled:this.disabled,element:"".concat(this.renderElement(e,n))})}},{key:"renderGrid",value:function(){return this.renderTemplate(this.gridTemplateName,{rows:this.address.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother})}},{key:"render",value:function(){return this.isMultiple?O(j(k.prototype),"render",this).call(this,this.renderGrid()):O(j(k.prototype),"render",this).call(this,this.renderElement())}},{key:"onSelectAddress",value:function(e,n,r){if(this.isMultiple){var o;this.address[r]=e,this.address=function(e){if(Array.isArray(e))return m(e)}(o=this.address)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||y(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}else this.address=e;this.triggerChange({modified:!0}),n&&(n.value=this.getDisplayValue(this.isMultiple?this.address[r]:this.address)),this.updateRemoveIcon(r)}},{key:"addRow",value:function(){this.address=this.address.concat(this.emptyValue),O(j(k.prototype),"redraw",this).call(this)}},{key:"attach",value:function(e){var n,r=this,o=(this.builderMode||this.manualMode?O(j(k.prototype),"attach",this):u.default.prototype.attach).call(this,e);if(!this.builderMode&&!this.provider&&this.component.provider){var l=this.component,s=l.provider,c=l.providerOptions;this.provider=this.initializeProvider(s,c)}return this.loadRefs(e,(g(n={},k.addRowButtonRef,"single"),g(n,k.modeSwitcherRef,"single"),g(n,k.removeRowButtonRef,"multiple"),g(n,k.removeValueIconRef,"multiple"),g(n,k.searchInputRef,"multiple"),n)),this.searchInput.forEach(function(e,n){!r.builderMode&&e&&r.provider&&("google"===r.component.provider?r.provider.attachAutocomplete(e,n,r.onSelectAddress.bind(r)):(0,i.default)({input:e,debounceWaitMs:300,fetch:function(e,n){r.provider.search(e).then(n)},render:function(e){var n=r.ce("div");return n.textContent=r.getDisplayValue(e),n},onSelect:function(o){r.onSelectAddress(o,e,n)}}),r.addEventListener(e,"blur",function(){e&&e.value&&(e.value=r.getDisplayValue(r.isMultiple?r.address[n]:r.address))}),r.addEventListener(e,"keyup",function(){e&&(e.value||r.clearAddress(e,n))}))}),this.addRowButton&&this.addEventListener(this.addRowButton,"click",function(e){e.preventDefault(),r.addRow()}),this.removeRowButton.forEach(function(e,n){r.addEventListener(e,"click",function(e){e.preventDefault(),r.removeValue(n)})}),this.modeSwitcher&&this.addEventListener(this.modeSwitcher,"change",function(){r.modeSwitcher&&(r.dataValue=r.emptyValue,r.mode=r.modeSwitcher.checked?_.Manual:_.Autocomplete,r.builderMode||(r.manualMode&&r.restoreComponentsContext(),r.triggerChange({modified:!0})),r.redraw())}),this.builderMode||(this.removeValueIcon.forEach(function(e,n){r.updateRemoveIcon(n);var o=function(){var e,o=null===(e=r.searchInput)||void 0===e?void 0:e[n];r.clearAddress(o,n),o&&o.focus()};r.addEventListener(e,"click",o),r.addEventListener(e,"keydown",function(e){"Enter"===e.key&&o()})}),a.default.each(this.refs.searchInput||[],function(e){return r.addFocusBlurEvents(e)})),o}},{key:"addChildComponent",value:function(e){e.customConditional=C}},{key:"redraw",value:function(){var e=this,n=this.modeSwitcher&&document.activeElement===this.modeSwitcher;return O(j(k.prototype),"redraw",this).call(this).then(function(r){return n&&e.modeSwitcher&&e.modeSwitcher.focus(),r})}},{key:"clearAddress",value:function(e,n){var r;this.isEmpty()||this.triggerChange(),null!==(r=this.address)&&void 0!==r&&r[n]?this.address[n]=this.emptyValue:this.address=this.emptyValue,e&&(e.value=""),this.updateRemoveIcon(n)}},{key:"getDisplayValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.address;return this.provider&&!this.manualMode?this.provider.getDisplayValue(e):""}},{key:"validateMultiple",value:function(){return this.isMultiple}},{key:"updateRemoveIcon",value:function(e){var n,r=null===(n=this.removeValueIcon)||void 0===n?void 0:n[e];if(r){var o=this.isMultiple?this.address[e]:this.address;this.isEmpty(o)||this.disabled?this.addClass(r,S):this.removeClass(r,S)}}},{key:"getValueAsString",value:function(e,n){if(!e)return"";var r=this.normalizeValue(e),o=this.manualModeEnabled?r:{address:r,mode:_.Autocomplete},i=o.address,l=o.mode===_.Manual;return this.provider&&!l?this.getDisplayValue(i):l?this.component.manualModeViewString?this.interpolate(this.component.manualModeViewString,{address:i,data:this.data,component:this.component}):this.getComponents().filter(function(e){return e.hasValue(i)}).map(function(e){return[e,a.default.get(i,e.key)]}).filter(function(e){var n=h(e,2),r=n[0],o=n[1];return!r.isEmpty(o)}).map(function(e){var r=h(e,2),o=r[0],i=r[1];return o.getValueAsString(i,n)}).join(", "):O(j(k.prototype),"getValueAsString",this).call(this,i,n)}},{key:"focus",value:function(){this.searchInput&&this.searchInput[0]&&this.searchInput[0].focus()}}],p=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return f.default.schema.apply(f.default,[{type:"address",label:"Address",key:"address",switchToManualModeLabel:"Can't find address? Switch to manual mode.",provider:"",providerOptions:{},manualModeViewString:"",hideLabel:!1,disableClearIcon:!1,enableManualMode:!1,components:[{label:"Address 1",tableView:!1,key:"address1",type:"textfield",input:!0,customConditional:C},{label:"Address 2",tableView:!1,key:"address2",type:"textfield",input:!0,customConditional:C},{label:"City",tableView:!1,key:"city",type:"textfield",input:!0,customConditional:C},{label:"State",tableView:!1,key:"state",type:"textfield",input:!0,customConditional:C},{label:"Country",tableView:!1,key:"country",type:"textfield",input:!0,customConditional:C},{label:"Zip Code",tableView:!1,key:"zip",type:"textfield",input:!0,customConditional:C}]}].concat(n))}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,d.getComponentSavedTypes)(e)||[d.componentValueTypes.object]}},{key:"builderInfo",get:function(){return{title:"Address",group:"advanced",icon:"home",documentation:"/userguide/form-building/advanced-components#address",weight:35,schema:k.schema()}}},{key:"serverConditionSettings",get:function(){return k.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return b(b({},O(j(k),"conditionOperatorsSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}},{key:"modeSwitcherRef",get:function(){return"modeSwitcher"}},{key:"removeValueIconRef",get:function(){return"removeValueIcon"}},{key:"searchInputRef",get:function(){return"searchInput"}},{key:"addRowButtonRef",get:function(){return"addButton"}},{key:"removeRowButtonRef",get:function(){return"removeRow"}}],r&&w(k.prototype,r),p&&w(k,p),Object.defineProperty(k,"prototype",{writable:!1}),k}(f.default);n.default=E},82537:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",customConditional:function(e){return!e.data.enableManualMode}},{type:"address",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,customDefaultValue:function(e){return e.instance.manualModeEnabled?{mode:"autocomplete",address:{}}:{}}}]},97884:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{weight:20,type:"checkbox",input:!0,key:"enableManualMode",label:"Enable Manual Mode",tooltip:"Should Manual Mode be enabled for that component or not.",customConditional:function(e){return!e.data.multiple}},{weight:30,type:"textfield",input:!0,key:"switchToManualModeLabel",label:"Switch To Manual Mode Label",placeholder:"Switch To Manual Mode Label",tooltip:"The label for the checkbox used to switch to manual mode.",validate:{required:!0},customConditional:function(e){return!!e.data.enableManualMode}},{weight:40,type:"checkbox",input:!0,key:"disableClearIcon",label:"Disable Clear Icon",tooltip:"
1Clear Icon allows easily clear component's value."},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return e.data.multiple}}]},37975:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(20680),r(1385),r(41135),r(37753),r(88910),r(3616);var o,i=(o=r(2890))&&o.__esModule?o:{default:o},a=r(79408);n.default=[{type:"select",input:!0,key:"provider",label:"Provider",placeholder:"Select your address search provider",weight:0,tooltip:"Which address search service should be used.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return i.default.values(a.GlobalFormio.Providers.getProviders("address")).sort().map(function(e){return{label:e.displayName,value:e.name}})}},validate:{required:!0}},{type:"textfield",input:!0,key:"providerOptions.params['subscription-key']",label:"Subscription Key",placeholder:"Enter Subscription Key",weight:10,tooltip:"Use your Azure Maps subscription key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"azure"]}}},{type:"textfield",input:!0,key:"providerOptions.url",label:"Url",placeholder:"Enter Url",weight:10,tooltip:"Url to the service which should be used to search addresses for autocomplete.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.queryProperty",label:"Query Property",defaultValue:"query",placeholder:"Enter Query Property",weight:20,tooltip:"Which query param should be used to pass as a search string. Default is `query`.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.responseProperty",label:"Response Property",placeholder:"Enter Response Property",weight:30,tooltip:"The property within the response data, where iterable addresses reside. For example: results.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.displayValueProperty",label:"Display Value Property",placeholder:"Display Value Property",weight:40,tooltip:"The property of each address in the response to use as the display value.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textarea",input:!0,key:"providerOptions.params",label:"Params",placeholder:"{ ... }",weight:50,rows:5,editor:"ace",as:"json",tooltip:"Additional query params can be specified here in a way of JSON object.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.params.key",label:"API Key",placeholder:"Enter API Key",weight:10,tooltip:"Use your Google API key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"providerOptions.params.autocompleteOptions",label:"Provider options",placeholder:"Enter provider options as JSON object",defaultValue:{},weight:60,rows:5,as:"json",editor:"ace",tooltip:"Specify Google Maps Autocomplete options used for address searching as JSON object. Follow the <a href ='https://developers.google.com/maps/documentation/javascript/places-autocomplete' target='_blank'>link</a> for available options",conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"manualModeViewString",label:"Manual Mode View String",placeholder:"Enter Manual Mode View String",description:'"address" variable references component value, "data" - submission data and "component" - address component schema.',weight:60,rows:5,editor:"ace",tooltip:"Specify template which should be when quering view string for the component value entered in manual mode. This string is used in table view, CSV export and email rendering. When left blank combined value of all components joined with comma will be used."}]},68269:function(e,n,r){"use strict";r(64652),r(89352),r(48510),r(80107),r(33559),r(78089),r(70601),r(11414),r(41135),r(28839),r(88910),r(26343),r(7122),r(3616),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(56613),r(49907),r(37753),r(30890),r(67998),r(28065),r(789),r(31490),r(62107),r(21430),r(6778),r(68428),r(21587);var o,i=(o=r(2890))&&o.__esModule?o:{default:o},a=r(38163);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){if(e){if("string"==typeof e)return c(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,n)}}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?f(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=h(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}var y=function(){var e,n;function r(e,n){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r),this.container=e,this.alert=null,this.parentComponent=n,this.refs={},this.loadRefs=this.parentComponent.loadRefs.bind(this)}return e=[{key:"refsNames",get:function(){return{messageRef:"multiple"}}},{key:"alertTypes",get:function(){return{error:"danger",success:"success",info:"info",warning:"warning"}}},{key:"showErrors",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=i.default.isArray(e)?e:[e];var o=this.createMessagesList("error",e);return this.showAlert("error",o,r),n&&this.parentComponent.emit("error",e),e}},{key:"showMessage",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e;o instanceof HTMLElement?o.setAttribute("ref","messageRef"):o=this.parentComponent.ce("p",{ref:"messageRef"}),this.showAlert(n,o,r)}},{key:"createMessagesList",value:function(e){if("error"===e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];
1return this.createErrorList.apply(this,r)}}},{key:"createErrorList",value:function(e){var n=this,r=this.parentComponent.ce("p");this.parentComponent.setContent(r,this.parentComponent.t("error"));var o=this.parentComponent.ce("ul"),i=document.createDocumentFragment();return e.forEach(function(e){return n.appendErrorToList(e,o)}),r.appendChild(o),i.appendChild(r),i}},{key:"showAlert",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.customClasses,i=r.customEvents;this.setAlert(e,n,{customClasses:o}),this.alert&&(this.attach({customEvents:i}),this.parentComponent.prependTo(this.alert,this.container))}},{key:"setAlert",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.alertTypes[e];if(this.alert&&this.clear(),n){var i=r.id,a=void 0===i?"".concat(e,"-list-").concat(this.parentComponent.id):i,l=r.customClasses;this.alert=this.parentComponent.ce("div",{id:a,class:void 0===l?"alert alert-".concat(o):l}),n instanceof HTMLElement?this.parentComponent.appendTo(n,this.alert):this.parentComponent.setContent(this.alert,n)}}},{key:"attach",value:function(e){var n,r,o,i=this,a=e.customEvents,l=void 0===a?{}:a;this.eventListenersKeys=[],this.loadRefs(this.alert,this.refsNames);var c=(null===(n=l.click)||void 0===n?void 0:n.listeners)||[],f=(null===(r=l.keypress)||void 0===r?void 0:r.listeners)||[];l=d(d({},l),{},{click:[].concat(s(c),[function(e){var n=e.currentTarget.dataset.componentKey;i.focusOnComponent(n)}]),keypress:[].concat(s(f),[function(e){var n=e.currentTarget.dataset.componentKey;i.focusOnComponent(n)}])}),null!==(o=this.refs.messageRef)&&void 0!==o&&o.length&&this.refs.messageRef.forEach(function(e){Object.entries(l).forEach(function(n){var r=function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(n,2)||u(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0];r[1].forEach(function(n){return i.parentComponent.addEventListener(e,o,n)}),i.eventListenersKeys.push(o)})})}},{key:"clear",value:function(){var e,n=this;try{null!==(e=this.refs.messageRef)&&void 0!==e&&e.length&&this.refs.messageRef.forEach(function(e){n.eventListenersKeys.forEach(function(r){return n.parentComponent.removeEventListener(e,r)})}),this.refs={},this.parentComponent.removeChildFrom(this.alert,this.container),this.alert=null}catch(e){}}},{key:"focusOnComponent",value:function(e){if(e){var n,r=this.parentComponent._parentPath?e.replace(this.parentComponent._parentPath,""):e,o=null===(n=this.parentComponent.root)||void 0===n?void 0:n.getComponent(r,null,e);o&&i.default.isFunction(o.focus)&&o.focus()}}},{key:"createMessage",value:function(e,n,r,o,i){if("error"===e)return this.createErrorMessage(n,r,o,i)}},{key:"createErrorMessage",value:function(e,n,r,o){var l,s,u=this.parentComponent.ce("li",{style:"cursor: pointer",ref:"messageRef",tabIndex:0,"aria-label":"".concat(n,". Click to navigate to the field with following error.")});this.parentComponent.setContent(u,n);var c=!i.default.isUndefined(r)&&(null==o?void 0:null===(l=o.messages)||void 0===l?void 0:l[r]),f=(null==c?void 0:c.path)||(null==o?void 0:null===(s=o.component)||void 0===s?void 0:s.key);if(f){var d=(0,a.getStringFromComponentPath)(f);u.dataset.componentKey=d}this.parentComponent.appendTo(u,e)}},{key:"appendErrorToList",value:function(e,n){var r,o=this;if(null!=e&&null!==(r=e.messages)&&void 0!==r&&r.length)e.messages.forEach(function(r,i){var a=r.message;o.createMessage("error",n,a,i,e)});else if(e){var a=i.default.isObject(e)?e.message||"":e;this.createMessage("error",n,a)}}}],p(r.prototype,e),n&&p(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.default=y},77387:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=G(r(429)),i=G(r(48838)),a=G(r(92002)),l=G(r(59173)),s=G(r(77457)),u=G(r(8826)),c=G(r(46858)),f=G(r(29979)),d=G(r(29780)),p=G(r(84276)),h=G(r(47612)),y=G(r(9847)),m=G(r(48767)),v=G(r(42944)),b=G(r(48133)),g=G(r(92290)),w=G(r(31411)),k=G(r(98659)),O=G(r(68693)),P=G(r(62785)),j=G(r(54083)),_=G(r(53409)),S=G(r(92149)),C=G(r(73482)),E=G(r(54359)),x=G(r(25146)),R=G(r(86189)),M=G(r(21846)),T=G(r(100)),A=G(r(26896)),D=G(r(39856)),V=G(r(44771)),I=G(r(99351)),L=G(r(23271)),N=G(r(28896)),F=G(r(46553)),B=G(r(32303)),z=G(r(22080)),U=G(r(40597)),q=G(r(44982)),K=G(r(61710)),H=G(r(27195)),W=G(r(60528));
1function G(e){return e&&e.__esModule?e:{default:e}}o.default.address.editForm=i.default,o.default.button.editForm=a.default,o.default.checkbox.editForm=l.default,o.default.columns.editForm=s.default,o.default.component.editForm=u.default,o.default.container.editForm=c.default,o.default.content.editForm=f.default,o.default.currency.editForm=d.default,o.default.datagrid.editForm=p.default,o.default.datamap.editForm=h.default,o.default.datetime.editForm=y.default,o.default.day.editForm=m.default,o.default.editgrid.editForm=v.default,o.default.email.editForm=b.default,o.default.fieldset.editForm=g.default,o.default.file.editForm=w.default,o.default.form.editForm=k.default,o.default.list.editForm=O.default,o.default.hidden.editForm=P.default,o.default.htmlelement.editForm=j.default,o.default.nested.editForm=_.default,o.default.number.editForm=S.default,o.default.panel.editForm=C.default,o.default.password.editForm=E.default,o.default.phoneNumber.editForm=x.default,o.default.radio.editForm=R.default,o.default.recaptcha.editForm=M.default,o.default.resource.editForm=T.default,o.default.select.editForm=D.default,o.default.selectboxes.editForm=A.default,o.default.signature.editForm=V.default,o.default.survey.editForm=I.default,o.default.table.editForm=L.default,o.default.tabs.editForm=N.default,o.default.tags.editForm=F.default,o.default.textarea.editForm=B.default,o.default.textfield.editForm=z.default,o.default.time.editForm=U.default,o.default.tree.editForm=q.default,o.default.unknown.editForm=K.default,o.default.url.editForm=H.default,o.default.well.editForm=W.default;var Y=o.default;n.default=Y},92002:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",ignore:!0},{key:"validation",ignore:!0}]].concat(n))},r(67998);var o=a(r(5956)),i=a(r(92957));function a(e){return e&&e.__esModule?e:{default:e}}},86563:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(33546),r(94195),r(41967),r(56613),r(789),r(31490),r(93538),r(45945),r(65801),r(67998),r(55096),r(20680),r(89352),r(18666),r(44991),r(37753),r(3616),r(48510),r(43053),r(65813);var i=c(r(2890)),a=c(r(32780)),l=c(r(32802)),s=c(r(95306)),u=r(38163);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(y,e);var n,r,l,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(y);if(n){var i=h(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y),(o=c.call(this,e,n,r)).filesUploading=[],o}return r=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"inputInfo",get:function(){var e=d(h(y.prototype),"elementInfo",this).call(this);return e.type="button",e.attr.type=["submit","saveState"].includes(this.component.action)?"submit":"button",this.component.theme=this.component.theme||"default",e.attr.class="btn btn-".concat(this.component.theme),this.component.size&&(e.attr.class+=" btn-".concat(this.component.size)),this.component.block&&(e.attr.class+=" btn-block"),this.component.customClass&&(e.attr.class+=" ".concat(this.component.customClass)),e.content=this.t(this.component.label,{_userInput:!0}),e}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"loading",set:function(e){this.setLoading(this.refs.button,e)}},{key:"skipInEmail",get:function(){return!0}},{key:"createLabel",value:function(){}},{key:"createInput",value:function(e){return this.refs.button=d(h(y.prototype),"createInput",this).call(this,e),this.refs.button}},{key:"emptyValue",get:function(){return!1}},{key:"getValue",value:function(){return this.dataValue}},{key:"clicked",get:function(){return this.dataValue}},{key:"defaultValue",get:function(){return!1}},{key:"className",get:function(){return d(h(y.prototype),"className",this)+" ".concat(this.transform("class","form-group"))}},{key:"oauthConfig",get:function(){return i.default.has(this,"root.form.config.oauth")&&this.component.oauthProvider?this.root.form.config.oauth[this.component.oauthProvider]:!!this.component.oauth&&this.component.oauth}},{key:"render",value:function(){return(this.viewOnly||this.options.hideButtons)&&(this._visible=!1),d(h(y.prototype),"render",this).call(this,this.renderTemplate("button",{component:this.component,input:this.inputInfo}))}},{key:"attachButton",value:function(){var e=this;this.addShortcut(this.refs.button);var n=null,r=null;if("submit"===this.component.action&&(this.on("submitButton",function(){e.disabled=!0},!0),this.on("cancelSubmit",function(){e.disabled=!1},!0),this.on("submitDone",function(n){var r=i.default.isString(n)?n:e.t("complete");e.loading=!1,e.disabled=!1,e.addClass(e.refs.button,"btn-success submit-success"),e.removeClass(e.refs.button,"btn-danger submit-fail"),e.addClass(e.refs.buttonMessageContainer,"has-success"),e.removeClass(e.refs.buttonMessageContainer,"has-error"),e.setContent(e.refs.buttonMessage,r)},!0),this.on("submitError",function(n){var r=i.default.isString(n)?e.t(n):e.t(e.errorMessage("submitError"));e.loading=!1,e.disabled=!1,e.hasError=!0,e.removeClass(e.refs.button,"btn-success submit-success"),e.addClass(e.refs.button,"btn-danger submit-fail"),e.removeClass(e.refs.buttonMessageContainer,"has-success"),e.addClass(e.refs.buttonMessageContainer,"has-error"),e.setContent(e.refs.buttonMessage,r)},!0),this.on("fileUploadingStart",function(n){e.filesUploading.push(n),e.disabled=!0,e.setDisabled(e.refs.button,e.disabled)},!0),this.on("fileUploadingEnd",function(n){var r=e.filesUploading.indexOf(n);-1!==r&&e.filesUploading.splice(r,1),e.disabled=!!e.shouldDisabled,e.setDisabled(e.refs.button,e.disabled)},!0),n=function(n,r){e.removeClass(e.refs.button,"btn-success submit-success"),r&&(e.removeClass(e.refs.button,"btn-danger submit-fail"),e.hasError&&(e.hasError=!1,e.setContent(e.refs.buttonMessage,""),e.removeClass(e.refs.buttonMessageContainer,"has-success"),e.removeClass(e.refs.buttonMessageContainer,"has-error")))},r=function(){e.hasError=!0,e.removeClass(e.refs.button,"btn-success submit-success"),e.addClass(e.refs.button,"btn-danger submit-fail"),e.removeClass(e.refs.buttonMessageContainer,"has-success"),e.addClass(e.refs.buttonMessageContainer,"has-error"),e.setContent(e.refs.buttonMessage,e.t(e.errorMessage("submitError")))}),"url"===this.component.action&&(this.on("requestButton",function(){e.disabled=!0},!0),this.on("requestDone",function(){e.loading=!1,e.disabled=!1},!0)),this.on("change",function(r,o){var i=r.isValid,a=o&&o.silent;o&&o.noValidate&&(e.component.disableOnInvalid||e.hasError)&&(i=o.rootValidity||!e.root||e.root.checkValidity(e.root.data,null,
1null,!0),o.rootValidity=i),e.isDisabledOnInvalid=e.component.disableOnInvalid&&(a||!i),e.disabled=e.shouldDisabled,e.setDisabled(e.refs.button,e.disabled),n&&n(r,i)},!0),this.on("error",function(){e.loading=!1,e.disabled=!1,r&&r()},!0),this.component.saveOnEnter&&this.root.addEventListener(this.root.element,"keyup",function(n){13===n.keyCode&&e.onClick.call(e,n)}),this.addEventListener(this.refs.button,"click",this.onClick.bind(this)),this.addEventListener(this.refs.buttonMessageContainer,"click",function(){e.refs.buttonMessageContainer.classList.contains("has-error")&&e.root&&e.root.alert&&e.scrollIntoView(e.root.alert)}),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),"oauth"===this.component.action&&this.oauthConfig&&!this.oauthConfig.error){var o,a,l=(o=(o="iss").replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),(a=new RegExp("[\\?&]".concat(o,"=([^&#]*)")).exec(location.search))?decodeURIComponent(a[1].replace(/\+/g," ")):a);l&&0===this.oauthConfig.authURI.indexOf(l)&&this.openOauth(this.oauthConfig)}}},{key:"shouldDisabled",get:function(){var e;return d(h(y.prototype),"shouldDisabled",this)||!!(null!==(e=this.filesUploading)&&void 0!==e&&e.length)||this.isDisabledOnInvalid}},{key:"attach",value:function(e){this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single"});var n=d(h(y.prototype),"attach",this).call(this,e);return this.attachButton(),n}},{key:"detach",value:function(e){e&&this.refs.button&&this.removeShortcut(this.refs.button),d(h(y.prototype),"detach",this).call(this)}},{key:"onClick",value:function(e){if(this.triggerCaptcha(),!this.disabled&&"builder"!==this.options.attachMode)switch(this.dataValue=!0,"submit"!==this.component.action&&this.component.showValidations&&this.emit("checkValidity",this.data),this.component.action){case"saveState":case"submit":e.preventDefault(),e.stopPropagation(),this.loading=!0,this.emit("submitButton",{state:this.component.state||"submitted",component:this.component,instance:this});break;
1case"event":this.emit(this.interpolate(this.component.event),this.data),this.events.emit(this.interpolate(this.component.event),this.data),this.emit("customEvent",{type:this.interpolate(this.component.event),component:this.component,data:this.data,event:e});break;case"custom":var n=this.getRoot(),r={},o={};(0,u.eachComponent)(n.components,function(e,n){var i=e.component||e;r[n]=i,o[i.key]=i},!0),this.evaluate(this.component.custom,{form:n,flattened:r,components:o}),this.triggerChange();break;case"url":this.loading=!0,this.emit("requestButton",{component:this.component,instance:this}),this.emit("requestUrl",{url:this.interpolate(this.component.url),headers:this.component.headers});break;case"reset":this.emit("resetForm");break;case"delete":this.emit("deleteSubmission");break;case"oauth":if(this.root===this){console.warn("You must add the OAuth button to a form for it to function properly");return}if(!this.oauthConfig){this.root.setAlert("danger","OAuth not configured. You must configure oauth for your project before it will work.");break}if(this.oauthConfig.error){this.root.setAlert("danger","The Following Error Has Occured ".concat(this.oauthConfig.error));break}this.openOauth(this.oauthConfig)}}},{key:"openOauth",value:function(e){var n=this;if(!this.root.formio){console.warn("You must attach a Form API url to your form in order to use OAuth buttons.");return}var r={response_type:"code",client_id:e.clientId,redirect_uri:e.redirectURI&&this.interpolate(e.redirectURI)||window.location.origin||"".concat(window.location.protocol,"//").concat(window.location.host),scope:e.scope};e.state?r.state=e.state:e.code_challenge&&(r.code_challenge=e.code_challenge,r.code_challenge_method="S256");var o=r.redirect_uri;e.display&&(r.display=e.display),r=Object.keys(r).map(function(e){return"".concat(e,"=").concat(encodeURIComponent(r[e]))}).join("&");var l=-1!==e.authURI.indexOf("?")?"&":"?",s="".concat(e.authURI).concat(l).concat(r),u=window.open(s,e.provider,"width=1020,height=618"),c=setInterval(function(){try{var r=u.location.host,l=window.location.host;if(u&&!u.closed&&r===l){u.close();var s=u.location.search.substr(1).split("&").reduce(function(e,n){var r=n.split("=");return e[r[0]]=r[1],e},{});if(s.error){alert(s.error_description||s.error),n.root.setAlert("danger",s.error_description||s.error);return}if(e.state!==s.state){n.root.setAlert("danger","OAuth state does not match. Please try logging in again.");return}var f=a.default.resolve();if(i.default.has(n,"root.form.config.oauth")&&n.root.form.config.oauth[n.component.oauthProvider])s.provider=e.provider,s.redirectURI=o,s.triggeredBy=n.oauthComponentPath,f=n.root.formio.makeRequest("oauth","".concat(n.root.formio.projectUrl,"/oauth2"),"POST",s);else{var d={data:{},oauth:{}};d.oauth[e.provider]=s,d.oauth[e.provider].redirectURI=o,e.logoutURI&&n.root.formio.oauthLogoutURI(e.logoutURI),d.oauth[e.provider].triggeredBy=n.oauthComponentPath,f=n.root.formio.saveSubmission(d)}f.then(function(e){n.root.onSubmit(e,!0)}).catch(function(e){n.root.onSubmissionError(e)})}}catch(e){"SecurityError"!==e.name&&("Error"!==e.name||"Permission denied"!==e.message)&&n.root.setAlert("danger",e.message||e)}(!u||u.closed||void 0===u.closed)&&clearInterval(c)},100)}},{key:"oauthComponentPath",get:function(){var e=(0,u.getArrayFromComponentPath)(this.path);return i.default.chain(e).filter(function(e){return!i.default.isNumber(e)}).join(".").value()}},{key:"focus",value:function(){this.refs.button&&this.refs.button.focus()}},{key:"triggerCaptcha",value:function(){var e,n=this;this.root&&(this.root.everyComponent(function(r){/^(re)?captcha$/.test(r.component.type)&&"buttonClick"===r.component.eventType&&r.component.buttonKey===n.component.key&&(e=r)}),e&&e.verify("".concat(this.component.key,"Click")))}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return s.default.schema.apply(s.default,[{type:"button",label:"Submit",key:"submit",size:"md",leftIcon:"",rightIcon:"",block:!1,action:"submit",persistent:!1,disableOnInvalid:!1,theme:"primary",dataGridLabel:!0}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Button",group:"basic",icon:"stop",documentation:"/userguide/form-building/form-components#button",weight:110,schema:y.schema()}}},{key:"savedValueTypes",value:function(e){return(0,u.getComponentSavedTypes)(e)||[u.componentValueTypes.boolean]}}],r&&f(y.prototype,r),l&&f(y,l),Object.defineProperty(y,"prototype",{writable:!1}),y}(l.default);n.default=y},92957:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(14483);var o=a(r(71125)),i=a(r(2890));
1function a(e){return e&&e.__esModule?e:{default:e}}var l=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"hideLabel",customConditional:function(e){var n,r;return null===(n=e.instance.options)||void 0===n?void 0:null===(r=n.flags)||void 0===r?void 0:r.inDataGrid}},{key:"dataGridLabel",ignore:!0},{type:"select",key:"action",label:"Action",input:!0,dataSrc:"values",weight:110,tooltip:"This is the action to be performed by this button.",data:{values:[{label:"Submit",value:"submit"},{label:"Save in state",value:"saveState"},{label:"Event",value:"event"},{label:"Custom",value:"custom"},{label:"Reset",value:"reset"},{label:"OAuth",value:"oauth"},{label:"POST to URL",value:"url"}]}},{type:"select",key:"oauthProvider",label:"OAuth Provider",input:!0,dataSrc:"values",weight:111,tooltip:"The oauth provider to use to log in (8.x server only).",data:{values:[{label:"OpenID",value:"openid"},{label:"Github",value:"github"},{label:"Google",value:"google"}]},conditional:{json:{"===":[{var:"data.action"},"oauth"]}}}
vendor: 4,306 bytes, line 1
1,{type:"textfield",label:"Save in state",key:"state",weight:112,tooltip:'The state you wish to save the submission under when this button is pressed. Example "draft" would save the submission in Draft Mode.',placeholder:"submitted",input:!0,conditional:{json:{"===":[{var:"data.action"},"saveState"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"saveOnEnter",label:"Save On Enter",weight:113,tooltip:"Use the Enter key to submit form.",conditional:{json:{"===":[{var:"data.action"},"submit"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"showValidations",label:"Show Validations",weight:115,tooltip:"When the button is pressed, show any validation errors on the form.",conditional:{json:{"!==":[{var:"data.action"},"submit"]}}},{type:"textfield",label:"Button Event",key:"event",input:!0,weight:120,tooltip:"The event to fire when the button is clicked.",conditional:{json:{"===":[{var:"data.action"},"event"]}}},{type:"textfield",inputType:"url",key:"url",input:!0,weight:120,label:"Button URL",tooltip:"The URL where the submission will be sent.",placeholder:"https://example.form.io",conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"datagrid",key:"headers",input:!0,weight:130,label:"Headers",addAnother:"Add Header",tooltip:"Headers Properties and Values for your request",components:[{key:"header",label:"Header",input:!0,type:"textfield"},{key:"value",label:"Value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"textarea",key:"custom",label:"Button Custom Logic",tooltip:"The custom logic to evaluate when the button is clicked.",rows:5,editor:"ace",input:!0,weight:120,placeholder:"data['mykey'] = data['anotherKey'];",conditional:{json:{"===":[{var:"data.action"},"custom"]}}},{type:"select",key:"theme",label:"Theme",input:!0,tooltip:"The color theme of this button.",dataSrc:"values",weight:140,data:{values:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{type:"select",key:"size",label:"Size",input:!0,tooltip:"The size of this button.",dataSrc:"values",weight:150,data:{values:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}},{type:"textfield",key:"leftIcon",label:"Left Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'fa fa-plus'",weight:160},{type:"textfield",key:"rightIcon",label:"Right Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'fa fa-plus'",weight:170},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return o.default.getAvailableShortcuts(i.default.get(e,"instance.options.editForm",{}),i.default.get(e,"instance.options.editComponent",{}))}}},{type:"checkbox",key:"block",label:"Block Button",input:!0,weight:155,tooltip:"This control should span the full width of the bounding container."},{type:"checkbox",key:"disableOnInvalid",label:"Disable on Form Invalid",tooltip:"This will disable this field if the form is invalid.",input:!0,weight:620}];n.default=l},59173:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"data",components:i.default},{key:"display",components:a.default},{key:"validation",components:l.default}]].concat(n))},r(67998);var o=s(r(5956)),i=s(r(60341)),a=s(r(69197)),l=s(r(17007));function s(e){return e&&e.__esModule?e:{default:e}}},45743:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(889
110),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(3616),r(45399),r(37753),r(45945),r(789),r(31490),r(67998),r(43053),r(56613),r(65813);var i=s(r(2890)),a=r(38163),l=s(r(32802));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=d(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=y(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function h(e,n){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&h(e,n)}(d,e);var n,r,s,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(d);if(n){var i=y(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),u.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"defaultValue",get:function(){var e=this.component.name,n=p(y(d.prototype),"defaultValue",this);return e?this.component[e]||this.emptyValue:"true"===(n||this.component.defaultValue||!1).toString()}},{key:"labelClass",get:function(){var e="";return this.isInputComponent&&!this.options.inputsOnly&&this.component.validate&&this.component.validate.required&&(e+=" field-required"),"".concat(e)}},{key:"hasSetValue",get:function(){return this.hasValue()}},{key:"inputInfo",get:function(){var e=p(y(d.prototype),"elementInfo",this).call(this);return e.type="input",e.changeEvent="click",e.attr.type=this.component.inputType||"checkbox",e.attr.class="form-check-input",this.component.name&&(e.attr.name="data[".concat(this.component.name,"]")),e.attr.value=this.component.value?this.component.value:0,e.label=this.t(this.component.label,{_userInput:!0}),e.labelClass=this.labelClass,e}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"render",value:function(){return p(y(d.prototype),"render",this).call(this,this.renderTemplate("checkbox",{input:this.inputInfo,checked:this.checked,tooltip:this.interpolate(this.t(this.component.tooltip)||"",{_userInput:!0}).replace(/(?:\r\n|\r|\n)/g,"<br />")}))}},{key:"attach",value:function(e){var n=this;
vendor: 4,778 bytes, line 1
1return this.loadRefs(e,{input:"multiple"}),this.input=this.refs.input[0],this.refs.input&&(this.addEventListener(this.input,this.inputInfo.changeEvent,function(){return n.updateValue(null,{modified:!0})}),this.addShortcut(this.input)),p(y(d.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){e&&this.input&&this.removeShortcut(this.input),p(y(d.prototype),"detach",this).call(this)}},{key:"emptyValue",get:function(){return"radio"===this.component.inputType&&null}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return p(y(d.prototype),"isEmpty",this).call(this,e)||!1===e}},{key:"key",get:function(){return this.component.name?this.component.name:p(y(d.prototype),"key",this)}},{key:"getValueAt",value:function(e){return this.component.name?this.refs.input[e].checked?this.component.value:"":!!this.refs.input[e].checked}},{key:"getValue",value:function(){var e=p(y(d.prototype),"getValue",this).call(this);return this.component.name?e?this.setCheckedState(e):this.setCheckedState(this.dataValue):""===e?this.dataValue:!!e}},{key:"checked",get:function(){return this.component.name?this.dataValue===this.component.value:!!this.dataValue}},{key:"setCheckedState",value:function(e){if(this.input)return this.component.name?(this.input.value=e===this.component.value?this.component.value:0,this.input.checked=e===this.component.value?1:0):"on"===e?(this.input.value=1,this.input.checked=1):"off"===e?(this.input.value=0,this.input.checked=0):e?(this.input.value=1,this.input.checked=1):(this.input.value=0,this.input.checked=0),this.input.checked?this.input.setAttribute("checked",!0):this.input.removeAttribute("checked"),e}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setCheckedState(e),p(y(d.prototype),"setValue",this).call(this,e,n)}},{key:"getValueAsString",value:function(e){var n=this.component,r=n.name,o=n.value,a=r?i.default.isEqual(e,o):e;return this.t(a?"Yes":"No")}},{key:"updateValue",value:function(e,n){this.component.name&&n.modified&&this.dataValue===this.component.value&&(this.input.checked=0,this.input.value=0,this.dataValue="",this.updateOnChange(n,!0));var r=p(y(d.prototype),"updateValue",this).call(this,e,n);return r&&this.input&&(this.input.checked?this.input.setAttribute("checked","true"):this.input.removeAttribute("checked")),r}}],s=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{type:"checkbox",inputType:"checkbox",label:"Checkbox",key:"checkbox",dataGridLabel:!0,labelPosition:"right",value:"",name:""}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Checkbox",group:"basic",icon:"check-square",documentation:"/userguide/form-building/form-components#check-box",weight:50,schema:d.schema()}}},{key:"serverConditionSettings",get:function(){return d.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return c(c({},p(y(d),"conditionOperatorsSettings",this)),{},{operators:["isEqual"],valueComponent:function(){return{valueType:"boolean",data:{values:[{label:"Checked",value:"true"},{label:"Not Checked",value:"false"}]},type:"select"}}})}},{key:"savedValueTypes",value:function(e){e=e||{};var n=(0,a.getComponentSavedTypes)(e);return i.default.isArray(n)?n:"radio"===e.inputType?[a.componentValueTypes.string]:[a.componentValueTypes.boolean]}}],r&&f(d.prototype,r),s&&f(d,s),Object.defineProperty(d,"prototype",{writable:!1}),d}(l.default);n.default=m},60341:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0}]},69197:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(71125)),i=a(r(2890));function a(e){return e&&e.__esModule?e:{default:e}}var l=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{type:"select",input:!0,weight:350,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return o.default.getAvailableShortcuts(i.default.get(e,"instance.options.editForm",{}),i.default.get(e,"instance.options.editComponent",{}))}}},{type:"select",input:!0,key:"inputType",label:"Input Type",tooltip:"This is the input type used for this checkbox.",dataSrc:"values",weight:410,data:{values:[{label:"Checkbox",value:"checkbox"},{label:"Radio",value:"radio"}]}},{type:"textfield",input:!0,key:"name",label:"Radio Key",tooltip:"The key used to trigger the radio button toggle.",weight:420,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}}
1,{type:"textfield",input:!0,label:"Radio Value",key:"value",tooltip:"The value used with this radio button.",weight:430,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}}];n.default=l},17007:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0}]},77457:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default}]].concat(n))},r(67998);var o=a(r(53409)),i=a(r(70662));function a(e){return e&&e.__esModule?e:{default:e}}},46566:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),r(26343),r(7122),r(3616),r(789),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(20680),r(70601),r(77273),r(37753),r(44991),r(49907),r(30890),r(67998),r(43053),r(56613),r(65813);var i=l(r(2890)),a=l(r(77975));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function c(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(y,e);var n,r,l,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(y);if(n){var i=h(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y),(o=u.call(this,e,n,r)).rows=[],o}return r=[{key:"schema",get:function(){var e,n=this,r=i.default.omit(d(h(y.prototype),"schema",this),["components"]);return null===(e=r.columns)||void 0===e||e.map(function(e,o){e.components.map(function(e,a){var l=i.default.clone(e);l.internal=!0;var s=n.createComponent(l);delete s.component.internal,r.columns[o].components[a]=s.schema})}),r}},{key:"defaultSchema",get:function(){return y.schema()}},{key:"className",get:function(){return"row ".concat(d(h(y.prototype),"className",this))}}
1,{key:"columnKey",get:function(){return"column-".concat(this.id)}},{key:"init",value:function(){var e=this;d(h(y.prototype),"init",this).call(this),this.columns=[],i.default.each(this.component.columns,function(n,r){e.columns[r]=[],n.size||(n.size="md"),n.currentWidth=e.options.condensedMode?e.gridSize:n.width||0,Array.isArray(n.components)||(n.components=[]),i.default.each(n.components,function(n){var o=e.createComponent(n);o.column=r,e.columns[r].push(o)})}),this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify(),this.rows=this.groupByRow()}},{key:"labelIsHidden",value:function(){return!0}},{key:"render",value:function(){var e=this;return d(h(y.prototype),"render",this).call(this,this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map(function(n){return e.renderComponents(n)})}))}},{key:"justifyColumn",value:function(e,n){var r=i.default.every(e,function(e){return!e.visible}),o=this.component.columns[n],a=r&&e.length?0:o.width,l=!i.default.isEqual(a,o.currentWidth);return o.currentWidth=a,l}},{key:"justify",value:function(){var e=this;return this.columns.reduce(function(n,r,o){return e.justifyColumn(r,o)||n},!1)}},{key:"attach",value:function(e){var n,r,o,i=this;this.loadRefs(e,(n={},r=this.columnKey,o="multiple",(r=f(r))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var a=d(h(y.prototype),"attach",this).call(this,e);return this.refs[this.columnKey]&&this.refs[this.columnKey].forEach(function(e,n){return i.attachComponents(e,i.columns[n],i.component.columns[n].components)}),a}},{key:"gridSize",get:function(){return 12}},{key:"groupByRow",value:function(){var e=this,n=function(e){return e.component.width},r=i.default.reduce(this.components,function(r,o){var a=[].concat(s(r.stack),[o]);return i.default.sumBy(a,n)<=e.gridSize?r.stack=a:(r.rows=[].concat(s(r.rows),[r.stack]),r.stack=[o]),r},{stack:[],rows:[]});return i.default.concat(r.rows,[r.stack])}},{key:"checkData",value:function(e,n,r,o){var i=d(h(y.prototype),"checkData",this).call(this,e,n,r,o);return this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify()&&this.redraw(),i}},{key:"detach",value:function(e){d(h(y.prototype),"detach",this).call(this,e)}},{key:"destroy",value:function(){d(h(y.prototype),"destroy",this).call(this),this.columns=[]}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Columns",key:"columns",type:"columns",columns:[{components:[],width:6,offset:0,push:0,pull:0,size:"md"},{components:[],width:6,offset:0,push:0,pull:0,size:"md"}],clearOnHide:!1,input:!1,tableView:!1,persistent:!1,autoAdjust:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Columns",icon:"columns",group:"layout",documentation:"/userguide/form-building/layout-components#columns",showPreview:!1,weight:10,schema:y.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],r&&c(y.prototype,r),l&&c(y,l),Object.defineProperty(y,"prototype",{writable:!1}),y}(a.default);n.default=y},70662:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0},{weight:150,type:"datagrid",input:!0,key:"columns",label:"Column Properties",addAnother:"Add Column",tooltip:"The size and width settings for each column. One row is equal to 12. (e.g., a row with two columns spanning the entire page should be 6 and 6)",reorder:!0,components:[{type:"hidden",key:"components",defaultValue:[]},{type:"select",key:"size",defaultValue:"md",label:"Size",data:{values:[{label:"xs",value:"xs"},{label:"sm",value:"sm"},{label:"md",value:"md"},{label:"lg",value:"lg"},{label:"xl",value:"xl"}]}}
1,{type:"number",key:"width",defaultValue:6,label:"Width"}]},{weight:160,type:"checkbox",label:"Auto adjust columns",tooltip:"Will automatically adjust columns based on if nested components are hidden.",key:"autoAdjust",input:!0},{key:"hideLabel",ignore:!0}]},46858:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",components:a.default}]].concat(n))},r(67998);var o=l(r(5956)),i=l(r(61337)),a=l(r(6579));function l(e){return e&&e.__esModule?e:{default:e}}},44381:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(44991),r(37753),r(49907),r(30890),r(43053),r(56613),r(65813);var i=c(r(2890)),a=r(38163),l=c(r(35849)),s=c(r(32802)),u=c(r(51824));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(m,e);var n,r,c,y=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(m);if(n){var i=h(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=y.call.apply(y,[this].concat(r))).type="container",e}return r=[{key:"addComponents",value:function(e,n){return d(h(m.prototype),"addComponents",this).call(this,this.dataValue,n)}},{key:"defaultSchema",get:function(){return m.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"templateName",get:function(){return"container"}},{key:"componentContext",value:function(){return this.dataValue}},{key:"checkData",value:function(e,n,r,o){var a=this;
1return e=e||this.rootValue,n=n||{},r=r||this.data,(o=o&&i.default.isArray(o)?o:this.getComponents()).reduce(function(r,o){return o.checkData(e,n,a.dataValue)&&r},l.default.prototype.checkData.call(this,e,n,r))}},{key:"checkChildComponentsValidity",value:function(e,n,r,o,i){return d(h(m.prototype),"checkChildComponentsValidity",this).call(this,e,n,this.dataValue,o,i)}},{key:"focus",value:function(){var e=(0,a.getFocusableElements)(this.element);e&&e[0]&&e[0].focus()}},{key:"checkConditions",value:function(e,n,r){var o=this,i=s.default.prototype.checkConditions.call(this,e,n,r);return this.getComponents().forEach(function(r){return r.checkConditions(e,n,o.dataValue)}),i}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return u.default.schema.apply(u.default,[{label:"Container",type:"container",key:"container",clearOnHide:!0,input:!0,tree:!0,hideLabel:!0,components:[]}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Container",icon:"folder-open",group:"data",documentation:"/userguide/form-building/data-components#container",showPreview:!1,weight:10,schema:m.schema()}}},{key:"savedValueTypes",value:function(e){return(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes.object]}}],r&&f(m.prototype,r),c&&f(m,c),Object.defineProperty(m,"prototype",{writable:!1}),m}(u.default);n.default=y},6579:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{key:"allowCalculateOverride",ignore:!0},{key:"defaultValue",ignore:!0}]},61337:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0}]},29979:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var l=o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:a.default}]].concat(n));return l.components=[{weight:0,type:"textarea",editor:"ckeditor",label:"Content",hideLabel:!0,input:!0,key:"html",as:"html",rows:3,tooltip:"The HTML template for the result data items."}].concat(l.components),l},r(67998);var o=l(r(5956)),i=l(r(65684)),a=l(r(47591));function l(e){return e&&e.__esModule?e:{default:e}}},33325:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(43053),r(56613),r(65813);var i=s(r(35849)),a=s(r(2890)),l=s(r(32780));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=d(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(h,e);var n,r,s,p=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(h);if(n){var i=d(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h),p.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.html||"Content";var e=a.default.get(this.root,"submission",{});return this.component.html?this.interpolate(this.component.html,{metadata:e.metadata||{}
vendor: 4,296 bytes, line 1
1,submission:e,data:this.rootValue,row:this.data}):""}},{key:"render",value:function(){return c(d(h.prototype),"render",this).call(this,this.renderTemplate("html",{tag:"div",attrs:[],content:this.content}))}},{key:"dataReady",get:function(){var e;return(null===(e=this.root)||void 0===e?void 0:e.submissionReady)||l.default.resolve()}},{key:"attach",value:function(e){var n=this;return this.loadRefs(e,{html:"single"}),this.dataReady.then(function(){n.refs.html&&n.setContent(n.refs.html,n.content)}),this.component.refreshOnChange&&this.on("change",function(){n.refs.html&&n.setContent(n.refs.html,n.content)},!0),c(d(h.prototype),"attach",this).call(this,e)}},{key:"emptyValue",get:function(){return""}}],s=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{label:"Content",type:"content",key:"content",input:!1,html:""}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Content",group:"layout",icon:"html5",preview:!1,documentation:"/userguide/form-building/layout-components#content",weight:5,schema:h.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],r&&u(h.prototype,r),s&&u(h,s),Object.defineProperty(h,"prototype",{writable:!1}),h}(i.default);n.default=p},65684:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.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},{weight:700,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},47591:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{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:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"html",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:30,input:!0,customConditional:function(e){return"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}}]}]}]}]},29780:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"data",components:a.default},{key:"validation",components:[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0}]}]].concat(n))},r(67998);var o=l(r(22080)),i=l(r(51992)),a=l(r(50225));function l(e){return e&&e.__esModule?e:{default:e}}},33645:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(11414),r(41135),r(28839),r(88910),r(7122),r(3616),r(26343),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18666),r(33546),r(88852),r(789),r(31490),r(88754),r(67998),r(55096),r(70601),r(20680),r(14576),r(21587),r(43053),r(56613),r(65813);var i=r(15236),a=r(23436),l=c(r(2890)),s=r(38163),u=c(r(55925));
1function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){if(e){if("string"==typeof e)return d(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,n)}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function p(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=m(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,n){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(b,e);var n,r,c,v=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=m(b);if(n){var i=m(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(e,n,r){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,b),e&&!e.hasOwnProperty("delimiter")&&(e.delimiter=!0),v.call(this,e,n,r)}return r=[{key:"createNumberMask",value:function(){var e=l.default.get(this.component,"decimalLimit",2),n=(0,s.getCurrencyAffixes)({currency:this.component.currency,decimalLimit:e,decimalSeparator:this.decimalSeparator,lang:this.options.language});return this.currencyPrefix=this.options.prefix||n.prefix,this.currencySuffix=this.options.suffix||n.suffix,(0,i.createNumberMask)({prefix:this.currencyPrefix,suffix:this.currencySuffix,thousandsSeparatorSymbol:l.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol
1:l.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:e,allowNegative:l.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"isDecimalAllowed",value:function(){return l.default.get(this.component,"allowDecimal",!0)}},{key:"setInputMask",value:function(e){var n=(0,s.getCurrencyAffixes)({currency:this.component.currency,decimalSeparator:this.decimalSeparator,lang:this.options.language}),r="".concat(n.prefix,"[0-9");r+=(this.decimalSeparator||"")+(this.delimiter||"")+"]*",e.setAttribute("pattern",r),e.mask=(0,a.maskInput)({inputElement:e,mask:this.numberMask||"",pipe:function(n){return"$0._"===n&&setTimeout(function(){var n=e.value.length-1;e.setSelectionRange(n,n)}),n},shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"parseNumber",value:function(e){return h(m(b.prototype),"parseNumber",this).call(this,this.stripPrefixSuffix(e))}},{key:"parseValue",value:function(e){return h(m(b.prototype),"parseValue",this).call(this,this.stripPrefixSuffix(e))}},{key:"addZerosAndFormatValue",value:function(e){if(e||0===e){var n,r=l.default.get(this.component,"decimalLimit",2),o="",i=[],a=!!this.currencyPrefix&&e.includes(this.currencyPrefix),s=!!this.currencySuffix&&e.includes(this.currencySuffix),u=e.includes("-")||!1;
1if((e=this.stripPrefixSuffix(u?e.replace("-",""):e)).includes(this.decimalSeparator)){var c,p,y=function(e){if(Array.isArray(e))return e}(c=e.split(this.decimalSeparator))||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(c,2)||f(c,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();n=y[0],i=function(e){if(Array.isArray(e))return d(e)}(p=(o=y[1]).split(""))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(p)||f(p)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}else n=e;if(o.length<r)for(;i.length<r;)i.push("0");var v="".concat(u?"-":"").concat(a?this.currencyPrefix:"").concat(n).concat(this.decimalSeparator).concat(i.join("")).concat(s?this.currencySuffix:"");return h(m(b.prototype),"formatValue",this).call(this,v)}}},{key:"getValueAsString",value:function(e,n){var r=this,o=h(m(b.prototype),"getValueAsString",this).call(this,e,n);return e||"0"==e?Array.isArray(e)?e.map(function(e){return r.addZerosAn
vendor: 4,716 bytes, line 1
1dFormatValue(h(m(b.prototype),"getValueAsString",r).call(r,e,n))}).join(", "):this.addZerosAndFormatValue(o):o}},{key:"formatValue",value:function(e){return e||"0"===e?this.addZerosAndFormatValue(e):h(m(b.prototype),"formatValue",this).call(this,e)}},{key:"stripPrefixSuffix",value:function(e){if("string"==typeof e)try{var n=!!this.currencyPrefix&&e.includes(this.currencyPrefix),r=!!this.currencySuffix&&e.includes(this.currencySuffix),o=e.includes(this.delimiter),i=e.includes(this.decimalSeparator);this.currencyPrefix&&(e=e.replace(this.currencyPrefix,"")),this.currencySuffix&&(e=e.replace(this.currencySuffix,"")),(n||r)&&!o&&!i&&(Number.isNaN(+e)||!e)&&(e="0")}catch(e){}return e}},{key:"addFocusBlurEvents",value:function(e){var n=this;h(m(b.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"focus",function(){e.defaultValue===e.value&&e.setSelectionRange(0,e.defaultValue.length)}),this.addEventListener(e,"blur",function(){e.value=n.getValueAsString(n.addZerosAndFormatValue(n.parseValue(e.value)))})}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return u.default.schema.apply(u.default,[{type:"currency",label:"Currency",key:"currency"}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Currency",group:"advanced",icon:"usd",documentation:"/userguide/form-building/advanced-components#currency",weight:70,schema:b.schema()}}}],r&&p(b.prototype,r),c&&p(b,c),Object.defineProperty(b,"prototype",{writable:!1}),b}(u.default);n.default=v},50225:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",input:!0,weight:50,key:"currency",label:"Currency",tooltip:"The currency to use in currency formatting. Possible values are (ISO-4217) currency codes.",defaultValue:"USD",dataSrc:"values",data:{values:[{label:"US Dollar (USD)",value:"USD"},{label:"Euro (EUR)",value:"EUR"},{label:"Pound Sterling (GBP)",value:"GBP"},{label:"Australian Dollar (AUD)",value:"AUD"},{label:"Afghani (AFN)",value:"AFN"},{label:"Lek (ALL)",value:"ALL"},{label:"Algerian Dinar (DZD)",value:"DZD"},{label:"Kwanza (AOA)",value:"AOA"},{label:"East Caribbean Dollar (XCD)",value:"XCD"},{label:"Argentine Peso (ARS)",value:"ARS"},{label:"Armenian Dram (AMD)",value:"AMD"},{label:"Aruban Florin (AWG)",value:"AWG"},{label:"Azerbaijan Manat (AZN)",value:"AZN"},{label:"Bahamian Dollar (BSD)",value:"BSD"},{label:"Bahraini Dinar (BHD)",value:"BHD"},{label:"Taka (BDT)",value:"BDT"},{label:"Barbados Dollar (BBD)",value:"BBD"},{label:"Belarusian Ruble (BYN)",value:"BYN"},{label:"Belize Dollar (BZD)",value:"BZD"},{label:"CFA Franc BCEAO (XOF)",value:"XOF"},{label:"Bermudian Dollar (BMD)",value:"BMD"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Ngultrum (BTN)",value:"BTN"},{label:"Boliviano (BOB)",value:"BOB"},{label:"Mvdol (BOV)",value:"BOV"},{label:"Convertible Mark (BAM)",value:"BAM"},{label:"Pula (BWP)",value:"BWP"},{label:"Norwegian Krone (NOK)",value:"NOK"},{label:"Brazilian Real (BRL)",value:"BRL"},{label:"Brunei Dollar (BND)",value:"BND"},{label:"Bulgarian Lev (BGN)",value:"BGN"},{label:"Burundi Franc (BIF)",value:"BIF"},{label:"Cabo Verde Escudo (CVE)",value:"CVE"},{label:"Riel (KHR)",value:"KHR"},{label:"CFA Franc BEAC (XAF)",value:"XAF"},{label:"Canadian Dollar (CAD)",value:"CAD"},{label:"Cayman Islands Dollar (KYD)",value:"KYD"},{label:"Chilean Peso (CLP)",value:"CLP"},{label:"Unidad de Fomento (CLF)",value:"CLF"},{label:"Yuan Renminbi (CNY)",value:"CNY"},{label:"Colombian Peso (COP)",value:"COP"},{label:"Unidad de Valor Real (COU)",value:"COU"},{label:"Comorian Franc (KMF)",value:"KMF"},{label:"Congolese Franc (CDF)",value:"CDF"},{label:"New Zealand Dollar (NZD)",value:"NZD"},{label:"Costa Rican Colon (CRC)",value:"CRC"},{label:"Kuna (HRK)",value:"HRK"},{label:"Cuban Peso (CUP)",value:"CUP"},{label:"Peso Convertible (CUC)",value:"CUC"},{label:"Netherlands Antillean Guilder (ANG)",value:"ANG"},{label:"Czech Koruna (CZK)",value:"CZK"},{label:"Danish Krone (DKK)",value:"DKK"},{label:"Djibouti Franc (DJF)",value:"DJF"},{label:"Dominican Peso (DOP)",value:"DOP"},{label:"Egyptian Pound (EGP)",value:"EGP"},{label:"El Salvador Colon (SVC)",value:"SVC"},{label:"Nakfa (ERN)",value:"ERN"},{label:"Ethiopian Birr (ETB)",value:"ETB"},{label:"Falkland Islands Pound (FKP)",value:"FKP"},{label:"Fiji Dollar (FJD)",value:"FJD"},{label:"CFP Franc (XPF)",value:"XPF"},{label:"Dalasi (GMD)",value:"GMD"},{label:"Lari (GEL)",value:"GEL"},{label:"Ghana Cedi (GHS)",value:"GHS"},{label:"Gibraltar Pound (GIP)",value:"GIP"},{label:"Quetzal (GTQ)",value:"GTQ"},{label:"Guinean Franc (GNF)",value:"GNF"},{label:"Guyana Dollar (GYD)",value:"GYD"}
1,{label:"Gourde (HTG)",value:"HTG"},{label:"Lempira (HNL)",value:"HNL"},{label:"Hong Kong Dollar (HKD)",value:"HKD"},{label:"Forint (HUF)",value:"HUF"},{label:"Iceland Krona (ISK)",value:"ISK"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Rupiah (IDR)",value:"IDR"},{label:"SDR (Special Drawing Right) (XDR)",value:"XDR"},{label:"Iranian Rial (IRR)",value:"IRR"},{label:"Iraqi Dinar (IQD)",value:"IQD"},{label:"New Israeli Sheqel (ILS)",value:"ILS"},{label:"Jamaican Dollar (JMD)",value:"JMD"},{label:"Yen (JPY)",value:"JPY"},{label:"Jordanian Dinar (JOD)",value:"JOD"},{label:"Tenge (KZT)",value:"KZT"},{label:"Kenyan Shilling (KES)",value:"KES"},{label:"North Korean Won (KPW)",value:"KPW"},{label:"Won (KRW)",value:"KRW"},{label:"Kuwaiti Dinar (KWD)",value:"KWD"},{label:"Som (KGS)",value:"KGS"},{label:"Lao Kip (LAK)",value:"LAK"},{label:"Lebanese Pound (LBP)",value:"LBP"},{label:"Loti (LSL)",value:"LSL"},{label:"Rand (ZAR)",value:"ZAR"},{label:"Liberian Dollar (LRD)",value:"LRD"},{label:"Libyan Dinar (LYD)",value:"LYD"},{label:"Swiss Franc (CHF)",value:"CHF"},{label:"Pataca (MOP)",value:"MOP"},{label:"Denar (MKD)",value:"MKD"},{label:"Malagasy Ariary (MGA)",value:"MGA"},{label:"Malawi Kwacha (MWK)",value:"MWK"},{label:"Malaysian Ringgit (MYR)",value:"MYR"},{label:"Rufiyaa (MVR)",value:"MVR"},{label:"Ouguiya (MRU)",value:"MRU"},{label:"Mauritius Rupee (MUR)",value:"MUR"},{label:"ADB Unit of Account (XUA)",value:"XUA"},{label:"Mexican Peso (MXN)",value:"MXN"},{label:"Mexican Unidad de Inversion (UDI) (MXV)",value:"MXV"},{label:"Moldovan Leu (MDL)",value:"MDL"},{label:"Tugrik (MNT)",value:"MNT"},{label:"Moroccan Dirham (MAD)",value:"MAD"},{label:"Mozambique Metical (MZN)",value:"MZN"},{label:"Kyat (MMK)",value:"MMK"},{label:"Namibia Dollar (NAD)",value:"NAD"},{label:"Nepalese Rupee (NPR)",value:"NPR"},{label:"Cordoba Oro (NIO)",value:"NIO"},{label:"Naira (NGN)",value:"NGN"},{label:"Rial Omani (OMR)",value:"OMR"},{label:"Pakistan Rupee (PKR)",value:"PKR"},{label:"Balboa (PAB)",value:"PAB"},{label:"Kina (PGK)",value:"PGK"},{label:"Guarani (PYG)",value:"PYG"},{label:"Sol (PEN)",value:"PEN"},{label:"Philippine Peso (PHP)",value:"PHP"},{label:"Zloty (PLN)",value:"PLN"},{label:"Qatari Rial (QAR)",value:"QAR"},{label:"Romanian Leu (RON)",value:"RON"},{label:"Russian Ruble (RUB)",value:"RUB"},{label:"Rwanda Franc (RWF)",value:"RWF"}
vendor: 4,300 bytes, line 1
1,{label:"Saint Helena Pound (SHP)",value:"SHP"},{label:"Tala (WST)",value:"WST"},{label:"Dobra (STN)",value:"STN"},{label:"Saudi Riyal (SAR)",value:"SAR"},{label:"Serbian Dinar (RSD)",value:"RSD"},{label:"Seychelles Rupee (SCR)",value:"SCR"},{label:"Leone (SLL)",value:"SLL"},{label:"Singapore Dollar (SGD)",value:"SGD"},{label:"Sucre (XSU)",value:"XSU"},{label:"Solomon Islands Dollar (SBD)",value:"SBD"},{label:"Somali Shilling (SOS)",value:"SOS"},{label:"South Sudanese Pound (SSP)",value:"SSP"},{label:"Sri Lanka Rupee (LKR)",value:"LKR"},{label:"Sudanese Pound (SDG)",value:"SDG"},{label:"Surinam Dollar (SRD)",value:"SRD"},{label:"Lilangeni (SZL)",value:"SZL"},{label:"Swedish Krona (SEK)",value:"SEK"},{label:"WIR Euro (CHE)",value:"CHE"},{label:"WIR Franc (CHW)",value:"CHW"},{label:"Syrian Pound (SYP)",value:"SYP"},{label:"New Taiwan Dollar (TWD)",value:"TWD"},{label:"Somoni (TJS)",value:"TJS"},{label:"Tanzanian Shilling (TZS)",value:"TZS"},{label:"Baht (THB)",value:"THB"},{label:"Pa’anga (TOP)",value:"TOP"},{label:"Trinidad and Tobago Dollar (TTD)",value:"TTD"},{label:"Tunisian Dinar (TND)",value:"TND"},{label:"Turkish Lira (TRY)",value:"TRY"},{label:"Turkmenistan New Manat (TMT)",value:"TMT"},{label:"Uganda Shilling (UGX)",value:"UGX"},{label:"Hryvnia (UAH)",value:"UAH"},{label:"UAE Dirham (AED)",value:"AED"},{label:"US Dollar (Next day) (USN)",value:"USN"},{label:"Peso Uruguayo (UYU)",value:"UYU"},{label:"Uruguay Peso en Unidades Indexadas (UYI)",value:"UYI"},{label:"Unidad Previsional (UYW)",value:"UYW"},{label:"Uzbekistan Sum (UZS)",value:"UZS"},{label:"Vatu (VUV)",value:"VUV"},{label:"Bol\xedvar Soberano (VES)",value:"VES"},{label:"Dong (VND)",value:"VND"},{label:"Yemeni Rial (YER)",value:"YER"},{label:"Zambian Kwacha (ZMW)",value:"ZMW"},{label:"Zimbabwe Dollar (ZWL),",value:"ZWL"}]}}]},51992:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0},{type:"textfield",input:!0,weight:310,key:"prefix",label:"prefix",tooltip:"Specify the prefix symbol after the component (e.g.: USD, EUR)"},{type:"textfield",input:!0,weight:320,key:"suffix",label:"suffix",tooltip:"Specify the suffix symbol after the component (e.g.: USD, EUR)."}]},84276:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(67998);var o=s(r(5956)),i=s(r(25942)),a=s(r(96693)),l=s(r(76989));function s(e){return e&&e.__esModule?e:{default:e}}},39453:function(e,n,r){"use strict";r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(28656),r(11414),r(41135),r(28839),r(88910),r(26343),r(33559),r(78089),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(70601),r(20680),r(44991),r(37753),r(7122),r(33546),r(45399),r(45945),r(48510),r(49907),r(30890),r(56613),r(80319),r(41967),r(97599),r(89352),r(3616),r(789),r(31490),r(70776),r(86328),r(28065),r(43053),r(65813);var o,i=s(r(2890)),a=s(r(40618)),l=r(38163);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){O(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(e,n){return p(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}
1finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(e,n)||m(e,n)||d()}function d(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e){if(Array.isArray(e))return e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||v(e)||m(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){if(e){if("string"==typeof e)return b(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,n)}}function v(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function g(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,P(o.key),o)}}function w(e,n,r,o){return(w="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=_(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else O(o,n,r);return!0})(e,n,r,o)}function k(e,n,r,o,i){if(!w(e,n,r,o||e)&&i)throw Error("failed to set property");return r}function O(e,n,r){return(n=P(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function P(e){var n=function(e,n){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==h(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===h(n)?n:String(n)}function j(){return(j="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=_(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function _(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=C(e)););return e}function S(e,n){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}o=r(70153);var E=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&S(e,n)}(b,e);var n,r,s,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=C(b);if(n){var o=C(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,b);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=u.call.apply(u,[this].concat(r))).type="datagrid",e.tabIndex=0,e}return r=[{key:"init",value:function(){this.components=this.components||[],this.rows=[],this.columns=y(this.component.components),(this.initRows||!i.default.isEqual(this.dataValue,this.emptyValue))&&this.createRows(!0),this.visibleColumns={},this.prevHasAddButton=this.hasAddButton(),this.checkColumns()}},{key:"dataValue",get:function(){var e=j(C(b.prototype),"dataValue",this);return e&&Array.isArray(e)?e:this.emptyValue},set:function(e){k(C(b.prototype),"dataValue",e,this,!0)}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"initEmpty",get:function(){return this.component.initEmpty||this.component.noFirstRow}},{key:"initRows",get:function(){return this.builderMode||"defaultValue"===this.path||!this.initEmpty}},{key:"emptyValue",get:function(){return this.initEmpty?[]:[{}]}},{key:"addAnotherPosition",get:function(){return i.default.get(this.component,"addAnotherPosition","bottom")}},{key:"minLength",get:function(){return this.hasRowGroups()?i.default.sum(this.getGroupSizes()):i.default.get(this.component,"validate.minLength",0)}},{key:"defaultValue",get:function(){var e,n=this.builderMode,r=this.initEmpty;if(n||r&&!this.dataValue.length)return r&&!n?[]:[{}];var o=j(C(b.prototype),"defaultValue",this);e=Array.isArray(o)?o:o&&"object"===h(o)?[o]:this.emptyValue;for(var i=e.length;i<this.minLength;i++)e.push({});return e}},{key:"disabled",get:function(){return j(C(b.prototype),"disabled",this)},set:function(e){k(C(b.prototype),"disabled",e,this,!0),i.default.each(this.refs["".concat(this.datagridKey,"-addRow")],function(n){n.disabled=e}),i.default.each(this.refs["".concat(this.datagridKey,"-removeRow")],function(n){n.disabled=e})}},{key:"datagridKey",get:function(){return"datagrid-".concat(this.key)}},{key:"allowReorder",get:function(){return!this.options.readOnly&&i.default.get(this.component,"reorder",!1)}},{key:"iteratableRows",get:function(){var e=this;return this.rows.map(function(n,r){return{components:n,data:e.dataValue[r]}})}},{key:"isEmpty",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,r=j(C(b.prototype),"isEmpty",this).call(this,n);return null!==(e=this.components)&&void 0!==e&&e.length?this.components.reduce(function(e,n){return e&&n.isEmpty()},!0):r}},{key:"getRowChunks",value:function(e,n){var r=e.reduce(function(e,n){var r=f(e,2),o=r[0],i=r[1],a=o+n;return[a,[].concat(y(i),[[o,a]])]},[0,[]]);return f(r,2)[1].map(function(e){return i.default.slice.apply(i.default,[n].c
vendor: 4,133 bytes, line 1
1oncat(y(e)))})}},{key:"getGroups",value:function(){var e=i.default.get(this.component,"rowGroups",[]),n=i.default.map(e,"numberOfRows").slice(0,-1).reduce(function(e,n){var r=e[e.length-1];return e.concat(r+n)},[0]);return e.reduce(function(e,r,o){return c(c({},e),{},O({},n[o],r))},{})}},{key:"getGroupSizes",value:function(){return i.default.map(i.default.get(this.component,"rowGroups",[]),"numberOfRows")}},{key:"hasRowGroups",value:function(){return i.default.get(this,"component.enableRowGroups",!1)&&!this.builderMode}},{key:"totalRowsNumber",value:function(e){return i.default.sum(i.default.map(e,"numberOfRows"))}},{key:"setStaticValue",value:function(e){this.dataValue=i.default.range(e).map(function(){return{}})}},{key:"hasExtraColumn",value:function(){return this.hasRemoveButtons()||this.canAddColumn}},{key:"hasRemoveButtons",value:function(){return!this.builderMode&&!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>i.default.get(this.component,"validate.minLength",0)}},{key:"hasTopSubmit",value:function(){return this.hasAddButton()&&["top","both"].includes(this.addAnotherPosition)}},{key:"hasBottomSubmit",value:function(){return this.hasAddButton()&&["bottom","both"].includes(this.addAnotherPosition)}},{key:"canAddColumn",get:function(){return this.builderMode&&!this.options.design}},{key:"render",value:function(){var e=this.getColumns(),n=0,r=this.hasRemoveButtons();this.component.reorder&&n++,r&&n++,this.canAddColumn&&n++;var o=Math.floor(12/(e.length+n));return j(C(b.prototype),"render",this).call(this,this.renderTemplate("datagrid",{rows:this.getRows(),columns:e,groups:this.hasRowGroups()?this.getGroups():[],visibleColumns:this.visibleColumns,hasToggle:i.default.get(this,"component.groupToggle",!1),hasHeader:this.hasHeader(),hasExtraColumn:this.hasExtraColumn(),hasAddButton:this.hasAddButton(),hasRemoveButtons:r,hasTopSubmit:this.hasTopSubmit(),hasBottomSubmit:this.hasBottomSubmit(),hasGroups:this.hasRowGroups(),numColumns:e.length+(this.hasExtraColumn()?1:0),datagridKey:this.datagridKey,allowReorder:this.allowReorder,builder:this.builderMode,canAddColumn:this.canAddColumn,tabIndex:this.tabIndex,placeholder:this.renderTemplate("builderPlaceholder",{position:this.componentComponents.length}),colWidth:o.toString()}))}},{key:"getRows",value:function(){return this.rows.map(function(e){var n={};return i.default.each(e,function(e,r){n[r]=e.render()}),n})}},{key:"getColumns",value:function(){var e=this;return this.columns.filter(function(n){return!e.visibleColumns.hasOwnProperty(n.key)||e.visibleColumns[n.key]})}},{key:"hasHeader",value:function(){return this.component.components.reduce(function(e,n){return e||(n.label||n.title)&&!n.hideLabel},!1)}},{key:"loadRefs",value:function(e,n){if(j(C(b.prototype),"loadRefs",this).call(this,e,n),"single"===n.messageContainer){var r=i.default.last(e.querySelectorAll("[ref=messageContainer]"));this.refs.messageContainer=r||this.refs.messageContainer}}},{key:"attach",value:function(e){var n,r=this;this.loadRefs(e,(O(n={},"".concat(this.datagridKey,"-row"),"multiple"),O(n,"".concat(this.datagridKey,"-tbody"),"single"),O(n,"".concat(this.datagridKey,"-addRow"),"multiple"),O(n,"".concat(this.datagridKey,"-removeRow"),"multiple"),O(n,"".concat(this.datagridKey,"-group-header"),"multiple"),O(n,this.datagridKey,"multiple"),O(n,"messageContainer","single"),n)),this.allowReorder&&(this.refs["".concat(this.datagridKey,"-row")].forEach(function(e,n){e.dragInfo={index:n}}),o&&(this.dragula=o([this.refs["".concat(this.datagridKey,"-tbody")]],{moves:function(e,n,r){var o=r.getAttribute("data-key");if(n.getAttribute("data-key")===o)return r.classList.contains("formio-drag-button")}}).on("drop",this.onReorder.bind(this)),this.dragula.on("cloned",function(e,n){e&&e.children&&n&&n.children&&i.default.each(n.children,function(n,r){var o=getComputedStyle(n,null);if(""!==o.cssText)e.children[r].style.cssText=o.cssText;else{var i=Object.values(o).reduce(function(e,n){return"".concat(e).concat(n,":").concat(o.getPropertyValue(n),";")},"");e.children[r].style.cssText=i}})}
1))),this.refs["".concat(this.datagridKey,"-addRow")].forEach(function(e){r.addEventListener(e,"click",r.addRow.bind(r))}),this.refs["".concat(this.datagridKey,"-removeRow")].forEach(function(e,n){r.addEventListener(e,"click",r.removeRow.bind(r,n))}),this.hasRowGroups()&&(this.refs.chunks=this.getRowChunks(this.getGroupSizes(),this.refs["".concat(this.datagridKey,"-row")]),this.refs["".concat(this.datagridKey,"-group-header")].forEach(function(e,n){r.addEventListener(e,"click",function(){return r.toggleGroup(e,n)})}));var a=this.getColumns(),l=a.length;return this.rows.forEach(function(e,n){var o=0;a.forEach(function(e){r.attachComponents(r.refs[r.datagridKey][n*l+o],[r.rows[n][e.key]],r.getComponentsContainer()),o++})}),j(C(b.prototype),"attach",this).call(this,e)}},{key:"getComponentsContainer",value:function(){return this.component.components}},{key:"onReorder",value:function(e,n,r,o){if(!e.dragInfo||o&&!o.dragInfo){console.warn("There is no Drag Info available for either dragged or sibling element");return}var i=e.dragInfo.index,a=o?o.dragInfo.index:this.dataValue.length,s=a>i,u=(0,l.fastCloneDeep)(this.dataValue),c=u[i];u.splice(a,0,c),u.splice(s?i:i+1,1),this.setValue(u,{isReordered:!0}),this.rebuild()}},{key:"focusOnNewRowElement",value:function(e){Object.keys(e).find(function(n){var r=e[n].element;if(r){var o=(0,l.getFocusableElements)(r);if(o&&o[0])return o[0].focus(),!0}return!1})}},{key:"addRow",value:function(){var e,n=this,r=this.rows.length;this.dataValue.length===r&&this.dataValue.push({});var o=this.dataValue,i=this.defaultValue;this.initEmpty&&i[r]?(e=i[r],o[r]=e):e=o[r],this.rows[r]=this.createRowComponents(e,r),this.emit("dataGridAddRow",{component:this.component,row:e}),this.checkConditions(),this.triggerChange(),this.redraw().then(function(){n.focusOnNewRowElement(n.rows[r])})}},{key:"updateComponentsRowIndex",value:function(e,n){var r=this;e.forEach(function(e,o){var i;if(null!==(i=e.options)&&void 0!==i&&i.name){var a="[".concat(r.key,"][").concat(n,"]");e.options.name=e.options.name.replace("[".concat(r.key,"][").concat(e.rowIndex,"]"),a)}e.rowIndex=n,e.row="".concat(n,"-").concat(o),e.path=r.calculateComponentPath(e)})}},{key:"updateRowsComponents",value:function(e){var n=this;this.rows.slice(e).forEach(function(r,o){n.updateComponentsRowIndex(Object.values(r),e+o)})}},{key:"removeRow",value:function(e){var n=0===e&&1===this.rows.length,r={isReordered:!n,resetValue:n};this.splice(e,r),this.emit("dataGridDeleteRow",{index:e});var o=f(this.rows.splice(e,1),1)[0];this.removeSubmissionMetadataRow(e),this.removeRowComponents(o),this.updateRowsComponents(e),this.setValue(this.dataValue,r),this.redraw()}},{key:"removeRowComponents",value:function(e){var n=this;i.default.each(e,function(e){return n.removeComponent(e)})}},{key:"getRowValues",value:function(){return this.dataValue}},{key:"setRowComponentsData",value:function(e,n){i.default.each(this.rows[e],function(e){e.data=n})}},{key:"createRows",value:function(e,n){var r=this,o=!1,i=this.getRowValues();i.forEach(function(e,i){!n&&r.rows[i]?r.setRowComponentsData(i,e):(r.rows[i]&&r.removeRowComponents(r.rows[i]),r.rows[i]=r.createRowComponents(e,i),o=!0)});var a=this.rows.splice(i.length),l=!!a.length;return l&&a.forEach(function(e){return r.removeRowComponents(e)}),!e&&(o||l)&&this.redraw(),o}},{key:"createRowComponents",value:function(e,n){var r=this,o={};return this.tabIndex=0,this.component.components.map(function(a,l){var s,u=i.default.clone(r.options);u.name+="[".concat(n,"]"),u.row="".concat(n,"-").concat(l),r.builderMode?(a.id=a.id+n,s=a):s=c(c({},a),{},{id:a.id+n});var f=r.createComponent(s,u,e);f.parentDisabled=!!r.disabled,f.rowIndex=n,f.inDataGrid=!0,s.tabindex&&parseInt(s.tabindex)>r.tabIndex&&(r.tabIndex=parseInt(s.tabindex)),o[a.key]=f}),o}}
vendor: 5,180 bytes, line 1
1,{key:"checkValidity",value:function(e,n,r,o){if(e=e||this.rootValue,r=r||this.data,!this.checkCondition(r,e))return this.setCustomValidity(""),!0;if(!this.checkComponentValidity(e,n,r,{silentCheck:o}))return!1;var i=this.checkRows("checkValidity",e,n,!0,o);return this.checkModal(i,n),i}},{key:"checkColumns",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=e||this.rootValue;var o=!1;if(!this.rows||!this.rows.length)return{rebuild:!1,show:!1};if(this.builderMode)return{rebuild:!1,show:!0};var a={},l=!1,s=this.dataValue;this.rows.forEach(function(o,u){i.default.each(o,function(o,c){if(o&&"function"==typeof o.checkConditions){var f=void 0===a[c];if(a[c]=!!a[c]||o.checkConditions(e,r,s[u])&&"hidden"!==o.type,o.component.logic&&f){var d=i.default.findIndex(n.columns,["key",c]);i.default.isEqual(n.columns[d],o.component)||(l=!0,n.columns[d]=o.component)}}})});var u=!i.default.isEqual(a,this.visibleColumns)||l;return i.default.each(a,function(e){o|=e}),this.visibleColumns=a,{rebuild:u,show:o}}},{key:"checkComponentConditions",value:function(e,n,r){var o=this.visible;if(!j(C(b.prototype),"checkComponentConditions",this).call(this,e,n,r))return!1;var i=this.checkColumns(e,n),a=i.rebuild,l=i.show;return(a||!o)&&this.createRows(!1,a),l}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return this.dataValue=this.defaultValue,this.createRows(),!1;Array.isArray(e)||("object"===h(e)?e=[e]:(this.createRows(),e=[{}])),!e||e.length||this.initEmpty||e.push({});var o=r.fromSubmission&&!i.default.isEqual(e,this.emptyValue),a=this.hasChanged(e,this.dataValue);return this.dataValue=e,(this.initRows||o||Array.isArray(this.dataValue)&&this.dataValue.length!==this.rows.length)&&!this.createRows()&&a&&this.redraw(),this.componentModal&&o&&this.componentModal.setValue(e),this.rows.forEach(function(o,a){e.length<=a||i.default.each(o,function(o){o.rowIndex=a,n.setNestedValue(o,e[a],r)})}),this.updateOnChange(r,a),a}},{key:"restoreComponentsContext",value:function(){var e=this;this.rows.forEach(function(n,r){return i.default.forIn(n,function(n){return n.data=e.dataValue[r]})})}},{key:"getComponent",value:function(e,n){var r,o=p(r=e=Array.isArray(e)?e:[e])||v(r)||m(r)||d(),a=o[0],l=o.slice(1),s=[];if(i.default.isNumber(a)&&l.length){var u=l.pop();return((s=this.rows[a][u])||Object.entries(this.rows[a]).forEach(function(e){var r=f(e,2)[1];if("getComponent"in r){var o=r.getComponent([u],n);o&&(s=o)}}),s&&i.default.isFunction(n)&&n(s,this.getComponents()),l.length&&"getComponent"in s)?s.getComponent(l,n):s}return i.default.isString(a)?(this.everyComponent(function(e,r){if(e.component.key===a){var o=e;l.length>0&&"getComponent"in e?o=e.getComponent(l,n):n&&n(e,r),s=s.concat(o)}}),s.length>0?s:null):s}},{key:"toggleGroup",value:function(e,n){e.classList.toggle("collapsed"),i.default.each(this.refs.chunks[n],function(e){e.classList.toggle("hidden")})}}],s=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Data Grid",key:"dataGrid",type:"datagrid",clearOnHide:!0,input:!0,tree:!0,components:[]}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Data Grid",icon:"th",group:"data",documentation:"/userguide/form-building/data-components#data-grid",showPreview:!1,weight:30,schema:b.schema()}}}],r&&g(b.prototype,r),s&&g(b,s),Object.defineProperty(b,"prototype",{writable:!1}),b}(a.default);n.default=E},25942:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0}]},96693:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0,clearOnHide:!1,customConditional:function(e){return!e.data.enableRowGroups},calculateValue:function(e){return!!e.data.enableRowGroups||e.data.disableAddingRemovingRows}},{weight:406,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}},{type:"checkbox",label:"Allow Reorder",key:"reorder",weight:407,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return!e.data.disableAddingRemovingRows}},{type:"select",label:"Add Another Position",key:"addAnotherPosition",dataSrc:"values",tooltip:"Position for Add Another button with respect to Data Grid Array.",defaultValue:"bottom",input:!0,data:{values:[{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Both",value:"both"}]},weight:411,customConditional:function(e){return!e.data.disableAddingRemovingRows}},{type:"checkbox",label:"Equal column width",key:"layoutFixed",weight:430,input
1:!0},{key:"enableRowGroups",type:"checkbox",label:"Enable Row Groups",weight:440,input:!0},{label:"Groups",disableAddingRemovingRows:!1,defaultOpen:!1,addAnother:"",addAnotherPosition:"bottom",mask:!1,tableView:!0,alwaysEnabled:!1,type:"datagrid",input:!0,key:"rowGroups",reorder:!0,components:[{label:"Label",allowMultipleMasks:!1,showWordCount:!1,showCharCount:!1,tableView:!0,alwaysEnabled:!1,type:"textfield",input:!0,key:"label",widget:{type:""},row:"0-0"},{label:"Number of Rows",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"numberOfRows",row:"0-1"}],weight:441,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Hide Group on Header Click",type:"checkbox",input:!0,key:"groupToggle",weight:442,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Initialize Empty",type:"checkbox",input:!0,key:"initEmpty",tooltip:"The DataGrid will have no visible rows when initialized.",weight:450}]},76989:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"textfield",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"textfield",tooltip:"The maximum length requirement this field must meet.",input:!0}]},47612:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default}]].concat(n))},r(67998);var o=l(r(5956)),i=l(r(65174)),a=l(r(90199));function l(e){return e&&e.__esModule?e:{default:e}}},38073:function(e,n,r){"use strict";r(37097),r(80107),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(28656),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(20680),r(89352),r(97599),r(37753),r(66334),r(44991),r(67998),r(49907),r(30890),r(3616),r(41967),r(43053),r(56613),r(65813);var o=u(r(35849)),i=u(r(39453)),a=u(r(2890)),l=u(r(28729)),s=r(38163);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function d(e,n,r,o){return(d="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=v(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else p(o,n,r);return!0})(e,n,r,o)}function p(e,n,r){return(n=h(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function h(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==c(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===c(n)?n:String(n)}function y(e,n){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=v(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function v(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=b(e)););return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}
1),n&&y(e,n)}(h,e);var n,r,i,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=b(h);if(n){var o=b(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h),(o=u.call(this,e,n,r)).type="datamap",o}return r=[{key:"schema",get:function(){var e=m(b(h.prototype),"schema",this);return this.components&&this.components.length>0&&(e.valueComponent=this.components[this.components.length-1].schema),a.default.omit(e,"components")}},{key:"init",value:function(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns=p({key:!0},this.valueKey,!0),this.component.valueComponent.hideLabel=!0}},{key:"defaultSchema",get:function(){return h.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"dataValue",get:function(){return this.key&&(this.visible||!this.component.clearOnHide)?(!this.hasValue()&&this.shouldAddDefaultValue&&(this.dataValue=this.emptyValue),a.default.get(this.data,this.key)):this.emptyValue},set:function(e){!function(e,n,r,o,i){if(!d(e,n,r,o||e)&&i)throw Error("failed to set property")}(b(h.prototype),"dataValue",e,this,!0)}},{key:"defaultValue",get:function(){var e=m(b(h.prototype),"defaultValue",this);return Array.isArray(e)?e[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 e=this.dataValue;return this.builderMode?[e]:a.default.isEmpty(e)?[]:Object.keys(e).map(function(){return e})}},{key:"getComponentsContainer",value:function(){return this.builderMode?this.getComponents().map(function(e){return e.component}):m(b(h.prototype),"getComponentsContainer",this).call(this)}},{key:"iteratableRows",get:function(){return this.rows.map(function(e){return Object.keys(e).map(function(n){return{components:e[n],data:e[n].dataValue}})})}},{key:"componentContext",value:function(e){return this.iteratableRows[e.row].find(function(n){return n.components.key===e.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 e=Object.assign({},this.keySchema),n=Object.assign({},this.component.valueComponent);return e.hideLabel=!1,n.hideLabel=!1,this.component.keyBeforeValue?[e,n]:[n,e]}},{key:"getRowKey",value:function(e){var n=Object.keys(this.dataValue);return n[e]||(n[e]=(0,s.uniqueKey)(this.dataValue,this.defaultRowKey)),n[e]}},{key:"defaultRowKey",get:function(){return"key"}},{key:"setRowComponentsData",value:function(e,n){a.default.each(this.rows[e],function(r){"__key"===r.key?r.data={__key:Object.keys(n)[e]}:r.data=n})}},{key:"getValueAsString",value:function(e,n){var r=this;return null!=n&&n.email&&this.visible&&!this.skipInEmail&&a.default.isObject(e)?Object.keys(e).reduce(function(o,i){return o+'\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(i,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(r.getView(e[i],n),"</td>\n          </tr>\n        ")},'\n        <table border="1" style="width:100%">\n          <tbody>\n      ')+"\n          </tbody>\n        </table>\n      ":a.default.isEmpty(e)?"":null!=n&&n.modalPreview?(delete n.modalPreview,this.getDataValueAsTable(e,n)):"object"===c(e)?"[Complex Data]":e}},{key:"getDataValueAsTable",value:function(e,n){var r=this,o='\n      <table border="1" style="width:100%">\n        <tbody>\n    ';return this.visible&&a.default.isObject(e)&&Object.keys(e).forEach(function(i){o+='\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(i,'</th>\n            <td style="width:100%;padding:5px 10px;">
1').concat(r.getView(e[i],n),"</td>\n          </tr>\n        ")}),o+="\n        </tbody>\n      </table>\n    "}},{key:"createRowComponents",value:function(e,n){var r=this,o=this.builderMode?this.valueKey:this.getRowKey(n),i=a.default.clone(this.options);i.events=new l.default,i.name+="[".concat(n,"]"),i.row="".concat(n);var u={};u.__key=this.createComponent(this.keySchema,i,{__key:this.builderMode?this.defaultRowKey:o}),u.__key.on("componentChange",function(e){var n=r.dataValue,i=(0,s.uniqueKey)(n,e.value);n[i]=n[o],delete n[o];var a=u[r.valueKey];a.component.key=i,a.path=r.calculateComponentPath(a),o=i});var c=a.default.clone(this.component.valueComponent);c.key=o;var f=this.options;return f.row=i.row,u[this.valueKey]=this.createComponent(c,f,this.dataValue),u}},{key:"canAddColumn",get:function(){return!1}},{key:"addChildComponent",value:function(e){this.component.valueComponent=e}},{key:"saveChildComponent",value:function(e){e.key!==this.keySchema.key&&(this.component.valueComponent=e)}},{key:"removeChildComponent",value:function(){var e=h.schema();this.component.valueComponent=e.valueComponent}},{key:"addRow",value:function(){var e=this.rows.length;this.rows[e]=this.createRowComponents(this.dataValue,e),this.redraw(),this.triggerChange()}},{key:"removeRow",value:function(e){var n=Object.keys(this.dataValue);n[e]&&delete this.dataValue[n[e]],this.rows.splice(e,1),this.redraw(),this.triggerChange()}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.hasChanged(e,this.dataValue);return this.dataValue=e,this.createRows(),this.updateOnChange(n,r),r}},{key:"checkColumns",value:function(){return!this.builderMode&&this.dataValue&&Object.keys(this.dataValue).length&&Object.keys(this.dataValue).length>(this.rows||[]).length?{rebuild:!0,show:!0}:{rebuild:!1,show:!0}}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.schema.apply(o.default,[{label:"Data Map",key:"dataMap",type:"datamap",clearOnHide:!0,addAnother:"Add Another",disableAddingRemovingRows:!1,keyBeforeValue:!0,valueComponent:{type:"textfield",key:"value",label:"Value",input:!0},input:!0,validate:{maxLength:0,minLength:0}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Data Map",icon:"th-list",group:"data",documentation:"/userguide/form-building/data-components#data-map",showPreview:!1,weight:20,schema:h.schema()}}},{key:"savedValueTypes",value:function(e){return(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.object]}}],r&&f(h.prototype,r),i&&f(h,i),Object.defineProperty(h,"prototype",{writable:!1}),h}(i.default);n.default=g},65174:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0}]},90199:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0},{key:"tabindex",ignore:!0},{type:"textfield",label:"Label for Key column",key:"keyLabel",tooltip:"Provide a label text for Key column (otherwise 'Key' will be used)",weight:404,input:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0},{type:"checkbox",label:"Show key column before value",key:"keyBeforeValue",tooltip:"Check if you would like to show the Key before the Value column.",weight:406,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return!e.data.disableAddingRemovingRows}}]},9847:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:l.default},{label:"Date",key:"date",weight:1,components:a.default}
1,{label:"Time",key:"time",weight:2,components:s.default},{key:"data",components:i.default},{key:"validation",components:u.default}]].concat(n))},r(67998);var o=c(r(5956)),i=c(r(87857)),a=c(r(47438)),l=c(r(74107)),s=c(r(89934)),u=c(r(26284));function c(e){return e&&e.__esModule?e:{default:e}}},57800:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37097),r(80107),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(789),r(31490),r(31589),r(45399),r(37753),r(45945),r(49907),r(30890),r(64284),r(70601),r(55096),r(20680),r(71287),r(67998),r(43053),r(56613),r(65813);var i=c(r(2890)),a=c(r(62067)),l=c(r(31457)),s=r(38163),u=c(r(95306));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=h(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function y(e,n){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=v(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(h,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=v(h);if(n){var i=v(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(e,n,r){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h);var o,a=(o=f.call(this,e,n,r)).component.timezone||o.options.timezone,l=!i.default.get(o.component,"timePicker.showMeridian",!0);o.component.enableDate?o.component.enableDate&&!/[yMd]/.test(o.component.format)&&o.builderMode&&(o.component.format="yyyy-MM-dd ".concat(o.component.format)):o.component.format=o.component.format.replace(/yyyy-MM-dd /g,""),o.component.enableTime?o.component.enableTime&&!/[mhH]/.test(o.component.format)&&o.builderMode?o.component.format="".concat(o.component.format," hh:mm a"):l?o.component.format=o.component.format.replace(/hh:mm a$/g,"HH:mm"):o.component.format=o.component.format.replace(/HH:mm$/g,"hh:mm a"):o.component.format=o.component.format.replace(/ hh:mm a$/g,"");var s=o.component.customOptions||{};if("string"==typeof s)try{s=JSON.parse(s)}catch(e){console.warn(e.message),s={}}return o.component.widget=d({type:"calendar",timezone:a,displayInTimezone:i.default.get(o.component,"displayInTimezone","viewer"),locale:o.options.language,useLocaleSettings:i.default.get(o.component,"useLocaleSettings",!1),allowInput:i.default.get(o.component,"allowInput",!0),mode:"single",enableTime:i.default.get(o.component,"enableTime",!0),noCalendar:!i.default.get(o.component,"enableDate",!0),format:o.component.format,hourIncrement:i.default.get(o.component,"timePicker.hourStep",1),minuteIncrement:i.default.get(o.component,"timePicker.minuteStep",5),time_24hr:l,readOnly:o.options.readOnly,minDate:i.default.get(o.component,"datePicker.minDate"),disabledDates:i.default.get(o.component,"datePicker.disable"),disableWeekends:i.default.get(o.component,"datePicker.disableWeekends"),disableWeekdays:i.default.get(o.component,"datePicker.disableWeekdays"),disableFunction:i.default.get(o.component,"datePicker.disableFunction"),maxDate:i.default.get(o.component,"datePicker.maxDate")},s),o.validators.push("date"),o}return r=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"defaultValue",get:function(){var e=m(v(h.prototype),"defaultValue",this);return!e&&this.component.defaultDate&&(e=(e=l.default.getDateSetting(this.component.defaultDate))?e.toISOString():""),e}},{key:"emptyValue",get:function(){return""}},{key:"momentFormat",get:function(){return l.default.convertFormatToMoment(this.component.format)}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return!!e&&"Invalid Date"===e.toString()||m(v(h.prototype),"isEmpty",this).call(this,e)}},{key:"formatValue",value:function(e){var n=a.default.utc(e).toISOString();return"Invalid date"===n?e:n}},{key:"isEqual",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(e)&&this.isEmpty(n)||a.default.utc(e).format(this.momentFormat)===a.default.utc(n).format(this.momentFormat)}},{key:"createWrapper",value:function(){return!1}},{key:"checkValidity",value:function(e,n,r){return this.refs.input&&this.refs.input.forEach(function(e){e.widget&&e.widget.enteredDate&&(n=!0)}),m(v(h.prototype),"checkValidity",this).call(this,e,n,r)}},{key:"getValueAsString",value:function(e){var n=l.default.convertFormatToMoment(this.component.format);n+=n.match(/z$/)?"":" z";var r=this.timezone;return e&&!this.attached&&r?Array.isArray(e)&&this.component.multiple?e.map(function(e){return i.default.trim(l.default.momentDate(e,n,r).format(n))}).join(", "):i.default.trim(l.default.momentDate(e,n,r).format(n)):Array.isArray(e)&&this.component.multiple?e.map(function(e){return i.default.trim((0,a.default)(e).format(n))}).join(", "):(e?i.default.trim((0,a.default)(e).format(n)):e)||""}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return u.default.schema.apply(u.default,[{type:"datetime",label:"Date / Time",ke
vendor: 4,538 bytes, line 1
1y:"dateTime",format:"yyyy-MM-dd hh:mm a",useLocaleSettings:!1,allowInput:!0,enableDate:!0,enableTime:!0,defaultValue:"",defaultDate:"",displayInTimezone:"viewer",timezone:"",datepickerMode:"day",datePicker:{showWeeks:!0,startingDay:0,initDate:"",minMode:"day",maxMode:"year",yearRows:4,yearColumns:5,minDate:null,maxDate:null},timePicker:{hourStep:1,minuteStep:1,showMeridian:!0,readonlyInput:!1,mousewheel:!0,arrowkeys:!0},customOptions:{}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Date / Time",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#date-and-time",weight:40,schema:h.schema()}}},{key:"serverConditionSettings",get:function(){return h.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return d(d({},m(v(h),"conditionOperatorsSettings",this)),{},{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"],valueComponent:function(e){return d(d({},e),{},{type:"datetime"})}})}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.date]}}],r&&p(h.prototype,r),c&&p(h,c),Object.defineProperty(h,"prototype",{writable:!1}),h}(u.default);n.default=b},87857:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"textfield",input:!0,key:"defaultDate",label:"Default Date",placeholder:"moment()",tooltip:"You can use Moment.js functions to set the default value to a specific date. For example: \n \n moment().subtract(10, 'days')",weight:6},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Flatpickr options",tooltip:"A raw JSON object to use as options for the Date / Time component (Flatpickr).",defaultValue:{}}]},47438:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(r(62277));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{type:"checkbox",input:!0,key:"enableDate",label:"Enable Date Input",weight:0,tooltip:"Enables date input for this field."},{type:"tags",input:!0,key:"datePicker.disable",label:"Disable specific dates or dates by range",placeholder:"(yyyy-MM-dd) or (yyyy-MM-dd - yyyy-MM-dd)",tooltip:"Add dates that you want to blacklist. For example: \n \n 2025-02-21",validate:{custom:"if (_.isEmpty(input)) {\n  return true;\n}\nconst dates = _.isArray(input) ?\ninput : input.split(component.delimeter);\nconst isValid = _.every(dates, (data) => \n  !!data.match(/\\d{4}-\\d{2}-\\d{2}/g));\nvalid = isValid || 'Invalid date';"},weight:21},{type:"panel",title:"Custom Disabled Dates",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"panel-disable-function",customConditional:function(){return!o.default.noeval||o.default.protectedEval},components:[i(r(16700)).default.logicVariablesTable("<tr><th>date</th><td>The date object.</td></tr>"),{type:"textarea",input:!0,editor:"ace",key:"datePicker.disableFunction",label:"Disabling dates by a function",description:'For more information check out the <a href="https://flatpickr.js.org/examples/#disabling-dates" target="_blank" rel="noopener noreferrer">Docs</a>',weight:22},{type:"htmlelement",tag:"div",content:"<h4>Example</h4><pre>// Disable all weekends<br>date.getDay() === 0 || date.getDay() === 6</pre>\n          "}]},{type:"checkbox",input:!0,key:"datePicker.disableWeekends",label:"Disable weekends",tooltip:"Check to disable weekends",weight:23},{type:"checkbox",input:!0,key:"datePicker.disableWeekdays",label:"Disable weekdays",tooltip:"Check to disable weekdays",weight:23}];n.default=a},74107:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",input:!0,key:"displayInTimezone",label:"Display in Timezone",tooltip:"This will display the captured date time in the select timezone.",weight:30,defaultValue:"viewer",dataSrc:"values",data:{values:[{label:"of Viewer",value:"viewer"},{label:"of Submission",value:"submission"},{label:"of Location",value:"location"},{label:"UTC",value:"utc"}]}},{type:"select",input:!0,key:"timezone",label:"Select Timezone",tooltip:"Select the timezone you wish to display this Date",weight:31,lazyLoad:!0,defaultValue:"",valueProperty:"name",dataSrc:"url",data:{url:"{{options.cdnUrl}}/timezones.json"},template:"<span>{{ item.label }}</span>",conditional:{json:{"===":[{var:"data.displayInTimezone"},"location"]}}}
1,{type:"checkbox",input:!0,key:"useLocaleSettings",label:"Use Locale Settings",tooltip:"Use locale settings to display date and time.",weight:51},{type:"checkbox",input:!0,key:"allowInput",label:"Allow Manual Input",tooltip:"Check this if you would like to allow the user to manually enter in the date.",weight:51},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",description:'Use formats provided by <a href="https://github.com/angular-ui/bootstrap/tree/master/src/dateparser/docs#uibdateparsers-format-codes" target="_blank" rel="noopener noreferrer">DateParser Codes</a>',tooltip:"The date format for displaying the datetime value.",weight:52},{type:"editgrid",input:!0,key:"shortcutButtons",label:"Shortcut Buttons",description:"You can specify few buttons which will be shown above the calendar. Use Label to specify the name of the button and onClick to specify which date/time will be set when user clicks the button. E.g, date = new Date()",templates:{header:'<div class="row">\n  <div class="col-sm-3">Label</div>\n  <div class="col-sm-6">onClick</div>\n</div>',row:'<div class="row">\n      <div class="col-sm-3">\n        {{ flattenedComponents.label.getView(row.label) }}\n      </div>\n      <div class="col-sm-6">\n        {{ flattenedComponents.onClick.getView(row.onClick) }}\n      </div>\n      {% if (!instance.disabled) { %}\n        <div class="col-sm-3">\n          <div class="btn-group pull-right">\n            <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass("edit") }}"></i></button>\n            {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass("trash") }}"></i></button>\n            {% } %}\n          </div>\n        </div>\n      {% } %}\n    </div>'},components:[{label:"Label",key:"label",type:"textfield",input:!0,validate:{required:!0}},{label:"onClick",key:"onClick",type:"textarea",editor:"ace",input:!0,validate:{required:!0}}],defaultValue:[]}]},89934:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"checkbox",input:!0,key:"enableTime",label:"Enable Time Input",tooltip:"Enables time input for this field.",weight:0},{type:"number",input:!0,key:"timePicker.hourStep",label:"Hour Step Size",tooltip:"The number of hours to increment/decrement in the time picker.",weight:10},{type:"number",input:!0,key:"timePicker.minuteStep",label:"Minute Step Size",tooltip:"The number of minutes to increment/decrement in the time picker.",weight:20},{type:"checkbox",input:!0,key:"timePicker.showMeridian",label:"12 Hour Time (AM/PM)",tooltip:"Display time in 12 hour time with AM/PM.",weight:30}]},26284:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(94195),n.default=[{type:"checkbox",input:!0,key:"enableMinDateInput",label:"Use Input to add moment.js for minDate",persistent:!1,weight:10,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.minDate",label:"Use calendar to set minDate",skipMerge:!0,weight:10,tooltip:"Enables to use calendar to set date.",customConditional:function(e){var n=e.data,r=e.component;return(!r.datePicker||!r.datePicker.minDate||-1===r.datePicker.minDate.indexOf("moment"))&&!n.enableMinDateInput}},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.minDate",skipMerge:!0,label:"Minimum Date",weight:10,tooltip:"The minimum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",customConditional:function(e){var n=e.data,r=e.component;return!!r.datePicker&&!!r.datePicker.minDate&&-1!==r.datePicker.minDate.indexOf("moment")||n.enableMinDateInput}},{type:"checkbox",input:!0,key:"enableMaxDateInput",label:"Use Input to add moment.js for maxDate",persistent:!1,weight:20,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.maxDate",skipMerge:!0,label:"Use calendar to set maxDate",weight:20,tooltip:"Enables to use calendar to set date.",customConditional:function(e){var n=e.data,r=e.component;return(!r.datePicker||!r.datePicker.maxDate||-1===r.datePicker.maxDate.indexOf("moment"))&&!n.enableMaxDateInput}},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.maxDate",skipMerge:!0,label:"Maximum Date",tooltip:"The maximum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",weight:20,customConditional:function(e){var n=e.data,r=e.component;return!!r.datePicker&&!!r.datePicker.maxDate&&-1!==r.datePicker.maxDate.indexOf("moment")||n.enableMaxDateInput}}]},48767:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
vendor: 20,662 bytes, line 1
1return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default},{key:"day",label:"Day",weight:3,components:s.default},{key:"month",label:"Month",weight:3,components:u.default},{key:"year",label:"Year",weight:3,components:c.default}]].concat(n))},r(67998);var o=f(r(5956)),i=f(r(12152)),a=f(r(93701)),l=f(r(78618)),s=f(r(43870)),u=f(r(45092)),c=f(r(22495));function f(e){return e&&e.__esModule?e:{default:e}}},84536:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37097),r(80107),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(28656),r(70601),r(11414),r(41135),r(28839),r(88910),r(7122),r(3616),r(26343),r(89352),r(33559),r(78089),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(94195),r(31589),r(67998),r(45399),r(37753),r(45945),r(44991),r(49907),r(30890),r(70776),r(48510),r(789),r(55096),r(20680),r(92321),r(43053),r(56613),r(65813);var i=u(r(2890)),a=u(r(62067)),l=u(r(32802)),s=r(38163);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?c(Object(r),!0).forEach(function(n){v(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(e,n)||p(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){if(e){if("string"==typeof e)return h(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,n)}}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function y(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,b(o.key),o)}}function m(e,n,r,o){return(m="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=k(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else v(o,n,r);return!0})(e,n,r,o)}function v(e,n,r){return(n=b(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function b(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function g(e,n){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function w(){return(w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=k(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function k(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=O(e)););return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(v,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=O(v);if(n){var i=O(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function v(e,n,r){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,v),e.maxDate&&-1===e.maxDate.indexOf("moment(")&&(e.maxDate=(0,a.default)(e.maxDate,"YYYY-MM-DD").toISOString()),e.minDate&&-1===e.minDate.indexOf("moment(")&&(e.minDate=(0,a.default)(e.minDate,"YYYY-MM-DD").toISOString()),c.call(this,e,n,r)}return r=[{key:"emptyValue",get:function(){return"00/00/0000"}},{key:"valueMask",get:function(){return/^\d{2}\/\d{2}\/\d{4}$/}},{key:"dayRequired",get:function(){return this.showDay&&i.default.get(this.component,"fields.day.required",!1)}},{key:"showDay",get:function(){return!i.default.get(this.component,"fields.day.hide",!1)}},{key:"monthRequired",get:function(){return this.showMonth&&i.default.get(this.component,"fields.month.required",!1)}},{key:"showMonth",get:function(){return!i.default.get(this.component,"fields.month.hide",!1)}},{key:"yearRequired",get:function(){return this.showYear&&i.default.get(this.component,"fields.year.required",!1)}},{key:"showYear",get:function(){return!i.default.get(this.component,"fields.year.hide",!1)}},{key:"defaultSchema",get:function(){return v.schema()}},{key:"shouldDisabled",get:function(){return w(O(v.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"inputInfo",get:function(){var e=w(O(v.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="input",e}},{key:"inputDefinition",value:function(e){var n,r;return"day"===e&&(n=1,r=31),"month"===e&&(n=1,r=12),"year"===e&&(n=i.default.get(this.component,"fields.year.minYear",1900)||1900,r=i.default.get(this.component,"fields.year.maxYear",2030)||1900),{type:"input",ref:e,attr:{id:"".concat(this.component.key,"-").concat(e),class:"form-control ".concat(this.transform("class","formio-day-component-".concat(e))),type:"select"===this.component.fields[e].type?"select":"number",placeholder:this.component.fields[e].placeholder,step:1,min:n,max:r}}}},{key:"selectDefinition",value:function(e){return{multiple:!1,ref:e,widget:"html5",attr:{id:"".concat(this.component.key,"-").concat(e),class:"form-control",name:e,lang:this.options.language}}}},{key:"days",get:function(){if(this._days)return this._days;this._days=[{value:"",label:i.default.get(this.component,"fields.day.placeholder","")}];for(var e=1;e<=31;e++)this._days.push({value:e,label:e.toString()});return this._days}},{key:"months",get:function(){return this._months||(this._months=[{value:"",label:i.default.get(this.component,"fields.month.placeholder")||(this.hideInputLabels?this.t("Month"):"")},{value:1,label:"January"},{value:2,label:"February"},{value:3,label:"March"},{value:4,label:"April"},{value:5,label:"May"},{value:6,label:"June"},{value:7,label:"July"},{value:8,label:"August"},{value:9,label:"September"},{value:10,label:"October"},{value:11,label:"November"},{value:12,label:"December"}]),this._months}},{key:"years",get:function(){if(this._years)return this._years;this._years=[{value:"",label:i.default.get(this.component,"fields.year.placeholder","")}];for(var e=i.default.get(this.component,"fields.year.minYear",1900)||1900,n=i.default.get(this.component,"fields.year.maxYear",2030)||2030,r=e;r<=n;r++)this._years.push({value:r,label:r.toString()});return this._years}},{key:"setErrorClasses",value:function(e,n,r){w(O(v.prototype),"setErrorClasses",this).call(this,e,n,r),w(O(v.prototype),"setErrorClasses",this).call(this,[this.refs.day,this.refs.month,this.refs.year],n,r)}},{key:"removeInputError",value:function(e){w(O(v.prototype),"removeInputError",this).call(this,[this.refs.day,this.refs.month,this.refs.year]),w(O(v.prototype),"removeInputError",this).call(this,e)}},{key:"init",value:function(){w(O(v.prototype),"init",this).call(this),this.validators=this.validators.concat(["day","maxDate","minDate","minYear","maxYear"]);var e=this.component.fields.year.minYear,n=this.component.fields.year.maxYear;this.component.maxYear=n,this.component.minYear=e;var r=(0,s.getLocaleDateFormatInfo)(this.options.language);this.dayFirst=this.component.useLocaleSettings?r.dayFirst:this.component.dayFirst}},{key:"render",value:function(){return this.isHtmlRenderMode()?w(O(v.prototype),"render",this).call(this,this.renderTemplate("input")):w(O(v.prototype),"render",this).call(this,this.renderTemplate("day",{dayFirst:this.dayFirst,showDay:this.showDay,showMonth:this.showMonth,showYear:this.showYear,day:this.renderField("day"),month:this.renderField("month"),year:this.renderField("year")}))}},{key:"renderField",value:function(e){var n=this;return"select"===this.component.fields[e].type?this.renderTemplate("select",{input:this.selectDefinition(e),selectOptions:this["".concat(e,"s")].reduce(function(e,r){return e+n.renderTemplate("selectOption",{option:r,selected:!1,attrs:{}})},"")}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:this.inputDefinition(e)})}},{key:"attach",value:function(e){var n=this;this.loadRefs(e,{day:"single",month:"single",year:"single",input:"multiple"});var r=w(O(v.prototype),"attach",this).call(this,e),o=function(e,r){return function(){try{n.saveCaretPosition(e,r)}catch(e){console.warn("An error occurred while trying to save caret position",e)}n.updateValue(null,{modified:!0})}};return this.shouldDisabled?(this.setDisabled(this.refs.day,!0),this.setDisabled(this.refs.month,!0),this.setDisabled(this.refs.year,!0),this.refs.input&&this.refs.input.forEach(function(e){return n.setDisabled(e,!0)})):(this.addEventListener(this.refs.day,"input",o(this.refs.day,"day")),this.addEventListener(this.refs.month,"input",function(){var e=n.refs.year?parseInt(new Date(n.refs.year.value,n.refs.month.value,0).getDate(),10):"",r=n.getFieldValue("day");!n.component.fields.day.hide&&e&&(n.refs.day.max=e),e&&r>e&&(n.refs.day.value=n.refs.day.max),o(n.refs.month,"month")()}),this.addEventListener(this.refs.year,"input",o(this.refs.year,"year")),this.addEventListener(this.refs.input,this.info.changeEvent,function(){return n.updateValue(null,{modified:!0})}),[this.refs.day,this.refs.month,this.refs.year].filter(function(e){return!!e}).forEach(function(e){w(O(v.prototype),"addFocusBlurEvents",n).call(n,e)})),this.setValue(this.dataValue),this.disabled=this.shouldDisabled,r}},{key:"validateRequired",value:function(e,n){var r=this.parts,o=r.day,i=r.month,a=r.year;return(!this.dayRequired||!!o)&&(!this.monthRequired||!!i)&&(!this.yearRequired||!!a)&&(!(0,s.boolValue)(e)||!this.isEmpty(n))}},{key:"disabled",set:function(e){(function(e,n,r,o,i){if(!m(e,n,r,o||e)&&i)throw Error("failed to set property")})(O(v.prototype),"disabled",e,this,!0),this.refs.year&&this.refs.month&&this.refs.day&&(e?(this.refs.year.setAttribute("disabled","disabled"),this.refs.month.setAttribute("disabled","disabled"),this.refs.day.setAttribute("disabled","disabled")):(this.refs.year.removeAttribute("disabled"),this.refs.month.removeAttribute("disabled"),this.refs.day.removeAttribute("disabled")))}},{key:"normalizeValue",value:function(e){if(!e||this.valueMask.test(e))return e;var n=[],r=e.split("/"),o=d(this.component.dayFirst?[0,1,2]:[1,0,2],3),i=o[0],a=o[1],l=o[2],s=this.component.defaultValue?this.component.defaultValue.split("/"):"",u=function(e,o){return n.push(e?r.shift():o)};return this.dayFirst&&u(this.showDay,s?s[i]:"00"),u(this.showMonth,s?s[a]:"00"),this.dayFirst||u(this.showDay,s?s[i]:"00"),u(this.showYear,s?s[l]:"0000"),n.join("/")}},{key:"setValueAt",value:function(e,n){if(""===n&&(n=this.emptyValue),!n||"Invalid date"===n)return null;var r,o=n.split("/");this.component.dayFirst&&(r=o.shift());var i=o.shift();this.component.dayFirst||(r=o.shift());var a=o.shift();this.refs.day&&this.showDay&&(this.refs.day.value="00"===r?"":parseInt(r,10)),this.refs.month&&this.showMonth&&(this.refs.month.value="00"===i?"":parseInt(i,10)),this.refs.year&&this.showYear&&(this.refs.year.value="0000"===a?"":parseInt(a,10))}},{key:"getFieldValue",value:function(e){var n=this.dataValue?this.dataValue.split("/"):[],r=0;switch(e){case"month":r=n[this.dayFirst?1:0];break;case"day":r=n[this.dayFirst?0:1];break;case"year":r=n[2]}return r=parseInt(r,10),!i.default.isNaN(r)&&i.default.isNumber(r)?r:0}},{key:"parts",get:function(){return{day:this.getFieldValue("day"),month:this.getFieldValue("month"),year:this.getFieldValue("year")}}},{key:"format",get:function(){var e="";return(this.component.dayFirst&&this.showDay&&(e+="D/"),this.showMonth&&(e+="M/"),!this.component.dayFirst&&this.showDay&&(e+="D/"),this.showYear)?e+="YYYY":e.length?e.substring(0,e.length-1):e}},{key:"getDate",value:function(e){var n,r,o,a=[],l=d(this.component.dayFirst?[0,1,2]:[1,0,2],3),s=l[0],u=l[1],c=l[2],f=e||this.component.defaultValue;return(f&&(a=f.split("/").map(function(e){return parseInt(e,10)})),this.showDay&&this.refs.day&&(n=parseInt(this.refs.day.value,10)),(void 0===n||i.default.isNaN(n))&&(n=a[s]&&!i.default.isNaN(a[s])?a[s]:0),this.showMonth&&this.refs.month&&(r=parseInt(this.refs.month.value,10)),(void 0===r||i.default.isNaN(r))&&(r=a[u]&&!i.default.isNaN(a[u])?a[u]:0),this.showYear&&this.refs.year&&(o=parseInt(this.refs.year.value)),(void 0===o||i.default.isNaN(o))&&(o=a[c]&&!i.default.isNaN(a[c])?a[c]:0),n||r||o)?(n=this.showDay?n.toString().padStart(2,0):"",r=this.showMonth?r.toString().padStart(2,0):"",o=this.showYear?o.toString().padStart(4,0):"",this.component.dayFirst?"".concat(n).concat(this.showDay&&this.showMonth||this.showDay&&this.showYear?"/":"").concat(r).concat(this.showMonth&&this.showYear?"/":"").concat(o):"".concat(r).concat(this.showDay&&this.showMonth||this.showMonth&&this.showYear?"/":"").concat(n).concat(this.showDay&&this.showYear?"/":"").concat(o)):null}},{key:"date",get:function(){return this.getDate()}},{key:"validationValue",get:function(){return this.dataValue}},{key:"getValue",value:function(){return w(O(v.prototype),"getValue",this).call(this)||this.dataValue}},{key:"getValueAt",value:function(e){var n=this.date||this.emptyValue;return n?(this.refs.input[e].value=n,this.refs.input[e].value):(this.refs.input[e].value="",null)}},{key:"getValueAsString",value:function(e){return this.getDate(e)||""}},{key:"focus",value:function(e){var n,r,o;e&&"string"==typeof e&&this.refs[e]?this.refs[e].focus():this.dayFirst&&this.showDay||!this.dayFirst&&!this.showMonth&&this.showDay?null===(n=this.refs.day)||void 0===n||n.focus():this.dayFirst&&!this.showDay&&this.showMonth||!this.dayFirst&&this.showMonth?null===(r=this.refs.month)||void 0===r||r.focus():this.showDay||this.showDay||!this.showYear||null===(o=this.refs.year)||void 0===o||o.focus()}},{key:"restoreCaretPosition",value:function(){var e;if(null!==(e=this.root)&&void 0!==e&&e.currentSelection){var n=this.root.currentSelection,r=n.selection,o=n.index;if(this.refs[o]){var i=this.refs[o];/text|search|password|tel|url/i.test((null==i?void 0:i.type)||"")&&i.setSelectionRange.apply(i,function(e){if(Array.isArray(e))return h(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||p(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}}},{key:"isPartialDay",value:function(e){if(!e)return!1;var n=d(this.component.dayFirst?[0,1,2]:[1,0,2],3),r=n[0],o=n[1],i=n[2],a=e.split("/");return"00"===a[r]||"00"===a[o]||"0000"===a[i]}},{key:"getValidationFormat",value:function(){return this.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY"}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{type:"day",label:"Day",key:"day",fields:{day:{type:"number",placeholder:"",required:!1},month:{type:"select",placeholder:"",required:!1},year:{type:"number",placeholder:"",required:!1}},dayFirst:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Day",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#day",weight:50,schema:v.schema()}}},{key:"conditionOperatorsSettings",get:function(){return f(f({},w(O(v),"conditionOperatorsSettings",this)),{},{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"]})}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.string]}},{key:"serverConditionSettings",get:function(){return v.conditionOperatorsSettings}}],r&&y(v.prototype,r),u&&y(v,u),Object.defineProperty(v,"prototype",{writable:!1}),v}(l.default);n.default=P},12152:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0}]},43870:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.day.type",label:"Type",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.day.placeholder",label:"Placeholder",placeholder:"Day Placeholder",tooltip:"The placeholder text that will appear when Day field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Day part of the component.",key:"fields.day.hide",input:!0},{weight:214,type:"checkbox",label:"Day First",tooltip:"Display the Day field before the Month field.",key:"dayFirst",input:!0}]},93701:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.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}]},45092:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.month.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.month.placeholder",label:"Placeholder",placeholder:"Month Placeholder",tooltip:"The placeholder text that will appear when Month field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Month part of the component.",key:"fields.month.hide",input:!0}]},78618:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.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 
1in 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}]},22495:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.year.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:203,type:"number",input:!0,key:"fields.year.minYear",label:"Minimum Year",placeholder:"1900",tooltip:"The minimum year that can be entered."},{weight:204,type:"number",input:!0,key:"fields.year.maxYear",label:"Maximum Year",placeholder:"2030",tooltip:"The maximum year that can be entered."},{weight:210,type:"textfield",input:!0,key:"fields.year.placeholder",label:"Placeholder",placeholder:"Year Placeholder",tooltip:"The placeholder text that will appear when Year field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Year part of the component.",key:"fields.year.hide",input:!0}]},42944:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{label:"Templates",key:"templates",weight:5,components:l.default},{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:s.default}]].concat(n))},r(67998);var o=u(r(5956)),i=u(r(54607)),a=u(r(53485)),l=u(r(51702)),s=u(r(26447));function u(e){return e&&e.__esModule?e:{default:e}}},49489:function(e,n,r){"use strict";r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(64652),r(28656),r(84812),r(23850),r(11414),r(41135),r(88910),r(33559),r(78089),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(49907),r(37753),r(30890),r(70601),r(20680),r(92471),r(33546),r(88852),r(48510),r(56613),r(26343),r(28839),r(89352),r(66334),r(93538),r(789),r(45945),r(31490),r(44991),r(7122),r(26803),r(41967),r(3616),r(45399),r(43053),r(65813);var o=f(r(2890)),i=f(r(32780)),a=f(r(40618)),l=f(r(35849)),s=f(r(68269)),u=r(38163),c=f(r(74590));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function h(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?p(Object(r),!0).forEach(function(n){w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return m(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function v(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function b(e,n){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function g(e,n,r,o){return(g="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=P(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else w(o,n,r);return!0})(e,n,r,o)}function w(e,n,r){return(n=k(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function k(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==d(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}function O(){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=P(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function P(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=j(e)););return e}
1function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _={New:"new",Editing:"editing",Saved:"saved",Viewing:"viewing",Removed:"removed",Draft:"draft"},S=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}(p,e);var n,r,l,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=j(p);if(n){var o=j(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=f.call.apply(f,[this].concat(r))).type="editgrid",e}return r=[{key:"defaultDialogTemplate",get:function(){return'\n    <h3 ref="dialogHeader">'.concat(this.t("Do you want to clear data?"),'</h3>\n    <div style="display:flex; justify-content: flex-end;">\n      <button ref="dialogCancelButton" class="btn btn-secondary" aria-label="').concat(this.t("Cancel"),'">').concat(this.t("Cancel"),'</button>\n      <button ref="dialogYesButton" class="btn btn-danger" aria-label="').concat(this.t("Yes, delete it"),'">').concat(this.t("Yes, delete it"),"</button>\n    </div>\n  ")}},{key:"defaultRowTemplate",get:function(){return this.displayAsTable?p.defaultTableRowTemplate:p.defaultRowTemplate}},{key:"defaultHeaderTemplate",get:function(){return this.displayAsTable?p.defaultTableHeaderTemplate:p.defaultHeaderTemplate}},{key:"rowTemplate",get:function(){return u.Evaluator.noeval?this.displayAsTable?c.default.tableRow:c.default.row:this.displayAsTable?o.default.get(this.component,"templates.tableRow",this.defaultRowTemplate):o.default.get(this.component,"templates.row",this.defaultRowTemplate)}},{key:"headerTemplate",get:function(){return u.Evaluator.noeval?this.displayAsTable?c.default.tableHeader:c.default.header:this.displayAsTable?o.default.get(this.component,"templates.tableHeader",this.defaultHeaderTemplate):o.default.get(this.component,"templates.header",this.defaultHeaderTemplate)}},{key:"hasScopedChildren",get:function(){return!this.inlineEditMode}},{key:"defaultSchema",get:function(){return p.schema()}},{key:"emptyValue",get:function(){return[]}},{key:"editgridKey",get:function(){return"editgrid-".concat(this.key)}},{key:"rowRef",get:function(){return"".concat(this.editgridKey,"-row")}},{key:"rowElements",get:function(){return this.refs[this.rowRef]}},{key:"rowRefs",get:function(){return this.refs["editgrid-".concat(this.component.key,"-row")]}},{key:"addRowRef",get:function(){return"".concat(this.editgridKey,"-addRow")}},{key:"addRowElements",get:function(){return this.refs[this.addRowRef]}},{key:"saveRowRef",get:function(){return"".concat(this.editgridKey,"-saveRow")}},{key:"saveRowElements",get:function(){return this.refs[this.saveRowRef]}},{key:"cancelRowRef",get:function(){return"".concat(this.editgridKey,"-cancelRow")}},{key:"cancelRowElements",get:function(){return this.refs[this.cancelRowRef]}},{key:"inlineEditMode",get:function(){return this.component.inlineEdit}},{key:"saveEditMode",get:function(){return!this.inlineEditMode}},{key:"minLength",get:function(){return this.builderMode?0:o.default.get(this.component,"validate.minLength",0)}},{key:"data",get:function(){return this._data},set:function(e){this._data=e;var n=this.dataValue;
1(this.editRows||[]).forEach(function(e,r){n[r]||e.state===_.New||(n[r]={});var o=n[r]||{};e.data=o,e.components.forEach(function(e){e.data=o})})}},{key:"dataValue",get:function(){return O(j(p.prototype),"dataValue",this)||[]},set:function(e){!function(e,n,r,o,i){if(!g(e,n,r,o||e)&&i)throw Error("failed to set property")}(j(p.prototype),"dataValue",e,this,!0)}},{key:"displayAsTable",get:function(){return this.component.displayAsTable}},{key:"iteratableRows",get:function(){return this.editRows}},{key:"defaultValue",get:function(){var e=O(j(p.prototype),"defaultValue",this),n=Array.isArray(e)?e:[];return o.default.times(this.minLength-n.length,function(){return n.push({})}),n}},{key:"hasRemoveButtons",value:function(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>o.default.get(this.component,"validate.minLength",0)}},{key:"init",value:function(){var e=this;if(this.builderMode)return this.editRows=[],O(j(p.prototype),"init",this).call(this);this.components=this.components||[];var n=this.dataValue;!n.length&&this.component.openWhenEmpty?(this.editRows=[],this.createRow({},0)):this.editRows=n.map(function(n,r){return{components:e.lazyLoad?[]:e.createRowComponents(n,r),data:n,state:_.Saved,backup:null,error:null,rowIndex:r}}),this.prevHasAddButton=this.hasAddButton(),this.checkData(),this.setVariableTypeComponents(),this.variableTypeComponentsIndexes.length&&o.default.each(this.editRows||[],function(n,r){return e.checkRowVariableTypeComponents(n,r)})}},{key:"checkRowVariableTypeComponents",value:function(e,n){var r=e.components;o.default.some(this.variableTypeComponentsIndexes,function(e){var n=r[e];return n.type!==n.component.type})&&(e.components=this.createRowComponents(e.data,n,!0))}},{key:"setVariableTypeComponents",value:function(){var e=this;this.variableTypeComponentsIndexes=[],o.default.each(this.component.components,function(n,r){n.typeChangeEnabled&&e.variableTypeComponentsIndexes.push(r)})}},{key:"isOpen",value:function(e){return[_.New,_.Editing,_.Viewing].includes(e.state)}},{key:"isComponentVisibleInSomeRow",value:function(e){var n=this,r=this.editRows,i=[_.Saved,_.Editing,_.Draft],a=r.filter(function(e){return o.default.includes(i,e.state)});this.visibleInHeader=this.visibleInHeader||[];var l=function(e,r){r||o.default.remove(n.visibleInHeader,function(n){return n===e.key}),r&&!o.default.includes(n.visibleInHeader,e.key)&&n.visibleInHeader.push(e.key)};if(o.default.isEmpty(r)){var s,c=this.createRowComponents({},0);(0,u.eachComponent)(c,function(n){n.component.key===e.key&&(s=n),n.checkConditions()});var f=!s||s.visible;return y(this.components).forEach(function(e){return n.removeComponent(e,n.components)}),l(e,f),f}var d=o.default.get(this.component,"openWhenEmpty")&&1===r.length&&r[0].state===_.New;return!o.default.isEmpty(r)&&o.default.isEmpty(a)&&!d?o.default.includes(this.visibleInHeader,e.key):o.default.some(d?r:a,function(r,i){var a;if(r.state===_.Editing)a=o.default.includes(n.visibleInHeader,e.key);else{var s=n.flattenComponents(i)[e.key];l(e,a=!s||s.visible)}return a})}},{key:"render",value:function(e){var n=this;if(this.builderMode)return O(j(p.prototype),"render",this).call(this);var r=this.dataValue,i=this.headerTemplate,a=this.t.bind(this),l=this.displayAsTable?"editgridTable":"editgrid";return O(j(p.prototype),"render",this).call(this,e||this.renderTemplate(l,{ref:{row:this.rowRef,addRow:this.addRowRef,saveRow:this.saveRowRef,cancelRow:this.cancelRowRef},header:this.renderString(i,{displayValue:function(e){return n.displayComponentValue(e,!0)},components:this.component.components,value:r,t:a}),footer:this.renderString(o.default.get(this.component,"templates.footer"),{components:this.component.components,value:r,t:a}),rows:this.editRows.map(this.renderRow.bind(this)),openRows:this.editRows.map(function(e){return n.isOpen(e)}),errors:this.editRows.map(function(e){return e.error}),hasAddButton:this.hasAddButton(),hasRemoveButtons:this.hasRemoveButtons()}))}},{key:"renderComponents",value:function(e){var n=(e=e||this.getComponents()).map(function(e){return e.render()}),r=this.displayAsTable&&this.prevHasAddButton?"tableComponents":"components";return this.renderTemplate(r,{children:n,components:e})}},{key:"attach",value:function(e){var n,r=this;if(this.builderMode)return O(j(p.prototype),"attach",this).call(this,e);this.loadRefs(e,(w(n={},this.addRowRef,"multiple"),w(n,this.saveRowRef,"multiple"),w(n,this.cancelRowRef,"multiple"),w(n,this.rowRef,"multiple"),n)),this.addRowElements.forEac
1h(function(e){r.addEventListener(e,"click",function(){return r.addRow()})});var i=0;this.rowElements.forEach(function(e,n){var a=r.editRows[n];null!=a&&a.isRowSelected&&e.classList.add("selected"),r.isOpen(a)?(r.attachComponents(e,a.components),r.addEventListener(r.saveRowElements[i],"click",function(){return r.saveRow(n,!0)}),r.addEventListener(r.cancelRowElements[i],"click",function(){return r.cancelRow(n)}),i++):[{className:"removeRow",event:"click",action:function(){return r.removeRow(n,!0)}},{className:"editRow",event:"click",action:function(){r.editRow(n).then(function(){if(r.component.rowDrafts){r.validateRow(a,!1);var e,n=a.errors&&!!a.errors.length;r.component.modal&&n&&(null===(e=r.root)||void 0===e?void 0:e.submitted)&&(r.alert.showErrors(a.errors,!1),a.alerts=!0)}})}},{className:"row",event:"click",action:function(){e.classList.toggle("selected");var o="editGridSelectRow";Array.from(e.classList).includes("selected")?a.isRowSelected=!0:(delete a.isRowSelected,o="editGridUnSelectRow"),r.emit(o,{component:r.component,data:r.dataValue[n]})}}].forEach(function(n){var i=n.className,a=n.event,l=n.action,s=e.getElementsByClassName(i);Array.prototype.forEach.call(s,function(e){r.options.pdf&&o.default.intersection(e.classList,["editRow","removeRow"]).length?e.style.display="none":r.addEventListener(e,a,l)})})}),i?this.addClass(this.refs.component,"formio-component-".concat(this.component.type,"-row-open")):this.removeClass(this.refs.component,"formio-component-".concat(this.component.type,"-row-open"));var a=O(j(p.prototype),"attach",this).call(this,e);return this.loadRefs(e,{messageContainer:"single-scope"}),a}},{key:"flattenRowDataValue",value:function(e){var n=this,r={};return Object.keys(e).forEach(function(i){o.default.isObject(e[i])&&!o.default.isNil(e[i])?Object.assign(r,n.flattenRowDataValue(e[i])):r[i]=e[i]}),r}},{key:"isComponentVisibleInRow",value:function(e,n){var r=n[e.key];return!r||r.visible}},{key:"displayComponentValue",value:function(e,n){return!!((!e.hasOwnProperty("tableView")||e.tableView)&&n?this.isComponentVisibleInSomeRow(e):o.default.includes(this.visibleInHeader,e.key))}},{key:"renderRow",value:function(e,n){var r=this,o=this.dataValue;if(this.isOpen(e))return this.renderComponents(e.components);var i=this.flattenComponents(n),a=this.rowTemplate;return this.renderString(a,{row:o[n]||{},data:this.data,rowIndex:n,components:this.component.components,flattenedComponents:i,displayValue:function(e){return r.displayComponentValue(e)},isVisibleInRow:function(e){return r.isComponentVisibleInRow(e,i)},getView:function(e,n){var r,o,a=i[e.key],l=a?a.getView(n||a.dataValue):"",s=RegExp("<(.*?)>");return"string"==typeof l&&l.length&&!(null!==(r=a.component)&&void 0!==r&&r.template)&&s.test(l)&&(null===(o=a.component)||void 0===o?void 0:o.inputFormat)!=="html"?'<input type="text" value="'.concat(l.replace(/"/g,"&quot;"),'" readonly/>'):l},state:this.editRows[n].state,t:this.t.bind(this)})}},{key:"eachComponent",value:function(e,n){o.default.each(this.getComponents(n),function(n,r){if(!1===e(n,r))return!1})}},{key:"restoreComponentsContext",value:function(){var e=this;this.getComponents().forEach(function(n){var r,o=e.dataValue[n.rowIndex],i=null===(r=e.editRows[n.rowIndex])||void 0===r?void 0:r.data;n.data=o||i})}},{key:"flattenComponents",value:function(e){var n={};return this.everyComponent(function(e){n[e.component.flattenAs||e.key]=e},e),n}},{key:"getComponents",value:function(e){var n;return this.editRows=this.editRows||[],this.builderMode?O(j(p.prototype),"getComponents",this).call(this):o.default.isNumber(e)?(null===(n=this.editRows[e])||void 0===n?void 0:n.components)||[]:this.editRows.reduce(function(e,n){return e.concat(n.components||[])},[])}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.calculatedValue=void 0,O(j(p.prototype),"destroy",this).call(this,e)}},{key:"destroyComponents",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.builderMode)return O(j(p.prototype),"destroyComponents",this).call(this);
1this.getComponents(n).slice().forEach(function(n){return e.removeComponent(n,e.components)})}},{key:"createRow",value:function(e,n){var r={components:this.createRowComponents(e,n),data:e,state:_.New,backup:null,error:null,rowIndex:n};return this.editRows.push(r),this.inlineEditMode&&this.dataValue.push(e),r}},{key:"addRow",value:function(){if(!this.options.readOnly){var e=this.editRows.length,n=this.createRow({},e);return n.state===_.New&&(this.emptyRow=(0,u.fastCloneDeep)(n.data)),this.inlineEditMode&&this.triggerChange(),this.emit("editGridAddRow",{component:this.component,row:n}),this.checkRow("checkData",null,{},n.data,n.components),this.component.modal?this.addRowModal(e):this.redraw(),n}}},{key:"addRowModal",value:function(e){var n=this,r=this.ce("div"),o=this.editRows[e];o.willBeSaved=!1;var i=o.components;r.innerHTML=this.renderComponents(i);var a=this.component.modal?this.createModal(r,{},function(){return n.showDialog(e)}):void 0;return a.classList.add("editgrid-row-modal-".concat(this.id)),o.dialog=a,this.alert&&(this.alert.clear(),this.alert=null),this.alert=new s.default(a.refs.dialogContents,this),this.addEventListener(a,"close",function(){o.willBeSaved||(n.editRows[e]&&n.editRows[e].state!==_.New&&n.editRows[e].components.forEach(function(e){e.setPristine(!0)}),n.cancelRow(e)),n.alert&&(n.alert.clear(),n.alert=null),delete o.confirmationDialog,delete o.dialog}),a.refs.dialogContents.appendChild(this.ce("button",{class:"btn btn-primary",onClick:function(){n.component.rowDrafts||o.components.forEach(function(e){return e.setPristine(!1)}),n.validateRow(o,!0)||n.component.rowDrafts?(o.willBeSaved=!0,a.close(),n.saveRow(e,!0)):(n.alert.showErrors(o.errors,!1),o.alerts=!0)}},this.component.saveRow||"Save")),this.attachComponents(r,i)}},{key:"showDialog",value:function(e){var n,r=this.editRows[e];if(r.state===_.New?o.default.isEqual(this.emptyRow,r.data):o.default.isEqual(r.backup,r.data))return Promise.resolve();var a=this.ce("div",{ref:"confirmationDialog"}),l=this.component.dialogTemplate||this.defaultDialogTemplate;a.innerHTML=l,a.refs={},this.loadRefs.call(a,a,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"});var s=this.createModal(a);s.classList.add("editgrid-row-modal-confirmation-".concat(this.id));var u=function(e){e.preventDefault(),s.close()},c=new i.default(function(e,r){n={resolve:e,reject:r}});return this.addEventListener(a.refs.dialogYesButton,"click",function(e){u(e),n.resolve()}),this.addEventListener(a.refs.dialogCancelButton,"click",function(e){u(e),n.reject()}),r.confirmationDialog=s,c}},{key:"editRow",value:function(e){var n=this.editRows[e],r=n.state===_.Editing||n.state===_.New;if(!n||r)return i.default.resolve();n.prevState=n.state,n.state=this.options.readOnly?_.Viewing:_.Editing,this.lazyLoad&&0===n.components.length&&(n.components=this.createRowComponents(n.data,e));var o=(0,u.fastCloneDeep)(n.data);return(this.inlineEditMode?n.backup=o:(n.backup=(0,u.fastCloneDeep)(n.data),n.data=o,this.restoreRowContext(n)),this.component.modal)?this.addRowModal(e):this.redraw()}},{key:"clearErrors",value:function(e){var n=this.editRows[e];n&&Array.isArray(n.components)&&n.components.forEach(function(e){e.setPristine(!0),e.setCustomValidity("")})}},{key:"cancelRow",value:function(e){if(!this.options.readOnly){var n=this.editRows[e];switch(n.state){case _.New:n.state=_.Removed,this.clearErrors(e),this.destroyComponents(e),this.inlineEditMode&&this.splice(e),this.editRows.splice(e,1),this.openWhenEmpty();break;case _.Editing:n.state=n.prevState,this.inlineEditMode&&(this.dataValue[e]=n.backup),n.data=n.backup,n.backup=null,this.restoreRowContext(n),this.clearErrors(e)}
vendor: 4,477 bytes, line 1
1this.emit("editGridCancelRow",{instance:this,component:this.component,editRow:n}),this.checkValidity(null,!0),this.redraw(),this.component.rowDrafts&&this.checkValidity(this.data,!1)}}},{key:"saveRow",value:function(e,n){var r=this,o=this.editRows[e];if(!this.options.readOnly){this.component.rowDrafts||o.components.forEach(function(e){return e.setPristine(!1)});var i=this.validateRow(o,!0);if(!this.component.rowDrafts&&!i)return!1;if(this.saveEditMode){var a,l,s=this.dataValue;switch(null!==(a=this.root)&&void 0!==a&&null!==(l=a.focusedComponent)&&void 0!==l&&l.component.typeChangeEnabled&&(this.root.focusedComponent=null),o.state){case _.New:var u=s.length;s.push(o.data),o.components.forEach(function(e){return e.rowIndex=u}),e!==u&&(this.editRows.splice(e,1),this.editRows.splice(u,0,o));break;case _.Editing:s[e]=o.data}}return o.state=this.component.rowDrafts&&!i?_.Draft:_.Saved,o.backup=null,this.updateValue(),this.emit("editGridSaveRow",{component:this.component,row:o.data,instance:this}),this.triggerChange({modified:n,noPristineChangeOnModified:n&&this.component.rowDrafts,isolateRow:!0}),this.component.rowDrafts&&o.components.forEach(function(e){return e.setPristine(r.pristine)}),this.checkValidity(null,!0),this.redraw(),o.alerts&&(o.alerts=!1),!0}}},{key:"beforeFocus",value:function(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var n=this.getRelativePath(e.path),r=(0,u.getArrayFromComponentPath)(n),i=r[0],a=r[0];this.editRows.forEach(function(e,n){e.rowIndex===i&&(a=n)}),o.default.isNumber(a)&&this.editRow(a)}},{key:"updateComponentsRowIndex",value:function(e,n){e.forEach(function(e,r){e.rowIndex=n,e.row="".concat(n,"-").concat(r)})}},{key:"updateRowsComponents",value:function(e){var n=this;this.editRows.slice(e).forEach(function(r,o){n.updateComponentsRowIndex(r.components,e+o)})}},{key:"baseRemoveRow",value:function(e){var n=this.editRows[e];return n.state=_.Removed,this.destroyComponents(e),n}},{key:"removeRow",value:function(e,n){this.options.readOnly||(this.clearErrors(e),this.baseRemoveRow(e),this.removeSubmissionMetadataRow(e),this.splice(e),this.emit("editGridDeleteRow",{index:e}),this.editRows.splice(e,1),this.openWhenEmpty(),this.updateRowsComponents(e),this.updateValue(),this.triggerChange({modified:n,noPristineChangeOnModified:n&&this.component.rowDrafts,isolateRow:!0}),this.checkValidity(null,!0),this.checkData(),this.redraw())}},{key:"createRowComponents",value:function(e,n,r){var i=this;if(this.components)for(var a=0;a<this.components.length;a++)this.components[a].rowIndex===n&&(this.components[a].destroy(),this.components.splice(a,1));var l=o.default.get(this.editRows,"[".concat(n,"].components"),null);return this.component.components.map(function(a,s){if(r&&l&&i.variableTypeComponentsIndexes.length){var u,c=l[s];if(!(o.default.includes(i.variableTypeComponentsIndexes,s)&&(null==c?void 0:c.type)!==(null==c?void 0:null===(u=c.component)||void 0===u?void 0:u.type)))return c;a=c.component}var f=o.default.clone(a),d=o.default.clone(i.options);d.name+="[".concat(n,"]"),d.row="".concat(n,"-").concat(s),d.onChange=function(){var e,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;if(null!==(e=a.instance.root)&&void 0!==e&&e.id&&(null===(r=i.root)||void 0===r?void 0:r.id)!==a.instance.root.id?a.instance.root.triggerChange(o,a,l):i.component.modal||i.triggerRootChange(o,a,l),!i.inlineEditMode){var s=i.editRows[n];if(null!=s&&s.alerts)i.checkData(null,h(h({},o),{},{changed:a,rowIndex:n}),i.data);else if(s){var u=i.component.rowDrafts&&!i.shouldValidateDraft(s);i.checkRow("checkData",null,h(h({},o),{},{changed:a,silentCheck:u}),s.data,s.components,u)}i.variableTypeComponentsIndexes.length&&(i.checkRowVariableTypeComponents(s,n),i.redraw())}};var p=i.createComponent(o.default.assign({},f,{row:d.row}),d,e,null,r&&l?l[s]:null);return p.rowIndex=n,p.inEditGrid=!0,p})}},{key:"hasOpenRows",value:function(){var e=this;return this.editRows.some(function(n){return e.isOpen(n)})}},{key:"shouldValidateDraft",value:function(e){var n,r;return e.state===_.Draft&&!this.pristine&&!(null!==(n=this.root)&&void 0!==n&&n.pristine)&&!this.hasOpenRows()||(null===(r=this.root)||void 0===r?void 0:r.submitted)}},{key:"shouldValidateRow",value:function(e,n){return this.shouldValidateDraft(e)||e.state===_.Editing||e.alerts||n}},{key:"validateRow",value:function(e,n,r){var o,i=this,a=!0,l=y(this.errors);
1return this.shouldValidateRow(e,n)&&e.components.forEach(function(o){var l=i.component.rowDrafts&&!i.shouldValidateDraft(e)||r;a&=o.checkValidity(null,n,null,l)}),this.component.validate&&this.component.validate.row&&("true"!==(a=this.evaluate(this.component.validate.row,{valid:a,row:e.data},"valid",!0)).toString()?(e.error=a,a=!1):e.error=null,null===a&&(a="Invalid row validation for ".concat(this.key))),e.errors=a?null:this.errors.filter(function(e){return!l.includes(e)}),(!this.component.rowDrafts||null!==(o=this.root)&&void 0!==o&&o.submitted)&&this.showRowErrorAlerts(e,!!a),!!a}},{key:"showRowErrorAlerts",value:function(e,n){if(e.alerts&&this.alert){var r;null!==(r=e.errors)&&void 0!==r&&r.length&&!n?(this.alert.showErrors(e.errors,!1),e.alerts=!0):this.alert.clear()}}},{key:"checkValidity",value:function(e,n,r,o){return(e=e||this.rootValue,r=r||this.data,this.checkCondition(r,e))?this.checkComponentValidity(e,n,r,{silentCheck:o}):(this.setCustomValidity(""),!0)}},{key:"checkComponentValidity",value:function(e,n,r){var o,i,a,l=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=s.silentCheck,c=this.errors.length,f=O(j(p.prototype),"checkComponentValidity",this).call(this,e,n,r,s);if(!f&&!this.alert&&!this.hasOpenRows())return!1;if(this.shouldSkipValidation(e,n,r))return!0;var d=!0,h=!1;if(this.editRows.forEach(function(e,r){var o=l.validateRow(e,n,u);if(d&=o,l.rowRefs){var i=l.rowRefs[r];if(i){var a=i.querySelector(".editgrid-row-error");!o&&a&&(!l.component.rowDrafts||l.shouldValidateDraft(e))?(l.addClass(a,"help-block"),a.textContent=l.t(l.errorMessage("invalidRowError"))):a&&(a.textContent="")}}h|=n&&l.isOpen(e)}),!d)return u||this.component.rowDrafts&&(null===(o=this.root)||void 0===o||!o.submitted)||(this.setCustomValidity(this.t(this.errorMessage("invalidRowsError")),n),this.removeClass(this.element,"has-error")),!1;if(h&&this.saveEditMode&&!this.component.openWhenEmpty)return this.setCustomValidity(this.t(this.errorMessage("unsavedRowsError")),n),!1;var y=this.invalid||this.invalidMessage(e,n);return(null===(i=this.errors)||void 0===i?void 0:i.length)!==c&&null!==(a=this.root)&&void 0!==a&&a.submitted&&!y?(this.setCustomValidity(y,n),this.root.showErrors()):this.setCustomValidity(y,n),f}},{key:"changeState",value:function(e,n){this.visible&&(e||n.resetValue&&this.component.modalEdit)?this.rebuild():this.redraw()}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e||(e=this.defaultValue),!Array.isArray(e)){if("object"!==d(e))return!1;e=[e]}var o=this.hasChanged(e,this.dataValue);r.noValidate=!o,this.parent&&!(this.options.server&&!this.parent.parentVisible)&&this.parent.checkComponentConditions(),this.dataValue=e,this.dataValue.forEach(function(e,o){var i=n.editRows[o];i?(i.data=e,n.restoreRowContext(i,r),i.state=_.Saved,i.backup=null,i.error=null):n.editRows[o]={components:n.lazyLoad?[]:n.createRowComponents(e,o),data:e,state:_.Saved,backup:null,error:null}});var i=this.dataValue.length;return this.editRows[i]&&this.editRows[i].state===_.New&&(i+=1),this.editRows.slice(i).forEach(function(e,r){return n.baseRemoveRow(i+r)}),this.editRows=this.editRows.slice(0,i),this.openWhenEmpty(),this.updateOnChange(r,o),this.options.server||this.checkData(),this.changeState(o,r),o}},{key:"openWhenEmpty",value:function(){var e=!this.dataValue.length&&this.component.openWhenEmpty;this.editRows.length||!e||this.builderMode||this.createRow({},0)}},{key:"restoreRowContext",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.components.forEach(function(o){o.data=e.data,n.setNestedValue(o,e.data,r)})}},{key:"emptyRows",value:function(){var e=this;this.editRows.forEach(function(n,r){return e.destroyComponents(r)}),this.editRows=[]}},{key:"resetValue",value:function(){O(j(p.prototype),"resetValue",this).call(this),this.emptyRows()}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"editgrid",label:"Edit Grid",key:"editGrid",clearOnHide:!0,input:!0,tree:!0,removeRow:"Cancel",defaultOpen:!1,openWhenEmpty:!1,modal:!1,components:[],inlineEdit:!1,templates:{header:p.defaultHeaderTemplate,row:p.defaultRowTemplate,tableHeader:p.defaultTableHeaderTemplate,tableRow:p.defaultTableRowTemplate,footer
vendor: 9,095 bytes, line 1
1:""}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Edit Grid",icon:"tasks",group:"data",documentation:"/userguide/form-building/data-components#edit-grid",showPreview:!1,weight:30,schema:p.schema()}}},{key:"defaultHeaderTemplate",get:function(){return'<div class="row">\n      {% util.eachComponent(components, function(component) { %}\n        {% if (displayValue(component)) { %}\n          <div class="col-sm-2">{{ t(component.label) }}</div>\n        {% } %}\n      {% }) %}\n    </div>'}},{key:"defaultTableHeaderTemplate",get:function(){return'\n      <tr>\n        {% util.eachComponent(components, function(component) { %}\n          {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n            <td class="editgrid-table-column">{{ component.label }}</td>\n          {% } %}\n        {% }) %}\n        {% if (!instance.options.readOnly && !instance.disabled) { %}\n          <td class="editgrid-table-column">Actions</td>\n        {% } %}\n      </tr>\n    '}},{key:"defaultRowTemplate",get:function(){return'<div class="row">\n      {% util.eachComponent(components, function(component) { %}\n        {% if (displayValue(component)) { %}\n          <div class="col-sm-2">\n            {{ isVisibleInRow(component) ? getView(component, row[component.key]) : \'\'}}\n          </div>\n        {% } %}\n      {% }) %}\n      {% if (!instance.options.readOnly && !instance.disabled) { %}\n        <div class="col-sm-2">\n          <div class="btn-group pull-right">\n            <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass(\'edit\') }}"></i></button>\n            {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass(\'trash\') }}"></i></button>\n            {% } %}\n          </div>\n        </div>\n      {% } %}\n    </div>'}},{key:"defaultTableRowTemplate",get:function(){return'\n      {% util.eachComponent(components, function(component) { %}\n          {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n            <td class="editgrid-table-column">\n              {{ getView(component, row[component.key]) }}\n            </td>\n          {% } %}\n        {% }) %}\n        {% if (!instance.options.readOnly && !instance.disabled) { %}\n          <td class="editgrid-table-column">\n            <div class="btn-group">\n              <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t(\'Edit row\') }}"><i class="{{ iconClass(\'edit\') }}"></i></button>\n              {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t(\'Remove row\') }}"><i class="{{ iconClass(\'trash\') }}"></i></button>\n              {% } %}\n            </div>\n          </td>\n        {% } %}\n    '}}],r&&v(p.prototype,r),l&&v(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p}(a.default);n.default=S,S.prototype.hasChanged=l.default.prototype.hasChanged},54607:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"checkbox",input:!0,weight:105,key:"inlineEdit",label:"Inline Editing",tooltip:"Check this if you would like your changes within 'edit' mode to be committed directly to the submission object as that row is being changed"},{key:"defaultValue",ignore:!0},{key:"multiple",ignore:!0}]},53485:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(62277))&&o.__esModule?o:{default:o};n.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Open First Row when Empty",key:"openWhenEmpty",tooltip:"Check this if you would like to open up the first row when the EditGrid is empty",weight:1e3,input:!0,conditional:{json:{"!==":[{var:"data.modal"},!0]}}},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:1001,input:!0,clearOnHide:!1,calculateValue:"value = data.disableAddingRemovingRows;"},{type:"checkbox",label:"Display EditGrid as Table",key:"displayAsTable",tooltip:"use Table Template",weight:1002,input:!1,customConditional:function(){return!i.default.noeval}},{weight:1010,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}}]},51702:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(62277))&&o.__esModule?o:{default:o};n.default=[{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 <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:function(e){var n=e.data;return(!i.default.noeval||i.default.protectedEval)&&!n.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 <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:function(e){var n=e.data;return(!i.default.noeval||i.default.protectedEval)&&n.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 <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:function(e){var n=e.data;return(!i.default.noeval||i.default.protectedEval)&&!n.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 <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:function(e){var n=e.data;return(!i.default.noeval||i.default.protectedEval)&&n.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 <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> 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."}]},26447:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{type:"checkbox",input:!0,weight:105,key:"rowDrafts",label:"Enable Row Drafts",tooltip:"Allow save rows even if their data is invali
1d. Errors will occur when try to submit with invalid rows."}]},558:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n  ',e.util.eachComponent(e.components,function(o){r+="\n    ",(!o.hasOwnProperty("tableView")||o.tableView)&&(r+='\n      <div class="col-sm-2">'+(null==(n=e.t(o.label))?"":n)+"</div>\n    "),r+="\n  "}),r+="\n</div>\n"}},74590:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(24884)),i=a(r(558));function a(e){return e&&e.__esModule?e:{default:e}}var l={row:o.default,header:i.default};n.default=l},24884:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n  ',e.util.eachComponent(e.components,function(o){r+="\n    ",(!o.hasOwnProperty("tableView")||o.tableView)&&(r+='\n      <div class="col-sm-2">\n        '+(null==(n=e.getView(o,e.row[o.key]))?"":n)+"\n      </div>\n    "),r+="\n  "}),r+="\n  ",e.self.options.readOnly||(r+='\n    <div class="col-sm-2">\n      <div class="btn-group pull-right">\n        <button class="btn btn-default btn-light btn-sm editRow"><i class="'+(null==(n=e.iconClass("edit"))?"":n)+'"></i></button>\n        <button class="btn btn-danger btn-sm removeRow"><i class="'+(null==(n=e.iconClass("trash"))?"":n)+'"></i></button>\n      </div>\n    </div>\n  '),r+="\n</div>\n"}},48133:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"validation",components:a.default}]].concat(n))},r(67998);var o=l(r(22080)),i=l(r(72411)),a=l(r(60379));function l(e){return e&&e.__esModule?e:{default:e}}},95927:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(20680),r(67998),r(43053),r(56613),r(65813);var i,a=(i=r(9128))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(d,e);var n,r,i,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(d);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),f.apply(this,arguments)}return r=[{key:"init",value:function(){s(c(d.prototype),"init",this).call(this),this.validators.push("email")}},{key:"defaultSchema",get:function(){return d.schema()}},{key:"inputInfo",get:function(){var e=s(c(d.prototype),"inputInfo",this);return e.attr.type=this.component.mask?"password":"email",e}},{key:"normalizeValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=s(c(d.prototype),"normalizeValue",this).call(this,e,n),this.options.server&&e&&(e=Array.isArray(e)?e.map(function(e){return e.toLowerCase()}):e.toLowerCase()),e}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"email",label:"Email",key:"email",inputType:"email",kickbox:{enabled:!1}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Email",group:"advanced",icon:"at",documentation:"/userguide/form-building/advanced-components#email",weight:10,schema:d.schema()}}}],r&&l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=f},72411:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},60379:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{type:"panel",label:"Kickbox",title:"Kickbox",weight:102,key:"kickbox",components:[{type:"checkbox",label:"Enable",tooltip:"Enable Kickbox validation for this email field.",description:"Validate this email using the Kickbox email validation service.",key:"kickbox.enabled"}]}]},92290:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default}]].concat(n))},r(67998);
1var o=a(r(53409)),i=a(r(76753));function a(e){return e&&e.__esModule?e:{default:e}}},91704:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(37097),r(80107),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(43053),r(56613),r(65813);var i,a=(i=r(77975))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(d,e);var n,r,i,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(d);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=f.call.apply(f,[this].concat(r))).noField=!0,e}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"className",get:function(){return"".concat(this.transform("class","form-group")," ").concat(u(c(d.prototype),"className",this))}},{key:"templateName",get:function(){return"fieldset"}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Field Set",key:"fieldSet",type:"fieldset",legend:"",components:[],input:!1,persistent:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Field Set",icon:"th-large",group:"layout",documentation:"/userguide/form-building/layout-components#field-set",showPreview:!1,weight:20,schema:d.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],r&&l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=f},76753:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:function(e){return e.data.legend}},{weight:1,type:"textfield",input:!0,key:"legend",label:"Legend",placeholder:"Legend",tooltip:"The legend for this Fieldset."}]},31411:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
vendor: 8,786 bytes, line 1
1return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{label:"File",key:"file",weight:5,components:l.default},{key:"validation",components:s.default}]].concat(n))},r(67998);var o=u(r(5956)),i=u(r(8063)),a=u(r(21086)),l=u(r(6450)),s=u(r(43960));function u(e){return e&&e.__esModule?e:{default:e}}},4978:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(43053),r(56613),r(65813),r(84812),r(23850),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(33559),r(78089),r(11414),r(28839),r(88910),r(25718),r(62877),r(82001),r(87562),r(19035),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(64652),r(18666),r(41135),r(51486),r(37753),r(73997),r(10462),r(82582),r(46398),r(64954),r(69536),r(29712),r(12695),r(2946),r(46315),r(21735),r(52507),r(26137),r(43025),r(52451),r(46801),r(8479),r(59689),r(98031),r(65085),r(68053),r(33604),r(36721),r(53402),r(55096),r(20680),r(70601),r(49907),r(30890),r(70776),r(3616),r(19012),r(45399),r(71287),r(33546),r(88852),r(41967),r(97599),r(67998),r(95496),r(789),r(31490),r(98797),r(93538),r(45945),r(65801),r(92647),r(44991),r(7122),r(60757),r(26803),r(92471),r(86328),r(94195);var i,a,l=h(r(32802)),s=r(38163),u=h(r(92489)),c=h(r(2890)),f=h(r(32780)),d=h(r(74757)),p=h(r(17990));function h(e){return e&&e.__esModule?e:{default:e}}function y(){y=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,n,r){e[n]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,n,r){return Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,r){return e[n]=r}}function f(e,n,r,o){var a,l,s=Object.create((n&&n.prototype instanceof h?n:h).prototype);return i(s,"_invoke",{value:(a=new S(o||[]),l="suspendedStart",function(n,o){if("executing"===l)throw Error("Generator is already running");if("completed"===l){if("throw"===n)throw o;return E()}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(void 0===i)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=void 0,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),p;var a=d(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var l=a.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,p)}(i,a);if(s){if(s===p)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===l)throw l="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l="executing";var u=d(e,r,a);if("normal"===u.type){if(l=a.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(l="completed",a.method="throw",a.arg=u.arg)}})}),s}function d(e,n,r){try{return{type:"normal",arg:e.call(n,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var b={};c(b,l,function(){return this});var g=Object.getPrototypeOf,w=g&&g(g(C([])));w&&w!==n&&r.call(w,l)&&(b=w);var k=v.prototype=h.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(n){c(e,n,function(e){return this._invoke(n,e)})})}function P(e,n){var a;i(this,"_invoke",{value:function(i,l){function s(){return new n(function(a,s){!function i(a,l,s,u){var c=d(e[a],e,l);if("throw"!==c.type){var f=c.arg,p=f.value;return p&&"object"==o(p)&&r.call(p,"__await")?n.resolve(p.__await).then(function(e){i("next",e,s,u)},function(e){i("throw",e,s,u)}):n.resolve(p).then(function(e){f.value=e,s(f)},function(e){return i("throw",e,s,u)})}u(c.arg)}(i,l,a,s)})}return a=a?a.then(s,s):s()}})}function j(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function _(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return m.prototype=v,i(k,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},O(P.prototype),c(P.prototype,s,function(){return this}),e.AsyncIterator=P,e.async=function(n,r,o,i,a){void 0===a&&(a=Promise);var l=new P(f(n,r,o,i),a);return e.isGeneratorFunction(r)?l:l.next().then(function(e){return e.done?e.value:l.next()})},O(k),c(k,u,"Generator"),c(k,l,function(){return this}),c(k,"toString",function(){return"[object Generator]"}),e.keys=function(e){var n=Object(e),r=[];for(var o in n)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in n)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=void 0),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var l=a?a.completion:{};return l.type=e,l.arg=n,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(l)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),p},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),p}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var i=o.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function m(e,n,r,o,i,a,l){try{var s=e[a](l),u=s.value}catch(e){r(e);return}s.done?n(u):Promise.resolve(u).then(o,i)}function v(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function b(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?v(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=w(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEac
1h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,w(o.key),o)}}function w(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function k(){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=P(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function O(e,n){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=navigator.camera||i;(a=window.HTMLCanvasElement)&&!a.prototype.toBlob&&Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,n,r){var o=this;setTimeout(function(){for(var i=atob(o.toDataURL(n,r).split(",")[1]),a=i.length,l=new Uint8Array(a),s=0;s<a;s++)l[s]=i.charCodeAt(s);e(new Blob([l],{type:n||"image/png"}))})}});var _=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&O(e,n)}(v,e);var n,r,a,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=P(v);if(n){var i=P(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function v(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,v),h.apply(this,arguments)}return r=[{key:"init",value:function(){k(P(v.prototype),"init",this).call(this),j=navigator.camera||i;var e="undefined"!=typeof FileReader,n=!!window.FormData,r=!!window.XMLHttpRequest&&"upload"in new XMLHttpRequest;this.support={filereader:e,formdata:n,hasWarning:!e||!n||!r,progress:r},this.cameraMode=!1,this.statuses=[],this.fileDropHidden=!1}},{key:"dataReady",get:function(){return this.filesReady||f.default.resolve()}},{key:"defaultSchema",get:function(){return v.schema()}},{key:"loadImage",value:function(e){return this.component.privateDownload&&(e.private=!0),this.fileService.downloadFile(e).then(function(e){return e.url})}},{key:"emptyValue",get:function(){return[]}},{key:"getValueAsString",value:function(e){return c.default.isArray(e)?c.default.map(e,"originalName").join(", "):c.default.get(e,"originalName","")}},{key:"getValue",value:function(){return this.dataValue}},{key:"defaultValue",get:function(){var e=k(P(v.prototype),"defaultValue",this);return Array.isArray(e)?e:[]}},{key:"hasTypes",get:function(){return this.component.fileTypes&&Array.isArray(this.component.fileTypes)&&0!==this.component.fileTypes.length&&(""!==this.component.fileTypes[0].label||""!==this.component.fileTypes[0].value)}},{key:"fileDropHidden",get:function(){return this._fileBrowseHidden},set:function(e){"boolean"!=typeof e||this.component.multiple||(this._fileBrowseHidden=e)}},{key:"render",value:function(){return k(P(v.prototype),"render",this).call(this,this.renderTemplate("file",{fileSize:this.fileSize,files:this.dataValue||[],statuses:this.statuses,disabled:this.disabled,support:this.support,fileDropHidden:this.fileDropHidden}))}},{key:"getVideoStream",value:function(e){return navigator.mediaDevices.getUserMedia({video:b({width:{min:640,ideal:1920},height:{min:360,ideal:1080},aspectRatio:{ideal:16/9}},e),audio:!1})}},{key:"stopVideoStream",value:function(e){e.getVideoTracks().forEac
1h(function(e){return e.stop()})}},{key:"getFrame",value:function(e){return new f.default(function(n){var r=document.createElement("canvas");r.height=e.videoHeight,r.width=e.videoWidth,r.getContext("2d").drawImage(e,0,0),r.toBlob(n)})}},{key:"startVideo",value:function(){var e=this;this.getVideoStream().then(function(n){e.videoStream=n;var r=e.refs.videoPlayer;if(!r){console.warn("Video player not found in template."),e.cameraMode=!1,e.redraw();return}r.srcObject=n;var o=parseInt(e.component.webcamSize)||320;r.setAttribute("width",o),r.play()}).catch(function(n){console.error(n),e.cameraMode=!1,e.redraw()})}},{key:"stopVideo",value:function(){this.videoStream&&(this.stopVideoStream(this.videoStream),this.videoStream=null)}},{key:"takePicture",value:function(){var e=this,n=this.refs.videoPlayer;if(!n){console.warn("Video player not found in template."),this.cameraMode=!1,this.redraw();return}this.getFrame(n).then(function(n){n.name="photo-".concat(Date.now(),".png"),e.upload([n]),e.cameraMode=!1,e.redraw()})}},{key:"browseFiles",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new f.default(function(r){var o=e.ce("input",b({type:"file",style:"height: 0; width: 0; visibility: hidden;",tabindex:"-1"},n));document.body.appendChild(o),o.addEventListener("change",function(){r(o.files),document.body.removeChild(o)},!0),"function"==typeof o.trigger?o.trigger("click"):o.click()})}},{key:"cameraMode",get:function(){return this._cameraMode},set:function(e){this._cameraMode=e,e?this.startVideo():this.stopVideo()}},{key:"useWebViewCamera",get:function(){return this.imageUpload&&j}},{key:"imageUpload",get:function(){return!!this.component.image}},{key:"browseOptions",get:function(){var e={};if(this.component.multiple&&(e.multiple=!0),!this.isMobile.any){var n=this.component.filePattern.trim()||"",r="image/*";this.imageUpload&&(!n||"*"===n)?e.accept=r:this.imageUpload&&!n.includes(r)?e.accept="".concat(r,",").concat(n):e.accept=n}return e}},{key:"deleteFile",value:function(e){var n=this.component.options;if(e&&["url","indexeddb"].includes(this.component.storage)){var r=this.fileService;if(r&&"function"==typeof r.deleteFile)r.deleteFile(e,void 0===n?{}:n);else{var o=this.options.formio||this.root&&this.root.formio;o&&o.makeRequest("",e.url,"delete")}}}},{key:"attach",value:function(e){var n=this;this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",galleryButton:"single",cameraButton:"single",takePictureButton:"single",toggleCameraMode:"single",videoPlayer:"single",fileLink:"multiple",removeLink:"multiple",fileStatusRemove:"multiple",fileImage:"multiple",fileType:"multiple",fileProcessingLoader:"single"}),this.refs.input=[];var r=k(P(v.prototype),"attach",this).call(this,e);if(this.refs.fileDrop){this.statuses.length||this.refs.fileDrop.removeAttribute("hidden");var o=this;this.addEventListener(this.refs.fileDrop,"dragover",function(e){this.className="fileSelector fileDragOver",e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"dragleave",function(e){this.className="fileSelector",e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"drop",function(e){this.className="fileSelector",e.preventDefault(),o.upload(e.dataTransfer.files)})}if(this.refs.fileBrowse&&this.addEventListener(this.refs.fileBrowse,"click",function(e){e.preventDefault(),n.browseFiles(n.browseOptions).then(function(e){n.upload(e)})}),this.refs.fileLink.forEach(function(e,r){n.addEventListener(e,"click",function(e){e.preventDefault(),n.getFile(n.dataValue[r])})}),this.refs.removeLink.forEach(function(e,r){n.addEventListener(e,"click",function(e){var o=n.dataValue[r];n.deleteFile(o),e.preventDefault(),n.splice(r),n.redraw()})}),this.refs.fileStatusRemove.forEach(function(e,r){n.addEventListener(e,"click",function(e){e.preventDefault();var o=n.statuses[r];c.default.pull(n.filesUploading,o.originalName),o.abort&&o.abort(),n.statuses.splice(r,1),n.redraw()})}),this.refs.galleryButton&&j&&this.addEventListener(this.refs.galleryButton,"click",function(e){e.preventDefault(),j.getPicture(function(e){window.resolveLocalFileSystemURL(e,function(e){e.file(function(e){var r=new FileReader;r.onloadend=function(r){var o=new Blob([new Uint8Array(r.target.result)],{type:e.type});o.name=e.name,n.upload([o])},r.readAsArrayBuffer(e)})})},function(e){console.error(e)},{sourceType:j.PictureSourceType.PHOTOLIBRARY})}),this.refs.cameraButton&&j&&this.addEventListener(this.refs.cameraButton,"click",function(e){e.preventDefault(),j.getPicture
1(function(e){window.resolveLocalFileSystemURL(e,function(e){e.file(function(e){var r=new FileReader;r.onloadend=function(r){var o=new Blob([new Uint8Array(r.target.result)],{type:e.type});o.name=e.name,n.upload([o])},r.readAsArrayBuffer(e)})})},function(e){console.error(e)},{sourceType:j.PictureSourceType.CAMERA,encodingType:j.EncodingType.PNG,mediaType:j.MediaType.PICTURE,saveToPhotoAlbum:!0,correctOrientation:!1})}),this.refs.takePictureButton&&this.addEventListener(this.refs.takePictureButton,"click",function(e){e.preventDefault(),n.takePicture()}),this.refs.toggleCameraMode&&this.addEventListener(this.refs.toggleCameraMode,"click",function(e){e.preventDefault(),n.cameraMode=!n.cameraMode,n.redraw()}),this.refs.fileType.forEach(function(e,r){n.dataValue[r].fileType=n.dataValue[r].fileType||n.component.fileTypes[0].label,n.addEventListener(e,"change",function(e){e.preventDefault();var o=n.component.fileTypes.find(function(n){return n.value===e.target.value});n.dataValue[r].fileType=o.label})}),this.fileService){var i=[];this.filesReady=new f.default(function(e,r){n.filesReadyResolve=e,n.filesReadyReject=r}),this.refs.fileImage.forEach(function(e,r){i.push(n.loadImage(n.dataValue[r]).then(function(n){return e.src=n}))}),i.length?f.default.all(i).then(function(){n.filesReadyResolve()}).catch(function(){return n.filesReadyReject()}):this.filesReadyResolve()}return r}},{key:"fileSize",value:function(e,n,r,o,i){return"".concat((r=(n=Math).log,o=1024,i=r(e)/r(o)|0,e/n.pow(o,i)).toFixed(2)," ").concat(i?"".concat("kMGTPEZY"[--i],"B"):"Bytes")}},{key:"globStringToRegex",value:function(e){e=e.replace(/\s/g,"");var n="",r=[];if(e.length>2&&"/"===e[0]&&"/"===e[e.length-1])n=e.substring(1,e.length-1);else{var o=e.split(",");if(o.length>1)for(var i=0;i<o.length;i++){var a=this.globStringToRegex(o[i]);a.regexp?(n+="(".concat(a.regexp,")"),i<o.length-1&&(n+="|")):r=r.concat(a.excludes)}else e.startsWith("!")?r.push("^((?!".concat(this.globStringToRegex(e.substring(1)).regexp,").)*$")):(e.startsWith(".")&&(e="*".concat(e)),n=(n="^".concat(e.replace(RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&"),"$")).replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:n,excludes:r}}},{key:"translateScalars",value:function(e){if("string"==typeof e){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1048576*e.substring(0,e.length-2));if(e.search(/gb/i)===e.length-2)return parseFloat(1073741824*e.substring(0,e.length-2));if(e.search(/b/i)===e.length-1||e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e}},{key:"validatePattern",value:function(e,n){if(!n)return!0;var r=this.globStringToRegex(n),o=!0;if(r.regexp&&r.regexp.length){var i=RegExp(r.regexp,"i");o=!c.default.isNil(e.type)&&i.test(e.type)||!c.default.isNil(e.name)&&i.test(e.name)}return r.excludes.reduce(function(n,r){var o=RegExp(r,"i");return n&&(c.default.isNil(e.type)||!o.test(e.type))&&(c.default.isNil(e.name)||!o.test(e.name))},o)}},{key:"validateMinSize",value:function(e,n){return e.size+.1>=this.translateScalars(n)}},{key:"validateMaxSize",value:function(e,n){return e.size-.1<=this.translateScalars(n)}},{key:"upload",value:function(e){var n,r,o=this;this.component.multiple||(this.statuses.length&&(this.statuses=[]),e=Array.prototype.slice.call(e,0,1)),this.component.storage&&e&&e.length&&(this.fileDropHidden=!0,Array.prototype.forEach.call(e,(n=y().mark(function e(n){var r,i,a,l,u,f,h,m,v,g,w,k,O,P,j,_,S,C,E,x,R,M,T,A;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(0,s.uniqueName)(n.name,o.component.fileNameTemplate,o.evalContext()),a={abort:function(){return null},originalName:i=n.name?n.name.replaceAll("<","&lt;").replaceAll(">","&gt;"):n.name,name:r,size:n.size,status:"info",message:o.t("Processing file. Please wait..."),hash:""},"true"!==o.root.form.submissionRevisions){e.next=12;break}return o.statuses.push(a),o.redraw(),l=new p.default,e.next=9,new Promise(function(e,r){o.emit("fileUploadingStart"),l.md5(n,function(n,o){return n?r(n):e(o)})});
1case 9:u=e.sent,o.emit("fileUploadingEnd"),a.hash=u;case 12:if(o.filesUploading||(o.filesUploading=[]),f=o.filesUploading.some(function(e){return e===n.name}),o.filesUploading.push(n.name),h=o.dataValue.some(function(e){return e.originalName===n.name}),m=o.statuses.findIndex(function(e){return e.originalName===n.name&&"error"===e.status}),(h||f)&&(a.status="error",a.message=o.t("File with the same name is already ".concat(f?"being ":"","uploaded"))),-1!==m&&(o.statuses.splice(m,1),o.redraw()),o.component.filePattern&&!o.validatePattern(n,o.component.filePattern)&&(a.status="error",a.message=o.t("File is the wrong type; it must be {{ pattern }}",{pattern:o.component.filePattern})),o.component.fileMinSize&&!o.validateMinSize(n,o.component.fileMinSize)&&(a.status="error",a.message=o.t("File is too small; it must be at least {{ size }}",{size:o.component.fileMinSize})),o.component.fileMaxSize&&!o.validateMaxSize(n,o.component.fileMaxSize)&&(a.status="error",a.message=o.t("File is too big; it must be at most {{ size }}",{size:o.component.fileMaxSize})),v=o.interpolate(o.component.dir||""),(g=o.fileService)||(a.status="error",a.message=o.t("File Service not provided.")),"true"!==o.root.form.submissionRevisions&&(o.statuses.push(a),o.redraw()),!("error"!==a.status)){e.next=62;break}if(o.component.privateDownload&&(n.private=!0),k=(w=o.component).storage,P=void 0===(O=w.options)?{}:O,j=o.interpolate(o.component.url,{file:a}),_=null,S=null,o.root.everyComponent(function(e){var n,r;(null!==(n=e.component)&&void 0!==n&&n.submissionAccess||null!==(r=e.component)&&void 0!==r&&r.defaultPermission)&&(S=e.component.submissionAccess?e.component.submissionAccess:[{type:e.component.defaultPermission,roles:[]}]).forEach(function(n){_=["admin","write","create"].includes(n.type)?e.component.key:null})}),C=o.component.fileKey||"file",E=_?o.currentForm.submission.data[_]._id:null,x=null,!o.root.options.fileProcessor){e.next=55;break}return e.prev=37,o.refs.fileProcessingLoader&&(o.refs.fileProcessingLoader.style.display="block"),R=(0,d.default)(o.fileService,o.root.options.fileProcessor),e.next=42,R(n,o.component.properties);case 42:x=e.sent,e.next=52;break;case 45:return e.prev=45,e.t0=e.catch(37),a.status="error",a.message=o.t("File processing has been failed."),o.fileDropHidden=!1,o.redraw(),e.abrupt("return");case 52:return e.prev=52,o.refs.fileProcessingLoader&&(o.refs.fileProcessingLoader.style.display="none"),e.finish(52);case 55:M=0,T=!!o.component.useMultipartUpload&&!!o.component.multipart&&b(b({},o.component.multipart),{},{progressCallback:function(e){M++,a.status="progress",a.progress=parseInt(100*M/e),delete a.message,o.redraw()},changeMessage:function(e){a.message=e,o.redraw()}}),a.message=o.t("Starting upload..."),o.redraw(),A=g.uploadFile(k,x||n,r,v,function(e){a.status="progress",a.progress=parseInt(100*e.loaded/e.total),delete a.message,o.redraw()},j,P,C,S,E,function(){o.emit("fileUploadingStart",A)},function(e){return a.abort=e},T).then(function(e){var n=o.statuses.indexOf(a);-1!==n&&o.statuses.splice(n,1),e.originalName=i,e.hash=a.hash,o.hasValue()||(o.dataValue=[]),o.dataValue.push(e),c.default.pull(o.filesUploading,e.originalName),o.fileDropHidden=!1,o.redraw(),o.triggerChange(),o.emit("fileUploadingEnd",A)}).catch(function(e){a.status="error",a.message="string"==typeof e?e:e.toString(),delete a.progress,o.fileDropHidden=!1,c.default.pull(o.filesUploading,n.name),o.redraw(),o.emit("fileUploadingEnd",A)}),e.next=63;break;case 62:o.filesUploading.splice(o.filesUploading.indexOf(n.name),1);case 63:case"end":return e.stop()}},e,null,[[37,45,52,55]])}),r=function(){var e=this,r=arguments;return new Promise(function(o,i){var a=n.apply(e,r);function l(e){m(a,o,i,l,s,"next",e)}function s(e){m(a,o,i,l,s,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})))}},{key:"getFile",value:function(e){var n=this.component.options,r=void 0===n?{}:n,o=this.fileService;if(!o)return alert("File Service not provided");this.component.privateDownload&&(e.private=!0),o.downloadFile(e,r).then(function(e){e&&(["base64","indexeddb"].includes(e.storage)?(0,u.default)(e.url,e.originalName||e.name,e.type):window.open(e.url,"_blank"))}).catch(function(e){alert(e)})}},{key:"focus",value:function(){"beforeFocus"in this.parent&&this.parent.beforeFocus(this),this.refs.fileBrowse&&this.refs.fileBrowse.focus()}},{key:"destroy",value:function(){this.stopVideo(),k(P(v.prototype),"destroy",this).call(this)}}],a=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{type:"file",label:"Upload",key:"file",image:!1,privateDownload:!1,imageSize:"200",filePattern:"*",fileMinSize:"0KB",fileMaxSize:"1GB",uploadOnly:!1}
vendor: 17,695 bytes, line 1
1].concat(n))}},{key:"builderInfo",get:function(){return{title:"File",group:"premium",icon:"file",documentation:"/userguide/form-building/premium-components#file",weight:100,schema:v.schema()}}},{key:"serverConditionSettings",get:function(){return v.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return b(b({},k(P(v),"conditionOperatorsSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.object]}}],r&&g(v.prototype,r),a&&g(v,a),Object.defineProperty(v,"prototype",{writable:!1}),v}(l.default);n.default=_},8063:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"defaultValue",ignore:!0}]},21086:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0}]},6450:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(20680);var o,i=r(79408),a=(o=r(2890))&&o.__esModule?o:{default:o};n.default=[{type:"select",input:!0,key:"storage",label:"Storage",placeholder:"Select your file storage provider",weight:0,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return a.default.map(i.GlobalFormio.Providers.getProviders("storage"),function(e,n){return{label:e.title,value:n}})}}},{type:"checkbox",input:!0,key:"useMultipartUpload",label:"Use the S3 Multipart Upload API",tooltip:"The <a href='https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html'>S3 Multipart Upload API</a> is designed to improve the upload experience for larger objects (> 5GB).",conditional:{json:{"===":[{var:"data.storage"},"s3"]}}},{label:"Multipart Upload",tableView:!1,key:"multipart",type:"container",input:!0,components:[{label:"Part Size (MB)",applyMaskOn:"change",mask:!1,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",truncateMultipleSpaces:!1,validate:{min:5,max:5e3},key:"partSize",type:"number",input:!0,defaultValue:500}],conditional:{json:{"===":[{var:"data.useMultipartUpload"},!0]}}},{type:"textfield",input:!0,key:"url",label:"Url",weight:10,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"options.indexeddb",label:"Database",weight:10,placeholder:"Enter the indexeddb database name",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textfield",input:!0,label:"Table",key:"options.indexeddbTable",weight:10,placeholder:"Enter the name for indexeddb table",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textarea",key:"options",label:"Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:15,placeholder:'{\n      "withCredentials": true,\n      "headers": {\n        "Authorization": "Basic <key>"\n      }\n    }',conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"fileKey",label:"File form-data key",weight:17,placeholder:"Enter the key name of a file for form data.",tooltip:"Key name that you would like to modify for the file while calling API request.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"dir",label:"Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:20,conditional:{json:{"!==":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"dir",label:"Folder ID",placeholder:"(optional) Enter an ID of the folder for the files",tooltip:"This will place all the files uploaded in this field in the folder",weight:20,conditional:{json:{"===":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"fileNameTemplate",label:"File Name Template",placeholder:"(optional) { {name} }-{ {guid} }",tooltip:"Specify template for name of uploaded file(s). Regular template variables are available (`data`, `component`, `user`, `value`, `moment` etc.), also `fileName`, `guid` variables are available. `guid` part must be present, if not found in template, will be added at the end.",weight:25},{type:"checkbox",input:!0,key:"image",label:"Display as image(s)",tooltip:"Instead of a list of linked files, images will be rendered in the view.",weight:30},{type:"checkbox",input:!0,key:"uploadOnly",label:"Upload Only",tooltip:"When this is checked, will only allow you to upload file(s) and consequently the download, in this component, will be unavailable.",weight:33},{type:"checkbox",input:!0,key:"privateDownload",label:"Private Download",tooltip:"When this is checked, the file download will send a POST request to the download URL with the x-jwt-token header. This will allow your endpoint to create a Private download system.",weight:31,conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"imageSize",label:"Image Size",placeholder:"100",tooltip:"The image size for previewing images.",weight:40,conditional:{json:{"==":[{var:"data.image"},!0]}}},{type:"checkbox",input:!0,key:"webcam",label:"Enable web camera",tooltip:"This will allow using an attached camera to directly take a picture instead of uploading an existing file.",weight:32},{type:"textfield",input:!0,key:"webcamSize",label:"Webcam Width",placeholder:"320",tooltip:"The webcam size for taking pictures.",weight:38,conditional:{json:{"==":[{var:"data.webcam"},!0]}}},{type:"datagrid",input:!0,label:"File Types",key:"fileTypes",tooltip:"Specify file types to classify the uploads. This is useful if you allow multiple types of uploads but want to allow the user to specify which type of file each is.",weight:11,components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textfield",input:!0,key:"filePattern",label:"File Pattern",placeholder:".jpg,video/*,application/pdf",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file patterns.",weight:50},{type:"textfield",input:!0,key:"fileMinSize",label:"File Minimum Size",placeholder:"1MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:60},{type:"textfield",input:!0,key:"fileMaxSize",label:"File Maximum Size",placeholder:"10MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:70}]},43960:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},98659:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{label:"Form",key:"form",weight:10,components:a.default},{label:"Data",key:"data",weight:10,components:l.default}]].concat(n))},r(67998);var o=s(r(53409)),i=s(r(95383)),a=s(r(35589)),l=s(r(90148));function s(e){return e&&e.__esModule?e:{default:e}}},99048:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(48510),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(789),r(31490),r(97291),r(21587),r(89352),r(49907),r(37753),r(30890),r(70601),r(86328),r(43053),r(56613),r(65813);var i=p(r(2890)),a=p(r(35849)),l=p(r(40411)),s=p(r(28729)),u=p(r(32780)),c=r(38163),f=r(79408),d=p(r(52539));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?h(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=v(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}function v(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=w(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function g(e,n){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(v,e);var n,r,p,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w(v);if(n){var i=w(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function v(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,v),h.apply(this,arguments)}return r=[{key:"init",value:function(){if(b(w(v.prototype),"init",this).call(this),this.formObj={display:this.component.display,settings:this.component.settings,components:this.component.components},this.valueChanged=!1,this.subForm=null,this.formSrc="",this.component.src&&(this.formSrc=this.component.src),!this.component.src&&!this.options.formio&&(this.component.form||this.component.path)&&(this.component.project?(this.formSrc=f.GlobalFormio.getBaseUrl(),(0,c.isMongoId)(this.component.project)&&(this.formSrc+="/project"),this.formSrc+="/".concat(this.component.project)):this.formSrc=f.GlobalFormio.getProjectUrl(),this.options.project=this.formSrc,this.component.form?(0,c.isMongoId)(this.component.form)?this.formSrc+="/form/".concat(this.component.form):this.formSrc+="/".concat(this.component.form):this.component.path&&(this.formSrc+="/".concat(this.component.path))),!this.formSrc&&this.options.formio){var e=this.options.formio.formsUrl;if(this.component.form&&(0,c.isMongoId)(this.component.form))this.formSrc="".concat(e,"/").concat(this.component.form);else{var n=this.component.path||this.component.form;this.formSrc="".concat(e.replace(/\/form$/,""),"/").concat(n)}}return this.builderMode&&this.component.hasOwnProperty("formRevision")&&(this.component.revision=this.component.formRevision,delete this.component.formRevision),(this.component.revision||0===this.component.revision||this.component.formRevision||0===this.component.formRevision||this.component.revisionId)&&this.setFormRevision(this.component.revisionId||this.component.revision||this.component.formRevision),this.createSubForm()}},{key:"dataReady",get:function(){return this.subFormReady||u.default.resolve()}},{key:"defaultValue",get:function(){return this.subForm?b(w(v.prototype),"defaultValue",this):null}},{key:"defaultSchema",get:function(){return v.schema()}},{key:"emptyValue",get:function(){return{data:{}}}},{key:"ready",get:function(){return this.subFormReady||u.default.resolve()}},{key:"useOriginalRevision",get:function(){var e,n;return(null===(e=this.component)||void 0===e?void 0:e.useOriginalRevision)&&!!(null!==(n=this.formObj)&&void 0!==n&&n.revisions)}},{key:"setFormRevision",value:function(e){this.formSrc=this.formSrc.replace(/\/v\/[0-9a-z]+/,""),isNaN(Number.parseInt(e))?this.subFormRevision=void 0:(this.subFormRevision=e,this.formSrc+="/v/".concat(e))}},{key:"getComponent",value:function(e,n){"data"===(e=(0,c.getArrayFromComponentPath)(e))[0]&&e.shift();var r="".concat(this.path,".data.").concat((0,c.getStringFromComponentPath)(e));if(this.subForm)return this.subForm.getComponent(e,n,r)}},{key:"getSubOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.parentPath="".concat(this.path,".data."),e.events=this.createEmitter(),i.default.set(e,"buttonSettings.showSubmit",!1),this.options&&(this.options.base&&(e.base=this.options.base),this.options.project&&(e.project=this.options.project),(this.options.readOnly||this.component.disabled)&&(e.readOnly=this.options.readOnly||this.component.disabled),this.options.breadcrumbSettings&&(e.breadcrumbSettings=this.options.breadcrumbSettings),this.options.buttonSettings&&(e.buttonSettings=i.default.clone(this.options.buttonSettings)),this.options.viewAsHtml&&(e.viewAsHtml=this.options.viewAsHtml),this.options.language&&(e.language=this.options.language),this.options.template&&(e.template=this.options.template),this.options.templates&&(e.templates=this.options.templates),this.options.renderMode&&(e.renderMode=this.options.renderMode),this.options.attachMode&&(e.attachMode=this.options.attachMode),this.options.iconset&&(e.iconset=this.options.iconset),this.options.fileService&&(e.fileService=this.options.fileService),this.options.onChange&&(e.onChange=this.options.onChange),this.options.preview&&(e.preview=this.options.preview),this.options.saveDraft&&(e.saveDraft=this.options.saveDraft,e.formio=new f.GlobalFormio(this.formSrc)),this.options.saveDraftThrottle&&(e.saveDraftThrottle=this.options.saveDraftThrottle),this.options.skipDraftRestore&&(e.skipDraftRestore=this.options.skipDraftRestore)),e}},{key:"render",value:function(){if(this.builderMode)return b(w(v.prototype),"render",this).call(this,this.component.label||"Nested form");var e=this.subForm?this.subForm.render():this.renderTemplate("loading");return b(w(v.prototype),"render",this).call(this,e)}},{key:"asString",value:function(e){return this.getValueAsString(e)}},{key:"getValueAsString",value:function(e,n){if(!e)return"No data provided";if(!e.data&&e._id)return e._id;if(!e.data||!Object.keys(e.data).length)return"No data provided";if(null!=n&&n.email){var r='\n        <table border="1" style="width:100%">\n          <tbody>\n      ';return this.everyComponent(function(e){e.isInputComponent&&e.visible&&!e.skipInEmail&&(r+='\n            <tr>\n              <th style="padding: 5px 10px;">'.concat(e.label,'</th>\n              <td style="width:100%;padding:5px 10px;">').concat(e.getView(e.dataValue,n),"</td>\n            </tr>\n          "))},y(y({},n),{},{fromRoot:!0})),r+="\n          </tbody>\n        </table>\n      "}return i.default.isEmpty(e)?"":"[Complex Data]"}},{key:"attach",value:function(e){var n=this;return this.builderMode?b(w(v.prototype),"attach",this).call(this,e):b(w(v.prototype),"attach",this).call(this,e).then(function(){return!n.isSubFormLazyLoad()||n.hasLoadedForm||n.subFormLoading||n.createSubForm(!0),n.subFormReady.then(function(){if(n.empty(e),n.options.builder){n.setContent(e,n.ce("div",{class:"text-muted text-center p-2"},n.text(n.formObj.title)));return}if(n.setContent(e,n.render()),n.subForm&&(n.isNestedWizard&&(e=n.root.element),n.subForm.attach(e),n.valueChanged=n.hasSetValue,n.valueChanged||"submitted"===n.dataValue.state?n.restoreValue():n.setDefaultValue()),!n.builderMode&&n.component.modalEdit){var r=!!n.componentModal&&n.componentModal.isOpened,o=r?n.componentModal.currentValue:n.dataValue;n.componentModal=new l.default(n,e,r,o),n.setOpenModalElement()}n.calculateValue()})})}},{key:"detach",value:function(){this.subForm&&this.subForm.detach(),b(w(v.prototype),"detach",this).call(this)}},{key:"currentForm",get:function(){return this._currentForm},set:function(e){var n=this;this._currentForm=e,this.subForm&&this.subForm.getComponents().forEac
1h(function(e){e.currentForm=n})}},{key:"hasLoadedForm",get:function(){return this.formObj&&this.formObj.components&&Array.isArray(this.formObj.components)&&this.formObj.components.length}},{key:"isRevisionChanged",get:function(){return i.default.isNumber(this.subFormRevision)&&i.default.isNumber(this.formObj._vid)&&this.formObj._vid!==this.subFormRevision}},{key:"destroy",value:function(){this.subForm&&(this.subForm.destroy(),this.subForm=null,this.subFormReady=null),b(w(v.prototype),"destroy",this).call(this)}},{key:"redraw",value:function(){return this.subForm&&(this.subForm.form=this.formObj,this.setSubFormDisabled(this.subForm)),b(w(v.prototype),"redraw",this).call(this)}},{key:"everyComponent",value:function(){if(this.subForm){var e;(e=this.subForm).everyComponent.apply(e,arguments)}}},{key:"setSubFormDisabled",value:function(e){e.disabled=this.disabled}},{key:"updateSubWizards",value:function(e){var n,r,o=this;if(this.isNestedWizard&&null!==(n=this.root)&&void 0!==n&&n.subWizards&&(null==e?void 0:null===(r=e._form)||void 0===r?void 0:r.display)==="wizard"){var i=this.root.subWizards.findIndex(function(e){return e.component.form===o.component.form});-1!==i?this.root.subWizards[i]=this:this.root.subWizards.push(this),this.emit("subWizardsUpdated",e)}}},{key:"createSubForm",value:function(e){var n=this;return this.subFormReady=this.loadSubForm(e).then(function(e){if(e)return(0,c.eachComponent)(e.components,function(e){n.hideSubmitButton(e)}),n.subForm&&n.subForm.destroy(),new d.default(e,n.getSubOptions()).ready.then(function(e){return n.subForm=e,n.subForm.currentForm=n,n.subForm.parent=n,n.subForm.parentVisible=n.visible,n.subForm.on("change",function(){n.subForm&&(n.dataValue=n.subForm.getValue(),n.triggerChange({noEmit:!0}))}),n.subForm.url=n.formSrc,n.subForm.nosubmit=!0,n.subForm.root=n.root,n.subForm.localRoot=n.isNestedWizard?n.localRoot:n.subForm,n.restoreValue(),n.valueChanged=n.hasSetValue,n.onChange(),n.subForm})}).then(function(e){return n.updateSubWizards(e),e}),this.subFormReady}},{key:"hideSubmitButton",value:function(e){"button"!==e.type||"submit"!==e.action&&e.action||(e.hidden=!0)}},{key:"loadSubForm",value:function(e){var n,r=this;return this.builderMode||this.isHidden()||this.isSubFormLazyLoad()&&!e?u.default.resolve():!this.hasLoadedForm||this.isRevisionChanged||this.options.pdf&&null!==(n=this.component)&&void 0!==n&&n.useOriginalRevision&&i.default.isNull(this.subForm)&&!this.subFormLoading?this.formSrc?(this.subFormLoading=!0,new f.GlobalFormio(this.formSrc).loadForm({params:{live:1}}).then(function(e){return r.formObj=e,r.options.pdf&&r.component.useOriginalRevision&&(r.formObj.display="form"),r.subFormLoading=!1,e}).catch(function(e){return console.log(e),null})):u.default.resolve():(this.root&&this.root.form&&this.root.form.config&&!this.formObj.config&&(this.formObj.config=this.root.form.config),u.default.resolve(this.formObj))}},{key:"subFormData",get:function(){var e;return(null===(e=this.dataValue)||void 0===e?void 0:e.data)||{}}},{key:"checkComponentValidity",value:function(e,n,r,o){var i=(o=o||{}).silentCheck||!1;return this.subForm?this.subForm.checkValidity(this.subFormData,n,null,i):b(w(v.prototype),"checkComponentValidity",this).call(this,e,n,r,o)}},{key:"checkComponentConditions",value:function(e,n,r){var o=this,i=b(w(v.prototype),"checkComponentConditions",this).call(this,e,n,r);return i?this.subForm?this.subForm.checkConditions(this.subFormData):(this.subFormReady&&this.subFormReady.then(function(){if(o.subForm)return o.subForm.checkConditions(o.subFormData)}),i):i}},{key:"calculateValue",value:function(e,n,r){return this.subForm?this.subForm.calculateValue(this.subFormData,n):b(w(v.prototype),"calculateValue",this).call(this,e,n,r)}},{key:"setPristine",value:function(e){b(w(v.prototype),"setPristine",this).call(this,e),this.subForm&&this.subForm.setPristine(e)}},{key:"shouldSubmit",get:function(){return this.subFormReady&&(!this.component.hasOwnProperty("reference")||this.component.reference)&&!this.isHidden()}},{key:"getSubFormData",value:function(){return"pdf"===i.default.get(this.subForm,"form.display")?this.subForm.getSubmission():u.default.resolve(this.dataValue)}},{key:"submitSubForm",value:function(e){var n=this;return this.shouldSubmit?this.subFormReady.then(function(){return n.subForm?(n.subForm.nosubmit=!1,n.subForm.submitForm(
1).then(function(e){return n.subForm.loading=!1,n.subForm.showAllErrors=!1,n.dataValue=e.submission,n.dataValue}).catch(function(r){return(n.subForm.showAllErrors=!0,e)?(n.subForm.onSubmissionError(r),u.default.reject(r)):{}})):n.dataValue}):this.getSubFormData()}},{key:"beforePage",value:function(e){var n=this;return e?this.submitSubForm(!0).then(function(){return b(w(v.prototype),"beforePage",n).call(n,e)}):b(w(v.prototype),"beforePage",this).call(this,e)}},{key:"beforeSubmit",value:function(){var e,n,r,o=this,i=this.dataValue;null!==(e=this.subForm)&&void 0!==e&&e.draftEnabled&&null!==(n=this.subForm.triggerSaveDraft)&&void 0!==n&&n.cancel&&this.subForm.triggerSaveDraft.cancel();var a=i&&i._id&&i.form,l=this.options.saveDraft&&"draft"===i.state;return!a||null!==(r=this.subForm)&&void 0!==r&&r.wizard||l?this.submitSubForm(!1).then(function(){return o.dataValue}).then(function(){return b(w(v.prototype),"beforeSubmit",o).call(o)}):(this.dataValue=i,u.default.resolve(this.dataValue))}},{key:"isSubFormLazyLoad",value:function(){var e,n;return(null===(e=this.root)||void 0===e?void 0:null===(n=e._form)||void 0===n?void 0:n.display)==="wizard"&&this.component.lazyLoad}},{key:"isHidden",value:function(){return!this.shouldForceShow()&&(!this.visible||!b(w(v.prototype),"checkConditions",this).call(this,this.rootValue))}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=b(w(v.prototype),"setValue",this).call(this,e,r);if(this.valueChanged=!0,this.subForm){var a,l=e._frid?"_frid":"_vid";this.useOriginalRevision&&(i.default.isNumber(e[l])||i.default.isNumber(e._fvid))&&i.default.isNumber(null===(a=this.subForm.form)||void 0===a?void 0:a[l])&&e._fvid!==this.subForm.form[l]?(this.setFormRevision(e._frid||e._fvid),this.createSubForm().then(function(){n.attach(n.element)})):this.setSubFormValue(e,r)}return o}},{key:"setSubFormValue",value:function(e,n){if(e&&e._id&&this.subForm.formio&&i.default.isEmpty(e.data)){var r=e.form||this.formObj.form||this.component.form,o="".concat(this.subForm.formio.formsUrl,"/").concat(r,"/submission/").concat(e._id);this.subForm.setUrl(o,this.options),this.subForm.loadSubmission().catch(function(n){console.error("Unable to load subform submission ".concat(e._id,":"),n)})}else this.subForm.setValue(e,n)}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return null===e||i.default.isEqual(e,this.emptyValue)||this.areAllComponentsEmpty(null==e?void 0:e.data)&&!(null!=e&&e._id)}},{key:"areAllComponentsEmpty",value:function(e){var n=!0;return this.subForm?this.subForm.everyComponent(function(r){var o=i.default.get(e,r.key);n&=r.isEmpty(o)}):n=!1,n}},{key:"getValue",value:function(){return this.subForm?this.subForm.getValue():this.dataValue}},{key:"errors",get:function(){var e=b(w(v.prototype),"errors",this);return this.subForm&&(e=e.concat(this.subForm.errors)),e}},{key:"updateSubFormVisibility",value:function(){this.subForm&&(this.subForm.parentVisible=this.visible)}},{key:"isNestedWizard",get:function(){var e,n,r,o,i;return(null===(e=this.subForm)||void 0===e?void 0:null===(n=e._form)||void 0===n?void 0:n.display)==="wizard"&&(null===(r=this.parent)||void 0===r?void 0:null===(o=r.parent)||void 0===o?void 0:null===(i=o._form)||void 0===i?void 0:i.display)==="wizard"}},{key:"visible",get:function(){return b(w(v.prototype),"visible",this)},set:function(e){var n=this,r=this.isNestedWizard;if(this._visible!==e){if(this._visible=e,!this.subForm&&e){this.createSubForm(),this.subFormReady.then(function(){n.updateSubFormVisibility(),n.clearOnHide()}),this.redraw();return}this.updateSubFormVisibility(),this.clearOnHide(),r?this.rebuild():this.redraw()}!e&&r&&this.root.redraw()}},{key:"parentVisible",get:function(){return b(w(v.prototype),"parentVisible",this)},set:function(e){var n=this;if(this._parentVisible!==e){if(this._parentVisible=e,this.clearOnHide(),!this.subForm&&e){this.createSubForm(),this.subFormReady.then(function(){n.updateSubFormVisibility()}),this.redraw();return}this.updateSubFormVisibility(),this.redraw()}}},{key:"isInternalEvent",value:function(e){switch(e){case"focus":case"blur":case"componentChange":case"componentError":case"error":case"formLoad":case"languageChanged":case"render":case"checkValidity":case"initialized":case"submit":case"submitButton":case"nosubmit":case"updateComponent":case"submitDone":case"submissionDeleted":case"requestDone":case"nextPage":case"prevPage":case"wizardNavigationClicked":case"updateWizardNav":case"restoreDraft":case"saveDraft":case"saveComponent":case"pdfUploaded":return!0;default:return!1}}},{key:"createEmitter",value:function(){var e=new s.default,n=e.emit,r=this;return e.emit=function(e){for(var o=e.replace("".concat(r.options.namespace,"."),""),i=arguments.length,a=Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];n.call.apply(n,[this,e].concat(a)),r.isInternalEvent(o)||r.emit.apply(r,[o].concat(a))},e}},{key:"deleteValue",value:function(){b(w(v.prototype),"setValue",this).call(this,null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}}],p=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Form",type:"form",key:"form",src:"",reference:!0,form:"",path:"",tableView:!0}
vendor: 4,489 bytes, line 1
1].concat(n))}},{key:"builderInfo",get:function(){return{title:"Nested Form",icon:"wpforms",group:"premium",documentation:"/userguide/form-building/premium-components#nested-form",weight:110,schema:v.schema()}}},{key:"savedValueTypes",value:function(){return[c.componentValueTypes.object]}}],r&&m(v.prototype,r),p&&m(v,p),Object.defineProperty(v,"prototype",{writable:!1}),v}(a.default);n.default=k},90148:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(16700))&&o.__esModule?o:{default:o},a=[i.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",120,'<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>','<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),i.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",130,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>'),{weight:140,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0}];n.default=a},95383:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabIndex",ignore:!0},{key:"autofocus",ignore:!0}]},35589:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(97599),r(37753),n.default=[{type:"select",input:!0,dataSrc:"url",data:{url:"/form?limit=1000000&select=_id,title,display"},searchField:"title__regex",template:"<span>{{ item.title }}</span>",valueProperty:"_id",authenticate:!0,label:"Form",key:"form",weight:10,lazyLoad:!1,tooltip:"The form to load within this form component.",validate:{required:!0}},{label:"Lazy Load",inputType:"checkbox",defaultValue:!0,clearOnHide:!0,errorLabel:"",key:"lazyLoad",type:"checkbox",tooltip:"if it is checked, the subform is loaded after navigation to the page with this component within the wizard.",input:!0,customConditional:function(e){var n,r,o,i,a=e.instance,l=e.data,s=null===(n=a.root)||void 0===n?void 0:null===(r=n.getComponent("form"))||void 0===r?void 0:r.defaultDownloadedResources.find(function(e){return e._id===l.form}),u="wizard";return(null===(o=a.options)||void 0===o?void 0:null===(i=o.editForm)||void 0===i?void 0:i.display)===u&&s&&s.display!==u}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form/{{ data.form }}/v"},searchField:"title__regex",template:"<span>{{ item._vid }}</span>",valueProperty:"_id",authenticate:!0,label:"Form Revision",key:"revision",weight:10,lazyLoad:!0,tooltip:"You can lock the nested form to a specific revision by choosing the revision number here.",customConditional:"show = !!data.form"},{type:"checkbox",input:!0,weight:19,key:"useOriginalRevision",label:"Use Original Revision while Submissions Viewing",tooltip:"Using this option will make form load the original revision (the one which was used to make a submission) when viewing a submission."},{type:"checkbox",input:!0,weight:20,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record."}]},62785:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",components:a.default},{key:"validation",ignore:!0},{key:"conditional",ignore:!0}]].concat(n))},r(67998);var o=l(r(5956)),i=l(r(5692)),a=l(r(39994));function l(e){return e&&e.__esModule?e:{default:e}}},82482:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(889
110),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(43053),r(56613),r(65813);var i,a=(i=r(95306))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(d,e);var n,r,i,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(d);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),f.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"inputInfo",get:function(){var e=s(c(d.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="change",e}},{key:"skipInEmail",get:function(){return!0}},{key:"validateMultiple",value:function(){return!1}},{key:"labelIsHidden",value:function(){return!0}},{key:"emptyValue",get:function(){return""}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.updateValue(e,n)}},{key:"getValue",value:function(){return this.dataValue}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"hidden",tableView:!1,inputType:"hidden"}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Hidden",group:"data",icon:"user-secret",weight:0,documentation:"/userguide/form-building/data-components#hidden",showPreview:!1,schema:d.schema()}}}],r&&l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=f},39994:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"allowCalculateOverride",ignore:!0}]},5692:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.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:"tabindex",ignore:!0},{key:"hidden",ignore:!0},{key:"tableView",ignore:!0},{key:"disabled",ignore:!0}]},54083:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
1return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:a.default}]].concat(n))},r(67998);var o=l(r(5956)),i=l(r(16088)),a=l(r(70848));function l(e){return e&&e.__esModule?e:{default:e}}},34540:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(71287),r(789),r(31490),r(20680),r(37753),r(26803),r(67998),r(43053),r(56613),r(65813);var i=l(r(35849)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=f(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(p,e);var n,r,l,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(p);if(n){var i=f(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),d.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.content;if("select"===this.component.content.replace(/(<(\/?[^>]+)>)/g,"").trim())return" ".concat(this.component.content," ");var e=a.default.get(this.root,"submission",{}),n=this.component.content?this.interpolate(this.component.content,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):"";return this.sanitize(n,this.shouldSanitizeValue)}},{key:"singleTags",get:function(){return["br","img","hr"]}},{key:"checkRefreshOn",value:function(e){u(f(p.prototype),"checkRefreshOn",this).call(this,e),!this.builderMode&&this.component.refreshOnChange&&this.element&&!a.default.isUndefined(e)&&(a.default.isBoolean(e)&&e||!a.default.isEmpty(e))&&this.conditionallyVisible(this.data,this.row)&&this.setContent(this.element,this.renderContent())}},{key:"renderContent",value:function(){var e=this,n=a.default.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map(function(r){return{attr:r.attr,value:e.interpolate(r.value,{metadata:n.metadata||{},submission:n,data:e.rootValue,row:e.data})}}),content:this.content,singleTags:this.singleTags})}},{key:"render",value:function(){return u(f(p.prototype),"render",this).call(this,this.renderContent())}},{key:"dataReady",get:function(){var e;return(null===(e=this.root)||void 0===e?void 0:e.submissionReady)||Promise.resolve()}},{key:"attach",value:function(e){var n=this;return this.loadRefs(e,{html:"single"}),this.dataReady.then(function(){n.refs.html&&n.setContent(n.refs.html,n.content)}),u(f(p.prototype),"attach",this).call(this,e)}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{label:"HTML",type:"htmlelement",tag:"p",attrs:[],content:"",input:!1,persistent:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"HTML Element",group:"layout",icon:"code",weight:0,documentation:"/userguide/form-building/layout-components#html-element",showPreview:!1,schema:p.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],r&&s(p.prototype,r),l&&s(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p}(i.default);n.default=d},16088:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.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",ke
vendor: 1,974 bytes, line 1
1y:"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:'<div class="well">Content</div>',key:"content",weight:80},{weight:85,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},70848:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{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:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"content",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:30,input:!0,customConditional:function(e){return"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}}]}]}]}]},429:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=Q(r(60034)),i=Q(r(86563)),a=Q(r(45743)),l=Q(r(46566)),s=Q(r(35849)),u=Q(r(40411)),c=Q(r(44381)),f=Q(r(33325)),d=Q(r(33645)),p=Q(r(39453)),h=Q(r(38073)),y=Q(r(57800)),m=Q(r(84536)),v=Q(r(49489)),b=Q(r(95927)),g=Q(r(91704)),w=Q(r(4978)),
1k=Q(r(99048)),O=Q(r(82482)),P=Q(r(95306)),j=Q(r(2627)),_=Q(r(32802)),S=Q(r(94374)),C=Q(r(34540)),E=Q(r(77975)),x=Q(r(51824)),R=Q(r(40618)),M=Q(r(55925)),T=Q(r(83084)),A=Q(r(84551)),D=Q(r(20030)),V=Q(r(1987)),I=Q(r(9563)),L=Q(r(53443)),N=Q(r(10746)),F=Q(r(73409)),B=Q(r(18416)),z=Q(r(49465)),U=Q(r(55064)),q=Q(r(29716)),K=Q(r(36432)),H=Q(r(7493)),W=Q(r(9128)),G=Q(r(83378)),Y=Q(r(7741)),J=Q(r(67764)),Z=Q(r(53551)),X=Q(r(45885));function Q(e){return e&&e.__esModule?e:{default:e}}var ee={address:o.default,base:s.default,component:s.default,componentmodal:u.default,button:i.default,checkbox:a.default,columns:l.default,container:c.default,content:f.default,currency:d.default,datagrid:p.default,datamap:h.default,datetime:y.default,day:m.default,editgrid:v.default,email:b.default,input:P.default,field:_.default,multivalue:j.default,list:S.default,fieldset:g.default,file:w.default,form:k.default,hidden:O.default,htmlelement:C.default,nested:E.default,nesteddata:x.default,nestedarray:R.default,number:M.default,panel:T.default,password:A.default,phoneNumber:D.default,radio:V.default,recaptcha:I.default,resource:L.default,select:F.default,selectboxes:N.default,signature:B.default,survey:z.default,table:U.default,tabs:q.default,tags:K.default,textarea:H.default,textfield:W.default,time:G.default,tree:Y.default,unknown:J.default,url:Z.default,well:X.default};n.default=ee},92149:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"data",components:a.default},{key:"validation",components:l.default}]].concat(n))},r(67998);var o=s(r(22080)),i=s(r(72479)),a=s(r(42322)),l=s(r(58060));function s(e){return e&&e.__esModule?e:{default:e}}},55925:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37097),r(80107),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),r(26343),r(7122),r(3616),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(789),r(31490),r(55096),r(88754),r(70776),r(92647),r(33546),r(88852),r(31272),r(45399),r(37753),r(45945),r(70601),r(20680),r(43053),r(56613),r(65813);var i=r(15236),a=r(23436),l=c(r(2890)),s=c(r(95306)),u=r(38163);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function d(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function p(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?d(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=y(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function m(e,n){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=b(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(y,e);var n,r,c,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=b(y);if(n){var i=b(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];(n=d.call.apply(d,[this].concat(a))).validators=n.validators.concat(["min","max"]);var c=(0,u.getNumberSeparators)(n.options.language||navigator.language);n.decimalSeparator=n.options.decimalSeparator=n.component.decimalSymbol||n.options.decimalSeparator||(null===(e=n.options.properties)||void 0===e?void 0:e.decimalSeparator)||c.decimalSeparator,n.component.delimiter?n.delimiter=n.component.thousandsSeparator||(null===(r=n.options.properties)||void 0===r?void 0:r.thousandsSeparator)||n.options.thousandsSeparator||c.delimiter:((n.component.thousandsSeparator||null!==(o=n.options.properties)&&void 0!==o&&o.thousandsSeparator||n.options.thousandsSeparator)&&console.warn("In order for thousands separator to work properly, you must set the delimiter to true in the component json"),n.delimiter="");var f=l.default.get(n.component,"requireDecimal",!1);if(n.decimalLimit=(0,u.getNumberDecimalLimit)(n.component,f?2:20),l.default.has(n.options,"languageOverride.".concat(n.options.language))){var p=l.default.get(n.options,"languageOverride.".concat(n.options.language));n.decimalSeparator=p.decimalSeparator,n.delimiter=p.delimiter}return n.numberMask=n.createNumberMask(),n}return r=[{key:"createNumberMask",value:function(){return(0,i.createNumberMask)({prefix:"",suffix:"",requireDecimal
vendor: 4,073 bytes, line 1
1:l.default.get(this.component,"requireDecimal",!1),thousandsSeparatorSymbol:this.delimiter||"",decimalSymbol:l.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:l.default.get(this.component,"decimalLimit",this.decimalLimit),allowNegative:l.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"defaultSchema",get:function(){return y.schema()}},{key:"defaultValue",get:function(){var e=v(b(y.prototype),"defaultValue",this);return e||0!==this.component.defaultValue||(e=this.component.defaultValue),!this.component.multiple&&l.default.isArray(e)&&(e=e[0]||0===e[0]?e[0]:null),e}},{key:"isDecimalAllowed",value:function(){return l.default.get(this.component,"allowDecimal",!(this.component.validate&&this.component.validate.integer))}},{key:"parseNumber",value:function(e){return(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."),this.component.validate&&this.component.validate.integer)?parseInt(e,10):parseFloat(e)}},{key:"setInputMask",value:function(e){var n="[0-9";n+=(this.decimalSeparator||"")+(this.delimiter||"")+"]*",e.setAttribute("pattern",n),e.mask=(0,a.maskInput)({inputElement:e,mask:this.numberMask,shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"inputInfo",get:function(){var e=v(b(y.prototype),"inputInfo",this);return this.component.mask?e.attr.type="password":e.attr.type="text",e.attr.inputmode=this.isDecimalAllowed()?"decimal":"numeric",e.changeEvent="input",e}},{key:"getValueAt",value:function(e){if(!this.refs.input.length||!this.refs.input[e])return null;var n=this.refs.input[e].value;return n&&"-_"!==n?this.parseNumber(n):null}},{key:"setValueAt",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return v(b(y.prototype),"setValueAt",this).call(this,e,this.formatValue(this.parseValue(n)),r)}},{key:"parseValue",value:function(e){var n;return"string"==typeof e&&(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,".")),l.default.isNaN(e)?n=null:/[0-9]+[eE]/.test(String(e))?n=(n=parseFloat(e)).toExponential(this.decimalLimit):(n=parseFloat(e),n=l.default.isNaN(n)?null:String(n).replace(".",this.decimalSeparator)),n}},{key:"formatValue",value:function(e){return this.component.requireDecimal&&e&&!e.includes(this.decimalSeparator)?"".concat(e).concat(this.decimalSeparator).concat(l.default.repeat("0",this.decimalLimit)):this.component.requireDecimal&&e&&e.includes(this.decimalSeparator)?"".concat(e).concat(l.default.repeat("0",this.decimalLimit-e.split(this.decimalSeparator)[1].length)):e}},{key:"focus",value:function(){var e=this.refs.input[0];e&&(v(b(y.prototype),"focus",this).call(this),e.setSelectionRange(0,e.value.length))}},{key:"getMaskedValue",value:function(e){return(e=null===e?"0":e.toString()).includes(".")&&"."!==this.decimalSeparator&&(e=e.replace(".",this.decimalSeparator)),(0,a.conformToMask)(this.formatValue(e),this.numberMask).conformedValue}},{key:"getValueAsString",value:function(e,n){var r=this;return e||0===e?Array.isArray(e=this.getWidgetValueAsString(e,n))?e.map(function(e){return r.getMaskedValue(e)}).join(", "):this.getMaskedValue(e):""}},{key:"addFocusBlurEvents",value:function(e){var n=this;v(b(y.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",function(){e.value=n.getValueAsString(n.formatValue(n.parseValue(e.value)))})}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return s.default.schema.apply(s.default,[{type:"number",label:"Number",key:"number",validate:{min:"",max:"",step:"any",integer:""}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Number",icon:"hashtag",group:"basic",documentation:"/userguide/form-building/form-components#number",weight:30,schema:y.schema()}}},{key:"serverConditionSettings",get:function(){return y.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){var e;return p(p({},v(b(y),"conditionOperatorsSettings",this)),{},{operators:[].concat(function(e){if(Array.isArray(e))return f(e)}
1(e=v(b(y),"conditionOperatorsSettings",this).operators)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return f(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),["lessThan","greaterThan","lessThanOrEqual","greaterThanOrEqual"]),valueComponent:function(e){return p(p({},e),{},{type:"number"})}})}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,u.getComponentSavedTypes)(e)||[u.componentValueTypes.number]}}],r&&h(y.prototype,r),c&&h(y,c),Object.defineProperty(y,"prototype",{writable:!1}),y}(s.default);n.default=g},42322:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"checkbox",input:!0,weight:70,key:"delimiter",label:"Use Thousands Separator",tooltip:"Separate thousands by local delimiter."},{type:"number",input:!0,weight:80,key:"decimalLimit",label:"Decimal Places",tooltip:"The maximum number of decimal places."},{type:"checkbox",input:!0,weight:90,key:"requireDecimal",label:"Require Decimal",tooltip:"Always show decimals, even if trailing zeros."},{key:"case",ignore:!0}]},72479:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"spellcheck",ignore:!0},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},58060:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"unique",ignore:!0},{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0},{type:"number",label:"Minimum Value",key:"validate.min",input:!0,placeholder:"Minimum Value",tooltip:"The minimum value this field must have before the form can be submitted.",weight:150},{type:"number",label:"Maximum Value",key:"validate.max",input:!0,placeholder:"Maximum Value",tooltip:"The maximum value this field can have before the form can be submitted.",weight:160}]},73482:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"conditional",components:a.default}]].concat(n))},r(67998);var o=l(r(53409)),i=l(r(67878)),a=l(r(15214));function l(e){return e&&e.__esModule?e:{default:e}}},83084:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(789),r(31490),r(43053),r(56613),r(65813);var i=u(r(2890)),a=u(r(77975)),l=r(38163),s=u(r(99048));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function d(e,n){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(m,e);var n,r,u,y=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(m);if(n){var i=h(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return p(e)}(this,e)});function m(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=y.call.apply(y,[this].concat(r))).noField=!0,e.on("componentError",function(){(0,l.hasInvalidComponent)(p(e))&&e.collapsed&&(e.collapsed=!1)}),e}return r=[{key:"defaultSchema",get:function(){return m.schema()}},{key:"templateName",get:function(){return"panel"}},{key:"getComponent",value:function(e,n,r){var o;return(null===(o=this.root)||void 0===o?void 0:o.parent)instanceof s.default&&(i.default.isUndefined(r)&&(r=e),e=e.replace(this._parentPath,"")),f(h(m.prototype),"getComponent",this).call(this,e,n,r)}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Panel",type:"panel",key:"panel",title:"Panel",theme:"default",breadcrumb:"default",components:[],clearOnHide:!1,input:!1,tableView:!1,persistent:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Panel",icon:"list-alt",group:"layout",documentation:"/userguide/form-building/layout-components#panel",weight:30,schema:m.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],r&&c(m.prototype,r),u&&c(m,u),Object.defineProperty(m,"prototype",{writable:!1}),m}(a.default);n.default=y},15214:function(e,n,r){"use strict";r(64652),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(92471),r(37753),r(62107),r(21430),r(6778),r(68428),r(21587);var o=u(r(16700)),i=u(r(42077)),a=u(r(25727)),l=u(r(90650)),s=u(r(85346));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=function(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==c(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===c(n)?n:String(n)}(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEac
vendor: 4,321 bytes, line 1
1h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var p=[d(d({},o.default.javaScriptValue("Advanced Next Page","nextPage","nextPage",110,"\n  <p>You must assign the <strong>next</strong> variable with the API key of the next page.</p>\n  <p>The global variable <strong>data</strong> is provided, and allows you to access the data of any form component, by using its API key.</p>\n  <p>Also <strong>moment</strong> library is available, and allows you to manipulate dates in a convenient way.</p>\n  <h5>Example</h5><pre>next = data.addComment ? 'page3' : 'page4';</pre>\n","\n  <p>Submission data is available as JsonLogic variables, with the same api key as your components.</p>\n")),{},{customConditional:function(e){var n=!1;if("wizard"===e.instance.options.editForm.display){var r=e.instance.options.editForm.components,o=e.instance.options.editComponent;r&&o&&(n=r.some(function(e){var n=(0,l.default)((0,s.default)(e),(0,s.default)(o))||[];return n.push("components"),(0,i.default)((0,a.default)(e,n),(0,a.default)(o,n))}))}return n}})];n.default=p},67878:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(92471),r(37753);var o=s(r(42077)),i=s(r(25727)),a=s(r(90650)),l=s(r(85346));function s(e){return e&&e.__esModule?e:{default:e}}var u=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:function(e){return e.data.title}},{key:"tabindex",hidden:!0},{weight:1,type:"textfield",input:!0,placeholder:"Panel Title",label:"Title",key:"title",tooltip:"The title text that appears in the header of this panel."},{weight:20,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field."},{weight:30,type:"select",input:!0,label:"Theme",key:"theme",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{weight:40,type:"fieldset",input:!1,components:[{type:"select",input:!0,label:"Breadcrumb Type",key:"breadcrumb",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Condensed",value:"condensed"},{label:"Hidden",value:"none"}]}},{input:!0,type:"checkbox",label:"Allow click on Breadcrumb",key:"breadcrumbClickable",defaultValue:!0,conditional:{json:{"!==":[{var:"data.breadcrumb"},"none"]}}},{input:!0,type:"checkbox",label:"Allow Previous",key:"allowPrevious",defaultValue:!1,tooltip:"Determines if the breadcrumb bar is clickable or not for visited tabs.",conditional:{json:{"===":[{var:"data.breadcrumbClickable"},!1]}}},{weight:50,label:"Panel Navigation Buttons",optionsLabelPosition:"right",values:[{label:"Previous",value:"previous"},{label:"Cancel",value:"cancel"},{label:"Next",value:"next"}],inline:!0,type:"selectboxes",key:"buttonSettings",input:!0,inputType:"checkbox",defaultValue:{previous:!0,cancel:!0,next:!0}},{weight:55,label:"Navigate Wizard on Enter",type:"checkbox",key:"navigateOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to go forward through pages."},{weight:56,label:"Save on Enter",type:"checkbox",key:"saveOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to submit form on last page."},{weight:60,label:"Scroll up on page opening",type:"checkbox",key:"scrollToTop",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Scroll to the top of the wizard page when user navigates to it"}],customConditional:function(e){var n=!1;if("wizard"===e.instance.options.editForm.display){var r=e.instance.options.editForm.components,s=e.instance.options.editComponent;r&&s&&(n=r.some(function(e){var n=(0,a.default)((0,l.default)(e),(0,l.default)(s))||[];return n.push("components"),(0,o.default)((0,i.default)(e,n),(0,i.default)(s,n))}))}return n}},{weight:650,type:"checkbox",label:"Collapsible",tooltip:"If checked, this will turn this Panel into a collapsible panel.",key:"collapsible",input:!0},{weight:651,type:"checkbox",label:"Initially Collapsed",tooltip:"Determines the initial collapsed 
1state of this Panel.",key:"collapsed",input:!0,conditional:{json:{"===":[{var:"data.collapsible"},!0]}}}];n.default=u},54359:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"data",components:a.default},{key:"display",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(67998);var o=s(r(22080)),i=s(r(36622)),a=s(r(95471)),l=s(r(13513));function s(e){return e&&e.__esModule?e:{default:e}}},84551:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(43053),r(56613),r(65813);var i=l(r(9128)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=f(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(p,e);var n,r,l,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(p);if(n){var i=f(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),d.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return a.default.omit(p.schema(),["protected","tableView"])}},{key:"inputInfo",get:function(){var e=u(f(p.prototype),"inputInfo",this);return e.attr.type="password",e}},{key:"autocompleteDisableAttrName",get:function(){return"new-password"}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{type:"password",label:"Password",key:"password",protected:!0,tableView:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Password",icon:"asterisk",group:"basic",documentation:"/userguide/form-building/form-components#password",weight:40,schema:p.schema()}}}],r&&s(p.prototype,r),l&&s(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p}(i.default);n.default=d},95471:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"inputFormat",ignore:!0},{key:"persistent",ignore:!0},{key:"protected",ignore:!0},{key:"dbIndex",ignore:!0},{key:"encrypted",ignore:!0},{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"customDefaultValuePanel",ignore:!0},{key:"calculateValuePanel",ignore:!0},{key:"passwordInfo",weight:0,type:"htmlelement",tag:"div",className:"alert alert-info",content:"Password fields are automatically encrypted using 1-way salted bcrypt hashes. These hashes are also protected and not returned in the API."}]},36622:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{ignore:!0,key:"mask"},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0}]},13513:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"unique",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},25146:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:[{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},{key:"validation",components:i.default}]].concat(n))},r(67998);var o=a(r(22080)),i=a(r(92128));
1function a(e){return e&&e.__esModule?e:{default:e}}},20030:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(43053),r(56613),r(65813);var i=l(r(9128)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=f(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(p,e);var n,r,l,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(p);if(n){var i=f(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),d.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"getValueAsString",value:function(e,n){return null!=n&&n.email&&this.visible&&!this.skipInEmail&&a.default.isObject(e)?'\n        <table border="1" style="width:100%">\n          <tbody>\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(e.maskName,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(e.value,"</td>\n          </tr>\n          </tbody>\n        </table>\n      "):u(f(p.prototype),"getValueAsString",this).call(this,e,n)}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{type:"phoneNumber",label:"Phone Number",key:"phoneNumber",inputType:"tel",inputMask:"(999) 999-9999",inputMode:"decimal",displayMask:""}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Phone Number",group:"advanced",icon:"phone-square",weight:30,documentation:"/userguide/form-building/advanced-components#phone-number",schema:p.schema()}}}],r&&s(p.prototype,r),l&&s(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p}(i.default);n.default=d},92128:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0}
1,{key:"validate.pattern",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},86189:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(67998);var o=s(r(68693)),i=s(r(90714)),a=s(r(75238)),l=s(r(75715));function s(e){return e&&e.__esModule?e:{default:e}}},1987:function(e,n,r){"use strict";r(37097),r(80107),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(70601),r(11414),r(28839),r(26343),r(7122),r(789),r(89352),r(48510),r(33559),r(78089),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(3616),r(67998),r(41135),r(37753),r(88910),r(49907),r(30890),r(45399),r(45945),r(92471),r(86328),r(97599),r(92647),r(21587),r(43053),r(56613),r(65813);var o=u(r(2890)),i=u(r(94374)),a=u(r(32780)),l=r(79408),s=r(38163);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?c(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=y(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function h(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==d(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}function m(e,n){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=b(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(y,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=b(y);if(n){var o=b(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y),(o=c.call(this,e,n,r)).previousValue=o.dataValue||null,o}return r=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"defaultValue",get:function(){var e=v(b(y.prototype),"defaultValue",this);return e||!1!==this.component.defaultValue||(e=this.component.defaultValue),e}},{key:"inputInfo",get:function(){var e,n=v(b(y.prototype),"elementInfo",this).call(this);return n.type="input",n.changeEvent="click",n.attr.class="form-check-input",n.attr.name=n.attr.name+="[".concat(null===(e=this.root)||void 0===e?void 0:e.id,"-").concat(this.id,"]"),n}},{key:"emptyValue",get:function(){return""}},{key:"isRadio",get:function(){return"radio"===this.component.inputType}},{key:"optionSelectedClass",get:function(){return"radio-selected"}},{key:"listData",get:function(){var e=o.default.get(this.root,"submission.metadata.listData",{});return o.default.get(e,this.path)}},{key:"init",value:function(){var e=this;v(b(y.prototype),"init",this).call(this),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems","availableValueProperty"]);var n=[],r=o.default.debounce(function(){n=[];for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.updateItems.apply(e,o)},100);this.triggerUpdate=function(){"function"==typeof e.itemsLoadedResolve&&e.itemsLoadedResolve(),e.itemsLoaded=new a.default(function(n){e.itemsLoadedResolve=n});for(var o,i=arguments.length,l=Array(i),s=0;s<i;s++)l[s]=arguments[s];return l.length&&(n=l),r.apply(void 0,function(e){if(Array.isArray(e))return p(e)}(o=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,n){if(e){if("string"==typeof e)return p(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,n)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},this.itemsLoaded=new a.default(function(n){e.itemsLoadedResolve=n}),this.optionsLoaded=!1,this.loadedOptions=[],this.getTemplateKeys()}},{key:"render",value:function(){return v(b(y.prototype),"render",this).call(this,this.renderTemplate("radio",{input:this.inputInfo,inline:this.component.inline,values:"values"===this.component.dataSrc?this.component.values:this.loadedOptions,value:this.dataValue,row:this.row}))}},{key:"attach",value:function(e){var n=this;
1return this.loadRefs(e,{input:"multiple",wrapper:"multiple"}),this.refs.input.forEach(function(e,r){if(n.addEventListener(e,n.inputInfo.changeEvent,function(){n.updateValue(null,{modified:!0})}),n.component.values[r]&&n.addShortcut(e,n.component.values[r].shortcut),n.isRadio){var i=n.dataValue;if(o.default.isString(n.dataValue)||(i=o.default.toString(n.dataValue)),n.isSelectURL&&o.default.isObject(n.loadedOptions[r].value)){var a="string"===n.component.dataType?JSON.stringify(n.loadedOptions[r].value):n.loadedOptions[r].value;e.checked=o.default.isEqual(a,n.dataValue)}else e.checked=i===e.value&&(e.value||"url"!==n.component.dataSrc);n.addEventListener(e,"keyup",function(r){" "===r.key&&i===e.value&&(r.preventDefault(),n.updateValue(null,{modified:!0}))})}}),this.triggerUpdate(),this.setSelectedClasses(),v(b(y.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){var n=this;e&&this.refs.input&&this.refs.input.forEach(function(e,r){n.component.values[r]&&n.removeShortcut(e,n.component.values[r].shortcut)}),v(b(y.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){var e=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var n=this.dataValue;return this.refs.input.forEach(function(r,i){r.checked&&(n=e.isSelectURL&&o.default.isObject(e.loadedOptions[i].value)?e.loadedOptions[i].value:r.value)}),n}},{key:"validateValueProperty",value:function(){var e=this;return"values"===this.component.dataSrc||!o.default.some(this.refs.wrapper,function(n,r){return e.refs.input[r].checked&&e.loadedOptions[r].invalid})}},{key:"validateValueAvailability",value:function(e,n){var r=this;if(!(0,s.boolValue)(e)||!n)return!0;var o=this.component.values;return!!o&&-1!==o.findIndex(function(e){var o=e.value;return r.normalizeValue(o)===n})}},{key:"getValueAsString",value:function(e){if(o.default.isObject(e)?e=JSON.stringify(e):o.default.isString(e)||(e=o.default.toString(e)),"values"!==this.component.dataSrc)return e;var n=o.default.find(this.component.values,function(n){return n.value===e});return o.default.get(n,"label","")}},{key:"setValueAt",value:function(e,n){if(this.refs.input&&this.refs.input[e]&&null!=n){var r=this.refs.input[e].value;this.refs.input[e].checked=r===n.toString()}}},{key:"loadItems",value:function(e,n,r,o,i,a){var s=this;if(!this.optionsLoaded){if(!this.shouldLoad&&this.listData){this.loadItemsFromMetadata();return}"GET"===(i=i||"GET").toUpperCase()&&(a=null),o.ignoreCache=this.component.ignoreCache,o.header=r,this.loading=!0,l.GlobalFormio.makeRequest(this.options.formio,"select",e,i,a,o).then(function(e){s.loading=!1,s.error=null,s.setItems(e),s.optionsLoaded=!0,s.redraw()}).catch(function(e){s.handleLoadingError(e)})}}},{key:"loadItemsFromMetadata",value:function(){var e=this;this.listData.forEach(function(n,r){e.loadedOptions[r]={label:e.itemTemplate(n)},o.default.isEqual(n,e.selectData||o.default.pick(e.dataValue,o.default.keys(n)))&&(e.loadedOptions[r].value=e.dataValue)}),this.optionsLoaded=!0,this.redraw()}},{key:"setItems",value:function(e){var n=this,r=[];if(null==e||e.forEach(function(e,i){var a=o.default.get(e,n.component.valueProperty);n.loadedOptions[i]={value:n.component.valueProperty?a:e,label:n.component.valueProperty?n.itemTemplate(e,a):n.itemTemplate(e,e,i)},r.push(n.templateData[n.component.valueProperty?a:i]),(n.component.valueProperty||!n.isRadio)&&(o.default.isUndefined(a)||!n.isRadio&&o.default.isObject(a)||!n.isRadio&&o.default.isBoolean(a))&&(n.loadedOptions[i].invalid=!0)}),this.isSelectURL){var i=this.root.submission;i.metadata||(i.metadata={}),i.metadata.listData||(i.metadata.listData={}),o.default.set(i.metadata.listData,this.path,r)}}},{key:"setSelectedClasses",value:function(){var e=this;if(this.refs.wrapper){var n=this.dataValue;this.refs.wrapper.forEach(function(r,o){var i=e.refs.input[o];("checkbox"===i.type?n[i.value]:i.value.toString()===n.toString())?(e.addClass(r,e.optionSelectedClass),i.setAttribute("checked","true")):(e.removeClass(r,e.optionSelectedClass),i.removeAttribute("checked"))})}}},{key:"updateValue",value:function(e,n){var r=v(b(y.prototype),"updateValue",this).call(this,e,n);return(r&&this.setSelectedClasses(),n&&n.modified&&this.isRadio)?(this.currentValue=this.dataValue,n&&n.modified&&!n.noUpdateEvent&&this.previousValue===this.currentValue&&(this.resetValue(),this.triggerChange(n),this.setSelectedClasses()),this.previousValue=this.dataValue):r&&(this.previousValue=this.dataValue),r}},{key:"normalizeValue",value:function(e){var n=this.component.dataType||"auto";if(e===this.emptyValue)return e;switch(n){case"auto":!isNaN(parseFloat(e))&&isFinite(e)&&o.default.toString(e)===Number(e).toString()&&(e=+e),"true"===e&&(e=!0),"false"===e&&(e=!1);break;case"number":e=+e;break;case"string":e="object"===d(e)?JSON.stringify(e):String(e);break;case"boolean":e=!(!e||"false"===e.toString())}if(this.isSelectURL&&this.templateData&&this.templateData[e]){var r=this.root.submission;r.metadata.selectData||(r.metadata.selectData={}),o.default.set(r.metadata.selectData,this.path,this.templateData[e])}return v(b(y.prototype),"normalizeValue",this).call(this,e)}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{type:"radio",inputType:"radio",label:"Radio",key:"radio",values:[{label:"",value:""}],data:{url:""},fieldSet:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Radio",group:"basic",icon:"dot-circle-o",weight:80,documentation:"/userguide/form-building/form-components#radio",schema:y.schema()}}}
vendor: 4,291 bytes, line 1
1,{key:"conditionOperatorsSettings",get:function(){return f(f({},v(b(y),"conditionOperatorsSettings",this)),{},{valueComponent:function(e){return e.dataSrc&&"values"!==e.dataSrc?f(f({},e),{},{type:"select"}):{type:"select",dataSrc:"custom",valueProperty:"value",dataType:e.dataType||"",data:{custom:"values = ".concat(e&&e.values?JSON.stringify(e.values):[])}}}})}},{key:"serverConditionSettings",get:function(){return y.conditionOperatorsSettings}},{key:"savedValueTypes",value:function(e){var n=s.componentValueTypes.boolean,r=s.componentValueTypes.string,o=s.componentValueTypes.number,i=s.componentValueTypes.object,a=s.componentValueTypes.array,l=e.dataType;return(0,s.getComponentSavedTypes)(e)||("object"===l?[i,a]:s.componentValueTypes[l]?[s.componentValueTypes[l]]:[n,r,o,i,a])}}],r&&h(y.prototype,r),u&&h(y,u),Object.defineProperty(y,"prototype",{writable:!1}),y}(i.default);n.default=g},90714:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(14483),r(41135),r(37753),r(88910);var o=a(r(71125)),i=a(r(2890));function a(e){return e&&e.__esModule?e:{default:e}}var l=[{key:"multiple",ignore:!0},{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"}]},validate:{required:!0},onChange:function(e){e&&e.flags&&e.flags&&e.flags.modified&&(e.data.values=[{label:"",value:""}])}},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The radio button values that can be picked for this field. Values are text submitted with the form data. Labels are text that appears next to the radio buttons on the form.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);",validate:{required:!0}},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"The shortcut key for this option.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return o.default.getAvailableShortcuts(i.default.get(e,"instance.options.editForm",{}),i.default.get(e,"instance.options.editComponent",{}))}}}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"<span>{{ item.label }}</span>",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{key:"template",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}}];n.default=l},75238:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0},{type:"select",input:!0,label:"Options Label Position",key:"optionsLabelPosition",tooltip:"Position for the label for options for this field.",dataSrc:"values",weight:32,defaultValue:"right",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{type:"checkbox",input:!0,key:"inline",label:"Inline Layout",tooltip:"Displays the checkboxes/radios horizontally.",weight:650}]},75715:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.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}]},21846:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"logic",ignore:!0}]].concat(n))},r(67998);var o=a(r(5956)),i=a(r(36394));
1function a(e){return e&&e.__esModule?e:{default:e}}},9563:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(3616),r(67998),r(43053),r(56613),r(65813);var i=c(r(35849)),a=r(79408),l=c(r(98614)),s=c(r(68143)),u=c(r(32780));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=h(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=v(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e,n){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(h,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=v(h);if(n){var i=v(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h),f.apply(this,arguments)}return r=[{key:"render",value:function(){return(this.recaptchaResult=null,this.builderMode)?y(v(h.prototype),"render",this).call(this,"reCAPTCHA"):y(v(h.prototype),"render",this).call(this,"",!0)}},{key:"createInput",value:function(){if(this.builderMode)this.append(this.text(this.name));else{var e=(0,l.default)(this.root.form,"settings.recaptcha.siteKey");if(e){var n="https://www.google.com/recaptcha/api.js?render=".concat(e);this.recaptchaApiReady=a.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",n,!0)}else console.warn("There is no Site Key specified in settings in form JSON")}}},{key:"createLabel",value:function(){}},{key:"skipInEmail",get:function(){return!0}},{key:"verify",value:function(e){var n=this,r=(0,l.default)(this.root.form,"settings.recaptcha.siteKey");if(!r){console.warn("There is no Site Key specified in settings in form JSON");return}if(!this.recaptchaApiReady){var o="https://www.google.com/recaptcha/api.js?render=".concat((0,l.default)(this.root.form,"settings.recaptcha.siteKey"));this.recaptchaApiReady=a.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",o,!0)}this.recaptchaApiReady&&(this.recaptchaVerifiedPromise=new u.default(function(o,i){n.recaptchaApiReady.then(function(){n.isLoading||(n.isLoading=!0,grecaptcha.ready((0,s.default)(function(){gre
1captcha.execute(r,{action:e}).then(function(e){return n.sendVerificationRequest(e).then(function(e){var r=e.verificationResult,i=e.token;return n.recaptchaResult=d(d({},r),{},{token:i}),n.updateValue(n.recaptchaResult),o(r)})}).catch(function(){n.isLoading=!1})},1e3)))}).catch(function(){return i()})}).then(function(){n.isLoading=!1}))}},{key:"beforeSubmit",value:function(){var e=this;return this.recaptchaVerifiedPromise?this.recaptchaVerifiedPromise.then(function(){return y(v(h.prototype),"beforeSubmit",e).call(e)}):y(v(h.prototype),"beforeSubmit",this).call(this)}},{key:"sendVerificationRequest",value:function(e){return a.GlobalFormio.makeStaticRequest("".concat(a.GlobalFormio.projectUrl,"/recaptcha?recaptchaToken=").concat(e)).then(function(n){return{verificationResult:n,token:e}})}},{key:"checkComponentValidity",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=e||this.rootValue,r=r||this.data;var a=i.async;if(!(void 0!==a&&a))return y(v(h.prototype),"checkComponentValidity",this).call(this,e,n,r,i);var l=r[this.component.key];return l&&l.token?l.success?this.hook("validateReCaptcha",l.token,function(){return u.default.resolve(!0)}).then(function(e){return e}).catch(function(e){return o.setCustomValidity(o.t(e.message||e)),!1}):(this.setCustomValidity(this.t("reCaptchaTokenValidationError")),u.default.resolve(!1)):(this.setCustomValidity(this.t("reCaptchaTokenNotSpecifiedError")),u.default.resolve(!1))}},{key:"normalizeValue",value:function(e){return this.recaptchaResult?this.recaptchaResult:e}}
1],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{type:"recaptcha",key:"recaptcha",label:"reCAPTCHA"}].concat(n))}},{key:"builderInfo",get:function(){return{}}},{key:"savedValueTypes",value:function(){return[]}},{key:"conditionOperatorsSettings",get:function(){return d(d({},y(v(h),"conditionOperatorsSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}},{key:"serverConditionSettings",get:function(){return h.conditionOperatorsSettings}}],r&&p(h.prototype,r),c&&p(h,c),Object.defineProperty(h,"prototype",{writable:!1}),h}(i.default);n.default=b},36394:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(38163),i=[{key:"recaptchaInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed. Use the CAPTCHA component instead."},{key:"eventType",label:"Type of event",tooltip:"Specify type of event that this CAPTCHA would react to. If Button Click is selected, then the CAPTCHA widget will be displayed and verification will occur after clicking on the button.",type:"radio",values:[{label:"Form Load",value:"formLoad"},{label:"Button Click",value:"buttonClick"}],weight:650},{type:"select",input:!0,label:"Button Key",key:"buttonKey",dataSrc:"custom",valueProperty:"value",tooltip:"Specify key of button on this form that this CAPTCHA should react to",weight:660,customConditional:function(e){return"buttonClick"===e.data.eventType},data:{custom:function(e){return(0,o.getContextButtons)(e)}}},{key:"label",ignore:!0},{key:"hideLabel",ignore:!0},{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"errorLabel",ignore:!0},{key:"customClass",ignore:!0},{key:"tabindex",ignore:!0},{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"hidden",ignore:!0},{key:"mask",ignore:!0},{key:"dataGridLabel",ignore:!0},{key:"disabled",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0}];n.default=i},100:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default}]].concat(n))},r(67998);var o=a(r(5956)),i=a(r(73339));function a(e){return e&&e.__esModule?e:{default:e}}},53443:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(43053),r(56613),r(65813);var i,a=(i=r(73409))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(d,e);var n,r,i,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(d);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),f.apply(this,arguments)}return r=[{key:"init",value:function(){s(c(d.prototype),"init",this).call(this),this.component.dataSrc="resource",this.component.data={resource:this.component.resource}}},{key:"defaultSchema",get:function(){return d.schema()}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"resource",label:"Resource",key:"resource",dataSrc:"resource",resource:"",project:"",template:"<span>{{ item.data }}</span>"}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Resource",icon:"files-o",weight:90,documentation:"/userguide/form-building/form-components#resource",schema:d.schema()}}}],r&&l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=f},73339:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"resourceInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed in a future version of Formio.js."},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",label:"Resource",key:"resource",weight:50,tooltip:"The resource to be used with this field."},{type:"tags",input:!0,key:"selectFields",label:"Select Fields",tooltip:"The properties on the resource to return as part of the options. If left blank, all properties will be returned.",placeholder:"Enter the fields to select.",weight:51},{type:"tags",input:!0,key:"searchFields",label:"Search Fields",tooltip:"A list of search f
1ilters based on the fields of the resource. See the <a target='_blank' href='https://github.com/travist/resourcejs#filtering-the-results'>Resource.js documentation</a> for the format of these filters.",placeholder:"The fields to query on the server",weight:52},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:53,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters."},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:53,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters"},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:53,tooltip:"The HTML template for the result data items."},{type:"checkbox",input:!0,weight:54,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:55,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}}]},39856:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(67998);var o=s(r(68693)),i=s(r(65594)),a=s(r(81744)),l=s(r(68081));function s(e){return e&&e.__esModule?e:{default:e}}},73409:function(e,n,r){"use strict";r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(28656),r(11414),r(28839),r(26343),r(7122),r(3616),r(33559),r(78089),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(97599),r(37753),r(45399),r(45945),r(70601),r(20680),r(789),r(40697),r(71287),r(55096),r(70776),r(99326),r(1385),r(33546),r(88852),r(48510),r(66334),r(44991),r(89352),r(21587),r(14576),r(82635),r(49907),r(30890),r(86328),r(31490),r(41135),r(88910),r(92471),r(43053),r(56613),r(65813);var o,i=f(r(2890)),a=r(79408),l=f(r(94374)),s=f(r(52539)),u=f(r(32780)),c=r(38163);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function h(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?p(Object(r),!0).forEach(function(n){w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return m(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function v(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function b(e,n,r,o){return(b="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=P(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else w(o,n,r);return!0})(e,n,r,o)}
1function g(e,n,r,o,i){if(!b(e,n,r,o||e)&&i)throw Error("failed to set property");return r}function w(e,n,r){return(n=k(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function k(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==d(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}function O(){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=P(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function P(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=_(e)););return e}function j(e,n){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}o=r(97289).ZP;var S=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&j(e,n)}(m,e);var n,r,f,p=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=_(m);if(n){var o=_(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m),p.apply(this,arguments)}return r=[{key:"init",value:function(){var e=this;O(_(m.prototype),"init",this).call(this),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems"]);var n=[],r=i.default.debounce(function(){n=[];for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.updateItems.apply(e,o)},100);this.triggerUpdate=function(){"function"==typeof e.itemsLoadedResolve&&e.itemsLoadedResolve(),e.itemsLoaded=new u.default(function(n){e.itemsLoadedResolve=n});for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return i.length&&(n=i),r.apply(void 0,y(n))},this.selectOptions=[],this.itemsFromUrl&&(this.isFromSearch=!1,this.searchServerCount=null,this.defaultServerCount=null,this.isScrollLoading=!1,this.searchDownloadedResources=[],this.defaultDownloadedResources=[]),this.activated=!1,this.itemsLoaded=new u.default(function(n){e.itemsLoadedResolve=n}),this.shouldPositionDropdown=this.hasDataGridAncestor(),this.isHtmlRenderMode()&&this.activate(),this.getTemplateKeys()}},{key:"dataReady",get:function(){return this.root&&this.root.submissionSet&&!this.attached?u.default.resolve():this.itemsLoaded}},{key:"defaultSchema",get:function(){return m.schema()}},{key:"emptyValue",get:function(){if(this.component.multiple)return[];if("json"===this.component.dataSrc&&this.component.data.json){var e,n=this.component.data.json[0];return(e=this.valueProperty?i.default.get(n,this.valueProperty):n)&&"string"==typeof e?"":{}}return this.valueProperty?"":{}}},{key:"valueProperty",get:function(){return this.component.valueProperty?this.component.valueProperty:"values"===this.component.dataSrc?"value":""}},{key:"inputInfo",get:function(){var e=O(_(m.prototype),"elementInfo",this).call(this);return e.type="select",e.changeEvent="change",e}},{key:"isSelectResource",get:function(){return"resource"===this.component.dataSrc}},{key:"itemsFromUrl",get:function(){return this.isSelectResource||this.isSelectURL}},{key:"isInfiniteScrollProvided",get:function(){return this.itemsFromUrl}},{key:"shouldDisabled",get:function(){return O(_(m.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"shouldInitialLoad",get:function(){return(!("html5"===this.component.widget&&this.isEntireObjectDisplay())||!this.component.searchField||!this.dataValue)&&O(_(m.prototype),"shouldLoad",this)}},{key:"selectMetadata",get:function(){return O(_(m.prototype),"selectData",this)}},{key:"selectData",get:function(){return this.selectMetadata||this.component.selectData}},{key:"isEntireObjectDisplay",value:function(){return"resource"===this.component.dataSrc&&"data"===this.valueProperty}},{key:"selectValueAndLabel",value:function(e){var n=this.getOptionValue(this.isEntireObjectDisplay()&&!this.itemValue(e)?e:this.itemValue(e));return{value:n,label:this.itemTemplate(this.isEntireObjectDisplay()&&!i.default.isObject(e.data)?{data:e}:e,n)}}},{key:"itemTemplate",value:function(e,n){var r=this;if(!i.default.isNumber(e)&&i.default.isEmpty(e))return"";if(this.options.readOnly&&this.component.readOnlyValue)return this.itemValue(e);if(e&&!this.component.template){var o=e.label||e,a="string"==typeof o?this.t(o,{_userInput:!0}):o;
vendor: 6,606 bytes, line 1
1return this.sanitize(a,this.shouldSanitizeValue)}if(this.component.multiple&&i.default.isArray(this.dataValue)?this.dataValue.find(function(e){return n===e}):this.dataValue===n){var l=this.selectData;if(l){var s=this.component.reference&&null!=n&&n._id?n._id.toString():n;this.templateData&&this.templateData[s]||this.getOptionTemplate(e,n),this.component.multiple?l[s]&&(e=l[s]):e=l}}if("string"==typeof e||"number"==typeof e)return this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue);if(Array.isArray(e))return e.map(function(e){return"string"==typeof e||"number"==typeof e?r.sanitize(r.t(e,{_userInput:!0}),r.shouldSanitizeValue):e});if(e.data){var u=/item\.data\.\w*/g.test(this.component.template);e.data=this.isEntireObjectDisplay()&&i.default.isObject(e.data)&&!u?JSON.stringify(e.data):e.data}return O(_(m.prototype),"itemTemplate",this).call(this,e,n)}},{key:"addOption",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,c.getRandomComponentId)();if(!i.default.isNil(n)){var a=this.component.idPath?this.component.idPath.split(".").reduceRight(function(e,n){return w({},n,e)},o):{},l=h({value:this.getOptionValue(e),label:n},a);if(this.component.uniqueOptions&&this.selectOptions.find(function(e){return i.default.isEqual(e.value,l.value)}))return;if(e&&this.selectOptions.push(l),this.refs.selectContainer&&"html5"===this.component.widget){l.value&&i.default.isObject(l.value)&&i.default.isEmpty(l.value)&&(l.value="");var s=document.createElement("div");s.innerHTML=this.sanitize(this.renderTemplate("selectOption",{selected:i.default.isEqual(this.getOptionValue(this.dataValue),l.value),option:l,attrs:r,id:o,useId:(""===this.valueProperty||this.isEntireObjectDisplay())&&i.default.isObject(e)&&o}),this.shouldSanitizeValue).trim(),l.element=s.firstChild,this.refs.selectContainer.appendChild(l.element)}}}},{key:"addValueOptions",value:function(e){var n=this;e=e||[];var r=!1,o=this.dataValue;if(this.options.pdf&&!e.length&&"url"===this.component.dataSrc&&this.valueProperty&&(o=Array.isArray(o)?o.map(function(e){return i.default.set({},n.valueProperty,e)}):i.default.set({},this.valueProperty,o)),!this.selectOptions.length){var a=Array.isArray(o)&&this.component.multiple?o:[o];(r=this.addCurrentChoices(a,e))||this.component.multiple||this.addPlaceholder()}return r}},{key:"disableInfiniteScroll",value:function(){this.downloadedResources&&(this.downloadedResources.serverCount=this.downloadedResources.length,this.serverCount=this.downloadedResources.length)}},{key:"setItems",value:function(e,n){var r,o,a,l=this;if(this.selectItems=e,"string"==typeof e)try{e=JSON.parse(e)}catch(n){console.warn(n.message),e=[]}if(this.component.onSetItems){var s="function"==typeof this.component.onSetItems?this.component.onSetItems(this,e):this.evaluate(this.component.onSetItems,{items:e},"items");s&&(e=s)}if(!this.choices&&this.refs.selectContainer&&this.empty(this.refs.selectContainer),this.component.selectValues&&(e=i.default.get(e,this.component.selectValues,e)||[]),this.itemsFromUrl){r=!!this.isSelectURL&&i.default.isEqual(e,this.downloadedResources);var u=this.component.limit>e.length,c=r&&this.downloadedResources&&this.downloadedResources.length===e.length;u?this.disableInfiniteScroll():c?this.selectOptions=[]:this.serverCount=e.serverCount}if(this.isScrollLoading&&e)r||(this.downloadedResources=this.downloadedResources?this.downloadedResources.concat(e):e),this.downloadedResources.serverCount=e.serverCount||this.downloadedResources.serverCount;else if(this.downloadedResources=e||[],this.selectOptions=[],!i.default.isEmpty(this.dataValue)&&this.component.idPath){var f=i.default.get(this.dataValue,this.component.idPath,null),d=!i.default.isNil(f)&&e.find(function(e){return i.default.get(e,l.component.idPath)===f});d&&this.setValue(d)}if(n||this.addValueOptions(e),"html5"!==this.component.widget||this.component.placeholder||this.addOption(null,""),i.default.each(e,function(e,n){if(!l.root||!l.root.options.editForm||!l.root.options.editForm._id||l.root.options.editForm._id!==e._id){var r=l.selectValueAndLabel(e);l.addOption(r.value,r.label,{},i.default.get(e,l.component.idPath,String(n)))}}),this.choices?this.choices.setChoices(this.selectOptions,"value","label",!0):this.loading,this.isScrollLoading=!1,this.loading=!1,!(n&&(null===(o=this.choices)||void 0===o?void 0:null===(a=o.input)||void 0===a?void 0:a.isFocussed))){if(!this.isEmpty()||this.isRemoveButtonPressed)this.setValue(this.dataValue,{noUpdateEvent:!0});else if(this.shouldAddDefaultValue&&!this.options.readOnly){var p=this.defaultValue;this.isEmpty(p)||this.setValue(p)}}this.itemsLoadedResolve()}},{key:"getSingleItemValueForHTMLMode",value:function(e){var n,r=null===(n=this.selectOptions)||void 0===n?void 0:n.find(function(n){var r=n.value;return i.default.isEqual(r,e)});return r&&r.label||e}},{key:"itemValueForHTMLMode",value:function(e){var n=this;return this.isHtmlRenderMode()?Array.isArray(e)?e.map(function(e){return Array.isArray(e)?n.itemValueForHTMLMode(e):n.getSingleItemValueForHTMLMode(e)}).join(", "):this.getSingleItemValueForHTMLMode(e):O(_(m.prototype),"itemValueForHTMLMode",this).call(this,e)}},{key:"defaultValue",get:function(){var e=O(_(m.prototype),"defaultValue",this);return e||!1!==this.component.defaultValue&&0!==this.component.defaultValue||(e=this.component.defaultValue),e}},{key:"loadingError",get:function(){return!this.component.refreshOn&&!this.component.refreshOnBlur&&this.networkError}},{key:"loadItems",value:function(e,n,r,o,l,s){var u=this;if(o=o||{},!this.shouldLoad||!this.itemsFromUrl&&this.options.readOnly){this.isScrollLoading=!1,this.loading=!1,this.itemsLoadedResolve();return}var c=parseInt(this.component.minSearch,10);if(this.component.searchField&&c>0&&(!n||n.length<c))return this.setItems([]);"GET"===(l=l||"GET").toUpperCase()&&(s=null);var f=this.component.limit||100,p=this.isScrollLoading?this.selectOptions.length:0,h=this.component.disableLimit?{}:{limit:f,skip:p};if(e=this.interpolate(e,{formioBase:a.GlobalFormio.getBaseUrl(),search:n,limit:f,skip:p,page:Math.abs(Math.floor(p/f))}),this.component.searchField&&n){var y=Array.isArray(n)?n.join(","):"object"===d(n)?JSON.stringify(n):n;h[this.component.searchField]=this.component.searchField.endsWith("__regex")?i.default.escapeRegExp(y):y}this.component.selectFields&&(h.select=this.component.selectFields),this.component.sort&&(h.sort=this.component.sort),i.default.isEmpty(h)||(e+=(e.includes("?")?"&":"?")+a.GlobalFormio.serialize(h,function(e){return u.interpolate(e)}
1)),this.component.filter&&(e+=(e.includes("?")?"&":"?")+this.interpolate(this.component.filter)),o.ignoreCache=this.component.ignoreCache,o.header=r,this.loading=!0,a.GlobalFormio.makeRequest(this.options.formio,"select",e,l,s,o).then(function(e){u.loading=!1,u.error=null,u.setItems(e,!!n)}).catch(function(e){u.itemsFromUrl&&(u.setItems([]),u.disableInfiniteScroll()),u.isScrollLoading=!1,u.handleLoadingError(e)})}},{key:"handleLoadingError",value:function(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn("Unable to load resources for ".concat(this.key))}},{key:"requestHeaders",get:function(){var e=this,n=new a.GlobalFormio.Headers;if(this.component.data&&this.component.data.headers)try{i.default.each(this.component.data.headers,function(r){r.key&&n.set(r.key,e.interpolate(r.value))})}catch(e){console.warn(e.message)}return n}},{key:"getCustomItems",value:function(){var e=this.evaluate(this.component.data.custom,{values:[]},"values");return this.asyncValues=(0,c.isPromise)(e),e}},{key:"asyncCustomValues",value:function(){return i.default.isBoolean(this.asyncValues)||this.getCustomItems(),this.asyncValues}},{key:"updateCustomItems",value:function(e){var n=this;if(this.asyncCustomValues()){if(!e&&!this.active){this.itemsLoadedResolve();return}this.loading=!0,this.getCustomItems().then(function(e){n.loading=!1,n.setItems(e||[])}).catch(function(e){n.handleLoadingError(e)})}else this.setItems(this.getCustomItems()||[])}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return O(_(m.prototype),"isEmpty",this).call(this,e)||void 0===e}},{key:"refresh",value:function(e,n){var r=n.instance;this.component.clearOnRefresh&&r&&!r.pristine&&this.setValue(this.emptyValue),this.updateItems(null,!0)}},{key:"additionalResourcesAvailable",get:function(){return i.default.isNil(this.serverCount)||this.serverCount>this.downloadedResources.length}},{key:"serverCount",get:function(){return this.isFromSearch?this.searchServerCount:this.defaultServerCount},set:function(e){this.isFromSearch?this.searchServerCount=e:this.defaultServerCount=e}},{key:"downloadedResources",get:function(){return this.isFromSearch?this.searchDownloadedResources:this.defaultDownloadedResources},set:function(e){this.isFromSearch?this.searchDownloadedResources=e:this.defaultDownloadedResources=e}},{key:"addPlaceholder",value:function(){this.component.placeholder&&this.addOption("",this.component.placeholder,{placeholder:!0})}},{key:"activate",value:function(){(this.loading||!this.active)&&this.setLoadingItem(),this.active||(this.activated=!0,this.triggerUpdate())}}
1,{key:"setLoadingItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.choices?e?this.choices.setChoices([{value:"".concat(this.id,"-loading"),label:"Loading...",disabled:!0}],"value","label"):this.choices.setChoices([{value:"",label:'<i class="'.concat(this.iconClass("refresh"),'" style="font-size:1.3em;"></i>'),disabled:!0}],"value","label",!0):("url"===this.component.dataSrc||"resource"===this.component.dataSrc)&&this.addOption("",this.t("loading..."))}},{key:"active",get:function(){return!this.component.lazyLoad||this.activated}},{key:"render",value:function(){var e=this.inputInfo;return e.attr=e.attr||{},e.multiple=this.component.multiple,O(_(m.prototype),"render",this).call(this,this.wrapElement(this.renderTemplate("select",{input:e,selectOptions:"",index:null})))}},{key:"wrapElement",value:function(e){return this.component.addResource&&!this.options.readOnly?this.renderTemplate("resourceAdd",{element:e}):e}},{key:"choicesOptions",value:function(){var e=!this.component.hasOwnProperty("searchEnabled")||this.component.searchEnabled,n=this.t(this.component.placeholder,{_userInput:!0}),r=this.component.customOptions||{};if("string"==typeof r)try{r=JSON.parse(r)}catch(e){console.warn(e.message),r={}}var o={maxPatternLength:1e3,distance:1e3};return h({removeItemButton:!this.component.disabled&&i.default.get(this.component,"removeItemButton",!0),itemSelectText:"",classNames:{containerOuter:"choices form-group formio-choices",containerInner:this.transform("class","form-control ui fluid selection dropdown")},addItemText:!1,allowHTML:!0,placeholder:!!this.component.placeholder,placeholderValue:n,noResultsText:this.t("No results found"),noChoicesText:this.t("No choices to choose from"),searchPlaceholderValue:this.t("Type to search"),shouldSort:!1,position:this.component.dropdown||"auto",searchEnabled:e,searchChoices:!this.component.searchField,searchFields:i.default.get(this,"component.searchFields",["label"]),shadowRoot:this.root?this.root.shadowRoot:null,fuseOptions:this.component.useExactSearch?h({tokenize:!0,matchAllTokens:!0},o):Object.assign({},i.default.get(this,"component.fuseOptions",{}),h({include:"score",threshold:i.default.get(this,"component.selectThreshold",.3)},o)),valueComparer:i.default.isEqual,resetScrollPosition:!1},r)}},{key:"attach",value:function(e){var n,r,l,u=this,c=O(_(m.prototype),"attach",this).call(this,e);this.loadRefs(e,{selectContainer:"single",addResource:"single",autocompleteInput:"single"});var f=this.refs.autocompleteInput;f&&this.addEventListener(f,"change",function(e){u.setValue(e.target.value)});var d=this.refs.selectContainer;if(d){if(this.addEventListener(d,this.inputInfo.changeEvent,function(){return u.updateValue(null,{modified:!0})}),this.attachRefreshOnBlur(),"html5"===this.component.widget){this.addFocusBlurEvents(d),this.triggerUpdate(null,!0),this.visible&&this.setItems(this.selectItems||[]),this.focusableElement=d,this.addEventListener(d,"focus",function(){return u.update()}),this.addEventListener(d,"keydown",function(e){["Backspace","Delete"].includes(e.key)&&u.setValue(u.emptyValue)});return}var p=d.tabIndex;this.addPlaceholder(),d.setAttribute("dir",this.i18next.dir()),null!==(n=this.choices)&&void 0!==n&&null!==(r=n.containerOuter)&&void 0!==r&&null!==(l=r.element)&&void 0!==l&&l.parentNode&&this.choices.destroy();var h=this.choicesOptions();if(o&&(this.choices=new o(d,h),this.selectOptions&&this.selectOptions.length&&this.choices.setChoices(this.selectOptions,"value","label",!0),this.component.multiple?this.focusableElement=this.choices.input.element:(this.focusableElement=this.choices.containerInner.element,this.choices.containerOuter.element.setAttribute("tabIndex","-1"),this.addEventListener(this.choices.containerOuter.element,"focus",function(){return u.focusableElement.focus()})),this.addFocusBlurEvents(this.focusableElement),this.itemsFromUrl&&!this.component.noRefreshOnScroll&&(this.scrollList=this.choices.choiceList.element,this.addEventListener(this.scrollList,"scroll",function(){return u.onScroll()})),h.removeItemButton&&this.addEventListener(d,"removeItem",function(){u.isRemoveButtonPressed=!0})),window&&this.choices&&this.shouldPositionDropdown&&this.addEventListener(window.document,"scroll",function(){u.positionDropdown(!0)},!1,!0),this.focusableElement.setAttribute("tabIndex",p),this.component.searchField){this.choices&&this.choices.input&&this.choices.input.element&&this.addEventListener(this.choices.input.element,"input",function(e){u.isFromSearch=!!e.target.value,e.target.value?(u.serverCount=null,u.downloadedResources=[]):u.triggerUpdate()}),this.addEventListener(d,"choice",function(){u.component.multiple&&"resource"===u.component.dataSrc&&u.isFromSearch&&u.triggerUpdate(),u.isFromSearch=!1});var v=this.component.searchField&&(this.isSelectResource||this.isSelectURL)?(0===this.component.searchDebounce?0:this.component.searchDebounce||this.defaultSchema.searchDebounce)*1e3:0,b=function(e){u.triggerUpdate(e.detail.value)};this.addEventListener(d,"search",i.default.debounce(function(e){b(e),u.positionDropdown()},v)),this.addEventListener(d,"stopSearch",function(){return u.triggerUpdate()}),this.addEventListener(d,"hideDropdown",function(){u.choices&&u.choices.input&&u.choices.input.element&&(u.choices.input.element.value=""),u.updateItems(null,!0)})}return this.addEventListener(d,"showDropdown",function(){u.update(
vendor: 4,928 bytes, line 1
1),u.positionDropdown()}),this.shouldPositionDropdown&&this.addEventListener(d,"highlightChoice",function(){u.positionDropdown()}),this.choices&&h.placeholderValue&&this.choices._isSelectOneElement&&(this.addPlaceholderItem(h.placeholderValue),this.addEventListener(d,"removeItem",function(){u.addPlaceholderItem(h.placeholderValue)})),this.addValueOptions(),this.setChoicesValue(this.dataValue),this.isSelectResource&&this.refs.addResource&&this.addEventListener(this.refs.addResource,"click",function(e){e.preventDefault();var n=u.ce("div"),r=u.createModal(n),o=i.default.get(u.root,"formio.projectUrl",a.GlobalFormio.getProjectUrl()),l="".concat(o,"/form/").concat(u.component.data.resource);new s.default(n,l,{}).ready.then(function(e){e.on("submit",function(e){var n=u.valueProperty?i.default.get(e,u.valueProperty):e;u.component.multiple&&(n=[].concat(y(u.dataValue),[n])),u.setValue(n),u.triggerUpdate(),r.close()})})}),this.disabled=this.shouldDisabled,this.triggerUpdate(),c}}},{key:"setDropdownPosition",value:function(){var e,n,r,o,a=null===(e=this.choices)||void 0===e?void 0:null===(n=e.dropdown)||void 0===n?void 0:n.element,l=null===(r=this.choices)||void 0===r?void 0:null===(o=r.containerOuter)||void 0===o?void 0:o.element;if(a&&l){var s=l.getBoundingClientRect(),u=l.classList.contains("is-flipped");i.default.assign(a.style,{top:"".concat(u?s.top-a.offsetHeight:s.top+s.height,"px"),left:"".concat(s.left,"px"),width:"".concat(s.width,"px"),position:"fixed",bottom:"unset",right:"unset"})}}},{key:"hasDataGridAncestor",value:function(e){return!!(e=e||this).inDataGrid||"datagrid"===e.type||!!e.parent&&this.hasDataGridAncestor(e.parent)}},{key:"positionDropdown",value:function(e){var n,r=this;this.shouldPositionDropdown&&this.choices&&(null!==(n=this.choices.dropdown)&&void 0!==n&&n.isActive||!e)&&(this.setDropdownPosition(),this.itemsLoaded.then(function(){r.setDropdownPosition()}))}},{key:"isLoadingAvailable",get:function(){return!this.isScrollLoading&&this.additionalResourcesAvailable}},{key:"onScroll",value:function(){this.isLoadingAvailable&&(this.isScrollLoading=!0,this.setLoadingItem(!0),this.triggerUpdate(this.choices.input.element.value))}},{key:"attachRefreshOnBlur",value:function(){var e=this;this.component.refreshOnBlur&&this.on("blur",function(n){e.checkRefreshOn([{instance:n,value:n.dataValue}],{fromBlur:!0})})}},{key:"addPlaceholderItem",value:function(e){this.choices._store.activeItems.length||this.choices._addItem({value:e,label:e,choiceId:0,groupId:-1,customProperties:null,placeholder:!0,keyCode:null})}},{key:"update",value:function(){"custom"===this.component.dataSrc&&this.updateCustomItems(),this.activate()}},{key:"disabled",get:function(){return O(_(m.prototype),"disabled",this)},set:function(e){g(_(m.prototype),"disabled",e,this,!0),this.choices&&(e?(this.setDisabled(this.choices.containerInner.element,!0),this.focusableElement.removeAttribute("tabIndex"),this.choices.disable()):(this.setDisabled(this.choices.containerInner.element,!1),this.focusableElement.setAttribute("tabIndex",this.component.tabindex||0),this.choices.enable()))}},{key:"visible",get:function(){return O(_(m.prototype),"visible",this)},set:function(e){e&&!this._visible!=!e&&this.triggerUpdate(),g(_(m.prototype),"visible",e,this,!0)}},{key:"addCurrentChoices",value:function(e,n,r){var o=this;if(!e)return!1;var a=[],l=e.reduce(function(e,l){if(!l||i.default.isEmpty(l))return e;var s=!1,u=n===o.selectOptions;return(n&&n.length&&i.default.each(n,function(e){if(e._id&&l._id&&e._id===l._id)return s=!0,!1;var n=r?e.value:o.itemValue(e,u);return!(s|=i.default.isEqual(n,l))}),s)?s||e:(a.push(o.selectValueAndLabel(l)),!0)},!1);return a.length&&(this.choices&&this.choices.setChoices(a,"value","label"),a.map(function(e){o.addOption(e.value,e.label)})),l}},{key:"getValueAsString",value:function(e,n){var r=this;return this.component.multiple&&Array.isArray(e)?e.map(function(e){return r.asString(e,n)}).join(", "):this.asString(e,n)}},{key:"getValue",value:function(){if(this.viewOnly||this.loading||!this.component.lazyLoad&&!this.selectOptions.length||!this.element)return this.dataValue;var e=this.emptyValue;if(this.choices)e=this.choices.getValue(!0),!this.component.multiple&&this.component.placeholder&&e===this.t(this.component.placeholder,{_userInput:!0})&&(e=this.emptyValue);else if(this.refs.selectContainer){if(e=this.refs.selectContainer.value,""===this.valueProperty||this.isEntireObjectDisplay()){if(""===e)return{};var n=this.selectOptions[e]||this.selectOptions.find(function(n){return n.id===e});n&&i.default.isObject(n.value)&&(e=n.value)}}else e=this.dataValue;return null==e&&(e=""),e}},{key:"redraw",value:function(){var e=O(_(m.prototype),"redraw",this).call(this);return this.triggerUpdate(),e}},{key:"normalizeSingleValue",value:function(e){if(!i.default.isNil(e)){if(i.default.isObject(e)&&0===Object.keys(e).length)return e;var n=this.component.dataType||"auto";
1try{return({value:e,number:function(){var n=Number(this.value),r=e.toString()===n.toString();return!Number.isNaN(n)&&Number.isFinite(n)&&""!==e&&r&&(this.value=n),this},boolean:function(){return i.default.isString(this.value)&&("true"===this.value.toLowerCase()||"false"===this.value.toLowerCase())&&(this.value="true"===this.value.toLowerCase()),this},string:function(){return this.value=String(this.value),this},object:function(){return this},auto:function(){return i.default.isObject(this.value)?this.value=this.object().value:this.value=this.string().number().boolean().value,this}})[n]().value}catch(n){return console.warn("Failed to normalize value",n),e}}}},{key:"normalizeValue",value:function(e){var n=this;return this.component.multiple&&Array.isArray(e)?e.map(function(e){return n.normalizeSingleValue(e)}):O(_(m.prototype),"normalizeValue",this).call(this,this.normalizeSingleValue(e))}},{key:"setMetadata",value:function(e){var n,r=this;if(!i.default.isNil(e)){var o=i.default.isObject(e);if(o&&0===Object.keys(e).length)return e;var a=this.component.reference&&null!=e&&e._id?e._id.toString():e,l=!o||this.component.reference;if(a&&l&&this.templateData&&this.templateData[a]&&null!==(n=this.root)&&void 0!==n&&n.submission){var s=this.root.submission;s.metadata||(s.metadata={}),s.metadata.selectData||(s.metadata.selectData={});var u=this.templateData[a];if(this.component.multiple){u={};var c=this.dataValue;c&&i.default.isArray(c)&&c.length&&c.forEach(function(e){var n=r.component.reference?e._id.toString():e;u[n]=r.templateData[n]}),u[e]=this.templateData[e]}i.default.set(s.metadata.selectData,this.path,u)}}}},{key:"updateValue",value:function(e,n){var r=this,o=O(_(m.prototype),"updateValue",this).call(this,e,n);return(o||!this.selectMetadata)&&(this.component.multiple&&Array.isArray(this.dataValue)?this.dataValue.forEach(function(e){return r.setMetadata(e)}):this.setMetadata(this.dataValue)),o}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.dataValue,a=this.updateValue(e,r);if("html5"===this.component.widget&&(i.default.isEqual(e,o)||i.default.isEqual(o,{})&&i.default.isEqual(r,{}))&&!r.fromSubmission)return!1;e=this.dataValue;var l=!this.isEmpty(o),s=!this.isEmpty(e);if(this.component.multiple&&Array.isArray(e)?e=e.map(function(e){return"boolean"==typeof e||"number"==typeof e?e.toString():e}):("boolean"==typeof e||"number"==typeof e)&&(e=e.toString()),this.isHtmlRenderMode()&&r&&r.fromSubmission&&a)return this.itemsLoaded.then(function(){n.redraw()}),a;if(this.loading)return a;
1if(this.isInitApiCallNeeded(s)){this.loading=!0,this.lazyLoadInit=!0;var u=this.component.searchField||this.component.valueProperty;return this.triggerUpdate(i.default.get(e.data||e,u,e),!0),a}return this.itemsLoaded.then(function(){n.addValueOptions(),n.setChoicesValue(e,l,r)}),a}},{key:"isInitApiCallNeeded",value:function(e){return this.component.lazyLoad&&!this.lazyLoadInit&&!this.active&&!this.selectOptions.length&&e&&this.shouldInitialLoad&&this.visible&&(this.component.searchField||this.component.valueProperty)}},{key:"setChoicesValue",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!this.isEmpty(e)||r.fromSubmission;if(n=void 0===n||n,this.choices){if(o){this.choices.removeActiveItems();var a=Array.isArray(e)&&this.component.multiple?e:[e];this.addCurrentChoices(a,this.selectOptions,!0)||this.choices.setChoices(this.selectOptions,"value","label",!0),this.choices.setChoiceByValue(a)}else(n||r.resetValue)&&this.choices.removeActiveItems()}else if(o){var l=Array.isArray(e)?e:[e];if(!i.default.isEqual(this.dataValue,this.defaultValue)&&this.selectOptions.length<2||this.selectData&&r.fromSubmission){var s=this.selectValueAndLabel(this.dataValue),u=s.value,c=s.label;this.addOption(u,c)}i.default.each(this.selectOptions,function(e){i.default.each(l,function(n){if(""===e.value&&(e.value={}),i.default.isEqual(n,e.value)&&e.element)return e.element.selected=!0,e.element.setAttribute("selected","selected"),!1})})}else i.default.each(this.selectOptions,function(e){e.element&&(e.element.selected=!1,e.element.removeAttribute("selected"))})}},{key:"itemsLoaded",get:function(){return this._itemsLoaded||u.default.resolve()},set:function(e){this._itemsLoaded=e}},{key:"validateValueAvailability",value:function(e,n){var r=this;if(!(0,c.boolValue)(e)||!n)return!0;var o=this.getOptionsValues();if(o){if(i.default.isObject(n)){var a=function(e){var o=r.normalizeSingleValue(e);if(!i.default.isObject(o))return!1;try{return JSON.stringify(o)===JSON.stringify(n)}catch(e){return console.warn.error("Error while comparing items",e),!1}};return -1!==o.findIndex(function(e){return a(e)})}return -1!==o.findIndex(function(e){return r.normalizeSingleValue(e)===n})}return!1}},{key:"getOptionValue",value:function(e){return i.default.isObject(e)&&this.isEntireObjectDisplay()?this.normalizeSingleValue(e):i.default.isObject(e)&&(this.valueProperty||"resource"!==this.component.key)?e:i.default.isObject(e)&&!this.valueProperty?this.interpolate(this.component.template,{item:e}).replace(/<\/?[^>]+(>|$)/g,""):i.default.isNull(e)?this.emptyValue:String(this.normalizeSingleValue(e))}},{key:"getOptionsValues",value:function(){var e=this,n=[];switch(this.component.dataSrc){case"values":n=this.component.data.values;break;case"json":n=this.component.data.json;break;case"custom":n=this.getCustomItems()}if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e.message),n=[]}if(Array.isArray(n))return n.map(function(n){return e.getOptionValue(e.itemValue(n))})}},{key:"deleteValue",value:function(){this.setValue("",{noUpdateEvent:!0}),this.unset()}},{key:"validateMultiple",value:function(){return!1}},{key:"isBooleanOrNumber",value:function(e){return"number"==typeof e||"boolean"==typeof e}},{key:"getNormalizedValues",value:function(){var e=this;if(this.component&&this.component.data&&this.component.data.values)return this.component.data.values.map(function(n){return{label:n.label,value:String(e.normalizeSingleValue(n.value))}})}},{key:"asString",value:function(e){var n,r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=null!==(n=e)&&void 0!==n?n:this.getValue();var a=function(e,n){return n?Array.isArray(e)?e.forEach(function(e){return e[n]=e[n].toString()}):e[n]=e[n].toString():(r.isBooleanOrNumber(e)&&(e=e.toString()),Array.isArray(e)&&e.some(function(e){return r.isBooleanOrNumber(e)})&&(e=e.map(function(e){r.isBooleanOrNumber(e)&&(e=e.toString())}))),e};if(e=a(e),["values","custom"].includes(this.component.dataSrc)&&!this.asyncCustomValues()){var l,s,u,f="values"===this.component.dataSrc?{items:a(this.getNormalizedValues(),"value"),valueProperty:"value"}:{items:a(this.getCustomItems(),this.valueProperty),valueProperty:this.valueProperty},d=f.items,p=f.valueProperty;e=this.component.multiple&&Array.isArray(e)?i.default.filter(d,function(n){return e.includes(n.value)}):p?null!==(l=i.default.find(d,[p,e]),s=r.defaultSchema.data.values||[],u=i.default.isEqual(l,s[0])?"-":l)&&void 0!==u?u:{value:e,label:e}:e}if(i.default.isString(e))return e;var h=function(e){var n=r.itemTemplate(e);return o.csv&&n?(0,c.unescapeHTML)(n):n};if(Array.isArray(e)){var y=[];return(e.forEach(function(e){return y.push(h(e))}),"resource"===this.component.dataSrc&&y.length>0)?y.join(", "):y.length>0?y.join("<br />"):"-"}return this.isEntireObjectDisplay()&&i.default.isObject(e)?JSON.stringify(e):i.default.isNil(e)?"-":h(e)}},{key:"detach",value:function(){if(this.off("blur"),this.choices){var e,n;null!==(e=this.choices.containerOuter)&&void 0!==e&&null!==(n=e.element)&&void 0!==n&&n.parentNode&&this.choices.destroy(),this.choices=null}O(_(m.prototype),"detach",this).call(this)}},{key:"focus",value:function(){this.focusableElement&&(O(_(m.prototype),"focus",this).call(this),this.focusableElement.focus())}},{key:"setErrorClasses",value:function(e,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;O(_(m.prototype),"setErrorClasses",this).call(this,e,n,r,o,i),this.choices?O(_(m.prototype),"setErrorClasses",this).call(this,[this.choices.containerInner.element],n,r,o,i):O(_(m.prototype),"setErrorClasses",this).call(this,[this.refs.selectContainer],n,r,o,i)}}],f=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{type:"select",label:"Select",key:"select",idPath:"id",data:{values:[{label:"",value:""}],json:"",url:"",resource:"",custom:""},clearOnRefresh:!1,limit:100,valueProperty:"",lazyLoad:!0,filter:"",searchEnabled:!0,searchDebounce:.3,searchField:"",minSearch:0,readOnlyValue:!1,selectFields:"",selectThreshold:.3,uniqueOptions:!1,tableView:!0,fuseOptions:{include:"score",threshold:.3},indexeddb:{filter:{}},customOptions:{},useExactSearch:!1}
vendor: 15,726 bytes, line 1
1].concat(n))}},{key:"builderInfo",get:function(){return{title:"Select",group:"basic",icon:"th-list",weight:70,documentation:"/userguide/form-building/form-components#select",schema:m.schema()}}},{key:"serverConditionSettings",get:function(){return m.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return h(h({},O(_(m),"conditionOperatorsSettings",this)),{},{valueComponent:function(e){var n=h(h({},e),{},{type:"select"});return(0,c.isSelectResourceWithObjectValue)(e)&&(n.reference=!1,n.onSetItems="\n            var templateKeys = utils.getItemTemplateKeys(component.template) || [];\n            items = _.map(items || [], i => {\n              var item = {};\n              _.each(templateKeys, k =>  _.set(item, k, _.get(i, k)));\n              return item;\n            })\n          "),n}})}},{key:"savedValueTypes",value:function(e){var n=c.componentValueTypes.boolean,r=c.componentValueTypes.string,o=c.componentValueTypes.number,i=c.componentValueTypes.object,a=c.componentValueTypes.array,l=e.dataType,s=e.reference;return(0,c.getComponentSavedTypes)(e)||(s?[i]:"object"===l?[i,a]:c.componentValueTypes[l]?[c.componentValueTypes[l]]:[n,r,o,i,a])}}],r&&v(m.prototype,r),f&&v(m,f),Object.defineProperty(m,"prototype",{writable:!1}),m}(l.default);n.default=S},65594:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(97599),r(37753),r(18666),r(14483);var o,i=(o=r(2890))&&o.__esModule?o:{default:o},a=r(38163),l=function(e){var n=e.instance,r=e.data,o=n.downloadedResources.find(function(e){return i.default.get(e,r.valueProperty)===n.getValue()}),a={data:{},noeval:!0};return n.interpolate(r.template,{item:o},a),a.data.item},s=function(e){setTimeout(function(){var n,r=e.instance,o=e.data,i=null==r?void 0:r.root.getComponent("selectData");if(i&&r.getValue()&&null!==(n=r.downloadedResources)&&void 0!==n&&n.length){var a="url"===o.dataSrc&&o.data.url&&o.valueProperty,s="resource"===o.dataSrc&&o.data.resource&&o.valueProperty,u=a||s?l(e):void 0;i.setValue(u)}},0)},u=[{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"},{label:"Resource",value:"resource"},{label:"Custom",value:"custom"},{label:"Raw JSON",value:"json"}]}},{type:"textfield",weight:10,input:!0,key:"indexeddb.database",label:"Database name",tooltip:"The name of the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textfield",input:!0,key:"indexeddb.table",label:"Table name",weight:16,tooltip:"The name of table in the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:18,input:!0,key:"indexeddb.filter",label:"Row Filter",tooltip:"Filter table items that match the object.",defaultValue:{},conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"data.json",label:"Data Source Raw JSON",tooltip:"A valid JSON array to use as a data source.",description:'<div>Example: <pre>["apple", "banana", "orange"].</pre></div> <div>Example 2: <pre>[{"name": "John", "email": "[email protected]"}, {"name": "Jane", "email": "[email protected]"}].</pre></div>',conditional:{json:{"===":[{var:"data.dataSrc"},"json"]}}},{type:"checkbox",input:!0,label:"Lazy Load Data",key:"lazyLoad",tooltip:"When set, this will not fire off the request to the URL until this control is within focus. This can improve performance if you have many Select dropdowns on your form where the API's will only fire when the control is activated.",weight:11,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["resource","url"]]},{"!==":[{var:"data.widget"},"html5"]}]}}},{type:"datagrid",input:!0,label:"Data Source Values",key:"data.values",tooltip:"Values to use as the data source. Labels are shown in the select field. Values are the corresponding values saved with the submission.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);"}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",clearOnHide:!1,label:"Resource",key:"data.resource",lazyLoad:!1,weight:10,tooltip:"The resource to be used with this field.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",input:!0,label:"Data Path",key:"selectValues",weight:12,description:"The object path to the iterable items.",tooltip:"The property within the source data, where iterable items reside. For example: results.items or results[0].items",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"select",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!0,tooltip:"The field to use as the value.",weight:11,refreshOn:"data.resource",template:"<span>{{ item.label }}</span>",valueProperty:"key",dataSrc:"url",lazyLoad:!1,onSetItems:function(e,n){var r="resource"===n.type?[{label:"{Entire Object}",key:"data"}]:[];return(0,a.eachComponent)(n.components,function(e,n){e.input&&r.push({label:e.label||e.key,key:"data.".concat(n)})}),r},onChange:function(e){if(e&&e.flags&&e.flags.modified){var n=e.instance.data.valueProperty,r=n||"data",o="<span>{{ item.".concat(r," }}</span>"),i=n?"".concat(n,"__regex"):"";e.instance.root.getComponent("template").setValue(o),e.instance.root.getComponent("searchField").setValue(i)}},data:{url:"/form/{{ data.data.resource }}"},conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!==":[{var:"data.reference"},!0]},{var:"data.data.resource"}]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"<span>{{ item.label }}</span>",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{type:"textfield",input:!0,key:"idPath",weight:12,label:"ID Path",placeholder:"id",tooltip:"Path to the select option id."},{type:"textfield",input:!0,label:"Select Fields",key:"selectFields",tooltip:"The properties on the resource to return as part of the options. Separate property names by commas. If left blank, all properties will be returned.",placeholder:"Comma separated list of fields to select.",weight:14,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"===":[{var:"data.valueProperty"},""]}]}}},{type:"checkbox",input:!0,key:"disableLimit",label:"Disable limiting response",tooltip:"When enabled the request will not include the limit and skip options in the query string",weight:15,conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,key:"searchField",label:"Search Query Name",weight:16,description:"Name of URL query parameter",tooltip:"The name of the search querystring parameter used when sending a request to filter results with. The server at the URL must handle this query parameter.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"searchDebounce",label:"Search request delay",weight:16,description:"The delay (in seconds) before the search request is sent.",tooltip:"The delay in seconds before the search request is sent, measured from the last character input in the search field.",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"minSearch",weight:17,label:"Minimum Search Length",tooltip:"The minimum amount of characters they must type before a search is made.",defaultValue:0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"url"]},{"!=":[{var:"data.searchField"},""]}]}}},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:18,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:18,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"limit",label:"Limit",weight:18,description:"Maximum number of items to view per page of results.",tooltip:"Use this to limit the number of items to request or view.",clearOnHide:!1,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"!==":[{var:"data.disableLimit"},!0]}]}}},{type:"textarea",input:!0,key:"data.custom",label:"Custom Values",editor:"ace",rows:10,weight:14,placeholder:"values = data['mykey'] or values = Promise.resolve(['myValue'])",tooltip:"Write custom code to return the value options or a promise with value options. The form data object is available.",conditional:{json:{"===":[{var:"data.dataSrc"},"custom"]}}},{type:"select",input:!0,key:"refreshOn",label:"Refresh Options On",weight:19,tooltip:"Refresh data when another field changes.",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){var n=[];return n.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,function(r,o){r.key!==e.data.key&&n.push({label:r.label||r.key,value:o})}),n}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"select",input:!0,key:"refreshOnBlur",label:"Refresh Options On Blur",weight:19,tooltip:"Refresh data when another field is blured.",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){var n=[];return n.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,function(r,o){r.key!==e.data.key&&n.push({label:r.label||r.key,value:o})}),n}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values"]]}}},{type:"checkbox",input:!0,weight:20,key:"clearOnRefresh",label:"Clear Value On Refresh Options",defaultValue:!1,tooltip:"When the Refresh On field is changed, clear this components value.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"checkbox",input:!0,weight:21,key:"searchEnabled",label:"Enable Static Search",defaultValue:!0,tooltip:"When checked, the select dropdown will allow for searching within the static list of items provided."},{type:"checkbox",input:!0,weight:21,key:"noRefreshOnScroll",label:"Disable Options Refresh When Scrolling",defaultValue:!1,tooltip:"When checked, the select with search input won't perform new api requests when scrolling through the list of options.",conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"===":[{var:"data.searchEnabled"},!0]}]}}},{label:"Search Threshold",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"selectThreshold",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,weight:22,tooltip:"At what point does the match algorithm give up. A threshold of 0.0 requires a perfect match, a threshold of 1.0 would match anything."},{type:"checkbox",input:!0,weight:23,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:24,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}},{type:"checkbox",input:!0,weight:25,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"checkbox",input:!0,weight:27,key:"readOnlyValue",label:"Read Only Value",tooltip:"Check this if you would like to show just the value when in Read Only mode."},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Choices.js options",tooltip:"A raw JSON object to use as options for the Select component (Choices JS).",defaultValue:{}},{type:"checkbox",input:!0,weight:29,key:"useExactSearch",label:"Use exact search",tooltip:"Disables search algorithm threshold."},{key:"defaultValue",onSetItems:function(e){s(e.evalContext())},onChange:function(e){e&&e.flags&&e.flags.modified&&s(e)}},{key:"selectData",conditional:{json:{and:[{"!==":[{var:"data.valueProperty"},null]},{"!==":[{var:"data.valueProperty"},""]}]}}},{key:"template",onChange:function(e){if(e&&e.flags&&e.flags.modified){var n=e.instance.root.getComponent("defaultValue");n&&s(n.evalContext())}}}];n.default=u},81744:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",input:!0,weight:20,tooltip:"Select the type of widget you'd like to use.",key:"widget",defaultValue:"choicesjs",label:"Widget Type",dataSrc:"values",data:{values:[{label:"ChoicesJS",value:"choicesjs"},{label:"HTML 5",value:"html5"}]}},{weight:1230,type:"checkbox",label:"Unique Options",tooltip:"Display only unique dropdown options.",key:"uniqueOptions",input:!0}]},68081:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{weight:50,type:"checkbox",label:"Perform server validation of remote value",tooltip:"Check this if you would like for the server to perform a validation check to ensure the selected value is an available option. This requires a Search query to ensure a record is found.",key:"validate.select",input:!0,conditional:{json:{var:"data.searchField"}}},{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 (only for synchronous values).",key:"validate.onlyAvailableItems",input:!0,conditional:{json:{in:[{var:"data.dataSrc"},["values","json","custom"]]}}}]},26896:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"data",components:[{key:"dataType",ignore:!0}]},{key:"validation",components:i.default}]].concat(n))},r(67998);var o=a(r(86189)),i=a(r(95112));function a(e){return e&&e.__esModule?e:{default:e}}},10746:function(e,n,r){"use strict";r(37097),r(80107),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(28839),r(33559),r(78089),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(3616),r(44991),r(37753),r(41135),r(88910),r(70601),r(77273),r(49907),r(30890),r(55096),r(20680),r(48510),r(89352),r(45399),r(45945),r(97599),r(86328),r(33546),r(88852),r(43053),r(56613),r(65813);var o=l(r(2890)),i=r(38163),a=l(r(1987));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function u(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?s(Object(r),!0).forEach(function(n){c(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c(e,n,r){return(n=p(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function p(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==f(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===f(n)?n:String(n)}function h(e,n){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=m(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&h(e,n)}(p,e);var n,r,l,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=m(p);if(n){var o=m(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===f(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=s.call.apply(s,[this].concat(r))).validators=e.validators.concat("minSelectedCount","maxSelectedCount","availableValueProperty"),e}return r=[{key:"init",value:function(){y(m(p.prototype),"init",this).call(this),this.component.inputType="checkbox"}},{key:"defaultSchema",get:function(){return p.schema()}},{key:"inputInfo",get:function(){var e=y(m(p.prototype),"elementInfo",this).call(this);return e.attr.name+="[]",e.attr.type="checkbox",e.attr.class="form-check-input",e}},{key:"emptyValue",get:function(){return this.component.values.reduce(function(e,n){return n.value&&(e[n.value]=!1),e},{})}},{key:"defaultValue",get:function(){var e=this.emptyValue;return o.default.isEmpty(this.component.defaultValue)||(e=this.component.defaultValue),this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,n=!0;for(var r in e)if(e.hasOwnProperty(r)&&e[r]){n=!1;break}return n}},{key:"getValue",value:function(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var e={};return o.default.each(this.refs.input,function(n){e[n.value]=!!n.checked}),e}},{key:"normalizeValue",value:function(e){var n=this;"object"!==f(e=e||{})&&(e="string"==typeof e?c({},e,!0):{}),Array.isArray(e)&&o.default.each(e,function(n){e[n]=!0});var r=o.default.keys(o.default.pickBy(e,function(e){return e}));if(this.isSelectURL&&this.templateData&&o.default.every(r,function(e){return n.templateData[e]})){var i=this.root.submission;i.metadata.selectData||(i.metadata.selectData={});var a=[];r.forEach(function(e){return a.push(n.templateData[e])}),o.default.set(i.metadata.selectData,this.path,a)}return e}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
1,r=this.updateValue(e,n);return e=this.dataValue,this.isHtmlRenderMode()?r&&this.redraw():o.default.each(this.refs.input,function(n){o.default.isUndefined(e[n.value])&&(e[n.value]=!1),n.checked=!!e[n.value]}),r}},{key:"getValueAsString",value:function(e){return e?this.isSelectURL?(0,o.default)(e).pickBy(function(e){return e}).keys().join(", "):(0,o.default)(this.component.values||[]).filter(function(n){return e[n.value]}).map("label").join(", "):""}},{key:"setSelectedClasses",value:function(){var e=this;if(this.refs.wrapper){var n=this.dataValue,r=Object.keys(n);this.refs.wrapper.forEach(function(i,a){var l=r[a],s=e.refs.input[a];(null==s?void 0:s.value.toString())!==l&&(l=r.find(function(e){return(null==s?void 0:s.value.toString())===e}));var u=n[l];u&&l||e.isSelectURL&&!e.shouldLoad&&e.listData&&-1!==o.default.findIndex(e.selectData,e.listData[a])?(e.addClass(i,e.optionSelectedClass),s.setAttribute("checked","true")):!u&&l&&(e.removeClass(i,e.optionSelectedClass),s.removeAttribute("checked"))})}}},{key:"setInputsDisabled",value:function(e,n){this.refs.input&&this.refs.input.forEach(function(r){(!n||r.checked)&&n||(r.disabled=e)})}},{key:"checkComponentValidity",value:function(e,n,r,o){var i=this,a=this.component.validate.minSelectedCount,l=this.component.validate.maxSelectedCount,s=this.isValid(e,n);if((l||a)&&!this.shouldSkipValidation(e,n,r)){var u=Object.keys(this.validationValue).reduce(function(e,n){return i.validationValue[n]&&e++,e},0);if(l&&u>=l?this.setInputsDisabled(!0,!0):l&&!this.shouldDisabled&&this.setInputsDisabled(!1),!s&&l&&u>l){var c=this.t(this.component.maxSelectedCountMessage||"You can only select up to {{maxCount}} items.",{maxCount:l});return this.setCustomValidity(c,n),!1}if(!s&&a&&u<a){this.setInputsDisabled(!1);var f=this.t(this.component.minSelectedCountMessage||"You must select at least {{minCount}} items.",{minCount:a});return this.setCustomValidity(f,n),!1}}return y(m(p.prototype),"checkComponentValidity",this).call(this,e,n,r,o)}},{key:"validateValueAvailability",value:function(e,n){if(!(0,i.boolValue)(e)||!n)return!0;var r=(this.component.values||[]).map(function(e){return e.value});return Object.keys(n).every(function(e){return r.includes(e)})}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"selectboxes",label:"Select Boxes",key:"selectBoxes",inline:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Select Boxes",group:"basic",icon:"plus-square",weight:60,documentation:"/userguide/form-building/form-components#select-box",schema:p.schema()}}},{key:"serverConditionSettings",get:function(){return p.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return u(u({},y(m(p),"conditionOperatorsSettings",this)),{},{valueComponent:function(e){return e.dataSrc&&"values"!==e.dataSrc?u(u({},e),{},{dataType:"string",type:"select"}):{type:"select",dataSrc:"custom",valueProperty:"value",dataType:"string",data:{custom:"values = ".concat(e&&e.values?JSON.stringify(e.values):[])}}}})}},{key:"savedValueTypes",value:function(e){return(0,i.getComponentSavedTypes)(e)||[i.componentValueTypes.object]}}],r&&d(p.prototype,r),l&&d(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p}(a.default);n.default=v},95112:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"number",input:!0,key:"validate.minSelectedCount",label:"Minimum checked number",tooltip:"Minimum checkboxes required before form can be submitted.",weight:250},{type:"number",input:!0,key:"validate.maxSelectedCount",label:"Maximum checked number",tooltip:"Maximum checkboxes possible before form can be submitted.",weight:250},{type:"textfield",input:!0,key:"minSelectedCountMessage",label:"Minimum checked error message",tooltip:"Error message displayed if minimum number of items not checked.",weight:250},{type:"textfield",input:!0,key:"maxSelectedCountMessage",label:"Maximum checked error message",tooltip:"Error message displayed if maximum number of items checked.",weight:250}]},44771:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
1return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(67998);var o=s(r(5956)),i=s(r(66561)),a=s(r(82550)),l=s(r(2686));function s(e){return e&&e.__esModule?e:{default:e}}},18416:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18666),r(56613),r(67998),r(43053),r(65813);var i=c(r(42932)),a=c(r(50625)),l=c(r(95306)),s=c(r(2890)),u=r(38163);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=h(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=v(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e,n){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(h,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=v(h);if(n){var i=v(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h),f.apply(this,arguments)}return r=[{key:"init",value:function(){var e,n,r,o,i;y(v(h.prototype),"init",this).call(this),this.currentWidth=0,this.scale=1,this.component.width||(this.component.width="100%"),this.component.height||(this.component.height="200px"),this.component.keepOverlayRatio&&(null===(e=this.options)||void 0===e?void 0:e.display)==="pdf"&&null!==(n=this.component.overlay)&&void 0!==n&&n.width&&null!==(r=this.component.overlay)&&void 0!==r&&r.height&&(this.ratio=(null===(o=this.component.overlay)||void 0===o?void 0:o.width)/(null===(i=this.component.overlay)||void 0===i?void 0:i.height),this.component.width="100%",this.component.height="auto")}},{key:"emptyValue",get:function(){return""}},{key:"defaultSchema",get:function(){return h.schema()}},{key:"inputInfo",get:function(){var e=y(v(h.prototype),"inputInfo",this);return e.type="input",e.attr.type="hidden",e}},{key:"className",get:function(){return"".concat(y(v(h.prototype),"className",this)," signature-pad")}},{key:"labelIsHidden",value:function(){return this.component.hideLabel}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=y(v(h.prototype),"setValue",this).call(this,e,n);return this.refs.signatureImage&&(this.options.readOnly||this.disabled)&&(this.refs.signatureImage.setAttribute("src",e),this.showCanvas(!1)),this.signaturePad&&(e?r&&this.triggerChange():this.signaturePad.clear()),this.signaturePad&&this.dataValue&&this.signaturePad.isEmpty()&&this.setDataToSigaturePad(),r}},{key:"showCanvas",value:function(e){e?(this.refs.canvas&&(this.refs.canvas.style.display="inherit"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="none")):(this.refs.canvas&&(this.refs.canvas.style.display="none"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="inherit",this.refs.signatureImage.style.maxHeight="100%"))}},{key:"onDisabled",value:function(){this.showCanvas(!y(v(h.prototype),"disabled",this)),this.signaturePad&&(y(v(h.prototype),"disabled",this)?(this.signaturePad.off(),this.refs.refresh&&this.refs.refresh.classList.add("disabled"),this.refs.signatureImage&&this.dataValue&&this.refs.signatureImage.setAttribute("src",this.dataValue)):(this.signaturePad.on(),this.refs.refresh&&this.refs.refresh.classList.remove("disabled")))}},{key:"checkSize",value:function(e,n){if(this.refs.padBody&&(e||this.refs.padBody&&this.refs.padBody.offsetWidth!==this.currentWidth)){this.scale=e?n:this.scale,this.currentWidth=this.refs.padBody.offsetWidth;var r=this.currentWidth*this.scale,o=this.ratio?r/this.ratio:this.refs.padBody.offsetHeight*this.scale,i=this.ratio?o:this.refs.padBody.offsetHeight*this.scale;this.refs.canvas.width=r,this.refs.canvas.height=o>
vendor: 5,107 bytes, line 1
1i?i:o,this.refs.canvas.style.maxWidth="".concat(this.currentWidth*this.scale,"px"),this.refs.canvas.style.maxHeight="".concat(i,"px");var a=this.refs.canvas.getContext("2d");a.setTransform(1,0,0,1,0,0),a.scale(1/this.scale,1/this.scale),a.fillStyle=this.signaturePad.backgroundColor,a.fillRect(0,0,this.refs.canvas.width,this.refs.canvas.height),this.signaturePad.clear(),this.dataValue&&this.setDataToSigaturePad(),this.showCanvas(!0)}}},{key:"renderElement",value:function(e,n){return this.renderTemplate("signature",{element:y(v(h.prototype),"renderElement",this).call(this,e,n),required:s.default.get(this.component,"validate.required",!1)})}},{key:"hasModalSaveButton",get:function(){return!1}},{key:"getModalPreviewTemplate",value:function(){return this.renderTemplate("modalPreview",{previewText:this.dataValue?"<img src=".concat(this.dataValue," ref='openModal' style=\"width: 100%;height: 100%;\" />"):this.t("Click to Sign")})}},{key:"attach",value:function(e){var n=this;this.loadRefs(e,{canvas:"single",refresh:"single",padBody:"single",signatureImage:"single"});var r=y(v(h.prototype),"attach",this).call(this,e);return this.refs.refresh&&this.options.readOnly&&this.refs.refresh.classList.add("disabled"),this.refs.canvas&&(this.signaturePad=new i.default(this.refs.canvas,{minWidth:this.component.minWidth,maxWidth:this.component.maxWidth,penColor:this.component.penColor,backgroundColor:this.component.backgroundColor}),this.signaturePad.addEventListener("endStroke",function(){return n.setValue(n.signaturePad.toDataURL())}),this.refs.signatureImage.setAttribute("src",this.signaturePad.toDataURL()),this.onDisabled(),this.refs.padBody&&(this.refs.padBody.style.maxWidth||(this.refs.padBody.style.maxWidth="100%"),this.builderMode||this.options.preview||(this.observer=new a.default(function(){n.checkSize()}),this.observer.observe(this.refs.padBody)),this.addEventListener(window,"resize",s.default.debounce(function(){return n.checkSize()},10)),setTimeout((function e(){this.refs.padBody&&this.refs.padBody.offsetWidth?this.checkSize():setTimeout(e.bind(this),20)}).bind(this),20))),this.addEventListener(this.refs.refresh,"click",function(e){e.preventDefault(),n.showCanvas(!0),n.signaturePad.clear(),n.setValue(n.defaultValue)}),this.setValue(this.dataValue),r}},{key:"detach",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.signaturePad&&this.signaturePad.off(),this.signaturePad=null,this.currentWidth=0,y(v(h.prototype),"detach",this).call(this)}},{key:"getValueAsString",value:function(e){return s.default.isUndefined(e)&&this.inDataTable?"":e?"Yes":"No"}},{key:"focus",value:function(){this.refs.padBody.focus()}},{key:"setDataToSigaturePad",value:function(){this.signaturePad.fromDataURL(this.dataValue,{ratio:1,width:this.refs.canvas.width,height:this.refs.canvas.height})}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{type:"signature",label:"Signature",key:"signature",footer:"Sign above",width:"100%",height:"150px",penColor:"black",backgroundColor:"rgb(245,245,235)",minWidth:"0.5",maxWidth:"2.5",keepOverlayRatio:!0}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Signature",group:"advanced",icon:"pencil",weight:120,documentation:"/developers/integrations/esign/esign-integrations#signature-component",schema:h.schema()}}},{key:"serverConditionSettings",get:function(){return h.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return d(d({},y(v(h),"conditionOperatorsSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,u.getComponentSavedTypes)(e)||[u.componentValueTypes.string]}}],r&&p(h.prototype,r),c&&p(h,c),Object.defineProperty(h,"prototype",{writable:!1}),h}(l.default);n.default=b},66561:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"dbIndex",ignore:!0}]},82550:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.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(e){var n,r=e.options;return(null==r?void 0:null===(n=r.editForm)||void 0===n?void 0:n.display)==="pdf"},input:!0},{type:"textfield",input:!0,key:"backgroundColor",label:"Backgroun
1d 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}]},2686:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},99351:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(67998);var o=s(r(5956)),i=s(r(24652)),a=s(r(33124)),l=s(r(51323));function s(e){return e&&e.__esModule?e:{default:e}}},49465:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(28656),r(89352),r(48510),r(33559),r(78089),r(11414),r(28839),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(49907),r(37753),r(30890),r(3616),r(92471),r(41135),r(88910),r(44991),r(67998),r(97599),r(55096),r(20680),r(43053),r(56613),r(65813);var i=s(r(2890)),a=s(r(32802)),l=r(38163);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function d(e,n,r,o){return(d="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=m(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else p(o,n,r);return!0})(e,n,r,o)}function p(e,n,r){return(n=h(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function h(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=m(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=b(e)););return e}function v(e,n){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&v(e,n)}(p,e);var n,r,s,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=b(p);if(n){var i=b(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),u.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"render",value:function(){return y(b(p.prototype),"render",this).call(this,this.renderTemplate("survey"))}},{key:"attach",value:function(e){var n=this;
1this.loadRefs(e,{input:"multiple"});var r=y(b(p.prototype),"attach",this).call(this,e);return this.refs.input.forEach(function(e){n.disabled?e.setAttribute("disabled","disabled"):n.addEventListener(e,"change",function(){return n.updateValue(null,{modified:!0})})}),this.setValue(this.dataValue),r}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;i.default.each(this.component.questions,function(r){i.default.each(n.refs.input,function(o){o.name===n.getInputName(r)&&(o.checked=o.value===e[r.value])})});var o=this.updateValue(e,r);return o&&this.isHtmlRenderMode()&&this.redraw(),o}},{key:"emptyValue",get:function(){return{}}},{key:"defaultValue",get:function(){var e=y(b(p.prototype),"defaultValue",this);if(e&&!i.default.isObject(e)&&this.component.values.some(function(n){return n.value===e})){var n={};return this.component.questions.forEach(function(r){n[r.value]=e}),n}return e}},{key:"getValue",value:function(){var e=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var n={};return i.default.each(this.component.questions,function(r){i.default.each(e.refs.input,function(o){if(o.checked&&o.name===e.getInputName(r))return n[r.value]=o.value,!1})}),n}},{key:"disabled",get:function(){return y(b(p.prototype),"disabled",this)},set:function(e){(function(e,n,r,o,i){if(!d(e,n,r,o||e)&&i)throw Error("failed to set property")})(b(p.prototype),"disabled",e,this,!0),i.default.each(this.refs.input,function(e){e.disabled=!0})}},{key:"validateRequired",value:function(e,n){return!(0,l.boolValue)(e)||this.component.questions.reduce(function(e,r){return e&&!!n[r.value]},!0)}},{key:"getInputName",value:function(e){return"".concat(this.options.name,"[").concat(e.value,"]")}},{key:"getValueAsString",value:function(e,n){var r=this;if(null!=n&&n.email){var o='\n        <table border="1" style="width:100%">\n          <thead>\n            <tr>\n              <th>Question</th>\n              <th>Value</th>\n            </tr>\n          </thead>\n          <tbody>\n      ';return i.default.forIn(e,function(e,n){var a=i.default.find(r.component.questions,["value",n]),l=i.default.find(r.component.values,["value",e]);a&&l&&(o+='\n            <tr>\n              <td style="text-align:center;padding: 5px 10px;">'.concat(a.label,'</td>\n              <td style="text-align:center;padding: 5px 10px;">').concat(l.label,"</td>\n            </tr>\n          "))}),o+="</tbody></table>"}if(i.default.isPlainObject(e)){var a=this.component,l=a.values,s=void 0===l?[]:l,u=a.questions,c=void 0===u?[]:u;return i.default.isEmpty(e)?"":i.default.map(e,function(e,n){var r=i.default.get(i.default.find(s,function(n){return i.default.isEqual(n.value,e)}),"label",e),o=i.default.get(i.default.find(c,function(e){return i.default.isEqual(e.value,n)}),"label",n);return"".concat(o,": ").concat(r)}).join("; ")}return y(b(p.prototype),"getValueAsString",this).call(this,e,n)}}],s=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"survey",label:"Survey",key:"survey",questions:[],values:[]}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Survey",group:"advanced",icon:"list",weight:110,documentation:"/userguide/form-building/advanced-components#survey",schema:p.schema()}}},{key:"serverConditionSettings",get:function(){return p.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return c(c({},y(b(p),"conditionOperatorsSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}},{key:"savedValueTypes",value:function(e){return(0,l.getComponentSavedTypes)(e)||[l.componentValueTypes.object]}}],r&&f(p.prototype,r),s&&f(p,s),Object.defineProperty(p,"prototype",{writable:!1}),p}(a.default);n.default=g},24652:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{type:"datagrid",input:!0,label:"Questions",key:"questions",tooltip:"The questions you would like to ask in this survey question.",weight:0,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The values that can be selected per question. Example: 'Satisfied', 'Very Satisfied', etc.",weight:1,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]}]},33124:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0}]},51323:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validateOn",ignore:!0}]},23271:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default}]].concat(n))},r(67998);
1var o=a(r(53409)),i=a(r(80816));function a(e){return e&&e.__esModule?e:{default:e}}},55064:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37097),r(80107),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(45399),r(37753),r(45945),r(7122),r(20680),r(44991),r(49907),r(30890),r(43053),r(56613),r(65813);var i=s(r(2890)),a=s(r(71125)),l=s(r(77975));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=d(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=y(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(d,e);var n,r,s,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(d);if(n){var i=y(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=u.call.apply(u,[this].concat(r))).noField=!0,e}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"schema",get:function(){var e=this,n=i.default.omit(h(y(d.prototype),"schema",this),"components");return n.rows=[],this.eachComponent(function(r){n.rows&&n.rows.length||(n.rows=d.emptyTable(e.component.numRows,e.component.numCols)),n.rows[r.tableRow]||(n.rows[r.tableRow]=[]),n.rows[r.tableRow][r.tableColumn]||(n.rows[r.tableRow][r.column]={components:[]}),n.rows[r.tableRow][r.tableColumn].components.push(r.schema)}),n.rows.length||(n.rows=d.emptyTable(this.component.numRows,this.component.numCols)),n}},{key:"className",get:function(){var e="table-responsive ".concat(h(y(d.prototype),"className",this));return this.component.bordered||(e+=" no-top-border-table"),e}},{key:"cellClassName",get:function(){var e="";return this.component.cellAlignment&&(e="cell-align-".concat(this.component.cellAlignment)),e}},{key:"tableKey",get:function(){return"table-".concat(this.key)}},{key:"colWidth",get:function(){var e=this.component.numCols;return e&&"number"==typeof e?Math.floor(12/e).toString():""}},{key:"init",value:function(){var e=this;h(y(d.prototype),"init",this).call(this);for(var n=0;n<this.component.numRows;n++){this.component.rows[n]=this.component.rows[n]||[];for(var r=0;r<this.component.numCols;r++)this.component.rows[n][r]=this.component.rows[n][r]||{components:[]};this.component.rows[n]=this.component.rows[n].slice(0,this.component.numCols)}this.component.rows=this.component.rows.slice(0,this.component.numRows);var o=[];this.table=[],i.default.each(this.component.rows,function(n,r){e.table[r]=[],i.default.each(n,function(n,l){e.table[r][l]=[],e.component.cloneRows&&(n.components.length?o[l]=n:o[l]&&(n.components=i.default.cloneDeep(o[l].components),a.default.uniquify(e.root._form.components,n))),i.default.each(n.components,function(n){e.builderMode?(n.id=n.id+r,o=n):o=c(c({},n),{},{id:n.id+r});var o,i=e.createComponent(o);
vendor: 4,313 bytes, line 1
1i.tableRow=r,i.tableColumn=l,e.table[r][l].push(i)})})})}},{key:"render",value:function(){var e=this;return h(y(d.prototype),"render",this).call(this,this.renderTemplate("table",{cellClassName:this.cellClassName,tableKey:this.tableKey,colWidth:this.colWidth,tableComponents:this.table.map(function(n){return n.map(function(n){return e.renderComponents(n)})})}))}},{key:"attach",value:function(e){var n=this,r=this.table.reduce(function(e,r,o){return e["".concat(n.tableKey,"-").concat(o)]="multiple",e},{});this.loadRefs(e,r);var o=h(y(d.prototype),"attach",this).call(this,e);return this.table.forEach(function(e,r){e.forEach(function(e,o){n.attachComponents(n.refs["".concat(n.tableKey,"-").concat(r)][o],n.table[r][o],n.component.rows[r][o].components)})}),o}},{key:"destroy",value:function(e){h(y(d.prototype),"destroy",this).call(this,e),delete this.table}}],s=[{key:"emptyTable",value:function(e,n){for(var r=[],o=0;o<e;o++){for(var i=[],a=0;a<n;a++)i.push({components:[]});r.push(i)}return r}},{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{label:"Table",type:"table",input:!1,key:"table",numRows:3,numCols:3,rows:d.emptyTable(3,3),header:[],caption:"",cloneRows:!1,striped:!1,bordered:!1,hover:!1,condensed:!1,persistent:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Table",group:"layout",icon:"table",weight:40,documentation:"/userguide/form-building/layout-components#table",showPreview:!1,schema:d.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],r&&f(d.prototype,r),s&&f(d,s),Object.defineProperty(d,"prototype",{writable:!1}),d}(l.default);n.default=m},80816:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0},{type:"number",label:"Number of Rows",key:"numRows",input:!0,weight:1,placeholder:"Number of Rows",tooltip:"Enter the number or rows that should be displayed by this table."},{type:"number",label:"Number of Columns",key:"numCols",input:!0,weight:2,placeholder:"Number of Columns",tooltip:"Enter the number or columns that should be displayed by this table."},{type:"checkbox",label:"Clone Row Components",key:"cloneRows",input:!0,weight:3,tooltip:"Check this if you would like to 'clone' the first row of components to all additional empty rows of the table."},{type:"select",label:"Cell Alignment",key:"cellAlignment",input:!0,tooltip:"Horizontal alignment for cells of the table.",dataSrc:"values",data:{values:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]},defaultValue:"left",weight:3},{type:"checkbox",label:"Striped",key:"striped",tooltip:"This will stripe the table if checked.",input:!0,weight:701},{type:"checkbox",label:"Bordered",key:"bordered",input:!0,tooltip:"This will border the table if checked.",weight:702},{type:"checkbox",label:"Hover",key:"hover",input:!0,tooltip:"Highlight a row on hover.",weight:703},{type:"checkbox",label:"Condensed",key:"condensed",input:!0,tooltip:"Condense the size of the table.",weight:704},{key:"hideLabel",ignore:!0}]},28896:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default}]].concat(n))},r(67998);var o=a(r(53409)),i=a(r(16355));function a(e){return e&&e.__esModule?e:{default:e}}},29716:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37097),r(80107),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(889
110),r(26343),r(7122),r(3616),r(789),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(20680),r(49907),r(37753),r(56613),r(30890),r(86328),r(92471),r(70601),r(44991),r(48510),r(33546),r(88852),r(43053),r(65813);var i=l(r(2890)),a=l(r(77975));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function c(e,n,r){return(n=d(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=y(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(d,e);var n,r,l,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(d);if(n){var i=y(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=u.call.apply(u,[this].concat(r))).currentTab=0,e.noField=!0,e}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"schema",get:function(){var e=this,n=h(y(d.prototype),"schema",this),r=i.default.cloneDeep(this.component.components);return n.components=r.map(function(n,r){return n.components=e.tabs[r].map(function(e){return e.schema}),n}),n}},{key:"tabKey",get:function(){return"tab-".concat(this.key)}},{key:"tabLikey",get:function(){return"tabLi-".concat(this.key)}},{key:"tabLinkKey",get:function(){return"tabLink-".concat(this.key)}},{key:"init",value:function(){var e=this;this.components=[],this.tabs=[],i.default.each(this.component.components,function(n,r){e.tabs[r]=[],n.components=n.components||[],i.default.each(n.components,function(n){var o=e.createComponent(n);o.tab=r,e.tabs[r].push(o)})})}},{key:"render",value:function(){var e=this;return h(y(d.prototype),"render",this).call(this,this.renderTemplate("tab",{tabKey:this.tabKey,tabLikey:this.tabLikey,tabLinkKey:this.tabLinkKey,currentTab:this.currentTab,tabComponents:this.tabs.map(function(n){return e.renderComponents(n)})},this.options.flatten||this.options.pdf?"flat":null))}},{key:"attach",value:function(e){var n,r=this;this.loadRefs(e,(c(n={},this.tabLinkKey,"multiple"),c(n,this.tabKey,"multiple"),c(n,this.tabLikey,"multiple"),n)),["change","error"].forEach(function(e){return r.on(e,r.handleTabsValidation.bind(r))});var o=h(y(d.prototype),"attach",this).call(this,e);
vendor: 4,418 bytes, line 1
1return this.refs[this.tabLinkKey].forEach(function(e,n){r.addEventListener(e,"click",function(e){e.preventDefault(),r.setTab(n)})}),this.refs[this.tabKey].forEach(function(e,n){r.attachComponents(e,r.tabs[n],r.component.components[n].components)}),o}},{key:"detach",value:function(e){h(y(d.prototype),"detach",this).call(this,e)}},{key:"setTab",value:function(e){var n=this;this.tabs&&this.tabs[e]&&this.refs[this.tabKey]&&this.refs[this.tabKey][e]&&(this.currentTab=e,i.default.each(this.refs[this.tabKey],function(e){n.removeClass(e,"formio-tab-panel-active"),e.style.display="none"}),this.addClass(this.refs[this.tabKey][e],"formio-tab-panel-active"),this.refs[this.tabKey][e].style.display="block",i.default.each(this.refs[this.tabLinkKey],function(e,r){n.refs[n.tabLinkKey][r]&&n.removeClass(e,"formio-tab-link-active"),n.refs[n.tabLikey][r]&&n.removeClass(n.refs[n.tabLikey][r],"formio-tab-link-container-active")}),this.refs[this.tabLikey][e]&&this.addClass(this.refs[this.tabLikey][e],"formio-tab-link-container-active"),this.refs[this.tabLinkKey][e]&&this.addClass(this.refs[this.tabLinkKey][e],"formio-tab-link-active"),this.triggerChange())}},{key:"beforeFocus",value:function(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var n=this.tabs.findIndex(function(n){return n.some(function(n){return n===e})});-1!==n&&this.currentTab!==n&&this.setTab(n)}},{key:"setErrorClasses",value:function(e,n,r,o){var i=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.component.modalEdit&&h(y(d.prototype),"setErrorClasses",this).call(this,e,n,r,o,a),e.forEach(function(e){i.addClass(e,"is-invalid"),"openModal"!==e.getAttribute("ref")&&(i.options.highlightErrors?i.addClass(e,"tab-error"):i.addClass(e,"has-error"))})}},{key:"clearErrorClasses",value:function(e){var n=this;if(!this.options.server&&this.rendered){if(this.component.modalEdit){var r=Array.isArray(e)||e instanceof NodeList?this.element:e;h(y(d.prototype),"clearErrorClasses",this).call(this,r)}(e=Array.isArray(e)||e instanceof NodeList?e:[e]).forEach(function(e){n.removeClass(e,"is-invalid"),n.removeClass(e,"tab-error"),n.removeClass(e,"has-error")})}}},{key:"handleTabsValidation",value:function(){if(this.refs[this.tabLinkKey]&&this.refs[this.tabLinkKey].length&&this.tabs.length){this.clearErrorClasses(this.refs[this.tabLinkKey]);var e=this.tabs.reduce(function(e,n,r){return n.some(function(e){return!!e.error})?[].concat(s(e),[r]):e},[]);if(e.length){var n=s(this.refs[this.tabLinkKey]).filter(function(n,r){return e.includes(r)});this.setErrorClasses(n)}}}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Tabs",type:"tabs",input:!1,key:"tabs",persistent:!1,tableView:!1,components:[{label:"Tab 1",key:"tab1",components:[]}],verticalLayout:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Tabs",group:"layout",icon:"folder-o",weight:50,documentation:"/userguide/form-building/layout-components#tabs",showPreview:!1,schema:d.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],r&&f(d.prototype,r),l&&f(d,l),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=m},16355:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0},{key:"components",type:"datagrid",input:!0,label:"Tabs",weight:50,reorder:!0,components:[{type:"textfield",input:!0,key:"label",label:"Label"},{type:"textfield",input:!0,key:"key",label:"Key",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}}]},{weight:1100,type:"checkbox",label:"Vertical Layout",tooltip:"Make this field display in vertical orientation.",key:"verticalLayout",input:!0},{key:"hideLabel",ignore:!0}]},46553:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
1return o.default.baseEditForm.apply(o.default,[[{key:"data",components:i.default}]].concat(n))},r(67998);var o=a(r(5956)),i=a(r(28119));function a(e){return e&&e.__esModule?e:{default:e}}},36432:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(28656),r(89352),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),r(26343),r(7122),r(3616),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(92471),r(37753),r(71287),r(70601),r(55096),r(48510),r(789),r(88754),r(20680),r(45399),r(45945),r(67998),r(43053),r(56613),r(65813);var i,a,l=r(38163),s=(i=r(95306))&&i.__esModule?i:{default:i};function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?c(Object(r),!0).forEach(function(n){h(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function p(e,n,r,o){return(p="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=v(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else h(o,n,r);return!0})(e,n,r,o)}function h(e,n,r){return(n=y(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function y(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=v(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function v(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=g(e)););return e}function b(e,n){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}a=r(55779);var w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}(h,e);var n,r,i,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=g(h);if(n){var i=g(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h),c.apply(this,arguments)}return r=[{key:"init",value:function(){m(g(h.prototype),"init",this).call(this)}},{key:"emptyValue",get:function(){return"string"===this.component.storeas?"":[]}},{key:"defaultSchema",get:function(){return h.schema()}},{key:"inputInfo",get:function(){var e=m(g(h.prototype),"inputInfo",this);return e.type="input",e.attr.type="text",e.changeEvent="change",e}},{key:"delimiter",get:function(){return this.component.delimeter||","}},{key:"attachElement",value:function(e,n){var r=this;if(m(g(h.prototype),"attachElement",this).call(this,e,n),e&&(e.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy(),a)){var o=!!this.component.placeholder;this.choices=new a(e,{delimiter:this.delimiter,editItems:!0,allowHTML:!0,maxItemCount:this.component.maxTags,removeItemButton:!0,duplicateItemsAllowed:!1,shadowRoot:this.root?this.root.shadowRoot:null,placeholder:o,placeholderValue:o?this.t(this.component.placeholder,{_userInput:!0}):null}),this.choices.itemList.element.tabIndex=e.tabIndex,this.addEventListener(this.choices.input.element,"blur",function(){var e=r.choices.input.value,n=r.component.maxTags,o=r.choices.getValue(!0).length,i=r.choices.getValue(!0).some(function(n){return n.trim()===e.trim()});e&&(n&&o===n?(r.choices.addItems=!1,r.choices.clearInput()):i?r.choices.clearInput():(r.choices.setValue([e]),r.choices.clearInput(),r.choices.hideDropdown(!0),r.updateValue(null,{modified:!0})))})}}},{key:"detach",value:function(){m(g(h.prototype),"detach",this).call(this),this.choices&&(this.choices.destroy(),this.choices=null)}},{key:"normalizeValue",value:function(e){return"string"===this.component.storeas&&Array.isArray(e)?e.join(this.delimiter):"array"===this.component.storeas&&"string"==typeof e?e.split(this.delimiter).filter(function(e){return e}):e}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=m(g(h.prototype),"setValue",this).call(this,e,r);if(this.choices){var i=this.dataValue;if(this.choices.removeActiveItems(),i){"string"==typeof i&&(i=i.split(this.delimiter).filter(function(e){return e}));var a=Array.isArray(i)?i:[i];this.choices.setValue(a.map(function(e){return n.sanitize(e,n.shouldSanitizeV
1alue)}))}}return o}},{key:"disabled",get:function(){return m(g(h.prototype),"disabled",this)},set:function(e){(function(e,n,r,o,i){if(!p(e,n,r,o||e)&&i)throw Error("failed to set property")})(g(h.prototype),"disabled",e,this,!0),this.choices&&(e?this.choices.disable():this.choices.enable())}},{key:"focus",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input[0].parentNode.lastChild.focus()}},{key:"getValueAsString",value:function(e){if(!e)return"";if(Array.isArray(e))return e.join("".concat(this.delimiter||","," "));var n=e.toString();return this.sanitize(n,this.shouldSanitizeValue)}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return s.default.schema.apply(s.default,[{type:"tags",label:"Tags",key:"tags",delimeter:",",storeas:"string",maxTags:0}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Tags",icon:"tags",group:"advanced",documentation:"/userguide/form-building/advanced-components#tags",weight:30,schema:h.schema()}}},{key:"serverConditionSettings",get:function(){return h.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){var e;return f(f({},m(g(h),"conditionOperatorsSettings",this)),{},{operators:[].concat(function(e){if(Array.isArray(e))return u(e)}(e=m(g(h),"conditionOperatorsSettings",this).operators)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),["includes","notIncludes"])})}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,l.getComponentSavedTypes)(e)||[l.componentValueTypes[e.storeas]||l.componentValueTypes.string]}}],r&&d(h.prototype,r),i&&d(h,i),Object.defineProperty(h,"prototype",{writable:!1}),h}(s.default);n.default=w},28119:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{weight:20,type:"textfield",input:!0,key:"delimeter",label:"Delimiter",tooltip:"What is used to separate the tags.</a>"},{weight:22,type:"number",input:!0,key:"maxTags",label:"Max Tags",defaultValue:0,tooltip:"The maximum amount of tags that can be added. 0 for infinity."},{weight:24,type:"select",input:!0,key:"storeas",label:"Store As",dataSrc:"values",data:{values:[{label:"String (CSV)",value:"string"},{label:"Array of Tags",value:"array"}]}}]},32303:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"validation",components:a.default}]].concat(n))},r(67998);var o=l(r(22080)),i=l(r(82821)),a=l(r(12100));function l(e){return e&&e.__esModule?e:{default:e}}},7493:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(67998),r(70776),r(3616),r(20680),r(49907),r(37753),r(92647),r(93538),r(789),r(45945),r(31490),r(30890),r(43053),r(56613),r(65813);var i=u(r(9128)),a=u(r(2890)),l=u(r(32780)),s=r(38163);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=p(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function d(e,n){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(y,e);var n,r,u,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=p(y);if(n){var i=p(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y),h.apply(this,arguments)}return r=[{key:"init",value:function(){f(p(y.prototype),"init",this).call(this),this.editors=[],this.editorsReady=[],this.updateSizes=[],this.options.submitOnEnter=!1}},{key:"defaultSchema",get:function(){return y.schema()}},{key:"inputInfo",get:function(){var e=f(p(y.prototype),"inputInfo",this);return e.type=this.component.wysiwyg?"div":"textarea",this.component.rows&&(e.attr.rows=this.component.rows),e}},{key:"validateMultiple",value:function(){return!this.isJsonValue}},{key:"renderElement",value:function(e,n){var r=this.inputInfo;if(r.attr=r.attr||{},r.content=e,(this.options.readOnly||this.disabled)&&!this.isHtmlRenderMode()){var o=this.info.attr.style||"";return this.renderTemplate("well",{children:'<div ref="input" class="formio-editor-read-only-content" '.concat(o?"style='".concat(o,"'"):"","></div>"),nestedKey:this.key,value:e})}return this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:r,value:e,index:n})}},{key:"autoExpand",get:function(){return this.component.autoExpand}}
1,{key:"updateEditorValue",value:function(e,n){n=this.getConvertedValue(this.trimBlanks(n));var r=this.dataValue;if(this.component.multiple&&Array.isArray(r)){var o=a.default.clone(r);o[e]=n,n=o}a.default.isEqual(n,r)||a.default.isEmpty(n)&&a.default.isEmpty(r)||this.updateValue(n,{modified:!this.autoModified},e),this.autoModified=!1}},{key:"attachElement",value:function(e,n){var r=this;if(this.autoExpand&&(this.isPlain||this.options.readOnly||this.options.htmlView)&&"TEXTAREA"===e.nodeName&&this.addAutoExpanding(e,n),this.options.readOnly)return e;this.component.wysiwyg&&!this.component.editor&&(this.component.editor="ckeditor");var o=a.default.isEmpty(this.component.wysiwyg)?this.wysiwygDefault[this.component.editor]||this.wysiwygDefault.default:this.component.wysiwyg;return this.editorsReady[n]=new l.default(function(i){switch(r.component.editor){case"ace":o||(o={}),o.mode=r.component.as?"ace/mode/".concat(r.component.as):"ace/mode/javascript",r.addAce(e,o,function(e){return r.updateEditorValue(n,e)}).then(function(e){r.editors[n]=e;var o=r.dataValue;return o=r.component.multiple&&Array.isArray(o)?o[n]:o,e.setValue(r.setConvertedValue(o,n)),i(e),e}).catch(function(e){return console.warn(e)});break;case"quill":(o.hasOwnProperty("toolbarGroups")||o.hasOwnProperty("toolbar"))&&(console.warn("The WYSIWYG settings are configured for CKEditor. For this renderer, you will need to use configurations for the Quill Editor. See https://quilljs.com/docs/configuration for more information."),o=r.wysiwygDefault.quill),r.addQuill(e,o,function(){return r.updateEditorValue(n,r.editors[n].root.innerHTML)}).then(function(e){r.editors[n]=e,r.component.isUploadEnabled&&(e.getModule("uploader").options.handler=function(){for(var e,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];(e=r.imageHandler).call.apply(e,[r,this].concat(o))}),e.root.spellcheck=r.component.spellcheck,(r.options.readOnly||r.disabled)&&e.disable();var o=r.dataValue;return o=r.component.multiple&&Array.isArray(o)?o[n]:o,e.setContents(e.clipboard.convert({html:r.setConvertedValue(o,n)})),i(e),e}).catch(function(e){return console.warn(e)});break;case"ckeditor":(o=o||{}).rows=r.component.rows,r.addCKE(e,o,function(e){return r.updateEditorValue(n,e)}).then(function(e){r.editors[n]=e;var o=r.dataValue;o=r.component.multiple&&Array.isArray(o)?o[n]:o;var l=r.setConvertedValue(o,n),u=r.options.readOnly||r.disabled;if((0,s.getBrowserInfo)().ie)e.on("instanceReady",function(){e.setReadOnly(u),e.setData(l)});else{var c=parseInt(r.component.rows,10);if(a.default.isFinite(c)&&a.default.has(e,"ui.view.editable.editableElement")){var f=31*c+14;e.ui.view.editable.editableElement.style.height="".concat(f,"px")}e.isReadOnly=u,e.data.set(l)}return i(e),e});break;default:f(p(y.prototype),"attachElement",r).call(r,e,n)}}),e}},{key:"attach",value:function(e){var n=f(p(y.prototype),"attach",this).call(this,e);return this.restoreValue(),n}},{key:"imageHandler",value:function(e,n,r){var o,i=this,a=e.quill;if(!r||!r.length){console.warn("No files selected");return}a.enable(!1);var l=this.component,u=l.uploadStorage,c=l.uploadUrl,f=l.uploadOptions,d=l.uploadDir,p=l.fileKey;this.fileService.uploadFile(u,r[0],(0,s.uniqueName)(r[0].name),d||"",null,c,f,p).then(function(e){return o=e,i.fileService.downloadFile(e)}).then(function(e){a.enable(!0);var r=Quill.import("delta");a.updateContents(new r().retain(n.index).delete(n.length).insert({image:e.url},{alt:JSON.stringify(o)}),Quill.sources.USER)}).catch(function(e){console.warn("Quill image upload failed"),console.warn(e),a.enable(!0)})}},{key:"isPlain",get:function(){return!this.component.wysiwyg&&!this.component.editor}},{key:"htmlView",get:function(){return this.options.readOnly&&(this.component.editor||this.component.wysiwyg)}},{key:"setValueAt",value:function(e,n){var r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f(p(y.prototype),"setValueAt",this).call(this,e,n,i),this.editorsReady[e]&&this.editorsReady[e].then((r=a.default.clone(i),function(i){if(!r.skipWysiwyg)switch(o.autoModified=!0,o.component.editor){case"ace":i.setValue(o.setConvertedValue(n,e));break;case"quill":if(o.component.isUploadEnabled)o.setAsyncConvertedValue(n).then(function(e){var n=i.clipboard.convert({html:e});i.setContents(n)});else{var a=o.setConvertedValue(n,e),l=i.clipboard.convert({html:a});i.setContents(l)}break;case"ckeditor":i.data.set(o.setConvertedValue(n,e))}}))}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isPlain||this.options.readOnly||this.disabled?e=this.component.multiple&&Array.isArray(e)?e.map(function(e,r){return n.setConvertedValue(e,r)}):this.setConvertedValue(e):r.skipWysiwyg=(""!==e||!r.resetValue)&&a.default.isEqual(e,this.getValue()),f(p(y.prototype),"setValue",this).call(this,e,r)}},{key:"setContent",value:function(e,n,r){f(p(y.prototype),"setContent",this).call(this,e,n,r,{addAttr:["allow","allowfullscreen","frameborder","scrolling"],addTags:["iframe"]})}}
1,{key:"setReadOnlyValue",value:function(e,n){n=n||0,(this.options.readOnly||this.disabled)&&this.refs.input&&this.refs.input[n]&&("plain"===this.component.inputFormat?this.refs.input[n].innerText=this.isPlain?e:this.interpolate(e,{},{noeval:!0}):this.setContent(this.refs.input[n],this.isPlain?e:this.interpolate(e,{},{noeval:!0}),this.shouldSanitizeValue))}},{key:"isJsonValue",get:function(){return this.component.as&&"json"===this.component.as}},{key:"setConvertedValue",value:function(e,n){if(this.isJsonValue&&!a.default.isNil(e))try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}return a.default.isString(e)||(e=""),this.setReadOnlyValue(e,n),e}},{key:"setAsyncConvertedValue",value:function(e){if(this.isJsonValue&&e)try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}a.default.isString(e)||(e="");var n=new DOMParser().parseFromString(e,"text/html"),r=n.getElementsByTagName("img");return r.length?this.setImagesUrl(r).then(function(){return e=n.getElementsByTagName("body")[0].innerHTML}):l.default.resolve(e)}},{key:"setImagesUrl",value:function(e){var n=this;return l.default.all(a.default.map(e,function(e){var r;try{r=JSON.parse(e.getAttribute("alt"))}catch(e){console.warn(e)}return n.fileService.downloadFile(r).then(function(n){e.setAttribute("src",n.url)})}))}},{key:"addAutoExpanding",value:function(e,n){var r=null,o=null,i=function(n){var r=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=r,e.style.overflowY=n},l=function(e,n){for(var r=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&r.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;n(),r.forEach(function(e){e.node.scrollTop=e.scrollTop})},s=function(){0!==e.scrollHeight&&l(e,function(){e.style.height="",e.style.height="".concat(e.scrollHeight+r,"px")})},u=a.default.debounce(function(){s();var n=Math.round(parseFloat(e.style.height)),r=window.getComputedStyle(e,null),a=e.offsetHeight;a<n&&"hidden"===r.overflowY?i("scroll"):"hidden"!==r.overflowY&&i("hidden"),s(),a=e.offsetHeight,o!==a&&(o=a,u())},200),c=window.getComputedStyle(e,null);e.style.resize="none",r=parseFloat(c.borderTopWidth)+parseFloat(c.borderBottomWidth)||0,window&&this.addEventListener(window,"resize",u),this.addEventListener(e,"input",u),this.on("initialized",u),this.updateSizes[n]=u,u()}},{key:"trimBlanks",value:function(e){if(!e||this.isPlain)return e;var n=function(e){var n="<p>&nbsp;</p>",r="<p><br></p>",o="<p><br>&nbsp;</p>",i=RegExp("^".concat(n,"|").concat(n,"$|^").concat(r,"|").concat(r,"$|^").concat(o,"|").concat(o,"$"),"g");return"string"==typeof e?e.replace(i,""):e};return Array.isArray(e)?e.forEach(function(r,o){e[o]=n(r)}):e=n(e),e}},{key:"onChange",value:function(e,n){var r=f(p(y.prototype),"onChange",this).call(this,e,n);
1return this.updateSizes.forEach(function(e){return e()}),r}},{key:"hasChanged",value:function(e,n){return f(p(y.prototype),"hasChanged",this).call(this,this.trimBlanks(e),this.trimBlanks(n))}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return f(p(y.prototype),"isEmpty",this).call(this,this.trimBlanks(e))}},{key:"defaultValue",get:function(){var e=f(p(y.prototype),"defaultValue",this);return"quill"!==this.component.editor||e||(e="<p><br></p>"),e}},{key:"getConvertedValue",value:function(e){if(this.isJsonValue&&e)try{e=JSON.parse(e)}catch(e){}return e}},{key:"detach",value:function(){var e=this;this.editors.forEach(function(e){e.destroy&&e.destroy()}),this.editors=[],this.editorsReady=[],this.updateSizes.forEach(function(n){return e.removeEventListener(window,"resize",n)}),this.updateSizes=[],f(p(y.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){return this.isPlain?this.getConvertedValue(f(p(y.prototype),"getValue",this).call(this)):this.dataValue}},{key:"focus",value:function(){var e,n,r,o=this;switch(f(p(y.prototype),"focus",this).call(this),this.component.editor){case"ckeditor":null===(e=this.editorsReady[0])||void 0===e||e.then(function(){var e,n;null!==(e=o.editors[0].editing)&&void 0!==e&&null!==(n=e.view)&&void 0!==n&&n.focus&&o.editors[0].editing.view.focus(),o.element.scrollIntoView()}).catch(function(e){console.warn("An editor did not initialize properly when trying to focus:",e)});break;case"ace":null===(n=this.editorsReady[0])||void 0===n||n.then(function(){o.editors[0].focus(),o.element.scrollIntoView()}).catch(function(e){console.warn("An editor did not initialize properly when trying to focus:",e)});break;case"quill":null===(r=this.editorsReady[0])||void 0===r||r.then(function(){o.editors[0].focus()}).catch(function(e){console.warn("An editor did not initialize properly when trying to focus:",e)})}}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{type:"textarea",label:"Text Area",key:"textArea",rows:3,wysiwyg:!1,editor:"",fixedSize:!0,inputFormat:"html",validate:{minWords:"",maxWords:""}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Text Area",group:"basic",icon:"font",documentation:"/userguide/form-building/form-components#text-area",weight:20,schema:y.schema()}}}],r&&c(y.prototype,r),u&&c(y,u),Object.defineProperty(y,"prototype",{writable:!1}),y}(i.default);n.default=h},82821:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(20680);var o,i=(o=r(2890))&&o.__esModule?o:{default:o},a=r(79408);n.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"mask",ignore:!0},{type:"number",input:!0,key:"rows",label:"Rows",weight:210,tooltip:"This allows control over how many rows are visible in the text area.",placeholder:"Enter the amount of rows"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{type:"select",input:!0,key:"editor",label:"Editor",tooltip:"Select the type of WYSIWYG editor to use for this text area.",dataSrc:"values",data:{values:[{label:"None",value:""},{label:"ACE",value:"ace"},{label:"CKEditor",value:"ckeditor"},{label:"Quill",value:"quill"}]},weight:415},{type:"checkbox",input:!0,key:"autoExpand",label:"Auto Expand",tooltip:"This will make the TextArea auto expand it's height as the user is typing into the area.",weight:415,conditional:{json:{"==":[{var:"data.editor"},""]}}},{type:"checkbox",input:!0,key:"isUploadEnabled",label:"Enable Image Upload",weight:415.1,conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ckeditor"]}]}}},{type:"select",input:!0,key:"uploadStorage",label:"Image Upload Storage",placeholder:"Select your file storage provider",weight:415.2,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return i.default.map(a.GlobalFormio.Providers.getProviders("storage"),function(e,n){return{label:e.title,value:n}})}},conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",input:!0,key:"uploadUrl",label:"Image Upload Url",weight:415.3,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textarea",key:"uploadOptions",label:"Image Upload Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:415.4,placeholder:'{\n      "withCredentials": true\n    }',conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textfield",input:!0,key:"uploadDir",label:"Image Upload Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:415.5,conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",key:"fileKey",input:!0,label:"File form-data Key",tooltip:"Key name that you would like to modify for the file while calling API request.",rows:5,weight:415.6,placeholder:"Enter the key name of a file for form data.",conditional:{json:{and:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.isUploadEnabled"},!0]},{"===":[{var:"data.uploadStorage"},"url"]}]}}},{type:"select",input:!0,key:"as",label:"Save As",dataSrc:"values",tooltip:"This setting determines how the value should be entered and stored in the database.",clearOnHide:!0,data:{values:[{label:"Str
1ing",value:"string"},{label:"JSON",value:"json"},{label:"HTML",value:"html"}]},conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ace"]}]}},weight:416},{type:"textarea",input:!0,editor:"ace",rows:10,as:"json",label:"Editor Settings",tooltip:"Enter the WYSIWYG editor JSON configuration.",key:"wysiwyg",customDefaultValue:function(e,n,r,o,i){return i?i.wysiwygDefault:""},conditional:{json:{or:[{"===":[{var:"data.editor"},"ace"]},{"===":[{var:"data.editor"},"ckeditor"]},{"===":[{var:"data.editor"},"quill"]}]}},weight:417}]},12100:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0}]},22080:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(67998);var o=s(r(5956)),i=s(r(13619)),a=s(r(82343)),l=s(r(34875));function s(e){return e&&e.__esModule?e:{default:e}}},9128:function(e,n,r){"use strict";r(37097),r(80107),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(49907),r(30890),r(33559),r(78089),r(11414),r(28839),r(26343),r(7122),r(3616),r(2223),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(20680),r(41135),r(37753),r(88910),r(44991),r(71287),r(45399),r(45945),r(789),r(31490),r(67998),r(60757),r(43053),r(56613),r(65813);var o=f(r(95306)),i=r(23436),a=f(r(45969)),l=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var r=c(n);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(38163)),s=f(r(32780)),u=f(r(2890));function c(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:n})(e)}function f(e){return e&&e.__esModule?e:{default:e}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?h(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=v(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}function v(e){var n=function(e,n){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==p(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===p(n)?n:String(n)}function b(e,n){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function g(){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=w(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
vendor: 9,671 bytes, line 1
1function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}(h,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w(h);if(n){var o=w(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===p(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(e,n,r){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h);var o,i,a,l,s=(null===(o=(l=f.call(this,e,n,r)).component.widget)||void 0===o?void 0:o.timezone)||l.options.timezone,u=(null===(i=l.component.widget)||void 0===i?void 0:i.displayInTimezone)||"viewer";return(null===(a=l.component.widget)||void 0===a?void 0:a.type)==="calendar"&&(l.component.widget=y(y({},l.component.widget),{},{readOnly:l.options.readOnly,timezone:s,displayInTimezone:u,locale:l.component.widget.locale||l.options.language,saveAs:"text"})),l}return r=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"inputInfo",get:function(){var e=g(w(h.prototype),"inputInfo",this);return e.type="input",this.component.hasOwnProperty("spellcheck")&&(e.attr.spellcheck=this.component.spellcheck),this.component.mask?e.attr.type="password":e.attr.type="password"===this.component.inputType?"password":"text",e.changeEvent="blur"===this.component.applyMaskOn?"blur":"input",e}},{key:"emptyValue",get:function(){return""}},{key:"attach",value:function(e){return this.loadRefs(e,{valueMaskInput:"single"}),g(w(h.prototype),"attach",this).call(this,e)}},{key:"maskValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"object"===p(e)||(e={value:e,maskName:this.component.inputMasks[0].label}),!e.value){var r=n.noDefault?this.emptyValue:this.defaultValue;e.value=Array.isArray(r)?r[0]:r}return e}},{key:"normalizeValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isMultipleMasksField?Array.isArray(e)?g(w(h.prototype),"normalizeValue",this).call(this,e.map(function(e){return n.maskValue(e,r)})):g(w(h.prototype),"normalizeValue",this).call(this,this.maskValue(e,r)):g(w(h.prototype),"normalizeValue",this).call(this,e)}},{key:"setValueAt",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.isMultipleMasksField)return g(w(h.prototype),"setValueAt",this).call(this,e,n,r);var o=(n=this.maskValue(n,r)).value||"",a=this.refs.mask?this.refs.mask[e]:null,s=this.refs.select?this.refs.select[e]:null,u=this.getMaskPattern(n.maskName);if(!a||!s||!u)return g(w(h.prototype),"setValueAt",this).call(this,e,o,r);if(a.inputmask)this.setInputMask(a,u),a.inputmask.setValue(o);else{var c=this.placeholderChar;a.value=(0,i.conformToMask)(o,l.getInputMask(u),{placeholderChar:c}).conformedValue}s.value=n.maskName}},{key:"unmaskValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.component.displayMask,r=l.getInputMask(n,this.placeholderChar);return l.unmaskValue(e,r,this.placeholderChar)}},{key:"getValueAt",value:function(e){if(!this.isMultipleMasksField){var n,r,o=g(w(h.prototype),"getValueAt",this).call(this,e),i=this.component.inputMask,l=this.component.displayMask;return i&&!l||l===i?o:l&&!i?this.unmaskValue(o,l):l&&l!==i?a.default.format(a.default.unmask(o,l),i):null!==(n=this.refs.valueMaskInput)&&void 0!==n&&n.mask&&this.refs.valueMaskInput.mask.textMaskInputElement?(this.refs.valueMaskInput.mask.textMaskInputElement.update(o),null===(r=this.refs.valueMaskInput)||void 0===r?void 0:r.value):o}var s=this.refs.mask?this.refs.mask[e]:null,u=this.refs.select?this.refs.select[e]:null;return{value:s?s.value:void 0,maskName:u?u.value:void 0}}},{key:"checkInputMaskValue",value:function(e){var n=!0,r=u.default.values(e.split("").reduce(function(e,r,o,i){if("{"===r||"}"===r){var a;("{"===i[o+1]||"}"===i[o+1])&&(n=!1),e[r]=(null!==(a=e[r])&&void 0!==a?a:0)+1}return e},{}));return r[0]!==r[1]&&(n=!1),n}},{key:"setInputMask",value:function(e,n,r){if("textfield"!==this.type){g(w(h.prototype),"setInputMask",this).call(this,e,n,r);return}n=n||this.component.displayMask||this.component.inputMask;var o=l.getInputMask(n,this.placeholderChar);if(this.defaultMask=o,e&&n){try{e.mask&&e.mask.remove(),this.checkInputMaskValue(n)&&(e.mask=new a.default(n,{clearMaskOnLostFocus:!!this.component.placeholder,showMaskOnHover:!this.component.placeholder,placeholder:this.placeholderChar||""}).mask(e))}catch(e){console.warn(e)}o.numeric&&e.setAttribute("pattern","\\d*"),this.component.placeholder&&e.setAttribute("placeholder",this.component.placeholder)}}},{key:"isHtmlRenderMode",value:function(){return g(w(h.prototype),"isHtmlRenderMode",this).call(this)||(this.options.readOnly||this.disabled)&&"html"===this.component.inputFormat&&"textfield"===this.type}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return this.isMultipleMasksField?g(w(h.prototype),"isEmpty",this).call(this,e)||(this.component.multiple?0===e.length:!e.maskName||!e.value):g(w(h.prototype),"isEmpty",this).call(this,(e||"").toString().trim())}},{key:"truncateMultipleSpaces",value:function(e){return e?e.trim().replace(/\s{2,}/g," "):e}},{key:"validationValue",get:function(){var e=g(w(h.prototype),"validationValue",this);return e&&this.component.truncateMultipleSpaces?this.truncateMultipleSpaces(e):e}},{key:"beforeSubmit",value:function(){var e=this,n=this.dataValue;return this.component.truncateMultipleSpaces&&n?(n=this.truncateMultipleSpaces(n),this.dataValue=n,s.default.resolve(n).then(function(){return g(w(h.prototype),"beforeSubmit",e).call(e)})):s.default.resolve(n)}},{key:"getValueAsString",value:function(e,n){return null!=n&&n.email&&this.visible&&!this.skipInEmail&&u.default.isObject(e)?'\n        <table border="1" style="width:100%">\n          <tbody>\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(e.maskName,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(e.value,"</td>\n          </tr>\n          </tbody>\n        </table>\n      "):(e&&"plain"===this.component.inputFormat&&/<[^<>]+>/g.test(e)&&(e=e.replaceAll("<","&lt;").replaceAll(">","&gt;")),g(w(h.prototype),"getValueAsString",this).call(this,e,n))}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.schema.apply(o.default,[{label:"Text Field",key:"textField",type:"textfield",mask:!1,inputType:"text",inputFormat:"plain",inputMask:"",displayMask:"",tableView:!0,spellcheck:!0,truncateMultipleSpaces:!1,validate:{minLength:"",maxLength:"",pattern:""}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Text Field",icon:"terminal",group:"basic",documentation:"/userguide/form-building/form-components#text-field",weight:0,schema:h.schema()}}},{key:"serverConditionSettings",get:function(){return h.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){var e;return y(y({},g(w(h),"conditionOperatorsSettings",this)),{},{operators:[].concat(function(e){if(Array.isArray(e))return d(e)}(e=g(w(h),"conditionOperatorsSettings",this).operators)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return d(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),["includes","notIncludes","endsWith","startsWith"]),valueComponent:function(e){return y(y({},e),{},{type:"textfield"})}})}},{key:"savedValueTypes",value:function(e){return l.getComponentSavedTypes(e)||[l.componentValueTypes.string]}}],r&&m(h.prototype,r),c&&m(h,c),Object.defineProperty(h,"prototype",{writable:!1}),h}(o.default);n.default=k},13619:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",label:"Input Format",key:"inputFormat",weight:105,placeholder:"Input Format",tooltip:"Force the output of this field to be sanitized in a specific format.",template:"<span>{{ item.label }}</span>",data:{values:[{value:"plain",label:"Plain"},{value:"html",label:"HTML"},{value:"raw",label:"Raw (Insecure)"}]},defaultValue:"plain",input:!0},{weight:200,type:"radio",label:"Text Case",key:"case",tooltip:"When data is entered, you can change the case of the value.",input:!0,values:[{value:"mixed",label:"Mixed (Allow upper and lower case)"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}]},{weight:205,type:"checkbox",input:!0,key:"truncateMultipleSpace
1s",label:"Truncate Multiple Spaces"}]},82343:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(34596)),i=a(r(2890));function a(e){return e&&e.__esModule?e:{default:e}}var l=[{weight:400,type:"select",input:!0,key:"widget.type",label:"Widget",placeholder:"Select a widget",tooltip:"The widget is the display UI used to input the value of the field.",defaultValue:"input",onChange:function(e){e.data.widget=i.default.pick(e.data.widget,"type")},dataSrc:"values",data:{values:[{label:"Input Field",value:"input"},{label:"Calendar Picker",value:"calendar"}]},conditional:{json:{"===":[{var:"data.type"},"textfield"]}}},{weight:405,type:"textarea",key:"widget",label:"Widget Settings",refreshOn:"wiget.type",clearOnHide:!1,calculateValue:function(e){var n=e.instance.calculatedValue,r=e.data.widget.type;if(i.default.isEmpty(i.default.omit(e.data.widget,"type"))||i.default.isEmpty(i.default.omit(n,"type"))){if(n&&!n.type)return e.data.widget;var a=e.instance._currentForm.options.editComponent.widget;if(a&&!i.default.isEmpty(i.default.omit(a,"type"))&&r===a.type)return i.default.omit(a,"language");if(r)return i.default.omit(o.default[r].defaultSettings,"language")}return e.data.widget},input:!0,rows:5,editor:"ace",as:"json",conditional:{json:{"!==":[{var:"data.widget.type"},"input"]}}},{weight:410,type:"textfield",input:!0,key:"inputMask",label:"Input Mask",tooltip:"An input mask helps the user with input by ensuring a predefined format.<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:410,type:"textfield",input:!0,key:"displayMask",label:"Display Mask",tooltip:"A display mask helps to display the input in a readable way, this won't affect the  value which will be saved (to affect both view and saved value, delete Display Mask and use Input Mask).<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:410,type:"select",input:!0,key:"applyMaskOn",label:"Apply Mask On",tooltip:"Select the type of applying mask.",defaultValue:"change",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]},customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:411,type:"textfield",input:!0,key:"inputMaskPlaceholderChar",label:"Input Mask Placeholder Char",tooltip:"You can specify a char which will be used as a placeholder in the field. <br>E.g., ˍ<br>Make note that placeholder char will be replaced by a space if it is used inside the mask",validation:{maxLength:1},customConditional:function(e){return e.data.inputMask||e.data.displayMask}},{weight:413,type:"checkbox",input:!0,key:"allowMultipleMasks",label:"Allow Multiple Masks"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{weight:417,type:"datagrid",input:!0,key:"inputMasks",label:"Input Masks",customConditional:function(e){return!0===e.data.allowMultipleMasks},reorder:!0,components:[{type:"textfield",key:"label",label:"Label",input:!0},{type:"textfield",key:"mask",label:"Mask",input:!0}]},{weight:320,type:"textfield",input:!0,key:"prefix",label:"Prefix"},{weight:330,type:"textfield",input:!0,key:"suffix",label:"Suffix"},{weight:700,type:"textfield",input:!0,key:"autocomplete",label:"Autocomplete",placeholder:"on",tooltip:"Indicates whether input elements can by default have their values automatically completed by the browser. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete'>MDN documentation</a> on autocomplete for more information."},{weight:1300,type:"checkbox",label:"Hide Input",tooltip:"Hide the input in the browser. This does not encrypt on the server. Do not use for passwords.",ke
1y:"mask",input:!0},{weight:1200,type:"checkbox",label:"Show Word Counter",tooltip:"Show a live count of the number of words.",key:"showWordCount",input:!0},{weight:1201,type:"checkbox",label:"Show Character Counter",tooltip:"Show a live count of the number of characters.",key:"showCharCount",input:!0}];n.default=l},34875:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0},{weight:130,key:"validate.pattern",label:"Regular Expression Pattern",placeholder:"Regular Expression Pattern",type:"textfield",tooltip:"The regular expression pattern test that the field value must pass before the form can be submitted.",input:!0}]},40597:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"data",components:i.default},{key:"display",components:a.default}]].concat(n))},r(67998);var o=l(r(5956)),i=l(r(41054)),a=l(r(28901));function l(e){return e&&e.__esModule?e:{default:e}}},83378:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),r(26343),r(3616),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(20680),r(33546),r(88852),r(67998),r(7122),r(55096),r(789),r(31490),r(43053),r(56613),r(65813);var i=s(r(62067)),a=s(r(9128)),l=r(38163);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function f(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y="HH:mm:ss",m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(m,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(m);if(n){var i=h(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(e,n,r){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m),o=c.call(this,e,n,r);var o,i=(0,l.getBrowserInfo)(),a=i.edge,s=i.version;return o.component.inputMask=o.getInputMaskFromFormat(o.component.format),o.component.inputType=a&&s<=18?"text":o.component.inputType||"time",o.rawData=o.component.multiple?[]:o.emptyValue,o}return r=[{key:"init",value:function(){d(h(m.prototype),"init",this).call(this),"text"===this.component.inputType&&this.validators.push("time")}},{key:"dataFormat",get:function(){return this.component.dataFormat||y}},{key:"defaultSchema",get:function(){return m.schema()}},{key:"defaultValue",get:function(){var e=this,n=d(h(m.prototype),"defaultValue",this);return this.component.multiple&&Array.isArray(n)?n=n.map(function(n){return n?e.getStringAsValue(n):n}):n&&(n=this.getStringAsValue(n)),n}},{key:"validationValue",get:function(){return(!Array.isArray(this.rawData)||this.rawData.length)&&this.rawData?this.rawData:this.dataValue}},{key:"inputInfo",get:function(){var e=d(h(m.prototype),"inputInfo",this);return e.attr.type=this.component.inputType,e}},{key:"skipMaskValidation",get:function(){return!0}},{key:"isNotCompleteInput",value:function(e){return e.includes("_")}},{key:"removeValue",value:function(e){this.rawData=Array.isArray(this.rawData)?[].concat(u(this.rawData.slice(0,e)),u(this.rawData.slice(e+1))):this.emptyValue,d(h(m.prototype),"removeValue",this).call(this,e)}},{key:"resetRawData",value:function(e){e?this.setRawValue(this.emptyValue,e):this.rawData=[]}},{key:"setRawValue",value:function(e,n){Array.isArray(this.rawData)?this.rawData[n]=e:this.rawData=e}},{key:"getRawValue",value:function(e){return e&&Array.isArray(this.rawData)?this.rawData[e]||this.emptyValue:this.rawData}},{key:"getValueAt",value:function(e){if(!this.refs.input.length||!this.refs.input[e])return this.emptyValue;var n=this.refs.input[e].value;return n?(this.setRawValue(n,e),this.getStringAsValue(n)):(this.resetRawData(e),this.emptyValue)}},{key:"setValueAt",value:function(e,n){this.setRawValue(n?this.getValueAsString(n):n,e),this.refs.input[e].value=this.getRawValue(e)}},{key:"getStringAsValue",value:function(e){return e?(0,i.default)(e,this.component.format).format(this.component.dataFormat):e}},{key:"getValueAsString",value:function(e){var n=this;return Array.isArray(e)&&this.component.multiple?e.map(function(e){return(0,i.default)(e,n.component.dataFormat).format(n.component.format)}).join(", "):(e?(0,i.default)(e,this.component.dataFormat).format(this.component.format):e)||""}},{key:"getInputMaskFromFormat",value:function(e){return"LT"===e?"99:99 AA":"LTS"===e?"99:99:99 AA":e.replace(/[hHmMsSk]/g,"9").replace(/[aA]/,"AA")}},{key:"addFocusBlurEvents",value:function(e){var n=this;d(h(m.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",function(){e.value=n.getValueAsString(e.value)})}}],s=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"time",label:"Time",ke
1y:"time",inputType:"time",format:"HH:mm",dataFormat:y}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Time",icon:"clock-o",group:"advanced",documentation:"/userguide/form-building/advanced-components#time-1",weight:55,schema:m.schema()}}}],r&&f(m.prototype,r),s&&f(m,s),Object.defineProperty(m,"prototype",{writable:!1}),m}(a.default);n.default=m},41054:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"textfield",input:!0,key:"dataFormat",label:"Data Format",placeholder:"HH:mm:ss",tooltip:"The moment.js format for saving the value of this field.",weight:25}]},28901:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",input:!0,weight:40,tooltip:"Select the type of widget you'd like to use.",key:"inputType",defaultValue:"time",label:"Input Type",dataSrc:"values",data:{values:[{label:"HTML5 Time Input",value:"time"},{label:"Text Input with Mask",value:"text"}]}},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",tooltip:"The moment.js format for showing the value of this field.",weight:50,defaultValue:"HH:mm",conditional:{json:{"===":[{var:"data.inputType"},"text"]}}},{key:"placeholder",ignore:!0}]},77981:function(e,n,r){"use strict";r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(20680),r(48510),r(37753),r(92471),r(70601),r(67998),r(49907),r(30890),r(44991),r(62107),r(21430),r(6778),r(68428),r(21587);var o,i=(o=r(2890))&&o.__esModule?o:{default:o};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==a(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===a(n)?n:String(n)}(o.key),o)}}var s=function(){var e,n;function r(e){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.data,l=void 0===a?{}:a,s=o.children,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=u.checkNode,f=u.createComponents,d=u.isNew,p=u.removeComponents,h=u.parentPath;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r),this.parent=e,this.previousData={},this.persistentData=i.default.cloneDeep(l),this.new=void 0===d||d,this.createComponents=f,this.checkNode=c,this.removeComponents=p,this.revertAvailable=!1,this.editing=!1,this.collapsed=!1,this.components=[],this.children=[],this.parentPath=void 0===h?"":h,this.resetData(),this.children=(void 0===s?[]:s).map(function(e,o){return new r(n,e,{checkNode:c,createComponents:f,isNew:!1,removeComponents:p,parentPath:n.getChildrenPath(o)})})}return e=[{key:"value",get:function(){return this.new?null:{data:i.default.cloneDeep(this.persistentData),children:this.children.filter(function(e){return!e.new}).map(function(e){return e.value})}}},{key:"isRoot",get:function(){return null===this.parent}},{key:"changing",get:function(){return this.new||this.editing}},{key:"hasChangingChildren",get:function(){return this.changin||this.children.some(function(e){return e.hasChangingChildren})}},{key:"hasData",get:function(){return!i.default.isEmpty(this.persistentData)}},{key:"hasChildren",get:function(){return Array.isArray(this.children)&&this.children.length>0}},{key:"getChildrenPath",value:function(e){return this.parentPath?"".concat(this.parentPath,".children[").concat(e,"]"):""}},{key:"eachChild",value:function(e){return e(this),this.children.forEach(function(n){return n.eachChild(e)}),this}},{key:"getComponents",value:function(){return this.children.reduce(function(e,n){return e.concat(n.getComponents())},this.components)}},{key:"validateNode",value:function(){var e=this,n=!0;
vendor: 5,134 bytes, line 1
1return this.getComponents().forEach(function(r){r.setPristine(!1),n&=r.checkValidity(null,!1,e.persistentData)}),n}},{key:"addChild",value:function(){if(this.new)return null;var e=new r(this,{},{checkNode:this.checkNode,createComponents:this.createComponents,isNew:!0,removeComponents:this.removeComponents,parentPath:this.getChildrenPath(this.children.length)});return this.children=this.children.concat(e),e}},{key:"removeChild",value:function(e){return this.new||(this.children=this.children.filter(function(n){return n!==e})),this}},{key:"edit",value:function(){return this.new?this:(this.editing=!0,this.resetData())}},{key:"save",value:function(){var e=this.validateNode();return this.changing&&e&&(this.new?this.new=!1:(this.editing=!1,this.revertAvailable=!0),this.commitData()),e}},{key:"cancel",value:function(){return this.new?this.remove():this.editing&&(this.editing=!1,this.resetData()),this}},{key:"remove",value:function(){return this.parent.removeChild(this),this.parent=null,this.clearComponents(),this}},{key:"revert",value:function(){return this.revertAvailable?(this.data=this.previousData,this.commitData()):this}},{key:"commitData",value:function(){return this.previousData=this.persistentData,this.persistentData=i.default.cloneDeep(this.data),this.clearComponents(),this}},{key:"resetData",value:function(){return this.data=i.default.cloneDeep(this.persistentData),this.updateComponentsContext(),this}},{key:"updateComponentsContext",value:function(){return this.changing?this.instantiateComponents():this.clearComponents(),this}},{key:"instantiateComponents",value:function(){var e=this;this.components=this.createComponents(this.data,this),this.components.forEach(function(n){if(e.parentPath){var r=e.calculateComponentPath(n);n.path=r}}),this.checkNode(this)}},{key:"clearComponents",value:function(){this.removeComponents(this.components),this.components=[]}},{key:"calculateComponentPath",value:function(e){var n="";return e.component.key&&(n="".concat(this.parentPath,".data.").concat(e.component.key)),n}}],l(r.prototype,e),n&&l(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.default=s},44982:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:a.default},{key:"data",components:i.default}]].concat(n))},r(67998);var o=l(r(8826)),i=l(r(46947)),a=l(r(17504));function l(e){return e&&e.__esModule?e:{default:e}}},7741:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(28656),r(48510),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(49907),r(37753),r(30890),r(20680),r(44991),r(56613),r(89352),r(43053),r(65813);var i=f(r(2890)),a=f(r(35849)),l=f(r(5956)),s=f(r(51824)),u=f(r(77981)),c=f(r(32780));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function p(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?d(Object(r),!0).forEach(function(n){m(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}function y(e,n,r,o){return(y="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=g(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else m(o,n,r);return!0})(e,n,r,o)}function m(e,n,r){return(n=v(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function v(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=g(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function g(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=k(e)););return e}
1function w(e,n){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&w(e,n)}(d,e);var n,r,a,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=k(d);if(n){var i=k(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=f.call.apply(f,[this].concat(r))).type="tree",e}return r=[{key:"emptyValue",get:function(){return{}}},{key:"viewComponents",get:function(){return this.viewComponentsInstantiated||(this.viewComponentsInstantiated=!0,this._viewComponents=this.createComponents({})),this._viewComponents}},{key:"init",value:function(){if(this.builderMode)return b(k(d.prototype),"init",this).call(this);this.components=[],this.componentOptions=p(p({},this.options),{},{parent:this,root:this.root||this}),this.disabled=this.shouldDisabled,this.setRoot(),this.viewComponentsInstantiated=!1,this._viewComponents=[]}},{key:"disabled",get:function(){return b(k(d.prototype),"disabled",this)},set:function(e){(function(e,n,r,o,i){if(!y(e,n,r,o||e)&&i)throw Error("failed to set property")})(k(d.prototype),"disabled",e,this,!0),this.viewComponents.forEach(function(n){return n.parentDisabled=e})}},{key:"isDefaultValueComponent",get:function(){return!!this.options.editComponent&&!!this.options.editForm&&"defaultValue"===this.component.key}},{key:"destroy",value:function(){b(k(d.prototype),"destroy",this).call(this),this.builderMode||this.removeComponents(this._viewComponents)}},{key:"createComponents",value:function(e,n){var r=this,o=this.componentComponents.map(function(n){var o=l.default.create(n,r.componentOptions,e);return o.init(),o.parentDisabled=r.disabled,o});return n&&this.checkNode(this.data,n),o}},{key:"removeComponents",value:function(e){return e.map(function(e){return e.destroy()})}},{key:"render",value:function(){return this.builderMode?b(k(d.prototype),"render",this).call(this):b(k(d.prototype),"render",this).call(this,this.renderTree(this.treeRoot))}},{key:"renderTree",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=e.hasChildren&&!e.collapsed?this.renderChildNodes(e.children,!n):[],o=e.changing?this.renderEdit(e):this.renderView(e);return this.renderTemplate("tree",{odd:n,childNodes:r,content:o,node:e})}},{key:"renderChildNodes",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return n.map(function(n){return e.renderTree(n,r)})}},{key:"renderEdit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.renderTemplate("treeEdit",{children:this.renderComponents(e.components),node:e})}},{key:"renderView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.renderTemplate("treeView",{values:this.viewComponents.map(function(n){return n.data=e.data,n.checkComponentConditions(e.data),n.getView(n.dataValue)}),nodeData:e.data,node:e})}},{key:"attach",value:function(e){return this.builderMode?b(k(d.prototype),"attach",this).call(this,e):(this.loadRefs(e,{root:"single"}),c.default.all([b(k(d.prototype),"attach",this).call(this,e),this.attachNode(this.refs.root,this.treeRoot)]))}},{key:"attachNode",value:function(e,n){if(!e)return c.default.resolve();var r=c.default.resolve(),o=c.default.resolve();return n.refs=i.default.reduce(e.children,function(e,n){return n.hasAttribute("ref")?p(p({},e),{},m({},n.getAttribute("ref"),n)):e},{}),n.refs.content&&(this.attachActions(n),r=this.attachComponents(n)),n.refs.childNodes&&(o=this.attachChildren(n)),c.default.all([r,o])}},{key:"attachActions",value:function(e){var n,r=this;e.editing||this.loadRefs.call(e,e.refs.content,{addChild:"single",editNode:"single",removeNode:"single",revertNode:"single",toggleNode:"single"}),this.loadRefs.call(e,(null===(n=e.refs.content.children[0])||void 0===n?void 0:n.children[1])||e.refs.content,{cancelNode:"single",saveNode:"single"}),e.refs.addChild&&this.addEventListener(e.refs.addChild,"click",function(){r.addChild(e)}),e.refs.cancelNode&&this.addEventListener(e.refs.cancelNode,"click",function(){r.cancelNode(e)}),e.refs.editNode&&this.addEventListener(e.refs.editNode,"click",function(){r.editNode(e)}),e.refs.removeNode&&this.addEventListener(e.refs.removeNode,"click",function(){r.removeNode(e)}),e.refs.revertNode&&this.addEventListener(e.refs.revertNode,"click",function(){r.revertNode(e)}),e.refs.saveNode&&this.addEventListener(e.refs.saveNode,"click",function(){r.saveNode(e)}),e.refs.toggleNode&&this.addEventListener(e.refs.toggleNode,"click",function(){r.toggleNode(e)})}},{key:"attachComponents",value:function(e){if(this.builderMode){for(var n,r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return(n=b(k(d.prototype),"attachComponents",this)).call.apply(n,[this,e].concat(o))}return this.loadRefs.call(e,e.refs.content,{nodeEdit:"single"}),e.refs.nodeEdit?b(k(d.prototype),"attachComponents",this).call(this,e.refs.nodeEdit,e.components):c.default.resolve()}},{key:"attachChildren",value:function(e){var n=this,r=e.refs.childNodes.children;return c.default.all(i.default.map(r,function(r,o){return n.attachNode(r,e.children[o])}))}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
1,r=this.updateValue(e,n);return this.setRoot(),r}},{key:"addChild",value:function(e){var n=this;this.options.readOnly||e.new||this.hook("tree.addChild",{parent:e,component:this},function(){var r=e.addChild();return n.redraw(),r})}},{key:"cancelNode",value:function(e){var n=this;this.options.readOnly||this.hook("tree.cancelNode",{node:e,component:this},function(){return e.isRoot?e.persistentData&&!i.default.isEmpty(e.persistentData)?(e.cancel(),n.redraw()):n.removeRoot():(e.cancel(),n.redraw()),e})}},{key:"editNode",value:function(e){var n=this;this.options.readOnly||e.new||this.hook("tree.editNode",{node:e,component:this},function(){return e.edit(),n.redraw(),e})}},{key:"removeNode",value:function(e){var n=this;this.options.readOnly||e.new||this.hook("tree.removeNode",{node:e,component:this},function(){return e.isRoot?n.removeRoot():(e.remove(),n.updateTree()),e})}},{key:"revertNode",value:function(e){var n=this;!this.options.readOnly&&e.revertAvailable&&this.hook("tree.revertNode",{node:e,component:this},function(){return e.revert(),n.updateTree(),e})}},{key:"saveNode",value:function(e){var n=this;this.options.readOnly||this.hook("tree.saveNode",{node:e,component:this},function(){return e.save()&&n.updateTree(),e})}},{key:"toggleNode",value:function(e){var n=this;this.hook("tree.toggleNode",{node:e,component:this},function(){return e.collapsed=!e.collapsed,n.redraw(),e})}},{key:"removeRoot",value:function(){this.options.readOnly||(this.dataValue=this.defaultValue,this.setRoot(),this.redraw())}},{key:"setRoot",value:function(){var e=this.getValue();this.treeRoot=new u.default(null,e,{isNew:!!this.builderMode||!e.data,createComponents:this.createComponents.bind(this),checkNode:this.checkNode.bind(this,this.data),removeComponents:this.removeComponents,parentPath:this.isDefaultValueComponent?this.path||this.component.key:null}),this.hook("tree.setRoot",{root:this.treeRoot,component:this}),this.redraw()}},{key:"getValue",value:function(){return this.dataValue||{}}},{key:"updateTree",value:function(){this.updateValue(this.treeRoot.value),this.redraw()}},{key:"checkData",value:function(e,n,r){return this.checkNode(e,this.treeRoot,n,r)}},{key:"checkNode",value:function(e,n,r,o){var i=this;return n.children.reduce(function(n,a){return i.checkNode(e,a,r,o)&&n},b(k(d.prototype),"checkData",this).call(this,e,r,n.data,n.components)&&!n.editing&&!n.new)}},{key:"getComponents",value:function(){return this.treeRoot&&(this.isDefaultValueComponent||!this.isDefaultValueComponent&&!this.builderMode)?this.treeRoot.getComponents():b(k(d.prototype),"getComponents",this).call(this)}},{key:"getValueAsString",value:function(e,n){return null!=n&&n.email?""+function e(n){var r,o,i='\n        <table border="1" style="width:100%">\n          <tbody>\n      ';return i+="\n            <tr>\n      "+Object.keys(n.data).map(function(e){return'\n              <th style="padding: 5px 10px;">'.concat(e,'</th>\n              <td style="width:100%;padding:5px 10px;">\n                ').concat(n.data[e],"\n                <br>\n      ")}),(null===(r=n.children)||void 0===r?void 0:r.length)!==0&&(null===(o=n.children)||void 0===o||o.forEach(function(n){i+=e(n)})),i+="\n              </td>\n            </tr>\n      \n          </tbody>\n        </table>\n      "}(e):b(k(d.prototype),"getValueAsString",this).call(this,e,n)}}],a=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return s.default.schema.apply(s.default,[{label:"Tree",key:"tree",type:"tree",clearOnHide:!0,input:!0,tree:!0,components:[],multiple:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Tree",icon:"indent",weight:40,documentation:"/userguide/form-building/data-components#tree",showPreview:!1,schema:d.schema()}}}],r&&h(d.prototype,r),a&&h(d,a),Object.defineProperty(d,"prototype",{writable:!1}),d}(s.default);n.default=O,O.prototype.hasChanged=a.default.prototype.hasChanged},46947:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0}]},17504:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"treeInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed in a future version of Formio.js."}]},61710:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{components:[{type:"tabs",key:"tabs",components:[{label:"Custom",key:"display",weight:0,components:i.default}]}]}};var o,i=(o=r(22464))&&o.__esModule?o:{default:o}},67764:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var s,u=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(c,e);var n,r,s,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return c.schema()}}],s=[{key:"schema",value:function(){return{type:"custom",key:"custom",protected:!1,persistent:!0}}},{key:"builderInfo",get:function(){return{title:"Custom",icon:"cubes",group:"premium",documentation:"/userguide/form-building/premium-components#custom",weight:120,schema:c.schema()}}}],r&&i(c.prototype,r),s&&i(c,s),Object.defineProperty(c,"prototype",{writable:!1}),c}(((s=r(35849))&&s.__esModule?s:{default:s}).default);n.default=u},22464:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"customComponentDescription",label:"Custom component description",input:!1,tag:"p",content:'Custom components can be used to render special fields or widgets inside your app. For information on how to display in an app, see <a href="http://help.form.io/userguide/#custom" target="_blank" rel="noopener noreferrer">custom component documentation</a>.',type:"htmlelement",weight:5},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Custom Element JSON",tooltip:"Enter the JSON for this custom element."}]},27195:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"data",components:a.default},{key:"validation",components:l.default}]].concat(n))},r(67998);var o=s(r(22080)),i=s(r(32122)),a=s(r(6069)),l=s(r(37347));function s(e){return e&&e.__esModule?e:{default:e}}},53551:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(43053),r(56613),r(65813);var i,a=(i=r(9128))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(d,e);var n,r,i,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(d);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),(o=f.call(this,e,n,r)).validators.push("url"),o}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"elementInfo",value:function(){var e=s(c(d.prototype),"elementInfo",this).call(this);return e.attr.type=this.component.mask?"password":"url",e}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"url",label:"Url",key:"url",inputType:"url"}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Url",group:"advanced",icon:"link",documentation:"/userguide/form-building/advanced-components#url",weight:20,schema:d.schema()}}}],r&&l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=f},6069:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"case",ignore:!0}]},32122:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},37347:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},60528:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default}]].concat(n))},r(67998);var o=a(r(53409)),i=a(r(46303));function a(e){return e&&e.__esModule?e:{default:e}}},45885:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(43053),r(56613),r(65813);var i,a=(i=r(77975))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);if(n){var i=u(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=c.call.apply(c,[this].concat(r))).noField=!0,e}return r=[{key:"defaultSchema",get:function(){return f.schema()}},{key:"className",get:function(){return"".concat(this.component.customClass)}},{key:"templateName",get:function(){return"well"}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"well",key:"well",input:!1,persistent:!1,components:[]}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Well",icon:"square-o",group:"layout",documentation:"/userguide/form-building/layout-components#well",showPreview:!1,weight:60,schema:f.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],r&&l(f.prototype,r),i&&l(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(a.default);n.default=c},46303:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0}]},87566:function(e,n,r){"use strict";
vendor: 6,592 bytes, line 1
1r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o,i,a=c(r(2890)),l=c(r(88606)),s=c(r(15921)),u=c(r(35295));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==f(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===f(n)?n:String(n)}var p=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addDisplay",value:function(e,r){n.displays[e]=r}},{key:"addDisplays",value:function(e){n.displays=a.default.merge(n.displays,e)}},{key:"getDisplay",value:function(e){return n.displays[e]}},{key:"getDisplays",value:function(){return n.displays}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=p,o="displays",i={pdf:l.default,webform:s.default,wizard:u.default},(o=d(o))in p?Object.defineProperty(p,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):p[o]=i},89530:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=((o=r(87566))&&o.__esModule?o:{default:o}).default;n.default=i},19822:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Builders",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"Components",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"Conjunctions",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"Displays",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"Form",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(n,"Formio",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"Licenses",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(n,"Operators",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"Providers",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"QuickRules",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(n,"Rules",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"Templates",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"Transformers",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(n,"Utils",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(n,"ValueSources",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(n,"Widgets",{enumerable:!0,get:function(){return b.default}}),r(89352),r(49907),r(37753),r(30890),r(70601),r(6778),r(68428),r(11414),r(41135),r(28839),r(88910);var o=P(r(2890)),i=P(r(79408)),a=P(r(429)),l=P(r(35864)),s=P(r(5956)),u=P(r(87566)),c=P(r(41880)),f=P(r(3966)),d=P(r(73065)),p=P(r(45713)),h=P(r(64751)),y=P(r(3471)),m=P(r(30278)),v=P(r(77234)),b=P(r(34596)),g=P(r(52539)),w=P(r(31457)),k=P(r(62277)),O=P(r(17693));function P(e){return e&&e.__esModule?e:{default:e}}function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.default.loadModules=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(i.default.getApiUrl(),"/externalModules.js"),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"externalModules";i.default.requireLibrary(n,n,e,!0).then(function(e){i.default.use(e)})},i.default.Components=s.default,i.default.Templates=c.default,i.default.Builders=l.default,i.default.Utils=w.default,i.default.Form=g.default,i.default.Displays=u.default,i.default.Providers=f.default,i.default.Rules=d.default,i.default.Widgets=b.default,i.default.Evaluator=k.default,i.default.Conjunctions=p.default,i.default.Operators=h.default,i.default.QuickRules=y.default,i.default.Transformers=m.default,i.default.ValueSources=v.default,i.default.AllComponents=a.default,i.default.Licenses=O.default,i.default.Formio=i.default,i.default.Components.setComponents(a.default);var _=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===j(e))for(var r=0,a=Object.keys(e);r<a.length;r++){var l=a[r],s=e.framework||i.default.Templates.framework||"bootstrap";switch(l){case"options":i.default.options=o.default.merge(i.default.options,e.options);break;case"templates":for(var u=0,c=Object.keys(e.templates);u<c.length;u++){var f=c[u];i.default.Templates.extendTemplate(f,e.templates[f])}e.templates[s]&&(i.default.Templates.current=e.templates[s]);break;case"components":i.default.Components.setComponents(e.components);break;case"framework":i.default.Templates.framework=e.framework;break;case"fetch":for(var d=0,p=Object.keys(e.fetch);d<p.length;d++){var h=p[d];i.default.registerPlugin(e.fetch[h],h)}break;case"providers":for(var y=0,m=Object.keys(e.providers);y<m.length;y++){var v=m[y];i.default.Providers.addProviders(v,e.providers[v])}break;case"displays":i.default.Displays.addDisplays(e.displays);break;case"builders":i.default.Builders.addBuilders(e.builders);break;case"rules":i.default.Rules.addRules(e.rules);break;case"evaluator":i.default.Evaluator.registerEvaluator(e.evaluator);break;case"conjunctions":i.default.Conjunctions.addConjunctions(e.conjunctions);break;case"operators":i.default.Operators.addOperators(e.operators);break;case"quickRules":i.default.QuickRules.addQuickRules(e.quickRules);break;case"transformers":i.default.Transformers.addTransformers(e.transformers);break;case"valueSources":i.default.ValueSources.addValueSources(e.valueSources);break;case"library":n.license?i.default.Licenses.addLicense(e.library,n.license):i.default.Licenses.removeLicense(e.library);break;default:console.log("Unknown plugin option",l)}}};i.default.use=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
1(e=o.default.isArray(e)?e:[e]).forEach(function(e){Array.isArray(e)?e.forEach(function(e){return _(e,n)}):_(e,n)})}},82135:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(67394))&&o.__esModule?o:{default:o},a={lng:"en",nsSeparator:"::",keySeparator:".|.",pluralSeparator:"._.",contextSeparator:"._.",resources:{en:{translation:(0,r(38163).fastCloneDeep)(i.default)}}};n.default=a},78262:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Builders",{enumerable:!0,get:function(){return i.Builders}}),Object.defineProperty(n,"Components",{enumerable:!0,get:function(){return i.Components}}),Object.defineProperty(n,"Conjunctions",{enumerable:!0,get:function(){return i.Conjunctions}}),Object.defineProperty(n,"Displays",{enumerable:!0,get:function(){return i.Displays}}),Object.defineProperty(n,"Form",{enumerable:!0,get:function(){return i.Form}}),Object.defineProperty(n,"FormBuilder",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"Formio",{enumerable:!0,get:function(){return i.Formio}}),Object.defineProperty(n,"Operators",{enumerable:!0,get:function(){return i.Operators}}),Object.defineProperty(n,"Providers",{enumerable:!0,get:function(){return i.Providers}}),Object.defineProperty(n,"QuickRules",{enumerable:!0,get:function(){return i.QuickRules}}),Object.defineProperty(n,"Rules",{enumerable:!0,get:function(){return i.Rules}}),Object.defineProperty(n,"Templates",{enumerable:!0,get:function(){return i.Templates}}),Object.defineProperty(n,"Transformers",{enumerable:!0,get:function(){return i.Transformers}}),Object.defineProperty(n,"Utils",{enumerable:!0,get:function(){return i.Utils}}),Object.defineProperty(n,"ValueSources",{enumerable:!0,get:function(){return i.ValueSources}}),Object.defineProperty(n,"Widgets",{enumerable:!0,get:function(){return i.Widgets}});var o,i=r(19822),a=(o=r(20655))&&o.__esModule?o:{default:o}},2252:function(e,n,r){"use strict";r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o,i,a,l=(o=r(2890))&&o.__esModule?o:{default:o};function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){var n=function(e,n){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==s(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===s(n)?n:String(n)}var c=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addLicense",value:function(e,r){n.licenses[e]=r}},{key:"getLicense",value:function(e){return n.licenses[e]}},{key:"removeLicense",value:function(e){l.default.unset(n.licenses,e)}},{key:"getLicenses",value:function(){return n.licenses}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=c,a={},(i=u(i="licenses"))in c?Object.defineProperty(c,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):c[i]=a},17693:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=((o=r(2252))&&o.__esModule?o:{default:o}).default;n.default=i},17792:function(e){"use strict";e.exports=function(e){var n,r,o=document,i=e.container||o.createElement("div");i.id=i.id||"autocomplete-"+m();var a=i.style,l=e.debounceWaitMs||0,s=e.preventSubmit||!1,u=e.disableAutoSelect||!1,c=[],f="",d=2,p=e.showOnFocus,h=0;if(void 0!==e.minLength&&(d=e.minLength),!e.input)throw Error("input undefined");var y=e.input;function m(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}function v(){r&&window.clearTimeout(r)}function b(){return!!i.parentNode}function g(){var e;h++,c=[],f="",n=void 0,y.setAttribute("aria-activedescendant",""),y.setAttribute("aria-expanded","fal
1se"),(e=i.parentNode)&&e.removeChild(i)}function w(){for(;i.firstChild;)i.removeChild(i.firstChild);y.setAttribute("aria-activedescendant","");var r=function(e,n,r){var i=o.createElement("div");return i.textContent=e.label||"",i};e.render&&(r=e.render);var l=function(e,n){var r=o.createElement("div");return r.textContent=e,r};e.renderGroup&&(l=e.renderGroup);var s=o.createDocumentFragment(),u="#9?$";if(c.forEach(function(o,a){if(o.group&&o.group!==u){u=o.group;var c=l(o.group,f);c&&(c.className+=" group",s.appendChild(c))}var d=r(o,f,a);d&&(d.id=i.id+"_"+a,d.setAttribute("role","option"),d.addEventListener("click",function(n){e.onSelect(o,y),g(),n.preventDefault(),n.stopPropagation()}),o===n&&(d.className+=" selected",d.setAttribute("aria-selected","true"),y.setAttribute("aria-activedescendant",d.id)),s.appendChild(d))}),i.appendChild(s),c.length<1){if(e.emptyMsg){var d=o.createElement("div");d.id=i.id+"_"+m(),d.className="empty",d.textContent=e.emptyMsg,i.appendChild(d),y.setAttribute("aria-activedescendant",d.id)}else{g();return}}i.parentNode||o.body.appendChild(i),function(){if(b()){y.setAttribute("aria-expanded","true"),a.height="auto",a.width=y.offsetWidth+"px";var n,r=0;l(),l(),e.customize&&n&&e.customize(y,n,i,r)}function l(){var e=o.documentElement,i=e.clientTop||o.body.clientTop||0,l=e.clientLeft||o.body.clientLeft||0,s=window.pageYOffset||e.scrollTop,u=window.pageXOffset||e.scrollLeft,c=(n=y.getBoundingClientRect()).top+y.offsetHeight+s-i,f=n.left+u-l;a.top=c+"px",a.left=f+"px",(r=window.innerHeight-(n.top+y.offsetHeight))<0&&(r=0),a.top=c+"px",a.bottom="",a.left=f+"px",a.maxHeight=r+"px"}}(),function(){var e=i.getElementsByClassName("selected");if(e.length>0){var n=e[0],r=n.previousElementSibling;if(r&&-1!==r.className.indexOf("group")&&!r.previousElementSibling&&(n=r),n.offsetTop<i.scrollTop)i.scrollTop=n.offsetTop;else{var o=n.offsetTop+n.offsetHeight,a=i.scrollTop+i.offsetHeight;o>a&&(i.scrollTop+=o-a)}}}()}function k(){b()&&w()}function O(e){e.target!==i?b()&&w():e.preventDefault()}function P(n){for(var r=n.which||n.keyCode||0,o=e.keysToIgnore||[38,13,27,39,37,16,17,18,20,91,9],i=0;i<o.length;i++)if(r===o[i])return;r>=112&&r<=123&&!e.keysToIgnore||40===r&&b()||S(0)}function j(r){var o=r.which||r.keyCode||0;if(38===o||40===o||27===o){var i=b();if(27===o)g();else{if(!i||c.length<1)return;38===o?function(){if(c.length<1)n=void 0;else if(n===c[0])n=c[c.length-1];else for(var e=c.length-1;e>0;e--)if(n===c[e]||1===e){n=c[e-1];break}}():function(){if(c.length<1&&(n=void 0),!n||n===c[c.length-1]){n=c[0];return}for(var e=0;e<c.length-1;e++)if(n===c[e]){n=c[e+1];break}}(),w()}r.preventDefault(),i&&r.stopPropagation();return}13===o&&(n&&(e.onSelect(n,y),g()),s&&r.preventDefault())}function _(){p&&S(1)}function S(o){var i=++h,a=y.value,s=y.selectionStart||0;a.length>
1=d||1===o?(v(),r=window.setTimeout(function(){e.fetch(a,function(e){h===i&&e&&(c=e,f=a,n=c.length<1||u?void 0:c[0],w())},o,s)},0===o?l:0)):g()}function C(){setTimeout(function(){o.activeElement!==y&&g()},200)}return i.className="autocomplete "+(e.className||""),i.setAttribute("role","listbox"),y.setAttribute("role","combobox"),y.setAttribute("aria-expanded","false"),y.setAttribute("aria-autocomplete","list"),y.setAttribute("aria-controls",i.id),y.setAttribute("aria-owns",i.id),y.setAttribute("aria-activedescendant",""),y.setAttribute("aria-haspopup","listbox"),a.position="absolute",i.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),i.addEventListener("focus",function(){return y.focus()}),y.addEventListener("keydown",j),y.addEventListener("keyup",P),y.addEventListener("blur",C),y.addEventListener("focus",_),window.addEventListener("resize",k),o.addEventListener("scroll",O,!0),{destroy:function(){y.removeEventListener("focus",_),y.removeEventListener("keydown",j),y.removeEventListener("keyup",P),y.removeEventListener("blur",C),window.removeEventListener("resize",k),o.removeEventListener("scroll",O,!0),y.removeAttribute("role"),y.removeAttribute("aria-expanded"),y.removeAttribute("aria-autocomplete"),y.removeAttribute("aria-controls"),y.removeAttribute("aria-activedescendant"),y.removeAttribute("aria-owns"),y.removeAttribute("aria-haspopup"),v(),g()}}}},83161:function(e,n,r){"use strict";r.r(n),r.d(n,{compare:function(){return a},compareVersions:function(){return o},satisfies:function(){return l},validate:function(){return i}});let o=(e,n)=>{let r=u(e),o=u(n),i=r.pop(),a=o.pop(),l=h(r,o);return 0!==l?l:i&&a?h(i.split("."),a.split(".")):i||a?i?-1:1:0},i=e=>"string"==typeof e&&/^[v\d]/.test(e)&&s.test(e),a=(e,n,r)=>{v(r);let i=o(e,n);return y[r].includes(i)},l=(e,n)=>{let r=n.match(/^([<>=~^]+)/),o=r?r[1]:"=";if("^"!==o&&"~"!==o)return a(e,n,o);let[i,l,s,,c]=u(e),[f,d,p,,y]=u(n),m=[i,l,s],v=[f,null!=d?d:"x",null!=p?p:"x"];if(y&&(!c||0!==h(m,v)||-1===h(c.split("."),y.split("."))))return!1;let b=v.findIndex(e=>"0"!==e)+1,g="~"===o?2:b>1?b:1;return 0===h(m.slice(0,g),v.slice(0,g))&&-1!==h(m.slice(g),v.slice(g))},s=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,u=e=>{if("string"!=typeof e)throw TypeError("Invalid argument expected string");let n=e.match(s);
1if(!n)throw Error("Invalid argument not valid semver ('".concat(e,"' received)"));return n.shift(),n},c=e=>"*"===e||"x"===e||"X"===e,f=e=>{let n=parseInt(e,10);return isNaN(n)?e:n},d=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],p=(e,n)=>{if(c(e)||c(n))return 0;let[r,o]=d(f(e),f(n));return r>o?1:r<o?-1:0},h=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){let o=p(e[r]||"0",n[r]||"0");if(0!==o)return o}return 0},y={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},m=Object.keys(y),v=e=>{if("string"!=typeof e)throw TypeError("Invalid operator type, expected string but got ".concat(typeof e));if(-1===m.indexOf(e))throw Error("Invalid operator, expected one of ".concat(m.join("|")))}},57310:function(e,n,r){"use strict";var o=r(61565),i=r(86358),a=r(1127),l=r(95248),s=r(35684),u=r(60746),c=r(83654),f=r(8104),d=r(32520);function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=p(o),y=p(i),m=p(a),v=p(l),b=p(s),g=p(u),w=p(c),k=p(f),O=p(d);function P(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function j(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?P(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var _={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},S=new(function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y.default(this,e),this.init(n,r)}return m.default(e,[{key:"init",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||_,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(n){return new e(this.logger,j(j({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return(n=n||this.options).prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}()),C=function(){function e(){y.default(this,e),this.observers={}}return m.default(e,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(n)}),this}},{key:"off",value:function(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(function(e){return e!==n})}}},{key:"emit",value:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(n){n.apply(n,[e].concat(r))})}}]),e}();function E(){var e,n,r=new Promise(function(r,o){e=r,n=o});return r.resolve=e,r.reject=n,r}function x(e){return null==e?"":""+e}function R(e,n,r){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var a="string"!=typeof n?[].concat(n):n.split(".");a.length>1;){if(i())return{};var l=o(a.shift());!e[l]&&r&&(e[l]=new r),e=Object.prototype.hasOwnProperty.call(e,l)?e[l]:{}}return i()?{}:{obj:e,k:o(a.shift())}}function M(e,n,r){var o=R(e,n,Object);o.obj[o.k]=r}function T(e,n){var r=R(e,n),o=r.obj,i=r.k;if(o)return o[i]}function A(e,n,r){var o=T(e,r);return void 0!==o?o:T(n,r)}function D(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function I(e){return"string"==typeof e?e.replace(/[&<>
1"'\/]/g,function(e){return V[e]}):e}var L=window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,N=[" ",",","?","!",";"];function F(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function B(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?F(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var z=function(e){b.default(o,e);var n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w.default(o);if(n){var i=w.default(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return g.default(this,e)});function o(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return y.default(this,o),n=r.call(this),L&&C.call(v.default(n)),n.data=e||{},n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return m.default(o,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[e,n];r&&"string"!=typeof r&&(l=l.concat(r)),r&&"string"==typeof r&&(l=l.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(l=e.split("."));var s=T(this.data,l);return s||!a||"string"!=typeof r?s:function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(n){if(n[r])return n[r];for(var i=r.split(o),a=n,l=0;l<i.length;++l){if(!a||"string"==typeof a[i[l]]&&l+1<i.length)return;if(void 0===a[i[l]]){for(var s=2,u=i.slice(l,l+s).join(o),c=a[u];void 0===c&&i.length>l+s;)s++,c=a[u=i.slice(l,l+s).join(o)];if(void 0===c)return;if(null===c)return null;if(r.endsWith(u)){if("string"==typeof c)return c;if(u&&"string"==typeof c[u])return c[u]}var f=i.slice(l+s).join(o);if(f)return e(c,f,o);return}a=a[i[l]]}return a}}(this.data&&this.data[e]&&this.data[e][n],r,i)}},{key:"addResource",value:function(e,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var l=[e,n];r&&(l=l.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(l=e.split("."),o=n,n=l[1]),this.addNamespaces(n),M(this.data,l,o),i.silent||this.emit("added",e,n,r,o)}},{key:"addResources",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)("string"==typeof r[i]||"[object Array]"===Object.prototype.toString.apply(r[i]))&&this.addResource(e,n,i,r[i],{silent:!0});o.silent||this.emit("added",e,n,r)}},{key:"addResourceBundle",value:function(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},l=[e,n];e.indexOf(".")>-1&&(l=e.split("."),o=r,r=n,n=l[1]),this.addNamespaces(n);var s=T(this.data,l)||{};o?function e(n,r,o){for(var i in r)"__proto__"!==i&&"constructor"!==i&&(i in n?"string"==typeof n[i]||n[i]instanceof String||"string"==typeof r[i]||r[i]instanceof String?o&&(n[i]=r[i]):e(n[i],r[i],o):n[i]=r[i]);return n}(s,r,i):s=B(B({},s),r),M(this.data,l,s),a.silent||this.emit("added",e,n,r)}},{key:"removeResourceBundle",value:function(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit
vendor: 2,105 bytes, line 1
1("removed",e,n)}},{key:"hasResourceBundle",value:function(e,n){return void 0!==this.getResource(e,n)}},{key:"getResourceBundle",value:function(e,n){return(n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?B(B({},{}),this.getResource(e,n)):this.getResource(e,n)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(function(e){return n[e]&&Object.keys(n[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),o}(C),U={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,o,i){var a=this;return e.forEach(function(e){a.processors[e]&&(n=a.processors[e].process(n,r,o,i))}),n}};function q(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function K(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?q(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var H={},W=function(e){b.default(o,e);var n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w.default(o);if(n){var i=w.default(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return g.default(this,e)});function o(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y.default(this,o),n=r.call(this),L&&C.call(v.default(n)),!function(e,n,r){e.forEach(function(e){n[e]&&(r[e]=n[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,v.default(n)),n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=S.create("translator"),n}return m.default(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=n.ns||this.options.defaultNS||[],a=r&&e.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!function(e,n,r){n=n||"",r=r||"";var o=N.filter(function(e){return 0>n.indexOf(e)&&0>r.indexOf(e)});if(0===o.length)return!0;var i=new RegExp("(".concat(o.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),a=!i.test(e);if(!a){var l=e.indexOf(r);l>0&&!i.test(e.substring(0,l))&&(a=!0)}return a}(e,r,o);if(a&&!l){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var u=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(o)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,n,r){var i=this;if("object"!==h.default(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,l=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),u=s.key,c=s.namespaces,f=c[c.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var y=n.nsSeparator||this.options.nsSeparator;return a?{res:"".concat(f).concat(y).concat(u),usedKey:u,exactUsedKey:u,usedLng:d,usedNS:f}:"".concat(f).concat(y).concat(u)}return a?{res:u,usedKey:u,exactUsedKey:u,usedLng:d,usedNS:f}:u}var m=this.resolve(e,n),v=m&&m.res,b=m&&m.usedKey||u,g=m&&m.exactUsedKey||u,w=Object.prototype.toString.apply(v),k=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,P="string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v;if(O&&v&&P&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(w)&&!("string"==typeof k&&"[object Array]"===w)){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var j=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,v,K(K({},n),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return a?(m.res=j,m):j}if(l){var _="[object Array]"===w,S=_?[]:{},C=_?g:b;for(var E in v)if(Object.prototype.hasOwnProperty.call(v,E)){var x="".concat(C).concat(l).concat(E);S[E]=this.translate(x,K(K({},n),{joinArrays:!1,ns:c})),S[E]===x&&(S[E]=v[E])}v=S}}else if(O&&"string"==typeof k&&"[object Array]"===w)(v=v.join(k))&&(v=this.extendTranslation(v,e,n,r));else{var R=!1,M=!1,T=void 0!==n.count&&"string"!=typeof n.count,A=o.hasDefaultValue(n),D=T?this.pluralResolver.getSuffix(d,n.count,n):"",V=n["defaultValue".concat(D)]||n.defaultValue;!this.isValidLookup(v)&&A&&(R=!0,v=V),this.isValidLookup(v)||(M=!0,v=u);var I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:v,L=A&&V!==v&&this.options.updateMissing;if(M||R||L){if(this.logger.log(L?"updateKey":"missingKey",d,f,u,L?V:v),l){var N=this.resolve(u,K(K({},n),{},{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var z=0;z<B.length;z++)F.push(B[z]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);var U=function(e,r,o){var a=A&&o!==v?o:I;i.options.missingKeyHandler?i.options.missingKeyHandler(e,f,r,a,L,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,f,r,a,L,n),i.emit("missingKey",e,f,r,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?F.forEach(function(e){i.pluralResolver.getSuffixes(e,n).forEac
vendor: 14,901 bytes, line 1
1h(function(r){U([e],u+r,n["defaultValue".concat(r)]||V)})}):U(F,u,V))}v=this.extendTranslation(v,e,n,m,r),M&&v===u&&this.options.appendNamespaceToMissingKey&&(v="".concat(f,":").concat(u)),(M||R)&&this.options.parseMissingKeyHandler&&(v="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(f,":").concat(u):u,R?v:void 0):this.options.parseMissingKeyHandler(v))}return a?(m.res=v,m):v}},{key:"extendTranslation",value:function(e,n,r,o,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,K(K({},this.options.interpolation.defaultVariables),r),o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(K(K({},r),{interpolation:K(K({},this.options.interpolation),r.interpolation)}));var l,s="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var u=e.match(this.interpolator.nestingRegexp);l=u&&u.length}var c=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(c=K(K({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,r.lng||this.language,r),s){var f=e.match(this.interpolator.nestingRegexp);l<(f&&f.length)&&(r.nest=!1)}!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,o=Array(e),l=0;l<e;l++)o[l]=arguments[l];return i&&i[0]===o[0]&&!r.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(n[0])),null):a.translate.apply(a,o.concat([n]))},r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==r.applyPostProcessor&&(e=U.handle(p,e,n,this.options&&this.options.postProcessPassResolved?K({i18nResolved:o},r):r,this)),e}},{key:"resolve",value:function(e){var n,r,o,i,a,l=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!l.isValidLookup(n)){var u=l.extractFromKey(e,s),c=u.key;r=c;var f=u.namespaces;l.options.fallbackNS&&(f=f.concat(l.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=d&&!s.ordinal&&0===s.count&&l.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,y=s.lngs?s.lngs:l.languageUtils.toResolveHierarchy(s.lng||l.language,s.fallbackLng);f.forEach(function(e){l.isValidLookup(n)||(a=e,!H["".concat(y[0],"-").concat(e)]&&l.utils&&l.utils.hasLoadedNamespace&&!l.utils.hasLoadedNamespace(a)&&(H["".concat(y[0],"-").concat(e)]=!0,l.logger.warn('key "'.concat(r,'" for languages "').concat(y.join(", "),'" won\'t get resolved as namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(function(r){if(!l.isValidLookup(n)){i=r;var a,u=[c];if(l.i18nFormat&&l.i18nFormat.addLookupKeys)l.i18nFormat.addLookupKeys(u,c,r,e,s);else{d&&(f=l.pluralResolver.getSuffix(r,s.count,s));var f,y="".concat(l.options.pluralSeparator,"zero");if(d&&(u.push(c+f),p&&u.push(c+y)),h){var m="".concat(c).concat(l.options.contextSeparator).concat(s.context);u.push(m),d&&(u.push(m+f),p&&u.push(m+y))}}for(;a=u.pop();)l.isValidLookup(n)||(o=a,n=l.getResource(r,e,a,s))}}))})}}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:a}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,o):this.resourceStore.getResource(e,n,r,o)}}],[{key:"hasDefaultValue",value:function(e){var n="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&void 0!==e[r])return!0;return!1}}]),o}(C);function G(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Y=function(){function e(n){y.default(this,e),this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=S.create("languageUtils")}return m.default(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var n=e.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase())?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=G(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=G(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=G(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(e){if(!n){var o=r.formatLanguageCode(e);(!r.options.supportedLngs||r.isSupportedCode(o))&&(n=o)}}),!n&&this.options.supportedLngs&&e.forEach(function(e){if(!n){var o=r.getLanguagePartFromCode(e);if(r.isSupportedCode(o))return n=o;n=r.options.supportedLngs.find(function(e){if(e===o||!(0>e.indexOf("-")&&0>o.indexOf("-"))&&0===e.indexOf(o))return e})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(r.isSupportedCode(e)?i.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),o.forEach(function(e){0>i.indexOf(e)&&a(r.formatLanguageCode(e))}),i}}]),e}(),J=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Z={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},X=["v1","v2","v3"],Q={zero:0,one:1,two:2,few:3,many:4,other:5},ee=function(){function e(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y.default(this,e),this.languageUtils=n,this.options=o,this.logger=S.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(r={},J.forEach(function(e){e.lngs.forEach(function(n){r[n]={numbers:e.nr,plurals:Z[e.fc]}})}),r)}return m.default(e,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:n.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(function(e){return"".concat(n).concat(e)})}},{key:"getSuffixes",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,r);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(e,n){return Q[e]-Q[n]}).map(function(e){return"".concat(n.options.prepend).concat(e)}):o.numbers.map(function(o){return n.getSuffix(e,o,r)}):[]}},{key:"getSuffix",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getRule(e,r);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,n){var r=this,o=e.noAbs?e.plurals(n):e.plurals(Math.abs(n)),i=e.numbers[o];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!X.includes(this.options.compatibilityJSON)}}]),e}();function et(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function en(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?et(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var er=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};y.default(this,e),this.logger=S.create("interpolator"),this.options=n,this.format=n.interpolation&&n.interpolation.format||function(e){return e},this.init(n)}return m.default(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=void 0!==n.escape?n.escape:I,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?D(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?D(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?D(n.nestingPrefix):n.nestingPrefixEscaped||D("$t("),this.nestingSuffix=n.nestingSuffix?D(n.nestingSuffix):n.nestingSuffixEscaped||D(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix
vendor: 5,085 bytes, line 1
1);this.regexp=RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,l,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var f=function(e){if(0>e.indexOf(s.formatSeparator)){var i=A(n,u,e);return s.alwaysFormat?s.format(i,void 0,r,en(en(en({},o),n),{},{interpolationkey:e})):i}var a=e.split(s.formatSeparator),l=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(A(n,u,l),c,r,en(en(en({},o),n),{},{interpolationkey:l}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(n){for(l=0;i=n.regex.exec(e);){var r=i[1].trim();if(void 0===(a=f(r))){if("function"==typeof d){var u=d(e,i,o);a="string"==typeof u?u:""}else if(o&&Object.prototype.hasOwnProperty.call(o,r))a="";else if(p){a=i[0];continue}else s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=x(a));var c=n.safeValue(a);if(e=e.replace(i[0],c),p?(n.regex.lastIndex+=a.length,n.regex.lastIndex-=i[0].length):n.regex.lastIndex=0,++l>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i,a=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,n){var r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;var o=e.split(new RegExp("".concat(r,"[ ]*{"))),a="{".concat(o[1]);e=o[0];var l=(a=this.interpolate(a,i)).match(/'/g),s=a.match(/"/g);(l&&l.length%2==0&&!s||s.length%2!=0)&&(a=a.replace(/'/g,'"'));try{i=JSON.parse(a),n&&(i=en(en({},n),i))}catch(n){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),n),"".concat(e).concat(r).concat(a)}return delete i.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){var u=[];(i=(i=en({},l)).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var c=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(e){return e.trim()});r[1]=f.shift(),u=f,c=!0}if((o=n(s.call(this,r[1].trim(),i),i))&&r[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=x(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=u.reduce(function(e,n){return a.format(e,n,l.lng,en(en({},l),{},{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),e}();function eo(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function ei(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?eo(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ea(e){var n={};return function(r,o,i){var a=o+JSON.stringify(i),l=n[a];return l||(l=e(o,i),n[a]=l),l(r)}}var el=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};y.default(this,e),this.logger=S.create("formatter"),this.options=n,this.formats={number:ea(function(e,n){var r=new Intl.NumberFormat(e,ei({},n));return function(e){return r.format(e)}}),currency:ea(function(e,n){var r=new Intl.NumberFormat(e,ei(ei({},n),{},{style:"currency"}));return function(e){return r.format(e)}}),datetime:ea(function(e,n){var r=new Intl.DateTimeFormat(e,ei({},n));return function(e){return r.format(e)}}),relativetime:ea(function(e,n){var r=new Intl.RelativeTimeFormat(e,ei({},n));return function(e){return r.format(e,n.range||"day")}}),list:ea(function(e,n){var r=new Intl.ListFormat(e,ei({},n));return function(e){return r.format(e)}})},this.init(n)}return m.default(e,[{key:"init",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=n.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(e,n){this.formats[e.toLowerCase().trim()]=n}},{key:"addCached",value:function(e,n){this.formats[e.toLowerCase().trim()]=ea(n)}},{key:"format",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n.split(this.formatSeparator).reduce(function(e,n){var a=function(e){var n=e.toLowerCase().trim(),r
1={};if(e.indexOf("(")>-1){var o=e.split("(");n=o[0].toLowerCase().trim();var i=o[1].substring(0,o[1].length-1);"currency"===n&&0>i.indexOf(":")?r.currency||(r.currency=i.trim()):"relativetime"===n&&0>i.indexOf(":")?r.range||(r.range=i.trim()):i.split(";").forEach(function(e){if(e){var n=e.split(":"),o=O.default(n),i=o[0],a=o.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[i.trim()]||(r[i.trim()]=a),"false"===a&&(r[i.trim()]=!1),"true"===a&&(r[i.trim()]=!0),isNaN(a)||(r[i.trim()]=parseInt(a,10))}})}return{formatName:n,formatOptions:r}}(n),l=a.formatName,s=a.formatOptions;if(o.formats[l]){var u=e;try{var c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},f=c.locale||c.lng||i.locale||i.lng||r;u=o.formats[l](e,f,ei(ei(ei({},s),i),c))}catch(e){o.logger.warn(e)}return u}return o.logger.warn("there was no format function for ".concat(l)),e},e)}}]),e}();function es(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function eu(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?es(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ec=function(e){b.default(o,e);var n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w.default(o);if(n){var i=w.default(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return g.default(this,e)});function o(e,n,i){var a,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return y.default(this,o),a=r.call(this),L&&C.call(v.default(a)),a.backend=e,a.store=n,a.services=i,a.languageUtils=i.languageUtils,a.options=l,a.logger=S.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=l.maxParallelReads||10,a.readingCalls=0,a.maxRetries=l.maxRetries>=0?l.maxRetries:5,a.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,l.backend,l),a}return m.default(o,[{key:"queueLoad",value:function(e,n,r,o){var i=this,a={},l={},s={},u={};return e.forEach(function(e){var o=!0;n.forEach(function(n){var s="".concat(e,"|").concat(n);!r.reload&&i.store.hasResourceBundle(e,n)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===l[s]&&(l[s]=!0):(i.state[s]=1,o=!1,void 0===l[s]&&(l[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===u[n]&&(u[n]=!0)))}),o||(s[e]=!0)}),(Object.keys(a).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(l),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,n,r){var o=e.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),r&&this.store.addResourceBundle(i,a,r),this.state[e]=n?-1:2;var l={};this.queue.forEach(function(r){var o,s,u,c;(u=(s=R(r.loaded,[i],Object)).obj)[c=s.k]=u[c]||[],o&&(u[c]=u[c].concat(a)),o||u[c].push(a),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),n&&r.errors.push(n),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(function(e){l[e]||(l[e]={});var n=r.loaded[e];n.length&&n.forEach(function(n){void 0===l[e][n]&&(l[e][n]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:a,callback:l});return}this.readingCalls++;var s=function(s,u){if(o.readingCalls--,o.waitingReads.length>0){var c=o.waitingReads.shift();o.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(s&&u&&i<o.maxRetries){setTimeout(function(){o.read.call(o,e,n,r,i+1,2*a,l)},a);return}l(s,u)},u=this.backend[r].bind(this.backend);if(2===u.length){try{var c=u(e,n);c&&"function"==typeof c.then?c.then(function(e){return s(null,e)}).catch(s):s(null,c)}catch(e){s(e)}return}return u(e,n,s)}},{key:"prepareLoading",value:function(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof n&&(n=[n]);var a=this.queueLoad(e,n,o,i);if(!a.toLoad.length)return a.pending.length||i(),null;
1a.toLoad.forEach(function(e){r.loadOne(e)})}},{key:"load",value:function(e,n,r){this.prepareLoading(e,n,{},r)}},{key:"reload",value:function(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}},{key:"loadOne",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),i=o[0],a=o[1];this.read(i,a,"read",void 0,void 0,function(o,l){o&&n.logger.warn("".concat(r,"loading namespace ").concat(a," for language ").concat(i," failed"),o),!o&&l&&n.logger.log("".concat(r,"loaded namespace ").concat(a," for language ").concat(i),l),n.loaded(e,o,l)})}},{key:"saveMissing",value:function(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=r&&""!==r){if(this.backend&&this.backend.create){var s,u=eu(eu({},a),{},{isUpdate:i}),c=this.backend.create.bind(this.backend);if(c.length<6)try{(s=5===c.length?c(e,n,r,o,u):c(e,n,r,o))&&"function"==typeof s.then?s.then(function(e){return l(null,e)}).catch(l):l(null,s)}catch(e){l(e)}else c(e,n,r,o,l,u)}e&&e[0]&&this.store.addResource(e[0],n,r,o)}}}]),o}(C);function ef(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if("object"===h.default(e[1])&&(n=e[1]),"string"==typeof e[1]&&(n.defaultValue=e[1]),"string"==typeof e[2]&&(n.tDescription=e[2]),"object"===h.default(e[2])||"object"===h.default(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){n[e]=r[e]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ed(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ep(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function eh(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ep(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ep(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ey(){}var em=function(e){b.default(o,e);var n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w.default(o);if(n){var i=w.default(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return g.default(this,e)});function o(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(y.default(this,o),e=r.call(this),L&&C.call(v.default(e)),e.options=ed(n),e.services={},e.logger=S,e.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEac
vendor: 8,087 bytes, line 1
1h(function(n){"function"==typeof e[n]&&(e[n]=e[n].bind(e))})}(v.default(e)),i&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,i),g.default(e,v.default(e));setTimeout(function(){e.init(n,i)},0)}return e}return m.default(o,[{key:"init",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof n&&(r=n,n={}),!n.defaultNS&&!1!==n.defaultNS&&n.ns&&("string"==typeof n.ns?n.defaultNS=n.ns:0>n.ns.indexOf("translation")&&(n.defaultNS=n.ns[0]));var o=ef();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=eh(eh(eh({},o),this.options),ed(n)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=eh(eh({},o.interpolation),this.options.interpolation)),void 0!==n.keySeparator&&(this.options.userDefinedKeySeparator=n.keySeparator),void 0!==n.nsSeparator&&(this.options.userDefinedNsSeparator=n.nsSeparator),!this.options.isClone){this.modules.logger?S.init(i(this.modules.logger),this.options):S.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=el);var a,l=new Y(this.options);this.store=new z(this.options.resources,this.options);var s=this.services;s.logger=S,s.resourceStore=this.store,s.languageUtils=l,s.pluralResolver=new ee(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(s.formatter=i(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new er(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ec(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];e.emit.apply(e,[n].concat(o))}),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new W(this.services,this.options),this.translator.on("*",function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];e.emit.apply(e,[n].concat(o))}),this.modules.external.forEach(function(n){n.init&&n.init(e)})}if(this.format=this.options.interpolation.format,r||(r=ey),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(n){e[n]=function(){var r;return(r=e.store)[n].apply(r,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(n){e[n]=function(){var r;return(r=e.store)[n].apply(r,arguments),e}});var c=E(),f=function(){var n=function(n,o){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(o),r(n,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return n(null,e.t.bind(e));e.changeLanguage(e.options.lng,n)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}},{key:"loadResources",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ey,o=r,i="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return o();var a=[],l=function(e){e&&n.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>a.indexOf(e)&&a.push(e)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return l(e)}),this.options.preload&&this.options.preload.forEach(function(e){return l(e)}),this.services.backendConnector.load(a,this.options.ns,function(e){e||n.resolvedLanguage||!n.language||n.setResolvedLanguage(n.language),o(e)})}else o(null)}},{key:"reloadResources",value:function(e,n,r){var o=E();return e||(e=this.languages),n||(n=this.options.ns),r||(r=ey),this.services.backendConnector.reload(e,n,function(e){o.resolve(),r(e)}),o}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&U.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var n=0;n<this.languages.length;n++){var r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,n){var r=this;this.isLanguageChangingTo=e;var o=E();this.emit("languageChanging",e);var i=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},a=function(e,a){a?(i(a),r.translator.changeLanguage(a),r.isLanguageChangingTo=void 0,r.emit("languageChanged",a),r.logger.log("languageChanged",a)):r.isLanguageChangingTo=void 0,o.resolve(function(){return r.t.apply(r,arguments)}),n&&n(e,function(){return r.t.apply(r,arguments)})},l=function(n){e||n||!r.services.languageDetector||(n=[]);var o="string"==typeof n?n:r.services.languageUtils.getBestMatchFromCodes(n);o&&(r.language||i(o),r.translator.language||r.translator.changeLanguage(o),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(o)),r.loadResources(o,function(e){a(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,n,r){var o=this,i=function e(n,i){if("object"!==h.default(i)){for(var a,l,s=arguments.length,u=Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];a=o.options.overloadTranslationOptionHandler([n,i].concat(u))}else a=eh({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,a.keyPrefix=a.keyPrefix||r||e.keyPrefix;var f=o.options.keySeparator||".";return l=a.keyPrefix&&Array.isArray(n)?n.map(function(e){return"".concat(a.keyPrefix).concat(f).concat(e)}):a.keyPrefix?"".concat(a.keyPrefix).concat(f).concat(n):n,o.t(l,a)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=r,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var l=function(e,r){var o=n.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===o||2===o};if(r.precheck){var s=r.precheck(this,l);if(void 0!==s)return s}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(o,e)&&(!i||l(a,e)))}},{key:"loadNamespaces",value:function(e,n){var r=this,o=E();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>r.options.ns.indexOf(e)&&r.options.ns.push(e)}),this.loadResources(function(e){o.resolve(),n&&n(e)}),o):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(e,n){var r=E();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],i=e.filter(function(e){return 0>o.indexOf(e)});return i.length?(this.options.preload=o.concat(i),this.loadResources(function(e){r.resolve(),n&&n(e)}),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new Y(ef())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ey,i=eh(eh(eh({},this.options),n),{isClone:!0}),a=new o(i);return(void 0!==n.debug||void 0!==n.prefix)&&(a.logger=a.logger.clone(n)),["store","services","language"].forEach(function(n){a[n]=e[n]}),a.services=eh({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new W(a.services,a.options),a.translator.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];a.emit.apply(a,[e].concat(r))}),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),o}(C);k.default(em,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new em(e,n)});var ev=em.createInstance();ev.createInstance=em.createInstance,e.exports=ev},51567:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(6778),r(68428),r(11414),r(41135),r(28839),r(88910),r(64652),r(66450),r(5979),r(789),r(3616),r(88754),r(31490),r(45399),r(37753),r(45945),r(55096),void 0===window.document||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var n=this;do{if(n.matches(e))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null})),function(e,n){if("undefined"!=typeof document){"defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),!0}catch(e){return!1}}()||(i=Object.defineProperty,a=Object.prototype.hasOwnProperty.call(Object.prototype,"__defineGetter__"),l="Getters & setters cannot be defined on this javascript engine",s="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function(e,n,r){if(i&&(e===window||e===document||e===Element.prototype||e instanceof Element))return i(e,n,r);if(null===e||!(e instanceof Object||"object"===o(e)))throw TypeError("Object.defineProperty called on non-object");
1if(!(r instanceof Object))throw TypeError("Property description must be an object");var u=String(n),c="value"in r||"writable"in r,f="get"in r&&o(r.get),d="set"in r&&o(r.set);if(f){if("function"!==f)throw TypeError("Getter must be a function");if(!a)throw TypeError(l);if(c)throw TypeError(s);Object.__defineGetter__.call(e,u,r.get)}else e[u]=r.value;if(d){if("function"!==d)throw TypeError("Setter must be a function");if(!a)throw TypeError(l);if(c)throw TypeError(s);Object.__defineSetter__.call(e,u,r.set)}return"value"in r&&(e[u]=r.value),e});var r,i,a,l,s,u,c=function(){var e=!0,r=function(n,r,o,i){Object.defineProperty?Object.defineProperty(n,r,{configurable:!1===e||!!i,get:o}):n.__defineGetter__(r,o)};try{r({},"support")}catch(n){e=!1}return function(e,i){var a=this,l=[],s={},u=0,c=0,f=function(e){r(a,e,function(){return p(),l[e]},!1)},d=function(){if(u>=c)for(;c<u;++c)f(c)},p=function(){var n,r,a=arguments,c=/\s+/;if(a.length){for(r=0;r<a.length;++r)if(c.test(a[r]))throw(n=SyntaxError('String "'+a[r]+'" contains an invalid character')).code=5,n.name="InvalidCharacterError",n}for(""===(l="object"===o(e[i])?(""+e[i].baseVal).replace(/^\s+|\s+$/g,"").split(c):(""+e[i]).replace(/^\s+|\s+$/g,"").split(c))[0]&&(l=[]),s={},r=0;r<l.length;++r)s[l[r]]=!0;u=l.length,d()};return p(),r(a,"length",function(){return p(),u}),a.toLocaleString=a.toString=function(){return p(),l.join(" ")},a.item=function(e){return p(),l[e]},a.contains=function(e){return p(),!!s[e]},a.add=function(){p.apply(a,n=arguments);for(var n,r,c=0,f=n.length;c<f;++c)s[r=n[c]]||(l.push(r),s[r]=!0);u!==l.length&&(u=l.length>>>0,"object"===o(e[i])?e[i].baseVal=l.join(" "):e[i]=l.join(" "),d())},a.remove=function(){p.apply(a,n=arguments);for(var n,r={},c=0,f=[];c<n.length;++c)r[n[c]]=!0,delete s[n[c]];for(c=0;c<l.length;++c)r[l[c]]||f.push(l[c]);l=f,u=f.length>>>0,"object"===o(e[i])?e[i].baseVal=l.join(" "):e[i]=l.join(" "),d()},a.toggle=function(e,r){return(p.apply(a,[e]),n!==r)?r?(a.add(e),!0):(a.remove(e),!1):s[e]?(a.remove(e),!1):(a.add(e),!0)},a}}();!("DOMTokenList"in e&&(!("classList"in(u=document.createElement("x")))||!u.classList.toggle("x",!1)&&!u.className))&&((!("DOMTokenList"in e&&e.DOMTokenList)||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(e.DOMTokenList=c),"classList"in(r=document.createElement("span"))&&(r.classList.toggle("x",!1),r.classList.contains("x")&&(r.classList.constructor.prototype.toggle=function(e){var r=arguments[1];if(n===r){var o=!this.contains(e);return this[o?"add":"remove"](e),o}return this[(r=!!r)?"add":"remove"](e),r})),function(){var e=document.createElement("span");if("classList"in e&&(e.classList.add("a","b"),!e.classList.contains("b"))){var n=e.classList.constructor.prototype.add;e.classList.constructor.prototype.add=function(){for(var e=arguments,r=arguments.length,o=0;o<r;o++)n.call(this,e[o])}}}(),function(){var e=document.createElement("span");if("classList"in e&&(e.classList.add("a"),e.classList.add("b"),e.classList.remove("a","b"),e.classList.contains("b"))){var n=e.classList.constructor.prototype.remove;e.classList.constructor.prototype.remove=function(){for(var e=arguments,r=arguments.length,o=0;o<r;o++)n.call(this,e[o])}}}())}}("object"===o(window)&&window||"object"===("undefined"==typeof self?"undefined":o(self))&&self||"object"===(void 0===r.g?"undefined":o(r.g))&&r.g||{})},62301:function(e,n,r){"use strict";r(57425),r(51567)},55905:function(e,n,r){"use strict";r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o,i,a=c(r(2890)),l=c(r(11102)),s=c(r(65283)),u=c(r(11042));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==f(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===f(n)?n:String(n)}var p=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addProvider",value:function(e,r,o){n.providers[e]=n.providers[e]||{},n.providers[e][r]=o}},{key:"addProviders",value:function(e,r){n.providers[e]=a.default.merge(n.providers[e],r)}},{key:"getProvider",value:function(e,r){if(n.providers[e]&&n.providers[e][r])return n.providers[e][r]}},{key:"getProviders",value:function(e){if(n.providers[e])return n.providers[e]}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=p,o="providers",i={address:l.default,auth:s.default,storage:u.default},(o=d(o))in p?Object.defineProperty(p,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):p[o]=i},22946:function(e,n,r){"use strict";
1r(64652),r(70601),r(11414),r(41135),r(28839),r(88910),r(7122),r(3616),r(26343),r(789),Object.defineProperty(n,"__esModule",{value:!0}),n.AddressProvider=void 0,r(55096),r(20680),r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o,i=(o=r(2890))&&o.__esModule?o:{default:o},a=r(79408);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function u(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}(o.key),o)}}var c=function(){var e,n;function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r),this.beforeMergeOptions(e),this.options=i.default.merge({},this.defaultOptions,e)}return n=[{key:"name",get:function(){return"address"}},{key:"displayName",get:function(){return"Address"}}],e=[{key:"beforeMergeOptions",value:function(){}},{key:"defaultOptions",get:function(){return{}}},{key:"queryProperty",get:function(){return"query"}},{key:"responseProperty",get:function(){return null}},{key:"displayValueProperty",get:function(){return null}},{key:"serialize",value:function(e){return i.default.toPairs(e).map(function(e){var n=function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(e,2)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,n)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o))}).join("&")}},{key:"getRequestOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.default.merge({},this.options,e)}},{key:"getRequestUrl",value:function(){throw arguments.length>0&&void 0!==arguments[0]&&arguments[0],Error("Method AddressProvider#getRequestUrl(options) is abstract.")}},{key:"makeRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a.GlobalFormio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}},{key:"search",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRequestOptions(r);return(o.params=o.params||{})[this.queryProperty]=e,this.makeRequest(o).then(function(e){return n.responseProperty?i.default.get(e,n.responseProperty,[]):e})}},{key:"getDisplayValue",value:function(e){return this.displayValueProperty?i.default.get(e,this.displayValueProperty,""):String(e)}}],u(r.prototype,e),n&&u(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.AddressProvider=c},99316:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.AzureAddressProvider=void 0,r(43053),r(56613),r(65813);var s=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(c,e);var n,r,s,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return s=[{key:"name",get:function(){return"azure"}},{key:"displayName",get:function(){return"Azure Maps"}}],r=[{key:"defaultOptions",get:function(){return{params:{"api-version":"1.0",typeahead:"true"}}}},{key:"responseProperty",get:function(){return"results"}},{key:"displayValueProperty",get:function(){return"address.freeformAddress"}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return"https://atlas.microsoft.com/search/address/json?".concat(this.serialize(n))}}],i(c.prototype,r),s&&i(c,s),Object.defineProperty(c,"prototype",{writable:!1}),c}(r(22946).AddressProvider);n.AzureAddressProvider=s},63297:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=s(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.CustomAddressProvider=void 0,r(67998),r(43053),r(56613),r(65813);var u=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return u=[{key:"name",get:function(){return"custom"}},{key:"displayName",get:function(){return"Custom"}}],r=[{key:"queryProperty",get:function(){return this.options.queryProperty||a(s(f.prototype),"queryProperty",this)}},{key:"responseProperty",get:function(){return this.options.responseProperty||a(s(f.prototype),"responseProperty",this)}},{key:"displayValueProperty",get:function(){return this.options.displayValueProperty||a(s(f.prototype),"dis
1playValueProperty",this)}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.url;return"".concat(r,"?").concat(this.serialize(n))}}],i(f.prototype,r),u&&i(f,u),Object.defineProperty(f,"prototype",{writable:!1}),f}(r(22946).AddressProvider);n.CustomAddressProvider=u},83061:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.GoogleAddressProvider=void 0,r(71287),r(49907),r(37753),r(30890),r(92471),r(43053),r(56613),r(65813);var i=r(79408),a=u(r(2890)),l=r(22946),s=u(r(32780));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(p,e);var n,r,l,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(p);if(n){var i=d(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){var e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),(n=u.call(this,r)).setAutocompleteOptions();var o="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback";return null!==(e=r.params)&&void 0!==e&&e.key&&(o+="&key=".concat(r.params.key)),i.GlobalFormio.requireLibrary(n.getLibraryName(),"google.maps.places",o),n}return l=[{key:"name",get:function(){return"google"}},{key:"displayName",get:function(){return"Google Maps"}}],r=[{key:"displayValueProperty",get:function(){return"formattedPlace"}},{key:"alternativeDisplayValueProperty",get:function(){return"formatted_address"}},{key:"autocompleteOptions",get:function(){return this._autocompleteOptions},set:function(e){this._autocompleteOptions=e}},{key:"setAutocompleteOptions",value:function(){var e=a.default.get(this.options,"params.autocompleteOptions",{});a.default.isObject(e)||(e={}),this.addRequiredProviderOptions(e),this.autocompleteOptions=e}},{key:"beforeMergeOptions",value:function(e){this.convertRegionToAutocompleteOption(e)}},{key:"getLibraryName",value:function(){return"googleMaps"}},{key:"convertRegionToAutocompleteOption",value:function(e){var n=a.default.get(e,"params.region","");if(n&&!a.default.has(e,"params.autocompleteOptions")){n=n.toUpperCase().trim();var r={UK:"GB"};r[n]&&(n=r[n]),a.default.set(e,"params.autocompleteOptions.componentRestrictions.country",[n])}}},{key:"getRequiredAddressProperties",value:function(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}},{key:"addRequiredProviderOptions",value:function(e){var n=this.getRequiredAddressProperties();a.default.isArray(e.fields)&&e.fields.length>0&&e.fields.forEach(function(e){n.some(function(n){return e===n})||n.push(e)}),e.fields=n}},{key:"filterPlace",value:function(e){e=e||{};var n={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach(function(r){e[r]&&(n[r]=e[r])}),n}},{key:"attachAutocomplete",value:function(e,n,r){var o=this;i.GlobalFormio.libraryReady(this.getLibraryName()).then(function(){var i=new google.maps.places.Autocomplete(e,o.autocompleteOptions);i.addListener("place_changed",function(){var l=o.filterPlace(i.getPlace());l.formattedPlace=a.default.get(i,"gm_accessors_.place.se.formattedPrediction",l[o.alternativeDisplayValueProperty]),r(l,e,n)})})}},{key:"search",value:function(){return s.default.resolve()}},{key:"makeRequest",value:function(){return s.default.resolve()}},{key:"getDisplayValue",value:function(e){var n=a.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return a.default.get(e,n,"")}}],c(p.prototype,r),l&&c(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p}(l.AddressProvider);n.GoogleAddressProvider=p},64123:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.NominatimAddressProvider=void 0,r(43053),r(56613),r(65813);var s=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(c,e);var n,r,s,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return s=[{key:"name",get:function(){return"nominatim"}},{key:"displayName",get:function(){return"OpenStreetMap Nominatim"}}],r=[{key:"defaultOptions",get:function(){return{params:{addressdetails:"1",format:"json"}}}},{key:"queryProperty",get:function(){return"q"}},{key:"displayValueProperty",get:function(){return"display_name"}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return"https://nominatim.openstreetmap.org/search?".concat(this.serialize(n))}}],i(c.prototype,r),s&&i(c,s),Object.defineProperty(c,"prototype",{writable:!1}),c}(r(22946).AddressProvider);n.NominatimAddressProvider=s},11102:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(62107),r(21430),r(6778),r(68428),r(37753),r(21587),r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(3616);var i,a=r(99316),l=r(63297),s=r(83061),u=r(64123);function c(e,n,r){var i;return(i=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"===o(i)?i:String(i))in e)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var f=(c(i={},a.AzureAddressProvider.name,a.AzureAddressProvider),c(i,l.CustomAddressProvider.name,l.CustomAddressProvider),c(i,s.GoogleAddressProvider.name,s.GoogleAddressProvider),c(i,u.NominatimAddressProvider.name,u.NominatimAddressProvider),i);n.default=f},65283:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={}},3966:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=((o=r(55905))&&o.__esModule?o:{default:o}).default;n.default=i},74757:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(3616);var o,i=(o=r(32780))&&o.__esModule?o:{default:o};n.default=function(e,n){return function(r,o){return new i.default(function(i,a){var l=new XMLHttpRequest;l.onerror=function(e){e.networkError=!0,a(e)},l.onabort=function(e){e.networkError=!0,a(e)},l.onload=function(){if(l.status>=200&&l.status<300){var e=l.getResponseHeader("Content-Type")||r.type;i(new File([l.response],r.name,{type:e}))}else a(l.response||"Unable to process file")},l.onabort=a,l.open("POST",n.url);var s=e.getToken();s&&l.setRequestHeader("x-jwt-token",s),l.responseType="arraybuffer";var u=new FormData;u.append("file",r),u.append("processorOptions",JSON.stringify(n.options||{})),u.append("options",JSON.stringify(o||{})),l.send(u)})}}},90280:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(71287),r(3616);var o,i=(o=r(7298))&&o.__esModule?o:{default:o},a=function(e){return{uploadFile:function(n,r,o,a,l,s,u,c,f,d){return i.default.upload(e,"azure",function(e,r){return e.openAndSetHeaders("PUT",r.url),e.setRequestHeader("Content-Type",n.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),n},n,r,o,a,c,f,d).then(function(){return{storage:"azure",name:i.default.path([o,r]),size:n.size,type:n.type,groupPermissions:c,groupId:f}})}
1,downloadFile:function(n){return e.makeRequest("file","".concat(e.formUrl,"/storage/azure?name=").concat(i.default.trim(n.name)),"GET")}}};a.title="Azure File Services",n.default=a},76529:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(32780))&&o.__esModule?o:{default:o},a=function(){return{title:"Base64",name:"base64",uploadFile:function(e,n){var r=this,o=new FileReader;return new i.default(function(i,a){o.onload=function(r){i({storage:"base64",name:n,url:r.target.result,size:e.size,type:e.type})},o.onerror=function(){return a(r)},o.readAsDataURL(e)})},downloadFile:function(e){return i.default.resolve(e)}}};a.title="Base64",n.default=a},43196:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998);var o,i=(o=r(32780))&&o.__esModule?o:{default:o},a=r(7298),l=function(e){return{uploadFile:function(n,r,o,l,s,u,c,f,d,p){return new i.default(function(i,s){var u=new XMLHttpRequest;"function"==typeof l&&(u.upload.onprogress=l),"function"==typeof p&&p(function(){return u.abort()});var c=new FormData;c.append("name",r),c.append("dir",o),c.append("file",n),u.onerror=function(e){e.networkError=!0,s(e)},u.onload=function(){if(u.status>=200&&u.status<300){var e=JSON.parse(u.response);e.storage="googledrive",e.size=n.size,e.type=n.type,e.groupId=d,e.groupPermissions=f,i(e)}else s(u.response||"Unable to upload file")},u.onabort=s,u.open("POST","".concat(e.formUrl,"/storage/gdrive")),(0,a.setXhrHeaders)(e,u);var h=e.getToken();h&&u.setRequestHeader("x-jwt-token",h),u.send(c)})},downloadFile:function(n){var r=e.getToken();return n.url="".concat(e.formUrl,"/storage/gdrive?fileId=").concat(n.id,"&fileName=").concat(n.originalName).concat(r?"&x-jwt-token=".concat(r):""),i.default.resolve(n)}}};l.title="Google Drive",n.default=l},11042:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=c(r(76529)),i=c(r(99755)),a=c(r(90280)),l=c(r(91703)),s=c(r(19614)),u=c(r(43196));function c(e){return e&&e.__esModule?e:{default:e}}var f={base64:o.default,s3:i.default,url:l.default,azure:a.default,indexeddb:s.default,googledrive:u.default};n.default=f},19614:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(3616);var o,i=r(74916),a=(o=r(32780))&&o.__esModule?o:{default:o},l=function(){return{title:"indexedDB",name:"indexeddb",uploadFile:function(e,n,r,o,l,s){var u=this;if(!("indexedDB"in window)){console.log("This browser doesn't support IndexedDB");return}return new a.default(function(e){var n=indexedDB.open(s.indexeddb,3);n.onsuccess=function(n){e(n.target.result)},n.onupgradeneeded=function(e){e.target.result.createObjectStore(s.indexeddbTable)}}).then(function(n){var r=new FileReader;return new a.default(function(o,a){r.onload=function(){var r=new Blob([e],{type:e.type}),a=(0,i.v4)(r),u={id:a,data:r,name:e.name,size:e.size,type:e.type,url:l},c=n.transaction([s.indexeddbTable],"readwrite");c.objectStore(s.indexeddbTable).put(u,a).onerror=function(e){console.log("error storing data"),console.error(e)},c.oncomplete=function(){o({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:l,id:a})}},r.onerror=function(){return a(u)},r.readAsDataURL(e)})})},downloadFile:function(e,n){var r=this;return new a.default(function(e){indexedDB.open(n.indexeddb,3).onsuccess=function(n){e(n.target.result)}}).then(function(o){return new a.default(function(i,a){var l=o.transaction([n.indexeddbTable],"readonly"),s=l.objectStore(n.indexeddbTable).get(e.id);s.onsuccess=function(){l.oncomplete=function(){var n=s.result,o=new File([s.result.data],e.name,{type:s.result.type}),l=new FileReader;l.onload=function(r){n.url=r.target.result,n.storage=e.storage,i(n)},l.onerror=function(){return a(r)},l.readAsDataURL(o)}},s.onerror=function(){return a(r)}})})},deleteFile:function(e,n){var r=this;return new a.default(function(e){indexedDB.open(n.indexeddb,3).onsuccess=function(n){e(n.target.result)}}).then(function(o){return new a.default(function(i,a){var l=o.transaction([n.indexeddbTable],"readwrite"),s=l.objectStore(n.indexeddbTable).delete(e.id);s.onsuccess=function(){l.oncomplete=function(){i(s.result)}},s.onerror=function(){return a(r)}})})}}};l.title="IndexedDB",n.default=l},99755:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
vendor: 8,915 bytes, line 1
1r(64652),r(6778),r(68428),r(11414),r(41135),r(28839),r(88910),r(25718),r(62877),r(82001),r(87562),r(23850),r(65813),r(3616),r(43053),r(19035),r(62107),r(21430),r(21587),r(48510),r(80107),r(33559),r(78089),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(49907),r(37753),r(30890),r(89352),r(26803),r(789),r(64284),r(7122),r(67998),r(71287);var i=s(r(32780)),a=s(r(7298)),l=r(12414);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){var i,a;i=n,a=r[n],(i=function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i))in e?Object.defineProperty(e,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(){f=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,n,r){e[n]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,n,r){return Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,r){return e[n]=r}}function d(e,n,r,o){var a,l,s=Object.create((n&&n.prototype instanceof y?n:y).prototype);return i(s,"_invoke",{value:(a=new S(o||[]),l="suspendedStart",function(n,o){if("executing"===l)throw Error("Generator is already running");if("completed"===l){if("throw"===n)throw o;return E()}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(void 0===i)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=void 0,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),h;var a=p(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var l=a.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,h)}(i,a);if(s){if(s===h)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===l)throw l="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l="executing";var u=p(e,r,a);if("normal"===u.type){if(l=a.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(l="completed",a.method="throw",a.arg=u.arg)}})}),s}function p(e,n,r){try{return{type:"normal",arg:e.call(n,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var h={};function y(){}function m(){}function v(){}var b={};c(b,l,function(){return this});var g=Object.getPrototypeOf,w=g&&g(g(C([])));w&&w!==n&&r.call(w,l)&&(b=w);var k=v.prototype=y.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(n){c(e,n,function(e){return this._invoke(n,e)})})}function P(e,n){var a;i(this,"_invoke",{value:function(i,l){function s(){return new n(function(a,s){!function i(a,l,s,u){var c=p(e[a],e,l);if("throw"!==c.type){var f=c.arg,d=f.value;return d&&"object"==o(d)&&r.call(d,"__await")?n.resolve(d.__await).then(function(e){i("next",e,s,u)},function(e){i("throw",e,s,u)}):n.resolve(d).then(function(e){f.value=e,s(f)},function(e){return i("throw",e,s,u)})}u(c.arg)}(i,l,a,s)})}return a=a?a.then(s,s):s()}})}function j(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function _(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return m.prototype=v,i(k,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},O(P.prototype),c(P.prototype,s,function(){return this}),e.AsyncIterator=P,e.async=function(n,r,o,i,a){void 0===a&&(a=Promise);var l=new P(d(n,r,o,i),a);return e.isGeneratorFunction(r)?l:l.next().then(function(e){return e.done?e.value:l.next()})},O(k),c(k,u,"Generator"),c(k,l,function(){return this}),c(k,"toString",function(){return"[object Generator]"}),e.keys=function(e){var n=Object(e),r=[];for(var o in n)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in n)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=void 0),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var l=a?a.completion:{};return l.type=e,l.arg=n,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(l)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),h},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var i=o.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function d(e,n,r,o,i,a,l){try{var s=e[a](l),u=s.value}catch(e){r(e);return}s.done?n(u):Promise.resolve(u).then(o,i)}function p(e){return function(){var n=this,r=arguments;return new Promise(function(o,i){var a=e.apply(n,r);function l(e){d(a,o,i,l,s,"next",e)}function s(e){d(a,o,i,l,s,"throw",e)}l(void 0)})}}var h=window.AbortController||r(21829);function y(e){return{uploadFile:function(n,r,o,i,s,u,c,d,y,m,v){var b=this;return p(f().mark(function s(){var u,c;return f().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return u=function(){var e=p(f().mark(function e(i,s,u){var c,d,p,y,m;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s.data.fileName=r,s.data.key=a.default.path([s.data.key,o,r]),!s.signed){e.next=29;break}if(!(v&&Array.isArray(s.signed))){e.next=23;break}return d=(c=new h).signal,"function"==typeof u&&u(function(){return c.abort()}),e.prev=7,e.next=10,b.uploadParts(n,s.signed,s.data.headers,s.partSizeActual,v,d);
1case 10:return p=e.sent,e.next=13,(0,l.withRetries)(b.completeMultipartUpload,[s,p,v],3);case 13:return e.abrupt("return");case 16:throw e.prev=16,e.t0=e.catch(7),c.abort(),b.abortMultipartUpload(s),e.t0;case 21:e.next=27;break;case 23:return i.openAndSetHeaders("PUT",s.signed),i.setRequestHeader("Content-Type",n.type),s.data.headers&&Object.keys(s.data.headers).forEach(function(e){i.setRequestHeader(e,s.data.headers[e])}),e.abrupt("return",n);case 27:e.next=34;break;case 29:for(m in y=new FormData,s.data)y.append(m,s.data[m]);return y.append("file",n),i.openAndSetHeaders("POST",s.url),e.abrupt("return",y);case 34:case"end":return e.stop()}},e,null,[[7,16]])}));return function(n,r,o){return e.apply(this,arguments)}}(),s.next=3,a.default.upload(e,"s3",u,n,r,o,i,d,y,m,v);case 3:return c=s.sent,s.abrupt("return",{storage:"s3",name:r,bucket:c.bucket,key:c.data.key,url:a.default.path([c.url,c.data.key]),acl:c.data.acl,size:n.size,type:n.type});case 5:case"end":return s.stop()}},s)}))()},completeMultipartUpload:function(n,r,o){return p(f().mark(function i(){var a,l,s,u;return f().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return a=o.changeMessage,l=e.getToken(),a("Completing AWS S3 multipart upload..."),i.next=5,fetch("".concat(e.formUrl,"/storage/s3/multipart/complete"),{method:"POST",headers:c({"Content-Type":"application/json"},l?{"x-jwt-token":l}:{}),body:JSON.stringify({parts:r,uploadId:n.uploadId,key:n.key})});case 5:return s=i.sent,i.next=8,s.text();case 8:if(u=i.sent,s.ok){i.next=11;break}throw Error(u||s.statusText);case 11:if(!(null!=u&&u.match(/Error/))){i.next=13;break}throw Error(u);case 13:case"end":return i.stop()}},i)}))()},abortMultipartUpload:function(n){var r=n.uploadId,o=n.key,i=e.getToken();fetch("".concat(e.formUrl,"/storage/s3/multipart/abort"),{method:"POST",headers:c({"Content-Type":"application/json"},i?{"x-jwt-token":i}:{}),body:JSON.stringify({uploadId:r,key:o})}).catch(function(e){return console.error("Error while aborting multipart upload:",e)})},uploadParts:function(e,n,r,o,a,l){var s=a.changeMessage,u=a.progressCallback;s("Chunking and uploading parts to AWS S3...");for(var c=[],f=function(i){var a=i*o,s=i<n.length?e.slice(a,(i+1)*o):e.slice(a),f=fetch(n[i],{method:"PUT",headers:r,body:s,signal:l}).then(function(e){if(e.ok){u(n.length);var r=e.headers.get("etag");if(!r)throw Error("ETag header not found; it must be exposed in S3 bucket CORS settings");return{ETag:r,PartNumber:i+1}}throw Error("Part no ".concat(i," failed with status ").concat(e.status))});c.push(f)},d=0;d<n.length;d++)f(d);return i.default.all(c)},downloadFile:function(n){return"public-read"!==n.acl?e.makeRequest("file","".concat(e.formUrl,"/storage/s3?bucket=").concat(a.default.trim(n.bucket),"&key=").concat(a.default.trim(n.key)),"GET"):i.default.resolve(n)}}}y.title="S3",n.default=y},63373:function(e,n,r){"use strict";r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.getFormioUploadAdapterPlugin=void 0,r(3616),r(37753),r(26803),r(37912),r(67998),r(62107),r(21430),r(6778),r(68428),r(21587);var o,i=r(38163),a=(o=r(32780))&&o.__esModule?o:{default:o};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}(o.key),o)}}var u=function(){var e,n;function r(e,n,o){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r),this.loader=e,this.fileService=n,this.component=o}return e=[{key:"upload",value:function(){var e=this;return this.loader.file.then(function(n){return new a.default(function(r,o){var a,l=e.component.component,s=l.uploadStorage,u=l.uploadUrl,c=l.uploadOptions,f=l.uploadDir,d=l.fileKey,p=[s,n,(0,i.uniqueName)(n.name),f||"",function(n){return e.onUploadProgress(n)}
1,u,c,d,null,null],h=(a=e.fileService).uploadFile.apply(a,p.concat([function(){return e.component.emit("fileUploadingStart",h)}])).then(function(n){return e.fileService.downloadFile(n)}).then(function(e){return r({default:e.url})}).catch(function(e){console.warn("An Error occured while uploading file",e),o(e)}).finally(function(){e.component.emit("fileUploadingEnd",h)})})})}},{key:"abort",value:function(){}},{key:"onUploadProgress",value:function(e){e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)}}],s(r.prototype,e),n&&s(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.getFormioUploadAdapterPlugin=function(e,n){return function(r){r.plugins.get("FileRepository").createUploadAdapter=function(r){return new u(r,e,n)}}}},91703:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(62107),r(21430),r(6778),r(68428),r(37753),r(21587),r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),r(94195),r(3616);var i,a=(i=r(32780))&&i.__esModule?i:{default:i};function l(e,n,r){var i;return(i=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"===o(i)?i:String(i))in e)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var s=function(e){var n=function(n,r,o,i,l,s,u){return new a.default(function(a,c){var f=new XMLHttpRequest,d="string"==typeof i,p=new FormData;if("function"==typeof s&&(f.upload.onprogress=s),"function"==typeof u&&u(function(){return f.abort()}),!d)for(var h in i)p.append(h,i[h]);f.onload=function(){if(f.status>=200&&f.status<300){var e={};try{e=(e="string"==typeof f.response?JSON.parse(f.response):{})&&e.data?e.data:e}catch(n){e={}}var o=e.hasOwnProperty("url")?e.url:"".concat(f.responseURL,"/").concat(r);o&&"/"===o[0]&&(o="".concat(n).concat(o)),a({url:o,data:e})}else c(f.response||"Unable to upload file")},f.onerror=function(){return c(f)},f.onabort=function(){return c(f)};var y=n+(n.indexOf("?")>-1?"&":"?");for(var m in o)y+="".concat(m,"=").concat(o[m],"&");"&"===y[y.length-1]&&(y=y.substr(0,y.length-1)),f.open("POST",y),d&&f.setRequestHeader("Content-Type","application/json");var v=e.getToken();if(v&&f.setRequestHeader("x-jwt-token",v),l){var b="string"==typeof l?JSON.parse(l):l;for(var g in b)if("headers"===g){var w=b.headers;for(var k in w)f.setRequestHeader(k,w[k])}else f[g]=b[g]}f.send(d?i:p)})};return{title:"Url",name:"url",uploadFile:function(r,o,i,a,s,u,c,f,d,p){var h=function(f){var d;return n(s,o,{baseUrl:encodeURIComponent(e.projectUrl),project:f?f.project:"",form:f?f._id:""},(l(d={},c,r),l(d,"name",o),l(d,"dir",i),d),u,a,p).then(function(n){return n.data=n.data||{},n.data.baseUrl=e.projectUrl,n.data.project=f?f.project:"",n.data.form=f?f._id:"",{storage:"url",name:o,url:n.url,size:r.size,type:r.type,data:n.data}})};return r.private&&e.formId?e.loadForm().then(function(e){return h(e)}):h()},deleteFile:function(e){return new a.default(function(n,r){var o=new XMLHttpRequest;o.open("DELETE",e.url,!0),o.onload=function(){o.status>=200&&o.status<300?n("File deleted"):r(o.response||"Unable to delete file")},o.send(null)})},downloadFile:function(r){return r.private?(e.submissionId&&r.data&&(r.data.submission=e.submissionId),n(r.url,r.name,{},JSON.stringify(r)).then(function(e){return e.data})):a.default.resolve(r)}}};s.title="Url",n.default=s},12414:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){i=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,n,r){e[n]=r.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",c=l.toStringTag||"@@toStringTag";function f(e,n,r){return Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{f({},"")}catch(e){f=function(e,n,r){return e[n]=r}}function d(e,n,r,o){var i,l,s=Object.create((n&&n.prototype instanceof y?n:y).prototype);return a(s,"_invoke",{value:(i=new S(o||[]),l="suspendedStart",function(n,o){if("executing"===l)throw Error("Generator is already running");if("completed"===l){if("throw"===n)throw o;return E()}for(i.method=n,i.arg=o;;){var a=i.delegate;if(a){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(void 0===i)return r.delegate=null,"throw"===o&&n.iterator.return&&
vendor: 12,611 bytes, line 1
1(r.method="return",r.arg=void 0,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),h;var a=p(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var l=a.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,h)}(a,i);if(s){if(s===h)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===l)throw l="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);l="executing";var u=p(e,r,i);if("normal"===u.type){if(l=i.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(l="completed",i.method="throw",i.arg=u.arg)}})}),s}function p(e,n,r){try{return{type:"normal",arg:e.call(n,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var h={};function y(){}function m(){}function v(){}var b={};f(b,s,function(){return this});var g=Object.getPrototypeOf,w=g&&g(g(C([])));w&&w!==n&&r.call(w,s)&&(b=w);var k=v.prototype=y.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(n){f(e,n,function(e){return this._invoke(n,e)})})}function P(e,n){var i;a(this,"_invoke",{value:function(a,l){function s(){return new n(function(i,s){!function i(a,l,s,u){var c=p(e[a],e,l);if("throw"!==c.type){var f=c.arg,d=f.value;return d&&"object"==o(d)&&r.call(d,"__await")?n.resolve(d.__await).then(function(e){i("next",e,s,u)},function(e){i("throw",e,s,u)}):n.resolve(d).then(function(e){f.value=e,s(f)},function(e){return i("throw",e,s,u)})}u(c.arg)}(a,l,i,s)})}return i=i?i.then(s,s):s()}})}function j(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function _(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return m.prototype=v,a(k,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:m,configurable:!0}),m.displayName=f(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,f(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},O(P.prototype),f(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(n,r,o,i,a){void 0===a&&(a=Promise);var l=new P(d(n,r,o,i),a);return e.isGeneratorFunction(r)?l:l.next().then(function(e){return e.done?e.value:l.next()})},O(k),f(k,c,"Generator"),f(k,s,function(){return this}),f(k,"toString",function(){return"[object Generator]"}),e.keys=function(e){var n=Object(e),r=[];for(var o in n)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in n)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=void 0),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var l=a?a.completion:{};return l.type=e,l.arg=n,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(l)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),h},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var i=o.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function l(e,n,r,o,i,a,l){try{var s=e[a](l),u=s.value}catch(e){r(e);return}s.done?n(u):Promise.resolve(u).then(o,i)}function s(e,n){return u.apply(this,arguments)}function u(){var e;return e=i().mark(function e(n,r){var o,l,u=arguments;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=u.length>2&&void 0!==u[2]?u[2]:3,l=u.length>3&&void 0!==u[3]?u[3]:null,o){e.next=4;break}throw Error(l);case 4:return e.abrupt("return",n.apply(void 0,function(e){if(Array.isArray(e))return a(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return a(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,n)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).catch(function(){return s(n,r,o-1,l)}));case 5:case"end":return e.stop()}},e)}),(u=function(){var n=this,r=arguments;return new Promise(function(o,i){var a=e.apply(n,r);function s(e){l(a,o,i,s,u,"next",e)}function u(e){l(a,o,i,s,u,"throw",e)}s(void 0)})}).apply(this,arguments)}r(70601),r(6778),r(68428),r(11414),r(41135),r(28839),r(88910),r(26343),r(7122),r(3616),r(789),r(64652),r(25718),r(62877),r(82001),r(87562),r(23850),r(65813),r(49907),r(30890),r(43053),r(19035),Object.defineProperty(n,"__esModule",{value:!0}),n.withRetries=s,r(37753),r(26803)},7298:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(62107),r(21430),r(6778),r(68428),r(21587),r(64652),r(89352),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),r(25718),r(62877),r(82001),r(87562),r(23850),r(65813),r(3616),r(43053),r(19035),r(7122),Object.defineProperty(n,"__esModule",{value:!0}),n.setXhrHeaders=n.default=void 0,r(55096),r(20680),r(48510),r(37753),r(71287),r(26803),r(67998);var i=l(r(32780)),a=l(r(71063));function l(e){return e&&e.__esModule?e:{default:e}}function s(){s=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,n,r){e[n]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function f(e,n,r){return Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{f({},"")}catch(e){f=function(e,n,r){return e[n]=r}}function d(e,n,r,o){var a,l,s=Object.create((n&&n.prototype instanceof y?n:y).prototype);return i(s,"_invoke",{value:(a=new S(o||[]),l="suspendedStart",function(n,o){if("executing"===l)throw Error("Generator is already running");if("completed"===l){if("throw"===n)throw o;return E()}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(void 0===i)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=void 0,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),h;var a=p(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var l=a.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,h)}(i,a);if(s){if(s===h)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===l)throw l="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l="executing";var u=p(e,r,a);if("normal"===u.type){if(l=a.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(l="completed",a.method="throw",a.arg=u.arg)}})}),s}function p(e,n,r){try{return{type:"normal",arg:e.call(n,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var h={};function y(){}function m(){}function v(){}var b={};f(b,l,function(){return this});var g=Object.getPrototypeOf,w=g&&g(g(C([])));w&&w!==n&&r.call(w,l)&&(b=w);var k=v.prototype=y.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(n){f(e,n,function(e){return this._invoke(n,e)})})}function P(e,n){var a;i(this,"_invoke",{value:function(i,l){function s(){return new n(function(a,s){!function i(a,l,s,u){var c=p(e[a],e,l);if("throw"!==c.type){var f=c.arg,d=f.value;return d&&"object"==o(d)&&r.call(d,"__await")?n.resolve(d.__await).then(function(e){i("next",e,s,u)},function(e){i("throw",e,s,u)}):n.resolve(d).then(function(e){f.value=e,s(f)},function(e){return i("throw",e,s,u)})}u(c.arg)}(i,l,a,s)})}return a=a?a.then(s,s):s()}})}function j(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function _(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return m.prototype=v,i(k,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:m,configurable:!0}),m.displayName=f(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,f(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},O(P.prototype),f(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(n,r,o,i,a){void 0===a&&(a=Promise);var l=new P(d(n,r,o,i),a);return e.isGeneratorFunction(r)?l:l.next().then(function(e){return e.done?e.value:l.next()})},O(k),f(k,c,"Generator"),f(k,l,function(){return this}),f(k,"toString",function(){return"[object Generator]"}),e.keys=function(e){var n=Object(e),r=[];for(var o in n)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in n)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
1h(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=void 0),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var l=a?a.completion:{};return l.type=e,l.arg=n,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(l)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),h},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var i=o.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e,n,r,o,i,a,l){try{var s=e[a](l),u=s.value}catch(e){r(e);return}s.done?n(u):Promise.resolve(u).then(o,i)}var f=function(e,n){var r=e.options.headers;if(r){var o={"Content-Disposition":!0,Authorization:!0};for(var i in r)o[i]&&n.setRequestHeader(i,r[i])}};n.setXhrHeaders=f;var d={trim:function(e){return(0,a.default)(e,"/")},path:function(e){return e.filter(function(e){return!!e}).map(d.trim).join("/")},upload:function(e,n,r,i,a,l,f,p,h,y,m){var v;return(v=s().mark(function c(){var v,b,g,w;return s().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return v=e.getToken(),s.prev=1,s.next=4,fetch("".concat(e.formUrl,"/storage/").concat(n),{method:"POST",headers:function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){var i,a;i=n,a=r[n],(i=function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i))in e?Object.defineProperty(e,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}({Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},v?{"x-jwt-token":v}:{}),body:JSON.stringify({name:d.path([l,a]),size:i.size,type:i.type,groupPermissions:p,groupId:h,multipart:m})});case 4:b=s.sent,s.next=11;break;case 7:throw s.prev=7,s.t0=s.catch(1),s.t0.networkError=!0,s.t0;case 11:if(b.ok){s.next=20;break}if(504!==b.status){s.next=16;break}throw(g=Error("Network request failed")).networkError=!0,g;case 16:return s.next=18,b.text();case 18:throw Error(s.sent||"Unable to sign file.");case 20:return s.next=22,b.json();case 22:return w=s.sent,s.next=25,d.makeXhrRequest(e,r,w,f,y);case 25:return s.abrupt("return",s.sent);case 26:case"end":return s.stop()}},c,null,[[1,7]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=v.apply(e,n);function a(e){c(i,r,o,a,l,"next",e)}function l(e){c(i,r,o,a,l,"throw",e)}a(void 0)})})()},makeXhrRequest:function(e,n,r,o,a){return new i.default(function(l,s){var u=new XMLHttpRequest;u.openAndSetHeaders=function(){var n;(n=u).open.apply(n,arguments),f(e,u)},i.default.resolve(n(u,r,a)).then(function(e){if(!e)return u=null,l(r);u.onerror=function(e){e.networkError=!0,s(e)},u.onabort=function(e){e.networkError=!0,s(e)},u.onabort=s,"function"==typeof o&&(u.upload.onprogress=o),"function"==typeof a&&a(function(){return u.abort()}),u.onload=function(){if(u.status>=200&&u.status<300)l(r);else if(504===u.status){var e=Error("Network request failed");e.networkError=!0,s(e)}else s(u.response||"Unable to upload file")},u.send(e)}).catch(s)})}};n.default=d},41880:function(e,n,r){"use strict";
1r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o=a(r(33401)),i=a(r(2890));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"templates",get:function(){return n._templates||(n._templates=o.default),n._templates}},{key:"addTemplate",value:function(e,r){n.templates[e]=r}},{key:"extendTemplate",value:function(e,r){n.templates[e]=i.default.merge({},n.templates[e],r)}},{key:"setTemplate",value:function(e,r){n.addTemplate(e,r)}},{key:"current",get:function(){return n._current?n._current:n.defaultTemplates},set:function(e){var r=n.current;n._current=i.default.merge({},r,e)}},{key:"defaultTemplates",get:function(){return n.templates.bootstrap}},{key:"framework",get:function(){return n._framework},set:function(e){n.templates.hasOwnProperty(e)&&(n._framework=e,n._current=n.templates[e])}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=s},40696:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";if(Array.prototype.join,e.mode.autocomplete){for(var o in r+='\n  <div class="address-autocomplete-container">\n    <input\n      ref="'+(null==(n=e.ref.searchInput)?"":n)+'"\n      ',e.inputAttributes)r+="\n        "+(null==(n=o)?"":n)+'="'+(null==(n=e.inputAttributes[o])?"":n)+'"\n      ';r+='\n      value="'+(null==(n=e.displayValue)?"":n)+'"\n      autocomplete="off"\n      aria-label="'+(null==(n=e.t("autocomplete"))?"":n)+'"\n    >\n    ',e.component.disableClearIcon||(r+='\n      <i\n        class="address-autocomplete-remove-value-icon fa fa-times"\n        tabindex="'+(null==(n=e.inputAttributes.tabindex)?"":n)+'"\n        ref="'+(null==(n=e.ref.removeValueIcon)?"":n)+'"\n      ></i>\n    '),r+="\n  </div>\n"}return r+="\n",e.self.manualModeEnabled&&(r+='\n  <div class="form-check checkbox">\n    <label class="form-check-label">\n      <input\n        ref="'+(null==(n=e.ref.modeSwitcher)?"":n)+'"\n        type="checkbox"\n        class="form-check-input"\n        tabindex="'+(null==(n=e.inputAttributes.tabindex)?"":n)+'"\n        ',e.mode.manual&&(r+="checked=true"),r+="\n        ",e.disabled&&(r+="disabled=true"),r+="\n      >
1\n      <span>"+(null==(n=e.component.switchToManualModeLabel)?"":n)+"</span>\n    </label>\n  </div>\n"),r+="\n",e.self.manualMode&&(r+='\n  <div ref="'+(null==(n=e.nestedKey)?"":n)+'">\n    '+(null==(n=e.children)?"":n)+"\n  </div>\n"),r+="\n"}},79728:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.displayValue?r+=null==(n=e.displayValue)?"":n:r+="-",r+="</div>\n"}},15406:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(40696)),i=a(r(79728));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},91338:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<div\n  ",e.attrs)r+="\n    "+(null==(n=o)?"":n)+'="'+(null==(n=e.attrs[o])?"":n)+'"\n  ';return r+="\n>\n  "+(null==(n=e.message)?"":n)+"\n  ",e.options.vpat&&(r+='\n    <span class="sr-only" id="hotkey-i-'+(null==(n=e.form._id)?"":n)+'">'+(null==(n=e.t("errorListHotkey"))?"":n)+"</span>\n  "),r+="\n</div>\n"}},52660:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(91338))&&o.__esModule?o:{default:o}).default};n.default=i},80823:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(n=e.sidebar)?"":n)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n    '+(null==(n=e.form)?"":n)+"\n  </div>\n</div>\n"}},33235:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(80823))&&o.__esModule?o:{default:o}).default};n.default=i},51084:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="builder-component" ref="dragComponent" tabindex="-1">\n  ',e.disableBuilderActions||(r+='\n    <div class="component-btn-group" data-noattach="true">\n      <div\n        role="button"\n        aria-label="Remove button. Click to remove component from the form"\n        tabindex="-1"\n        class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove"\n        ref="removeComponent"\n      >\n        <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Copy button. Click to copy component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-copy"\n        ref="copyComponent"\n      >\n        <i class="'+(null==(n=e.iconClass("copy"))?"":n)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Paste below button. Click to paste component below the current component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-paste"\n        ref="pasteComponent"\n      >\n        <i class="'+(null==(n=e.iconClass("save"))?"":n)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Edit json button. Click to edit json of the current component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" \n        ref="editJson"\n      >\n        <i class="'+(null==(n=e.iconClass("wrench"))?"":n)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Move button"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-move"\n        ref="moveComponent"\n      >\n        <i class="'+(null==(n=e.iconClass("move"))?"":n)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Edit button. Click to open component settings modal window"\n        tabindex="-1"\n        class="btn btn-x
1xs btn-secondary component-settings-button component-settings-button-edit"\n        ref="editComponent"\n      >\n        <i class="'+(null==(n=e.iconClass("cog"))?"":n)+'"></i>\n      </div>\n    </div>\n  '),r+="\n  "+(null==(n=e.html)?"":n)+"\n</div>\n"}},86018:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(51084))&&o.__esModule?o:{default:o}).default};n.default=i},72607:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="builder-components drag-container formio-builder-'+(null==(n=e.type)?"":n)+'" ref="'+(null==(n=e.key)?"":n)+'-container">\n  '+(null==(n=e.html)?"":n)+"\n</div>\n"}},71983:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(72607))&&o.__esModule?o:{default:o}).default};n.default=i},24965:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n  <div class="col col-sm-6">\n    <p class="lead">'+(null==(n=e.t(e.componentInfo.title,{_userInput:!0}))?"":n)+" "+(null==(n=e.t("Component"))?"":n)+"</p>\n  </div>\n  ",e.helplinks&&(r+='\n  <div class="col col-sm-6">\n    <div class="float-right" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(n=e.t(e.helplinks+e.componentInfo.documentation))?"":n)+'" target="_blank" rel="noopener noreferrer">\n        <i class="'+(null==(n=e.iconClass("new-window"))?"":n)+'"></i> '+(null==(n=e.t("Help"))?"":n)+"\n      </a>\n    </div>\n  </div>\n  "),r+='\n</div>\n<div class="row">\n  <div class="col component-edit-tabs ',e.preview?r+="col-sm-6":r+="col-sm-12",r+='">\n    <div ref="editForm">\n        '+(null==(n=e.editForm)?"":n)+"\n    </div>\n    ",e.preview||(r+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n      <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n    </div>\n    "),r+="\n  </div>\n  ",e.preview&&(r+='\n  <div class="col col-sm-6">\n    <div class="card panel preview-panel">\n      <div class="card-header">\n        <h4 class="card-title mb-0">'+(null==(n=e.t("Preview"))?"":n)+'</h4>\n      </div>\n      <div class="card-body">\n        <div class="component-preview" ref="preview">\n          '+(null==(n=e.preview)?"":n)+"\n        </div>\n      </div>\n    </div>\n    ",e.componentInfo.help&&(r+='\n    <div class="card card-body bg-light formio-settings-help">\n      '+(null==(n=e.t(e.componentInfo.help))?"":n)+"\n    </div>\n    "),r+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n      <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n    </div>\n  </div>\n  "),r+="\n</div>\n"}},19813:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(24965))&&o.__esModule?o:{default:o}).default};n.default=i},94227:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div\n  class="drag-and-drop-alert alert alert-info no-drag"\n  style="text-align:center;"\n  role="alert"\n  data-noattach="true"\n  data-position="'+(null==(n=e.position)?"":n)+'"\n>\n  '+(null==(n=e.t("Drag and Drop a form component"))?"":n)+"\n</div>\n"}},46828:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(94227))&&o.__esModule?o:{default:o}).default};n.default=i},84168:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div id="'+(null==(n=e.groupId)?"":n)+'" class="accordion builder-sidebar'+(n=e.scrollEnabled?" builder-sidebar_scroll":"")+'" ref="sidebar">\n  <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="'+(null==(n=e.t("Search f
1ield(s)"))?"":n)+'" />\n  <div ref="sidebar-groups">\n    ',e.groups.forEach(function(e){r+="\n      "+(null==(n=e)?"":n)+"\n    "}),r+="\n  </div>\n</div>\n"}},32909:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(84168))&&o.__esModule?o:{default:o}).default};n.default=i},20195:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="card form-builder-panel" ref="group-panel-'+(null==(n=e.groupKey)?"":n)+'">\n  <div class="card-header form-builder-group-header" id="heading-'+(null==(n=e.groupKey)?"":n)+'">\n    <h5 class="mb-0 mt-0">\n      <button\n        class="btn btn-block builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(n=e.groupKey)?"":n)+'"\n        data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n        aria-expanded="'+(null==(n=e.group.default)?"":n)+'"\n        aria-controls="group-'+(null==(n=e.groupKey)?"":n)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(n=e.t(e.group.title,{_userInput:!0}))?"":n)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(n=e.groupKey)?"":n)+'"\n    class="collapse '+(n=e.group.default?" show":"")+'"\n    data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n    data-default="'+(null==(n=e.group.default)?"":n)+'"\n    aria-labelledby="heading-'+(null==(n=e.groupKey)?"":n)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(n=e.groupKey)?"":n)+'" class="card-body no-drop p-2" ref="sidebar-container">\n      ',e.group.componentOrder.length||e.subgroups.length?(r+="\n        ",e.group.componentOrder&&e.group.componentOrder.forEach(function(o){r+='\n          <span\n            ref="sidebar-component"\n            data-group="'+(null==(n=e.groupKey)?"":n)+'"\n            data-key="'+(null==(n=e.group.components[o].key)?"":n)+'"\n            data-type="'+(null==(n=e.group.components[o].schema.type)?"":n)+'"\n            class="btn btn-primary btn-sm btn-block formcomponent drag-copy"\n            tabindex="'+(n=e.keyboardActionsEnabled?0:-1)+'"\n          >\n            ',e.group.components[o].icon&&(r+='\n              <i class="'+(null==(n=e.iconClass(e.group.components[o].icon))?"":n)+'" style="margin-right: 5px;"></i>\n            '),r+="\n            "+(null==(n=e.t(e.group.components[o].title,{_userInput:!0}))?"":n)+"\n          </span>\n        "}),r+="\n        "+(null==(n=e.subgroups.join(""))?"":n)+"\n      "):r+="\n        <div>"+(null==(n=e.t("No Matches Found"))?"":n)+"</div>\n      ",r+="\n    </div>\n  </div>\n</div>\n"}},55451:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(20195))&&o.__esModule?o:{default:o}).default};n.default=i},653:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(n=e.sidebar)?"":n)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n    <ol class="breadcrumb wizard-pages">\n        ',e.pages.forEach(function(o,i){r+='\n          <li id="'+(null==(n=o.key)?"":n)+'">\n            <span title="'+(null==(n=o.title)?"":n)+'" class="mr-2 badge ',i===e.self.page?r+="badge-primary":r+="badge-info",r+=' wizard-page-label" ref="gotoPage">'+(null==(n=o.title)?"":n)+"</span>\n          </li>\n        "}),r+='\n          <li class="wizard-add-page">\n            <span title="'+(null==(n=e.t("Create Page"))?"":n)+'" class="mr-2 badge badge-success wizard-page-label" ref="addPage">\n              <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t("Page"))?"":n)+'\n            </span>\n          </li>\n      </ol>\n    <div ref="form">\n      '+(null==(n=e.form)?"":n)+"\n    </div>\n  </div>\n</div>\n"}},13186:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(653))&&o.__esModule?o:{default:o}).default};n.default=i},54149:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<"+(null==(n=e.input.type)?"":n)+'\n  ref="button"\n  ',e.input.attr)r+="\n  "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n  ';return r+="\n  ",e.component.description&&(r+='\n    aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  '),r+="\n>
1\n",e.component.leftIcon&&(r+='<span class="'+(null==(n=e.component.leftIcon)?"":n)+'"></span>&nbsp;'),r+="\n"+(null==(n=e.input.content)?"":n)+"\n",e.component.tooltip&&(r+='\n  <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n'),r+="\n",e.component.rightIcon&&(r+='&nbsp;<span class="'+(null==(n=e.component.rightIcon)?"":n)+'"></span>'),r+="\n</"+(null==(n=e.input.type)?"":n)+'>\n<div ref="buttonMessageContainer">\n  <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},26366:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return"\n"}},20074:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(54149)),i=a(r(26366));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},83797:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+='<div class="form-check checkbox">\n  <label class="'+(null==(n=e.input.labelClass)?"":n)+' form-check-label">\n    <'+(null==(n=e.input.type)?"":n)+'\n      ref="input"\n      ',e.input.attr)r+="\n      "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n      ';return r+="\n      ",e.checked&&(r+="checked=true"),r+='\n      aria-required="'+(null==(n=e.component.validate.required)?"":n)+'"\n      ',e.component.description&&(r+='\n      aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n      '),r+="\n      >\n    ",e.self.labelIsHidden()||(r+="<span>"+(null==(n=e.input.label)?"":n)+"</span>"),r+="\n    "+(null==(n=e.input.content)?"":n)+"\n    </"+(null==(n=e.input.type)?"":n)+">\n  </label>\n  ",e.component.tooltip&&(r+='\n    <i ref="tooltip" tabindex="0" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n  '),r+="\n</div>\n"}},26344:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label class="'+(null==(n=e.input.labelClass)?"":n)+'">\n    '+(null==(n=e.input.content)?"":n)+"\n    ",e.self.labelIsHidden()||(r+="<span>"+(null==(n=e.input.label)?"":n)+"</span>"),r+='\n</label>\n<div ref="value">',e.checked?r+="True":r+="False",r+="</div>\n"}},9398:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(83797)),i=a(r(26344));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},9984:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.component.columns.forEach(function(o,i){r+='\n<div class="\n    col-'+(null==(n=o.size)?"":n)+"-"+(null==(n=o.currentWidth)?"":n)+"\n    col-"+(null==(n=o.size)?"":n)+"-offset-"+(null==(n=o.offset)?"":n)+"\n    col-"+(null==(n=o.size)?"":n)+"-push-"+(null==(n=o.push)?"":n)+"\n    col-"+(null==(n=o.size)?"":n)+"-pull-"+(null==(n=o.pull)?"":n)+'\n  " ref="'+(null==(n=e.columnKey)?"":n)+'">\n  '+(null==(n=e.columnComponents[i])?"":n)+"\n</div>\n"}),r+="\n"}},43916:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(9984))&&o.__esModule?o:{default:o}).default};n.default=i},18844:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div id="'+(null==(n=e.id)?"":n)+'" class="'+(null==(n=e.classes)?"":n)+'"',e.styles&&(r+=' styles="'+(null==(n=e.styles)?"":n)+'"'),r+=' ref="component">\n  ',e.visible&&(r+="\n  "+(null==(n=e.children)?"":n)+'\n  <div ref="messageContainer" class="formio-errors invalid-feedback"></div>\n  '),r+="\n</div>\n"}},57610:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(18844))&&o.__esModule?o:{default:o}).default};n.default=i},9780:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="formio-component-modal-wrapper formio-component-modal-wrapper-'+(null==(n=e.component.type)?"":n)+'" ref="componentModalWrapper">
1\n  <div ref="openModalWrapper"></div>\n  <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n    <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n    <div class="formio-dialog-content" aria-labelledby="ml-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'" ',e.self.isIE()||(r+=' role="dialog" '),r+=' ref="modalContents">\n      <label class="sr-only" id="ml-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'">'+(null==(n=e.t(e.component.label))?"":n)+(n=e.self.isIE()?", dialog":"")+"</label>\n      ",e.options.vpat?r+='\n      <button class="formio-dialog-close float-right" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n      ':r+='\n      <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n      ',r+='\n      <div ref="modalContents">\n        ',e.visible&&(r+="\n        "+(null==(n=e.children)?"":n)+"\n        "),r+='\n        <div class="formio-dialog-buttons">\n          ',e.options.vpat&&(r+='\n          <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">'+(null==(n=e.t("Cancel"))?"":n)+"</button>\n          "),r+='\n          <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">'+(null==(n=e.t("Save"))?"":n)+'</button>\n        </div>\n      </div>\n    </div>\n    <span class="sr-only" ref="modalLiveRegion" aria-live="assertive"></span>\n  </div>\n</div>\n'}},98952:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(9780))&&o.__esModule?o:{default:o}).default};n.default=i},9490:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return""+(null==(n=e.children.join(""))?"":n)+"\n"}},20223:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(9490))&&o.__esModule?o:{default:o}).default};n.default=i},94858:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div ref="'+(null==(n=e.nestedKey)?"":n)+'">\n  '+(null==(n=e.children)?"":n)+"\n</div>\n"}},66313:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(94858))&&o.__esModule?o:{default:o}).default};n.default=i},43848:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={"border-default":"","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active","formio-form-error":"formio-error-wrapper has-message","formio-form-alert":"alert alert-danger","formio-label-error":"","formio-input-error":"","formio-alert-danger":"alert alert-danger","formio-alert-success":"alert alert-success","formio-alert-warning":"alert alert-warning","formio-modal-cancel-button":"btn btn-danger formio-dialog-button","formio-modal-confirm-button":"btn btn-primary formio-dialog-button"}},45080:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-sm":"")+'\n    " ',e.component.layoutFixed&&(r+='style="table-layout: fixed;"'),r+=">\n  ",e.hasHeader&&(r+="\n  <thead>\n    <tr>\n      ",e.component.reorder&&(r+="<th></th>"),r+="\n      ",e.columns.forEach(function(o){r+='\n        <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n          '+(null==(n=o.hideLabel?"":e.t(o.label||o.title,{_userInput:!0}))?"":n)+"\n          ",o.tooltip&&(r+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(n=o.tooltip)?"":n)+'" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n        </th>\n      "}),r+="\n      ",e.hasExtraColumn&&(r+='\n      <th>
1\n        <span class="sr-only">'+(null==(n=e.t("Add/Remove"))?"":n)+"</span>\n        ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(r+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>'+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n        </button>\n        "),r+="\n      </th>\n      "),r+="\n    </tr>\n  </thead>\n  "),r+='\n  <tbody ref="'+(null==(n=e.datagridKey)?"":n)+'-tbody" data-key="'+(null==(n=e.datagridKey)?"":n)+'">\n    ',e.rows.forEach(function(o,i){r+="\n    ",e.hasGroups&&e.groups[i]&&(r+='\n    <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-group-header" class="datagrid-group-header'+(n=e.hasToggle?" clickable":"")+'">\n      <td\n        ref="'+(null==(n=e.datagridKey)?"":n)+'-group-label"\n        colspan="'+(null==(n=e.numColumns)?"":n)+'"\n        class="datagrid-group-label">'+(null==(n=e.groups[i].label)?"":n)+"</td>\n    </tr>\n    "),r+='\n    <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-row">\n      ',e.component.reorder&&(r+='\n        <td class="col-md-1">\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(n=e.datagridKey)?"":n)+'"></button>\n        </td>\n      '),r+="\n      ",e.columns.forEach(function(i){r+='\n        <td ref="'+(null==(n=e.datagridKey)?"":n)+'" ',i.key&&i.overlay&&i.overlay.width&&(r+=' style="width: '+(n=i.overlay.width+"px")+'"'),r+=" >\n          "+(null==(n=o[i.key])?"":n)+"\n        </td>\n      "}),r+="\n      ",e.hasExtraColumn&&(r+="\n        ",e.hasRemoveButtons&&(r+='\n        <td class="col-md-1">\n          <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-removeRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'" aria-label="'+(null==(n=e.t("remove"))?"":n)+'">\n            <i class="'+(null==(n=e.iconClass("remove-circle"))?"":n)+'"></i>\n          </button>\n        </td>\n        '),r+="\n        ",e.canAddColumn&&(r+='\n        <td ref="'+(null==(n=e.key)?"":n)+'-container" class="col-md-3">\n          '+(null==(n=e.placeholder)?"":n)+"\n        </td>\n        "),r+="\n      "),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n  ",!e.builder&&e.hasAddButton&&e.hasBottomSubmit&&(r+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(n=e.component.layoutFixed?e.numColumns:e.numColumns+1)?"":n)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),r+="\n</table>\n"}},28986:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-sm":"")+'\n    ">\n  ',e.hasHeader&&(r+="\n  <thead>\n    <tr>\n      ",e.columns.forEach(function(o){r+='\n        <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n          '+(null==(n=o.hideLabel?"":e.t(o.label||o.title,{_userInput:!0}))?"":n)+"\n          ",o.tooltip&&(r+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(n=o.tooltip)?"":n)+'" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n        </th>\n      "}),r+="\n    </tr>\n  </thead>\n  "),r+="\n  <tbody>\n    ",e.rows.forEach(function(o){r+="\n    <tr>\n      ",e.columns.forEach(function(i){r+='\n        <td ref="'+(null==(n=e.datagridKey)?"":n)+'">\n          '+(null==(n=o[i.key])?"":n)+"\n        </td>\n      "}),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},80972:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(45080)),i=a(r(28986));
vendor: 14,706 bytes, line 1
1function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},21462:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row" role="group"\n  ',e.component.hideLabel?r+='\n  aria-label="'+(null==(n=e.component.label)?"":n)+'"\n  ':r+='\n  aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  ',r+="\n  ",e.component.description&&(r+='\n  aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  '),r+="\n  >\n  ",e.dayFirst&&e.showDay&&(r+='\n  <div class="col col-xs-3">\n    ',e.component.hideInputLabels||(r+='\n    <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="',e.component.fields.day.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Day"))?"":n)+"</label>\n    "),r+="\n    <div>"+(null==(n=e.day)?"":n)+"</div>\n  </div>\n  "),r+="\n  ",e.showMonth&&(r+='\n  <div class="col col-xs-4">\n    ',e.component.hideInputLabels||(r+='\n    <label for="'+(null==(n=e.component.key)?"":n)+'-month" class="',e.component.fields.month.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Month"))?"":n)+"</label>\n    "),r+="\n    <div>"+(null==(n=e.month)?"":n)+"</div>\n  </div>\n  "),r+="\n  ",!e.dayFirst&&e.showDay&&(r+='\n  <div class="col col-xs-3">\n    ',e.component.hideInputLabels||(r+='\n    <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="',e.component.fields.day.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Day"))?"":n)+"</label>\n    "),r+="\n    <div>"+(null==(n=e.day)?"":n)+"</div>\n  </div>\n  "),r+="\n  ",e.showYear&&(r+='\n  <div class="col col-xs-5">\n    ',e.component.hideInputLabels||(r+='\n    <label for="'+(null==(n=e.component.key)?"":n)+'-year" class="',e.component.fields.year.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Year"))?"":n)+"</label>\n    "),r+="\n    <div>"+(null==(n=e.year)?"":n)+"</div>\n  </div>\n  "),r+='\n</div>\n<input name="ctx.data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},90230:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(21462))&&o.__esModule?o:{default:o}).default};n.default=i},57094:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n  <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n  <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n    <div ref="dialogContents"></div>\n    <button class="formio-dialog-close float-right btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n  </div>\n</div>\n'}},46672:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(57094))&&o.__esModule?o:{default:o}).default};n.default=i},95086:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="editgrid-listgroup list-group\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.bordered?"table-bordered":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-sm":"")+'\n    ">\n  ',e.header&&(r+='\n  <li class="list-group-item list-group-header">\n    '+(null==(n=e.header)?"":n)+"\n  </li>\n  "),r+="\n  ",e.rows.forEach(function(o,i){r+='\n  <li class="list-group-item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n    '+(null==(n=o)?"":n)+"\n    ",e.openRows[i]&&!e.readOnly&&(r+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n      ",e.component.removeRow&&(r+='\n      <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n      "),r+="\n    </div>\n    "),r+='\n    <div class="has-error">\n      <div class="editgrid-row-error">\n        '+(null==(n=e.errors[i])?"":n)+"\n      </div>\n    </div>\n  </li>\n  "}),r+="\n  ",e.footer&&(r+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(n=e.footer)?"":n)+"\n  </li>\n  "),r+="\n</ul>\n",!e.readOnly&&e.hasAddButton&&(r+='\n<button class="btn btn-primary" ref="'+(null==(n=e.ref.addRow)?"":n)+'">\n  <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n</button>\n"),r+="\n"}},53732:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="editgrid-listgroup list-group\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.bordered?"table-bordered":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-sm":"")+'\n    ">\n  ',e.header&&(r+='\n  <li class="list-group-item list-group-header">\n    '+(null==(n=e.header)?"":n)+"\n  </li>\n  "),r+="\n  ",e.rows.forEach(function(o,i){r+='\n  <li class="list-group-item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n    '+(null==(n=o)?"":n)+"\n    ",e.openRows[i]&&!e.readOnly&&(r+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n      ",e.component.removeRow&&(r+='\n      <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n      "),r+="\n    </div>\n    "),r+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(n=e.errors[i])?"":n)+"\n      </div>\n    </div>\n  </li>\n  "}),r+="\n  ",e.footer&&(r+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(n=e.footer)?"":n)+"\n  </li>\n  "),r+="\n</ul>\n"}},11228:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(95086)),i=a(r(53732));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},57529:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="editgrid-table-container">\n  <div class="table-responsive">\n    <table class="table\n      '+(n=e.component.striped?"table-striped":"")+"\n      "+(n=e.component.bordered?"table-bordered":"")+"\n      "+(n=e.component.hover?"table-hover":"")+"\n      "+(n=e.component.condensed?"table-sm":"")+'\n    ">\n      ',e.header&&(r+='\n      <thead class="editgrid-table-head">\n        '+(null==(n=e.header)?"":n)+"\n      </thead>\n      "),r+='\n      <tbody class="editgrid-table-body">\n        ',e.rows.forEach(function(o,i){r+='\n        <tr ref="'+(null==(n=e.ref.row)?"":n)+'">\n          '+(null==(n=o)?"":n)+"\n          ",e.openRows[i]&&!e.readOnly&&(r+='\n            <td class="editgrid-table-column">\n              <div class="editgrid-actions">\n                <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n                ",e.component.removeRow&&(r+='\n                <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n                "),r+="\n              </div>\n            </td>\n          "),r+="\n          ",e.errors[i]&&(r+='\n          <td class="editgrid-table-column">\n            <div class="has-error">\n              <div class="editgrid-row-error help-block">\n                '+(null==(n=e.errors[i])?"":n)+"\n              </div>\n            </div>\n          </td>\n          "),r+="\n        </tr>\n        "}),r+="\n      </tbody>\n      ",e.footer&&(r+="\n      <tfoot>\n        <tr>\n          "+(null==(n=e.footer)?"":n)+"\n        </tr>\n      <tfoot>\n      "),r+="\n    </table>\n  </div>\n</div>\n",!e.readOnly&&e.hasAddButton&&(r+='\n<button class="btn btn-primary" ref="'+(null==(n=e.ref.addRow)?"":n)+'">\n  <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>\n  '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n</button>\n"),r+="\n"}},23968:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="editgrid-table-container">\n  <div class="table-responsive">\n    <table class="table\n      '+(n=e.component.striped?"table-striped":"")+"\n      "+(n=e.component.bordered?"table-bordered":"")+"\n      "+(n=e.component.hover?"table-hover":"")+"\n      "+(n=e.component.condensed?"table-sm":"")+'\n    ">\n      ',e.header&&(r+='\n      <thead class="editgrid-table-head">\n        '+(null==(n=e.header)?"":n)+"\n      </thead>\n      "),r+='\n      <tbody class="editgrid-table-body">\n        ',e.rows.forEach(function(o,i){r+='\n        <tr ref="'+(null==(n=e.ref.row)?"":n)+'">\n          '+(null==(n=o)?"":n)+"\n          ",e.openRows[i]&&!e.readOnly&&(r+='\n          <td class="editgrid-table-column">\n            <div class="editgrid-actions">\n              <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n              ",e.component.removeRow&&(r+='\n              <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n              "),r+="\n            </div>\n          </td>\n          "),r+="\n          ",e.errors[i]&&(r+='\n          <td class="editgrid-table-column">\n            <div class="has-error">\n              <div class="editgrid-row-error help-block">\n                '+(null==(n=e.errors[i])?"":n)+"\n              </div>\n            </div>\n          </td>\n          "),r+="\n        </tr>\n        "}),r+="\n      </tbody>\n      ",e.footer&&(r+="\n      <tfoot>\n        <tr>\n          "+(null==(n=e.footer)?"":n)+"\n         </tr>\n      <tfoot>\n      "),r+="\n    </table>\n  </div>\n</div>\n"}},85025:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(57529)),i=a(r(23968));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},675:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+="<p>"+(null==(n=e.t("error"))?"":n)+"\n  ",e.options.vpat&&(r+='\n  <span ref="errorTooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+'" tabindex="0"></span>\n  '),r+="\n</p>\n<ul>\n  ",e.errors.forEach(function(e){r+='\n  <li>\n    <span\n      data-component-key = "'+(null==(n=e.keyOrPath)?"":n)+'"\n      ref = "errorRef"\n      tabIndex = "0"\n      role="link"\n    >\n      '+(null==(n=e.message)?"":n)+"\n    </span>\n  </li>\n  "}),r+="\n</ul>\n"}},29421:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(675))&&o.__esModule?o:{default:o}).default};n.default=i},35941:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="field-wrapper flex-fill\n  '+(n=e.isRightPosition?"field-wrapper--reverse":"")+'">\n  ',e.label.hidden||(r+='\n    <div class="field-label\n      '+(n=e.isRightAlign?"field-label--right":"")+'"\n      style="'+(null==(n=e.labelStyles)?"":n)+'">\n    '+(null==(n=e.labelMarkup)?"":n)+"\n    </div>\n  "),r+="\n\n  ",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n    <div class="field-label\n      '+(n=e.isRightAlign?"field-label--right":"")+'"\n      style="'+(null==(n=e.labelStyles)?"":n)+'">\n      <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n    </div>\n  '),r+='\n\n  <div class="field-content" style="'+(null==(n=e.contentStyles)?"":n)+'">\n    '+(null==(n=e.element)?"":n)+"\n  </div>\n</div>\n\n",e.component.description&&(r+='\n  <div class="form-text text-muted">'+(null==(n=e.t(e.component.description,{_userInput:!0}))?"":n)+"</div>\n"),r+="\n"}},44328:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(r+="\n  "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n  <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n'),r+="\n\n"+(null==(n=e.element)?"":n)+"\n\n",e.label.hidden||"bottom"!==e.label.labelPosition||(r+="\n  "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n",e.component.description&&(r+='\n  <div id="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'" class="form-text text-muted">'+(null==(n=e.t(e.component.description,{_userInput:!0}))?"":n)+"</div>\n"),r+="\n"}},91737:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(44328)),i=a(r(35941));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,align:i.default};n.default=l},61301:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+="<fieldset>\n  ",e.component.legend&&(r+='\n  <legend ref="header" class="'+(n=e.component.collapsible?"formio-clickable":"")+'">\n    '+(null==(n=e.t(e.component.legend,{_userInput:!0}))?"":n)+"\n    ",e.component.tooltip&&(r+='\n      <i ref="tooltip" tabindex="0" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n    '),r+="\n  </legend>\n  "),r+="\n  ",e.collapsed||(r+='\n  <div class="fieldset-body" ref="'+(null==(n=e.nestedKey)?"":n)+'">\n    '+(null==(n=e.children)?"":n)+"\n  </div>\n  "),r+="\n</fieldset>\n"}},66419:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(61301))&&o.__esModule?o:{default:o}).default};n.default=i},9597:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";
vendor: 4,306 bytes, line 1
1return Array.prototype.join,e.options.vpat&&(r+='\n  <span tabindex="-1" class="sr-only" id="invisible-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"></span>\n'),r+="\n",e.self.imageUpload?(r+="\n  <div>\n    ",e.files.forEach(function(o){r+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(n=o.originalName||o.name)?"":n)+'" style="width:'+(null==(n=e.component.imageSize)?"":n)+'px">\n          ',e.disabled||(r+='\n            <i tabindex="0" class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i>\n          '),r+="\n        </span>\n      </div>\n    "}),r+="\n  </div>\n"):(r+="\n  ",e.options.vpat&&(r+="\n    <div>"+(null==(n=e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")?"":n)+"</div>\n  "),r+='\n  <ul class="list-group list-group-striped">\n    <li class="list-group-item list-group-header hidden-xs hidden-sm">\n      <div class="row">\n        ',e.disabled||(r+='\n          <div class="col-md-1"></div>\n        '),r+='\n        <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='"><strong>'+(null==(n=e.t("File Name"))?"":n)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(n=e.t("Size"))?"":n)+"</strong></div>\n        ",e.self.hasTypes&&(r+='\n          <div class="col-md-2"><strong>'+(null==(n=e.t("Type"))?"":n)+"</strong></div>\n        "),r+="\n      </div>\n    </li>\n    ",e.files.forEach(function(o){r+='\n      <li class="list-group-item">\n        <div class="row">\n          ',e.disabled||(r+='\n            <div class="col-md-1"><i tabindex="0" class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i></div>\n          '),r+='\n          <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='">\n            ',e.component.uploadOnly?r+="\n              "+(null==(n=o.originalName||o.name)?"":n)+"\n            ":r+='\n              <a href="'+(null==(n=o.url||"#")?"":n)+'" target="_blank" ref="fileLink">\n                <span class="sr-only">'+(null==(n=e.t("Press to open "))?"":n)+"</span>"+(null==(n=o.originalName||o.name)?"":n)+"\n              </a>\n            ",r+='\n          </div>\n          <div class="col-md-2">'+(null==(n=e.fileSize(o.size))?"":n)+"</div>\n          ",e.self.hasTypes&&!e.disabled&&(r+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType">\n                ',e.component.fileTypes.map(function(i){r+='\n                  <option class="test" value="'+(null==(n=i.value)?"":n)+'" ',i.label===o.fileType&&(r+='selected="selected"'),r+=">"+(null==(n=e.t(i.label))?"":n)+"</option>\n                "}),r+="\n              </select>\n            </div>\n          "),r+="\n          ",e.self.hasTypes&&e.disabled&&(r+='\n          <div class="col-md-2">'+(null==(n=o.fileType)?"":n)+"</div>\n          "),r+="\n        </div>\n      </li>\n    "}),r+="\n  </ul>\n"),r+="\n",e.disabled||!e.component.multiple&&e.files.length||(r+="\n  ",e.self.useWebViewCamera?r+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(n=e.t("Gallery"))?"":n)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Camera"))?"":n)+"</button>\n    </div>\n  ":e.self.cameraMode?r+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Take Picture"))?"":n)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(n=e.t("Switch to file upload"))?"":n)+"</button>\n  ":(r+='\n    <div class="fileSelector" ref="fileDrop" '+(n=e.fileDropHidden?"hidden":"")+'>\n      <i class="'+(null==(n=e.iconClass("cloud-upload"))?"":n)+'"></i> '+(null==(n=e.t("Drop files to attach,"))?"":n)+"\n        ",e.self.imageUpload&&e.component.webcam&&(r+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(n=e.t("use camera"))?"":n)+"</a>\n        "),r+="\n        "+(null==(n=e.t("or"))?"":n)+'\n        <a href="#" ref="fileBrowse" class="browse">
1\n          '+(null==(n=e.t("browse"))?"":n)+'\n          <span class="sr-only">\n            '+(null==(n=e.t("Browse to attach file for "+e.component.label+". "+(e.component.description?e.component.description+". ":"")+(e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")))?"":n)+'\n          </span>\n        </a>\n      <div ref="fileProcessingLoader" class="loader-wrapper">\n        <div class="loader text-center"></div>\n      </div>\n    </div>\n  '),r+="\n"),r+="\n",e.statuses.forEach(function(o){r+='\n  <div class="file '+(n="error"===e.statuses.status?" has-error":"")+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(n=o.originalName)?"":n)+'\n        <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="fileStatusRemove">\n          <span class="sr-only">'+(null==(n=e.t("Remove button. Press to remove "+o.originalName))?"":n)+'</span>\n          <span class="sr-only">'+(null==(n=o.message?o.message.replace(";","."):"")?"":n)+'</span>\n        </i>\n      </div>\n      <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(n=e.fileSize(o.size))?"":n)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',"progress"===o.status?r+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(n=o.progress)?"":n)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(n=o.progress)?"":n)+'%">\n              <span class="sr-only">'+(null==(n=o.progress)?"":n)+"% "+(null==(n=e.t("Complete"))?"":n)+"</span>\n            </div>\n          </div>\n        ":"error"===o.status?r+='\n          <div class="alert alert-danger bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n        ":r+='\n          <div class="bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n        ",r+="\n      </div>\n    </div>\n  </div>\n"}),r+="\n",(!e.component.storage||e.support.hasWarning)&&(r+='\n  <div class="alert alert-warning">\n    ',e.component.storage||(r+="\n      <p>"+(null==(n=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":n)+"</p>\n    "),r+="\n    ",e.support.filereader||(r+="\n      <p>"+(null==(n=e.t("File API & FileReader API not supported."))?"":n)+"</p>\n    "),r+="\n    ",e.support.formdata||(r+="\n      <p>"+(null==(n=e.t("XHR2's FormData is not supported."))?"":n)+"</p>\n    "),r+="\n    ",e.support.progress||(r+="\n      <p>"+(null==(n=e.t("XHR2's upload progress isn't supported."))?"":n)+"</p>\n    "),r+="\n  </div>\n"),r+="\n"}},20439:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(9597))&&o.__esModule?o:{default:o}).default};n.default=i},32444:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+="<"+(null==(n=e.tag)?"":n)+' class="formio-component-htmlelement '+(null==(n=e.component.className)?"":n)+'" ref="html"\n  ',e.attrs.forEach(function(e){r+="\n    "+(null==(n=e.attr)?"":n)+'="'+(null==(n=e.value)?"":n)+'"\n  '}),r+="\n>"+(null==(n=e.t(e.content))?"":n),e.singleTags&&-1!==e.singleTags.indexOf(e.tag)||(r+="</"+(null==(n=e.tag)?"":n)+">"),r+="\n"}},3183:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(32444))&&o.__esModule?o:{default:o}).default};n.default=i},56212:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<i ref="'+(null==(n=e.ref)?"":n)+'" class="'+(null==(n=e.className)?"":n)+'" style="'+(null==(n=e.styles)?"":n)+'">'+(null==(n=e.content)?"":n)+"</i>\n"}},78484:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(56212))&&o.__esModule?o:{default:o}).default};n.default=i},35701:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(67998),n.default=function(e,n,r){if("fa"===e)switch(n){case"save":n="download";break;case"zoom-in":n="search-plus";break;case"zoom-out":n="search-minus";break;case"question-sign":n="question-circle";break;case"remove-circle":n="times-circle-o";break;case"new-window":n="window-restore";break;case"move":n="arrows";break;case"time":n="clock-o"}return r?"".concat(e," ").concat(e,"-").concat(n," ").concat(e,"-spin"):"".concat(e," ").concat(e,"-").concat(n)}},41074:function(e,n,r){"use strict";r(64652),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(889
110),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(45399),r(37753),r(45945),r(62107),r(21430),r(6778),r(68428),r(21587);var o=ey(r(15406)),i=ey(r(33235)),a=ey(r(86018)),l=ey(r(71983)),s=ey(r(19813)),u=ey(r(46828)),c=ey(r(32909)),f=ey(r(55451)),d=ey(r(13186)),p=ey(r(20074)),h=ey(r(9398)),y=ey(r(43916)),m=ey(r(57610)),v=ey(r(98952)),b=ey(r(20223)),g=ey(r(45131)),w=ey(r(66313)),k=ey(r(80972)),O=ey(r(90230)),P=ey(r(46672)),j=ey(r(11228)),_=ey(r(85025)),S=ey(r(91737)),C=ey(r(66419)),E=ey(r(20439)),x=ey(r(3183)),R=ey(r(78484)),M=ey(r(35701)),T=ey(r(40783)),A=ey(r(85654)),D=ey(r(89351)),V=ey(r(67765)),I=ey(r(43531)),L=ey(r(91427)),N=ey(r(38795)),F=ey(r(57018)),B=ey(r(50851)),z=ey(r(5243)),U=ey(r(9835)),q=ey(r(25416)),K=ey(r(45354)),H=ey(r(12586)),W=ey(r(65543)),G=ey(r(73859)),Y=ey(r(58922)),J=ey(r(40063)),Z=ey(r(32642)),X=ey(r(22942)),Q=ey(r(36562)),ee=ey(r(72133)),et=ey(r(47346)),en=ey(r(52542)),er=ey(r(7305)),eo=ey(r(37514)),ei=ey(r(52799)),ea=ey(r(31414)),el=ey(r(2795)),es=ey(r(91322)),eu=ey(r(81570)),ec=ey(r(12998)),ef=ey(r(19066)),ed=ey(r(43848)),ep=ey(r(29421)),eh=ey(r(52660));function ey(e){return e&&e.__esModule?e:{default:e}}function em(e){return(em="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ev(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function eb(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ev(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=function(e){var n=function(e,n){if("object"!==em(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==em(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===em(n)?n:String(n)}(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ev(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var eg=eb(eb({transform:function(e,n){return n&&"class"===e&&this.cssClasses.hasOwnProperty(n.toString())?this.cssClasses[n.toString()]:n},defaultIconset:"fa",iconClass:M.default,cssClasses:ed.default,address:o.default,builder:i.default,builderComponent:a.default,builderComponents:l.default,builderEditForm:s.default,builderPlaceholder:u.default,builderSidebar:c.default,builderSidebarGroup:f.default,builderWizard:d.default,button:p.default,checkbox:h.default,columns:y.default,component:m.default,componentModal:v.default,components:b.default,tableComponents:g.default,container:w.default,datagrid:k.default,day:O.default,dialog:P.default,editgrid:j.default,editgridTable:_.default,field:S.default,fieldset:C.default,file:E.default,html:x.default,icon:R.default,input:T.default,label:A.default,loader:D.default,loading:V.default,map:I.default,message:L.default,modaledit:F.default,modaldialog:N.default,modalPreview:B.default,multipleMasksInput:z.default,multiValueRow:U.default,multiValueTable:q.default,panel:K.default,pdf:H.default,pdfBuilder:W.default,pdfBuilderUpload:G.default,radio:Y.default,resourceAdd:J.default,select:Z.default,selectOption:X.default,signature:Q.default,survey:ee.default,tab:et.default,table:en.default,tree:er.default},eo.default),{},{webform:ei.default,well:ea.default,wizard:el.default,wizardHeader:es.default,wizardHeaderClassic:eu.default,wizardHeaderVertical:ec.default,wizardNav:ef.default,errorsList:ep.default,alert:eh.default});n.default=eg},46831:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";if(Array.prototype.join,(e.prefix||e.suffix)&&(r+='\n<div class="input-group">\n  '),r+="\n  ",e.prefix&&(r+='\n    <div class="input-group-prepend" ref="prefix">
1\n      <span class="input-group-text">\n        ',e.prefix instanceof HTMLElement?r+="\n          "+(null==(n=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":n)+"\n        ":r+="\n          "+(null==(n=e.t(e.prefix,{_userInput:!0}))?"":n)+"\n        ",r+="\n      </span>\n    </div>\n  "),r+="\n  ",!e.component.editor&&!e.component.wysiwyg){for(var o in r+="\n    <"+(null==(n=e.input.type)?"":n)+'\n      ref="'+(null==(n=e.input.ref?e.input.ref:"input")?"":n)+'"\n      ',e.input.attr)r+="\n        "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n      ';r+='\n      id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n      aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+" ",e.component.description&&(r+="d-"+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)),r+='"\n      aria-required="'+(null==(n="input"!==e.input.ref&&e.input.ref?e.component.fields&&e.component.fields[e.input.ref]&&e.component.fields[e.input.ref].required||!1:e.component.validate.required)?"":n)+'"\n    >'+(null==(n=e.input.content)?"":n)+"</"+(null==(n=e.input.type)?"":n)+">\n    ",e.hasValueMaskInput&&(r+='\n      <input ref="valueMaskInput" />\n    '),r+="\n"}return r+="\n",(e.component.editor||e.component.wysiwyg)&&(r+='\n  <div ref="input"></div>\n'),r+="\n","datetime"===e.component.type&&(r+='\n<span aria-live="assertive" id="'+(null==(n=e.instance.id)?"":n)+'-liveRegion" class="sr-only" ref="liveRegion"></span>\n'),r+="\n",e.suffix&&(r+='\n  <div class="input-group-append" ref="suffix">\n    <span class="input-group-text">\n      ',e.suffix instanceof HTMLElement?r+="\n        "+(null==(n=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":n)+"\n      ":r+="\n        "+(null==(n=e.t(e.suffix,{_userInput:!0}))?"":n)+"\n      ",r+="\n    </span>\n  </div>\n"),r+="\n",(e.prefix||e.suffix)&&(r+="\n  </div>\n"),r+="\n",(e.component.showCharCount||e.component.showWordCount)&&(r+='\n<div class="form-text '+(n=e.component.description?"pull-right":"text-right")+'">\n  ',e.component.showCharCount&&(r+='\n  <span class="text-muted" ref="charcount" aria-live="polite"></span>\n  '),r+="\n  ",e.component.showWordCount&&(r+='\n  <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n  '),r+="\n</div>\n"),r+="\n"}},17533:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.value)?"":n:r+="-",r+="</div>\n"}},40783:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(46831)),i=a(r(17533));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},96061:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label\n  ref="label"\n  class="col-form-label '+(null==(n=e.label.className)?"":n)+'"\n  for="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  id="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n>\n  '+(null==(n=e.t(e.component.label,{_userInput:!0}))?"":n)+"\n  ",("number"===e.component.type||"phoneNumber"===e.component.type||"currency"===e.component.type)&&(r+='\n    <span class="sr-only">, '+(null==(n=e.t("numeric only"))?"":n)+",</span>\n  "),r+="\n  ",e.component.tooltip&&(r+='\n    <i ref="tooltip" tabindex="0" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n  '),r+="\n</label>\n"}},85654:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(96061))&&o.__esModule?o:{default:o}).default};n.default=i},48124:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<div class="formio-loader">\n  <div class="loader-wrapper">\n    <div class="loader text-center"></div>\n  </div> \n</div>\n'}},89351:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(48124))&&o.__esModule?o:{default:o}).default};n.default=i},1225:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return"Loading...\n"}},67765:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(1225))&&o.__esModule?o:{default:o}).default};n.default=i},88427:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div id="'+(null==(n=e.mapId)?"":n)+'" style="min-height: 300px; height: calc(100vh - 600px);" ref="gmapElement"></div>\n'}},43531:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(88427))&&o.__esModule?o:{default:o}).default};n.default=i},85938:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div id="e-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.key)?"":n)+'" class="form-text '+(null==(n=e.level||"error")?"":n)+'">'+(null==(n=e.message)?"":n)+"</div>\n"}},91427:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(85938))&&o.__esModule?o:{default:o}).default};n.default=i},37352:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<label id="l-'+(null==(n=e.component.key)?"":n)+'" class="control-label '+(null==(n=e.label.className)?"":n)+'">\n  '+(null==(n=e.t(e.component.label,{_userInput:!0}))?"":n)+'<span ref="modalLabelValue" class="sr-only">. '+(null==(n="signature"===e.component.type?e.self.getValueAsString(e.previewText):e.previewText)?"":n)+'</span>\n</label><br>
1\n<span class="sr-only" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n  lang="en"\n  class="btn btn-light btn-md open-modal-button form-control '+(null==(n=e.openModalBtnClasses||"")?"":n)+'"\n  ref="openModal"\n  aria-labelledby="l-'+(null==(n=e.component.key)?"":n)+'"\n>\n  '+(null==(n=e.previewText)?"":n)+'\n</button>\n<div class="formio-errors invalid-feedback">\n  '+(null==(n=e.messages)?"":n)+"\n</div>\n"}},50851:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(37352))&&o.__esModule?o:{default:o}).default};n.default=i},33271:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio-dialog formio-dialog-theme-default formio-modaledit-dialog">\n  <div ref="overlay" class="formio-dialog-overlay"></div>\n  <div ref="content" class="formio-modaledit-content">\n    <button\n      ref="close"\n      type="button"\n      role="button"\n      class="btn btn-primary btn-xs formio-modaledit-close">\n      '+(null==(n=e.t("Close"))?"":n)+'\n    </button>\n    <div ref="inner" class="reset-margins"></div>\n  </div>\n</div>\n'}},38795:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(33271))&&o.__esModule?o:{default:o}).default};n.default=i},76670:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div ref="container" class="formio-modaledit-view-container">\n  <button\n    ref="edit"\n    type="button"\n    role="button"\n    class="btn btn-xxs btn-warning formio-modaledit-edit">\n    <i class="'+(null==(n=e.iconClass("edit"))?"":n)+'"></i>\n  </button>\n  <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(n=e.content)?"":n)+"</div>\n</div>\n"}},57018:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(76670))&&o.__esModule?o:{default:o}).default};n.default=i},59316:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<tr ref="row">\n  <td>\n    '+(null==(n=e.element)?"":n)+"\n  </td>\n  ",e.disabled||(r+='\n  <td>\n    <button type="button" class="btn btn-secondary" ref="removeRow">\n      <i class="'+(null==(n=e.iconClass("remove-circle"))?"":n)+'"></i>\n    </button>\n  </td>\n  '),r+="\n</tr>\n"}},9835:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(59316))&&o.__esModule?o:{default:o}).default};n.default=i},38898:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-bordered">\n  <tbody>\n  '+(null==(n=e.rows)?"":n)+"\n  ",e.disabled||(r+='\n  <tr>\n    <td colspan="2">\n      <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.addAnother,{_userInput:!0}))?"":n)+"</button>\n    </td>\n  </tr>\n  "),r+="\n  </tbody>\n</table>\n"}},25416:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(38898))&&o.__esModule?o:{default:o}).default};n.default=i},94628:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+='<div\n  class="input-group formio-multiple-mask-container"\n  ref="'+(null==(n=e.input.ref?e.input.ref:"input")?"":n)+'"\n>\n  <select\n    class="form-control formio-multiple-mask-select"\n    id="'+(null==(n=e.key)?"":n)+'-mask"\n    ref="select"\n    ',e.input.attr.disabled&&(r+="disabled"),r+=">\n    ",e.selectOptions.forEach(function(e){r+='\n    <option value="'+(null==(n=e.value)?"":n)+'">'+(null==(n=e.label)?"":n)+"</option>\n    "}),r+='\n  </select>\n  <input\n    ref="mask"\n    ',e.input.attr)r+="\n    "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n    ';return r+="\n  >\n</div>\n"}},5243:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(94628))&&o.__esModule?o:{default:o}).default};n.default=i},82524:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="mb-2 card border">\n  ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(r+='\n  
1<div class="card-header '+(null==(n=e.transform("class","bg-"+e.component.theme))?"":n)+'"\n    ',e.component.collapsible&&(r+='\n    tabindex="0"\n    '),r+='\n    role="button"\n    aria-expanded="'+(null==(n=!e.component.collapsible||!e.collapsed)?"":n)+'"\n    aria-controls="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n    ref="header"\n  >\n    <span class="mb-0 card-title ',e.component.theme&&"default"!==e.component.theme&&(r+="text-light"),r+='">\n      ',e.component.collapsible&&(r+='\n        <i class="formio-collapse-icon '+(null==(n=e.iconClass(e.collapsed?"plus-square-o":"minus-square-o"))?"":n)+' text-muted" data-title="Collapse Panel"></i>\n      '),r+="\n      ",(!e.component.hideLabel||e.builder)&&(r+="\n      "+(null==(n=e.t(e.component.title,{_userInput:!0}))?"":n)+"\n      "),r+="\n      ",e.component.tooltip&&(r+='\n        <i ref="tooltip" tabindex="0" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n      '),r+="\n    </span>\n  </div>\n  "),r+="\n  ",(!e.collapsed||e.builder)&&(r+='\n  <div class="card-body" ref="'+(null==(n=e.nestedKey)?"":n)+'" id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'">\n    '+(null==(n=e.children)?"":n)+"\n  </div>\n  "),r+="\n</div>\n"}},45354:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(82524))&&o.__esModule?o:{default:o}).default};n.default=i},27767:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="'+(null==(n=e.classes)?"":n)+'" ref="webform">\n	<span data-noattach="true" ref="zoomIn" style="position:absolute;right:10px;top:10px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n		<i class="'+(null==(n=e.iconClass("zoom-in"))?"":n)+'"></i>\n	</span>\n	<span data-noattach="true" ref="zoomOut" style="position:absolute;right:10px;top:60px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n		<i class="'+(null==(n=e.iconClass("zoom-out"))?"":n)+'"></i>\n	</span>\n  <div data-noattach="true" ref="iframeContainer"></div>\n  '+(null==(n=e.submitButton)?"":n)+"\n</div>\n"}},12586:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(27767))&&o.__esModule?o:{default:o}).default};n.default=i},42688:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(n=e.sidebar)?"":n)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n	  <div class="formio-drop-zone" ref="iframeDropzone"></div>\n    '+(null==(n=e.form)?"":n)+"\n  </div>\n</div>\n"}},65543:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(42688))&&o.__esModule?o:{default:o}).default};n.default=i},86964:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="pdf-upload formio-component-file">\n  <h3 class="label">'+(null==(n=e.t("Upload a PDF File"))?"":n)+'</h3>\n  <input type="file" style="opacity: 0; position: absolute;" tabindex="-1" accept=".pdf" ref="hiddenFileInputElement">\n  <div class="fileSelector" ref="fileDrop">\n    <span ref="dragDropText">\n      <i class="'+(null==(n=e.iconClass("cloud-upload"))?"":n)+'"></i>'+(null==(n=e.t("Drop pdf to start, or"))?"":n)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(n=e.t("browse"))?"":n)+'</a>\n    </span>\n    <div class="progress pdf-progress" ref="uploadProgressWrapper" style="display:none;">\n      <div class="progress-bar" ref="uploadProgress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>\n    </div>\n  </div>\n  <div class="alert alert-danger" ref="uploadError">\n\n  </div>\n</div>\n\n'}},73859:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(86964))&&o.__esModule?o:{default:o}).default};n.default=i},36740:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div\n  class="form-radio radio"\n  ref="radioGroup"\n  role="'+(n="selectboxes"===e.component.type?"group":"radiogroup")+'"\n  aria-required="'+(null==(n=e.input.component.validate.required)?"":n)+'"\n  aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  ',e.component.description&&(r+='\n    aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  '),r+="\n>
1\n  ",e.values.forEach(function(o,i){for(var a in r+='\n  <div class="'+(null==(n=e.input.attr.type)?"":n)+" "+(n=e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition?"pl-0":"")+" form-check"+(n=e.inline?"-inline":"")+'" ref="wrapper">\n    <label class="form-check-label label-position-'+(null==(n=e.component.optionsLabelPosition)?"":n)+'" for="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n="object"==typeof o.value?o.value+"-"+i:o.value)?"":n)+'">\n      ',("left"===e.component.optionsLabelPosition||"top"===e.component.optionsLabelPosition)&&(r+="\n      <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n      "),r+="\n      <"+(null==(n=e.input.type)?"":n)+'\n        ref="input"\n        ',e.input.attr)r+="\n        "+(null==(n=a)?"":n)+'="'+(null==(n=e.input.attr[a])?"":n)+'"\n        ';r+='\n        value="'+(null==(n=o.value)?"":n)+'"\n        ',e.value&&(e.value===o.value||"object"==typeof e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value])&&(r+="\n          checked=true\n        "),r+="\n        ",o.disabled&&(r+="\n          disabled=true\n        "),r+='\n        id="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n="object"==typeof o.value?o.value+"-"+i:o.value)?"":n)+'"\n        role="'+(n="selectboxes"===e.component.type?"checkbox":"radio")+'"\n      >\n      ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(r+="\n      <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n      "),r+="\n    </label>\n  </div>\n  "}),r+="\n</div>\n"}},68203:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n="";Array.prototype.join,n+='<div ref="value">\n  ';var r=e.values.filter(function(n){return e.value===n.value||"object"==typeof e.value&&e.value.hasOwnProperty(n.value)&&e.value[n.value]}).map(function(n){return e.t(n.label,{_userInput:!0})}).join(", ");return n+("\n  "+(null==r?"":r))+"\n  </div>\n"}},58922:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(36740)),i=a(r(68203));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},55273:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<table class="table table-bordered">\n  <tbody>\n    <tr>\n      <td>\n        '+(null==(n=e.element)?"":n)+'\n      </td>\n    </tr>\n    <tr>\n      <td colspan="2">\n        <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>\n          '+(null==(n=e.t(e.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":n)+"\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n"}},40063:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(55273))&&o.__esModule?o:{default:o}).default};n.default=i},51396:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+='<select\n  ref="'+(null==(n=e.input.ref?e.input.ref:"selectContainer")?"":n)+'"\n  '+(n=e.input.multiple?"multiple":"")+"\n  ",e.input.attr)r+="\n  "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n  ';return r+="\n  ",e.input.attr.id||(r+='\n  id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  '),r+="\n  ",e.component.description&&(r+='\n  aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  '),r+='\n  aria-required="'+(null==(n="selectContainer"!==e.input.ref&&e.input.ref?e.component.fields[e.input.ref].required:e.input.component.validate.required)?"":n)+'"\n>'+(null==(n=e.selectOptions)?"":n)+'</select>\n<input type="text"\n       class="formio-select-autocomplete-input"\n       ref="autocompleteInput"\n       ',e.input.attr.autocomplete&&(r+='\n       autocomplete="'+(null==(n=e.input.attr.autocomplete)?"":n)+'"\n       '),r+='\n       tabindex="-1"\n       aria-label="'+(null==(n=e.t("autocomplete"))?"":n)+'"\n/>\n'}},60709:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.self.itemValueForHTMLMode(e.value))?"":n:r+="-",r+="</div>\n"}},32642:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(51396)),i=a(r(60709));
vendor: 4,295 bytes, line 1
1function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},83260:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<option "+(n=e.selected?'selected="selected"':"")+"\n  value='"+(null==(n=e.useId?e.id:e.option.value)?"":n)+"'\n  ",e.attrs)r+="\n  "+(null==(n=o)?"":n)+'="'+(null==(n=e.attrs[o])?"":n)+'"\n  ';return r+("\n  >\n  "+(null==(n=e.t(e.option.label,{_userInput:!0}))?"":n))+"\n</option>\n"}},16500:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.selected&&(r+=null==(n=e.t(e.option.label,{_userInput:!0}))?"":n),r+="\n"}},22942:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(83260)),i=a(r(16500));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},15007:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+=(null==(n=e.element)?"":n)+'\n<div\n  class="signature-pad-body"\n  style="width: '+(null==(n=e.component.width)?"":n)+";height: "+(null==(n=e.component.height)?"":n)+';padding:0;margin:0;"\n  tabindex="'+(null==(n=e.component.tabindex||0)?"":n)+'"\n  ref="padBody"\n>\n  <a class="btn btn-sm btn-light signature-pad-refresh" ref="refresh">\n    <i class="'+(null==(n=e.iconClass("refresh"))?"":n)+'"></i>\n  </a>\n  <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(n=e.component.height)?"":n)+'" ref="canvas"></canvas>\n  ',e.required&&(r+='\n  <span class="form-control-feedback text-danger">\n    <i class="'+(null==(n=e.iconClass("asterisk"))?"":n)+'"></i>\n  </span>\n  '),r+='\n  <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(r+='\n  <div class="signature-pad-footer">\n    '+(null==(n=e.t(e.component.footer,{_userInput:!0}))?"":n)+"\n  </div>\n"),r+="\n"}},2187:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},36562:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(15007)),i=a(r(2187));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},64065:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-striped table-bordered" aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'">\n  <thead>\n    <tr>\n      <th></th>\n      ',e.component.values.forEach(function(o){r+='\n      <th style="text-align: center;">\n        '+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"\n        ",o.tooltip&&(r+='\n          <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n        '),r+="\n      </th>\n      "}),r+="\n    </tr>\n  </thead>\n  <tbody>\n    ",e.component.questions.forEach(function(o){r+="\n    <tr>\n      <td>\n        "+(null==(n=e.t(o.label))?"":n)+"\n        ",o.tooltip&&(r+='\n          <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n        '),r+="\n      </td>\n      ",e.component.values.forEach(function(i){r+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(n=e.self.getInputName(o))?"":n)+'" value="'+(null==(n=i.value)?"":n)+'" id="'+(null==(n=e.key)?"":n)+"-"+(null==(n=o.value)?"":n)+"-"+(null==(n=i.value)?"":n)+'" ref="input">\n      </td>\n      '}),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},33493:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-striped table-bordered">\n  <tbody>\n    ',e.component.questions.forEach(function(o){r+="\n    <tr>\n      <th>"+(null==(n=e.t(o.label))?"":n)+"</th>\n      <td>
1\n      ",e.component.values.forEach(function(i){r+="\n        ",e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value]===i.value&&(r+="\n          "+(null==(n=e.t(i.label))?"":n)+"\n        "),r+="\n      "}),r+="\n      </td>\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},72133:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(64065)),i=a(r(33493));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},76687:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.component.components.forEach(function(o,i){r+='\n  <div class="mb-2 card border">\n    <div class="card-header bg-default">\n      <h4 class="mb-0 card-title">'+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+'</h4>\n    </div>\n    <div\n      class="card-body"\n      ref="'+(null==(n=e.tabKey)?"":n)+'"\n    >\n      '+(null==(n=e.tabComponents[i])?"":n)+"\n    </div>\n  </div>\n"}),r+="\n"}},77979:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="card'+(n=e.component.verticalLayout?" card-vertical":"")+'">\n  <div class="card-header">\n    <ul class="nav nav-tabs card-header-tabs'+(n=e.component.verticalLayout?" nav-tabs-vertical":"")+'" role="tablist">\n      ',e.component.components.forEach(function(o,i){r+='\n      <li class="nav-item'+(n=e.currentTab===i?" active":"")+'" role="tab" ref="'+(null==(n=e.tabLikey)?"":n)+'">\n        <a\n                class="nav-link'+(n=e.currentTab===i?" active":"")+(n=e.component.verticalLayout?" nav-link-vertical":"")+'"\n                href="#'+(null==(n=o.key)?"":n)+'"\n                ref="'+(null==(n=e.tabLinkKey)?"":n)+'"\n        >\n          '+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"\n        </a>\n      </li>\n      "}),r+="\n    </ul>\n  </div>\n  ",e.component.components.forEach(function(o,i){r+='\n  <div\n    role="tabpanel"\n    class="card-body tab-pane'+(n=e.currentTab===i?" active":"")+'"\n    style="display: '+(n=e.currentTab===i?"block":"none")+'"\n    ref="'+(null==(n=e.tabKey)?"":n)+'"\n  >\n    '+(null==(n=e.tabComponents[i])?"":n)+"\n  </div>\n  "}),r+="\n</div>\n"}},47346:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(76687)),i=a(r(77979));function a(e){return e&&e.__esModule?e:{default:e}}var l={flat:o.default,form:i.default};n.default=l},54704:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.bordered?"table-bordered":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-sm":"")+'\n  ">\n  <caption class="sr-only">'+(null==(n=e.t(e.component.label))?"":n)+"</caption>\n  ",e.component.header&&e.component.header.length>0&&(r+="\n  <thead>\n    <tr>\n      ",e.component.header.forEach(function(o){r+="\n      <th>"+(null==(n=e.t(o))?"":n)+"</th>\n      "}),r+="\n    </tr>\n  </thead>\n  "),r+="\n  <tbody>\n    ",e.tableComponents.forEach(function(o,i){r+='\n    <tr ref="row-'+(null==(n=e.id)?"":n)+'">\n      ',o.forEach(function(o,a){r+='\n      <td ref="'+(null==(n=e.tableKey)?"":n)+"-"+(null==(n=i)?"":n)+'"',e.cellClassName&&(r+=' class="'+(null==(n=e.cellClassName)?"":n)+'"'),r+=">"+(null==(n=o)?"":n)+"</td>\n      "}),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},52542:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(54704))&&o.__esModule?o:{default:o}).default};n.default=i},18256:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.children.forEach(function(e){r+='\n  <td class="editgrid-table-column">\n    '+(null==(n=e)?"":n)+"\n  </td>\n"}),r+="\n"}},45131:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(18256))&&o.__esModule?o:{default:o}).default};n.default=i},51371:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.node.isRoot?r+='\n  <div ref="root" class="list-group-item">
1\n':r+='\n  <li ref="node" class="list-group-item col-sm-12 tree__level tree__level_'+(n=e.odd?"odd":"even")+'">\n',r+="\n  ",e.content&&(r+='\n    <div ref="content" class="tree__node-content">\n      '+(null==(n=e.content)?"":n)+"\n    </div>\n  "),r+="\n  ",e.childNodes&&e.childNodes.length&&(r+='\n    <ul ref="childNodes" class="tree__node-children list-group row">\n      '+(null==(n=e.childNodes.join(""))?"":n)+"\n    </ul>\n  "),r+="\n",e.node.isRoot?r+="\n  </div>\n":r+="\n  </li>\n",r+="\n"}},7305:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(51371))&&o.__esModule?o:{default:o}).default};n.default=i},88294:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="node-edit">\n  <div ref="nodeEdit">'+(null==(n=e.children)?"":n)+"</div>\n  ",e.readOnly||(r+='\n    <div class="node-actions">\n      <button ref="saveNode" class="btn btn-primary saveNode">'+(null==(n=e.t("Save"))?"":n)+'</button>\n      <button ref="cancelNode" class="btn btn-danger cancelNode">'+(null==(n=e.t("Cancel"))?"":n)+"</button>\n    </div>\n  "),r+="\n</div>\n"}},37514:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(r(88294));function i(e){return e&&e.__esModule?e:{default:e}}var a={treeView:{form:i(r(48205)).default},treeEdit:{form:o.default}};n.default=a},48205:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n  ',e.values.forEach(function(e){r+='\n    <div class="col-sm-2">\n      '+(null==(n=e)?"":n)+"\n    </div>\n  "}),r+='\n  <div class="col-sm-3">\n    <div class="btn-group pull-right">\n      ',e.node.hasChildren&&(r+='\n        <button ref="toggleNode" class="btn btn-default btn-sm toggleNode">'+(null==(n=e.t(e.node.collapsed?"Expand":"Collapse"))?"":n)+"</button>\n      "),r+="\n      ",e.readOnly||(r+='\n        <button ref="addChild" class="btn btn-default btn-sm addChild">'+(null==(n=e.t("Add"))?"":n)+'</button>\n        <button ref="editNode" class="btn btn-default btn-sm editNode">'+(null==(n=e.t("Edit"))?"":n)+'</button>\n        <button ref="removeNode" class="btn btn-danger btn-sm removeNode">'+(null==(n=e.t("Delete"))?"":n)+"</button>\n        ",e.node.revertAvailable&&(r+='\n          <button ref="revertNode" class="btn btn-danger btn-sm revertNode">'+(null==(n=e.t("Revert"))?"":n)+"</button>\n        "),r+="\n      "),r+="\n    </div>\n  </div>\n</div>\n"}},90497:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="text-muted text-center p-2">'+(null==(n=e.t(e.component.title,{_userInput:!0}))?"":n)+"</div>\n"}},7210:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="'+(null==(n=e.classes)?"":n)+'" ref="webform" novalidate>'+(null==(n=e.children)?"":n)+"</div>\n"}},52799:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(7210)),i=a(r(90497));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,builder:i.default};n.default=l},86971:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="card card-body bg-light mb-3">\n  <div ref="'+(null==(n=e.nestedKey)?"":n)+'">\n    '+(null==(n=e.children)?"":n)+"\n  </div>\n</div>\n"}},31414:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(86971))&&o.__esModule?o:{default:o}).default};n.default=i},72465:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="text-muted text-center p-2">'+(null==(n=e.t(e.component.title,{_userInput:!0}))?"":n)+"</div>\n"}},53830:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="'+(null==(n=e.className)?"":n)+'">\n    <div style="position: relative;">\n        ',"wizardHeaderVertical"===e.wizardHeaderType?(r+='\n        <div class="row">\n            ',"right"!==e.wizardHeaderLocation&&(r+='\n            <div class="col-sm-2">\n                '+(null==(n=e.wizardHeader)?"":n)+"\n            </div>\n            "),r+='\n            <div class="wizard-page col-sm-10" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n                '+(null==(n=e.components)?"":n)+"\n            </div>\n            ","right"===e.wizardHeaderLocation&&(r+='\n            <div class="col-sm-2">\n                '+(null==(n=e.wizardHeader)?"":n)+"\n            </div>\n            "),r+='\n        </div>\n        <div class="col-sm-offset-2 col-sm-10 '+(n="right"===e.wizardHeaderLocation?"col-sm-offset-0 col-md-offset-0":"")+'">
1\n            '+(null==(n=e.wizardNav)?"":n)+"\n        </div>\n        "):r+="\n        "+(null==(n=e.wizardHeader)?"":n)+'\n        <div class="wizard-page" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n            '+(null==(n=e.components)?"":n)+"\n        </div>\n        "+(null==(n=e.wizardNav)?"":n)+"\n        ",r+="\n    </div>\n</div>\n"}},2795:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(53830)),i=a(r(72465));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,builder:i.default};n.default=l},76954:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="Wizard navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header" ref="'+(null==(n=e.wizardKey)?"":n)+'-header">\n  <ul class="pagination" role="tablist">\n    ',e.panels.forEach(function(o,i){r+='\n    <li class="page-item'+(n=e.currentPage===i?" active":"")+'" style="cursor: pointer;">\n      <button tabindex="0" data-index="'+(null==(n=i)?"":n)+'" role="tab" class="page-link" ref="'+(null==(n=e.wizardKey)?"":n)+'-link">\n        '+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"\n        ",o.tooltip&&e.currentPage===i&&(r+='\n        <i ref="'+(null==(n=e.wizardKey)?"":n)+'-tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n        '),r+="\n      </button>\n    </li>\n    "}),r+="\n  </ul>\n</nav>\n"}},91322:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(76954))&&o.__esModule?o:{default:o}).default};n.default=i},83391:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n  <div class="classic-pagination row justify-content-center" style="border-bottom:0;">\n    ',e.panels.forEach(function(o,i){r+='\n      <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n          '+(n=e.currentPage<i?" disabled":"")+"\n          "+(n=e.currentPage===i?" active":"")+"\n          "+(n=e.currentPage>i?" complete":"")+'">\n        <div class="text-center classic-pagination-title">'+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"</div>\n        ",e.panels.length>1&&(r+='\n          <div class="progress"><div class="progress-bar"></div></div>\n        '),r+=' \n        <span ref="'+(null==(n=e.wizardKey)?"":n)+'-link" class="classic-pagination-dot"></span>\n      </div>\n    '}),r+="\n  </div>\n</nav>\n"}},81570:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(83391))&&o.__esModule?o:{default:o}).default};n.default=i},49314:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n  <ul class="pagination flex-column">\n    ',e.panels.forEach(function(o,i){r+='\n    <li class="col-xs-12 page-item'+(n=e.currentPage===i?" active":"")+'" style="cursor: pointer;">
1\n      <span class="page-link" ref="'+(null==(n=e.wizardKey)?"":n)+'-link" style="margin-left: 0px;">\n        '+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"\n        ",o.tooltip&&e.currentPage===i&&(r+='\n        <i ref="'+(null==(n=e.wizardKey)?"":n)+'-tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n        '),r+="\n      </span>\n    </li>\n    "}),r+="\n  </ul>\n</nav>\n"}},12998:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(49314))&&o.__esModule?o:{default:o}).default};n.default=i},52361:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="formio-wizard-nav-container list-inline" id="'+(null==(n=e.wizardKey)?"":n)+'-nav">\n  ',e.buttonOrder.forEach(function(o){r+="\n    ","cancel"===o&&e.buttons.cancel&&(r+='\n    <li>\n      <button class="btn btn-secondary btn-wizard-nav-cancel" ref="'+(null==(n=e.wizardKey)?"":n)+'-cancel" aria-label="'+(null==(n=e.t("cancelButtonAriaLabel"))?"":n)+'">'+(null==(n=e.t("cancel"))?"":n)+"</button>\n    </li>\n    "),r+="\n    ","previous"===o&&e.buttons.previous&&(r+='\n    <li>\n      <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(n=e.wizardKey)?"":n)+'-previous" aria-label="'+(null==(n=e.t("previousButtonAriaLabel"))?"":n)+'">'+(null==(n=e.t("previous"))?"":n)+"</button>\n    </li>\n    "),r+="\n    ","next"===o&&e.buttons.next&&(r+='\n    <li>\n      <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(n=e.wizardKey)?"":n)+'-next" aria-label="'+(null==(n=e.t("nextButtonAriaLabel"))?"":n)+'">'+(null==(n=e.t("next"))?"":n)+"</button>\n    </li>\n    "),r+="\n    ","submit"===o&&e.buttons.submit&&(r+="\n    <li>\n      ",e.disableWizardSubmit?r+='\n      <button disabled class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(n=e.wizardKey)?"":n)+'-submit" aria-label="'+(null==(n=e.t("submit"))?"":n)+' button. Click to submit the form">'+(null==(n=e.t("submit"))?"":n)+"</button>\n      ":r+='\n      <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(n=e.wizardKey)?"":n)+'-submit" aria-label="'+(null==(n=e.t("submit"))?"":n)+' button. Click to submit the form">'+(null==(n=e.t("submit"))?"":n)+"</button>\n      ",r+="\n    </li>\n    "),r+="\n  "}),r+="\n</ul>\n"}},19066:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(52361))&&o.__esModule?o:{default:o}).default};n.default=i},22816:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div id="'+(null==(n=e.groupId)?"":n)+'" class="accordion builder-sidebar'+(n=e.scrollEnabled?" builder-sidebar_scroll":"")+'" ref="sidebar" role="tablist">\n  <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n    ',e.groups.forEach(function(e){r+="\n      "+(null==(n=e)?"":n)+"\n    "}),r+="\n</div>\n"}},18261:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(22816))&&o.__esModule?o:{default:o}).default};n.default=i},12889:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="card form-builder-panel" ref="group-panel-'+(null==(n=e.groupKey)?"":n)+'">\n  <div class="card-header form-builder-group-header" id="heading-'+(null==(n=e.groupKey)?"":n)+'">\n    <h5 class="mb-0 mt-0 d-grid">\n      <button\n        class="btn builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(n=e.groupKey)?"":n)+'"\n        data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n        aria-expanded="'+(null==(n=e.group.default)?"":n)+'"\n        aria-controls="group-'+(null==(n=e.groupKey)?"":n)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(n=e.t(e.group.title,{_userInput:!0}))?"":n)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(n=e.groupKey)?"":n)+'"\n    class="collapse '+(n=e.group.default?" show":"")+'"\n    data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n    data-default="'+(null==(n=e.group.default)?"":n)+'"\n    aria-labelledby="heading-'+(null==(n=e.groupKey)?"":n)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(n=e.groupKey)?"":n)+'" class="d-grid gap-1 no-drop p-2 w-100" ref="sidebar-container">\n      ',e.group.componentOrder.length||e.subgroups.length?(r+="\n        ",e.group.componentOrder&&e.group.componentOrder.forEach(function(o){r+='\n          <sp
1an\n            data-group="'+(null==(n=e.groupKey)?"":n)+'"\n            data-key="'+(null==(n=e.group.components[o].key)?"":n)+'"\n            data-type="'+(null==(n=e.group.components[o].schema.type)?"":n)+'"\n            class="btn btn-primary btn-sm formcomponent drag-copy m-0"\n          >\n            ',e.group.components[o].icon&&(r+='\n              <i class="'+(null==(n=e.iconClass(e.group.components[o].icon))?"":n)+'" style="margin-right: 5px;"></i>\n            '),r+="\n            "+(null==(n=e.t(e.group.components[o].title,{_userInput:!0}))?"":n)+"\n          </span>\n        "}),r+="\n        "+(null==(n=e.subgroups.join(""))?"":n)+"\n      "):r+="\n        <div>"+(null==(n=e.t("No Matches Found"))?"":n)+"</div>\n      ",r+="\n    </div>\n  </div>\n</div>\n"}},79326:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(12889))&&o.__esModule?o:{default:o}).default};n.default=i},63422:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(n=e.sidebar)?"":n)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n    <ol class="breadcrumb wizard-pages">\n      ',e.pages.forEach(function(o,i){r+='\n      <li>\n        <span title="'+(null==(n=o.title)?"":n)+'" class="me-2 badge ',i===e.self.page?r+="bg-primary":r+="bg-info",r+=' wizard-page-label" ref="gotoPage">'+(null==(n=o.title)?"":n)+"</span>\n      </li>\n      "}),r+='\n      <li class="wizard-add-page">\n        <span title="'+(null==(n=e.t("Create Page"))?"":n)+'" class="me-2 badge bg-success wizard-page-label" ref="addPage">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t("Page"))?"":n)+'\n        </span>\n      </li>\n    </ol>\n    <div ref="form">\n      '+(null==(n=e.form)?"":n)+"\n    </div>\n  </div>\n</div>\n"}},38107:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(63422))&&o.__esModule?o:{default:o}).default};n.default=i},1040:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="formio-component-modal-wrapper formio-component-modal-wrapper-'+(null==(n=e.component.type)?"":n)+'" ref="componentModalWrapper">\n  <div ref="openModalWrapper"></div>\n  <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n    <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n    <div class="formio-dialog-content" aria-labelledby="ml-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'" ',e.self.isIE()||(r+=' role="dialog" '),r+=' ref="modalContents">\n      <label class="visually-hidden" id="ml-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'">'+(null==(n=e.t(e.component.label))?"":n)+(n=e.self.isIE()?", dialog":"")+"</label>\n      ",e.options.vpat?r+='\n      <button class="formio-dialog-close float-end" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n      ':r+='\n      <button class="formio-dialog-close float-end btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n      ',r+='\n      <div ref="modalContents">\n        ',e.visible&&(r+="\n        "+(null==(n=e.children)?"":n)+"\n        "),r+='\n        <div class="formio-dialog-buttons">\n          ',e.options.vpat&&(r+='\n          <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">'+(null==(n=e.t("Cancel"))?"":n)+"</button>\n          "),r+='\n          <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">'+(null==(n=e.t("Save"))?"":n)+'</button>\n        </div>\n      </div>\n    </div>\n    <span class="visually-hidden" ref="modalLiveRegion" aria-l
1ive="assertive"></span>\n  </div>\n</div>\n'}},85604:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(1040))&&o.__esModule?o:{default:o}).default};n.default=i},41582:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={"form-group":"formio-form-group"}},81641:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-sm":"")+'\n    " ',e.component.layoutFixed&&(r+='style="table-layout: fixed;"'),r+=">\n  ",e.hasHeader&&(r+="\n  <thead>\n    <tr>\n      ",e.component.reorder&&(r+="<th></th>"),r+="\n      ",e.columns.forEach(function(o){r+='\n        <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n          '+(null==(n=o.hideLabel?"":e.t(o.label||o.title,{_userInput:!0}))?"":n)+"\n          ",o.tooltip&&(r+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(n=o.tooltip)?"":n)+'" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n        </th>\n      "}),r+="\n      ",e.hasExtraColumn&&(r+='\n      <th>\n        <span class="visually-hidden">'+(null==(n=e.t("Add/Remove"))?"":n)+"</span>\n        ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(r+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>'+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n        </button>\n        "),r+="\n      </th>\n      "),r+="\n    </tr>\n  </thead>\n  "),r+='\n  <tbody ref="'+(null==(n=e.datagridKey)?"":n)+'-tbody" data-key="'+(null==(n=e.datagridKey)?"":n)+'">\n    ',e.rows.forEach(function(o,i){r+="\n    ",e.hasGroups&&e.groups[i]&&(r+='\n    <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-group-header" class="datagrid-group-header'+(n=e.hasToggle?" clickable":"")+'">\n      <td\n        ref="'+(null==(n=e.datagridKey)?"":n)+'-group-label"\n        colspan="'+(null==(n=e.numColumns)?"":n)+'"\n        class="datagrid-group-label">'+(null==(n=e.groups[i].label)?"":n)+"</td>\n    </tr>\n    "),r+='\n    <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-row">\n      ',e.component.reorder&&(r+='\n        <td>\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(n=e.datagridKey)?"":n)+'"></button>\n        </td>\n      '),r+="\n      ",e.columns.forEach(function(i){r+='\n        <td ref="'+(null==(n=e.datagridKey)?"":n)+'" ',i.key&&i.overlay&&i.overlay.width&&(r+=' style="width: '+(n=i.overlay.width+"px")+'"'),r+=" >\n          "+(null==(n=o[i.key])?"":n)+"\n        </td>\n      "}),r+="\n      ",e.hasExtraColumn&&(r+="\n        ",e.hasRemoveButtons&&(r+='\n        <td>\n          <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-removeRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'" aria-label="'+(null==(n=e.t("remove"))?"":n)+'">\n            <i class="'+(null==(n=e.iconClass("remove-circle"))?"":n)+'"></i>\n          </button>\n        </td>\n        '),r+="\n        ",e.canAddColumn&&(r+='\n        <td ref="'+(null==(n=e.key)?"":n)+'-container">\n          '+(null==(n=e.placeholder)?"":n)+"\n        </td>\n        "),r+="\n      "),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n  ",!e.builder&&e.hasAddButton&&e.hasBottomSubmit&&(r+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(n=e.component.layoutFixed?e.numColumns:e.numColumns+1)?"":n)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'">\n          <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),r+="\n</table>\n"}},99430:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(81641))&&o.__esModule?o:{default:o}).default};n.default=i},70518:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n  <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n  <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n    <div ref="dialogContents"></div>\n    <button class="formio-dialog-close float-end btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n  </div>\n</div>\n'}},63262:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(70518))&&o.__esModule?o:{default:o}).default};n.default=i},69808:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";
vendor: 4,322 bytes, line 1
1return Array.prototype.join,e.options.vpat&&(r+='\n  <span tabindex="-1" class="visually-hidden" id="invisible-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"></span>\n'),r+="\n",e.self.imageUpload?(r+="\n  <div>\n    ",e.files.forEach(function(o){r+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(n=o.originalName||o.name)?"":n)+'" style="width:'+(null==(n=e.component.imageSize)?"":n)+'px">\n          ',e.disabled||(r+='\n            <i tabindex="0" class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i>\n          '),r+="\n        </span>\n      </div>\n    "}),r+="\n  </div>\n"):(r+="\n  ",e.options.vpat&&(r+="\n    <div>"+(null==(n=e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")?"":n)+"</div>\n  "),r+='\n  <ul class="list-group list-group-striped">\n    <li class="list-group-item list-group-header hidden-xs hidden-sm">\n      <div class="row">\n        ',e.disabled||(r+='\n          <div class="col-md-1"></div>\n        '),r+='\n        <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='"><strong>'+(null==(n=e.t("File Name"))?"":n)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(n=e.t("Size"))?"":n)+"</strong></div>\n        ",e.self.hasTypes&&(r+='\n          <div class="col-md-2"><strong>'+(null==(n=e.t("Type"))?"":n)+"</strong></div>\n        "),r+="\n      </div>\n    </li>\n    ",e.files.forEach(function(o){r+='\n      <li class="list-group-item">\n        <div class="row">\n          ',e.disabled||(r+='\n            <div class="col-md-1"><i tabindex="0" class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i></div>\n          '),r+='\n          <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='">\n            ',e.component.uploadOnly?r+="\n              "+(null==(n=o.originalName||o.name)?"":n)+"\n            ":r+='\n              <a href="'+(null==(n=o.url||"#")?"":n)+'" target="_blank" ref="fileLink">\n                <span class="visually-hidden">'+(null==(n=e.t("Press to open "))?"":n)+"</span>"+(null==(n=o.originalName||o.name)?"":n)+"\n              </a>\n            ",r+='\n          </div>\n          <div class="col-md-2">'+(null==(n=e.fileSize(o.size))?"":n)+"</div>\n          ",e.self.hasTypes&&!e.disabled&&(r+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType">\n                ',e.component.fileTypes.map(function(i){r+='\n                  <option class="test" value="'+(null==(n=i.value)?"":n)+'" ',i.label===o.fileType&&(r+='selected="selected"'),r+=">"+(null==(n=e.t(i.label))?"":n)+"</option>\n                "}),r+="\n              </select>\n            </div>\n          "),r+="\n          ",e.self.hasTypes&&e.disabled&&(r+='\n          <div class="col-md-2">'+(null==(n=o.fileType)?"":n)+"</div>\n          "),r+="\n        </div>\n      </li>\n    "}),r+="\n  </ul>\n"),r+="\n",e.disabled||!e.component.multiple&&e.files.length||(r+="\n  ",e.self.useWebViewCamera?r+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(n=e.t("Gallery"))?"":n)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Camera"))?"":n)+"</button>\n    </div>\n  ":e.self.cameraMode?r+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Take Picture"))?"":n)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(n=e.t("Switch to file upload"))?"":n)+"</button>\n  ":(r+='\n    <div class="fileSelector" ref="fileDrop" '+(n=e.fileDropHidden?"hidden":"")+'>\n      <i class="'+(null==(n=e.iconClass("cloud-upload"))?"":n)+'"></i> '+(null==(n=e.t("Drop files to attach,"))?"":n)+"\n        ",e.self.imageUpload&&e.component.webcam&&(r+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(n=e.t("use camera"))?"":n)+"</a>\n        "),r+="\n        "+(null==(n=e.t("or"))?"":n)+'\n        <a href="#" ref="fileBrowse" class="browse">
1\n          '+(null==(n=e.t("browse"))?"":n)+'\n          <span class="visually-hidden">\n            '+(null==(n=e.t("Browse to attach file for "+e.component.label+". "+(e.component.description?e.component.description+". ":"")+(e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")))?"":n)+'\n          </span>\n        </a>\n      <div ref="fileProcessingLoader" class="loader-wrapper">\n        <div class="loader text-center"></div>\n      </div>\n    </div>\n  '),r+="\n"),r+="\n",e.statuses.forEach(function(o){r+='\n  <div class="file '+(n="error"===e.statuses.status?" has-error":"")+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(n=o.originalName)?"":n)+'\n        <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="fileStatusRemove">\n          <span class="visually-hidden">'+(null==(n=e.t("Remove button. Press to remove "+o.originalName))?"":n)+'</span>\n          <span class="visually-hidden">'+(null==(n=o.message?o.message.replace(";","."):"")?"":n)+'</span>\n        </i>\n      </div>\n      <div class="fileSize col-form-label col-sm-2 text-end">'+(null==(n=e.fileSize(o.size))?"":n)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',"progress"===o.status?r+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(n=o.progress)?"":n)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(n=o.progress)?"":n)+'%">\n              <span class="visually-hidden">'+(null==(n=o.progress)?"":n)+"% "+(null==(n=e.t("Complete"))?"":n)+"</span>\n            </div>\n          </div>\n        ":"error"===o.status?r+='\n          <div class="alert alert-danger bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n        ":r+='\n          <div class="bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n        ",r+="\n      </div>\n    </div>\n  </div>\n"}),r+="\n",(!e.component.storage||e.support.hasWarning)&&(r+='\n  <div class="alert alert-warning">\n    ',e.component.storage||(r+="\n      <p>"+(null==(n=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":n)+"</p>\n    "),r+="\n    ",e.support.filereader||(r+="\n      <p>"+(null==(n=e.t("File API & FileReader API not supported."))?"":n)+"</p>\n    "),r+="\n    ",e.support.formdata||(r+="\n      <p>"+(null==(n=e.t("XHR2's FormData is not supported."))?"":n)+"</p>\n    "),r+="\n    ",e.support.progress||(r+="\n      <p>"+(null==(n=e.t("XHR2's upload progress isn't supported."))?"":n)+"</p>\n    "),r+="\n  </div>\n"),r+="\n"}},89980:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(69808))&&o.__esModule?o:{default:o}).default};n.default=i},57049:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(45399),r(37753),r(45945);var o=v(r(18261)),i=v(r(79326)),a=v(r(38107)),l=v(r(85604)),s=v(r(99430)),u=v(r(63262)),c=v(r(89980)),f=v(r(69686)),d=v(r(33536)),p=v(r(78792)),h=v(r(61606)),y=v(r(71303)),m=v(r(41582));function v(e){return e&&e.__esModule?e:{default:e}}var b={transform:function(e,n){return n&&"class"===e&&this.cssClasses.hasOwnProperty(n.toString())?this.cssClasses[n.toString()]:n},builderSidebar:o.default,builderSidebarGroup:i.default,builderWizard:a.default,componentModal:l.default,datagrid:s.default,dialog:u.default,file:c.default,input:f.default,label:d.default,modalPreview:p.default,radio:h.default,table:y.default,cssClasses:m.default};n.default=b},25970:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";if(Array.prototype.join,(e.prefix||e.suffix)&&(r+='\n<div class="input-group">\n  '),r+="\n  ",e.prefix&&(r+='\n    <div class="input-group-text" ref="prefix">\n      ',e.prefix instanceof HTMLElement?r+="\n        "+(null==(n=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":n)+"\n      ":r+="\n        "+(null==(n=e.t(e.prefix,{_userInput:!0}
vendor: 4,262 bytes, line 1
1))?"":n)+"\n      ",r+="\n    </div>\n  "),r+="\n  ",!e.component.editor&&!e.component.wysiwyg){for(var o in r+="\n    <"+(null==(n=e.input.type)?"":n)+'\n      ref="'+(null==(n=e.input.ref?e.input.ref:"input")?"":n)+'"\n      ',e.input.attr)r+="\n        "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n      ';r+='\n      id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n      aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+" ",e.component.description&&(r+="d-"+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)),r+='"\n      aria-required="'+(null==(n="input"!==e.input.ref&&e.input.ref?e.component.fields&&e.component.fields[e.input.ref]&&e.component.fields[e.input.ref].required||!1:e.component.validate.required)?"":n)+'"\n    >'+(null==(n=e.input.content)?"":n)+"</"+(null==(n=e.input.type)?"":n)+">\n    ",e.hasValueMaskInput&&(r+='\n      <input ref="valueMaskInput" />\n    '),r+="\n"}return r+="\n",(e.component.editor||e.component.wysiwyg)&&(r+='\n  <div ref="input"></div>\n'),r+="\n","datetime"===e.component.type&&(r+='\n<span aria-live="assertive" id="'+(null==(n=e.instance.id)?"":n)+'-liveRegion" class="visually-hidden" ref="liveRegion"></span>\n'),r+="\n",e.suffix&&(r+='\n  <div class="input-group-text" ref="suffix">\n    ',e.suffix instanceof HTMLElement?r+="\n      "+(null==(n=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":n)+"\n    ":r+="\n      "+(null==(n=e.t(e.suffix,{_userInput:!0}))?"":n)+"\n    ",r+="\n  </div>\n"),r+="\n",(e.prefix||e.suffix)&&(r+="\n  </div>\n"),r+="\n",(e.component.showCharCount||e.component.showWordCount)&&(r+='\n<div class="form-text {{ctx.component.description ? float-end : text-end">\n  ',e.component.showCharCount&&(r+='\n  <span class="text-muted" ref="charcount" aria-live="polite"></span>\n  '),r+="\n  ",e.component.showWordCount&&(r+='\n  <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n  '),r+="\n</div>\n"),r+="\n"}},41651:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.value)?"":n:r+="-",r+="</div>\n"}},69686:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(25970)),i=a(r(41651));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},37561:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label\n  ref="label"\n  class="col-form-label '+(null==(n=e.label.className)?"":n)+'"\n  for="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  id="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n>\n  '+(null==(n=e.t(e.component.label,{_userInput:!0}))?"":n)+"\n  ",("number"===e.component.type||"phoneNumber"===e.component.type||"currency"===e.component.type)&&(r+='\n    <span class="visually-hidden">, '+(null==(n=e.t("numeric only"))?"":n)+",</span>\n  "),r+="\n  ",e.component.tooltip&&(r+='\n    <i ref="tooltip" tabindex="0" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n  '),r+="\n</label>\n"}},33536:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(37561))&&o.__esModule?o:{default:o}).default};n.default=i},26574:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<label id="l-'+(null==(n=e.component.key)?"":n)+'" class="control-label '+(null==(n=e.label.className)?"":n)+'">\n  '+(null==(n=e.t(e.component.label,{_userInput:!0}))?"":n)+'<span ref="modalLabelValue" class="visually-hidden">. '+(null==(n="signature"===e.component.type?e.self.getValueAsString(e.previewText):e.previewText)?"":n)+'</span>\n</label><br>\n<span class="visually-hidden" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n  lang="en"\n  class="btn btn-light btn-md open-modal-button form-control '+(null==(n=e.openModalBtnClasses||"")?"":n)+'"\n  ref="openM
1odal"\n  aria-labelledby="l-'+(null==(n=e.component.key)?"":n)+'"\n>\n  '+(null==(n=e.previewText)?"":n)+'\n</button>\n<div class="formio-errors invalid-feedback">\n  '+(null==(n=e.messages)?"":n)+"\n</div>\n"}},78792:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(26574))&&o.__esModule?o:{default:o}).default};n.default=i},51324:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div\n  class="form-radio radio"\n  ref="radioGroup"\n  role="'+(n="selectboxes"===e.component.type?"group":"radiogroup")+'"\n  aria-required="'+(null==(n=e.input.component.validate.required)?"":n)+'"\n  aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  ',e.component.description&&(r+='\n    aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n  '),r+="\n>\n  ",e.values.forEach(function(o){for(var i in r+='\n  <div class="'+(null==(n=e.input.attr.type)?"":n)+" "+(null==(n=e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition?ps-0:"")?"":n)+" form-check"+(n=e.inline?"-inline":"")+'" ref="wrapper">\n    <label class="form-check-label label-position-'+(null==(n=e.component.optionsLabelPosition)?"":n)+'" for="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'">\n      ',("left"===e.component.optionsLabelPosition||"top"===e.component.optionsLabelPosition)&&(r+="\n      <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n      "),r+="\n      <"+(null==(n=e.input.type)?"":n)+'\n        ref="input"\n        ',e.input.attr)r+="\n        "+(null==(n=i)?"":n)+'="'+(null==(n=e.input.attr[i])?"":n)+'"\n        ';r+='\n        value="'+(null==(n=o.value)?"":n)+'"\n        ',e.value&&(e.value===o.value||"object"==typeof e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value])&&(r+="\n          checked=true\n        "),r+="\n        ",o.disabled&&(r+="\n          disabled=true\n        "),r+='\n        id="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'"\n        role="'+(n="selectboxes"===e.component.type?"checkbox":"radio")+'"\n      >\n      ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(r+="\n      <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n      "),r+="\n    </label>\n  </div>\n  "}),r+="\n</div>\n"}},61606:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(51324))&&o.__esModule?o:{default:o}).default};n.default=i},76172:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table\n    '+(n=e.component.striped?"table-striped":"")+"\n    "+(n=e.component.bordered?"table-bordered":"")+"\n    "+(n=e.component.hover?"table-hover":"")+"\n    "+(n=e.component.condensed?"table-sm":"")+'\n  ">\n  <caption class="visually-hidden">'+(null==(n=e.t(e.component.label))?"":n)+"</caption>\n  ",e.component.header&&e.component.header.length>0&&(r+="\n  <thead>\n    <tr>\n      ",e.component.header.forEach(function(o){r+="\n      <th>"+(null==(n=e.t(o))?"":n)+"</th>\n      "}),r+="\n    </tr>\n  </thead>\n  "),r+="\n  <tbody>\n    ",e.tableComponents.forEach(function(o,i){r+='\n    <tr ref="row-'+(null==(n=e.id)?"":n)+'">\n      ',o.forEach(function(o,a){r+='\n      <td ref="'+(null==(n=e.tableKey)?"":n)+"-"+(null==(n=i)?"":n)+'"',e.cellClassName&&(r+=' class="'+(null==(n=e.cellClassName)?"":n)+'"'),r+=">"+(null==(n=o)?"":n)+"</td>\n      "}),r+="\n    </tr>\n    "}),r+="\n  </tbody>\n</table>\n"}},71303:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(76172))&&o.__esModule?o:{default:o}).default};n.default=i},33401:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=s(r(41074)),i=s(r(57049)),a=s(r(58006)),l=s(r(14441));
1function s(e){return e&&e.__esModule?e:{default:e}}var u={bootstrap:o.default,bootstrap3:a.default.templates.bootstrap3,bootstrap5:i.default,semantic:l.default.templates.semantic};n.default=u},67394:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={unsavedRowsError:"Please save all rows before proceeding.",invalidRowsError:"Please correct invalid rows before proceeding.",invalidRowError:"Invalid row. Please correct it or delete.",alertMessageWithLabel:"{{label}}: {{message}}",alertMessage:"{{message}}",complete:"Submission Complete",error:"Please fix the following errors before submitting.",errorListHotkey:"Press Ctrl + Alt + X to go back to the error list.",errorsListNavigationMessage:"Click to navigate to the field with following error.",submitError:"Please check the form and correct all errors before submitting.",required:"{{field}} is required",unique:"{{field}} must be unique",array:"{{field}} must be an array",array_nonempty:"{{field}} must be a non-empty array",nonarray:"{{field}} must not be an array",select:"{{field}} contains an invalid selection",pattern:"{{field}} does not match the pattern {{pattern}}",minLength:"{{field}} must have at least {{length}} characters.",maxLength:"{{field}} must have no more than {{length}} characters.",minWords:"{{field}} must have at least {{length}} words.",maxWords:"{{field}} must have no more than {{length}} words.",min:"{{field}} cannot be less than {{min}}.",max:"{{field}} cannot be greater than {{max}}.",maxDate:"{{field}} should not contain date after {{- maxDate}}",minDate:"{{field}} should not contain date before {{- minDate}}",maxYear:"{{field}} should not contain year greater than {{maxYear}}",minYear:"{{field}} should not contain year less than {{minYear}}",invalid_email:"{{field}} must be a valid email.",invalid_url:"{{field}} must be a valid url.",invalid_regex:"{{field}} does not match the pattern {{regex}}.",invalid_date:"{{field}} is not a valid date.",invalid_day:"{{field}} is not a valid day.",mask:"{{field}} does not match the mask.",valueIsNotAvailable:"{{ field }} is an invalid value.",stripe:"{{stripe}}",month:"Month",day:"Day",year:"Year",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",next:"Next",previous:"Previous",cancel:"Cancel",submit:"Submit Form",confirmCancel:"Are you sure you want to cancel?",saveDraftInstanceError:"Cannot save draft because there is no formio instance.",saveDraftAuthError:"Cannot save draft unless a user is authenticated.",restoreDraftInstanceError:"Cannot restore draft because there is no formio instance.",saveDraftError:"Unable to save draft.",restoreDraftError:"Unable to restore draft.",time:"Invalid time",cancelButtonAriaLabel:"Cancel button. Click to reset the form",previousButtonAriaLabel:"Previous button. Click to go back to the previous tab",nextButtonAriaLabel:"Next button. Click to go to the next tab",submitButtonAriaLabel:"Submit Form button. Click to submit the form",reCaptchaTokenValidationError:"ReCAPTCHA: Token validation error",reCaptchaTokenNotSpecifiedError:"ReCAPTCHA: Token is not specified in submission"}},97289:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),n.ZP=void 0,r(67998),r(56613),r(18666),r(789),r(43053),r(65813);var i,a=(i=r(55779))&&i.__esModule?i:{default:i};function l(e,n,r){return(n=u(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function s(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=p(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
1function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}a.default.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var e=this.passedElement.placeholderOption;return!!e&&e.text}var n=this.config,r=n.placeholder,o=n.placeholderValue,i=this.passedElement.element.dataset;if(r){if(o)return o;if(i.placeholder)return i.placeholder}return!1};var h={BACK_KEY:46,DELETE_KEY:8,TAB_KEY:9,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(u,e);var n,r,i,a=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=p(u);if(n){var i=p(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function u(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,u);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=a.call.apply(a,[this].concat(r)))._onTabKey=e._onTabKey.bind(d(e)),e.isDirectionUsing=!1,e.shouldOpenDropDown=!0,e}return r=[{key:"_onTouchEnd",value:function(e){var n=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(n)&&((n===this.containerOuter.element||n===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&(this.input.focus(),this.showDropdown())),e.stopPropagation()),this._wasTap=!0}},{key:"_handleButtonAction",value:function(e,n){if(!this._isSelectOneElement)return c(p(u.prototype),"_handleButtonAction",this).call(this,e,n);e&&n&&this.config.removeItems&&this.config.removeItemButton&&c(p(u.prototype),"_handleButtonAction",this).call(this,e,n)}},{key:"_onEnterKey",value:function(e){"choices__button"===e.event.target.className&&(this.shouldOpenDropDown=!1),c(p(u.prototype),"_onEnterKey",this).call(this,e)}},{key:"_onDirectionKey",value:function(){for(var e,n,r=this,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];if(!this._isSelectOneElement)return(e=c(p(u.prototype),"_onDirectionKey",this)).call.apply(e,[this].concat(i));this.isDirectionUsing=!0,(n=c(p(u.prototype),"_onDirectionKey",this)).call.apply(n,[this].concat(i)),this.onSelectValue.apply(this,i),clearTimeout(this.timeout),this.timeout=setTimeout(function(){r.isDirectionUsing=!1},250)}},{key:"_onTabKey",value:function(e){var n=e.activeItems;e.hasActiveDropdown&&this._selectHighlightedChoice(n)}},{key:"_selectHighlightedChoice",value:function(e){var n=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));n&&this._handleChoiceAction(e,n),event.preventDefault()}},{key:"_onKeyDown",value:function(e){if(!this._isSelectOneElement)return c(p(u.prototype),"_onKeyDown",this).call(this,e);var n,r=e.target,o=e.keyCode,i=e.ctrlKey,a=e.metaKey;if(r===this.input.element||this.containerOuter.element.contains(r)){var s=this._store.activeItems,f=this.input.isFocussed,d=this.dropdown.isActive,y=this.itemList.hasChildren,m=String.fromCharCode(o),v=h.BACK_KEY,b=h.DELETE_KEY,g=h.TAB_KEY,w=h.ENTER_KEY,k=h.A_KEY,O=h.ESC_KEY,P=h.UP_KEY,j=h.DOWN_KEY,_=h.PAGE_UP_KEY,S=h.PAGE_DOWN_KEY;if(!d&&!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(m)){var C=this.input.element.value;this.input.element.value=C?"".concat(C).concat(m):m,this.showDropdown()}var E=(l(n={},k,this._onAKey),l(n,g,this._onTabKey),l(n,w,this._onEnterKey),l(n,O,this._onEscapeKey),l(n,P,this._onDirectionKey),l(n,_,this._onDirectionKey),l(n,j,this._onDirectionKey),l(n,S,this._onDirectionKey),l(n,b,this._onDeleteKey),l(n,v,this._onDeleteKey),n);E[o]&&E[o]({event:e,target:r,keyCode:o,metaKey:a,activeItems:s,hasFocusedInput:f,hasActiveDropdown:d,hasItems:y,hasCtrlDownKeyPressed:i||a})}}},{key:"onSelectValue",value:function(e){var n=e.event,r=e.activeItems;e.hasActiveDropdown?this._selectHighlightedChoice(r):this._isSelectOneElement&&(this.showDropdown(),n.preventDefault())}},{key:"showDropdown",value:function(){var e;if(!this.shouldOpenDropDown){this.shouldOpenDropDown=!0;return}for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];(e=c(p(u.prototype),"showDropdown",this)).call.apply(e,[this].concat(r))}},{key:"hideDropdown",value:function(){var e;if(!this.isDirectionUsing){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];(e=c(p(u.prototype),"hideDropdown",this)).call.apply(e,[this].concat(r))}}},{key:"_onBlur",value:function(){var e;if(!this._isScrollingOnIe){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];(e=c(p(u.prototype),"_onBlur",this)).call.apply(e,[this].concat(r))}}}],s(u.prototype,r),i&&s(u,i),Object.defineProperty(u,"prototype",{writable:!1}),u}(a.default);n.ZP=y},62277:function(e,n,r){"use strict";r(26343),r(7122),r(3616),r(43053),r(56613),r(84812),r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(41135),r(37753),r(88910),r(67998),r(789),r(31490),r(20680),r(71287),r(48510),r(70601),r(49907),r(30890),r(89352),r(6778),r(68428),r(11414),r(28839);var o=a(r(2890)),i=a(r(65941));
1function a(e){return e&&e.__esModule?e:{default:e}}function l(e,n,r){return(l=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&s(i,r.prototype),i}:Reflect.construct.bind()).apply(null,arguments)}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,n)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d={noeval:!1,protectedEval:!1,cache:{},templateSettings:{evaluate:/\{%([\s\S]+?)%\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},evaluator:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return d.noeval?(console.warn("No evaluations allowed for this renderer."),o.default.noop):("object"===f(r[0])&&(r=o.default.keys(r[0])),l(Function,u(r).concat([e])))},template:function(e,n){if(n=n||(0,i.default)(e),d.cache[n])return d.cache[n];try{return e=e.replace(/ctx\./g,""),d.cache[n]=o.default.template(e,d.templateSettings)}catch(n){console.warn("Error while processing template",n,e)}},interpolate:function(e,n,r){var i,a=o.default.isObject(r)?r:{noeval:r};if("function"==typeof e)try{return e(n)}catch(e){return console.warn("Error interpolating template",e,n),e.message}if(e=String(e),d.noeval||a.noeval)return e.replace(/({{\s*(.*?)\s*}})/g,function(e,r,i){for(var l=i.split("||").map(function(e){return e.trim()}),s="",u="",c=0;c<l.length&&(u=l[c],!(s=o.default.get(n,u)));c++);return a.data&&o.default.set(a.data,u,s),s});if("function"==typeof(i=d.template(e)))try{return n.component&&n.component.filter===e&&!n.options.building&&(n.data=o.default.mapValues(n.data,function(e){return o.default.isString(e)?encodeURIComponent(e):e})),i(n)}catch(r){return console.warn("Error interpolating template",r,e,n),r.message}return i},evaluate:function(e,n){return Array.isArray(n)?e.apply(void 0,u(n)):e(n)}};d.registerEvaluator=function(e){Object.keys(e).forEach(function(n){d[n]=e[n]})},n.default=d},71125:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(33546),r(20680),r(41135),r(37753),r(88910),r(49907),r(30890),r(67998);var o,i=(o=r(2890))&&o.__esModule?o:{default:o},a=r(38163);n.default={uniquify:function(e,n){var r=!1,o={};return(0,a.eachComponent)(e,function(e){if(o[e.key]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)return!0},!0),(0,a.eachComponent)([n],function(e){if(e.key){var n=(0,a.uniqueKey)(o,e.key);if(n!==e.key&&(e.key=n,r=!0),o[n]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)return!0}},!0),r},additionalShortcuts:{button:["Enter","Esc"]},getAlphaShortcuts:function(){return i.default.range("A".charCodeAt(),"Z".charCodeAt()+1).map(function(e){return String.fromCharCode(e)})},getAdditionalShortcuts:function(e){return this.additionalShortcuts[e]||[]},getBindedShortcuts:function(e,n){var r=[];return(0,a.eachComponent)(e,function(e){e!==n&&(e.shortcut&&r.push(e.shortcut),e.values&&e.values.forEac
1h(function(e){e.shortcut&&r.push(e.shortcut)}))},!0),r},getAvailableShortcuts:function(e,n){return n?[""].concat(i.default.difference(this.getAlphaShortcuts().concat(this.getAdditionalShortcuts(n.type)),this.getBindedShortcuts(e.components,n))).map(function(e){return{label:e,value:e}}):[]}}},73172:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.CALENDAR_ERROR_MESSAGES=void 0,n.checkInvalidDate=function(e,n,r,a){var c=(0,o.default)(e,n,!0),f=c.isValid();if(f){if(f&&-1===e.indexOf("_")){var d=u(c,n[0],a,r);if(!d.result)return s(d.message,d.result)}}else{var p=e.match(/[^a-z0-9_]/gi),h=RegExp(p.join("|"),"gi"),y=e.replace(/_*/gi,"").split(h),m=n[1]?n[1].split(h):n[0].split(h),v=i.default.findIndex(m,function(e,n){return 1===e.length&&n===m.length-1});if(y[i.default.findIndex(m,function(e){return e.match(/yyyy/gi)})]/1e3<1||y[0].length!==m[0].length)return s(l.INVALID,!1);var b=y.map(function(e,n){var r=e;return e||n!==v?e||(r="01"):r="AM",p[n]&&(r="".concat(r).concat(p[n])),r}),g=(0,o.default)(b.join(""),n,!0);if(!g.isValid())return s(l.INVALID,!1);var w=u(g,n[0],a,r);return w.result?s(l.INCOMPLETE,!1):s(w.message,w.result)}return s("",!0)},n.lessOrGreater=u,r(789),r(64284),r(93538),r(45945),r(55096),r(88754),r(31490),r(86328),r(20680),r(67998),r(94195);var o=a(r(62067)),i=a(r(2890));function a(e){return e&&e.__esModule?e:{default:e}}var l={INVALID:"You entered the Invalid Date",INCOMPLETE:"You entered an incomplete date.",greater:function(e,n){return"The entered date is greater than ".concat(e.format(n))},less:function(e,n){return"The entered date is less than ".concat(e.format(n))}};function s(e,n){return{message:e,result:n}}function u(e,n,r,i){var a="",s=!0;if(r&&e.isValid()){var u=(0,o.default)(r,n);e>u&&(a=l.greater(u,n),s=!1)}if(i&&e.isValid()){var c=(0,o.default)(i,n);e<c&&(a=l.less(c,n),s=!1)}return{message:a,result:s}}n.CALENDAR_ERROR_MESSAGES=l},91239:function(e,n,r){"use strict";r(64652),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(92471),r(37753),r(62107),r(21430),r(6778),r(68428),r(21587);var o,i=(o=r(2890))&&o.__esModule?o:{default:o};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?l(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=c(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function c(e){var n=function(e,n){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==a(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===a(n)?n:String(n)}var f=function(){var e,n;function r(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r)}return n=[{key:"operatorKey",get:function(){return""}},{key:"displayedName",get:function(){return""}},{key:"requireValue",get:function(){return!0}}],e=[{key:"execute",value:function(e){return!0}},{key:"getResult",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.value;return i.default.isArray(r)?i.default.some(r,function(r){return e.execute(s(s({},n),{},{value:r}))}):this.execute(n)}}],u(r.prototype,e),n&&u(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.default=f},11047:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(889
110),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(43053),r(56613),r(65813);var i=l(r(91239)),a=l(r(62067));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function u(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=f(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function d(e,n){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(s,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=p(s);if(n){var i=p(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,s),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"dateGreaterThan"}},{key:"displayedName",get:function(){return"Greater Than"}}],r=[{key:"getFormattedDates",value:function(e){var n=e.value,r=e.comparedValue,o=e.conditionTriggerComponent,i=o?o.getValidationFormat:null;return{date:i?(0,a.default)(n,o.getValidationFormat()):(0,a.default)(n),comparedDate:i?(0,a.default)(r,o.getValidationFormat()):(0,a.default)(r)}}},{key:"execute",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"isAfter",r=e.value,o=e.instance,i=e.conditionComponentPath;if(!r)return!1;var a=null;if(o&&o.root&&(a=Array.isArray(a=o.root.getComponent(i))?a[0]:a),a&&a.isPartialDay&&a.isPartialDay(r))return!1;var l=this.getFormattedDates(u(u({},e),{},{conditionTriggerComponent:a})),s=l.date,c=l.comparedDate;return s[n](c)}}],c(s.prototype,r),i&&c(s,i),Object.defineProperty(s,"prototype",{writable:!1}),s}(i.default);n.default=h},53238:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=s(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var u,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return u=[{key:"operatorKey",get:function(){return"dateGreaterThanOrEqual"}},{key:"displayedName",get:function(){return"Greater Than Or Equal To"}}],r=[{key:"execute",value:function(e){return a(s(f.prototype),"execute",this).call(this,e,"isSameOrAfter")}}],i(f.prototype,r),u&&i(f,u),Object.defineProperty(f,"prototype",{writable:!1}),f}(((u=r(11047))&&u.__esModule?u:{default:u}).default);n.default=c},11059:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=s(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var u,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return u=[{key:"operatorKey",get:function(){return"dateLessThan"}},{key:"displayedName",get:function(){return"Less Than"}}],r=[{key:"execute",value:function(e){return a(s(f.prototype),"execute",this).call(this,e,"isBefore")}}],i(f.prototype,r),u&&i(f,u),Object.defineProperty(f,"prototype",{writable:!1}),f}
1(((u=r(11047))&&u.__esModule?u:{default:u}).default);n.default=c},57118:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=s(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var u,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return u=[{key:"operatorKey",get:function(){return"dateLessThanOrEqual"}},{key:"displayedName",get:function(){return"Less Than Or Equal To"}}],r=[{key:"execute",value:function(e){return a(s(f.prototype),"execute",this).call(this,e,"isSameOrBefore")}}],i(f.prototype,r),u&&i(f,u),Object.defineProperty(f,"prototype",{writable:!1}),f}(((u=r(11047))&&u.__esModule?u:{default:u}).default);n.default=c},62850:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(99326),r(43053),r(56613),r(65813);var i=l(r(91239)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"endsWith"}},{key:"displayedName",get:function(){return"Ends With"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.endsWith(n,r)}}],s(f.prototype,r),i&&s(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},49933:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var i=l(r(91239)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"greaterThan"}},{key:"displayedName",get:function(){return"Greater Than"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.isNumber(n)&&n>r}}],s(f.prototype,r),i&&s(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},41961:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(889
110),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var i=l(r(91239)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"greaterThanOrEqual"}},{key:"displayedName",get:function(){return"Greater Than Or Equal To"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.isNumber(n)&&(n>r||a.default.isEqual(n,r))}}],s(f.prototype,r),i&&s(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},60230:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(33546),r(88852),r(43053),r(56613),r(65813);var i=l(r(91239)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"includes"}},{key:"displayedName",get:function(){return"Includes"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.includes(n,r)}}],s(f.prototype,r),i&&s(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},6106:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=s(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var u,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return u=[{key:"operatorKey",get:function(){return"isDateEqual"}},{key:"displayedName",get:function(){return"Is Equal To"}}],r=[{key:"execute",value:function(e){return a(s(f.prototype),"execute",this).call(this,e,"isSame")}}],i(f.prototype,r),u&&i(f,u),Object.defineProperty(f,"prototype",{writable:!1}),f}(((u=r(11047))&&u.__esModule?u:{default:u}).default);n.default=c},19860:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(43053),r(56613),r(65813);var i=l(r(91239)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"isEmpty"}},{key:"displayedName",get:function(){return"Is Empty"}},{key:"requireValue",get:function(){return!1}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.instance,o=e.conditionComponentPath,i=a.default.isEmpty(n);if(r&&r.root){var l=r.root.getComponent(o);return(l=Array.isArray(l)?l[0]:l)?l.isEmpty():i}return i}},{key:"getResult",value:function(e){return this.execute(e)}}],s(f.prototype,r),i&&s(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},58509:function(e,n,r){"use strict";r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(889
110),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(70601),r(77273),r(37753),r(43053),r(56613),r(65813);var o=l(r(91239)),i=l(r(2890)),a=r(38163);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==s(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===s(n)?n:String(n)}(o.key),o)}}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(d,e);var n,r,o,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(d);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),l.apply(this,arguments)}return o=[{key:"operatorKey",get:function(){return"isEqual"}},{key:"displayedName",get:function(){return"Is Equal To"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue,o=e.instance,l=e.conditionComponentPath;if((n||!1===n)&&r&&s(n)!==s(r)&&i.default.isString(r))try{r=JSON.parse(r)}catch(e){}if(o&&o.root){var u,c=o.root.getComponent(l);if((c=Array.isArray(c)?c[0]:c)&&(0,a.isSelectResourceWithObjectValue)(c.component)&&null!==(u=c.component)&&void 0!==u&&u.template){if(!n||!i.default.isPlainObject(n))return!1;var f=c.component,d=f.template;return"data"===f.valueProperty&&(n={data:n},r={data:r}),i.default.every((0,a.getItemTemplateKeys)(d)||[],function(e){return i.default.isEqual(i.default.get(n,e),i.default.get(r,e))})}}return i.default.isObject(n)&&r&&i.default.isString(r)?n[r]:i.default.isEqual(n,r)}}],u(d.prototype,r),o&&u(d,o),Object.defineProperty(d,"prototype",{writable:!1}),d}(o.default);n.default=d},46898:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=s(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var u,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return u=[{key:"operatorKey",get:function(){return"isNotDateEqual"}},{key:"displayedName",get:function(){return"Is Not Equal To"}}],r=[{key:"execute",value:function(e){return!a(s(f.prototype),"execute",this).call(this,e,"isSame")}}],i(f.prototype,r),u&&i(f,u),Object.defineProperty(f,"prototype",{writable:!1}),f}(((u=r(11047))&&u.__esModule?u:{default:u}).default);n.default=c},62100:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=s(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var u,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return u=[{key:"operatorKey",get:function(){return"isNotEmpty"}},{key:"displayedName",get:function(){return"Is Not Empty"}}],r=[{key:"getResult",value:function(e){return!a(s(f.prototype),"getResult",this).call(this,e)}}],i(f.prototype,r),u&&i(f,u),Object.defineProperty(f,"prototype",{writable:!1}),f}
1(((u=r(19860))&&u.__esModule?u:{default:u}).default);n.default=c},11280:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=s(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var u,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return u=[{key:"operatorKey",get:function(){return"isNotEqual"}},{key:"displayedName",get:function(){return"Is Not Equal To"}}],r=[{key:"execute",value:function(e){return!a(s(f.prototype),"execute",this).call(this,e)}}],i(f.prototype,r),u&&i(f,u),Object.defineProperty(f,"prototype",{writable:!1}),f}(((u=r(58509))&&u.__esModule?u:{default:u}).default);n.default=c},63496:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var i=l(r(91239)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"lessThan"}},{key:"displayedName",get:function(){return"Less Than"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.isNumber(n)&&n<r}}],s(f.prototype,r),i&&s(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},28410:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var i=l(r(91239)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"lessThanOrEqual"}},{key:"displayedName",get:function(){return"Less Than Or Equal To"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.isNumber(n)&&(n<r||a.default.isEqual(n,r))}}],s(f.prototype,r),i&&s(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},90601:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=s(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43053),r(56613),r(65813);var u,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,u,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return u=[{key:"operatorKey",get:function(){return"notIncludes"}},{key:"displayedName",get:function(){return"Not Includes"}}],r=[{key:"execute",value:function(e){return!a(s(f.prototype),"execute",this).call(this,e)}}],i(f.prototype,r),u&&i(f,u),Object.defineProperty(f,"prototype",{writable:!1}),f}(((u=r(60230))&&u.__esModule?u:{default:u}).default);n.default=c},98709:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(98797),r(43053),r(56613),r(65813);var i=l(r(91239)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);if(n){var i=c(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"startsWith"}},{key:"displayedName",get:function(){return"Starts With"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.startsWith(n,r)}}],s(f.prototype,r),i&&s(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},45401:function(e,n,r){"use strict";
1r(64652),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o,i=P(r(11280)),a=P(r(19860)),l=P(r(62100)),s=P(r(63496)),u=P(r(49933)),c=P(r(58509)),f=P(r(11047)),d=P(r(11059)),p=P(r(60230)),h=P(r(98709)),y=P(r(90601)),m=P(r(62850)),v=P(r(53238)),b=P(r(57118)),g=P(r(28410)),w=P(r(41961)),k=P(r(6106)),O=P(r(46898));function P(e){return e&&e.__esModule?e:{default:e}}function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,n,r){var o;return(o=function(e,n){if("object"!==j(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==j(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"===j(o)?o:String(o))in e)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var S=(_(o={},"".concat(i.default.operatorKey),i.default),_(o,"".concat(c.default.operatorKey),c.default),_(o,"".concat(a.default.operatorKey),a.default),_(o,"".concat(l.default.operatorKey),l.default),_(o,"".concat(s.default.operatorKey),s.default),_(o,"".concat(u.default.operatorKey),u.default),_(o,"".concat(f.default.operatorKey),f.default),_(o,"".concat(d.default.operatorKey),d.default),_(o,"".concat(p.default.operatorKey),p.default),_(o,"".concat(h.default.operatorKey),h.default),_(o,"".concat(m.default.operatorKey),m.default),_(o,"".concat(y.default.operatorKey),y.default),_(o,"".concat(v.default.operatorKey),v.default),_(o,"".concat(b.default.operatorKey),b.default),_(o,"".concat(g.default.operatorKey),g.default),_(o,"".concat(w.default.operatorKey),w.default),_(o,"".concat(k.default.operatorKey),k.default),_(o,"".concat(O.default.operatorKey),O.default),o);n.default=S},53669:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.applyFormChanges=function(e,n){var r=[];return n.forEach(function(n){var a=!1;switch(n.op){case"add":var l=n.component;O(e.components,n.container,null,function(r){n.container||(r=e),O(e.components,n.key,null,function(n,r){l=n,P(e.components,r)}),a=!0,(0,o.default)(r,n.path).splice(n.index,0,l)});break;case"remove":O(e.components,n.key,null,function(n,r){a=!0,(0,o.default)(e.components,r).key!==n.key&&r.pop(),P(e.components,r)});break;case"edit":O(e.components,n.key,null,function(l,s){a=!0;try{var u=(0,o.default)(e.components,s),c=(0,m.applyPatch)(l,n.patches).newDocument;u.key!==c.key&&s.pop(),(0,i.default)(e.components,s,c)}catch(e){r.push(n)}})}a||r.push(n)}),{form:e,failed:r}},n.eachComponent=g,n.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},n.findComponent=O,n.findComponents=function(e,n){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),k(e,n)},n.flattenComponents=function(e,n){var r={};return g(e,function(e,n){r[n]=e},n),r},n.formatAsCurrency=function(e){var n=j(e);if((0,c.default)(n))return"";var r=(0,p.default)(n,2).toString().split(".");return r[0]=(0,h.default)(Array.from(r[0]).reverse(),3).reverse().map(function(e){return e.reverse().join("")}).join(","),r[1]=(0,y.default)(r[1],2,"0"),r.join(".")},n.generateFormChange=function(e,n){var r;switch(e){case"add":r={op:"add",key:n.component.key,container:n.parent.key,path:n.path,index:n.index,component:n.component};break;case"edit":(r={op:"edit",key:n.originalComponent.key,patches:(0,m.compare)(n.originalComponent,n.component)}).patches.length||(r=null);break;case"remove":r={op:"remove",key:n.component.key}}return r},n.getComponent=function(e,n,r){var o;return g(e,function(e,r){if(r===n||e.path===n)return o=e,!0},r),o},n.getStrings=function(e){var n=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],r=[];return g(e.components,function(e){if(n.forEach(function(n){e.hasOwnProperty(n)&&e[n]&&r.push({key:e.key,type:e.type,property:n,string:e[n]})}),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEac
1h(function(n,o){r.push({key:e.key,property:"value[".concat(o,"].label"),string:e.values[o].label})}),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach(function(n){r.push({key:e.key,property:"day",string:n})}),e.fields.day.placeholder&&r.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&r.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&r.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){var o=e.addAnother||"Add Another";e.addAnother&&r.push({key:e.key,property:"addAnother",string:o})}"select"===e.type&&["loading...","Type to search"].forEach(function(n){r.push({key:e.key,property:"select",string:n})})},!0),r},n.getValue=function(e,n){return function e(r){if(!(0,d.default)(r))return null;if((0,a.default)(r,n))return v.default.get(r,n);var o=null;return(0,s.default)(r,function(n){var r=e(n);if(!(0,f.default)(r))return o=r,!1}),o}(e.data)},n.hasCondition=function(e){return!!(e.customConditional||e.conditional&&(e.conditional.when||v.default.some(e.conditional.conditions||[],function(e){return e.component&&e.operator})||e.conditional.json||e.conditional.condition))},n.isLayoutComponent=function(e){return!!(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},n.matchComponent=w,n.parseFloatExt=j,n.removeComponent=P,n.searchComponents=k,r(70601),r(49907),r(37753),r(30890),r(67998),r(94195),r(33546),r(7122),r(41967),r(92471),r(92647),r(789),r(31490),r(45399),r(45945),r(55096),r(20680),r(19035),r(26343),r(28839),r(41135),r(88910);var o=b(r(98614)),i=b(r(12410)),a=b(r(1181)),l=b(r(97314)),s=b(r(22928)),u=b(r(33874)),c=b(r(49027)),f=b(r(52727)),d=b(r(84412)),p=b(r(68618)),h=b(r(20130)),y=b(r(38974)),m=r(85242),v=b(r(2890));function b(e){return e&&e.__esModule?e:{default:e}}function g(e,n,r,o,i,a){if(e){if(o=o||"",a){if(e.noRecurse){delete e.noRecurse;return}e.noRecurse=!0}e.forEach(function(a){if(a){var s=a.columns&&Array.isArray(a.columns),u=a.rows&&Array.isArray(a.rows),c=a.components&&Array.isArray(a.components),f=!1,d=a.key?o?"".concat(o,".").concat(a.key):a.key:"";i&&(a.parent=(0,l.default)(i),delete a.parent.components,delete a.parent.componentMap,delete a.parent.columns,delete a.parent.rows);var p=s||u||c&&!a.input||["htmlelement","content"].indexOf(a.type)>-1;(r||a.tree||!p)&&(f=n(a,d,e));var h=function(){return a.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(a.type)&&(["datagrid","container","editgrid","address","dynamicWizard","datatable","tagpad"].includes(a.type)||a.tree)?d:a.key&&"form"===a.type?"".concat(d,".data"):o};!f&&(s?a.columns.forEach(function(e){return g(e.components,n,r,h(),i?a:null)},!0):u?a.rows.forEach(function(e){Array.isArray(e)&&e.forEach(function(e){return g(e.components,n,r,h(),i?a:null)},!0)}):c&&g(a.components,n,r,h(),i?a:null,!0))}}),e.noRecurse&&delete e.noRecurse}}function w(e,n){if((0,u.default)(n))return e.key===n||e.path===n;var r=!1;return(0,s.default)(n,function(n,i){if(!(r=(0,o.default)(e,i)===n))return!1}),r}function k(e,n){var r=[];return g(e,function(e){w(e,n)&&r.push(e)},!0),r}function O(e,n,r,o){if(e){if(r=r||[],!n)return o(e);e.forEach(function(i,a){var l=r.slice();l.push(a),i&&(i.hasOwnProperty("columns")&&Array.isArray(i.columns)&&(l.push("columns"),i.columns.forEach(function(e,r){var i=l.slice();i.push(r),i.push("components"),O(e.components,n,i,o)})),i.hasOwnProperty("rows")&&Array.isArray(i.rows)&&(l.push("rows"),i.rows.forEach(function(e,r){var i=l.slice();i.push(r),e.forEach(function(e,r){var a=i.slice();a.push(r),a.push("components"),O(e.components,n,a,o)})})),i.hasOwnProperty("components")&&Array.isArray(i.components)&&(l.push("components"),O(i.components,n,l,o)),i.key===n&&o(i,l,e))})}}function P(e,n){var r=n.pop();0!==n.length&&(e=(0,o.default)(e,n)),e.splice(r,1)}function j(e){return parseFloat((0,u.default)(e)?e.replace(/[^\de.+-]/gi,""):e)}},31457:function(e,n,r){"use strict";r(2223),r(64652),r(80107),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(6778),r(68428),r(37753),r(11414),r(41135),r(28839),r(889
vendor: 1,208 bytes, line 1
110);var o=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=i(n);if(r&&r.has(e))return r.get(e);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=l?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}return o.default=e,r&&r.set(e,o),o}(r(38163));function i(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:n})(e)}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}(void 0===r.g?"undefined":a(r.g))==="object"&&(r.g.FormioUtils=o),n.default=o},76700:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.lodashOperators=void 0,n.lodashOperators=["chunk","compact","concat","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","findIndex","findLastIndex","first","flatten","flatten
1Deep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","castArray","clone","cloneDeep","cloneDeepWith","cloneDeep","conformsTo","eq","gt","gte","isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBoolean","isBuffer","isDate","isElement","isEmpty","isEqual","isEqualWith","isError","isFinite","isFunction","isInteger","isLength","isMap","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isWeakMap","isWeakSet","lt","lte","toArray","toFinite","toInteger","toLength","toNumber","toPlainObject","toSafeInteger","toString","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","at","entries","entriesIn","findKey","findLastKey","functions","functionsIn","get","has","hasIn","invert","invertBy","invoke","keys","keysIn","mapKeys","mapValues","omit","omitBy","pick","pickBy","result","toPairs","toPairsIn","transform","values","valuesIn","camelCase","capitalize","deburr","endsWith","escape","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","padEnd","padStart","parseInt","repeat","replace","snakeCase","split","startCase","startsWith","toLower","toUpper","trim","trimEnd","trimStart","truncate","unescape","upperCase","upperFirst","words","cond","conforms","constant","defaultTo","flow","flowRight","identity","iteratee","matches","matchesProperty","method","methodOf","nthArg","over","overEvery","overSome","property","propertyOf","range","rangeRight","stubArray","stubFalse","stubObject","stubString","stubTrue","times","toPath","uniqueId"]},38163:function(e,n,r){"use strict";r(6778),r(68428),r(11414),r(28839),r(26343),r(64652),Object.defineProperty(n,"__esModule",{value:!0});var o={evaluate:!0,getRandomComponentId:!0,getPropertyValue:!0,getElementRect:!0,boolValue:!0,isMongoId:!0,checkCalculated:!0,checkSimpleConditional:!0,getComponentActualValue:!0,checkCustomConditional:!0,checkJsonConditional:!0,checkCondition:!0,checkTrigger:!0,setActionProperty:!0,unescapeHTML:!0,convertStringToHTMLElement:!0,uniqueName:!0,guid:!0,getDateSetting:!0,isValidDate:!0,currentTimezone:!0,offsetDate:!0,zonesLoaded:!0,shouldLoadZones:!0,loadZones:!0,momentDate:!0,formatDate:!0,formatOffset:!0,getLocaleDateFormatInfo:!0,convertFormatToFlatpickr:!0,convertFormatToMoment:!0,convertFormatToMask:!0,getInputMask:!0,unmaskValue:!0,matchInputMask:!0,getNumberSeparators:!0,getNumberDecimalLimit:!0,getCurrencyAffixes:!0,fieldData:!0,delay:!0,iterateKey:!0,uniqueKey:!0,bootstrapVersion:!0,unfold:!0,firstNonNil:!0,withSwitch:!0,observeOverload:!0,getContextComponents:!0,getContextButtons:!0,translateHTMLTemplate:!0,sanitize:!0,fastCloneDeep:!0,interpolate:!0,isInputComponent:!0,getArrayFromComponentPath:!0,hasInvalidComponent:!0,getStringFromComponentPath:!0,round:!0,getIEBrowserVersion:!0,getBrowserInfo:!0,getComponentPathWithoutIndicies:!0,getComponentPath:!0,getDataParentComponent:!0,isPromise:!0,isInsideScopingComponent:!0,getFocusableElements:!0,componentValueTypes:!0,getComponentSavedTypes:!0,getItemTemplateKeys:!0,isSelectResourceWithObjectValue:!0,_:!0,jsonLogic:!0,moment:!0,Evaluator:!0,ConditionOperators:!0};Object.defineProperty(n,"ConditionOperators",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(n,"Evaluator",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"_",{enumerable:!0,get:function(){return i.default}}),n.boolValue=function(e){return i.default.isBoolean(e)?e:i.default.isString(e)?"true"===e.toLowerCase():!!e},n.bootstrapVersion=function(e){return e.bootstrap?e.bootstrap:"function"==typeof $&&"function"==typeof $().collapse?parseInt($.fn.collapse.Constructor.VERSION.split(".")[0],10):0},n.checkCalculated=function(e,n,r){e.calculateValue&&i.default.set(r,e.key,k(e.calculateValue,{value:void 0,data:n?n.data:r,row:r,util:this,component:e},"value"))},n.checkCondition=function(e,n,r,o,a){var l=e.customConditional,s=e.conditional;return l?_(e,l,n,r,o,"show",!0,a):s&&(s.when||i.default.some(s.conditions||[],function(e){return e.component&&e.operator}))?(n=C(e,n,a),P(e,s,n,r,a)):!s||!s.json||S(e,s.json,n,r,o,!0)},n.checkCustomConditional=_,n.checkJsonConditional=S,n.checkSimpleConditional=P,n.checkTrigger=function(e,n,r,o,i,a){if(!n[n.type])return!1;switch(n.type){case"simple":return r=C(e,r,a,n.simple),P(e,n.simple,r,o,a);case"javascript":return _(e,n.javascript,r,o,i,"result",!1,a);case"json":return S(e,n.json,r,o,i,!1)}return!1},n.componentValueTypes=void 0,n.convertFormatToFlatpickr=function(e){return e.replace(/Z/g,"").replace(/y/g,"Y").replace("YYYY","Y").replace("YY","y").replace("MMMM","F").replace(/M/g,"n").replace("nnn","M").replace("nn","m").replace(/d/g,"j").replace(/jj/g,"d").replace("EEEE","l").replace("EEE","D").replace("HH","H").replace("hh","G").replace("mm","i").replace("ss","S").replace(/a/g,"K")},n.convertFormatToMask=function(e){return e.replace(/M{4}/g,"MM").replace(/M{3}/g,"***").replace(/e/g,"Q").replace(/[ydhmsHMG]/g,"9").replace(/a/g,"AA")},n.convertFormatToMoment=A,n.convertStringToHTMLElement=function(e,n){return new window.DOMParser().parseFromString(e,"text/html").body.querySelector(n)},n.currentTimezone=x,n.delay=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a=setTimeout.apply(void 0,[e,n].concat(o));function l(){clearTimeout(a)}function s(){return l(),e.apply(void 0,o)}return s.timer=a,s.cancel=l,s},n.evaluate=k,n.fastCloneDeep=function(e){return e?JSON.parse(JSON.stringify(e)):e},n.fieldData=function(e,n){if(!e)return"";if(!n||!n.key)return e;if(n.key.includes(".")){for(var r=e,o=n.key.split("."),i="",a=0;a<o.length;a++){if(i=o[a],r.hasOwnProperty("_id")&&(r=r.data),!r.hasOwnProperty(i))return;i===o[o.length-1]&&n.multiple&&!Array.isArray(r[i])&&(r[i]=[r[i]]),r=r[i]}return r}return(n.multiple&&!Array.isArray(e[n.key])&&(e[n.key]=[e[n.key]]),"checkbox"===n.type&&"radio"===n.inputType)?e[n.name]===n.value:e[n.key]},n.firstNonNil=void 0,n.formatDate=function(e,n,r,o,i){var a=(0,s.default)(n,i||void 0);if(o===x())return r.match(/\s(z$|z\s)/)?(T(e),s.default.zonesLoaded)?a.tz(o).format(A(r)):a.format(A(r.replace(/\s(z$|z\s)/,""))):a.format(A(r));if("UTC"===o){var l=R(a.toDate(),"UTC");return"".concat((0,s.default)(l.date).format(A(r))," UTC")}return(T(e),s.default.zonesLoaded&&o)?a.tz(o).format("".concat(A(r)," z")):a.format(A(r))}
vendor: 5,215 bytes, line 1
1,n.formatOffset=function(e,n,r,o,i){if(i===x())return n(r,o);if("UTC"===i)return"".concat(n(R(r,"UTC").date,o)," UTC");if(T(e),!s.default.zonesLoaded)return n(r,o);var a=R(r,i);return"".concat(n(a.date,o)," ").concat(a.abbr)},n.getArrayFromComponentPath=function(e){return e&&i.default.isString(e)?e.replace(/[[\]]/g,".").replace(/\.\./g,".").replace(/(^\.)|(\.$)/g,"").split(".").map(function(e){return i.default.defaultTo(i.default.toNumber(e),e)}):i.default.isArray(e)?e:[e]},n.getBrowserInfo=N,n.getComponentActualValue=j,n.getComponentPath=F,n.getComponentPathWithoutIndicies=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\[\d+\]/,"")},n.getComponentSavedTypes=function(e){var n=e||{};return!0!==n.persistent?[]:n.multiple?[z.array]:null},n.getContextButtons=function(e){var n=[];return e.utils.eachComponent(e.instance.options.editForm.components,function(e){"button"===e.type&&n.push({label:"".concat(e.key," (").concat(e.label,")"),value:e.key})}),n},n.getContextComponents=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=[];return e.utils.eachComponent(e.instance.options.editForm.components,function(a,l){var s=!n||!a.tree;a.key!==e.data.key&&s&&!i.default.includes(r,a.type)&&o.push({label:"".concat(a.label||a.key," (").concat(l,")"),value:l})}),o},n.getCurrencyAffixes=function(e){var n=e.currency,r=e.decimalLimit,o=e.decimalSeparator,i=e.lang,a="(.*)?".concat(100..toLocaleString(i));r&&(a+="".concat("."===o?"\\.":o).concat(0..toLocaleString(i),"{").concat(r,"}")),a+="(.*)?";var l=100..toLocaleString(i,{style:"currency",currency:void 0===n?"USD":n,useGrouping:!0,maximumFractionDigits:r||0,minimumFractionDigits:r||0}).replace(".",o).match(new RegExp(a));return{prefix:(null==l?void 0:l[1])||"",suffix:(null==l?void 0:l[2])||""}},n.getDataParentComponent=B,n.getDateSetting=function(e){if(i.default.isNil(e)||i.default.isNaN(e)||""===e)return null;if(e instanceof Date)return e;if("function"==typeof e.toDate)return e.isValid()?e.toDate():null;var n="string"!=typeof e||-1===e.indexOf("moment(")?(0,s.default)(e):null;if(n&&n.isValid())return n.toDate();n=null;try{var r=h.default.evaluator("return ".concat(e,";"),"moment")(s.default);"string"==typeof r?n=(0,s.default)(r):"function"==typeof r.toDate?n=(0,s.default)(r.toDate().toUTCString()):r instanceof Date&&(n=(0,s.default)(r))}catch(e){return null}return n&&n.isValid()?n.toDate():null},n.getElementRect=function(e){var n=window.getComputedStyle(e,null);return{x:O(n,"left"),y:O(n,"top"),width:O(n,"width"),height:O(n,"height")}},n.getFocusableElements=function(e){return e.querySelectorAll("button:not([disabled]), input:not([disabled]), select:not([disabled]),\n    textarea:not([disabled]), button:not([disabled]), [href]")},n.getIEBrowserVersion=function(){var e=N(),n=e.ie,r=e.version;return n?r:null},n.getInputMask=function(e,n){if(e instanceof Array)return e;var r=[];r.numeric=!0;for(var o=0;o<e.length;o++)switch(e[o]){case"9":r.push(/\d/);break;case"A":r.numeric=!1,r.push(/[a-zA-Z]/);break;case"a":r.numeric=!1,r.push(/[a-z]/);break;case"*":r.numeric=!1,r.push(/[a-zA-Z0-9]/);break;case n:r.numeric=!1,r.push(" ");break;default:r.numeric=!1,r.push(e[o])}return r},n.getItemTemplateKeys=function(e){var n=[];if(!e)return n;var r=e.match(/({{\s*(.*?)\s*}})/g);return r&&r.forEach(function(e){var r=e.match(/{{\s*item\.(.*?)\s*}}/);r&&r.length>1&&n.push(r[1])}),n},n.getLocaleDateFormatInfo=function(e){var n={},r=new Date(2017,11,21).toLocaleDateString(e);return n.dayFirst="21"===r.slice(0,2),n},n.getNumberDecimalLimit=function(e,n){if(i.default.has(e,"decimalLimit"))return i.default.get(e,"decimalLimit");var r=n||20,o=i.default.get(e,"validate.step","any");if("any"!==o){var a=o.toString().split(".");a.length>1&&(r=a[1].length)}return r},n.getNumberSeparators=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",n=12345.6789.toLocaleString(e).match(/..(.)...(.)../);return n?{delimiter:n.length>1?n[1]:",",decimalSeparator:n.length>2?n[2]:"."}:{delimiter:",",decimalSeparator:"."}},n.getPropertyValue=O,n.getRandomComponentId=function(){return"e".concat(Math.random().toString(36).substring(7))},n.getStringFromComponentPath=function(e){if(!i.default.isArray(e))return e;var n="";return e.forEach(function(e,r){i.default.isNumber(e)?n+="[".concat(e,"]"):n+=0===r?e:".".concat(e)}),n},n.guid=E,n.hasInvalidComponent=function e(n){return n.getComponents().some(function(n){return i.default.isArray(n.components)?e(n):n.error})},n.interpolate=void 0,n.isInputComponent=function(e){if(!1===e.input||!0===e.input)return e.input;switch(e.type){case"htmlelement":case"content":case"columns":case"fieldset":case"panel":case"table":case"tabs":case"well":case"button":return!1;default:return!0}},n.isInsideScopingComponent=function e(n){var r=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!r&&null!=n&&n.hasScopedChildren)return!0;var o=B(n);return null!=o&&!!o.hasScopedChildren||null!=o&&!!o.parent&&e(o.parent,!1)},n.isMongoId=function(e){return e.toString().match(/^[0-9a-fA-F]{24}$/)},n.isPromise=function(e){return e&&e.then&&"function"==typeof e.then&&"[object Promise]"===Object.prototype.toString.call(e)}
1,n.isSelectResourceWithObjectValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.reference,r=e.dataSrc,o=e.valueProperty;return n||"resource"===r&&(!o||"data"===o)},n.isValidDate=function(e){return i.default.isDate(e)&&!i.default.isNaN(e.getDate())},n.iterateKey=D,Object.defineProperty(n,"jsonLogic",{enumerable:!0,get:function(){return l.default}}),n.loadZones=T,n.matchInputMask=function(e,n){if(!n)return!0;if(e.length>n.length)return!1;for(var r=0;r<n.length;r++){var o=e[r]||"",a=n[r];if(!(i.default.isRegExp(a)&&a.test(o)||a===o))return!1}return!0},Object.defineProperty(n,"moment",{enumerable:!0,get:function(){return s.default}}),n.momentDate=function(e,n,r){var o=(0,s.default)(e);return r&&("UTC"===r&&(r="Etc/UTC"),(r!==x()||n&&n.match(/\s(z$|z\s)/))&&s.default.zonesLoaded)?o.tz(r):o},n.observeOverload=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.limit,o=void 0===r?50:r,i=n.delay,a=void 0===i?500:i,l=0,s=0,u=function(){return l=0};return function(){if(0!==s&&(clearTimeout(s),s=0),s=setTimeout(u,a),(l+=1)>=o)return clearTimeout(s),u(),e()}},n.offsetDate=R,n.round=function(e,n){return i.default.isNumber(e)?e.toFixed(n):e},n.sanitize=function(e,n){if("function"!=typeof d.default.sanitize)return e;var r={ADD_ATTR:["ref","target"],USE_PROFILES:{html:!0}};if(n.sanitizeConfig&&n.sanitizeConfig.useProfiles&&Object.keys(n.sanitizeConfig.useProfiles).forEach(function(e){r.USE_PROFILES[e]=n.sanitizeConfig.useProfiles[e]}),n.sanitizeConfig&&Array.isArray(n.sanitizeConfig.addAttr)&&n.sanitizeConfig.addAttr.length>0&&n.sanitizeConfig.addAttr.forEach(function(e){r.ADD_ATTR.push(e)}),n.sanitizeConfig&&Array.isArray(n.sanitizeConfig.addTags)&&n.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=n.sanitizeConfig.addTags),n.sanitizeConfig&&Array.isArray(n.sanitizeConfig.allowedTags)&&n.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=n.sanitizeConfig.allowedTags),n.sanitizeConfig&&Array.isArray(n.sanitizeConfig.allowedAttrs)&&n.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=n.sanitizeConfig.allowedAttrs),n.sanitizeConfig&&n.sanitizeConfig.allowedUriRegex){var o=n.sanitizeConfig.allowedUriRegex;r.ALLOWED_URI_REGEXP=i.default.isString(o)?new RegExp(o):o}return n.sanitizeConfig&&Array.isArray(n.sanitizeConfig.addUriSafeAttr)&&n.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=n.sanitizeConfig.addUriSafeAttr),d.default.sanitize(e,r)},n.setActionProperty=function(e,n,r,o,a,l){var s=n.property.value;switch(n.property.type){case"boolean":var u=i.default.get(e,s,!1).toString(),c=n.state.toString();u!==c&&i.default.set(e,s,"true"===c);break;case"string":var f={data:a,row:o,component:e,result:r},d=n.property.component?n[n.property.component]:n.text,p=i.default.get(e,s,""),y=l&&l.interpolate?l.interpolate(d,f):h.default.interpolate(d,f);y!==p&&i.default.set(e,s,y)}return e},n.shouldLoadZones=M,n.translateHTMLTemplate=function(e,n){if(!/<[^>]*>/.test(e))return n(e);var r=document.createElement("div");return(r.innerHTML=e,r.innerText&&r.children.length)?(function e(n,r){var o,i=n.children.length&&(function(e){if(Array.isArray(e))return v(e)}(o=n.children)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,n){if(e){if("string"==typeof e)return v(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,n)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i&&i.every(function(e){return 0===e.children.length&&L.some(function(n){return e.nodeName===n})});!i||a?n.innerHTML=function e(n,r){if(!n.innerText)return n.innerHTML;var o=n.innerText.replace(h.default.templateSettings.interpolate,"").replace(/\s\s+/g," ").trim(),i=r(o);if(o===i)return n.innerHTML;var a=n.innerHTML.match(/<a[^>]*>(.*?)<\/a>/g);if(!a||!a.length)return n.innerText.replace(o,i);if(1===a.length&&a[0].length===n.innerHTML.length)return n.innerHTML.replace(o,i);var l=a.map(function(n){var o=document.createElement("a");return o.innerHTML=n,e(o,r)});return"".concat(i," (").concat(l.join(", "),")")}(n,r):i.forEach(function(n){return e(n,r)})}(r,n),r.innerHTML):e},n.unescapeHTML=function(e){return"DOMParser"in window?new window.DOMParser().parseFromString(e,"text/html").documentElement.textContent:e},n.unfold=V,n.uniqueKey=function(e,n){for(var r=n;e.hasOwnProperty(r);)r=D(r);return r},n.uniqueName=function(e,n,r){(n=n||"{{fileName}}-{{guid}}").includes("{{guid}}")||(n="".concat(n,"-{{guid}}"));var o=e.split("."),a=o.slice(0,o.length-1).join("."),l=o.length>1?".".concat(i.default.last(o)):"";return r=Object.assign(r||{},{fileName:a=a.substr(0,100),guid:E()}),"".concat(h.default.interpolate(n,r)).concat(l).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},n.unmaskValue=function(e,n,r){if(!n||!e||e.length>n.length)return e;for(var o=e.split(""),a=0;a<n.length;a++){var l=e[a]||"",s=n[a];i.default.isRegExp(s)||l!==s||(o[a]="")}return o.join("").replace(r,"")},n.withSwitch=function(e,n){var r=e,o=n;return[function(){return r},function(){var e=r;r=o,o=e}]},n.zonesLoaded=function(){return s.default.zonesLoaded},r(49907),r(37753),r(30890),r(31589),r(789),r(31490),r(94195),r(41135),r(88910),r(45399),r(45945),r(92647),r(64284),r(70601),r(33546),r(88852),r(20680),r(92471),r(77273),r(67998),r(98797),r(55096),r(7122),r(66334),r(3616),r(93538),r(18666),r(21587),r(70776),r(97599),r(71287),r(89352),r(95496);var i=m(r(2890)),a=m(r(82604)),l=m(r(83818)),s=m(r(41223)),u=m(r(36014)),c=r(76700),f=m(r(32780)),d=m(r(74424)),p=r(53669);
1Object.keys(p).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in n&&n[e]===p[e]||Object.defineProperty(n,e,{enumerable:!0,get:function(){return p[e]}}))});var h=m(r(62277)),y=m(r(45401));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var g=h.default.interpolate;n.interpolate=g;var w=(0,a.default)({Promise:f.default}).fetch;function k(e,n,r,o){var a=null,s=n.component?n.component:{key:"unknown"};!n.form&&n.instance&&(n.form=i.default.get(n.instance,"root._form",{}));var u=s.key;if("string"==typeof e){r&&(e+=";return ".concat(r)),o&&(e=e.replace(/({{\s+(.*)\s+}})/,function(e,r,o){return 0===o.indexOf("data.")?i.default.get(n.data,o.replace("data.","")):0===o.indexOf("row.")?i.default.get(n.row,o.replace("row.","")):i.default.get(n.data,o)}));try{e=h.default.evaluator(e,n),n=i.default.values(n)}catch(n){console.warn("An error occured within the custom function for ".concat(u),n),a=null,e=!1}}if("function"==typeof e)try{a=h.default.evaluate(e,n)}catch(e){a=null,console.warn("An error occured within custom function for ".concat(u),e)}else if("object"===b(e))try{a=l.default.apply(e,n)}catch(e){a=null,console.warn("An error occured within custom function for ".concat(u),e)}else e&&console.warn("Unknown function type for ".concat(u));return a}function O(e,n){var r=e.getPropertyValue(n);return parseFloat(r=r?r.replace(/[^0-9.]/g,""):"0")}function P(e,n,r,o,a){if(n.when){var l=j(n.when,o,r),s=String(n.eq),u=String(n.show);return i.default.isObject(l)&&i.default.has(l,n.eq)?String(l[n.eq])===u:Array.isArray(l)&&l.map(String).includes(s)?"true"===u:String(l)===s==("true"===u)}var c=n.conditions,f=void 0===c?[]:c,d=n.conjunction,p=n.show;if(!f.length)return!0;var h=i.default.map(f,function(n){var i=n.value,l=n.operator,s=n.component;if(!s)return!0;var u=j(s,o,r),c=y.default[l];return!c||new c().getResult({value:u,comparedValue:i,instance:a,component:e,conditionComponentPath:s})}),m=!1;return m=(void 0===d?"all":d)==="any"?i.default.some(h,function(e){return!!e}):i.default.every(h,function(e){return!!e}),void 0===p||p?m:!m}function j(e,n,r){var o=null;return n&&(o=(0,p.getValue)({data:n},e)),r&&i.default.isNil(o)&&(o=(0,p.getValue)({data:r},e)),(i.default.isNil(o)||i.default.isObject(o)&&i.default.isEmpty(o))&&(o=""),o}function _(e,n,r,o,i,a,l,s){"string"==typeof n&&(n="var ".concat(a," = true; ").concat(n,"; return ").concat(a,";"));var u=s&&s.evaluate?s.evaluate(n,{row:r,data:o,form:i}):k(n,{row:r,data:o,form:i});return null===u?l:u}function S(e,n,r,o,a,s){try{return l.default.apply(n,{data:o,row:r,form:a,_:i.default})}catch(n){return console.warn("An error occurred in jsonLogic advanced condition for ".concat(e.key),n),s}}function C(e,n,r,o){var a,l,s,u=o||e.conditional;!r&&((a=r=i.default.cloneDeep(e)).path=F(a),(l=B(a))&&"object"===b(l)&&(l.path=F(l)));var c=B(r),f=c?F(c):null,d=u.when||!u.conditions?null===(s=u.when)||void 0===s?void 0:s.startsWith(f):i.default.some(u.conditions,function(e){return e.component.startsWith(f)});if(c&&d){var p={};i.default.set(p,f,n),n=p}return n}function E(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)})}function x(){return s.default.currentTimezone||(s.default.currentTimezone=u.default.determine().name()),s.default.currentTimezone}function R(e,n){if("UTC"===n)return{date:new Date(e.getTime()+6e4*e.getTimezoneOffset()),abbr:"UTC"};var r=(0,s.default)(e).tz(n);return{date:new Date(e.getTime()+(r.utcOffset()+e.getTimezoneOffset())*6e4),abbr:r.format("z")}}function M(e){return e!==x()&&"UTC"!==e}function T(e,n){return n&&!M(n)?new f.default(i.default.noop):s.default.zonesPromise?s.default.zonesPromise:s.default.zonesPromise=w(e).then(function(e){return e.json().then(function(e){if(s.default.tz.load(e),s.default.zonesLoaded=!0,document&&document.createEvent&&document.body&&document.body.dispatchEvent){var n=document.createEvent("Event");n.initEvent("zonesLoaded",!0,!0),document.body.dispatchEvent(n)}})})}function A(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}function D(e){return e.match(/(\d+)$/)?e.replace(/(\d+)$/,function(e){return Number(e)+1}):"".concat(e,"1")}function V(e){return"function"==typeof e?e():e}
1c.lodashOperators.forEach(function(e){return l.default.add_operation("_".concat(e),i.default[e])}),l.default.add_operation("getDate",function(e){return(0,s.default)(e).toISOString()}),l.default.add_operation("relativeMinDate",function(e){return(0,s.default)().subtract(e,"days").toISOString()}),l.default.add_operation("relativeMaxDate",function(e){return(0,s.default)().add(e,"days").toISOString()});var I=i.default.flow([i.default.partialRight(i.default.map,V),i.default.partialRight(i.default.find,function(e){return!i.default.isUndefined(e)})]);n.firstNonNil=I;var L=["#text","A","B","EM","I","SMALL","STRONG","SUB","SUP","INS","DEL","MARK","CODE"];function N(){var e={},n=window.navigator.userAgent.toLowerCase(),r=/(edge|edg)\/([\w.]+)/.exec(n)||/(opr)[/]([\w.]+)/.exec(n)||/(yabrowser)[ /]([\w.]+)/.exec(n)||/(chrome)[ /]([\w.]+)/.exec(n)||/(iemobile)[/]([\w.]+)/.exec(n)||/(version)(applewebkit)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(n)||/(webkit)[ /]([\w.]+).*(version)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(n)||/(webkit)[ /]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(n)||0>n.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[],o={browser:r[5]||r[3]||r[1]||"",version:r[4]||r[2]||"0"};return o.browser&&(e[o.browser]=!0,e.version=parseInt(o.version,10)),(e.chrome||e.opr||e.safari||e.edg||e.yabrowser)&&(e.isWebkit=!0),(e.rv||e.iemobile)&&(e.ie=!0),e.edg&&(e.edge=!0),e.opr&&(e.opera=!0),e}function F(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&e.key&&(null==e?void 0:null===(n=e._form)||void 0===n?void 0:n.display)!=="wizard"?(r=e.isInputComponent||!0===e.input?"".concat(e.key).concat(r?".":"").concat(r):r,F(e.parent,r)):r}function B(e){if(e){var n=e.parent;return n&&(n.isInputComponent||n.input)?n:B(n)}}var z={number:"number",string:"string",boolean:"boolean",array:"array",object:"object",date:"date",any:"any"};n.componentValueTypes=z},73065:function(e,n,r){"use strict";r(64652),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o,i=(o=r(20141))&&o.__esModule?o:{default:o};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?l(Object(r),!0).forEach(function(n){u(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u(e,n,r){return(n=c(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function c(e){var n=function(e,n){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==a(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===a(n)?n:String(n)}var f=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addRule",value:function(e,r){n.rules[e]=r}},{key:"addRules",value:function(e){n.rules=s(s({},n.rules),e)}},{key:"getRule",value:function(e){return n.rules[e]}},{key:"getRules",value:function(){return n.rules}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=f,u(f,"rules",i.default)},55272:function(e,n,r){"use strict";var o=r(62601);
1r(64652),r(11414),r(41135),r(28839),r(88910),r(7122),r(3616),r(26343),Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ValidationChecker=void 0,r(92471),r(37753),r(789),r(88754),r(44991),r(67998),r(93538),r(45945),r(45399),r(70601),r(48510),r(33546),r(88852),r(55096),r(20680),r(92647),r(14576),r(21587),r(89352),r(70776),r(71287),r(64284),r(31490),r(49907),r(30890),r(80319),r(62107),r(21430),r(6778),r(68428);var i=p(r(2890)),a=r(38163),l=p(r(62067)),s=p(r(32780)),u=p(r(45969)),c=p(r(82604)),f=r(73172),d=p(r(73065));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){if(e){if("string"==typeof e)return v(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,n)}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function b(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==h(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===h(n)?n:String(n)}(o.key),o)}}var g=(0,c.default)({Promise:s.default}),w=g.fetch,k=g.Headers,O=g.Request,P=function(){var e,n;function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r),this.config=i.default.defaults(e,r.config),this.validators={required:{key:"validate.required",method:"validateRequired",hasLabel:!0,message:function(e){return e.t(e.errorMessage("required"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){if(!(0,a.boolValue)(n)||e.isValueHidden())return!0;var o=e.validators.some(function(e){return"calendar"===e});return!r&&o&&e.widget.enteredDate?!this.validators.calendar.check.call(this,e,n,r):!e.isEmpty(r)}},onlyAvailableItems:{key:"validate.onlyAvailableItems",method:"validateValueAvailability",hasLabel:!0,message:function(e){return e.t(e.errorMessage("valueIsNotAvailable"),{field:e.errorLabel,data:e.data})},check:function(e,n){return!(0,a.boolValue)(n)}},unique:{key:"validate.unique",hasLabel:!0,message:function(e){return e.t(e.errorMessage("unique"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){var o=this;return!!(!(0,a.boolValue)(n)||!r||i.default.isObjectLike(r)&&i.default.isEmpty(r))||!this.config.db||new s.default(function(n){var l,s=o.config.form,u=o.config.submission,c="data.".concat(e.path),f=function(e,n,r){var o=r.split(/\[\d+\]?./),a=o.length>1,l=r;if(a){l=o.shift();var s={};i.default.reduce(o,function(n,r,a){var l=a===o.length-1,u=i.default.get(s,n,s),c="$elemMatch['".concat(r,"']");return i.default.set(u,c,l?e:{}),n?"".concat(n,".").concat(c):c},""),n[l]=s}else n[l]=e},d={form:s._id},p={};i.default.isString(r)?e.component.dbIndex?f(r,d,c):"email"===e.component.type||"textfield"===e.component.type&&(null===(l=e.component.validate)||void 0===l?void 0:l.pattern)==="[A-Za-z0-9]+"?(f(r,d,c),p={collation:{locale:"en",strength:2}}):f({$regex:new RegExp("^".concat((0,a.escapeRegExCharacters)(r),"$")),$options:"i"},d,c):i.default.isPlainObject(r)&&r.address&&r.address.address_components&&r.address.place_id?f({$regex:new RegExp("^".concat((0,a.escapeRegExCharacters)(r.address.place_id),"$")),$options:"i"},d,"".concat(c,".address.place_id")):i.default.isArray(r)?f({$all:r},d,c):(i.default.isObject(r)||i.default.isNumber(r))&&f({$eq:r},d,c),d.deleted={$eq:null},d.state="submitted";var h=function(r,o){return r?n(!1):o?u._id&&o._id.toString()===u._id?void n(!0):(e.conflictId=o._id.toString(),n(!1)):n(!0)};o.config.db.findOne(d,null,p,function(e,n){if(!e||!p.collation)return h(e,n);delete d[c],f({$regex:new RegExp("^".concat((0,a.escapeRegExCharacters)(r),"$")),$options:"i"},d,c),o.config.db.findOne(d,h)})}).catch(function(){return!1})}},multiple:{key:"validate.multiple",hasLabel:!0,message:function(e){var n=(0,a.boolValue)(e.component.multiple)||Array.isArray(e.emptyValue),r=e.component.validate.required;return e.t(e.errorMessage(n?r?"array_nonempty":"array":"nonarray"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){if(!e.validateMultiple())return!0;var o=(0,a.boolValue)(n),l=Array.isArray(e.emptyValue),s=Array.isArray(r),u=e.component.validate.required;return o?s?!u||!!r.length:!!i.default.isNil(r)&&!u:l||!s}},select:{key:"validate.select",hasLabel:!0,message:function(e){return e.t(e.errorMessage("select"),{field:e.errorLabel,data:e.data})},check:function(e,n,r,o,l,s,u){if(!(0,a.boolValue)(n)||!r||i.default.isEmpty(r)||!u)return!0;var c=e.component,f={url:n,qs:{},headers:{}};if(i.default.isBoolean(f.url)){if(f.url=!!f.url,!f.url||"url"!==c.dataSrc||!c.data.url||!c.searchField)return!0;f.url=c.data.url,f.qs[c.searchField]=r,c.filter&&(f.url+=(f.url.includes("?")?"&":"?")+c.filter),c.selectFields&&(f.qs.select=c.selectFields)}return!f.url||(f.url=(0,a.interpolate)(f.url,{data:e.data}),f.url+=(f.url.includes("?")?"&":"?")+i.default.chain(f.qs).map(function(e,n){return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e))}).join("&").value(),c.data&&c.data.headers&&i.default.each(c.data.headers,function(e){e.key&&(f.headers[e.key]=e.value)}),c.authenticate&&this.config.token&&(f.headers["x-jwt-token"]=this.config.token),w(new O(f.url,{headers:new k(f.headers)})).then(function(e){return!!e.ok&&e.json()}).then(function(e){return e&&e.length}
1).catch(function(){return!1}))}},min:{key:"validate.min",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("min"),{field:e.errorLabel,min:parseFloat(n),data:e.data})},check:function(e,n,r){var o=parseFloat(n),i=parseFloat(r);return!!(Number.isNaN(o)||Number.isNaN(i))||i>=o}},max:{key:"validate.max",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("max"),{field:e.errorLabel,max:parseFloat(n),data:e.data})},check:function(e,n,r){var o=parseFloat(n),i=parseFloat(r);return!!(Number.isNaN(o)||Number.isNaN(i))||i<=o}},minSelectedCount:{key:"validate.minSelectedCount",message:function(e,n){return e.component.minSelectedCountMessage?e.component.minSelectedCountMessage:e.t(e.errorMessage("minSelectedCount"),{minCount:parseFloat(n),data:e.data})},check:function(e,n,r){var o=parseFloat(n);if(!o)return!0;var i=Object.keys(r).reduce(function(e,n){return r[n]&&e++,e},0);return!i||i>=o}},maxSelectedCount:{key:"validate.maxSelectedCount",message:function(e,n){return e.component.maxSelectedCountMessage?e.component.maxSelectedCountMessage:e.t(e.errorMessage("maxSelectedCount"),{minCount:parseFloat(n),data:e.data})},check:function(e,n,r){var o=parseFloat(n);return!o||Object.keys(r).reduce(function(e,n){return r[n]&&e++,e},0)<=o}},minLength:{key:"validate.minLength",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("minLength"),{field:e.errorLabel,length:n,data:e.data})},check:function(e,n,r){var o=parseInt(n,10);return!!(!r||!o||"string"!=typeof r||e.isEmpty(r))||r.length>=o}},maxLength:{key:"validate.maxLength",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("maxLength"),{field:e.errorLabel,length:n,data:e.data})},check:function(e,n,r){var o=parseInt(n,10);return!o||"string"!=typeof r||r.length<=o}},maxWords:{key:"validate.maxWords",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("maxWords"),{field:e.errorLabel,length:n,data:e.data})},check:function(e,n,r){var o=parseInt(n,10);return!o||"string"!=typeof r||r.trim().split(/\s+/).length<=o}},minWords:{key:"validate.minWords",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("minWords"),{field:e.errorLabel,length:n,data:e.data})},check:function(e,n,r){var o=parseInt(n,10);return!o||!r||"string"!=typeof r||r.trim().split(/\s+/).length>=o}},email:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_email"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){return!r||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(r)}},url:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_url"),{field:e.errorLabel,data:e.data})}
1,check:function(e,n,r){return!r||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(r)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(r)}},date:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_date"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){return!r||"Invalid date"!==r&&"Invalid Date"!==r&&("string"==typeof r&&(r=new Date(r)),r instanceof Date==!0&&"Invalid Date"!==r.toString())}},day:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_day"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){if(!r)return!0;var o,i=function(e){if(Array.isArray(e))return e}(o=e.dayFirst?[0,1,2]:[1,0,2])||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(o,3)||m(o,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],l=i[1],s=i[2],u=r.split("/").map(function(e){return parseInt(e,10)}),c=u[a],f=u[l],d=u[s],p=function(e,n){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return n%400&&(!(n%100)||n%4)?28:29}}(f,d);return!(c<0)&&!(c>p)&&!(f<0)&&!(f>12)&&!(d<0)&&!(d>9999)}},pattern:{key:"validate.pattern",hasLabel:!0,message:function(e,n){return e.t(i.default.get(e,"component.validate.patternMessage",e.errorMessage("pattern")),{field:e.errorLabel,pattern:n,data:e.data})},check:function(e,n,r){return!!e.isEmpty(r)||!n||new RegExp("^".concat(n,"$")).test(r)}},json:{key:"validate.json",check:function(e,n,r,o,i,a){if(!n)return!0;var l=e.evaluate(n,{data:o,row:a,rowIndex:i,input:r});return null===l||l}},mask:{key:"inputMask",hasLabel:!0,message:function(e){return e.t(e.errorMessage("mask"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){var o;if(e.isMultipleMasksField){var i=r?r.maskName:void 0,l=e.getMaskByName(i);l&&(o=l),r=r?r.value:r}else o=n;return r&&o&&"string"==typeof r&&"textfield"===e.type?u.default.isValid(r,o):(o=o?(0,a.getInputMask)(o):null,!r||!o||!!e.skipMaskValidation||(o=o.map(function(n){return n===e.placeholderChar?" ":n}),(0,a.matchInputMask)(r,o)))}},custom:{key:"validate.custom",message:function(e){return e.t(e.errorMessage("custom"),{field:e.errorLabel,data:e.data})},check:function(e,n,r,o,i,a){if(!n)return!0;var l=e.evaluate(n,{valid:!0,data:o,rowIndex:i,row:a,input:r},"valid",!0);return null===l||l}},maxDate:{key:"maxDate",hasLabel:!0,message:function(e,n){var r=(0,a.getDateSetting)(n);return e.t(e.errorMessage("maxDate"),{field:e.errorLabel,maxDate:(0,l.default)(r).format(e.format)})},check:function(e,n,r){if(e.isPartialDay&&e.isPartialDay(r))return!0;var o=e.getValidationFormat?(0,l.default)(r,e.getValidationFormat()):(0,l.default)(r),s=(0,a.getDateSetting)(n);return!!i.default.isNull(s)||(s.setHours(0,0,0,0),o.isBefore(s)||o.isSame(s))}},minDate:{key:"minDate",hasLabel:!0,message:function(e,n){var r=(0,a.getDateSetting)(n);return e.t(e.errorMessage("minDate"),{field:e.errorLabel,minDate:(0,l.default)(r).format(e.format)})},check:function(e,n,r){if(e.isPartialDay&&e.isPartialDay(r))return!0;var o=e.getValidationFormat?(0,l.default)(r,e.getValidationFormat()):(0,l.default)(r),s=(0,a.getDateSetting)(n);return!!i.default.isNull(s)||(s.setHours(0,0,0,0),o.isAfter(s)||o.isSame(s))}},minYear:{key:"minYear",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("minYear"),{field:e.errorLabel,minYear:n})},check:function(e,n,r){var o=/\d{4}$/.exec(r);return o=o?o[0]:null,!+n||!+o||+o>=+n}},maxYear:{key:"maxYear",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("maxYear"),{field:e.errorLabel,maxYear:n})},check:function(e,n,r){var o=/\d{4}$/.exec(r);return o=o?o[0]:null,!+n||!+o||+o<=+n}},calendar:{key:"validate.calendar",messageText:"",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.calendar.messageText),{field:e.errorLabel,maxDate:(0,l.default)(e.dataValue).format(e.format)})},check:function(e,n,r,o,i){this.validators.calendar.messageText="";var s=e.getWidget(i);if(!s)return!0;var u=s.settings,c=s.enteredDate,d=u.minDate,p=u.maxDate,h=u.format,y=[(0,a.convertFormatToMoment)(h)];if(y[0].match(/M{3,}/g)&&y.push(y[0].replace(/M{3,}/g,"MM")),!r&&c){var m=(0,f.checkInvalidDate)(c,y,d,p),v=m.message,b=m.result;if(!b)return this.validators.calendar.messageText=v,b}if(r&&c)return(0,l.default)(r).format()!==(0,l.default)(c,y,!0).format()&&c.match(/_/gi)?(this.validators.calendar.messageText=f.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1):(s.enteredDate="",!0)}},time:{key:"validate.time",messageText:"Invalid time",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.time.messageText),{field:e.errorLabel})},check:function(e,n,r){return!!e.isEmpty(r)||(0,l.default)(r,e.component.format).isValid()}},availableValueProperty:{key:"validate.availableValueProperty",method:"validateValueProperty",messageText:"Invalid Value Property",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.availableValueProperty.messageText),{field:e.errorLabel})},check:function(e,n,r){return!("url"===e.component.dataSrc&&(i.default.isUndefined(r)||i.default.isObject(r)))}}}}return e=[{key:"checkValidator",value:function(e,n,r,o,i,a,l,u){var c=this,f=null;f=n.method&&"function"==typeof e[n.method]?e[n.method](r,o,i,a,l,u):n.check.call(this,e,r,o,i,a,l,u);var d=function(o){return"string"==typeof o?o:!o&&n.message?n.message.call(c,e,r,a,l):""};return u?s.default.resolve(f).then(d):d(f)}},{key:"validate",value:function(e,n,r,o,l,u,c,f,d){if(!f&&!i.default.get(e.component,"validateWhenHidden",!1))return!1;var p=this.validators[n],h=i.default.get(d||e.component,p.key,null),y=this.checkValidator(e,p,h,r,o,l,u,c),m=function(o){if
1(!o)return!1;var s,u={message:(0,a.unescapeHTML)(i.default.get(o,"message",o)),level:"warning"===i.default.get(o,"level")?"warning":"error",path:(0,a.getArrayFromComponentPath)(e.path||""),context:{validator:n,hasLabel:p.hasLabel,setting:h,key:e.key,label:e.label,value:r,index:l,input:null===(s=e.refs.input)||void 0===s?void 0:s[l]}};return"unique"===n&&e.conflictId&&(u.conflictId=e.conflictId),u};return c?s.default.resolve(y).then(m):m(y)}},{key:"checkComponent",value:function(e,n,r){var a,l=this,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(void 0!==o&&"node"===i.default.get(o,"release.name")&&!i.default.defaultTo(e.component.persistent,!0)||!1===e.component.validate)return c?s.default.resolve([]):[];n=n||e.rootValue,r=r||e.data;var f=e.component.multiple&&Array.isArray(e.validationValue)?e.validationValue:[e.validationValue],d=e.conditionallyVisible(),p=[];null!=e&&null!==(a=e.addons)&&void 0!==a&&a.length&&f.forEach(function(n){e.addons.forEach(function(e){e.checkValidity(n)||p.push.apply(p,y(e.errors||[]))})});var h=i.default.get(e,"component.validations"),m=[];if(h&&Array.isArray(h)&&h.length){var v=i.default.chain(h).groupBy(function(e){return e.mode}).value();if(e.calculateCondition){u=!0;var b=i.default.chain(v.ui).filter("active").groupBy(function(e){return e.group||null}).value(),g=b.null||[];delete b.null,g.forEach(function(n){var r=n.condition,o=n.message,i=n.severity;e.calculateCondition(r)||m.push({level:i||"error",message:e.t(o),componentInstance:e})}),i.default.forEach(b,function(n){i.default.forEach(n,function(n){var r=n.condition,o=n.message,i=n.severity;if(!e.calculateCondition(r))return m.push({level:i||"error",message:e.t(o),componentInstance:e}),!1})})}else m=this.checkValidations(e,h,n,r,f,c);e.validators.includes("custom")&&v.js&&i.default.each(v.js,function(o){m.push(i.default.map(f,function(i,a){return l.validate(e,"custom",i,n,a,r,c,d,o)}))}),e.validators.includes("json")&&v.json&&i.default.each(v.json,function(o){m.push(i.default.map(f,function(i,a){return l.validate(e,"json",i,n,a,r,c,d,o)}))})}var w=i.default.get(e,"component.validate.custom"),k=i.default.get(e,"component.validate.customMessage"),O=(0,i.default)(e.validators).chain().map(function(o){return l.validators.hasOwnProperty(o)?"required"!==o||f.length?i.default.map(f,function(i,a){return l.validate(e,o,i,n,a,r,c,d)}):[l.validate(e,o,null,n,0,r,c,d)]:{message:'Validator for "'.concat(o,'" is not defined'),level:"warning",context:{validator:o,key:e.key,label:e.label}}}).flatten().value();e.component.validate=e.component.validate||{},e.component.validate.unique=e.component.unique,O.push(this.validate(e,"unique",e.validationValue,n,0,n,c,d)),e.component.validate.multiple=e.component.multiple,O.push(this.validate(e,"multiple",e.validationValue,n,0,n,c,d)),O.push.apply(O,p),O.push.apply(O,y(m));var P=function(o){return o=(0,i.default)(o).chain().flatten().compact().value(),(k||w)&&i.default.each(o,function(o){o.message=e.t(k||o.message,{field:e.errorLabel,data:n,row:r,error:o}),o.context.hasLabel=!1}),u?o:i.default.reject(o,function(e){return"warning"===e.level})};return c?s.default.all(O).then(P):P(O)}},{key:"checkValidations",value:function(e,n,r,o,i,a){var l=this;return Object.values(n.map(function(n){return l.checkRule(e,n,r,o,i,a)}).reduce(function(e,n){return n?[].concat(y(e),y(n)):e},[]).filter(function(e){return e}).reduce(function(e,n){return e[n.context.validator]=n,e},{}))}},{key:"checkRule",value:function(e,n,r,o,i,a){var l=d.default.getRule(n.rule),s=[];if(l){var u=new l(e,n.settings,this.config);i.map(function(i,l){var c=u.check(i,r,o,a);!0!==c&&s.push({level:n.level||"error",message:e.t(n.message||u.defaultMessage,{settings:n.settings,field:e.errorLabel,data:r,row:o,error:c}),context:{key:e.key,index:l,label:e.label,validator:n.rule}})})}return 0!==s.length&&s}},{key:"check",get:function(){return this.checkComponent}},{key:"get",value:function(){i.default.get.call(this,arguments)}},{key:"each",value:function(){i.default.each.call(this,arguments)}},{key:"has",value:function(){i.default.has.call(this,arguments)}}],b(r.prototype,e),n&&b(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.ValidationChecker=P,P.config={db:null,token:null,form:null,submission:null};var j=new P;n.default=j},45713:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?i(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n,r){return(n=s(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function s(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var u=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addConjunction",value:function(e,r){n.conjunctions[e]=r}},{key:"addConjunctions",value:function(e){n.conjunctions=a(a({},n.conjunctions),e)}},{key:"getConjunction",value:function(e){return n.conjunctions[e]}},{key:"getConjunctions",value:function(){return n.conjunctions}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=u,l(u,"conjunctions",{})},64751:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n,r){return(n=s(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function s(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var u=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addOperator",value:function(e,r){n.operators[e]=r}},{key:"addOperators",value:function(e){n.operators=a(a({},n.operators),e)}},{key:"getOperator",value:function(e){return n.operators[e]}},{key:"getOperators",value:function(){return n.operators}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=u,l(u,"operators",{})},3471:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?i(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n,r){return(n=s(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function s(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var u=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addQuickRule",value:function(e,r){n.quickRules[e]=r}},{key:"addQuickRules",value:function(e){n.quickRules=a(a({},n.quickRules),e)}},{key:"getQuickRule",value:function(e){return n.quickRules[e]}},{key:"getQuickRules",value:function(){return n.quickRules}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=u,l(u,"quickRules",{})},55969:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(d,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(d);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=f.call.apply(f,[this].concat(a))),o="{{error}}",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e,n,r,o){var i=this.settings.custom;if(!i)return!0;var a=this.component.evaluate(i,{valid:!0,data:n,row:r,rowIndex:o,input:e},"valid",!0);return null===a||a}}],i(d.prototype,r),c&&i(d,c),Object.defineProperty(d,"prototype",{writable:!1}),d}(c)},72740:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(45399),r(37753),r(45945),r(62107),r(21430),r(6778),r(68428),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(d,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(d);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=f.call.apply(f,[this].concat(a))),o="{{field}} is not a valid date.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){return!e||"Invalid date"!==e&&"Invalid Date"!==e&&("string"==typeof e&&(e=new Date(e)),e instanceof Date==!0&&"Invalid Date"!==e.toString())}}],i(d.prototype,r),c&&i(d,c),Object.defineProperty(d,"prototype",{writable:!1}),d}(c)},87657:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function a(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(70601),r(11414),r(41135),r(28839),r(88910),r(7122),r(3616),r(26343),r(789),r(67998),r(20680),r(70776),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var f=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(p,e);var n,r,f,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(p);if(n){var i=u(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return s(e)}(this,e)});function p(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p);for(var e,n,r,o,i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=s(e=d.call.apply(d,[this].concat(a))),o="{{field}} is not a valid day.",(r=c(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){if(!e)return!0;
1if("string"!=typeof e)return!1;var n,r=function(e){if(Array.isArray(e))return e}(n=this.component.dayFirst?[0,1,2]:[1,0,2])||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(n,3)||function(e,n){if(e){if("string"==typeof e)return i(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,n)}}(n,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0],a=r[1],l=r[2],s=e.split("/").map(function(e){return parseInt(e,10)}),u=s[o],c=s[a],f=s[l],d=function(e,n){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return n%400&&(!(n%100)||n%4)?28:29}}(c,f);return!(isNaN(u)||u<0||u>d||isNaN(c)||c<0||c>12||isNaN(f)||f<0||f>9999)}}],a(p.prototype,r),f&&a(p,f),Object.defineProperty(p,"prototype",{writable:!1}),p}(f)},59498:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(789),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(d,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(d);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=f.call.apply(f,[this].concat(a))),o="{{field}} must be a valid email.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){return!e||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}}],i(d.prototype,r),c&&i(d,c),Object.defineProperty(d,"prototype",{writable:!1}),d}(c)},46811:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(d,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(d);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=f.call.apply(f,[this].concat(a))),o="{{error}}",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e,n,r,o){var i=this.settings.json;if(!i)return!0;var a=this.component.evaluate(i,{data:n,row:r,rowIndex:o,input:e});return null===a||a}}],i(d.prototype,r),c&&i(d,c),Object.defineProperty(d,"prototype",{writable:!1}),d}(c)},95322:function(e,n,r){"use strict";r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o=r(38163);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){var n=function(e,n){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==i(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===i(n)?n:String(n)}var f=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(p,e);var n,r,f,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(p);if(n){var o=u(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===i(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return s(e)}(this,e)});function p(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p);for(var e,n,r,o,i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=s(e=d.call.apply(d,[this].concat(a))),o="{{field}} does not match the mask.",(r=c(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n;if(this.component.isMultipleMasksField){var r=e?e.maskName:void 0,i=this.component.getMaskByName(r);i&&(n=(0,o.getInputMask)(i)),e=e?e.value:e}else n=(0,o.getInputMask)(this.settings.mask);return!e||!n||(0,o.matchInputMask)(e,n)}}],a(p.prototype,r),f&&a(p,f),Object.defineProperty(p,"prototype",{writable:!1}),p}(f)},60172:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(92647),r(14576),r(21587),r(62107),r(21430),r(6778),r(68428),r(37753);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(f,e);var n,r,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function f(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=c.call.apply(c,[this].concat(a))),o="{{field}} cannot be greater than {{settings.limit}}.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return i(f.prototype,[{key:"check",value:function(e){var n=parseFloat(this.settings.limit),r=parseFloat(e);return!!(Number.isNaN(n)||Number.isNaN(r))||r<=n}}]),r&&i(f,r),Object.defineProperty(f,"prototype",{writable:!1}),f}(c)},12489:function(e,n,r){"use strict";r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o=r(38163),i=l(r(62067)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){var n=function(e,n){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==s(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===s(n)?n:String(n)}var h=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(y,e);var n,r,l,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(y);if(n){var o=d(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return f(e)}(this,e)});function y(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y);for(var e,n,r,o,i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=f(e=h.call.apply(h,[this].concat(a))),o="{{field}} should not contain date after {{settings.dateLimit}}",(r=p(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){if(!e||e===this.settings.dateLimit)return!0;var n=(0,i.default)(e),r=(0,o.getDateSetting)(this.settings.dateLimit);return!!a.default.isNull(r)||(r.setHours(0,0,0,0),n.isBefore(r)||n.isSame(r))}}],u(y.prototype,r),l&&u(y,l),Object.defineProperty(y,"prototype",{writable:!1}),y}(h)},34208:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(70776),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(f,e);var n,r,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function f(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=c.call.apply(c,[this].concat(a))),o="{{field}} must have no more than {{- settings.length}} characters.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return i(f.prototype,[{key:"check",value:function(e){var n=parseInt(this.settings.length,10);return!(e&&n&&e.hasOwnProperty("length"))||e.length<=n}}]),r&&i(f,r),Object.defineProperty(f,"prototype",{writable:!1}),f}(c)},25757:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(70776),r(789),r(88754),r(71287),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(f,e);var n,r,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function f(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=c.call.apply(c,[this].concat(a))),o="{{field}} must have no more than {{- settings.length}} words.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return i(f.prototype,[{key:"check",value:function(e){var n=parseInt(this.settings.length,10);return!n||"string"!=typeof e||e.trim().split(/\s+/).length<=n}}]),r&&i(f,r),Object.defineProperty(f,"prototype",{writable:!1}),f}(c)},31143:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(789),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(d,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(d);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=f.call.apply(f,[this].concat(a))),o="{{field}} should not contain year greater than {{maxYear}}",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=this.settings,r=/\d{4}$/.exec(e);return r=r?r[0]:null,!+n||!+r||+r<=+n}}],i(d.prototype,r),c&&i(d,c),Object.defineProperty(d,"prototype",{writable:!1}),d}(c)},9782:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(92647),r(14576),r(21587),r(62107),r(21430),r(6778),r(68428),r(37753);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(f,e);var n,r,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function f(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=c.call.apply(c,[this].concat(a))),o="{{field}} cannot be less than {{settings.limit}}.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return i(f.prototype,[{key:"check",value:function(e){var n=parseFloat(this.settings.limit),r=parseFloat(e);return!!(Number.isNaN(n)||Number.isNaN(r))||r>=n}}]),r&&i(f,r),Object.defineProperty(f,"prototype",{writable:!1}),f}(c)},64999:function(e,n,r){"use strict";r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(889
110),r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o=r(38163),i=l(r(62067)),a=l(r(2890));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){var n=function(e,n){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==s(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===s(n)?n:String(n)}var h=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(y,e);var n,r,l,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(y);if(n){var o=d(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return f(e)}(this,e)});function y(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y);for(var e,n,r,o,i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=f(e=h.call.apply(h,[this].concat(a))),o="{{field}} should not contain date before {{settings.dateLimit}}",(r=p(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){if(!e)return!0;var n=(0,i.default)(e),r=(0,o.getDateSetting)(this.settings.dateLimit);return!!a.default.isNull(r)||(r.setHours(0,0,0,0),n.isAfter(r)||n.isSame(r))}}],u(y.prototype,r),l&&u(y,l),Object.defineProperty(y,"prototype",{writable:!1}),y}(h)},64332:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(70776),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(d,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(d);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=f.call.apply(f,[this].concat(a))),o="{{field}} must have no more than {{- settings.length}} characters.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=parseInt(this.settings.length,10);return!!(!n||!e||!e.hasOwnProperty("length")||this.component.isEmpty(e))||e.length>=n}}],i(d.prototype,r),c&&i(d,c),Object.defineProperty(d,"prototype",{writable:!1}),d}(c)},99259:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(70776),r(789),r(88754),r(71287),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(f,e);var n,r,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function f(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=c.call.apply(c,[this].concat(a))),o="{{field}} must have at least {{- settings.length}} words.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return i(f.prototype,[{key:"check",value:function(e){var n=parseInt(this.settings.length,10);return!n||!e||"string"!=typeof e||e.trim().split(/\s+/).length>=n}}]),r&&i(f,r),Object.defineProperty(f,"prototype",{writable:!1}),f}(c)},74902:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(789),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(d,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(d);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=f.call.apply(f,[this].concat(a))),o="{{field}} should not contain year less than {{minYear}}",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=this.settings,r=/\d{4}$/.exec(e);return r=r?r[0]:null,!+n||!+r||+r>=+n}}],i(d.prototype,r),c&&i(d,c),Object.defineProperty(d,"prototype",{writable:!1}),d}(c)},62623:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(789),r(93538),r(45945),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(d,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(d);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=f.call.apply(f,[this].concat(a))),o="{{field}} does not match the pattern {{settings.pattern}}",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=this.settings.pattern;return!n||new RegExp("^".concat(n,"$")).test(e)}}],i(d.prototype,r),c&&i(d,c),Object.defineProperty(d,"prototype",{writable:!1}),d}(c)},60724:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(d,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(d);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=f.call.apply(f,[this].concat(a))),o="{{field}} is required",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){return!this.component.isValueHidden()&&!this.component.isEmpty(e)}}],i(d.prototype,r),c&&i(d,c),Object.defineProperty(d,"prototype",{writable:!1}),d}(c)},42075:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}
1r(64652),r(11414),r(41135),r(28839),r(88910),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587),e.exports=function(){var e;function n(e,r,o){(function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")})(this,n),this.component=e,this.settings=r,this.config=o}return i(n.prototype,[{key:"check",value:function(){}}]),e&&i(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}()},51874:function(e,n,r){"use strict";r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(48510),r(37753),r(33546),r(88852),r(55096),r(20680),r(62107),r(21430),r(6778),r(68428),r(21587);var o=r(38163),i=s(r(32780)),a=s(r(82604)),l=s(r(2890));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){var n=function(e,n){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==u(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===u(n)?n:String(n)}var y=(0,a.default)({Promise:i.default}),m=y.fetch,v=y.Headers,b=y.Request,g=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(s,e);var n,r,i,a=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=p(s);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===u(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function s(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,s);for(var e,n,r,o,i=arguments.length,l=Array(i),u=0;u<i;u++)l[u]=arguments[u];return n=d(e=a.call.apply(a,[this].concat(l))),o="{{field}} contains an invalid selection",(r=h(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e,n,r,i){if(!e||l.default.isEmpty(e)||!i)return!0;var a=this.component.component,s={url:this.settings.url,method:"GET",qs:{},json:!0,headers:{}};if(l.default.isBoolean(s.url)){if(s.url=!!s.url,!s.url||"url"!==a.dataSrc||!a.data.url||!a.searchField)return!0;s.url=a.data.url,s.qs[a.searchField]=e,a.filter&&(s.url+=(s.url.includes("?")?"&":"?")+a.filter),a.selectFields&&(s.qs.select=a.selectFields)}return!s.url||(s.url=(0,o.interpolate)(s.url,{data:this.component.data}),s.url+=(s.url.includes("?")?"&":"?")+l.default.chain(s.qs).map(function(e,n){return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e))}).join("&").value(),a.data&&a.data.headers&&l.default.each(a.data.headers,function(e){e.key&&(s.headers[e.key]=e.value)}),a.authenticate&&this.config.token&&(s.headers["x-jwt-token"]=this.config.token),m(new b(s.url,{headers:new v(s.headers)})).then(function(e){return!!e.ok&&e.json()}).then(function(e){return e&&e.length}
1).catch(function(){return!1}))}}],c(s.prototype,r),i&&c(s,i),Object.defineProperty(s,"prototype",{writable:!1}),s}(g)},5440:function(e,n,r){"use strict";r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var o,i=(o=r(62067))&&o.__esModule?o:{default:o};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){var n=function(e,n){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==a(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===a(n)?n:String(n)}var d=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(p,e);var n,r,o,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(p);if(n){var o=c(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===a(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return u(e)}(this,e)});function p(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p);for(var e,n,r,o,i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=u(e=d.call.apply(d,[this].concat(a))),o="{{field}} must contain valid time",(r=f(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){return!!this.component.isEmpty(e)||(0,i.default)(e,this.component.component.format).isValid()}}],l(p.prototype,r),o&&l(p,o),Object.defineProperty(p,"prototype",{writable:!1}),p}(d)},51114:function(e,n,r){"use strict";r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(93538),r(789),r(45945),r(45399),r(37753),r(62107),r(21430),r(6778),r(68428),r(21587);var o=r(38163),i=l(r(2890)),a=l(r(32780));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){var n=function(e,n){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==s(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===s(n)?n:String(n)}var h=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(y,e);var n,r,l,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(y);if(n){var o=d(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return f(e)}(this,e)});function y(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y);for(var e,n,r,o,i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=f(e=h.call.apply(h,[this].concat(a))),o="{{field}} must be unique",(r=p(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=this;return!!(!e||i.default.isObjectLike(e)&&i.default.isEmpty(e))||!this.config.db||new a.default(function(r){var a=n.config.form,l=n.config.submission,s="data.".concat(n.component.path),u={form:a._id};i.default.isString(e)?u[s]={$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(e),"$")),$options:"i"}:i.default.isPlainObject(e)&&e.address&&e.address.address_components&&e.address.place_id?u["".concat(s,".address.place_id")]={$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(e.address.place_id),"$")),$options:"i"}:i.default.isArray(e)?u[s]={$all:e}:(i.default.isObject(e)||i.default.isNumber(e))&&(u[s]={$eq:e}),u.deleted={$eq:null},n.config.db.findOne(u,function(e,n){return e?r(!1):n?r(l._id&&n._id.toString()===l._id):r(!0)})}).catch(function(){return!1})}}],u(y.prototype,r),l&&u(y,l),Object.defineProperty(y,"prototype",{writable:!1}),y}(h)},92791:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(43053),r(56613),r(65813),r(84812),r(23850),r(11414),r(41135),r(28839),r(88910),r(67998),r(789),r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var c=r(42075);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(d,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(d);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var e,n,r,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=l(e=f.call.apply(f,[this].concat(a))),o="{{field}} must be a valid url.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}
1return r=[{key:"check",value:function(e){return!e||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}}],i(d.prototype,r),c&&i(d,c),Object.defineProperty(d,"prototype",{writable:!1}),d}(c)},20141:function(e,n,r){"use strict";var o=r(55969),i=r(72740),a=r(87657),l=r(59498),s=r(46811),u=r(95322),c=r(60172),f=r(12489),d=r(34208),p=r(25757),h=r(9782),y=r(64999),m=r(64332),v=r(99259),b=r(62623),g=r(60724),w=r(51874),k=r(51114),O=r(92791),P=r(74902),j=r(31143),_=r(5440);e.exports={custom:o,date:i,day:a,email:l,json:s,mask:u,max:c,maxDate:f,maxLength:d,maxWords:p,min:h,minDate:y,minLength:m,minWords:v,pattern:b,required:g,select:w,unique:k,url:O,minYear:P,maxYear:j,time:_}},30278:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n,r){return(n=s(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function s(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var u=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addTransformer",value:function(e,r){n.transformers[e]=r}},{key:"addTransformers",value:function(e){n.transformers=a(a({},n.transformers),e)}},{key:"getTransformer",value:function(e){return n.transformers[e]}},{key:"getTransformers",value:function(){return n.transformers}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=u,l(u,"transformers",{})},77234:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEac
1h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n,r){return(n=s(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function s(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(64652),r(89352),r(48510),r(80107),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62107),r(21430),r(6778),r(68428),r(37753),r(21587);var u=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addValueSource",value:function(e,r){n.valueSources[e]=r}},{key:"addValueSources",value:function(e){n.valueSources=a(a({},n.valueSources),e)}},{key:"getValueSource",value:function(e){return n.valueSources[e]}},{key:"getValueSources",value:function(){return n.valueSources}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=u,l(u,"valueSources",{})},84181:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(28656),r(89352),r(49907),r(30890),r(33559),r(78089),r(11414),r(41135),r(28839),r(88910),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(789),r(31490),r(19012),r(45399),r(48510),r(37753),r(67998),r(18666),r(20680),r(64284),r(92471),r(33546),r(88852),r(97599),r(70601),r(45945),r(56613),r(43053),r(65813);var i=r(79408),a=c(r(83829)),l=r(38163),s=c(r(62067)),u=c(r(2890));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){y(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function h(e,n,r,o){return(h="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=b(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else y(o,n,r);return!0})(e,n,r,o)}function y(e,n,r){return(n=m(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function m(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=b(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function b(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=w(e)););return e}function g(e,n){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k="yyyy-MM-dd hh:mm a",O="yyyy-MM-ddTHH:mm:ssZ",P=(0,l.getBrowserInfo)().ie,j=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(f,e);var n,r,a,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w(f);if(n){var i=w(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(e,n,r,o){var a;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),(a=c.call(this,e,n,r,o)).settings.noCalendar&&(a.settings.format=a.settings.format.replace(/yyyy-MM-dd /g,"")),a.settings.enableTime?a.settings.time_24hr&&(a.settings.format=a.settings.format.replace(/hh:mm a$/g,"HH:mm")):a.settings.format=a.settings.format.replace(/ hh:mm a$/g,""),a.zoneLoading=!1,a.timezonesUrl="".concat(i.GlobalFormio.cdn["moment-timezone"],"/data/packed/latest.json"),a}return r=[{key:"loadZones",value:function(){var e=this,n=this.timezone;return!!this.zoneLoading||!!(!(0,l.zonesLoaded)()&&(0,l.shouldLoadZones)(n))&&(this.zoneLoading=!0,(0,l.loadZones)(this.timezonesUrl,n).then(function(){e.zoneLoading=!1,e.emit("redraw")}),!0)}},{key:"attach",value:function(e){var n,r=this,o=v(w(f.prototype),"attach",this).call(this,e),a=(0,l.getLocaleDateFormatInfo)(this.settings.language);this.defaultFormat={date:a.dayFirst?"d/m/Y ":"m/d/Y ",time:"G:i K"},this.closedOn=0,this.valueFormat="date"===this.settings.saveAs?O:this.settings.dateFormat||O,this.valueMomentFormat=(0,l.convertFormatToMoment)(this.valueFormat);var s=this.settings.readOnly;return this.settings.minDate=s?null:(0,l.getDateSetting)(this.settings.minDate),this.settings.maxDate=s?null:(0,l.getDateSetting)(this.settings.maxDate),this.settings.disable=this.disabledDates,this.settings.disableWeekends&&this.settings.disable.push(this.disableWeekends),this.settings.disableWeekdays&&this.settings.disable.push(this.disableWeekdays),this.settings.disableFunction&&this.settings.disable.push(this.disableFunction),this.settings.wasDefaultValueChanged=!1,this.settings.defaultValue="",this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1,this.settings.currentValue="",this.settings.altFormat=(0,l.convertFormatToFlatpickr)(this.settings.format),this.settings.dateFormat=(0,l.convertFormatToFlatpickr)(this.settings.dateFormat),this.settings.position="auto center",this.settings.onChange=function(){r.settings.allowInput&&(r.settings.isManuallyOverriddenValue&&r.settings.enableTime?r.calendar._input.value=r.settings.manualInputValue:r.settings.manualInputValue="",r.settings.isManuallyOverriddenValue=!1),r.emit("update")},this.settings.onOpen=function(){return r.hook("onCalendarOpen")},this.settings.onClose=function(){r.hook("onCalendarClose"),r.closedOn=Date.now(),r.settings.allowInput&&r.settings.enableTime&&(r.calendar._input.value=r.settings.manualInputValue||r.calendar._input.value,r.settings.isManuallyOverriddenValue=!1,r.emit("update")),r.settings.wasDefaultValueChanged&&(r.calendar._input.value=r.settings.defaultValue,r.settings.wasDefaultValueChanged=!1),r.calendar&&r.emit("blur")},i.GlobalFormio.requireLibrary("flatpickr-css","flatpickr",[{type:"styles",src:"".concat(i.GlobalFormio.cdn["flatpickr-formio"],"/flatpickr.min.css")}],!0),this.component.shortcutButtons&&(this.component.shortcutButtons=this.component.shortcutButtons.filter(function(e){return e.label&&e.onClick})),null!==(n=this.component.shortcutButtons)&&void 0!==n&&n.length&&i.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr-css","ShortcutButtonsPlugin",[{type:"styles",src:"".concat(i.GlobalFormio.cdn["shortcut-buttons-flatpickr"],"/themes/light.min.css")}],!0),o.then(function(){var e;if(null!==(e=r.component.shortcutButtons)&&void 0!==e&&e.length)return i.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr","ShortcutButtonsPlugin","".concat(i.GlobalFormio.cdn["shortcut-buttons-flatpickr"],"/shortcut-buttons-flatpickr.min.js"),!0)}).then(function(e){return i.GlobalFormio.requireLibrary("flatpickr","flatpickr","".concat(i.GlobalFormio.cdn["flatpickr-formio"],"/flatpickr.min.js"),!0).then(function(n){var o;if(null!==(o=r.component.shortcutButtons)&&void 0!==o&&o.length&&e&&r.initShortcutButtonsPlugin(e),r.settings.formatDate=r.getFlatpickrFormatDate(n),r._input){var a=r.settings.locale;if(a&&a.length>=2&&"en"!==a)return i.GlobalFormio.requireLibrary("flatpickr-".concat(a),"flatpickr-".concat(a),"".concat(i.GlobalFormio.cdn["flatpickr-formio"],"/l10n/flatpickr-").concat(a,".js"),!0).then(function(){return r.initFlatpickr(n)});r.initFlatpickr(n)}})}).catch(function(e){console.warn(e)})}},{key:"disableWeekends",get:function(){return function(e){return 0===e.getDay()||6===e.getDay()}}},{key:"disableWeekdays",get:function(){var e=this;return function(n){return!e.disableWeekends(n)}}},{key:"disableFunction",get:function(){var e=this;return function(n){return e.evaluate("return ".concat(e.settings.disableFunction),{date:n})}}},{key:"timezone",get:function(){return this.componentInstance.getTimezone(this.settings)}},{key:"defaultSettings",get:function(){return f.defaultSettings}},{key:"addSuffix",value:function(e){var n=this;return this.addEventListener(e,"click",function(){setTimeout(function(){n.calendar&&(!n.calendar.isOpen&&Date.now()-n.closedOn>200?n.calendar.open():n.calendar.isOpen&&n.calendar.close())},0)}),e}}
vendor: 7,410 bytes, line 1
1,{key:"disabled",set:function(e){(function(e,n,r,o,i){if(!h(e,n,r,o||e)&&i)throw Error("failed to set property")})(w(f.prototype),"disabled",e,this,!0),this.calendar&&(e?this.calendar._input.setAttribute("disabled","disabled"):this.calendar._input.removeAttribute("disabled"),this.calendar.close(),this.calendar.redraw())}},{key:"input",get:function(){return this.calendar?this.calendar.altInput:null}},{key:"disabledDates",get:function(){return this.settings.disabledDates?this.settings.disabledDates.split(",").map(function(e){var n=/\d{4}-\d{2}-\d{2}/g,r=e.match(n);if(r&&r.length)return 1===r.length?e.match(n)[0]:{from:e.match(n)[0],to:e.match(n)[1]}}):[]}},{key:"localeFormat",get:function(){var e="";return this.settings.enableDate&&(e+=this.defaultFormat.date),this.settings.enableTime&&(e+=this.defaultFormat.time),e}},{key:"dateTimeFormat",get:function(){return this.settings.useLocaleSettings?this.localeFormat:(0,l.convertFormatToFlatpickr)(this.dateFormat)}},{key:"dateFormat",get:function(){return u.default.get(this.settings,"format",k)}},{key:"getDateValue",value:function(e,n,r){return r?(0,l.momentDate)(e,this.valueFormat,this.timezone).format((0,l.convertFormatToMoment)(n)):(0,s.default)(e).format((0,l.convertFormatToMoment)(n))}},{key:"getValue",value:function(){if(!this.calendar)return v(w(f.prototype),"getValue",this).call(this);var e=this.calendar.selectedDates;return e&&e.length?e[0]instanceof Date?this.getDateValue(e[0],this.valueFormat,"date"===this.settings.saveAs):"Invalid Date":v(w(f.prototype),"getValue",this).call(this)}},{key:"isValueISO8601",value:function(e){return e&&"string"==typeof e&&e.match(/-[0-9]{2}T[0-9]{2}:/)}},{key:"setValue",value:function(e){var n="text"===this.settings.saveAs;if(!this.calendar)return e=e?(0,l.formatDate)(this.timezonesUrl,e,(0,l.convertFormatToMoment)(this.settings.format),this.timezone,(0,l.convertFormatToMoment)(this.valueMomentFormat)):e,v(w(f.prototype),"setValue",this).call(this,e);var r=this.loadZones();e?n||!this.settings.readOnly||r?this.isValueISO8601(e)?this.calendar.setDate(e,!1):this.calendar.setDate((0,s.default)(e,this.valueMomentFormat).toDate(),!1):this.calendar.setDate((0,l.momentDate)(e,this.valueFormat,this.timezone).format(),!1):this.calendar.clear(!1)}},{key:"getValueAsString",value:function(e,n){var r=n||this.dateFormat,o=this.calendar?this.valueFormat:this.settings.dateFormat;return"text"===this.settings.saveAs&&this.componentInstance.parent&&!this.settings.readOnly?(0,s.default)(e,(0,l.convertFormatToMoment)(o)).format((0,l.convertFormatToMoment)(o)):(0,l.formatDate)(this.timezonesUrl,e,r,this.timezone,(0,l.convertFormatToMoment)(o))}},{key:"setErrorClasses",value:function(e){this.input&&(e?(this.addClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","true")):(this.removeClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","false")))}},{key:"validationValue",value:function(e){return"string"==typeof e?new Date(e):e.map(function(e){return new Date(e)})}},{key:"isCalendarElement",value:function(e){var n,r,o,i,a;return!!(!e||null!==(n=this.calendar)&&void 0!==n&&null!==(r=n.config)&&void 0!==r&&null!==(o=r.appendTo)&&void 0!==o&&o.contains(e))||(null===(i=this.calendar)||void 0===i?void 0:null===(a=i.calendarContainer)||void 0===a?void 0:a.contains(e))}},{key:"initFlatpickr",value:function(e){var n=this;if(this.calendar=new e(this._input,d(d({},this.settings),{},{disableMobile:!0})),this.calendar.altInput.addEventListener("input",function(e){n.settings.allowInput&&n.settings.currentValue!==e.target.value&&(n.settings.manualInputValue=e.target.value,n.settings.isManuallyOverriddenValue=!0,n.settings.currentValue=e.target.value),""===e.target.value&&n.calendar.selectedDates.length>0?(n.settings.wasDefaultValueChanged=!0,n.settings.defaultValue=e.target.value,n.calendar.clear()):n.settings.wasDefaultValueChanged=!1}),this.settings.readOnly||u.default.some(["MMMM"],function(e){return u.default.includes(n.settings.format,e)})||this.setInputMask(this.calendar._input,(0,l.convertFormatToMask)(this.settings.format)),P){var r=this.calendar._handlers.find(function(e){var r=e.event,o=e.element;return"blur"===r&&o===n.calendar._input});this.calendar._input.removeEventListener("blur",r.handler),this.addEventListener(this.calendar._input,"blur",function(e){var r=n.settings.shadowRoot?n.settings.shadowRoot.activeElement:document.activeElement,o=e.relatedTarget?e.relatedTarget:r;e.target!==n.calendar._input||n.isCalendarElement(o)||n.calendar.setDate(n.calendar._input.value,!0,e.target===n.calendar.altInput?n.calendar.config.altFormat:n.calendar.config.dateFormat)})}this.addEventListener(this.calendar._input,"blur",function(e){var r=n.settings.shadowRoot?n.settings.shadowRoot.activeElement:document.activeElement,o=e.relatedTarget?e.relatedTarget:r;if(P&&!o||n.isCalendarElement(o)){if(!n.calendar.input.value&&n.calendar.config.noCalendar){var i,a,u,c,f=(0,s.default)({hour:null===(i=n.calendar)||void 0===i?void 0:null===(a=i.config)||void 0===a?void 0:a.defaultHour,minute:null===(u=n.calendar)||void 0===u?void 0:null===(c=u.config)||void 0===c?void 0:c.defaultMinute}).toDate();n.calendar.setDate(f,!0,n.settings.format)}}else{var d=n.calendar.input.value,p=d?(0,s.default)(n.calendar.input.value,(0,l.convertFormatToMoment)(n.valueFormat)).toDate():d;n.calendar.setDate(p,!0,n.settings.altFormat)}}),this.addEventListener(this.calendar.altInput,"keydown",function(e){13===e.keyCode&&n.calendar.isOpen&&(n.calendar.close(),e.stopPropagation())}),this.setValue(this.componentValue)}},{key:"initShortcutButtonsPlugin",value:function(e){var n=this;this.settings.plugins=[e({button:this.component.shortcutButtons.map(function(e){return{label:e.label,attributes:e.attribute}}),onClick:function(e){var r=n.component.shortcutButtons[e].onClick,o=n.evaluate(r,{date:new Date},"date");n.calendar.setDate(o,!0)}})]}},{key:"componentValue",get:function(){var e=this.componentInstance.dataValue;return Array.isArray(e)&&(e=e[this.valueIndex]),e}},{key:"getFlatpickrFormatDate",value:function(e){var n=this;return function(r,o){return n.settings.readOnly&&o===n.settings.altFormat?!n.settings.enableTime||n.loadZones()?e.formatDate(r,o):new Date(n.getValue()).toString()===r.toString()?(0,l.formatOffset)(n.timezonesUrl,e.formatDate.bind(e),new Date(n.componentValue),o,n.timezone):(0,l.formatOffset)(n.timezonesUrl,e.formatDate.bind(e),r,o,n.timezone):e.formatDate(r,o)}}},{key:"destroy",value:function(){v(w(f.prototype),"destroy",this).call(this),this.calendar&&this.calendar.destroy()}}],a=[{key:"defaultSettings",get:function(){return{type:"calendar",altInput:!0,allowInput:!0,clickOpens:!0,enableDate:!0,enableTime:!0,mode:"single",noCalendar:!1,format:k,dateFormat:O,useLocaleSettings:!1,language:"us-en",hourIncrement:1,minuteIncrement:5,time_24hr:!1,saveAs:"date",displayInTimezone:"",timezone:"",disable:[],minDate:"",maxDate:""}}}],r&&p(f.prototype,r),a&&p(f,a),Object.defineProperty(f,"prototype",{writable:!1}),f}(a.default);n.default=j},83829:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(37753),r(84812),r(23850),r(64652),r(37097),r(80107),r(62107),r(21430),r(6778),r(68428),r(21587),r(11414),r(41135),r(28839),r(889
110),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(66334),r(56613),r(43053),r(65813);var i=s(r(2890)),a=s(r(26184)),l=s(r(32780));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=d(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(p,e);var n,r,a,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(p);if(n){var i=d(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(e,n,r,o){var a;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),(a=s.call(this,e)).valueIndex=o||0,a.componentInstance=r,a.namespace="formio.widget",a.component=n||{},a.settings=i.default.merge({},a.defaultSettings,e||{}),a}return a=[{key:"defaultSettings",get:function(){return{type:"input"}}}],r=[{key:"attach",value:function(e){return this._input=e,l.default.resolve()}},{key:"defaultSettings",get:function(){return{}}},{key:"disabled",set:function(e){e?this._input.setAttribute("disabled","disabled"):this._input.removeAttribute("disabled")}},{key:"input",get:function(){return this._input}},{key:"getValue",value:function(){return this._input.value}},{key:"getValueAsString",value:function(e){return e}},{key:"validationValue",value:function(e){return e}},{key:"addPrefix",value:function(){return null}},{key:"addSuffix",value:function(){return null}},{key:"setValue",value:function(e){this._input.value=e}},{key:"evalContext",value:function(e){return c(d(p.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.componentInstance.data,rowIndex:this.componentInstance.rowIndex,data:this.componentInstance.rootValue,value:this.componentInstance.dataValue,t:this.t.bind(this),submission:this.componentInstance.root?this.componentInstance.root._submission:{data:this.componentInstance.rootValue},form:this.componentInstance.root?this.componentInstance.root._form:{},options:this.options},e))}}],u(p.prototype,r),a&&u(p,a),Object.defineProperty(p,"prototype",{writable:!1}),p}(a.default);n.default=p},34596:function(e,n,r){"use strict";r(64652),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(83829)),i=a(r(84181));function a(e){return e&&e.__esModule?e:{default:e}}var l={input:o.default,calendar:i.default};n.default=l}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.