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