UNPKG

@pdftron/webviewer

Version:

[WebViewer](https://www.apryse.com/webviewer) is a powerful JavaScript Document SDK and UI Component Library that is a part of the [Apryse PDF SDK](https://www.apryse.com). It provides a slick, out-of-the-box responsive UI that interacts with the core lib

1 lines • 65.5 kB
(window.webpackJsonpWebViewerUI=window.webpackJsonpWebViewerUI||[]).push([[33,2],{1595:function(e,t,n){"use strict";n(9),n(77),n(26),n(60);var r=n(0),o=n.n(r),i=n(15),a=n.n(i),l=n(486),u=n(51),c=(n(1632),n(2)),d=n.n(c),s=["message","messageText","fillWidth","wrapperClassName","padMessageText","className","onFocus","onBlur","rightElement","leftElement","type","disabled"];function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var f=Object(r.forwardRef)((function(e,t){var n=e.message,i=void 0===n?"default":n,c=e.messageText,d=e.fillWidth,f=e.wrapperClassName,m=e.padMessageText,b=e.className,g=e.onFocus,h=e.onBlur,v=e.rightElement,y=e.leftElement,w=e.type,E=void 0===w?"text":w,O=e.disabled,F=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s),j=Object(l.a)(g,h),C=j.focused,x=j.handleOnFocus,P=j.handleOnBlur,S=Object(r.useMemo)((function(){return v||("warning"===i?e="icon-alert":"error"===i&&(e="icon-error"),e?o.a.createElement(u.a,{className:"ui__input__icon",glyph:e}):void 0);var e}),[i,v]),A=a()("ui__base","ui__input__wrapper",{"ui__input__wrapper--fill":d,"ui__input__wrapper--pad":m&&!c},f),I=a()("ui__input","ui__input--message-".concat(i),{"ui__input--focused":C}),k=a()("ui__input__input",{"ui__input__input--disabled":O},b);return o.a.createElement("div",{className:A},o.a.createElement("div",{className:I},y,o.a.createElement("input",p({},F,{type:E,onFocus:x,onBlur:P,className:k,disabled:O,ref:t})),S),c&&o.a.createElement("div",{className:"ui__input__messageText"},c))}));f.displayName="Input",f.propTypes={message:d.a.oneOf(["default","warning","error"]),messageText:d.a.string,fillWidth:d.a.bool,wrapperClassName:d.a.string,padMessageText:d.a.bool,className:d.a.string,onFocus:d.a.func,onBlur:d.a.func,rightElement:d.a.node,leftElement:d.a.node,type:d.a.string,disabled:d.a.bool};var m=f;t.a=m},1632:function(e,t,n){var r=n(36),o=n(1633);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1633:function(e,t,n){(e.exports=n(37)(!1)).push([e.i,".ui__input__wrapper .ui__input .ui__input__icon{margin:0 2px}.ui__input__wrapper .ui__input .ui__input__icon svg path{fill:var(--error-border-color)}",""])},1649:function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1621),a=n(1582),l=n(23),u=function(e){var t=e.children,n=Object(r.useMemo)((function(){var e=Object(l.a)();return Object(i.a)({key:"wv-react-select-emotion",container:e})}),[]);return window.isApryseWebViewerWebComponent?o.a.createElement(a.a,{value:n},t):t};t.a=u},1666:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1630),o=n(157),i=n(0),a=n(1594),l=(n(1582),n(1621),n(1712),n(312),n(476),n(471),n(472),n(1566),n(1713),n(1652),n(480),n(1714),n(229),n(123),n(1663),Object(i.forwardRef)((function(e,t){var n=Object(r.a)(e);return i.createElement(a.a,Object(o.a)({ref:t},n))})))},1721:function(e,t,n){var r=n(36),o=n(1802);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1776:function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1623),a=n(51),l=function(e){var t=e.selectProps.menuIsOpen;return o.a.createElement(i.o.IndicatorsContainer,e,o.a.createElement(a.a,{className:"arrow",glyph:"icon-chevron-".concat(t?"up":"down")}))};t.a=l},1789:function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(2),a=n.n(i),l=n(307),u=n(51),c=n(15),d=n.n(c),s=(n(1799),{label:a.a.string,value:a.a.string,onChange:a.a.func,validationMessage:a.a.string,hasError:a.a.bool,ariaDescribedBy:a.a.string,ariaLabelledBy:a.a.string}),p=function(e){var t=e.label,n=e.value,r=e.onChange,i=e.validationMessage,a=e.hasError,c=e.ariaDescribedBy,s=e.ariaLabelledBy,p=Object(l.a)().t;return o.a.createElement("div",{className:"input-container"},o.a.createElement("div",{className:"input-wrapper"},o.a.createElement("input",{className:d()({"text-input":!0,"text-input--error":a}),id:t,type:"text",onChange:function(e){return r(e.target.value)},"aria-label":t,value:n,"aria-describedby":a?{ariaDescribedBy:c}:void 0,"aria-labelledby":s}),a&&o.a.createElement(u.a,{glyph:"icon-alert"})),a&&o.a.createElement("div",{id:"TextInputError",className:"text-input-error"},o.a.createElement("p",{"aria-live":"assertive",className:"no-margin",role:"alert"},p(i))))};p.propTypes=s;var f=p;t.a=f},1797:function(e,t,n){var r=n(36),o=n(1798);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1798:function(e,t,n){(e.exports=n(37)(!1)).push([e.i,".messageText{width:100%;font-size:11px;margin-top:4px}",""])},1799:function(e,t,n){var r=n(36),o=n(1800);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1800:function(e,t,n){(e.exports=n(37)(!1)).push([e.i,".input-container .input-wrapper{width:100%;position:relative;display:flex;align-items:center}.input-container .input-wrapper .Icon{position:absolute;inset-inline-end:8px;color:var(--error-border-color)}.input-container .input-wrapper .text-input{padding:6px!important;width:100%;height:32px}.input-container .input-wrapper .text-input.text-input--error{padding-inline-end:30px;border-color:var(--error-border-color)!important}.input-container .text-input-error{color:var(--error-text-color);width:100%;margin-top:4px}",""])},1801:function(e,t,n){var r=n(36),o=n(1936);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1802:function(e,t,n){(e.exports=n(37)(!1)).push([e.i,".creatable-list{display:flex;flex-direction:column}.creatable-list-item{display:flex;flex-direction:row;align-items:center}.add-item-button{display:flex;align-items:center;width:78px;cursor:pointer}.icon-handle{cursor:grab}.input-wrapper{position:relative;display:flex;align-items:center}.input-wrapper .Icon{position:absolute;inset-inline-end:15px;color:var(--error-border-color)}.input-wrapper input.invalid{border-color:var(--color-message-error)}.invalid-option-message{color:var(--color-message-error);margin-top:8px;font-size:13px}",""])},1803:function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"i",(function(){return s})),n.d(t,"j",(function(){return p})),n.d(t,"k",(function(){return f})),n.d(t,"h",(function(){return m})),n.d(t,"l",(function(){return b})),n.d(t,"m",(function(){return g})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return v})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return w})),n.d(t,"n",(function(){return E}));n(16);var r=n(153),o=n(1),i=window.Core,a=i.Annotations,l=i.Tools,u={name:"",defaultValue:"",radioButtonGroups:[]},c={width:0,height:0},d={ReadOnly:!1,Multiline:!1,Required:!1,MultiSelect:!1},s=function(e,t,n){var r=o.a.getToolMode(),i=[];switch(!0){case e instanceof a.RadioButtonWidgetAnnotation:i.push(t.RADIO_GROUP);break;case!!e:i.push(t.NAME)}switch(!0){case e instanceof a.SignatureWidgetAnnotation&&!n:case r instanceof l.SignatureFormFieldCreateTool&&!n:i.push(t.SIGNATURE_OPTION)}var u=!e,c=e instanceof a.TextWidgetAnnotation,d=r instanceof l.TextFormFieldCreateTool;return(c||d&&(c||u))&&i.push(t.DEFAULT_VALUE),i},p=function(e,t){var n=[t.READ_ONLY,t.REQUIRED],r=o.a.getToolMode();switch(!0){case e instanceof a.TextWidgetAnnotation:case r instanceof l.TextFormFieldCreateTool:n.push(t.MULTI_LINE);break;case e instanceof a.ListWidgetAnnotation:case r instanceof l.ListBoxFormFieldCreateTool:n.push(t.MULTI_SELECT)}return n},f=function(e){var t=o.a.getToolMode(),n=e instanceof a.ListWidgetAnnotation||e instanceof a.ChoiceWidgetAnnotation,r=t instanceof l.ComboBoxFormFieldCreateTool||t instanceof l.ListBoxFormFieldCreateTool;return(!e||n)&&r||n},m=function(e){var t=o.a.getFormFieldCreationManager();if(e)return t.getSignatureOption(e);var n=o.a.getToolMode(),i=Object(r.a)(n.name);return(null==i?void 0:i.signatureType)||""},b=function(e){o.a.getAnnotationManager().drawAnnotationsFromList([e])},g=function(e){o.a.getAnnotationManager().trigger("annotationChanged",[e,"modify",{}])},h=function(){return o.a.getPageHeight(o.a.getCurrentPage())},v=function(){return o.a.getPageWidth(o.a.getCurrentPage())},y=function(e,t){return{READ_ONLY:{label:"formField.formFieldPopup.readOnly",name:"READ_ONLY",onChange:e,isChecked:t.ReadOnly},MULTI_LINE:{label:"formField.formFieldPopup.multiLine",name:"MULTILINE",onChange:e,isChecked:t.Multiline},REQUIRED:{label:"formField.formFieldPopup.required",name:"REQUIRED",onChange:e,isChecked:t.Required},MULTI_SELECT:{name:"MULTI_SELECT",label:"formField.formFieldPopup.multiSelect",onChange:e,isChecked:t.MultiSelect}}},w=function(e){var t=e.onFieldNameChange,n=e.onFieldValueChange,r=e.fieldProperties,o=e.onSignatureOptionChange,i=e.getSignatureOption,a=e.annotation;return{NAME:{label:"formField.formFieldPopup.fieldName",onChange:t,value:r.name,required:!0,type:"text",focus:!0},DEFAULT_VALUE:{label:"formField.formFieldPopup.fieldValue",onChange:n,value:r.defaultValue,type:"text"},RADIO_GROUP:{label:"formField.formFieldPopup.fieldName",onChange:t,value:r.name,required:!0,type:"select"},SIGNATURE_OPTION:{label:"formField.formFieldPopup.signatureOption",onChange:o,value:i(a),required:!1,type:"signatureOption"}}},E=function(e,t,n){var r=t-n;return Math.min(e,r)}},1804:function(e,t,n){var r=n(36),o=n(1805);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1805:function(e,t,n){(e.exports=n(37)(!1)).push([e.i,'.FormFieldEditPopup .signature-options-container{padding:5px 0;display:grid;grid-template-columns:.5fr 1fr;grid-template-areas:"label dropdown";align-items:center}.FormFieldEditPopup .signature-options-container label{grid-area:label}.FormFieldEditPopup .arrow{width:12px;height:16px;margin-top:2px}',""])},1852:function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(34),n(27),n(21),n(46),n(20),n(12),n(82),n(44),n(22),n(94),n(128),n(33),n(18),n(16),n(209),n(29),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(116),n(64),n(11),n(31),n(13);var r=n(0),o=n.n(r),i=n(43),a=n(307),l=n(2),u=n.n(l),c=n(2089),d=n(1592),s=n(1609),p=n(75);n(57);function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),m(this,"spec",void 0),m(this,"monitor",void 0),this.spec=t,this.monitor=n}var t,n,r;return t=e,(n=[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}])&&f(t.prototype,n),r&&f(t,r),e}();function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t,n){var o=Object(d.a)(),i=function(e,t){var n=Object(r.useMemo)((function(){return new b(e,t)}),[t]);return Object(r.useEffect)((function(){n.spec=e}),[e]),n}(e,t),a=function(e){var t=e.accept;return Object(r.useMemo)((function(){return Object(p.a)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]}),[t])}(e);Object(s.a)((function(){var e=g(Object(c.b)(a,i,o),2),r=e[0],l=e[1];return t.receiveHandlerId(r),n.receiveHandlerId(r),l}),[o,t,i,n,a.map((function(e){return e.toString()})).join("|")])}function y(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t){var n=y(t||[]);return null==t&&"function"!=typeof e&&n.push(e),Object(r.useMemo)((function(){return"function"==typeof e?e():e}),n)}var O=n(2087);var F=n(2088);var j=n(1723);function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t,n){return function(e,t,n){var r=C(Object(j.a)(e,t,n),2),o=r[0],i=r[1];return Object(s.a)((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(i,{handlerIds:[t]})}),[e,i]),o}(t,e||function(){return{}},(function(){return n.reconnect()}))}function S(e){return Object(r.useMemo)((function(){return e.hooks.dropTarget()}),[e])}function A(e,t){var n,o=E(e,t),i=(n=Object(d.a)(),Object(r.useMemo)((function(){return new O.a(n)}),[n])),a=function(e){var t=Object(d.a)(),n=Object(r.useMemo)((function(){return new F.a(t.getBackend())}),[t]);return Object(s.a)((function(){return n.dropTargetOptions=e||null,n.reconnect(),function(){return n.disconnectDropTarget()}}),[e]),n}(o.options);return v(o,i,a),[P(o.collect,i,a),S(a)]}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 k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_(this,"spec",void 0),_(this,"monitor",void 0),_(this,"connector",void 0),this.spec=t,this.monitor=n,this.connector=r}var t,n,r;return t=e,(n=[{key:"beginDrag",value:function(){var e,t=this.spec,n=this.monitor;return null!==(e="object"===I(t.item)?t.item:"function"==typeof t.item?t.item(n):{})&&void 0!==e?e:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var n=this.spec,r=this.monitor,o=n.isDragging;return o?o(r):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()}}])&&k(t.prototype,n),r&&k(t,r),e}();function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t,n){var o=Object(d.a)(),i=function(e,t,n){var o=Object(r.useMemo)((function(){return new R(e,t,n)}),[t,n]);return Object(r.useEffect)((function(){o.spec=e}),[e]),o}(e,t,n),a=function(e){return Object(r.useMemo)((function(){var t=e.type;return Object(p.a)(null!=t,"spec.type must be defined"),t}),[e])}(e);Object(s.a)((function(){if(null!=a){var e=T(Object(c.a)(a,i,o),2),r=e[0],l=e[1];return t.receiveHandlerId(r),n.receiveHandlerId(r),l}}),[o,t,n,i,a])}var L=n(2090);var D=n(2091);function W(e){return Object(r.useMemo)((function(){return e.hooks.dragSource()}),[e])}function H(e){return Object(r.useMemo)((function(){return e.hooks.dragPreview()}),[e])}function U(e,t){var n=E(e,t);Object(p.a)(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var o,i=(o=Object(d.a)(),Object(r.useMemo)((function(){return new L.a(o)}),[o])),a=function(e,t){var n=Object(d.a)(),o=Object(r.useMemo)((function(){return new D.a(n.getBackend())}),[n]);return Object(s.a)((function(){return o.dragSourceOptions=e||null,o.reconnect(),function(){return o.disconnectDragSource()}}),[o,e]),Object(s.a)((function(){return o.dragPreviewOptions=t||null,o.reconnect(),function(){return o.disconnectDragPreview()}}),[o,t]),o}(n.options,n.previewOptions);return M(n,i,a),[P(n.collect,i,a),W(a),H(a)]}var B=n(51);n(1721);function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Y=function(e){var t=e.option,n=e.index,a=e.onChange,l=e.onDeleteItem,u=e.moveListItem,c=e.id,d=e.addItem,s=e.invalid,p="item",f=Object(r.useRef)(null),m=V(A({accept:p,hover:function(e,t){var r;if(f.current){var o=e.index,i=n;if(o!==i){var a=null===(r=f.current)||void 0===r?void 0:r.getBoundingClientRect(),l=(a.bottom-a.top)/2,c=t.getClientOffset().y-a.top;o<i&&c<l||o>i&&c>l||(u(o,i),e.index=i)}}}}),2)[1],b=V(U({type:p,item:{type:p,id:c,index:n},collect:function(e){return{isDragging:e.isDragging()}}}),2),g=b[0].isDragging,h=b[1],v=Object(r.useCallback)((function(e){a(e.target.value)}),[a]),y=Object(r.useCallback)((function(e){"Enter"===e.key&&d()}),[d]);h(m(f));var w=g?0:1;return o.a.createElement("div",{ref:f,style:{opacity:w},className:"creatable-list-item"},o.a.createElement("div",{className:"icon-handle"},o.a.createElement(B.a,{glyph:"icon-drag-handle"})),o.a.createElement("div",{className:"input-wrapper"},o.a.createElement("input",{type:"text",className:s?"invalid":"",onChange:v,value:t.displayValue,onKeyPress:y,autoFocus:!0}),s&&o.a.createElement(B.a,{glyph:"icon-alert"})),o.a.createElement(i.a,{title:"action.delete",img:"icon-delete-line",onClick:l}))},G={option:u.a.object,invalid:u.a.bool};Y.propTypes=G;var Q=Y;function z(e){return(z="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,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==z(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(e){return function(e){if(Array.isArray(e))return ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=te(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||te(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){if(e){if("string"==typeof e)return ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var re={options:u.a.object,onOptionsUpdated:u.a.func,popupRef:u.a.object},oe=function(e){var t=e.options,n=e.onOptionsUpdated,l=e.popupRef,u=Object(r.useRef)(!1);Object(r.useEffect)((function(){u.current=!1}),[n]),Object(r.useEffect)((function(){f(d)}),[t]);var c=Object(a.a)().t,d=t.map((function(e,t){return{id:t,displayValue:e.displayValue,value:e.value}})),s=ee(Object(r.useState)(d),2),p=s[0],f=s[1],m=ee(Object(r.useState)(d.length),2),b=m[0],g=m[1],h=ee(Object(r.useState)([]),2),v=h[0],y=h[1],w=ee(Object(r.useState)(!1),2),E=w[0],O=w[1],F=ee(Object(r.useState)([]),2),j=F[0],C=F[1],x=Object(r.useRef)();Object(r.useEffect)((function(){if(u.current){var e=A(),t=e.invalidItems,r=e.hasEmpty,o=e.duplicates;y(t),O(r),C(Array.from(o));var i=p.filter((function(e){return e.value&&!v.includes(e)})).map((function(e){return{value:e.value,displayValue:e.displayValue}}));n(i)}else y([]),u.current=!0}),[p,n]);var P=Object(r.useCallback)((function(){var e,t=new Map,n=Z(p);try{for(n.s();!(e=n.n()).done;){var r=e.value.value;if(r){var o=t.get(r)||0;t.set(r,o+1)}}}catch(e){n.e(e)}finally{n.f()}return t}),[p]),S=Object(r.useCallback)((function(e){var t,n=[],r=!1,o=new Set,i=Z(p);try{for(i.s();!(t=i.n()).done;){var a=t.value,l=a.value;l&&e.get(l)>1?(n.push(a),o.add(l)):l||(r=!0,n.push(a))}}catch(e){i.e(e)}finally{i.f()}return{invalidItems:n,hasEmpty:r,duplicates:o}}),[p]),A=Object(r.useCallback)((function(){var e=P();return S(e)}),[p]),I=Object(r.useCallback)((function(){var e=b;g(b+1),f([].concat(X(p),[{id:e,value:"",displayValue:""}])),l&&R()}),[b,p]),k=function(e){return function(){var t=p.filter((function(t){return e!==t.id}));f(t)}};var _=Object(r.useCallback)((function(e,t){var n,r,o,i=p[e],a=p.filter((function(t,n){return n!==e})),l=(n=t,r=i,(o=a.slice(0)).splice(n,0,r),o);f(l)}),[p]),R=function(){var e=l.current,t=x.current,n=e.getBoundingClientRect().bottom,r=window.innerHeight-n,o=t.scrollHeight>t.clientHeight;if(r<=40&&!o){var i=40*t.childElementCount;t.style.maxHeight="".concat(i,"px")}else r>40&&(t.style.maxHeight="200px")};return o.a.createElement("div",null,o.a.createElement("div",{className:"creatable-list",ref:x},p.map((function(e,t){return o.a.createElement(Q,{key:e.id,index:t,id:e.id,option:e,onChange:(n=e.id,function(e){var t=p.map((function(t){return t.id!==n?t:K(K({},t),{},{value:e,displayValue:e})}));f(t)}),onDeleteItem:k(e.id),moveListItem:_,addItem:(null==v?void 0:v.length)>0?function(){}:I,invalid:(null==v?void 0:v.includes(e))||v.some((function(t){return t.value===e.value&&t.id!==e.id}))});var n}))),E&&o.a.createElement("div",{className:"invalid-option-message",role:"alert","aria-live":"assertive"},c("message.listEmptyValue")),j.length>0&&o.a.createElement("div",{className:"invalid-option-message",role:"alert","aria-live":"assertive"},c("message.listDuplicateValue")," ",j.join(", ")),o.a.createElement(i.a,{title:c("action.addOption"),className:"add-item-button",label:c("action.addOption"),img:"icon-plus-sign",onClick:I,disabled:(null==v?void 0:v.length)>0}))};oe.propTypes=re;var ie=oe;t.a=ie},1856:function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(34),n(27),n(12),n(33),n(29),n(49),n(24),n(48),n(50),n(35),n(8),n(11),n(31),n(13);var r=n(0),o=n.n(r),i=n(307),a=n(1775),l=n(1776),u=n(1649);n(1797);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 d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){var t=e.onChange,n=e.onInputChange,r=e.options,c=e.onCreateOption,d=e.textPlaceholder,p=e.value,f=e.isClearable,m=e.isValid,b=e.messageText,g=Object(i.a)().t,h={control:function(e,t){return s(s({},e),{},{minHeight:"28px",height:"36px",backgroundColor:"var(--component-background)",borderColor:t.selectProps.isValid?"hsl(0, 0%, 80%)":"hsl(28, 80%, 52%)",boxShadow:null,"&:hover":null})},singleValue:function(e){return s(s({},e),{},{color:"var(--text-color)"})},menu:function(e){return s(s({},e),{},{backgroundColor:"var(--component-background)",color:"var(--text-color)"})},option:function(e){return s(s({},e),{},{backgroundColor:"var(--component-background)",color:"var(--text-color)","&:hover":{backgroundColor:"var(--popup-button-hover)"}})},indicatorsContainer:function(e){return s(s({},e),{},{paddingRight:"6px",height:"26px"})}};return o.a.createElement(u.a,null,o.a.createElement(a.a,{isClearable:f,onChange:t,onInputChange:n,options:r,onCreateOption:c,placeholder:d,formatCreateLabel:function(e){return"".concat(g("action.create")," ").concat(e)},value:p,styles:h,isValid:m,components:{IndicatorsContainer:l.a}}),b?o.a.createElement("div",{className:"messageText"},b):void 0)};t.a=f},1857:function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(83),n(27),n(21),n(20),n(12),n(22),n(33),n(18),n(16),n(29),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(11),n(31),n(13);var r=n(0),o=n.n(r),i=n(2),a=n.n(i),l=n(1666),u=n(307),c=n(61),d=n(92),s=n(1776),p=n(1649);n(1804);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 m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={onChangeHandler:a.a.func.isRequired,initialOption:a.a.string},w=function(e){var t=e.onChangeHandler,n=e.initialOption,i=Object(u.a)().t,a={control:function(e,t){return h(h({},e),{},{minHeight:"28px",backgroundColor:"var(--component-background)",borderColor:t.isFocused?"var(--gray-10)":"hsl(0, 0%, 80%)",borderRadius:t.isFocused?"4px":e.borderRadius,borderWidth:t.isFocused?"2px":e.borderWidth,boxShadow:t.isFocused?"0 0 0 1px var(--gray-10)":null,"&:hover":{borderColor:t.isFocused?"var(--gray-10)":"hsl(0, 0%, 70%)"}})},valueContainer:function(e){return h(h({},e),{},{padding:"2px"})},singleValue:function(e){return h(h({},e),{},{color:"var(--text-color)"})},menu:function(e){return h(h({},e),{},{backgroundColor:"var(--component-background)"})},option:function(e,t){return h(h({},e),{},{backgroundColor:t.isSelected?"var(--blue-5)":"var(--component-background)","&:hover":{backgroundColor:"var(--blue-6)",color:"var(--gray-0)"},"&:active":{backgroundColor:t.isSelected?"var(--blue-5)":"var(--blue-6)"},border:t.isFocused?"var(--focus-visible-outline) !important":"null"})},indicatorsContainer:function(e){return h(h({},e),{},{paddingRight:"6px",height:"26px"})}},f=[{value:d.a.FULL_SIGNATURE,label:i("formField.types.signature")},{value:d.a.INITIALS,label:i("option.type.initials")}],b=f.find((function(e){return e.value===n})),g=m(Object(r.useState)(b),2),v=g[0],y=g[1],w=m(Object(r.useState)(!1),2),E=w[0],O=w[1];return o.a.createElement(c.a,{className:"signature-options-container",dataElement:"signatureOptionsDropdown"},o.a.createElement("label",{id:"form-field-type-label"},i("formField.type"),":"),o.a.createElement(p.a,null,o.a.createElement(l.a,{value:v,onChange:function(e){y(e),t(e),O(!1)},styles:a,options:f,isSearchable:!1,isClearable:!1,components:{IndicatorsContainer:s.a},"aria-labelledby":"form-field-type-label",onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),O((function(e){return!e})))},menuIsOpen:E,onMenuOpen:function(){O(!0)},onMenuClose:function(){O(!1)}})))};w.propTypes=y;var E=w;t.a=E},1936:function(e,t,n){(t=e.exports=n(37)(!1)).push([e.i,'.open.FormFieldEditPopupContainer{visibility:visible}.closed.FormFieldEditPopupContainer{visibility:hidden}:host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.FormFieldEditPopupContainer{position:absolute;z-index:70;display:flex;justify-content:center;align-items:center}.FormFieldEditPopupContainer:empty{padding:0}.FormFieldEditPopupContainer .buttons{display:flex}.FormFieldEditPopupContainer .Button{margin:4px;width:32px;height:32px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .FormFieldEditPopupContainer .Button{width:42px;height:42px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .FormFieldEditPopupContainer .Button{width:42px;height:42px}}.FormFieldEditPopupContainer .Button:hover{background:var(--popup-button-hover)}.FormFieldEditPopupContainer .Button:hover:disabled{background:none}.FormFieldEditPopupContainer .Button .Icon{width:18px;height:18px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .FormFieldEditPopupContainer .Button .Icon{width:24px;height:24px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .FormFieldEditPopupContainer .Button .Icon{width:24px;height:24px}}.is-vertical.FormFieldEditPopupContainer .Button.main-menu-button{width:100%;border-radius:0;justify-content:flex-start;padding-inline-start:var(--padding-small);padding-inline-end:var(--padding-small);margin:0 0 var(--padding-tiny) 0}.is-vertical.FormFieldEditPopupContainer .Button.main-menu-button:first-child{margin-top:var(--padding-tiny)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .is-vertical.FormFieldEditPopupContainer .Button.main-menu-button{width:100%;height:32px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .is-vertical.FormFieldEditPopupContainer .Button.main-menu-button{width:100%;height:32px}}.is-vertical.FormFieldEditPopupContainer .Button.main-menu-button .Icon{margin-inline-end:10px}.is-vertical.FormFieldEditPopupContainer .Button.main-menu-button span{white-space:nowrap}@keyframes bottom-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes up-bottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}.FormFieldEditPopup{padding-top:8px;padding-bottom:6px;padding-inline-start:12px;padding-inline-end:12px}.FormFieldEditPopup .fields-container{margin-bottom:5px}.FormFieldEditPopup .radio-group-label{grid-area:group-message;font-size:10px;width:240px;padding-top:5px}.FormFieldEditPopup .field-input{padding:5px 0;display:grid;grid-template-columns:1fr 2fr;grid-template-areas:"label dropdown" "group-message group-message"}.FormFieldEditPopup .field-input span{padding-top:10px;padding-inline-end:10px;grid-area:label}.FormFieldEditPopup .field-flags-container{display:flex;flex-direction:column}.FormFieldEditPopup .field-flags-title{all:unset;padding-bottom:5px}.FormFieldEditPopup .form-buttons-container{display:flex;flex-direction:row;justify-content:flex-end;padding-top:5px}.FormFieldEditPopup .ok-form-field-button{display:flex;justify-content:center;align-items:center;padding:6px 18px;width:auto;width:-moz-fit-content;width:fit-content;border-radius:4px;height:28px;cursor:pointer}.FormFieldEditPopup .ok-form-field-button:not(:disabled){background-color:var(--primary-button);border:1px solid var(--primary-button);color:var(--primary-button-text)}.FormFieldEditPopup .ok-form-field-button:hover:not(:disabled):not(.disabled){background:var(--primary-button-hover);border:1px solid var(--primary-button-hover)}.FormFieldEditPopup .cancel-form-field-button{display:flex;justify-content:center;align-items:center;color:var(--secondary-button-text);padding:6px 18px;width:auto;width:-moz-fit-content;width:fit-content;height:28px;cursor:pointer}.FormFieldEditPopup .cancel-form-field-button:hover{color:var(--secondary-button-hover);background:transparent}.field-options-container{width:180px}.field-options-container .creatable-list{max-height:200px;overflow:auto}.field-options-container input{width:120px;height:28px}.field-options-container .Button.add-item-button{width:90px;margin-inline-start:0;justify-content:left}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .field-options-container .Button.add-item-button{width:110px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .field-options-container .Button.add-item-button{width:110px}}.form-dimension{padding-top:10px;display:flex;align-items:center}.form-dimension-input{padding-inline-start:5px}.form-dimension-input input::-webkit-inner-spin-button,.form-dimension-input input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.form-dimension-input input[type=number]{-moz-appearance:textfield}.form-dimension-input input{width:55px;height:28px}.FormFieldEditPopupContainer{border-radius:4px;box-shadow:0 0 3px 0 var(--document-box-shadow);background:var(--component-background)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .FormFieldEditPopupContainer{width:95%;position:fixed;inset-inline-start:1.25%!important;inset-block-start:105px!important}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .FormFieldEditPopupContainer{width:95%;position:fixed;inset-inline-start:1.25%!important;inset-block-start:105px!important}}',""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},2097:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(32),n(38),n(34),n(27),n(21),n(77),n(20),n(12),n(44),n(22),n(33),n(18),n(16),n(29),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(629),n(19),n(116),n(11),n(136),n(31),n(13);var r=n(0),o=n.n(r),i=n(185),a=n.n(i),l=n(1),u=(n(267),n(15)),c=n.n(u),d=n(43),s=n(307),p=n(1856),f=n(106),m=n(2),b=n.n(m),g={flags:b.a.arrayOf(b.a.shape({label:b.a.string,isChecked:b.a.bool,onChange:b.a.func}))},h=function(e){var t=e.flags,n=Object(s.a)().t;return o.a.createElement("div",{className:"field-flags-container"},o.a.createElement("h2",{className:"field-flags-title",id:"field-flags-group"},n("formField.formFieldPopup.flags")),o.a.createElement("div",{role:"group","aria-labelledby":"field-flags-group"},t.map((function(e){return o.a.createElement(f.a,{id:n(e.label),key:n(e.label),checked:e.isChecked,onChange:function(t){return e.onChange(t.target.checked)},label:n(e.label),"aria-checked":e.isChecked})}))))};h.propTypes=g;var v=h,y=function(e){var t=e.width,n=e.height,r=e.onWidthChange,i=e.onHeightChange,a=Object(s.a)().t;return o.a.createElement("div",{className:"form-dimension"},o.a.createElement("div",null,a("formField.formFieldPopup.size"),":"),o.a.createElement("div",{className:"form-dimension-input"},o.a.createElement("input",{id:"form-field-width",type:"number",min:0,"aria-label":a("formField.formFieldPopup.width"),value:t,onChange:function(e){return r(e.target.value)}})," ",a("formField.formFieldPopup.width")),o.a.createElement("div",{className:"form-dimension-input"},o.a.createElement("input",{id:"form-field-height",type:"number",min:0,"aria-label":a("formField.formFieldPopup.height"),value:n,onChange:function(e){return i(e.target.value)}})," ",a("formField.formFieldPopup.height")))},w=n(195),E=n(1789),O=(n(1801),n(1852)),F=n(1595),j={indicator:b.a.object,indicatorPlaceholder:b.a.string},C=function(e){var t=e.indicator,n=e.indicatorPlaceholder,r=Object(s.a)().t;return o.a.createElement("div",{className:"form-field-indicator-container"},o.a.createElement("span",{id:"field-indicator-input",className:"field-indicator-title"},r("formField.formFieldPopup.fieldIndicator")),o.a.createElement(f.a,{id:"field-indicator",checked:t.isChecked,onChange:function(e){return r=e.target.checked,t.value.length<1&&r&&t.onChange(n),void t.toggleIndicator(r);var r},label:r(t.label),"aria-label":r(t.label),"aria-checked":t.isChecked}),o.a.createElement("div",{className:"field-indicator"},o.a.createElement(F.a,{id:"indicator-input",type:"text",onChange:function(e){return t.onChange(e.target.value)},value:t.value,fillWidth:"false",placeholder:n,disabled:!t.isChecked,"aria-disabled":!t.isChecked,"aria-labelledby":"field-indicator-input"})))};C.propTypes=j;var x=C,P=n(1803),S=function(e,t,n,r,o){var i=function(n){var r=t()-e.X;return n>r?r:n},a=function(t){var r=n()-e.Y;return t>r?r:t};return{onWidthChange:function(t){var n=i(t);e.setWidth(n),r(n),Object(P.l)(e),Object(P.m)([e])},onHeightChange:function(t){var n=a(t);e.setHeight(n),o(n),Object(P.l)(e),Object(P.m)([e])},validateWidth:i,validateHeight:a}};function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k={fields:b.a.array.isRequired,flags:b.a.array.isRequired,closeFormFieldEditPopup:b.a.func.isRequired,isValid:b.a.bool.isRequired,validationMessage:b.a.string.isRequired,radioButtonGroups:b.a.array,options:b.a.array,onOptionsChange:b.a.func,annotation:b.a.object.isRequired,selectedRadioGroup:b.a.string,getPageHeight:b.a.func.isRequired,getPageWidth:b.a.func.isRequired,indicator:b.a.object.isRequired},_=function(e){var t=e.fields,n=e.flags,i=e.closeFormFieldEditPopup,a=e.isValid,l=e.validationMessage,u=e.radioButtonGroups,f=e.options,m=e.onOptionsChange,b=e.annotation,g=e.selectedRadioGroup,h=e.getPageHeight,F=e.getPa