/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@jspreadsheet/formifier@5.0.3/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";if(!jSuites&&"function"==typeof require)var jSuites=require("jsuites");if(!lemonade&&"function"==typeof require)var lemonade=require("lemonadejs");if(!studio&&"function"==typeof require)var studio=require("@lemonadejs/studio");function a0_0xc247(e,t){const n=a0_0x144f();return(a0_0xc247=function(e,t){return n[e-450]})(e,t)}function a0_0x144f(){const e=["forms","formify","getHeader","guid","1UOXMiI","div","record","form","3579485xDtjjl","rows","data","worksheet","/formify","emailOnCompletion","amd","setConfig","oneEntryPerUser","goto",'<div class="jss_object">\n            <lm-modal :ref="self.modal" title="Formify" icon="save" width="680" height="540" :closed="true" :draggable="true" :closable="true" :overflow="true">\n                <div class="jss_style_p20">\n                <lm-tabs :selected="0" :ref="self.tabs">\n                    <div title="',"10eVOoly","link","8bBomfg","exports","Thanks for complete the form","selected","getServerUrl","2262348aBJTOi","url","4726656KPRVoi","code","line","open","3307666MxVEsL","dropdown","stringify","Config","type","push","629620ODoLaL","https://jspreadsheet.com/jspreadsheet/logo.png","'\n});\n<\/script>",'"><div :ref="self.form"></div></div>\n                    <div title="',"completeMessage","config","reset","options","call","instructions","appendChild","object","insertRow","tools","319VDzuKe","length","client","logo","2642572VrRBLx","/api/","columns","parent","modal","contextMenu","source","indexOf","tabs","onbeforesave","formifier","12807135IZIwYm","toString",'<div id="formify"></div>\n<script src="https://cdn.jsdelivr.net/npm/@jspreadsheet/formify/dist/index.min.js"><\/script>\n<script>\nformify(document.getElementById(\'formify\'), {\n\turl: \'',"render"];return(a0_0x144f=function(){return e})()}!function(e){const t=a0_0xc247;for(e=e();;)try{if(-parseInt(t(514))*(parseInt(t(471))/2)+-parseInt(t(465))/3+-parseInt(t(495))/4*(-parseInt(t(458))/5)+-parseInt(t(467))/6+-parseInt(t(518))/7+parseInt(t(460))/8*(parseInt(t(506))/9)+parseInt(t(477))/10*(parseInt(t(491))/11)==863119)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a0_0x144f),function(e,t){const n=a0_0xc247;typeof exports===n(488)&&"undefined"!=typeof module?module[n(461)]=t():"function"==typeof define&&define[n(453)]?define(t):e[n(505)]=t()}(this,(function(){let e=null;const t=function(e){return document.dictionary&&(e=document.dictionary[e]||e),e},n=function(){const e=a0_0xc247;return{link:this[e(459)],columns:this[e(497)],instructions:this[e(486)],completeMessage:this.completeMessage,emailOnCompletion:this.emailOnCompletion,oneEntryPerUser:this[e(455)]}},s=function(){const s=a0_0xc247;let o=this;const i=function(t){const n=a0_0xc247;return(t=JSON.parse(JSON[n(473)](this.options.columns[t])))[n(475)]===n(516)&&(t.type=n(472),t[n(501)]=e.editors[n(516)].getSource(this,t)),t};return o.save=function(){const e=a0_0xc247;o.worksheet[e(454)]({formify:n[e(485)](o)}),o[e(470)](o[e(450)])},o[s(470)]=function(t){o[s(450)]=t;let n,r=t[s(484)][s(511)]||{},l={};l[s(497)]=[];for(var a=0;a<t[s(484)][s(497)][s(492)];a++)r[s(497)]&&-1!==r[s(497)][s(502)](""+a)?l[s(497)][s(476)](i.call(t,a)):l[s(497)][s(476)]({type:"hidden"});l[s(486)]=r[s(486)]||"Please fill the form below",l[s(481)]=r.completeMessage||s(462),l[s(466)]=s(496)+t[s(498)][s(482)][s(513)]+"/"+t[s(498)].worksheets[s(502)](t)+s(451),!l[s(494)]&&(l[s(494)]=s(478)),l[s(504)]=function(e,t,n){e[s(517)][s(483)](),e=Object.keys(t),n=[];for(let o=0;o<e[s(492)];o++)n[s(476)](t[e[o]]);return o[s(450)][s(489)]([{data:n}]),o[s(450)][s(456)](o[s(450)][s(519)][s(492)]),jSuites.notification({message:"Successfully saved"}),!1},e[s(510)][s(485)](t,o[s(517)],l),a=[];for(let e=0;e<t.options[s(497)][s(492)];e++)a[s(476)]({value:e[s(507)](),text:t[s(512)](e)});o[s(472)][s(520)]=a,o[s(497)]=r.columns||[],o[s(486)]=r[s(486)]||"",o[s(481)]=r[s(481)]||"",o[s(452)]=r[s(452)]||"",o[s(455)]=r[s(455)]||"",o[s(503)][s(463)]=0,(t=null==(n=e[s(493)])?void 0:n[s(464)]())&&(o.url=t+l[s(466)],o[s(468)]=s(508)+o[s(466)]+s(479))},s(457)+t(s(474))+'">\n                        <div class=\'jss_style_form_group\'>\n                            <label>Visible columns</label>\n                            <Dropdown :multiple="true" :autocomplete="true" :bind="self.columns" :ref="self.dropdown"/>\n                        </div>\n                        <div class=\'jss_style_form_group\'>\n                            <label>Instructions</label>\n                            <input type=\'text\' name="instructions" :bind="self.instructions" />\n                        </div>\n                        <div class=\'jss_style_form_group\'>\n                            <label>Thank you message</label>\n                            <textarea name="completeMessage" :bind="self.completeMessage" style=\'height:105px;\' ></textarea>\n                        </div>\n                        <div class=\'jss_style_form_group\'>\n                            <Switch text="Send me an email every new entry" :bind="self.emailOnCompletion"/>\n                        </div>\n                        <div class=\'jss_style_form_group\'>\n                            <Switch text="Limit one entry per user" :bind="self.oneEntryPerUser"/>\n                        </div>\n                        <br>\n                        <div class=\'jss_style_form_group\'>\n                            <input type=\'button\' value=\'Save\' class=\'jss_style_button\' onclick="self.save" />\n                        </div>\n                    </div>\n                    <div title="'+t("Preview")+s(480)+t("Sharing")+"\">\n                        <div class='jss_style_form_group'>\n                            <label>Public link</label>\n                            <input type='text' readonly=\"readonly\" value=\"{{self.url}}\">\n                        </div>\n                        <div class='jss_style_form_group'>\n                            <label>Embeddable code</label>\n                            <textarea readonly=\"readonly\" style='height:200px;'>{{self.code}}</textarea>\n                        </div>\n                    </div>\n                </lm-tabs>\n                </div>\n            </lm-modal>\n        </div>"};return function(t,n){const o=a0_0xc247;e=this;let i={},r={};return r[o(500)]=function(e,t,n,s,i,l,a,c){return null==t&&null==n||(i[i.length-2][o(475)]!==o(469)&&i[o(476)]({type:"line"}),i[o(476)]({title:"Formifier",onclick:function(){r[o(470)](e)}})),i},r[o(470)]=function(e){i[o(499)].open(),i[o(470)](e)},n=document.createElement(o(515)),t[o(490)][o(487)](n),lemonade[o(509)](s,n,i),r}}));
//# sourceMappingURL=/sm/bb7b5a072398f6528f295a71b6abba3733587af0bdf977897b7391569467228c.map