-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformio-script.test.min.js
2 lines (2 loc) · 2.17 KB
/
formio-script.test.min.js
1
2
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FormioScript=t():e.FormioScript=t()}(self,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{init:()=>c});const o=window.formioQldCdnVersion||"v2/v2.x.x-latest",r=(e,t,o)=>{if(t>e.length-1)return FormioLoader.initFormio(),void o();const{type:n,async:i,src:c,href:s,rel:d}=e[t];document.querySelector("".concat(n,"[src='").concat(c,"']"))||document.querySelector("".concat(n,"[href='").concat(s,"']"))?r(e,t+1,o):new Promise((e=>{const t=document.createElement(n);void 0!==i&&t.setAttribute("async",i),void 0!==c&&t.setAttribute("src",c),void 0!==s&&t.setAttribute("href",s),void 0!==d&&t.setAttribute("rel",d),document.body.appendChild(t),t.onload=()=>{console.info("FormioScript loaded:",c||s),e()}})).then((()=>{r(e,t+1,o)}))},n=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return"https://".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"static",".qgov.net.au/formio-qld/").concat(e)}("test-static"),i=(e=>[{type:"script",src:"".concat(e,"/formio.full.js"),async:!1},{type:"script",src:"".concat(e,"/premium.min.js"),async:!1},{type:"script",src:"".concat(e,"/formio-qld.js"),async:!1},{type:"script",src:"".concat(e,"/formio-loader.js"),async:!1},{type:"link",href:"".concat(e,"/formio.full.min.css"),rel:"stylesheet"},{type:"link",href:"".concat(e,"/premium.css"),rel:"stylesheet"},{type:"link",href:"".concat(e,"/formio-qld.min.css"),rel:"stylesheet"}])(n),c=()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((o=>{window.formioScriptLoaded?"undefined"!=typeof FormioLoader&&setTimeout((()=>{FormioLoader.initFormio(t),o()})):(window.formioScriptLoaded=!0,r(e,0,o))}))}(i,n);return t})()));
//# sourceMappingURL=formio-script.test.min.js.map