scrivito-neoletter-form-widgets 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 JustRelate Group
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/index.css ADDED
@@ -0,0 +1,14 @@
1
+ .scrivito-form-widgets .step-preview-count{position:absolute;top:6px;left:50%;background:white;transform:translate(-50%);padding:0 5px;margin:0}.step-border{border:2px #ff9f0080 dotted}
2
+
3
+ .scrivito-form-widgets .select-container .select-title{display:flex;align-items:baseline}.scrivito-form-widgets .select-container .select-label{display:flex;align-items:center}.scrivito-form-widgets .select-container .select-label span{margin-left:0.4em}.scrivito-form-widgets .select-container .select-label .form-check-input{margin-top:0}.scrivito-form-widgets .select-container .dropdown-select{width:100%}
4
+
5
+ .scrivito-form-widgets .form-rating .rating-title{display:flex;align-items:baseline}
6
+
7
+ .scrivito-form-widgets .form-date .date-title{display:flex;align-items:baseline}
8
+
9
+ .scrivito-form-widgets.form-container-widget .dropdown-container .select-title,.scrivito-form-widgets.form-container-widget .select-container .select-title{display:flex;align-items:baseline}.scrivito-form-widgets.form-container-widget .text-super{vertical-align:super}.scrivito-form-widgets.form-container-widget .text-mandatory{font-weight:700;color:#f03a47;cursor:default}.scrivito-form-widgets.form-container-widget .fa{color:#ccc}.scrivito-form-widgets.form-container-widget .winnie-the-pooh{opacity:0;position:absolute;top:0;left:0;height:0;width:0;z-index:-1}.scrivito-form-widgets.form-container-widget .form-buttons{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.scrivito-form-widgets.form-container-widget .form-buttons .step-counter{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center}.scrivito-form-widgets.form-container-widget .form-buttons .review-button{margin-right:1em}.scrivito-form-widgets.form-container-widget .hide{display:none}.scrivito-form-widgets.form-container-widget.form-border{border:black 1px dotted;padding:0.5em}.bg-dark-image .missing-tenant,.bg-dark-image .scrivito-form-widgets.form-container-widget label,.bg-dark-image .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-dark-image .scrivito-form-widgets.form-container-widget .fa,.bg-dark-image .scrivito-form-widgets.form-container-widget .text-super,.bg-dark-image .card.card-theme .scrivito-form-widgets.form-container-widget label,.bg-dark-image .card.card-theme .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-dark-image .card.card-theme .scrivito-form-widgets.form-container-widget .fa,.bg-brand-primary .missing-tenant,.bg-brand-primary .scrivito-form-widgets.form-container-widget label,.bg-brand-primary .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-brand-primary .scrivito-form-widgets.form-container-widget .fa,.bg-brand-primary .scrivito-form-widgets.form-container-widget .text-super,.bg-brand-primary .card.card-theme .scrivito-form-widgets.form-container-widget label,.bg-brand-primary .card.card-theme .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-brand-primary .card.card-theme .scrivito-form-widgets.form-container-widget .fa,.bg-brand-secondary .missing-tenant,.bg-brand-secondary .scrivito-form-widgets.form-container-widget label,.bg-brand-secondary .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-brand-secondary .scrivito-form-widgets.form-container-widget .fa,.bg-brand-secondary .scrivito-form-widgets.form-container-widget .text-super,.bg-brand-secondary .card.card-theme .scrivito-form-widgets.form-container-widget label,.bg-brand-secondary .card.card-theme .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-brand-secondary .card.card-theme .scrivito-form-widgets.form-container-widget .fa,.bg-grey .missing-tenant,.bg-grey .scrivito-form-widgets.form-container-widget label,.bg-grey .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-grey .scrivito-form-widgets.form-container-widget .fa,.bg-grey .scrivito-form-widgets.form-container-widget .text-super,.bg-grey .card.card-theme .scrivito-form-widgets.form-container-widget label,.bg-grey .card.card-theme .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-grey .card.card-theme .scrivito-form-widgets.form-container-widget .fa,.bg-greydark .missing-tenant,.bg-greydark .scrivito-form-widgets.form-container-widget label,.bg-greydark .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-greydark .scrivito-form-widgets.form-container-widget .fa,.bg-greydark .scrivito-form-widgets.form-container-widget .text-super,.bg-greydark .card.card-theme .scrivito-form-widgets.form-container-widget label,.bg-greydark .card.card-theme .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-greydark .card.card-theme .scrivito-form-widgets.form-container-widget .fa,.bg-greymiddle .missing-tenant,.bg-greymiddle .scrivito-form-widgets.form-container-widget label,.bg-greymiddle .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-greymiddle .scrivito-form-widgets.form-container-widget .fa,.bg-greymiddle .scrivito-form-widgets.form-container-widget .text-super,.bg-greymiddle .card.card-theme .scrivito-form-widgets.form-container-widget label,.bg-greymiddle .card.card-theme .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-greymiddle .card.card-theme .scrivito-form-widgets.form-container-widget .fa{color:#fff !important}.bg-dark-image .card .scrivito-form-widgets.form-container-widget label,.bg-brand-primary .card .scrivito-form-widgets.form-container-widget label,.bg-brand-secondary .card .scrivito-form-widgets.form-container-widget label,.bg-grey .card .scrivito-form-widgets.form-container-widget label,.bg-greydark .card .scrivito-form-widgets.form-container-widget label,.bg-greymiddle .card .scrivito-form-widgets.form-container-widget label{color:#495054 !important}.bg-dark-image .card .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-brand-primary .card .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-brand-secondary .card .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-grey .card .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-greydark .card .scrivito-form-widgets.form-container-widget .text-mandatory,.bg-greymiddle .card .scrivito-form-widgets.form-container-widget .text-mandatory{color:red !important}.bg-dark-image .card .scrivito-form-widgets.form-container-widget .fa,.bg-brand-primary .card .scrivito-form-widgets.form-container-widget .fa,.bg-brand-secondary .card .scrivito-form-widgets.form-container-widget .fa,.bg-grey .card .scrivito-form-widgets.form-container-widget .fa,.bg-greydark .card .scrivito-form-widgets.form-container-widget .fa,.bg-greymiddle .card .scrivito-form-widgets.form-container-widget .fa{color:#ccc !important}.scrivito-form-widgets.missing-id{display:flex;justify-content:center}body .modal-dialog .modal-content .modal-body.form-review{height:60vh;overflow-x:scroll}body .modal-dialog .modal-content .modal-body.form-review div.step-review-container:not(:first-child) .step-review{margin-top:1em !important}body .modal-dialog .modal-content .modal-body.form-review .review-item-title{color:#9e9e9e;margin-bottom:0;margin-top:1em;font-size:1em;font-weight:normal}body .modal-dialog .modal-content .modal-body.form-review .review-item-value{font-weight:normal;white-space:pre-wrap;max-width:100vw;overflow-x:auto}
10
+
11
+ .scrivito-form-widgets .condition-wrapper{border:green 2px dotted}.scrivito-form-widgets .condition-wrapper .select-title{margin-top:0.3em}.scrivito-form-widgets .conditional-content{border:orange 2px dotted}.scrivito-form-widgets .header-info{position:absolute;top:6px;left:50%;background:white;transform:translate(-50%);padding:0 5px;margin:0}.scrivito-form-widgets .dropdown-container select{width:100%}
12
+
13
+ .scrivito-form-widgets .condition-info{position:absolute;top:6px;left:50%;background:white;transform:translate(-50%);padding:0 5px;margin:0}
14
+
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("history"),require("lodash-es"),require("react"),require("react-bootstrap"),require("react-dom"),require("scrivito")):"function"==typeof define&&define.amd?define(["history","lodash-es","react","react-bootstrap","react-dom","scrivito"],e):"object"==typeof exports?exports["scrivito-form-widgets"]=e(require("history"),require("lodash-es"),require("react"),require("react-bootstrap"),require("react-dom"),require("scrivito")):t["scrivito-form-widgets"]=e(t.history,t["lodash-es"],t.react,t["react-bootstrap"],t["react-dom"],t.scrivito)}(self,((t,e,n,i,r,o)=>(()=>{var u={7422:(t,e,n)=>{"use strict";n.d(e,{f:()=>u});var i=n(8156),r=n(8610),o={color:"rgba(64, 64, 64, 0.53)",display:"inline-block",fontSize:"13px",fontStyle:"normal",fontWeight:"normal",lineHeight:"28px",verticalAlign:"middle"},u=function(t){var e=t.children,n=t.center,u=t.block;if(!r.isInPlaceEditingActive())return null;var a=i.createElement("span",{style:o},e);return n?i.createElement("div",{className:"text-center"},a):u?i.createElement("div",null,a):a}},8623:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormCheckboxWidget:()=>i});var i=n(8610).provideWidgetClass("FormCheckboxWidget",{attributes:{type:["enum",{values:["custom","subscription","accept_terms"]}],customFieldName:"string",label:"string",required:"boolean",helpText:"html"}})},9686:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610),o=n(7225),u=n(4134),a=n(2360);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},s.apply(this,arguments)}r.provideComponent("FormCheckboxWidget",(function(t){var e=t.widget,n="form_checkbox_widget_".concat(e.id()),L={};return r.isInPlaceEditingActive()||(L.htmlFor=n),i.createElement("div",{className:"form-check mb-3"},i.createElement("input",{className:"form-check-input",id:n,type:"checkbox",name:(0,o.T)(e),required:e.get("required")}),i.createElement(r.ContentTag,s({className:"form-check-label",content:e,attribute:"label",tag:"label"},L)),e.get("required")&&i.createElement(u.Q,null),e.get("helpText")&&i.createElement(a.R,{widget:e}))}))},8221:(t,e,n)=>{"use strict";n.r(e);var i=n(8610),r=n(2909),o=n(5980),u=n(3735),a=n(7582);i.provideEditingConfig("FormCheckboxWidget",{title:"Neoletter Form Checkbox",thumbnail:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJFYmVuZV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAxNTAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxNTAgMTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0MHtmaWxsOiNhYWF9LnN0MntmaWxsOiNmZmZ9PC9zdHlsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDguNyA1OC45djEzLjloLTE0VjU4LjloMTRtMi0yaC0xOHYxNy45aDE4VjU2Ljl6TTYxLjYgNjcuM2wxLjcuNWMtLjMuOS0uNyAxLjYtMS4zIDIuMXMtMS40LjctMi4zLjdjLTEuMSAwLTIuMS0uNC0yLjgtMS4ycy0xLjEtMS44LTEuMS0zLjJjMC0xLjQuNC0yLjUgMS4xLTMuM3MxLjctMS4yIDIuOS0xLjJjMS4xIDAgMS45LjMgMi42LjkuNC40LjcuOS45IDEuNmwtMS43LjRjLS4xLS40LS4zLS44LS42LTEuMXMtLjctLjQtMS4yLS40Yy0uNiAwLTEuMi4yLTEuNS43LS40LjUtLjYgMS4yLS42IDIuMiAwIDEuMS4yIDEuOS42IDIuM3MuOS43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2MS42aDIuOXYxLjJoLTIuOXYyLjloLTEuNHpNNDYuNyAzMy4xYzAtLjcuMS0xLjMuMy0xLjguMi0uNC40LS43LjYtLjkuMy0uMy42LS41LjktLjYuNC0uMi45LS4zIDEuNS0uMyAxIDAgMS44LjMgMi40LjlzLjkgMS41LjkgMi42LS4zIDItLjkgMi42Yy0uNi42LTEuNC45LTIuNC45cy0xLjgtLjMtMi41LS45LS44LTEuNC0uOC0yLjV6bTEuNC0uMWMwIC44LjIgMS40LjUgMS44LjQuNC44LjYgMS40LjYuNiAwIDEtLjIgMS40LS42LjQtLjQuNS0xIC41LTEuOHMtLjItMS40LS41LTEuOGMtLjMtLjQtLjgtLjYtMS40LS42LS42IDAtMSAuMi0xLjQuNi0uMy40LS41IDEtLjUgMS44ek01NC41IDM2LjV2LTYuOWgyLjljLjcgMCAxLjMuMSAxLjYuMi4zLjEuNi4zLjguNy4yLjMuMy43LjMgMS4xIDAgLjUtLjIuOS0uNSAxLjMtLjMuMy0uOC42LTEuNC42LjMuMi42LjQuNy42LjIuMi41LjYuOCAxLjFsLjggMS4zSDU5TDU4IDM1Yy0uNC0uNS0uNi0uOS0uNy0xLS4xLS4xLS4zLS4yLS40LS4zLS4xLS4xLS40LS4xLS43LS4xaC0uM3YyLjloLTEuNHptMS4zLTRoMWMuNyAwIDEuMSAwIDEuMy0uMS4yLS4xLjMtLjIuNC0uMy4xLS4xLjEtLjMuMS0uNXMtLjEtLjQtLjItLjZjLS4xLS4xLS4zLS4yLS41LS4zaC0yLjF2MS44ek02MS40IDM2LjV2LTYuOWgyLjFsMS4zIDQuNyAxLjItNC43aDIuMXY2LjloLTEuM1YzMWwtMS40IDUuNGgtMS4zTDYyLjcgMzF2NS40aC0xLjN6Ii8+PC9zdmc+",attributes:{required:{title:"Mandatory"},type:{title:"Input type",values:[{value:"accept_terms",title:"Accept terms"},{value:"subscription",title:"Subscription"},{value:"custom",title:"Custom"}]},customFieldName:{title:"Field name"},helpText:{title:"Help text"}},properties:function(t){return(0,r.I)(t)?["type","customFieldName","label","required","helpText"]:["type","label","required","helpText"]},initialContent:{type:"custom",customFieldName:"custom_checkbox",label:"Please send me your free printed product catalog."},validations:[a.c,u.d,o.r]})},903:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormConditionWidget:()=>i});var i=n(8610).provideWidgetClass("FormConditionWidget",{onlyInside:"FormConditionalContainerWidget",attributes:{title:"string",content:"widgetlist"}})},2869:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610),o=n(7422);r.provideComponent("FormConditionWidget",(function(t){var e=t.widget,n=t.getData;return(n?n(e.id()):{isActive:!1}).isActive||r.isInPlaceEditingActive()?e.get("content").length?i.createElement(i.Fragment,null,r.isInPlaceEditingActive()&&i.createElement("span",{className:"condition-info"},"Condition: "+e.get("title")),e.get("content")&&e.get("content").length>0&&i.createElement(r.ContentTag,{content:e,attribute:"content",className:r.isInPlaceEditingActive()?"conditional-content":""})):i.createElement(o.f,{center:!0},"Select widgets in the widget properties."):null}))},2988:(t,e,n)=>{"use strict";n.r(e),n(8610).provideEditingConfig("FormConditionWidget",{title:"Neoletter Form Condition",titleForContent:function(t){return"Condition: "+t.get("title")},thumbnail:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjguMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkViZW5lXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxNTAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ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00LjdoMi4xdjYuOWgtMS4zVjMxbC0xLjQsNS40aC0xLjNMNjIuNywzMXY1LjRINjEuNHoiLz4KCTwvZz4KPC9nPgo8Zz4KCTxnPgoJCTxwb2x5bGluZSBjbGFzcz0ic3QyIiBwb2ludHM9IjYwLjEsNjYuOSA2MC4xLDYwLjYgODkuOSw2MC42IDg5LjksNjYuOSAJCSIvPgoJCTxsaW5lIGNsYXNzPSJzdDIiIHgxPSI3NSIgeTE9IjYwLjMiIHgyPSI3NSIgeTI9IjU0Ii8+Cgk8L2c+Cgk8Y2lyY2xlIGNsYXNzPSJzdDIiIGN4PSI3NSIgY3k9IjQ5LjkiIHI9IjQuMSIvPgoJPGNpcmNsZSBjbGFzcz0ic3QyIiBjeD0iODkuOSIgY3k9IjcxIiByPSI0LjEiLz4KCTxjaXJjbGUgY2xhc3M9InN0MiIgY3g9IjYwLjEiIGN5PSI3MSIgcj0iNC4xIi8+CjwvZz4KPC9zdmc+Cg==",attributes:{title:{title:"Title"},content:{title:"Content"}},properties:["title","content"]})},8880:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormConditionalContainerWidget:()=>i});var i=n(8610).provideWidgetClass("FormConditionalContainerWidget",{attributes:{headerType:["enum",{values:["dropdown","radio"]}],title:"string",customFieldName:"string",conditions:["widgetlist",{only:"FormConditionWidget"}],required:"boolean",helpText:"html"}})},9104:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610),o=n(7225),u=n(690),a=n(4134),s=n(2360),L=r.connect((function(t){var e=t.widget,n=t.onChangeSelected;return i.createElement("div",{className:"mb-3 select-container ".concat(r.isInPlaceEditingActive()?"condition-wrapper":"")},i.createElement("div",{className:"select-title"},i.createElement("span",{className:"text-super"},e.get("title")),e.get("required")&&i.createElement(a.Q,null),e.get("helpText")&&i.createElement(s.R,{widget:e})),i.createElement("div",{className:"row "},e.get("conditions").map((function(t,r){return i.createElement(u.Q,{selectionType:"radio",name:(0,o.T)(e),onChange:n,value:t.get("title"),id:t.id(),required:e.get("required"),key:r})}))))})),M=n(9465),l=r.connect((function(t){var e=t.widget,n=t.onChangeSelected;return i.createElement("div",{className:"mb-3 dropdown-container ".concat(r.isInPlaceEditingActive()?"condition-wrapper":"")},i.createElement("div",{className:"select-title"},i.createElement("span",{className:"text-super"},e.get("title")),e.get("required")&&i.createElement(a.Q,null),e.get("helpText")&&i.createElement(s.R,{widget:e})),i.createElement("select",{name:(0,o.T)(e),id:e.id(),required:e.get("required"),onChange:n},i.createElement(c,null),e.get("conditions").map((function(t,e){return i.createElement(M.Q,{value:t.get("title"),id:t.id(),key:e})}))))})),c=function(){return i.createElement(M.Q,{value:"",id:"empty-option",key:"empty-option"})},j=function(t){var e=t.widget,n=t.onChangeSelected,o="dropdown"==e.get("headerType");return i.createElement(i.Fragment,null,r.isInPlaceEditingActive()&&i.createElement("span",{className:"header-info"},"Conditional Header"),o?i.createElement(l,{widget:e,onChangeSelected:n}):i.createElement(L,{widget:e,onChangeSelected:n}))};function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}r.provideComponent("FormConditionalContainerWidget",(function(t){var e,n,o=t.widget,u=(e=i.useState(""),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,u,a=[],s=!0,L=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);s=!0);}catch(t){L=!0,r=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(L)throw r}}return a}}(e,n)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(e,n)||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.")}()),a=u[0],s=u[1],L="dropdown"==o.get("headerType");return i.createElement(i.Fragment,null,i.createElement(j,{widget:o,onChangeSelected:function(t){var e=L?t.target.options[t.target.selectedIndex].id:t.target.id;s(e)}}),i.createElement(r.ContentTag,{content:o,attribute:"conditions",widgetProps:{getData:function(t){var e=o.get("conditions"),n=!1;return e.some((function(e){if(e.id()==t)return n=a==t,!0})),{isActive:n}}}}))}))},974:(t,e,n)=>{"use strict";n.r(e);var i=n(8610),r=n(903),o=n(5715),u=n(3403),a=n(8335),s=n(5980),L=n(7582),M=n(9512);i.provideEditingConfig("FormConditionalContainerWidget",{title:"Neoletter Form Conditional Container",titleForContent:function(t){return"Container for: "+t.get("title")},thumbnail:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjguMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkViZW5lXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxNTAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxNTAgMTAwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6I0FBQUFBQTt9Cgkuc3Qxe2ZpbGw6I0ZGRkZGRjt9Cgkuc3Qye2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ydjVoMlY2OC4xTDM1LjQsNjguMXogTTM4LDczLjRoLTQuN3YxLjdsMCwwdi0xLjd2MS43bDAsMHYwLjNoMmwwLDBsMCwwbDAsMGwwLDBjMS4zLDAsMi43LDAsMi43LDBWNzMuNAoJCUwzOCw3My40eiBNNDUsNzMuNGgtNXYyaDVWNzMuNEw0NSw3My40eiBNNTIsNzMuNGgtNXYyaDVWNzMuNEw1Miw3My40eiBNNTksNzMuNGgtNXYyaDVWNzMuNEw1OSw3My40eiBNNjYsNzMuNGgtNXYyaDVWNzMuNAoJCUw2Niw3My40eiBNNzMsNzMuNGgtNXYyaDVWNzMuNEw3Myw3My40eiBNODAsNzMuNGgtNXYyaDVWNzMuNEw4MCw3My40eiBNODcsNzMuNGgtNXYyaDVWNzMuNEw4Nyw3My40eiBNOTQsNzMuNGgtNXYyaDVWNzMuNAoJCUw5NCw3My40eiBNMTAxLDczLjRoLTV2Mmg1VjczLjRMMTAxLDczLjR6IE0xMDgsNzMuNGgtNXYyaDVWNzMuNEwxMDgsNzMuNHogTTExNS4xLDY4LjVoLTJ2NC45SDExMHYyaDV2LTEuOWgwLjFWNjguNUwxMTUuMSw2OC41egoJCSBNMTE1LjEsNjEuNWgtMnY1aDJWNjEuNUwxMTUuMSw2MS41eiBNMTE1LjEsNTQuNWgtMnY1aDJWNTQuNUwxMTUuMSw1NC41eiBNMTE1LjEsNDcuNWgtMnY1aDJWNDcuNUwxMTUuMSw0Ny41eiBNMTE1LjEsNDQuOGgtNXYyCgkJaDVWNDQuOEwxMTUuMSw0NC44eiIvPgo8L2c+Cjwvc3ZnPgo=",attributes:{headerType:{title:"Input type",values:[{value:"radio",title:"Radio buttons"},{value:"dropdown",title:"Dropdown"}]},title:{title:"Label"},customFieldName:{title:"Field name"},required:{title:"Mandatory"},helpText:{title:"Help text"},conditions:{title:"Conditions"}},properties:["headerType","title","conditions","customFieldName","required","helpText"],initialContent:{headerType:"radio",title:"Select the reason for your request",customFieldName:"custom_request_reason",conditions:[new r.FormConditionWidget({title:"Report an issue",content:[new u.FormSelectWidget({title:"Missing parts",customFieldName:"custom_missing_parts",items:["Device","Device cover","Mounting material","Cables","Installation guide"],selectionType:"multi"}),new o.FormInputFieldWidget({label:"Defective parts",type:"custom",customType:"multi_line",customFieldName:"custom_defective_oarts",placeholder:""}),new a.FormDateWidget({title:"Late delivery",customFieldName:"custom_late_delivery",dateType:"date"})]}),new r.FormConditionWidget({title:"Give feedback",content:[new M.FormRatingWidget({title:"Rate your customer experience",customFieldName:"custom_customer_rating"}),new o.FormInputFieldWidget({label:"Send us a message",type:"custom",customType:"multi_line",customFieldName:"custom_customer_message",placeholder:""})]})]},validations:[L.c,s.r]})},8335:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormDateWidget:()=>i});var i=n(8610).provideWidgetClass("FormDateWidget",{attributes:{title:"string",helpText:"html",required:"boolean",customFieldName:"string",dateType:["enum",{values:["date","datetime-local"]}]}})},5465:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610),o=n(7225),u=n(2360),a=n(4134);function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}r.provideComponent("FormDateWidget",(function(t){var e,n,r=t.widget,L=(e=i.useState(""),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,u,a=[],s=!0,L=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);s=!0);}catch(t){L=!0,r=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(L)throw r}}return a}}(e,n)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(e,n)||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.")}()),M=L[0],l=L[1];return i.createElement("div",{className:"form-date mb-3"},i.createElement("div",{className:"date-title"},i.createElement("span",{className:"text-super"},r.get("title")),r.get("required")&&i.createElement(a.Q,null),r.get("helpText")&&i.createElement(u.R,{widget:r})),i.createElement("input",{onChange:function(t){var e=new Date(t.target.value);l(e.toISOString())},className:"datepicker",type:r.get("dateType"),required:r.get("required")}),i.createElement("input",{type:"hidden",className:"show-in-review",name:(0,o.T)(r),value:M}))}))},9793:(t,e,n)=>{"use strict";n.r(e);var i=n(8610),r=n(5980),o=n(7582);i.provideEditingConfig("FormDateWidget",{title:"Neoletter Form Date",thumbnail:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjguMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkViZW5lXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxNTAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxNTAgMTAwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6I0FBQUFBQTt9Cgkuc3Qxe2ZpbGw6I0ZGRkZGRjt9Cgkuc3Qye2ZpbGw6b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1LjciLz4KCTxnPgoJCTxyZWN0IHg9IjcwLjQiIHk9IjYwLjMiIGNsYXNzPSJzdDAiIHdpZHRoPSIzLjUiIGhlaWdodD0iMy41Ii8+CgkJPHJlY3QgeD0iNzYuMSIgeT0iNjAuMyIgY2xhc3M9InN0MCIgd2lkdGg9IjMuNSIgaGVpZ2h0PSIzLjUiLz4KCQk8cmVjdCB4PSI4MS45IiB5PSI2MC4zIiBjbGFzcz0ic3QwIiB3aWR0aD0iMy41IiBoZWlnaHQ9IjMuNSIvPgoJCTxyZWN0IHg9IjY0LjYiIHk9IjY1LjkiIGNsYXNzPSJzdDAiIHdpZHRoPSIzLjUiIGhlaWdodD0iMy41Ii8+CgkJPHJlY3QgeD0iNzAuNCIgeT0iNjUuOSIgY2xhc3M9InN0MCIgd2lkdGg9IjMuNSIgaGVpZ2h0PSIzLjUiLz4KCQk8cmVjdCB4PSI3Ni4xIiB5PSI2NS45IiBjbGFzcz0ic3QwIiB3aWR0aD0iMy41IiBoZWlnaHQ9IjMuNSIvPgoJCTxyZWN0IHg9IjgxLjkiIHk9IjY1LjkiIGNsYXNzPSJzdDAiIHdpZHRoPSIzLjUiIGhlaWdodD0iMy41Ii8+Cgk8L2c+Cgk8Zz4KCQk8cmVjdCB4PSI2NC40IiB5PSI0NS4zIiBjbGFzcz0ic3QwIiB3aWR0aD0iMi4yIiBoZWlnaHQ9IjQiLz4KCQk8cmVjdCB4PSI4My40IiB5PSI0NS4zIiBjbGFzcz0ic3QwIiB3aWR0aD0iMi4yIiBoZWlnaHQ9IjQiLz4KCTwvZz4KCTxyZWN0IHg9IjYwLjUiIHk9IjQ5LjgiIGNsYXNzPSJzdDAiIHdpZHRoPSIyOSIgaGVpZ2h0PSI2Ii8+CjwvZz4KPC9zdmc+Cg==",attributes:{title:{title:"Label"},dateType:{title:"Format",values:[{value:"date",title:"Date"},{value:"datetime-local",title:"Date and time"}]},customFieldName:{title:"Field name"},helpText:{title:"Help text"},required:{title:"Mandatory"}},properties:["title","dateType","customFieldName","required","helpText"],initialContent:{title:"Please enter a date",customFieldName:"custom_",dateType:"date"},validations:[o.c,r.r]})},817:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormHiddenFieldWidget:()=>i});var i=n(8610).provideWidgetClass("FormHiddenFieldWidget",{onlyInside:["FormStepContainerWidget","FormStepWidget","FormContainerWidget"],attributes:{customFieldName:"string",hiddenValue:"string"}})},438:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610),o=n(7225);r.provideComponent("FormHiddenFieldWidget",(function(t){var e=t.widget,n=(0,o.T)(e);return n?i.createElement("input",{type:"hidden",name:n,value:e.get("hiddenValue")}):null}))},5071:(t,e,n)=>{"use strict";n.r(e);var i=n(8610),r=n(5980),o=n(3519);i.provideEditingConfig("FormHiddenFieldWidget",{title:"Neoletter Hidden Form Field",thumbnail:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJFYmVuZV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAxNTAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxNTAgMTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0MHtmaWxsOiNhYWF9LnN0MXtmaWxsOiNmZmZ9PC9zdHlsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE1LjcgNTAuMXYyMi42SDM0LjNWNTAuMWg4MS40bTItMkgzMi4zdjI2LjZoODUuNFY0OC4xek0xMTguOSAxNi4zaC01djJoNXYtMnptLTcgMGgtNXYyaDV2LTJ6bS03IDBoLTV2Mmg1di0yem0tNyAwaC01djJoNXYtMnptLTcgMGgtNXYyaDV2LTJ6bS03IDBoLTV2Mmg1di0yem0tNyAwaC01djJoNXYtMnptLTcgMGgtNXYyaDV2LTJ6bS03IDBoLTV2Mmg1di0yem0tNyAwaC01djJoNXYtM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yLjQtLjgtMy43LS44LS41IDAtMSAwLTEuNS4xLS40LjEtLjgtLjItLjktLjctLjEtLjQuMi0uOC43LS45LjYtLjEgMS4yLS4xIDEuOC0uMSAxLjYgMCAzIC4zIDQuNCAxIDEuMS41IDIuMSAxLjIgMyAyLjEgMS41IDEuNSAyLjIgMyAyLjIgMy4xLjEuMi4xLjQgMCAuNiAwIC4xLS44IDEuOS0yLjcgMy41LS4yLjItLjQuMi0uNi4yeiIvPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik03Ny4yIDYyLjNjLS40IDAtLjctLjMtLjgtLjcgMC0uNS0uMy0xLS42LTEuNC0uMy0uNC0uOC0uNi0xLjMtLjctLjQtLjEtLjctLjUtLjYtLjkuMS0uNC41LS43LjktLjYuNC4xLjguMiAxLjIuNC40LjIuNy41IDEgLjhzLjUuNy43IDFjLjIuNC4zLjguMyAxLjIgMCAuNC0uMy44LS44Ljl6Ii8+PC9zdmc+",attributes:{customFieldName:{title:"Field name"},hiddenValue:{title:"Hidden value",description:"This value is sent on every submission of the form."}},properties:["customFieldName","hiddenValue"],initialContent:{customFieldName:"custom_hidden_field"},validations:[r.r,function(t){var e;if(null===(e=(0,o.$)(t))||void 0===e||!e.get("hiddenFields").map((function(t){return t.id()})).includes(t.id()))return{message:"Hidden fields should be added in the properties of the form.",severity:"info"}}],titleForContent:function(t){return"Hidden Form Field: ".concat([t.get("customFieldName"),t.get("hiddenValue")].filter((function(t){return t})).join(" - "))}})},5715:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormInputFieldWidget:()=>i});var i=n(8610).provideWidgetClass("FormInputFieldWidget",{attributes:{label:"string",placeholder:"string",required:"boolean",helpText:"html",type:["enum",{values:["email","name","given_name","family_name","middle_name","company","phone_number","custom"]}],customType:["enum",{values:["single_line","multi_line"]}],customFieldName:"string"}})},696:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610),o=n(7225),u=n(2909),a=n(4134),s=n(2360);function L(){return L=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},L.apply(this,arguments)}function M(t){switch(t){case"phone_number":return"50";case"email":return"120";default:return"250"}}r.provideComponent("FormInputFieldWidget",(function(t){var e,n=t.widget,l="form_text_input_widget_".concat(n.id()),c=(0,o.T)(n),j={};return r.isInPlaceEditingActive()||(j.htmlFor=l),i.createElement("div",{className:"mb-3"},i.createElement(r.ContentTag,L({content:n,attribute:"label",tag:"label",className:"form-label"},j)),n.get("required")&&i.createElement(a.Q,null),n.get("helpText")&&i.createElement(s.R,{widget:n}),(0,u.I)(n)&&"multi_line"===n.get("customType")?i.createElement("textarea",{className:"form-control",id:l,rows:"3",name:c,placeholder:n.get("placeholder"),required:n.get("required")}):i.createElement("input",{className:"form-control",id:l,name:c,maxLength:M(c),placeholder:n.get("placeholder"),type:(e=c,"email"===e?"email":"phone_number"===e?"tel":"text"),required:n.get("required")}))}))},440:(t,e,n)=>{"use strict";n.r(e);var i=n(8610),r=n(2909),o=n(5980),u=n(3735),a=n(7582);i.provideEditingConfig("FormInputFieldWidget",{title:"Neoletter Form Input Field",thumbnail:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJFYmVuZV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAxNTAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxNTAgMTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0MHtmaWxsOiNhYWF9LnN0MXtmaWxsOiNmZmZ9PC9zdHlsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE1LjcgNTguOXYxMy45SDM0LjNWNTguOWg4MS40bTItMkgzMi4zdjE3LjloODUuNFY1Ni45eiIvPjxwYXRoIGNsYXNzPSJzdDA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S41LjkgMi42LS4zIDItLjkgMi42Yy0uNi42LTEuNC45LTIuNC45cy0xLjgtLjMtMi41LS45LS44LTEuNC0uOC0yLjV6bTEuNC0uMWMwIC44LjIgMS40LjUgMS44LjQuNC44LjYgMS40LjYuNiAwIDEtLjIgMS40LS42LjQtLjQuNS0xIC41LTEuOHMtLjItMS40LS41LTEuOGMtLjMtLjQtLjgtLjYtMS40LS42LS42IDAtMSAuMi0xLjQuNi0uMy40LS41IDEtLjUgMS44ek01NC41IDM2LjV2LTYuOWgyLjljLjcgMCAxLjMuMSAxLjYuMi4zLjEuNi4zLjguNy4yLjMuMy43LjMgMS4xIDAgLjUtLjIuOS0uNSAxLjMtLjMuMy0uOC42LTEuNC42LjMuMi42LjQuNy42LjIuMi41LjYuOCAxLjFsLjggMS4zSDU5TDU4IDM1Yy0uNC0uNS0uNi0uOS0uNy0xLS4xLS4xLS4zLS4yLS40LS4zLS4xLS4xLS40LS4xLS43LS4xaC0uM3YyLjloLTEuNHptMS4zLTRoMWMuNyAwIDEuMSAwIDEuMy0uMS4yLS4xLjMtLjIuNC0uMy4xLS4xLjEtLjMuMS0uNXMtLjEtLjQtLjItLjZjLS4xLS4xLS4zLS4yLS41LS4zaC0yLjF2MS44ek02MS40IDM2LjV2LTYuOWgyLjFsMS4zIDQuNyAxLjItNC43aDIuMXY2LjloLTEuM1YzMWwtMS40IDUuNGgtMS4zTDYyLjcgMzF2NS40aC0xLjN6Ii8+PC9zdmc+",attributes:{required:{title:"Mandatory"},type:{title:"Input type",values:[{value:"name",title:"Name"},{value:"given_name",title:"Given name"},{value:"middle_name",title:"Middle name"},{value:"family_name",title:"Family name"},{value:"email",title:"Email"},{value:"phone_number",title:"Phone number"},{value:"company",title:"Company"},{value:"custom",title:"Custom"}]},customType:{title:"Custom input type",values:[{value:"single_line",title:"Single-line"},{value:"multi_line",title:"Multi-line"}]},customFieldName:{title:"Field name"},helpText:{title:"Help text"}},initialContent:{label:"Custom field",placeholder:"Your custom field",type:"custom",customType:"single_line",customFieldName:"custom_field_name"},properties:function(t){return"custom"===t.get("type")?["type","customType","customFieldName","label","placeholder","required","helpText"]:["type","label","placeholder","required","helpText"]},validations:[a.c,u.d,["customType",function(t,e){var n=e.widget;if((0,r.I)(n)&&!t)return"Select the custom input type."}],o.r]})},9512:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormRatingWidget:()=>i});var i=n(8610).provideWidgetClass("FormRatingWidget",{attributes:{title:"string",helpText:"html",customFieldName:"string"}})},5209:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610),o=function(t){var e=t.selected,n=void 0!==e&&e,r=t.color,o=t.onSelect;return i.createElement("i",{className:"fa fa-star fa-lg",style:{color:n?r:"grey"},onClick:o})},u=n(7225),a=n(2360);function s(t,e){if(t){if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}r.provideComponent("FormRatingWidget",(function(t){var e,n,r=t.widget,L=(e=i.useState(0),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,u,a=[],s=!0,L=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);s=!0);}catch(t){L=!0,r=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(L)throw r}}return a}}(e,n)||s(e,n)||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.")}()),l=L[0],c=L[1];return i.createElement("div",{className:"form-rating mb-3"},i.createElement("div",{className:"rating-title"},i.createElement("span",{className:"text-super"},r.get("title")),r.get("helpText")&&i.createElement(a.R,{widget:r})),M(5).map((function(t,e){return i.createElement(o,{key:e,color:"gold",selected:l>e,onSelect:function(){return c(e+1)}})})),i.createElement("input",{type:"hidden",className:"show-in-review",name:(0,u.T)(r),value:0==l?"":l}))}));var M=function(t){return function(t){if(Array.isArray(t))return L(t)}(e=Array(t))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||s(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.")}();var e}},4959:(t,e,n)=>{"use strict";n.r(e);var i=n(8610),r=n(5980),o=n(7582);i.provideEditingConfig("FormRatingWidget",{title:"Neoletter Form Rating",thumbnail:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjguMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkViZW5lXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxNTAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxNTAgMTAwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6I0FBQUFBQTt9Cgkuc3Qxe2ZpbGw6I0ZGRkZGRjt9Cgkuc3Qye2Z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KCTwvZz4KPC9nPgo8Zz4KCTxwb2x5Z29uIGNsYXNzPSJzdDIiIHBvaW50cz0iNDAuMSw2MC41IDQyLDY0LjUgNDYuNCw2NS4xIDQzLjIsNjguMiA0NCw3Mi41IDQwLjEsNzAuNSAzNi4yLDcyLjUgMzYuOSw2OC4yIDMzLjgsNjUuMSAzOC4xLDY0LjUgCQoJCSIvPgoJPHBvbHlnb24gY2xhc3M9InN0MiIgcG9pbnRzPSI1Ny41LDYwLjUgNTkuNSw2NC41IDYzLjksNjUuMSA2MC43LDY4LjIgNjEuNCw3Mi41IDU3LjUsNzAuNSA1My42LDcyLjUgNTQuNCw2OC4yIDUxLjIsNjUuMSAKCQk1NS42LDY0LjUgCSIvPgoJPHBvbHlnb24gY2xhc3M9InN0MiIgcG9pbnRzPSI3NSw2MC41IDc3LDY0LjUgODEuMyw2NS4xIDc4LjIsNjguMiA3OC45LDcyLjUgNzUsNzAuNSA3MS4xLDcyLjUgNzEuOCw2OC4yIDY4LjcsNjUuMSA3Myw2NC41IAkiLz4KCTxwb2x5Z29uIGNsYXNzPSJzdDMiIHBvaW50cz0iOTIuNSw2MC41IDk0LjQsNjQuNSA5OC44LDY1LjEgOTUuNiw2OC4yIDk2LjQsNzIuNSA5Mi41LDcwLjUgODguNiw3Mi41IDg5LjMsNjguMiA4Ni4xLDY1LjEgCgkJOTAuNSw2NC41IAkiLz4KCTxwb2x5Z29uIGNsYXNzPSJzdDMiIHBvaW50cz0iMTA5LjksNjAuNSAxMTEuOSw2NC41IDExNi4yLDY1LjEgMTEzLjEsNjguMiAxMTMuOCw3Mi41IDEwOS45LDcwLjUgMTA2LDcyLjUgMTA2LjgsNjguMiAxMDMuNiw2NS4xIAoJCTEwOCw2NC41IAkiLz4KPC9nPgo8L3N2Zz4K",attributes:{title:{title:"Label"},customFieldName:{title:"Field name"},helpText:{title:"Help text"}},properties:["title","customFieldName","helpText"],initialContent:{title:"Please leave your rating",customFieldName:"custom_"},validations:[o.c,r.r]})},3403:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormSelectWidget:()=>i});var i=n(8610).provideWidgetClass("FormSelectWidget",{attributes:{selectionType:["enum",{values:["radio","dropdown","multi"]}],title:"string",items:"stringlist",customFieldName:"string",required:"boolean",helpText:"html"}})},8920:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610),o=n(7422),u=n(7225),a=n(690),s=n(4134),L=n(2360),M=n(9465),l=function(t){var e=t.options,n=t.name,r=t.id,o=t.required;return i.createElement("select",{className:"dropdown-select",name:n,id:r,required:o},i.createElement(M.Q,{value:"",id:"empty-option",key:"empty-option"}),e.map((function(t,e){return i.createElement(M.Q,{value:t,id:e,key:e})})))};r.provideComponent("FormSelectWidget",(function(t){var e=t.widget,n=e.get("items"),r="multi"==e.get("selectionType"),M="dropdown"==e.get("selectionType");return n.length?i.createElement("div",{className:"select-container mb-3"},i.createElement("div",{className:"select-title"},i.createElement("span",{className:"text-super"}," ",e.get("title")," "),!r&&e.get("required")&&i.createElement(s.Q,null),e.get("helpText")&&i.createElement(L.R,{widget:e})),M?i.createElement(l,{id:e.id(),name:(0,u.T)(e),options:n,required:e.get("required")}):i.createElement(a.P,{isMultiSelect:r,items:e.get("items"),required:e.get("required"),name:(0,u.T)(e)})):i.createElement(o.f,{center:!0},"Add items in the widget properties.")}))},7319:(t,e,n)=>{"use strict";n.r(e);var i=n(8610),r=n(5980),o=n(7582);i.provideEditingConfig("FormSelectWidget",{title:"Neoletter Form Select",thumbnail:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjguMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkViZW5lXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8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44aDEKCQl2MS4yaC0xdjMuNGMwLDAuMywwLDAuNCwwLjEsMC41czAuMywwLjEsMC42LDAuMWMwLjEsMCwwLjEsMCwwLjIsMFM3MS43LDY5LjQsNzEuOCw2OS40eiIvPgo8L2c+Cjwvc3ZnPgo=",attributes:{selectionType:{title:"Input type",values:[{value:"radio",title:"Radio buttons"},{value:"dropdown",title:"Dropdown"},{value:"multi",title:"Checkboxes"}]},items:{title:"Items"},title:{title:"Label"},customFieldName:{title:"Field name"},required:{title:"Mandatory"},helpText:{title:"Help text"}},properties:function(t){return["selectionType","title","items","customFieldName",["required",{enabled:"multi"!==t.get("selectionType")}],"helpText"]},initialContent:{selectionType:"radio",title:"Please choose",items:["Yes","No"],customFieldName:"custom_"},validations:[o.c,["items",function(t){if(t.length<2)return{message:"The widget must include at least two items.",severity:"error"}}],r.r]})},4653:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormStepContainerWidget:()=>i});var i=n(8610).provideWidgetClass("FormStepContainerWidget",{attributes:{formId:"string",failedMessage:"string",submittedMessage:"string",submittingMessage:"string",hiddenFields:["widgetlist",{only:"FormHiddenFieldWidget"}],formType:["enum",{values:["single-step","multi-step"]}],steps:["widgetlist",{only:"FormStepWidget"}],forwardButtonText:"string",backwardButtonText:"string",submitButtonText:"string",showBorder:"boolean",showReview:"boolean",includeEmptyAnswers:"boolean",showStepsInReview:"boolean",showReviewHeader:"boolean",showReviewFooter:"boolean",reviewButtonText:"string",reviewHeaderTitle:"string",reviewCloseButtonText:"string",singleSubmitButtonAlignment:["enum",{values:["left","text-center","text-end","block"]}]},extractTextAttributes:["steps"]})},1046:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n.n(i),o=n(8610),u=n(609),a=n(42),s=n.n(a),L=n(4246);const M=["as","disabled"];function l({tagName:t,disabled:e,href:n,target:i,rel:r,role:o,onClick:u,tabIndex:a=0,type:s}){t||(t=null!=n||null!=i||null!=r?"a":"button");const L={tagName:t};if("button"===t)return[{type:s||"button",disabled:e},L];const M=i=>{(e||"a"===t&&function(t){return!t||"#"===t.trim()}(n))&&i.preventDefault(),e?i.stopPropagation():null==u||u(i)};return"a"===t&&(n||(n="#"),e&&(n=void 0)),[{role:null!=o?o:"button",disabled:void 0,tabIndex:e?void 0:a,href:n,target:"a"===t?i:void 0,"aria-disabled":e||void 0,rel:"a"===t?r:void 0,onClick:M,onKeyDown:t=>{" "===t.key&&(t.preventDefault(),M(t))}},L]}i.forwardRef(((t,e)=>{let{as:n,disabled:i}=t,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,M);const[o,{tagName:u}]=l(Object.assign({tagName:n,disabled:i},r));return(0,L.jsx)(u,Object.assign({},r,o,{ref:e}))})).displayName="Button";const c=i.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:j,Provider:d}=c;function N(t,e){const{prefixes:n}=(0,i.useContext)(c);return t||n[e]||e}const g=i.forwardRef((({as:t,bsPrefix:e,variant:n="primary",size:i,active:r=!1,disabled:o=!1,className:u,...a},M)=>{const c=N(e,"btn"),[j,{tagName:d}]=l({tagName:t,disabled:o,...a}),g=d;return(0,L.jsx)(g,{...j,...a,ref:M,disabled:o,className:s()(u,c,r&&"active",n&&`${c}-${n}`,i&&`${c}-${i}`,a.href&&o&&"disabled")})}));g.displayName="Button";const y=g,w=!("undefined"==typeof window||!window.document||!window.document.createElement);var C=!1,S=!1;try{var m={get passive(){return C=!0},get once(){return S=C=!0}};w&&(window.addEventListener("test",m,m),window.removeEventListener("test",m,!0))}catch(t){}const T=function(t,e,n,i){if(i&&"boolean"!=typeof i&&!S){var r=i.once,o=i.capture,u=n;!S&&r&&(u=n.__once||function t(i){this.removeEventListener(e,t,o),n.call(this,i)},n.__once=u),t.addEventListener(e,u,C?i:o)}t.addEventListener(e,n,i)};function D(t){return t&&t.ownerDocument||document}const f=function(t,e,n,i){var r=i&&"boolean"!=typeof i?i.capture:i;t.removeEventListener(e,n,r),n.__once&&t.removeEventListener(e,n.__once,r)};var x;function I(t){if((!x&&0!==x||t)&&w){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),x=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return x}const E=function(t){const e=(0,i.useRef)(t);return(0,i.useEffect)((()=>{e.current=t}),[t]),e};function p(t){const e=E(t);return(0,i.useCallback)((function(...t){return e.current&&e.current(...t)}),[e])}const h=t=>t&&"function"!=typeof t?e=>{t.current=e}:t,v=function(t,e){return(0,i.useMemo)((()=>function(t,e){const n=h(t),i=h(e);return t=>{n&&n(t),i&&i(t)}}(t,e)),[t,e])};function b(t){const e=function(t){const e=(0,i.useRef)(t);return e.current=t,e}(t);(0,i.useEffect)((()=>()=>e.current()),[])}var Y=/([A-Z])/g,A=/^ms-/;function z(t){return function(t){return t.replace(Y,"-$1").toLowerCase()}(t).replace(A,"-ms-")}var O=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const k=function(t,e){var n="",i="";if("string"==typeof e)return t.style.getPropertyValue(z(e))||function(t,e){return function(t){var e=D(t);return e&&e.defaultView||window}(t).getComputedStyle(t,e)}(t).getPropertyValue(z(e));Object.keys(e).forEach((function(r){var o=e[r];o||0===o?function(t){return!(!t||!O.test(t))}(r)?i+=r+"("+o+") ":n+=z(r)+": "+o+";":t.style.removeProperty(z(r))})),i&&(n+="transform: "+i+";"),t.style.cssText+=";"+n},V=function(t,e,n,i){return T(t,e,n,i),function(){f(t,e,n,i)}};function J(t,e,n,i){var r,o;null==n&&(o=-1===(r=k(t,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(r)*o||0);var u=function(t,e,n){void 0===n&&(n=5);var i=!1,r=setTimeout((function(){i||function(t,e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!0),t){var r=document.createEvent("HTMLEvents");r.initEvent("transitionend",n,i),t.dispatchEvent(r)}}(t,0,!0)}),e+n),o=V(t,"transitionend",(function(){i=!0}),{once:!0});return function(){clearTimeout(r),o()}}(t,n,i),a=V(t,"transitionend",e);return function(){u(),a()}}function Q(t){void 0===t&&(t=D());try{var e=t.activeElement;return e&&e.nodeName?e:null}catch(e){return t.body}}function F(t,e){return t.contains?t.contains(e):t.compareDocumentPosition?t===e||!!(16&t.compareDocumentPosition(e)):void 0}var W=n(7111),B=n.n(W);const Z="data-rr-ui-modal-open",U=class{constructor({ownerDocument:t,handleContainerOverflow:e=!0,isRTL:n=!1}={}){this.handleContainerOverflow=e,this.isRTL=n,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return function(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const e={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[n]:i.style[n]},t.scrollBarWidth&&(e[n]=`${parseInt(k(i,n)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(Z,""),k(i,e)}reset(){[...this.modals].forEach((t=>this.remove(t)))}removeContainerStyle(t){const e=this.getElement();e.removeAttribute(Z),Object.assign(e.style,t.style)}add(t){let e=this.modals.indexOf(t);return-1!==e||(e=this.modals.length,this.modals.push(t),this.setModalAttributes(t),0!==e||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),e}remove(t){const e=this.modals.indexOf(t);-1!==e&&(this.modals.splice(e,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}},P=(0,i.createContext)(w?window:void 0);function G(){return(0,i.useContext)(P)}P.Provider;const X=(t,e)=>w?null==t?(e||D()).body:("function"==typeof t&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null,H=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,R="undefined"!=typeof document||H?i.useLayoutEffect:i.useEffect,_=function({children:t,in:e,onExited:n,mountOnEnter:r,unmountOnExit:o}){const u=(0,i.useRef)(null),a=(0,i.useRef)(e),s=p(n);(0,i.useEffect)((()=>{e?a.current=!0:s(u.current)}),[e,s]);const L=v(u,t.ref),M=(0,i.cloneElement)(t,{ref:L});return e?M:o||!a.current&&r?null:M};function K({children:t,in:e,onExited:n,onEntered:r,transition:o}){const[u,a]=(0,i.useState)(!e);e&&u&&a(!1);const s=function({in:t,onTransition:e}){const n=(0,i.useRef)(null),r=(0,i.useRef)(!0),o=p(e);return R((()=>{if(!n.current)return;let e=!1;return o({in:t,element:n.current,initial:r.current,isStale:()=>e}),()=>{e=!0}}),[t,o]),R((()=>(r.current=!1,()=>{r.current=!0})),[]),n}({in:!!e,onTransition:t=>{Promise.resolve(o(t)).then((()=>{t.isStale()||(t.in?null==r||r(t.element,t.initial):(a(!0),null==n||n(t.element)))}),(e=>{throw t.in||a(!0),e}))}}),L=v(s,t.ref);return u&&!e?null:(0,i.cloneElement)(t,{ref:L})}function q(t,e,n){return t?(0,L.jsx)(t,Object.assign({},n)):e?(0,L.jsx)(K,Object.assign({},n,{transition:e})):(0,L.jsx)(_,Object.assign({},n))}const $=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let tt;const et=(0,i.forwardRef)(((t,e)=>{let{show:n=!1,role:r="dialog",className:o,style:u,children:a,backdrop:s=!0,keyboard:M=!0,onBackdropClick:l,onEscapeKeyDown:c,transition:j,runTransition:d,backdropTransition:N,runBackdropTransition:g,autoFocus:y=!0,enforceFocus:C=!0,restoreFocus:S=!0,restoreFocusOptions:m,renderDialog:T,renderBackdrop:D=(t=>(0,L.jsx)("div",Object.assign({},t))),manager:f,container:x,onShow:I,onHide:E=(()=>{}),onExit:h,onExited:v,onExiting:Y,onEnter:A,onEntering:z,onEntered:O}=t,k=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,$);const J=G(),W=function(t,e){const n=G(),[r,o]=(0,i.useState)((()=>X(t,null==n?void 0:n.document)));if(!r){const e=X(t);e&&o(e)}return(0,i.useEffect)((()=>{}),[e,r]),(0,i.useEffect)((()=>{const e=X(t);e!==r&&o(e)}),[t,r]),r}(x),Z=function(t){const e=G(),n=t||function(t){return tt||(tt=new U({ownerDocument:null==t?void 0:t.document})),tt}(e),r=(0,i.useRef)({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:(0,i.useCallback)((t=>{r.current.dialog=t}),[]),setBackdropRef:(0,i.useCallback)((t=>{r.current.backdrop=t}),[])})}(f),P=function(){const t=(0,i.useRef)(!0),e=(0,i.useRef)((()=>t.current));return(0,i.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),e.current}(),H=function(t){const e=(0,i.useRef)(null);return(0,i.useEffect)((()=>{e.current=t})),e.current}(n),[R,_]=(0,i.useState)(!n),K=(0,i.useRef)(null);(0,i.useImperativeHandle)(e,(()=>Z),[Z]),w&&!H&&n&&(K.current=Q(null==J?void 0:J.document)),n&&R&&_(!1);const et=p((()=>{if(Z.add(),at.current=V(document,"keydown",ot),ut.current=V(document,"focus",(()=>setTimeout(it)),!0),I&&I(),y){var t,e;const n=Q(null!=(t=null==(e=Z.dialog)?void 0:e.ownerDocument)?t:null==J?void 0:J.document);Z.dialog&&n&&!F(Z.dialog,n)&&(K.current=n,Z.dialog.focus())}})),nt=p((()=>{var t;Z.remove(),null==at.current||at.current(),null==ut.current||ut.current(),S&&(null==(t=K.current)||null==t.focus||t.focus(m),K.current=null)}));(0,i.useEffect)((()=>{n&&W&&et()}),[n,W,et]),(0,i.useEffect)((()=>{R&&nt()}),[R,nt]),b((()=>{nt()}));const it=p((()=>{if(!C||!P()||!Z.isTopModal())return;const t=Q(null==J?void 0:J.document);Z.dialog&&t&&!F(Z.dialog,t)&&Z.dialog.focus()})),rt=p((t=>{t.target===t.currentTarget&&(null==l||l(t),!0===s&&E())})),ot=p((t=>{M&&function(t){return"Escape"===t.code||27===t.keyCode}(t)&&Z.isTopModal()&&(null==c||c(t),t.defaultPrevented||E())})),ut=(0,i.useRef)(),at=(0,i.useRef)();if(!W)return null;const st=Object.assign({role:r,ref:Z.setDialogRef,"aria-modal":"dialog"===r||void 0},k,{style:u,className:o,tabIndex:-1});let Lt=T?T(st):(0,L.jsx)("div",Object.assign({},st,{children:i.cloneElement(a,{role:"document"})}));Lt=q(j,d,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:h,onExiting:Y,onExited:(...t)=>{_(!0),null==v||v(...t)},onEnter:A,onEntering:z,onEntered:O,children:Lt});let Mt=null;return s&&(Mt=D({ref:Z.setBackdropRef,onClick:rt}),Mt=q(N,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Mt})),(0,L.jsx)(L.Fragment,{children:B().createPortal((0,L.jsxs)(L.Fragment,{children:[Mt,Lt]}),W)})}));et.displayName="Modal";const nt=Object.assign(et,{Manager:U});var it=Function.prototype.bind.call(Function.prototype.call,[].slice);function rt(t,e){return it(t.querySelectorAll(e))}function ot(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const ut=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",at=".sticky-top",st=".navbar-toggler";class Lt extends U{adjustAndStore(t,e,n){const i=e.style[t];e.dataset[t]=i,k(e,{[t]:`${parseFloat(k(e,t))+n}px`})}restore(t,e){const n=e.dataset[t];void 0!==n&&(delete e.dataset[t],k(e,{[t]:n}))}setContainerStyle(t){super.setContainerStyle(t);const e=this.getElement();var n,i;if(i="modal-open",(n=e).classList?n.classList.add(i):function(t,e){return t.classList?t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,i)||("string"==typeof n.className?n.className=n.className+" "+i:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+i)),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";rt(e,ut).forEach((e=>this.adjustAndStore(r,e,t.scrollBarWidth))),rt(e,at).forEach((e=>this.adjustAndStore(o,e,-t.scrollBarWidth))),rt(e,st).forEach((e=>this.adjustAndStore(o,e,t.scrollBarWidth)))}removeContainerStyle(t){super.removeContainerStyle(t);const e=this.getElement();var n,i;i="modal-open",(n=e).classList?n.classList.remove(i):"string"==typeof n.className?n.className=ot(n.className,i):n.setAttribute("class",ot(n.className&&n.className.baseVal||"",i));const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";rt(e,ut).forEach((t=>this.restore(r,t))),rt(e,at).forEach((t=>this.restore(o,t))),rt(e,st).forEach((t=>this.restore(o,t)))}}let Mt;function lt(t,e){return lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lt(t,e)}const ct=r().createContext(null);var jt="unmounted",dt="exited",Nt="entering",gt="entered",yt="exiting",wt=function(t){var e,n;function i(e,n){var i;i=t.call(this,e,n)||this;var r,o=n&&!n.isMounting?e.enter:e.appear;return i.appearStatus=null,e.in?o?(r=dt,i.appearStatus=Nt):r=gt:r=e.unmountOnExit||e.mountOnEnter?jt:dt,i.state={status:r},i.nextCallback=null,i}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,lt(e,n),i.getDerivedStateFromProps=function(t,e){return t.in&&e.status===jt?{status:dt}:null};var o=i.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==Nt&&n!==gt&&(e=Nt):n!==Nt&&n!==gt||(e=yt)}this.updateStatus(!1,e)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var t,e,n,i=this.props.timeout;return t=e=n=i,null!=i&&"number"!=typeof i&&(t=i.exit,e=i.enter,n=void 0!==i.appear?i.appear:e),{exit:t,enter:e,appear:n}},o.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===Nt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:B().findDOMNode(this);n&&function(t){t.scrollTop}(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===dt&&this.setState({status:jt})},o.performEnter=function(t){var e=this,n=this.props.enter,i=this.context?this.context.isMounting:t,r=this.props.nodeRef?[i]:[B().findDOMNode(this),i],o=r[0],u=r[1],a=this.getTimeouts(),s=i?a.appear:a.enter;t||n?(this.props.onEnter(o,u),this.safeSetState({status:Nt},(function(){e.props.onEntering(o,u),e.onTransitionEnd(s,(function(){e.safeSetState({status:gt},(function(){e.props.onEntered(o,u)}))}))}))):this.safeSetState({status:gt},(function(){e.props.onEntered(o)}))},o.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:B().findDOMNode(this);e?(this.props.onExit(i),this.safeSetState({status:yt},(function(){t.props.onExiting(i),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:dt},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:dt},(function(){t.props.onExited(i)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},o.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,e.nextCallback=null,t(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:B().findDOMNode(this),i=null==t&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=r[0],u=r[1];this.props.addEndListener(o,u)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},o.render=function(){var t=this.state.status;if(t===jt)return null;var e=this.props,n=e.children,i=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r().createElement(ct.Provider,{value:null},"function"==typeof n?n(t,i):r().cloneElement(r().Children.only(n),i))},i}(r().Component);function Ct(){}wt.contextType=ct,wt.propTypes={},wt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ct,onEntering:Ct,onEntered:Ct,onExit:Ct,onExiting:Ct,onExited:Ct},wt.UNMOUNTED=jt,wt.EXITED=dt,wt.ENTERING=Nt,wt.ENTERED=gt,wt.EXITING=yt;const St=wt;function mt(t,e){const n=k(t,e)||"",i=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*i}function Tt(t,e){const n=mt(t,"transitionDuration"),i=mt(t,"transitionDelay"),r=J(t,(n=>{n.target===t&&(r(),e(n))}),n+i)}const Dt=r().forwardRef((({onEnter:t,onEntering:e,onEntered:n,onExit:o,onExiting:u,onExited:a,addEndListener:s,children:M,childRef:l,...c},j)=>{const d=(0,i.useRef)(null),N=v(d,l),g=t=>{var e;N((e=t)&&"setState"in e?B().findDOMNode(e):null!=e?e:null)},y=t=>e=>{t&&d.current&&t(d.current,e)},w=(0,i.useCallback)(y(t),[t]),C=(0,i.useCallback)(y(e),[e]),S=(0,i.useCallback)(y(n),[n]),m=(0,i.useCallback)(y(o),[o]),T=(0,i.useCallback)(y(u),[u]),D=(0,i.useCallback)(y(a),[a]),f=(0,i.useCallback)(y(s),[s]);return(0,L.jsx)(St,{ref:j,...c,onEnter:w,onEntered:S,onEntering:C,onExit:m,onExited:D,onExiting:T,addEndListener:f,nodeRef:d,children:"function"==typeof M?(t,e)=>M(t,{...e,ref:g}):r().cloneElement(M,{ref:g})})})),ft={[Nt]:"show",[gt]:"show"},xt=i.forwardRef((({className:t,children:e,transitionClasses:n={},onEnter:r,...o},u)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},M=(0,i.useCallback)(((t,e)=>{!function(t){t.offsetHeight}(t),null==r||r(t,e)}),[r]);return(0,L.jsx)(Dt,{ref:u,addEndListener:Tt,...a,onEnter:M,childRef:e.ref,children:(r,o)=>i.cloneElement(e,{...o,className:s()("fade",t,e.props.className,ft[r],n[r])})})}));xt.displayName="Fade";const It=xt,Et=i.forwardRef((({className:t,bsPrefix:e,as:n="div",...i},r)=>(e=N(e,"modal-body"),(0,L.jsx)(n,{ref:r,className:s()(t,e),...i}))));Et.displayName="ModalBody";const pt=Et,ht=i.createContext({onHide(){}}),vt=i.forwardRef((({bsPrefix:t,className:e,contentClassName:n,centered:i,size:r,fullscreen:o,children:u,scrollable:a,...M},l)=>{const c=`${t=N(t,"modal")}-dialog`,j="string"==typeof o?`${t}-fullscreen-${o}`:`${t}-fullscreen`;return(0,L.jsx)("div",{...M,ref:l,className:s()(c,e,r&&`${t}-${r}`,i&&`${c}-centered`,a&&`${c}-scrollable`,o&&j),children:(0,L.jsx)("div",{className:s()(`${t}-content`,n),children:u})})}));vt.displayName="ModalDialog";const bt=vt,Yt=i.forwardRef((({className:t,bsPrefix:e,as:n="div",...i},r)=>(e=N(e,"modal-footer"),(0,L.jsx)(n,{ref:r,className:s()(t,e),...i}))));Yt.displayName="ModalFooter";const At=Yt;var zt=n(3615),Ot=n.n(zt);const kt={"aria-label":Ot().string,onClick:Ot().func,variant:Ot().oneOf(["white"])},Vt=i.forwardRef((({className:t,variant:e,"aria-label":n="Close",...i},r)=>(0,L.jsx)("button",{ref:r,type:"button",className:s()("btn-close",e&&`btn-close-${e}`,t),"aria-label":n,...i})));Vt.displayName="CloseButton",Vt.propTypes=kt;const Jt=Vt,Qt=i.forwardRef((({closeLabel:t="Close",closeVariant:e,closeButton:n=!1,onHide:r,children:o,...u},a)=>{const s=(0,i.useContext)(ht),M=p((()=>{null==s||s.onHide(),null==r||r()}));return(0,L.jsxs)("div",{ref:a,...u,children:[o,n&&(0,L.jsx)(Jt,{"aria-label":t,variant:e,onClick:M})]})})),Ft=i.forwardRef((({bsPrefix:t,className:e,closeLabel:n="Close",closeButton:i=!1,...r},o)=>(t=N(t,"modal-header"),(0,L.jsx)(Qt,{ref:o,...r,className:s()(e,t),closeLabel:n,closeButton:i}))));Ft.displayName="ModalHeader";const Wt=Ft,Bt=("h4",i.forwardRef(((t,e)=>(0,L.jsx)("div",{...t,ref:e,className:s()(t.className,"h4")}))));const Zt=i.forwardRef((({className:t,bsPrefix:e,as:n=Bt,...i},r)=>(e=N(e,"modal-title"),(0,L.jsx)(n,{ref:r,className:s()(t,e),...i}))));Zt.displayName="ModalTitle";const Ut=Zt;function Pt(t){return(0,L.jsx)(It,{...t,timeout:null})}function Gt(t){return(0,L.jsx)(It,{...t,timeout:null})}const Xt=i.forwardRef((({bsPrefix:t,className:e,style:n,dialogClassName:r,contentClassName:o,children:u,dialogAs:a=bt,"aria-labelledby":M,"aria-describedby":l,"aria-label":j,show:d=!1,animation:g=!0,backdrop:y=!0,keyboard:C=!0,onEscapeKeyDown:S,onShow:m,onHide:x,container:E,autoFocus:h=!0,enforceFocus:Y=!0,restoreFocus:A=!0,restoreFocusOptions:z,onEntered:O,onExit:k,onExiting:V,onEnter:Q,onEntering:F,onExited:W,backdropClassName:B,manager:Z,...U},P)=>{const[G,X]=(0,i.useState)({}),[H,R]=(0,i.useState)(!1),_=(0,i.useRef)(!1),K=(0,i.useRef)(!1),q=(0,i.useRef)(null),[$,tt]=(0,i.useState)(null),et=v(P,tt),it=p(x),rt=function(){const{dir:t}=(0,i.useContext)(c);return"rtl"===t}();t=N(t,"modal");const ot=(0,i.useMemo)((()=>({onHide:it})),[it]);function ut(){return Z||function(t){return Mt||(Mt=new Lt(t)),Mt}({isRTL:rt})}function at(t){if(!w)return;const e=ut().getScrollbarWidth()>0,n=t.scrollHeight>D(t).documentElement.clientHeight;X({paddingRight:e&&!n?I():void 0,paddingLeft:!e&&n?I():void 0})}const st=p((()=>{$&&at($.dialog)}));b((()=>{f(window,"resize",st),null==q.current||q.current()}));const lt=()=>{_.current=!0},ct=t=>{_.current&&$&&t.target===$.dialog&&(K.current=!0),_.current=!1},jt=()=>{R(!0),q.current=J($.dialog,(()=>{R(!1)}))},dt=t=>{"static"!==y?K.current||t.target!==t.currentTarget?K.current=!1:null==x||x():(t=>{t.target===t.currentTarget&&jt()})(t)},Nt=(0,i.useCallback)((e=>(0,L.jsx)("div",{...e,className:s()(`${t}-backdrop`,B,!g&&"show")})),[g,B,t]),gt={...n,...G};return gt.display="block",(0,L.jsx)(ht.Provider,{value:ot,children:(0,L.jsx)(nt,{show:d,ref:et,backdrop:y,container:E,keyboard:!0,autoFocus:h,enforceFocus:Y,restoreFocus:A,restoreFocusOptions:z,onEscapeKeyDown:t=>{C?null==S||S(t):(t.preventDefault(),"static"===y&&jt())},onShow:m,onHide:x,onEnter:(t,e)=>{t&&at(t),null==Q||Q(t,e)},onEntering:(t,e)=>{null==F||F(t,e),T(window,"resize",st)},onEntered:O,onExit:t=>{null==q.current||q.current(),null==k||k(t)},onExiting:V,onExited:t=>{t&&(t.style.display=""),null==W||W(t),f(window,"resize",st)},manager:ut(),transition:g?Pt:void 0,backdropTransition:g?Gt:void 0,renderBackdrop:Nt,renderDialog:n=>(0,L.jsx)("div",{role:"dialog",...n,style:gt,className:s()(e,t,H&&`${t}-static`,!g&&"show"),onClick:y?dt:void 0,onMouseUp:ct,"aria-label":j,"aria-labelledby":M,"aria-describedby":l,children:(0,L.jsx)(a,{...U,onMouseDown:lt,className:r,contentClassName:o,children:u})})})})}));Xt.displayName="Modal";const Ht=Object.assign(Xt,{Body:pt,Header:Wt,Title:Ut,Footer:At,Dialog:bt,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});function Rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var _t=function(t){var e,n,r=t.widget,o=t.reviewData,u=t.onHide,a=(e=i.useState(!1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,u,a=[],s=!0,L=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);s=!0);}catch(t){L=!0,r=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(L)throw r}}return a}}(e,n)||function(t,e){if(t){if("string"==typeof t)return Rt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(t,e):void 0}}(e,n)||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.")}()),s=a[0],L=a[1];i.useEffect((function(){L(!0)}),[o]);var M=function(){L(!1),u()};return i.createElement(Ht,{show:s,onHide:M,size:"lg"},r.get("showReviewHeader")&&i.createElement(Ht.Header,{style:{alignSelf:"center"}},i.createElement(Ht.Title,null,r.get("reviewHeaderTitle"))),i.createElement(Ht.Body,{className:"form-review"},o.map((function(t,e){return i.createElement("div",{className:"step-review-container",key:"step-review-container-"+e},r.get("showStepsInReview")&&i.createElement("h4",{className:"step-review"},"Step ",e),t.map((function(t,e){return i.createElement(Kt,{key:"item-"+e,item:t})})))}))),r.get("showReviewFooter")&&i.createElement(Ht.Footer,null,i.createElement(y,{variant:"primary",onClick:M},r.get("reviewCloseButtonText"))))},Kt=function(t){var e=t.item;return i.createElement("div",null,i.createElement("div",{className:"review-item-title"},i.createElement("span",null,e.title)),i.createElement("div",{className:"review-item-value"},e.value))},qt=n(7225),$t=n(2212);function te(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ee(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw o}}}}function ee(t,e){if(t){if("string"==typeof t)return ne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(t,e):void 0}}function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ie(t,e){if(!t||t.length<=0)return"-";if("FormDateWidget"!=e.objClass())return t;var n=e.get("dateType");return"date"==n?new Date(t).toLocaleDateString():"datetime-local"==n?new Date(t).toLocaleString():t}function re(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,u,a=[],s=!0,L=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);s=!0);}catch(t){L=!0,r=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(L)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return oe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(t,e):void 0}}(t,e)||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 oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var ue=o.connect((function(t){var e=t.widget,n=t.onPageChange,r=t.onSubmit,u=t.currentStep,a=t.isLastPage,s=t.stepsLength,L=t.showReview,M=re(i.useState(!1),2),l=M[0],c=M[1],j=re(i.useState([]),2),d=j[0],N=j[1],g=a&&L;return i.createElement(i.Fragment,null,i.createElement("div",{className:"form-buttons"},i.createElement("button",{className:"btn btn-primary backward-button",onClick:function(){return n(!1)},hidden:1==u&&!o.isInPlaceEditingActive()},e.get("backwardButtonText")),i.createElement("div",{className:"step-counter"},u+" / "+s),g&&i.createElement("button",{className:"btn btn-primary review-button",onClick:function(){return function(t,e,n){var i=function(t){var e,n,i,r=document.getElementById(t.get("formId")),o=new FormData(r),u=new FormData,a=te(o);try{for(a.s();!(e=a.n()).done;){var s=(n=e.value,i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,u,a=[],s=!0,L=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);s=!0);}catch(t){L=!0,r=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(L)throw r}}return a}}(n,i)||ee(n,i)||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.")}()),L=s[0];s[1],console.log(L),u.has(L)||u.set(L,o.getAll(L).join(", "))}}catch(t){a.e(t)}finally{a.f()}var M,l=t.get("steps"),c=l.flatMap((function(t){return t.widgets()})),j=t.get("includeEmptyAnswers"),d=Array.from(r.querySelectorAll("input, select, textarea")),N=(0,$t.uniq)((0,$t.map)(d,(function(t){return t.name}))),g=[],y=te(N);try{var w=function(){var t=M.value,e=u.get(t);if((null==e||""==e)&&!j)return 0;var n=d.find((function(e){return e.name==t}));if("fax"==t||"hidden"==n.type&&!n.classList.contains("show-in-review"))return 0;var i=c.find((function(e){return(0,qt.T)(e)==t}));if(i){var r=l.find((function(e){return e.widgets().find((function(e){return(0,qt.T)(e)==t}))})).get("stepNumber"),o=i.get("label")||i.get("title")||"";g[r]||(g[r]=[]),g[r].push({title:o,value:ie(e,i)})}};for(y.s();!(M=y.n()).done;)w()}catch(t){y.e(t)}finally{y.f()}return g}(t);e(i),n(!0)}(e,N,c)}},e.get("reviewButtonText")),i.createElement("button",{className:"btn btn-primary forward-button",onClick:a?r:function(){return n(!0)}},a?e.get("submitButtonText"):e.get("forwardButtonText"))),g&&l&&i.createElement(_t,{widget:e,reviewData:d,onHide:function(){return c(!1)}}))})),ae=o.connect((function(t){var e=t.widget,n=t.onSubmit;return i.createElement("div",{className:"".concat("block"===e.get("singleSubmitButtonAlignment")?"":e.get("singleSubmitButtonAlignment"))},i.createElement("button",{className:"btn btn-primary".concat("block"===e.get("singleSubmitButtonAlignment")?" btn-block":""),onClick:n},e.get("submitButtonText")))})),se=n(9289),Le=n(3666),Me=n(5001),le=n(826),ce=n(3074),je=n(5317),de=n(5345);function Ne(t){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ne(t)}function ge(){ge=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function L(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{L({},"")}catch(t){L=function(t,e,n){return t[e]=n}}function M(t,e,n,i){var o=e&&e.prototype instanceof y?e:y,u=Object.create(o.prototype),a=new v(i||[]);return r(u,"_invoke",{value:I(t,n,a)}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=M;var c="suspendedStart",j="suspendedYield",d="executing",N="completed",g={};function y(){}function w(){}function C(){}var S={};L(S,u,(function(){return this}));var m=Object.getPrototypeOf,T=m&&m(m(b([])));T&&T!==n&&i.call(T,u)&&(S=T);var D=C.prototype=y.prototype=Object.create(S);function f(t){["next","throw","return"].forEach((function(e){L(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(r,o,u,a){var s=l(t[r],t,o);if("throw"!==s.type){var L=s.arg,M=L.value;return M&&"object"==Ne(M)&&i.call(M,"__await")?e.resolve(M.__await).then((function(t){n("next",t,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(M).then((function(t){L.value=t,u(L)}),(function(t){return n("throw",t,u,a)}))}a(s.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function I(e,n,i){var r=c;return function(o,u){if(r===d)throw new Error("Generator is already running");if(r===N){if("throw"===o)throw u;return{value:t,done:!0}}for(i.method=o,i.arg=u;;){var a=i.delegate;if(a){var s=E(a,i);if(s){if(s===g)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===c)throw r=N,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=d;var L=l(e,n,i);if("normal"===L.type){if(r=i.done?N:j,L.arg===g)continue;return{value:L.arg,done:i.done}}"throw"===L.type&&(r=N,i.method="throw",i.arg=L.arg)}}}function E(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var u=o.arg;return u?u.done?(n[e.resultName]=u.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function p(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function v(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(p,this),this.reset(!0)}function b(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Ne(e)+" is not iterable")}return w.prototype=C,r(D,"constructor",{value:C,configurable:!0}),r(C,"constructor",{value:w,configurable:!0}),w.displayName=L(C,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,L(t,s,"GeneratorFunction")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},f(x.prototype),L(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var u=new x(M(t,n,i,r),o);return e.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},f(D),L(D,s,"Generator"),L(D,u,(function(){return this})),L(D,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=b,v.prototype={constructor:v,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(h),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return a.type="throw",a.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],a=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),L=i.call(u,"finallyLoc");if(s&&L){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(s){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!L)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;h(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:b(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function ye(t,e,n,i,r,o,u){try{var a=t[o](u),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(i,r)}function we(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,u,a=[],s=!0,L=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);s=!0);}catch(t){L=!0,r=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(L)throw r}}return a}}(t,e)||Ce(t,e)||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 Ce(t,e){if(t){if("string"==typeof t)return Se(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(t,e):void 0}}function Se(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}o.provideComponent("FormStepContainerWidget",(function(t){var e=t.widget,n=(0,Le.S)();if(!n)return i.createElement(le.o,null);var r="https://api.justrelate.com/neoletter/instances/".concat(n,"/form_submissions"),a=we(i.useState(1),2),s=a[0],L=a[1],M=we(i.useState(!1),2),l=M[0],c=M[1],j=we(i.useState(!1),2),d=j[0],N=j[1],g=we(i.useState(!1),2),y=g[0],w=g[1],C="single-step"==e.get("formType"),S=e.get("steps").length,m=s==S,T=e.get("showReview");return i.useEffect((function(){o.isInPlaceEditingActive()&&(e.get("steps").forEach((function(t,e){var n=e+1;t.update({stepNumber:n,isSingleStep:C})})),S>1&&C?e.update({formType:"multi-step"}):1!=S||C||e.update({formType:"single-step"}))}),[e.get("steps")]),l?i.createElement(de.A,{submittingText:e.get("submittingMessage")}):d?i.createElement(je.r,{submissionSuccessText:e.get("submittedMessage")}):y?i.createElement(ce.N,{submissionFailureText:e.get("failedMessage")}):i.createElement("div",{className:"scrivito-form-widgets form-container-widget ".concat(e.get("showBorder")?"form-border":"")},i.createElement("form",{method:"post",id:e.get("formId")},i.createElement(se.u,{widget:e}),i.createElement(o.ContentTag,{content:e,attribute:"steps",widgetProps:{getData:function(t){var n=e.get("steps"),i=!1,r=0;return n.some((function(e,n){if(e.id()==t)return i=(r=n+1)==s,!0})),{stepNumber:r,isActive:i,isSingleStep:C}}}})),C?i.createElement(ae,{widget:e,onSubmit:D}):i.createElement(ue,{widget:e,onSubmit:D,onPageChange:function(t){var n=!0;if(!o.isInPlaceEditingActive()&&(t&&(n=x()),n)){var i=t?Math.min(s+1,S):Math.max(s-1,1);L(i);var r=document.getElementById(e.get("formId"));(0,u.z)(r)}},currentStep:s,stepsLength:S,isLastPage:m,showReview:T}));function D(){return f.apply(this,arguments)}function f(){var t;return t=ge().mark((function t(){var n;return ge().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.isInPlaceEditingActive()){t.next=2;break}return t.abrupt("return");case 2:if(x()){t.next=5;break}return t.abrupt("return");case 5:return n=document.getElementById(e.get("formId")),(0,u.z)(n),c(!0),N(!1),w(!1),t.prev=8,t.next=11,(0,Me.R)(n,r);case 11:c(!1),N(!0),w(!1),t.next=18;break;case 14:t.prev=14,t.t0=t.catch(8),setTimeout((function(){throw t.t0}),0),c(!1),N(!1),w(!0);case 18:case"end":return t.stop()}}),t,null,[[8,14]])})),f=function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function u(t){ye(o,i,r,u,a,"next",t)}function a(t){ye(o,i,r,u,a,"throw",t)}u(void 0)}))},f.apply(this,arguments)}function x(){return function(t,e){var n=!0,i=document.getElementById(t);if(i){var r=i.querySelector("[data-step-number='".concat(e,"']"));if(r){var o,u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ce(t))){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw o}}}}((r.querySelectorAll("input, select, textarea")||[]).values());try{for(u.s();!(o=u.n()).done;){var a=o.value;if(!a.checkValidity())return a.reportValidity(),n=!1}}catch(t){u.e(t)}finally{u.f()}}return n}}(e.get("formId"),s)}}))},9508:(t,e,n)=>{"use strict";n.r(e);var i=n(8610),r=n(5715),o=n(9783),u=n(3519),a=n(9079),s=n(3666),L=n(9320);function M(t){return"single-step"==t.get("formType")?["submitButtonText","singleSubmitButtonAlignment"]:["forwardButtonText","backwardButtonText","submitButtonText"]}function l(t){var e=["showReview","reviewButtonText","showStepsInReview","includeEmptyAnswers","showReviewHeader",["reviewHeaderTitle",{enabled:t.get("showReviewHeader")}],"showReviewFooter",["reviewCloseButtonText",{enabled:t.get("showReviewFooter")}]];return t.get("showReview")?e:["showReview"]}i.provideEditingConfig("FormStepContainerWidget",{title:"Neoletter Form",thumbnail:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJFYmVuZV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAxNTAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxNTAgMTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0MHtmaWxsOiNhYWF9LnN0MXtmaWxsOiNmZmZ9PC9zdHlsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE4LjkgMTYuM2gtNXYyaDV2LTJ6bS03IDBoLTV2Mmg1di0yem0tNyAwaC01djJoNXYtMnptLTcgMGgtNXYyaDV2LTJ6bS03IDBoLTV2Mmg1di0yem0tNyAwaC01djJoNXYtMnptLTcgMGgtNXYyaDV2LTJ6bS03IDBoLTV2Mmg1di0yem0tNyAwaC01djJoNXYtMnptLTcgMGgtNXYyaDV2LTJ6bS03IDBoLTV2Mmg1di0yem0tNyAwaC01djJoNXYtMnptLTcgMGgtNXYyaDV2LTJ6bS03IDBoLTMuN3YyaDMuN3YtMnptLTEuOCAzLjNoLTJ2NWgydi01em0wIDdoLTJ2NWgydi01em0wIDdoLTJ2NWgydi01em0wIDdoLTJ2NWgydi01em0wIDdoLTJ2NWgydi01em0wIDdoLTJ2N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gLjUtMS44cy0uMi0xLjQtLjUtMS44Yy0uMy0uNC0uOC0uNi0xLjQtLjYtLjYgMC0xIC4yLTEuNC42LS4zLjQtLjUgMS0uNSAxLjh6TTU0LjUgMzYuNXYtNi45aDIuOWMuNyAwIDEuMy4xIDEuNi4yLjMuMS42LjMuOC43LjIuMy4zLjcuMyAxLjEgMCAuNS0uMi45LS41IDEuMy0uMy4zLS44LjYtMS40LjYuMy4yLjYuNC43LjYuMi4yLjUuNi44IDEuMWwuOCAxLjNINTlMNTggMzVjLS40LS41LS42LS45LS43LTEtLjEtLjEtLjMtLjItLjQtLjMtLjEtLjEtLjQtLjEtLjctLjFoLS4zdjIuOWgtMS40em0xLjMtNGgxYy43IDAgMS4xIDAgMS4zLS4xLjItLjEuMy0uMi40LS4zLjEtLjEuMS0uMy4xLS41cy0uMS0uNC0uMi0uNmMtLjEtLjEtLjMtLjItLjUtLjNoLTIuMXYxLjh6TTYxLjQgMzYuNXYtNi45aDIuMWwxLjMgNC43IDEuMi00LjdoMi4xdjYuOWgtMS4zVjMxbC0xLjQgNS40aC0xLjNMNjIuNyAzMXY1LjRoLTEuM3oiLz48L3N2Zz4=",attributes:{formId:{title:"Form ID",description:"This ID identifies the form in Neoletter."},submittingMessage:{title:"Message shown while the form is being submitted"},submittedMessage:{title:"Message shown after the form was successfully submitted"},failedMessage:{title:"Message shown if the form submission failed"},hiddenFields:{title:"Hidden fields"},forwardButtonText:{title:"Forward button text"},backwardButtonText:{title:"Backward button text"},submitButtonText:{title:"Submit button text"},formType:{title:"Format",values:[{value:"single-step",title:"Single step"},{value:"multi-step",title:"Multiple steps"}]},showBorder:{title:"Show frame",description:"Adds a frame around the form."},showReview:{title:"Enable review",description:"Adds a button to the last step of multiple steps for reviewing the answers."},includeEmptyAnswers:{title:"Include empty answers",description:"Also includes empty answers in the review dialog."},showReviewHeader:{title:"Show header",description:"Adds a header to the review dialog."},showReviewFooter:{title:"Show footer",description:"Adds a footer with a button for closing the review dialog."},showStepsInReview:{title:"Show steps",description:"Shows the steps."},reviewButtonText:{title:"Review button text",description:"The text for the review button."},reviewHeaderTitle:{title:"Header title",description:"The title of the review header."},reviewCloseButtonText:{title:"Close button text",description:"The text on the button for closing the review dialog."},singleSubmitButtonAlignment:{title:"Alignment",values:[{value:"left",title:"Left"},{value:"text-center",title:"Center"},{value:"text-end",title:"Right"},{value:"block",title:"Full width"}]}},properties:["showBorder","submittingMessage","submittedMessage","failedMessage"],propertiesGroups:function(t){var e=[{title:"Hidden fields",key:"FormStepContainerWidgetHiddenFields",properties:["hiddenFields"]},{title:"Form submissions",key:"FormStepContainerWidgetFormSubmissions",properties:["formId"],component:L.Z},{title:"Navigation area",key:"FormNavigationButtons",properties:M(t)}];return"multi-step"==t.get("formType")&&e.unshift({title:"Steps",key:"FormSteps",properties:["steps"]},{title:"Review",key:"FormReview",properties:l(t)}),e},initialContent:{formId:function(){return(0,o.Q)()},submittingMessage:"Submitting...",submittedMessage:"Your message has been successfully sent. Thank you for your request. We will get back to you as soon as possible.",failedMessage:"We are sorry, your request could not be completed. Please try again later.",formType:"single-step",singleSubmitButtonAlignment:"text-center",steps:[new a.FormStepWidget({items:[new r.FormInputFieldWidget({type:"given_name",label:"First name",placeholder:"Your first name",required:!0}),new r.FormInputFieldWidget({type:"family_name",label:"Last name",placeholder:"Your last name",required:!0}),new r.FormInputFieldWidget({label:"Email",placeholder:"Your email address",type:"email",required:!0}),new r.FormInputFieldWidget({type:"company",label:"Company",placeholder:"Your company"}),new r.FormInputFieldWidget({type:"custom",customType:"multi_line",customFieldName:"custom_message",label:"Message",placeholder:"Your message",required:!0})]})],forwardButtonText:"Forward",backwardButtonText:"Backward",submitButtonText:"Submit",showBorder:!1,showReview:!1,includeEmptyAnswers:!1,showStepsInReview:!1,showReviewHeader:!1,showReviewFooter:!1,reviewButtonText:"Review",reviewHeaderTitle:"Review",reviewCloseButtonText:"Close"},validations:[function(t){if((0,u.$)(t))return"Needs to be outside of a Neoletter form."},function(t){if(t.get("steps").length<=0)return"The form must include at least one step."},function(){if(!(0,s.S)())return"No instanceId specified for form widgets."},["submittingMessage",function(t){if(!t)return"Specify the message to be displayed during form submission."}],["submittedMessage",function(t){if(!t)return"Specify the message to be displayed after successful form submission."}],["failedMessage",function(t){if(!t)return"Specify the message to be displayed after form submission failed."}],["formId",function(t){return t?null===t.match(/^[0-9a-fA-F]{32}$/)?"Specify a valid form ID (32 character hex value).":void 0:"Specify the form ID."}]]})},9465:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r});var i=n(8156),r=function(t){var e=t.value,n=t.id;return i.createElement("option",{value:e,id:n},e)}},9289:(t,e,n)=>{"use strict";n.d(e,{u:()=>s});var i,r=n(8156),o=n(8610),u=n(7428);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var s=function(t){var e,n,s=t.widget,l=(e=r.useState(null),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,u,a=[],s=!0,L=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);s=!0);}catch(t){L=!0,r=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(L)throw r}}return a}}(e,n)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(e,n)||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.")}()),c=l[0],j=l[1];return r.useEffect((function(){var t=function(){if("undefined"!=typeof window)return i||(i=(0,u.createBrowserHistory)()),i}();if(t)return j(M(t.location)),t.listen((function(t){var e=t.location;return j(M(e))}))}),[]),r.createElement(r.Fragment,null,r.createElement("input",{type:"hidden",name:"form_id",value:s.get("formId")}),r.createElement("input",{type:"hidden",name:"url",value:c||o.urlFor(s.obj())}),r.createElement(o.InPlaceEditingOff,null,r.createElement(o.ContentTag,{content:s,attribute:"hiddenFields"})),r.createElement(L,null))},L=function(){return r.createElement("div",{"aria-hidden":"true",className:"winnie-the-pooh"},r.createElement("input",{autoComplete:"off",role:"presentation",name:"fax",tabIndex:"-1"}))};function M(t){return"".concat(window.location.origin).concat(t.pathname).concat(t.search)}},9320:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(8156),r=n(8610),o=r.connect((function(t){var e=t.content,n=t.attribute,o=t.title,u=t.description,a=r.validationResultsFor(e,n),s=function(t){var e=t.find((function(t){return"error"===t.severity}))||t.find((function(t){return"warning"===t.severity}))||t.find((function(t){return"info"===t.severity}));return null==e?void 0:e.severity}(a),L=s&&"scrivito_".concat(s);return i.createElement(i.Fragment,null,i.createElement("div",{className:"scrivito_detail_label ".concat(L)},L&&i.createElement("i",{className:"scrivito_icon scrivito_icon_error"}),i.createElement("span",null,o)),i.createElement("div",{className:"content_property_input ".concat(L)},i.createElement(r.ContentTag,{content:e,attribute:n})),i.createElement("div",null,a.map((function(t){return i.createElement("div",{key:"".concat(t.severity).concat(t.message),className:"scrivito_validation_notice scrivito_".concat(t.severity)},i.createElement("span",{className:"scrivito_validation_message"},t.message))}))),u&&i.createElement("div",{className:"scrivito_notice_body"},u))})),u=n(3666),a=r.connect((function(t){var e=t.widget,n=e.get("formId")?"https://edit.neoletter.com/i/".concat((0,u.S)(),"/forms/").concat(e.get("formId")):null,a=r.uiContext();return a?i.createElement("div",{className:"scrivito_".concat(a.theme)},i.createElement("div",{className:"scrivito_detail_content"},i.createElement("div",{className:"attribute_form_id_item"},i.createElement(o,{content:e,attribute:"formId",title:"Form ID",description:"This ID identifies the form in Neoletter."}),i.createElement("a",{className:"scrivito_button ".concat(n?"scrivito_blue":"scrivito_disabled"),href:n,target:"_blank",rel:"noreferrer"},"View submissions")))):null}))},826:(t,e,n)=>{"use strict";n.d(e,{o:()=>r});var i=n(8156),r=function(t){return function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),i.createElement("span",{className:"scrivito-form-widgets missing-id"},"Warning! instanceId has not been configured for the form widget.")}},3074:(t,e,n)=>{"use strict";n.d(e,{N:()=>r});var i=n(8156),r=function(t){var e=t.submissionFailureText;return i.createElement("div",{className:"scrivito-form-widgets form-container-widget text-center"},i.createElement("i",{className:"fa fa-exclamation-triangle fa-2x","aria-hidden":"true"})," ",i.createElement("span",{className:"text-super"},e))}},5317:(t,e,n)=>{"use strict";n.d(e,{r:()=>r});var i=n(8156),r=function(t){var e=t.submissionSuccessText;return i.createElement("div",{className:"scrivito-form-widgets form-container-widget text-center"},i.createElement("i",{className:"fa fa-check fa-2x","aria-hidden":"true"})," ",i.createElement("span",{className:"text-super"},e))}},5345:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(8156),r=function(t){var e=t.submittingText;return i.createElement("div",{className:"scrivito-form-widgets form-container-widget text-center"},i.createElement("i",{className:"fa fa-spin fa-spinner fa-2x","aria-hidden":"true"})," ",i.createElement("span",{className:"text-super"},e))}},2360:(t,e,n)=>{"use strict";n.d(e,{R:()=>o});var i=n(8156),r=n(2636),o=function(t){var e=t.widget;return i.createElement(r.OverlayTrigger,{placement:"top",trigger:"hover",overlay:i.createElement(r.Popover,null,i.createElement(r.Popover.Body,null,i.createElement(Scrivito.InPlaceEditingOff,null,i.createElement(Scrivito.ContentTag,{content:e,attribute:"helpText"}))))},i.createElement("i",{className:"fa fa-question-circle-o fa-1x ml-1"}))}},4134:(t,e,n)=>{"use strict";n.d(e,{Q:()=>o});var i=n(8156),r=n(2636),o=function(t){return function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),i.createElement(r.OverlayTrigger,{placement:"top",trigger:"hover",overlay:i.createElement(r.Popover,null,i.createElement(r.Popover.Body,null,"mandatory"))},i.createElement("span",{className:"text-mandatory"},"*"))}},690:(t,e,n)=>{"use strict";n.d(e,{P:()=>r,Q:()=>o});var i=n(8156),r=function(t){var e=t.items,n=t.isMultiSelect,r=t.required,u=t.name;return i.createElement("div",{className:"row"},e.map((function(t,e){return i.createElement(o,{selectionType:n?"multi":"radio",name:u,value:t,required:r,key:e})})))},o=function(t){var e=t.selectionType,n=t.value,r=t.id,o=t.name,u=t.required,a=t.onChange;return i.createElement("label",{className:"select-label"},i.createElement("input",{className:"form-check-input",name:o,required:"radio"==e?u:null,type:"radio"==e?"radio":"checkbox",value:n,onChange:a,id:r}),i.createElement("span",null,n))}},7225:(t,e,n)=>{"use strict";n.d(e,{T:()=>r});var i=n(2909);function r(t){return(0,i.I)(t)?t.get("customFieldName"):t.get("type")}},3519:(t,e,n)=>{"use strict";n.d(e,{$:()=>r});var i=n(8610);function r(t){for(var e=t.container();e instanceof i.Widget;){var n=e.objClass();if("FormStepContainerWidget"===n||"FormContainerWidget"===n)return e;e=e.container()}return null}},2909:(t,e,n)=>{"use strict";function i(t){return!t.attributeDefinitions().type||"custom"===t.get("type")}n.d(e,{I:()=>i})},4034:(t,e,n)=>{"use strict";n.d(e,{H:()=>o});var i=n(7225),r=n(3519);function o(t){var e=(0,i.T)(t);if(!e)return!0;var n=(0,r.$)(t);return!n||!n.widgets().find((function(n){return(0,i.T)(n)===e&&n.id()!==t.id()}))}},9783:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r});var i=n(2212);function r(){return(0,i.times)(32).map(o).join("")}function o(){return Math.floor(16*Math.random()).toString(16)}},609:(t,e,n)=>{"use strict";function i(t){window.scrollTo({top:r(t)-95,behavior:"smooth"})}function r(t){return t.getBoundingClientRect().top+window.pageYOffset}n.d(e,{z:()=>i})},5001:(t,e,n)=>{"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(){r=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,u=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",L=a.asyncIterator||"@@asyncIterator",M=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var r=e&&e.prototype instanceof C?e:C,o=Object.create(r.prototype),a=new Y(i||[]);return u(o,"_invoke",{value:p(t,n,a)}),o}function j(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var d="suspendedStart",N="suspendedYield",g="executing",y="completed",w={};function C(){}function S(){}function m(){}var T={};l(T,s,(function(){return this}));var D=Object.getPrototypeOf,f=D&&D(D(A([])));f&&f!==n&&o.call(f,s)&&(T=f);var x=m.prototype=C.prototype=Object.create(T);function I(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(r,u,a,s){var L=j(t[r],t,u);if("throw"!==L.type){var M=L.arg,l=M.value;return l&&"object"==i(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){M.value=t,a(M)}),(function(t){return n("throw",t,a,s)}))}s(L.arg)}var r;u(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}})}function p(e,n,i){var r=d;return function(o,u){if(r===g)throw new Error("Generator is already running");if(r===y){if("throw"===o)throw u;return{value:t,done:!0}}for(i.method=o,i.arg=u;;){var a=i.delegate;if(a){var s=h(a,i);if(s){if(s===w)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===d)throw r=y,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=g;var L=j(e,n,i);if("normal"===L.type){if(r=i.done?y:N,L.arg===w)continue;return{value:L.arg,done:i.done}}"throw"===L.type&&(r=y,i.method="throw",i.arg=L.arg)}}}function h(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,h(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),w;var o=j(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,w;var u=o.arg;return u?u.done?(n[e.resultName]=u.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,w):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,w)}function v(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Y(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(v,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,u=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return u.next=u}}throw new TypeError(i(e)+" is not iterable")}return S.prototype=m,u(x,"constructor",{value:m,configurable:!0}),u(m,"constructor",{value:S,configurable:!0}),S.displayName=l(m,M,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,M,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},I(E.prototype),l(E.prototype,L,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var u=new E(c(t,n,i,r),o);return e.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},I(x),l(x,M,"Generator"),l(x,s,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=A,Y.prototype={constructor:Y,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(b),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(i,r){return a.type="throw",a.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var u=this.tryEntries[r],a=u.completion;if("root"===u.tryLoc)return i("end");if(u.tryLoc<=this.prev){var s=o.call(u,"catchLoc"),L=o.call(u,"finallyLoc");if(s&&L){if(this.prev<u.catchLoc)return i(u.catchLoc,!0);if(this.prev<u.finallyLoc)return i(u.finallyLoc)}else if(s){if(this.prev<u.catchLoc)return i(u.catchLoc,!0)}else{if(!L)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return i(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var u=r?r.completion:{};return u.type=t,u.arg=e,r?(this.method="next",this.next=r.finallyLoc,w):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),w},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),w}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;b(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:A(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),w}},e}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=u(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e,n,i,r,o,u){try{var a=t[o](u),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(i,r)}function L(t,e){return M.apply(this,arguments)}function M(){var t;return t=r().mark((function t(e,n){var i,a,s,L,M,l,c,j;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=new FormData(e),a=new FormData,s=o(i),t.prev=3,s.s();case 5:if((L=s.n()).done){t.next=14;break}if(r=L.value,d=2,M=function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,u,a=[],s=!0,L=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);s=!0);}catch(t){L=!0,r=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(L)throw r}}return a}}(r,d)||u(r,d)||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.")}(),l=M[0],M[1],!a.has(l)){t.next=11;break}return t.abrupt("continue",12);case 11:a.set(l,i.getAll(l).join(", "));case 12:t.next=5;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(3),s.e(t.t0);case 19:return t.prev=19,s.f(),t.finish(19);case 22:return c=new URLSearchParams(a),t.next=25,fetch(n,{method:"post",body:c});case 25:if((j=t.sent).ok){t.next=28;break}throw new Error("Response was not successful. Status code: ".concat(j.status,"."));case 28:case"end":return t.stop()}var r,d}),t,null,[[3,16,19,22]])})),M=function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function u(t){s(o,i,r,u,a,"next",t)}function a(t){s(o,i,r,u,a,"throw",t)}u(void 0)}))},M.apply(this,arguments)}n.d(e,{R:()=>L})},5980:(t,e,n)=>{"use strict";n.d(e,{r:()=>o});var i=n(2909),r=n(4034),o=["customFieldName",function(t,e){var n=e.widget;if((0,i.I)(n))return t.startsWith("custom_")?t.length<=7?"Specify the custom field's name.":null===t.match(/^[A-Za-z_][A-Za-z0-9_]*$/)?'Custom field names may consist of the following characters: "a-z", "A-Z", "0-9", "_".':t.length>50?"Custom field names may be up to 50 characters long. This name is ".concat(t.length," characters long."):(0,r.H)(n)?void 0:"Specify a unique custom field name. There is at least one other element with the same custom field name.":'Custom field names must start with "custom_".'}]},7582:(t,e,n)=>{"use strict";n.d(e,{c:()=>r});var i=n(3519);function r(t){if(!(0,i.$)(t))return"Needs to be inside a Neoletter form."}},3735:(t,e,n)=>{"use strict";n.d(e,{d:()=>o});var i=n(2909),r=n(4034),o=["type",function(t,e){var n=e.widget;return t?(0,i.I)(n)||(0,r.H)(n)?void 0:"There must be only one element with the input type “".concat(t.replace(/_/," "),"”."):"Select the input type."}]},9079:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormStepWidget:()=>i});var i=n(8610).provideWidgetClass("FormStepWidget",{onlyInside:"FormStepContainerWidget",attributes:{items:"widgetlist",stepNumber:"integer",isSingleStep:"boolean"}})},4643:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610),o=n(7422);r.provideComponent("FormStepWidget",(function(t){var e=t.widget,n=t.getData,u=n?n(e.id()):{stepNumber:0},a=e.get("items"),s=r.isInPlaceEditingActive()&&!u.isSingleStep;return a.length?i.createElement("div",{className:"".concat(s?"step-border":"".concat(u.isActive||u.isSingleStep?"":"hide")," "),"data-step-number":u.stepNumber},s&&i.createElement("span",{className:"step-preview-count"},"Step "+u.stepNumber),i.createElement("div",{className:"row"},i.createElement(r.ContentTag,{content:e,attribute:"items"}))):i.createElement(o.f,{center:!0},"Select some items in the widget properties.")}))},4232:(t,e,n)=>{"use strict";n.r(e),n(8610).provideEditingConfig("FormStepWidget",{title:"Neoletter Form Step",titleForContent:function(t){return t.get("isSingleStep")?"Single Step":"Step "+t.get("stepNumber")},thumbnail:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjguMSwgU1ZHIEV4cG9ydC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uOCwzMi41aDFjMC43LDAsMS4xLDAsMS4zLTAuMQoJCQljMC4yLTAuMSwwLjMtMC4yLDAuNC0wLjNjMC4xLTAuMSwwLjEtMC4zLDAuMS0wLjVjMC0wLjItMC4xLTAuNC0wLjItMC42Yy0wLjEtMC4xLTAuMy0wLjItMC41LTAuM2MtMC4xLDAtMC41LDAtMSwwaC0xLjFWMzIuNXoiCgkJCS8+CgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTYxLjQsMzYuNXYtNi45aDIuMWwxLjMsNC43bDEuMi00LjdoMi4xdjYuOWgtMS4zVjMxbC0xLjQsNS40aC0xLjNMNjIuNywzMXY1LjRINjEuNHoiLz4KCTwvZz4KPC9nPgo8Zz4KCTxwb2x5Z29uIGNsYXNzPSJzdDIiIHBvaW50cz0iODQuNSw3My44IDYwLjcsNzMuOCA2NS41LDY1LjggNjAuNyw1Ny44IDg0LjUsNTcuOCA4OS4zLDY1LjggCSIvPgoJPHBvbHlnb24gY2xhc3M9InN0MiIgcG9pbnRzPSIxMTIuNyw3My44IDg4LjksNzMuOCA5My42LDY1LjggODguOSw1Ny44IDExMi43LDU3LjggMTE3LjQsNjUuOCAJIi8+Cgk8cG9seWdvbiBjbGFzcz0ic3QyIiBwb2ludHM9IjU2LjQsNzMuOCAzMi42LDczLjggMzIuNiw2NS44IDMyLjYsNTcuOCA1Ni40LDU3LjggNjEuMSw2NS44IAkiLz4KPC9nPgo8L3N2Zz4K",attributes:{items:{title:"Items"}},properties:["items"]})},7338:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormButtonWidget:()=>i});var i=n(8610).provideWidgetClass("FormButtonWidget",{attributes:{buttonText:"string",alignment:["enum",{values:["left","center","right","block"]}]},extractTextAttributes:["buttonText"]})},4963:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610);function o(t){var e=t.className,n=t.children;return e?i.createElement("div",{className:e},n):n}r.provideComponent("FormButtonWidget",(function(t){var e,n=t.widget;return i.createElement(o,{className:(e=n.get("alignment"),"center"===e?"text-center":"right"===e?"text-end":null)},i.createElement("button",{className:"btn btn-primary".concat("block"===n.get("alignment")?" btn-block":""),type:"submit"},i.createElement(r.ContentTag,{tag:"span",content:n,attribute:"buttonText"})))}))},7469:(t,e,n)=>{"use strict";n.r(e),n(8610).provideEditingConfig("FormButtonWidget",{title:"Legacy Form Button",hideInSelectionDialogs:!0,attributes:{buttonText:{title:"Button Text"},alignment:{title:"Alignment",values:[{value:"left",title:"Left"},{value:"center",title:"Center"},{value:"right",title:"Right"},{value:"block",title:"Full width"}]}},properties:["buttonText","alignment"],initialContent:{buttonText:"send message",alignment:"center"},validations:[["alignment",function(t){if(!t)return"Select the alignment."}]]})},4664:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FormContainerWidget:()=>i});var i=n(8610).provideWidgetClass("FormContainerWidget",{attributes:{content:"widgetlist",formId:"string",failedMessage:"string",submittedMessage:"string",submittingMessage:"string",hiddenFields:["widgetlist",{only:"FormHiddenFieldWidget"}]},extractTextAttributes:["content"]})},7722:(t,e,n)=>{"use strict";n.r(e);var i=n(8156),r=n(8610),o=n(609),u=n(3666),a=n(5001),s=n(9289),L=n(826),M=n(5345),l=n(3074),c=n(5317);function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function d(){d=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function L(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{L({},"")}catch(t){L=function(t,e,n){return t[e]=n}}function M(t,e,n,i){var o=e&&e.prototype instanceof C?e:C,u=Object.create(o.prototype),a=new Y(i||[]);return r(u,"_invoke",{value:p(t,n,a)}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=M;var c="suspendedStart",N="suspendedYield",g="executing",y="completed",w={};function C(){}function S(){}function m(){}var T={};L(T,u,(function(){return this}));var D=Object.getPrototypeOf,f=D&&D(D(A([])));f&&f!==n&&i.call(f,u)&&(T=f);var x=m.prototype=C.prototype=Object.create(T);function I(t){["next","throw","return"].forEach((function(e){L(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(r,o,u,a){var s=l(t[r],t,o);if("throw"!==s.type){var L=s.arg,M=L.value;return M&&"object"==j(M)&&i.call(M,"__await")?e.resolve(M.__await).then((function(t){n("next",t,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(M).then((function(t){L.value=t,u(L)}),(function(t){return n("throw",t,u,a)}))}a(s.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function p(e,n,i){var r=c;return function(o,u){if(r===g)throw new Error("Generator is already running");if(r===y){if("throw"===o)throw u;return{value:t,done:!0}}for(i.method=o,i.arg=u;;){var a=i.delegate;if(a){var s=h(a,i);if(s){if(s===w)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===c)throw r=y,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=g;var L=l(e,n,i);if("normal"===L.type){if(r=i.done?y:N,L.arg===w)continue;return{value:L.arg,done:i.done}}"throw"===L.type&&(r=y,i.method="throw",i.arg=L.arg)}}}function h(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,h(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),w;var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,w;var u=o.arg;return u?u.done?(n[e.resultName]=u.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,w):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,w)}function v(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Y(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(v,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(j(e)+" is not iterable")}return S.prototype=m,r(x,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:S,configurable:!0}),S.displayName=L(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,L(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},I(E.prototype),L(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var u=new E(M(t,n,i,r),o);return e.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},I(x),L(x,s,"Generator"),L(x,u,(function(){return this})),L(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=A,Y.prototype={constructor:Y,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(b),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return a.type="throw",a.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],a=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),L=i.call(u,"finallyLoc");if(s&&L){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(s){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!L)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=e,o?(this.method="next",this.next=o.finallyLoc,w):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),w},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),w}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;b(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:A(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),w}},e}function N(t,e,n,i,r,o,u){try{var a=t[o](u),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(i,r)}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,u,a=[],s=!0,L=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);s=!0);}catch(t){L=!0,r=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(L)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(t,e)||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 y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}r.provideComponent("FormContainerWidget",(function(t){var e=t.widget,n=(0,u.S)();if(!n)return i.createElement(L.o,null);var j="https://api.justrelate.com/neoletter/instances/".concat(n,"/form_submissions"),y=g(i.useState(!1),2),w=y[0],C=y[1],S=g(i.useState(!1),2),m=S[0],T=S[1],D=g(i.useState(!1),2),f=D[0],x=D[1];return w?i.createElement(M.A,{submittingText:e.get("submittingMessage")}):m?i.createElement(c.r,{submissionSuccessText:e.get("submittedMessage")}):f?i.createElement(l.N,{submissionFailureText:e.get("failedMessage")}):i.createElement("div",{className:"scrivito-form-widgets form-container-widget"},i.createElement("form",{method:"post",action:j,onSubmit:function(t){return I.apply(this,arguments)}},i.createElement(s.u,{widget:e}),i.createElement(r.ContentTag,{content:e,attribute:"content"})));function I(){var t;return t=d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),(0,o.z)(e.target),C(!0),T(!1),x(!1),t.prev=3,t.next=6,(0,a.R)(e.target,j);case 6:C(!1),T(!0),x(!1),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(3),setTimeout((function(){throw t.t0}),0),C(!1),T(!1),x(!0);case 13:case"end":return t.stop()}}),t,null,[[3,9]])})),I=function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function u(t){N(o,i,r,u,a,"next",t)}function a(t){N(o,i,r,u,a,"throw",t)}u(void 0)}))},I.apply(this,arguments)}}))},7423:(t,e,n)=>{"use strict";n.r(e);var i=n(8610),r=n(9783),o=n(9320);i.provideEditingConfig("FormContainerWidget",{title:"Legacy Form",hideInSelectionDialogs:!0,attributes:{formId:{title:"Form ID",description:"This ID identifies the form in Neoletter."},submittingMessage:{title:"Message shown while the form is being submitted"},submittedMessage:{title:"Message shown after the form was successfully submitted"},failedMessage:{title:"Message shown if the form submission failed"},hiddenFields:{title:"Hidden fields"}},properties:["submittingMessage","submittedMessage","failedMessage"],propertiesGroups:[{title:"Hidden fields",key:"FormContainerWidgetHiddenFields",properties:["hiddenFields"]},{title:"Form submissions",key:"FormContainerWidgetFormSubmissions",properties:["formId"],component:o.Z}],initialContent:{formId:function(){return(0,r.Q)()},submittingMessage:"Submitting...",submittedMessage:"Your message has been successfully sent. Thank you for your request. We will get back to you as soon as possible.",failedMessage:"We are sorry, your request could not be completed. Please try again later."},validations:[function(t){if(t.widgets().every((function(t){return"FormButtonWidget"!==t.objClass()})))return"A submit button is missing."},["submittingMessage",function(t){if(!t)return"Specify the message to be displayed during form submission."}],["submittedMessage",function(t){if(!t)return"Specify the message to be displayed after successful form submission."}],["failedMessage",function(t){if(!t)return"Specify the message to be displayed after form submission failed."}],["formId",function(t){return t?null===t.match(/^[0-9a-fA-F]{32}$/)?"Specify a valid form ID (32 character hex value).":void 0:"Specify the form ID."}]]})},3666:(t,e,n)=>{"use strict";n.d(e,{K:()=>r,S:()=>o});var i=null,r=function(t){i=t,Promise.resolve().then(n.bind(n,4664)),Promise.resolve().then(n.bind(n,7722)),Promise.resolve().then(n.bind(n,7423)),Promise.resolve().then(n.bind(n,7338)),Promise.resolve().then(n.bind(n,4963)),Promise.resolve().then(n.bind(n,7469)),Promise.resolve().then(n.bind(n,903)),Promise.resolve().then(n.bind(n,2869)),Promise.resolve().then(n.bind(n,2988)),Promise.resolve().then(n.bind(n,8880)),Promise.resolve().then(n.bind(n,9104)),Promise.resolve().then(n.bind(n,974)),Promise.resolve().then(n.bind(n,4653)),Promise.resolve().then(n.bind(n,1046)),Promise.resolve().then(n.bind(n,9508)),Promise.resolve().then(n.bind(n,8335)),Promise.resolve().then(n.bind(n,5465)),Promise.resolve().then(n.bind(n,9793)),Promise.resolve().then(n.bind(n,817)),Promise.resolve().then(n.bind(n,438)),Promise.resolve().then(n.bind(n,5071)),Promise.resolve().then(n.bind(n,5715)),Promise.resolve().then(n.bind(n,696)),Promise.resolve().then(n.bind(n,440)),Promise.resolve().then(n.bind(n,9512)),Promise.resolve().then(n.bind(n,5209)),Promise.resolve().then(n.bind(n,4959)),Promise.resolve().then(n.bind(n,3403)),Promise.resolve().then(n.bind(n,8920)),Promise.resolve().then(n.bind(n,7319)),Promise.resolve().then(n.bind(n,9079)),Promise.resolve().then(n.bind(n,4643)),Promise.resolve().then(n.bind(n,4232)),Promise.resolve().then(n.bind(n,9686)),Promise.resolve().then(n.bind(n,8623)),Promise.resolve().then(n.bind(n,8221))},o=function(){return i}},42:(t,e)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n)){if(n.length){var u=r.apply(null,n);u&&t.push(u)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){t.push(n.toString());continue}for(var a in n)i.call(n,a)&&n[a]&&t.push(a)}}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},8772:(t,e,n)=>{"use strict";var i=n(331);function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,u){if(u!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},3615:(t,e,n)=>{t.exports=n(8772)()},331:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1426:(t,e,n)=>{"use strict";var i=n(8156),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function L(t,e,n){var i,o={},L=null,M=null;for(i in void 0!==n&&(L=""+n),void 0!==e.key&&(L=""+e.key),void 0!==e.ref&&(M=e.ref),e)u.call(e,i)&&!s.hasOwnProperty(i)&&(o[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===o[i]&&(o[i]=e[i]);return{$$typeof:r,type:t,key:L,ref:M,props:o,_owner:a.current}}e.Fragment=o,e.jsx=L,e.jsxs=L},4246:(t,e,n)=>{"use strict";t.exports=n(1426)},7428:e=>{"use strict";e.exports=t},2212:t=>{"use strict";t.exports=e},8156:t=>{"use strict";t.exports=n},2636:t=>{"use strict";t.exports=i},7111:t=>{"use strict";t.exports=r},8610:t=>{"use strict";t.exports=o}},a={};function s(t){var e=a[t];if(void 0!==e)return e.exports;var n=a[t]={exports:{}};return u[t](n,n.exports,s),n.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var L={};return(()=>{"use strict";s.r(L),s.d(L,{customFieldNameValidation:()=>i.r,getFormContainer:()=>n.$,initNeoletterFormWidgets:()=>t.K,insideFormContainerValidation:()=>e.c});var t=s(3666),e=s(7582),n=s(3519),i=s(5980)})(),L})()));
@@ -0,0 +1,17 @@
1
+ /*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
6
+
7
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
8
+
9
+ /**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "scrivito-neoletter-form-widgets",
3
+ "version": "0.0.1",
4
+ "description": "A set of Scrivito Neoletter Form Widgets",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "build": "webpack --mode production",
8
+ "start": "webpack --watch --mode development",
9
+ "eslint": "eslint --max-warnings 0 src/",
10
+ "es-check": "npm run build && es-check es5 './build/**/*.js'"
11
+ },
12
+ "keywords": [
13
+ "Scrivito",
14
+ "widgets",
15
+ "react",
16
+ "form",
17
+ "questionnaire",
18
+ "neoletter"
19
+ ],
20
+ "peerDependencies": {
21
+ "history": "^5.3.0",
22
+ "lodash-es": "^4.17.21",
23
+ "mini-css-extract-plugin": "^2.6.1",
24
+ "prettier": "^2.7.1",
25
+ "react": "^18.0.0",
26
+ "react-bootstrap": "^2.5.0",
27
+ "react-dom": "^18.0.0",
28
+ "scrivito": "^1.35.0",
29
+ "webpack": "^5.76.0",
30
+ "webpack-cli": "^4.10.0"
31
+ },
32
+ "devDependencies": {
33
+ "@babel/core": "^7.19.3",
34
+ "@babel/preset-env": "^7.19.3",
35
+ "@babel/preset-react": "^7.18.6",
36
+ "babel-loader": "^8.2.5",
37
+ "clean-webpack-plugin": "^3.0.0",
38
+ "copy-webpack-plugin": "^11.0.0",
39
+ "css-loader": "^6.8.1",
40
+ "es-check": "^5.1.0",
41
+ "eslint": "^8.24.0",
42
+ "eslint-config-airbnb": "^19.0.4",
43
+ "eslint-config-prettier": "^8.5.0",
44
+ "eslint-config-react-app": "^7.0.1",
45
+ "eslint-import-resolver-webpack": "^0.13.2",
46
+ "eslint-plugin-flowtype": "^8.0.3",
47
+ "eslint-plugin-import": "^2.26.0",
48
+ "eslint-plugin-jsx-a11y": "^6.6.1",
49
+ "eslint-plugin-prettier": "^4.2.1",
50
+ "eslint-plugin-react": "^7.31.8",
51
+ "eslint-plugin-react-hooks": "^4.6.0",
52
+ "node-sass": "^9.0.0",
53
+ "sass-loader": "^13.3.2",
54
+ "style-loader": "^3.3.3",
55
+ "url-loader": "^3.0.0"
56
+ },
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "git+https://github.com/Scrivito/scrivito-neoletter-form-widgets.git"
60
+ },
61
+ "author": "aea-JR",
62
+ "license": "MIT",
63
+ "bugs": {
64
+ "url": "https://github.com/Scrivito/scrivito-neoletter-form-widgets/issues"
65
+ },
66
+ "homepage": "https://github.com/Scrivito/scrivito-neoletter-form-widgets#readme"
67
+ }
package/readme.md ADDED
@@ -0,0 +1,399 @@
1
+ # Scrivito Neoletter Form Widgets
2
+
3
+ A set of Scrivito Widgets for building awesome forms
4
+
5
+ # Features
6
+ - Single-step & multiple-step forms
7
+ - Dropdowns
8
+ - Single-select radio buttons
9
+ - Multi-select checkboxes
10
+ - Rating controls
11
+ - Date & date-time controls
12
+ - Conditionals
13
+
14
+ ## Installation
15
+
16
+ **Note:** If you have existing forms, they will run in legacy mode after installing this package. Legacy mode allows you to continue using your existing forms, but the new form features such as review or steps cannot be used by them. You can still add new widgets to existing forms.
17
+
18
+
19
+ Install the package into your scrivito app:
20
+
21
+ ```shell
22
+ npm install scrivito-neoletter-form-widgets
23
+ ```
24
+
25
+ Import the `initNeoletterFormWidgets` function from the package, and call it in your index.js file found in the Widgets folder (e.g. in `src/Widgets/index.js`), passing your Scrivito tenant ID to the function:
26
+ ```js
27
+ import { initNeoletterFormWidgets } from "scrivito-neoletter-form-widgets";
28
+
29
+ initNeoletterFormWidgets(process.env.SCRIVITO_TENANT);
30
+ ```
31
+
32
+
33
+
34
+ Add the widget styles to your app.
35
+ This can be done by either loading the CSS via `css-loader` (e.g. in `src/index.js` or `src/Widgets/index.js`):
36
+
37
+ ```js
38
+ import "scrivito-neoletter-form-widgets/index.css";
39
+ ```
40
+
41
+ Or by importing the styles into your stylesheets (e.g. in `src/assets/stylesheets/index.scss`):
42
+
43
+ ```scss
44
+ @import "~scrivito-neoletter-form-widgets/index.css";
45
+ ```
46
+
47
+ Delete all form widgets included in the Example App from the "Widgets" folder:
48
+ - FormButtonWidget
49
+ - FormCheckboxWidget
50
+ - FormContainerWidget
51
+ - FormHiddenFieldWidget
52
+ - FormInputFieldWidget
53
+
54
+ You're done! Enjoy building well-designed and cleverly arranged forms!
55
+
56
+ # Neoletter Form Widgets Overview
57
+ <img src="images/form_widgets_all.png" width="200" alt="Screenshot">
58
+
59
+ The following widgets are typically added within the [Form](#form-widget) widget to create well-structured forms:
60
+
61
+ - [Form Step](#form-step-widget): Configures an individual step within the form.
62
+ - [Form Checkbox](#form-checkbox-widget): Adds checkbox input fields.
63
+ - [Form Date](#form-date-widget): Includes date and date-time input fields.
64
+ - [Form Input Field](#form-input-field-widget): Adds customizable input fields.
65
+ - [Form Rating](#form-rating-widget): Integrates a rating control.
66
+ - [Form Select](#form-select-widget): Provides single or multiple selection options, including radio buttons, dropdowns, and checkboxes.
67
+ - [Hidden Form Field](#form-hidden-field-widget): Adds hidden form fields.
68
+ - [Form Conditional Container](#form-conditional-container-widget): Allows you to conditionally show/hide other widgets based on user selections.
69
+ - [Form Condition](#form-condition-widget): Defines a condition for showing or hiding other widgets within the [Form Conditional Container](#form-conditional-container-widget) widget.
70
+
71
+ Of course, you can also add any additional non-form widgets.
72
+
73
+ # Form Widgets
74
+
75
+ ## Form Widget
76
+ <img src="images/form_container.png" width="350" alt="Screenshot">
77
+
78
+ The `Form` widget is the main widget for creating and managing forms. To add various form elements and controls, you need to place them inside the `Form` widget.
79
+
80
+ ### Properties
81
+ <img src="images/form_properties.png" width="350" alt="Screenshot">
82
+
83
+
84
+ The `Form` widget has the following properties divided into several tabs:
85
+
86
+ - "General" tab
87
+ - Show frame: Adds a frame around the form.
88
+ - Submitting message: Message shown while the form is being submitted.
89
+ - Submitted message: Message shown after the form was successfully submitted.
90
+ - Failed message: Message shown if the form submission failed.
91
+ - "Steps" tab (Tab visible if form has "Multiple Steps")
92
+ - Steps: Configure the form steps.
93
+ - "Review" tab (Tab visible if form has "Multiple Steps", content depends on review selection)
94
+ - Enable Review: Adds a button to the last step of "Multiple Steps" for reviewing the answers.
95
+ - Review button text: The text for the review button.
96
+ - Show steps: Shows the steps in the review dialog.
97
+ - Include empty answers: Includes empty answers in the review dialog, otherwise only non empty answers are shown.
98
+ - Show header: Adds a header to the review dialog.
99
+ - Header title: The title of the review header.
100
+ - Show footer: Adds a footer with a button for closing the review dialog.
101
+ - Close button text: The text on the button for closing the review dialog.
102
+ - "Hidden fields" tab
103
+ - Hidden Fields: Customize hidden fields.
104
+ - "Form submission" tab
105
+ - Form ID: This ID identifies the form in Neoletter.
106
+ - "Navigation area" tab (Content depends on form type i.e. single-step or multiple-steps)
107
+ - Forward button text: Text for the forward button.
108
+ - Backward button text: Text for the backward button.
109
+ - Submit button text: Text for the submit button.
110
+ - Alignment: Alignment for the single-step form submit button.
111
+
112
+ ### Validation
113
+
114
+ The `Form` Widget has specific validation requirements:
115
+
116
+ - The widget should not be placed inside another form.
117
+ - The form ID must be a 32-character hexadecimal value.
118
+
119
+ ## Form Step Widget
120
+ <img src="images/form_step_preview.png" width="350" alt="Screenshot">
121
+
122
+ The `Form Step` widget represents an individual step within the form. Each step can have its own set of form elements, controls, and content.
123
+
124
+ ### Properties
125
+ - Items: Configure the items or content for this step.
126
+
127
+ ### Validation
128
+ - The step widget must be placed within the form.
129
+ - Each step must include at least one item.
130
+
131
+ ## Form Checkbox Widget
132
+ <img src="images/form_checkbox_preview.png" width="350" alt="Screenshot">
133
+
134
+ The `Form Checkbox` widget lets you add individual single checkbox input fields to your form. You can specify whether the checkbox is mandatory and define its type, custom field name, and help text.
135
+
136
+ ### Properties
137
+
138
+ - Input type: The checkbox type for accepting terms, a subscription, or a custom option.
139
+ - Field name: Define the field name for the checkbox.
140
+ - Label: Provide a descriptive label for the checkbox to convey its purpose.
141
+ - Mandatory: Indicates whether the checkbox is required.
142
+ - Help text: Provide optional help text for the checkbox.
143
+
144
+ ### Validation
145
+ - This checkbox widget must be placed within a Form widget to be effective.
146
+ - The field name must be unique and start with `custom_`, if the selected input type is `custom`.
147
+
148
+ ## Form Date Widget
149
+ <img src="images/form_date_preview.png" width="350" alt="Screenshot">
150
+
151
+ The `Form Date` widget allows users to input dates in various formats. You can customize the label, date format, field name, and specify whether the date input is mandatory.
152
+
153
+ ### Properties
154
+
155
+ - Label: Set the label for the date input field.
156
+ - Format: Choose between date-only and date-and-time formats.
157
+ - Field name: Define the field name for the date input.
158
+ - Mandatory: Indicates whether the date input is required.
159
+ - Help text: Provide optional help text for the date input.
160
+
161
+ ### Validation
162
+ - This date input widget must be placed within a Form widget to be effective.
163
+ - The field name must be unique and start with `custom_`.
164
+
165
+ ## Form Input Field Widget
166
+ <img src="images/form_input_preview.png" width="350" alt="Screenshot">
167
+
168
+ The `Form Input Field` widget adds customizable input fields to your form. You can define the following properties: label, placeholder, input type, custom type, custom field name, and help text.
169
+
170
+ ### Properties
171
+
172
+ - Input type: Select the type of input, such as name, email, phone number, or custom.
173
+ - Custom input type: Specify custom input types, single-line or multi-line.
174
+ - Field name: Define the field name for the input.
175
+ - Label: Provide a descriptive label for the input field to convey its purpose.
176
+ - Placeholder: Define a placeholder text for the input field, providing guidance to users.
177
+ - Mandatory: Indicates whether the input field is required.
178
+ - Help text: Provide optional help text for the input field.
179
+
180
+ ### Validation
181
+ - This input field widget must be placed within a Form widget to be effective.
182
+ - The field name must be unique and start with `custom_`, if the selected input type is `custom`.
183
+
184
+ ## Form Rating Widget
185
+ <img src="images/form_rating_preview.png" width="350" alt="Screenshot">
186
+
187
+ The `Form Rating` widget integrates a rating control into your form, allowing users to provide ratings for a particular item or experience.
188
+
189
+ ### Properties
190
+
191
+ - Label: Set the label for the rating control.
192
+ - Field name: Define the field name for the rating.
193
+ - Help text: Provide optional help text for the rating control.
194
+
195
+ ### Validation
196
+ - This rating widget must be placed within a Form widget to be effective.
197
+ - The field name must be unique and start with `custom_`.
198
+
199
+ ## Form Select Widget
200
+ <img src="images/form_select_preview.png" width="350" alt="Screenshot">
201
+
202
+ The `Form Select` widget enables you to create single or multiple selection elements, including radio buttons, dropdowns, or checkboxes in your form.
203
+
204
+ ### Properties
205
+
206
+ - Input type: Choose the type of input, which can be single select (radio buttons or dropdown) or multi-select (checkboxes).
207
+ - Label: Specify the label for the select input.
208
+ - Items: Configure the items or options available for selection.
209
+ - Field name: Define the field name for the select input.
210
+ - Mandatory: Indicates whether selection is required for single select inputs (radio buttons and dropdowns).
211
+ - Help text: Provide optional help text for the select input.
212
+
213
+ ### Validation
214
+ - This select widget must be placed within a Form widget to be effective.
215
+ - The field name must be unique and start with `custom_`.
216
+
217
+
218
+ ## Form Hidden Field Widget
219
+ <img src="images/form_hidden_field_preview.png" width="350" alt="Screenshot">
220
+
221
+ The `Form Hidden Field` widget includes hidden form fields. These fields are typically used to store information that is sent on every submission of the form.
222
+
223
+ ### Properties
224
+
225
+ - Field name: Define the field name for the hidden field.
226
+ - Hidden value: Specify the hidden value for this field.
227
+
228
+ ### Validation
229
+ - This hidden field widget must be placed within a Form widget to be effective.
230
+ - The field name must be unique and start with `custom_`.
231
+
232
+ ## Form Conditional Container Widget
233
+ <img src="images/form_condtional_container_preview.png" width="350" alt="Screenshot">
234
+
235
+ The `Form Conditional Container` widget allows you to conditionally show or hide other widgets based on user selections. You can define conditions and provide content that appears based on the selected conditions. Furthermore, this widget enables you to create nested conditions by adding a Conditional Container widget within a Condition widget, allowing for intricate conditional logic.
236
+
237
+ ### Properties
238
+
239
+ - Input type: Choose the input type for conditional selection including radio buttons or dropdowns.
240
+ - Label: Set the label for the conditional container.
241
+ - Conditions: Define conditions that determine which content is shown.
242
+ - Field name: Define the field name for the conditional container.
243
+ - Mandatory: Indicates whether the conditional container is required.
244
+ - Help text: Provide optional help text for the conditional container.
245
+
246
+ ### Validation
247
+ - This conditional container widget must be placed within a Form widget to be effective.
248
+ - The field name must be unique and start with `custom_`.
249
+
250
+ ## Form Condition Widget
251
+
252
+ The `Form Condition` widget is used within the `Form Conditional Container` widget to define a single condition and specify the content to display when this condition is met.
253
+
254
+ ### Properties
255
+
256
+ - Title: Set the title for the condition.
257
+ - Content: Configure the content to display when this condition is met. You can leave the content empty if you want no other widgets to be shown when this condition is met.
258
+
259
+ ### Validation
260
+ - The Form Condition Widget can only be used inside the Form Conditional Container Widget.
261
+
262
+ # Review Feature
263
+
264
+ The Review feature allows users to review their answers before submitting a form with multiple steps. It provides a dialog where users can see all their responses at a glance.
265
+
266
+ ### Review Dialog
267
+
268
+ <img src="images/review_dialog.png" width="350" alt="Screenshot">
269
+
270
+ ### Closing the Dialog
271
+
272
+ Users can close the review dialog in three ways:
273
+
274
+ 1. **Click Outside:** Clicking anywhere outside the dialog will close it.
275
+ 2. **ESC Key:** Users can press the "ESC" key on their keyboard to close the dialog.
276
+ 3. **Close Button:** The dialog also includes a close button in the footer for users who prefer to close it manually.
277
+
278
+ It's important to note that the footer with the close button is not mandatory. Users can easily close the dialog using any of the methods mentioned above.
279
+
280
+ ### Inclusion of Elements
281
+
282
+ By default, the Review feature checks and includes elements of types "input," "select," and "textarea" when displaying responses in the review. This means that only responses from these elements are shown in the review dialog, allowing users to verify their information.
283
+
284
+ Custom widgets with hidden inputs can also have their values displayed in the review when the "show-in-review" class is added to the hidden input.
285
+
286
+ The Review feature is specifically designed for forms with multiple steps, providing users with an opportunity to verify their responses before final submission.
287
+
288
+
289
+ # Custom Form Widgets
290
+
291
+ In addition to the built-in form widgets, you have the flexibility to use custom widgets, allowing you to enhance your forms with unique features and interactions. Custom form widgets can be used for various purposes, such as sliders, tri-state checkboxes, or any specialized input elements that you create as custom widgets and incorporate into your forms.
292
+
293
+ ## Custom Form Widget Validation
294
+
295
+ When working with custom form widgets, it's important to ensure proper validation to maintain the integrity of your forms. The Scrivito Form Widgets package provides several useful functions for this purpose:
296
+
297
+ #### `insideFormContainerValidation`
298
+
299
+ - This function checks if the given widget is placed inside a form. It's crucial to confirm that your custom form widgets are correctly structured within a form container to maintain the expected behavior.
300
+
301
+ #### `getFormContainer`
302
+
303
+ - Use this function to find the first form container within your widget hierarchy. It returns the container widget, or `null` if no container is found.
304
+
305
+ #### `customFieldNameValidation`
306
+
307
+ - This function checks if the custom field attribute, which must be named "customFieldName," is unique within the widget hierarchy. To meet the requirements for custom field names, it should start with "custom_" and be unique.
308
+
309
+ For custom widgets that use hidden inputs and want to show the hidden input values in the review, you should add the class "show-in-review" to the hidden input element. This class indicates that the hidden input's value should be displayed in the review.
310
+
311
+ **Note:** The review feature displays both the question and the answer for each input. To ensure that the question is displayed in the review, you should provide a "label" or "title" attribute within your custom widgets.
312
+
313
+ By following these guidelines and specifying these validation functions in your custom form widget edit configuration, you can create and integrate custom form widgets seamlessly into your forms, ensuring that they function as intended.
314
+
315
+ Custom form widgets offer endless possibilities for tailoring your forms to your specific needs, enhancing the user experience and interaction.
316
+
317
+ ## Custom Form Widgets Example
318
+
319
+ To gain a better understanding of how custom form widgets can be used, let's explore an example. In this case, we'll create a custom slider widget that includes a hidden input, a label, and the "show-in-review" class to display the label and value in the review.
320
+
321
+ ### Creating a Custom Slider Widget
322
+
323
+ 1. Start by creating a new folder named "FormSliderWidget" inside the "Widgets" folder of your Scrivito App.
324
+
325
+ 2. Inside the "FormSliderWidget" folder, create three files:
326
+
327
+ #### FormSliderWidgetClass.js
328
+
329
+ ```js
330
+ import * as Scrivito from "scrivito";
331
+
332
+ export const FormSliderWidget = Scrivito.provideWidgetClass(
333
+ "FormSliderWidget",
334
+ {
335
+ attributes: {
336
+ label: "string",
337
+ customFieldName: "string",
338
+ },
339
+ }
340
+ );
341
+
342
+ ```
343
+
344
+ #### FormSliderWidgetComponent.js
345
+
346
+ ```js
347
+ import * as React from "react";
348
+ import * as Scrivito from "scrivito";
349
+
350
+ Scrivito.provideComponent("FormSliderWidget", ({ widget }) => {
351
+ const [value, setValue] = React.useState(50);
352
+ return (
353
+ <div className="row mb-3">
354
+ <span className="text-super">{widget.get("label")}</span>
355
+ <input
356
+ type="range"
357
+ onChange={(e) => setValue(e.currentTarget.value)}
358
+ min="0"
359
+ max="100"
360
+ value={value}
361
+ />
362
+ <input
363
+ type="hidden"
364
+ className="show-in-review"
365
+ name={widget.get("customFieldName")}
366
+ value={value}
367
+ ></input>
368
+ </div>
369
+ );
370
+ });
371
+
372
+ ```
373
+
374
+ #### FormSliderWidgetEditingConfig.js
375
+
376
+ ```js
377
+ import * as Scrivito from "scrivito";
378
+ import {
379
+ customFieldNameValidation,
380
+ insideFormContainerValidation,
381
+ } from "scrivito-neoletter-form-widgets";
382
+
383
+ Scrivito.provideEditingConfig("FormSliderWidget", {
384
+ title: "Form Slider",
385
+ attributes: {
386
+ label: { title: "Label" },
387
+ customFieldName: { title: "Field name" },
388
+ },
389
+ properties: ["label", "customFieldName"],
390
+ initialContent: {
391
+ label: "Slide me",
392
+ customFieldName: "custom_",
393
+ },
394
+ validations: [insideFormContainerValidation, customFieldNameValidation],
395
+ });
396
+
397
+ ```
398
+
399
+ Please note that this example is intended to provide a basic demonstration of creating a custom form widget. It does not include styles or detailed CSS. You can further enhance the appearance and functionality of your custom widgets to match your specific design and usability requirements.