You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
6.3 KiB
1 lines
6.3 KiB
(function(_){function e(e){for(var o,n,a=e[0],i=e[1],c=e[2],u=0,l=[];u<a.length;u++)n=a[u],Object.prototype.hasOwnProperty.call(t,n)&&t[n]&&l.push(t[n][0]),t[n]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(_[o]=i[o]);d&&d(e);while(l.length)l.shift()();return s.push.apply(s,c||[]),r()}function r(){for(var _,e=0;e<s.length;e++){for(var r=s[e],o=!0,a=1;a<r.length;a++){var i=r[a];0!==t[i]&&(o=!1)}o&&(s.splice(e--,1),_=n(n.s=r[0]))}return _}var o={},t={preview:0},s=[];function n(e){if(o[e])return o[e].exports;var r=o[e]={i:e,l:!1,exports:{}};return _[e].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=_,n.c=o,n.d=function(_,e,r){n.o(_,e)||Object.defineProperty(_,e,{enumerable:!0,get:r})},n.r=function(_){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})},n.t=function(_,e){if(1&e&&(_=n(_)),8&e)return _;if(4&e&&"object"===typeof _&&_&&_.__esModule)return _;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:_}),2&e&&"string"!=typeof _)for(var o in _)n.d(r,o,function(e){return _[e]}.bind(null,o));return r},n.n=function(_){var e=_&&_.__esModule?function(){return _["default"]}:function(){return _};return n.d(e,"a",e),e},n.o=function(_,e){return Object.prototype.hasOwnProperty.call(_,e)},n.p="/form-generator/";var a=window["webpackJsonp"]=window["webpackJsonp"]||[],i=a.push.bind(a);a.push=e,a=a.slice();for(var c=0;c<a.length;c++)e(a[c]);var d=i;s.push([1,"chunk-vendors"]),r()})({1:function(_,e,r){_.exports=r("2c42")},"2c42":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("7ae7"),core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("af82"),core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("9a14"),core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_2__),C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("d9a3"),C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__),C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("c9db"),C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__),C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("de3e"),C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_5__),C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("618d"),C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(C_Users_Administrator_Desktop_form_generator_dev_node_modules_core_js_3_6_4_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_6__),vue__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("8bbf"),vue__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_7__),_utils_loadScript__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("c88b"),$previewApp=document.getElementById("previewApp"),childAttrs={file:"",dialog:' width="600px" class="dialog-width" v-if="visible" :visible.sync="visible" :modal-append-to-body="false" '};function loadScriptQueue(_,e){var r=_.shift();0===_.length?Object(_utils_loadScript__WEBPACK_IMPORTED_MODULE_8__["a"])(r,e):Object(_utils_loadScript__WEBPACK_IMPORTED_MODULE_8__["a"])(r,(function(){loadScriptQueue(_,e)}))}function buildLinks(_){var e="";return _.forEach((function(_){e+='<link href="'.concat(_,'" rel="stylesheet">')})),e}function init(_){if("refreshFrame"===_.data.type){var e=_.data.data,r=childAttrs[e.generateConf.type],o="";Array.isArray(e.links)&&e.links.length>0&&(o=buildLinks(e.links)),$previewApp.innerHTML="".concat(o,"<style>").concat(e.css,'</style><div id="app"></div>'),Array.isArray(e.scripts)&&e.scripts.length>0?loadScriptQueue(JSON.parse(JSON.stringify(e.scripts)),(function(){newVue(r,e.js,e.html)})):newVue(r,e.js,e.html)}}function newVue(attrs,main,html){main=eval("(".concat(main,")")),main.template="<div>".concat(html,"</div>"),new vue__WEBPACK_IMPORTED_MODULE_7___default.a({components:{child:main},data:function(){return{visible:!0}},template:"<div><child ".concat(attrs,"/></div>")}).$mount("#app")}window.addEventListener("message",init,!1)},"8bbf":function(_,e){_.exports=Vue},c88b:function(_,e,r){"use strict";function o(_,e){var r=e||function(){},o=document.createElement("script");o.src=_,o.id=_,document.body.appendChild(o);var t="onload"in o?s:n;function s(e){var o=this;e.onload=function(){o.onerror=o.onload=null,r(null,e)},e.onerror=function(){o.onerror=o.onload=null,r(new Error("Failed to load ".concat(_)),e)}}function n(_){var e=this;_.onreadystatechange=function(){"complete"!==e.readyState&&"loaded"!==e.readyState||(e.onreadystatechange=null,r(null,_))}}t(o)}e["a"]=o}});
|