-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformio-script.gitbridge.min.js
2 lines (2 loc) · 2.25 KB
/
formio-script.gitbridge.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:()=>s});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:i,async:n,src:c,href:s,rel:d}=e[t];document.querySelector("".concat(i,"[src='").concat(c,"']"))||document.querySelector("".concat(i,"[href='").concat(s,"']"))?r(e,t+1,o):new Promise((e=>{const t=document.createElement(i);void 0!==n&&t.setAttribute("async",n),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)}))},i=window.formIOGitBridgeID||"248740",n=(c="/__data/assets/git_bridge/0025/".concat(i),[{type:"script",src:"".concat(c,"/formio.full.js"),async:!1},{type:"script",src:"".concat(c,"/premium.min.js"),async:!1},{type:"script",src:"".concat(c,"/formio-qld.js"),async:!1},{type:"script",src:"".concat(c,"/formio-loader.js"),async:!1},{type:"link",href:"".concat(c,"/formio.full.min.css"),rel:"stylesheet"},{type:"link",href:"".concat(c,"/premium.css"),rel:"stylesheet"},{type:"link",href:"".concat(c,"/formio-qld.min.css"),rel:"stylesheet"}]);var c;const s=()=>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))}))}(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)}());return t})()));
//# sourceMappingURL=formio-script.gitbridge.min.js.map