(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[93],{5210:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1604),o=n.n(r),s=n(361),a=n.n(s)()(o());a.push([e.id,"html,\nbody {\n  width: 100%;\n  height: 100%;\n  padding: 0;\n  margin: 0;\n}\n","",{version:3,sources:["webpack://./src/main/main.css"],names:[],mappings:"AAAA;;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,SAAS;AACX",sourcesContent:["html,\nbody {\n  width: 100%;\n  height: 100%;\n  padding: 0;\n  margin: 0;\n}\n"],sourceRoot:""}]);const i=a},361:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var d=[].concat(e[u]);r&&a[d[0]]||(void 0!==s&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=s),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},1604:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),s="/*# ".concat(o," */");return[t].concat([s]).join("\n")}return[t].join("\n")}},487:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},a=[],i=0;i<e.length;i++){var c=e[i],u=r.base?c[0]+r.base:c[0],d=s[u]||0,p="".concat(u," ").concat(d);s[u]=d+1;var l=n(p),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==l)t[l].references++,t[l].updater(f);else{var m=o(f,r);r.byIndex=i,t.splice(i,0,{identifier:p,updater:m,references:1})}a.push(p)}return a}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var s=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<s.length;a++){var i=n(s[a]);t[i].references--}for(var c=r(e,o),u=0;u<s.length;u++){var d=n(s[u]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}s=c}}},2052:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},1469:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},4010:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},631:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9329:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1093:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MainApplication:()=>x,MainTemplate:()=>o});var r=n(3147);const o=r.html`
  <design-system-editor custom-design-mode="${e=>e.tokensPath}">
    <design-system-preview></design-system-preview>
    <design-system-export slot="export" tokensPath="${e=>e.tokensPath}"></design-system-export>
  </design-system-editor>
`;var s=n(5286),a=n(7870),i=n(5774),c=n(3896);a.DesignSystemPreview,a.DesignSystemEditor,a.DesignSystemExport;const u=(0,n(5174).createLogger)("desgn-system-configurator");var d=n(487),p=n.n(d),l=n(631),f=n.n(l),m=n(2052),h=n.n(m),v=n(4010),g=n.n(v),y=n(1469),b=n.n(y),A=n(9329),C=n.n(A),_=n(5210),E={};E.styleTagTransform=C(),E.setAttributes=g(),E.insert=h().bind(null,"head"),E.domAPI=f(),E.insertStyleElement=b();p()(_.Z,E);_.Z&&_.Z.locals&&_.Z.locals;const S=r.css`
  :host {
    display: flex;
    height: 100%;
    overflow: hidden;
  }
`,w="design-system-configurator";let x=class extends r.FASTElement{constructor(){super(...arguments),this.ready=!1}connectedCallback(){super.connectedCallback(),fetch(`http://localhost:${location.port}/api/tokens`).then((e=>e.json())).then((e=>{e.design_tokens&&(this.tokensPath=!0),this.$emit(a.EventName.APPLY_CUSTOM_DESIGN,e)})).catch((e=>{console.error("Error fetching path:",e)})),u.debug(`${w} is now connected to the DOM`),this.loadRemotes()}loadRemotes(){return(0,s.__awaiter)(this,void 0,void 0,(function*(){yield(0,s.__awaiter)(void 0,void 0,void 0,(function*(){(0,i.provideDesignSystem)().register(i.baseComponents),(0,c.provideFASTDesignSystem)().register(c.allComponents)}));this.ready=!0}))}};(0,s.__decorate)([r.observable],x.prototype,"ready",void 0),(0,s.__decorate)([r.attr],x.prototype,"tokensPath",void 0),x=(0,s.__decorate)([(0,r.customElement)({name:w,template:o,styles:S})],x)}}]);
//# sourceMappingURL=93.7e5402ec8e1c2ae40ca6c04728db47d30c0118666e2af355c799480ef746b4c4.js.map