@ebrains/vue 0.4.0-alpha.0 → 0.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analytics-1cde8e4a-BDRcCMlV.mjs +24 -0
- package/analytics-1cde8e4a-B_MD-9qW.js +1 -0
- package/color-2554aad6-CCcV5UJZ.mjs +131 -0
- package/color-2554aad6-D1hFGX4H.js +1 -0
- package/{color-primary-palette_6.entry-CSDWEKLH.mjs → color-primary-palette_6.entry-CgeStD0V.mjs} +21 -21
- package/color-primary-palette_6.entry-c_K7930i.js +1 -0
- package/correct-use-of-colors.entry-De5Tcxdm.mjs +59 -0
- package/correct-use-of-colors.entry-DpmXW_CD.js +1 -0
- package/eds-accordion.entry-B8TjhnWX.mjs +49 -0
- package/eds-accordion.entry-BySfMYU2.js +4 -0
- package/eds-alert_17.entry-BfpBSBVW.js +14999 -0
- package/eds-alert_17.entry-IJq6baZd.mjs +16075 -0
- package/eds-avatar_4.entry-B7CV7v_n.mjs +283 -0
- package/eds-avatar_4.entry-D1CDRW_R.js +149 -0
- package/eds-card-generic.entry-BhLK-nyp.js +1 -0
- package/eds-card-generic.entry-DIHPUjbI.mjs +63 -0
- package/{eds-card-project.entry-C3eyu1U0.mjs → eds-card-project.entry-C2dWgXXW.mjs} +12 -11
- package/eds-card-project.entry-CunHqbYK.js +1 -0
- package/{eds-card-section.entry-DU-1TB0I.js → eds-card-section.entry-0n2V-MH6.js} +1 -1
- package/{eds-card-section.entry-Dxk-Ob_Y.mjs → eds-card-section.entry-Ccjil38X.mjs} +4 -4
- package/eds-card-tags.entry-C6jjLiGA.mjs +13 -0
- package/{eds-card-tags.entry-YPPBWdFq.js → eds-card-tags.entry-CQS5AtAg.js} +1 -1
- package/{eds-card-tool.entry-1_RNWh8n.mjs → eds-card-tool.entry-Bi8w0xds.mjs} +7 -7
- package/eds-card-tool.entry-DJA23zJf.js +1 -0
- package/{eds-card-wrapper.entry-BfCDGeFs.js → eds-card-wrapper.entry-BKPCc7ci.js} +1 -1
- package/{eds-card-wrapper.entry-C4pNRjIj.mjs → eds-card-wrapper.entry-UPnkq2JI.mjs} +4 -4
- package/{eds-code-block.entry-B2xATQ7r.mjs → eds-code-block.entry-BZTLGjqq.mjs} +47 -47
- package/{eds-code-block.entry-DQEDpAjn.js → eds-code-block.entry-Ckb3jisn.js} +3 -3
- package/{eds-components-section.entry-D08woahG.js → eds-components-section.entry-B3WrdIfL.js} +45 -36
- package/{eds-components-section.entry-DR-984-3.mjs → eds-components-section.entry-D1ovrn93.mjs} +56 -37
- package/{eds-docs-palettes.entry-qKOj3XU9.js → eds-docs-palettes.entry-Bk77Xn04.js} +1 -1
- package/{eds-docs-palettes.entry-B0yU2ZpL.mjs → eds-docs-palettes.entry-lpT0ypSs.mjs} +2 -2
- package/{eds-docs-tokens.entry-BVHiM7cK.mjs → eds-docs-tokens.entry-Bi35zxEM.mjs} +2 -2
- package/{eds-docs-tokens.entry-BtRXzjrp.js → eds-docs-tokens.entry-DCHw-jrS.js} +1 -1
- package/eds-dropdown_2.entry-Bamjbo1o.mjs +115 -0
- package/eds-dropdown_2.entry-YEBzyKJu.js +1 -0
- package/eds-form.entry-a52cYx3b.js +7153 -0
- package/eds-form.entry-xm937wbh.mjs +7340 -0
- package/eds-frame.entry-BnT9nQwa.js +1 -0
- package/eds-frame.entry-CU7GoLj6.mjs +74 -0
- package/eds-icon-arrow-diagonal.entry-fzsCJiPP.js +1 -0
- package/eds-icon-arrow-diagonal.entry-kClkB8LF.mjs +13 -0
- package/eds-icon-arrow-right.entry-B75Ra6OD.js +1 -0
- package/eds-icon-arrow-right.entry-DX6A-VKL.mjs +13 -0
- package/{eds-icon-bluesky.entry-Dppj9cuC.js → eds-icon-bluesky.entry-7tzCZSoL.js} +1 -1
- package/eds-icon-bluesky.entry-BNSdVu2K.mjs +13 -0
- package/eds-icon-chevron-down.entry-BLvZ3e_N.mjs +13 -0
- package/{eds-icon-chevron-down.entry-CidjiGQS.js → eds-icon-chevron-down.entry-BUG6E9eR.js} +1 -1
- package/eds-icon-chevron-left.entry-BT-KYjSo.js +1 -0
- package/eds-icon-chevron-left.entry-Vq-R3b59.mjs +13 -0
- package/{eds-icon-chevron-right.entry-iy6d6tux.mjs → eds-icon-chevron-right.entry-B1qzmGrD.mjs} +2 -2
- package/eds-icon-chevron-right.entry-BmU_I0Y1.js +1 -0
- package/eds-icon-chevron-up.entry-DXXRgw1V.js +1 -0
- package/eds-icon-chevron-up.entry-DuySJU_i.mjs +13 -0
- package/eds-icon-close.entry-DDxUAr21.mjs +13 -0
- package/{eds-icon-close.entry-CE-Nory7.js → eds-icon-close.entry-DS7BLTzl.js} +1 -1
- package/eds-icon-copy.entry-DNa1wI4F.mjs +13 -0
- package/{eds-icon-copy.entry-Bpe3I5b6.js → eds-icon-copy.entry-Nz_P5A7p.js} +1 -1
- package/eds-icon-eu.entry-CLQcoimB.js +1 -0
- package/eds-icon-eu.entry-DTdf6Skc.mjs +13 -0
- package/eds-icon-facebook.entry-B9szoikj.mjs +13 -0
- package/eds-icon-facebook.entry-knUdck2t.js +1 -0
- package/eds-icon-gitlab.entry-IO7f4hgL.mjs +13 -0
- package/eds-icon-gitlab.entry-pKxaKA0B.js +1 -0
- package/{eds-icon-linkedin.entry-CstoPbTS.js → eds-icon-linkedin.entry-BD__kbDV.js} +1 -1
- package/eds-icon-linkedin.entry-CryUW1Er.mjs +13 -0
- package/{eds-icon-loader.entry-CaGFh0gM.js → eds-icon-loader.entry-B_3Sd6PB.js} +1 -1
- package/eds-icon-loader.entry-CxizdRT8.mjs +13 -0
- package/eds-icon-mastodon.entry-7152lwgd.js +1 -0
- package/eds-icon-mastodon.entry-MyM74vvm.mjs +13 -0
- package/eds-icon-menu.entry-5RRmRTxa.mjs +13 -0
- package/eds-icon-menu.entry-BVU8htgo.js +1 -0
- package/eds-icon-more.entry-KE6_EsAg.mjs +13 -0
- package/{eds-icon-more.entry-68jT9AEw.js → eds-icon-more.entry-lossstHZ.js} +1 -1
- package/eds-icon-search.entry-Dg0wabdP.mjs +13 -0
- package/eds-icon-search.entry-DiYaxnYX.js +1 -0
- package/{eds-icon-success.entry-CACuZjP6.js → eds-icon-success.entry-CRu9Ssdi.js} +1 -1
- package/eds-icon-success.entry-_fWfddhX.mjs +13 -0
- package/eds-icon-twitter.entry-B4xPE3Vz.js +1 -0
- package/eds-icon-twitter.entry-DHFpeStb.mjs +13 -0
- package/eds-icon-user.entry-BOv2lInW.mjs +13 -0
- package/eds-icon-user.entry-DkRLDrdp.js +1 -0
- package/eds-icon-youtube.entry-CRRGbDsw.mjs +13 -0
- package/eds-icon-youtube.entry-DL5fWU8k.js +1 -0
- package/eds-input_7.entry-BZ9afXqe.js +7167 -0
- package/eds-input_7.entry-WvoE_Mue.mjs +7373 -0
- package/eds-login.entry-BRWK6otG.js +1 -0
- package/eds-login.entry-C0eOhlEq.mjs +58 -0
- package/{eds-logo-variations.entry-CUD-M_Fd.js → eds-logo-variations.entry-BnB25dDH.js} +1 -1
- package/eds-logo-variations.entry-Cw44vuQE.mjs +22 -0
- package/eds-matomo-notice.entry-BpwE1vQ3.js +1 -0
- package/{eds-matomo-notice.entry-kSuLDx9K.mjs → eds-matomo-notice.entry-DsLbzeqQ.mjs} +2 -2
- package/eds-modal.entry-B9gXEOjT.js +1 -0
- package/eds-modal.entry-CCy9SRVR.mjs +84 -0
- package/{eds-navigator.entry-BJTqtqld.js → eds-navigator.entry-B9scz8p_.js} +1 -1
- package/{eds-navigator.entry-DdzcXSRW.mjs → eds-navigator.entry-Dk-4UW_d.mjs} +2 -2
- package/eds-pagination_2.entry-D_sngThL.js +1 -0
- package/{eds-pagination_2.entry-B5PLo2Uu.mjs → eds-pagination_2.entry-M3CLFGN_.mjs} +9 -9
- package/{eds-progress-bar.entry-DdqH0plT.mjs → eds-progress-bar.entry-BtI2_94Z.mjs} +5 -5
- package/{eds-progress-bar.entry-BBFsASiy.js → eds-progress-bar.entry-D56TNSGj.js} +1 -1
- package/{eds-section-core_2.entry-D_nLUa29.js → eds-section-core_2.entry-BmbK_RfT.js} +1 -1
- package/{eds-section-core_2.entry-D3HYngR_.mjs → eds-section-core_2.entry-pmUkAIz7.mjs} +6 -6
- package/{eds-svg-repository.entry-C-kayEdW.mjs → eds-svg-repository.entry-B3xCCFOp.mjs} +2 -2
- package/{eds-svg-repository.entry-in72TP_1.js → eds-svg-repository.entry-DZ1FMRrQ.js} +2 -2
- package/{eds-tab.entry-BKYSiEkl.mjs → eds-tab.entry-Bpv6R_M0.mjs} +2 -2
- package/{eds-tab.entry-BUzZWKac.js → eds-tab.entry-DjpVgaDN.js} +1 -1
- package/eds-tabs-content.entry-Bj5wNmkr.js +1 -0
- package/{eds-tabs-content.entry-3cyCQAth.mjs → eds-tabs-content.entry-CzwoLZzR.mjs} +4 -4
- package/{eds-tabs.entry-B8q09in2.mjs → eds-tabs.entry-BYBPkYRs.mjs} +5 -5
- package/eds-tabs.entry-Cbc9yhHL.js +1 -0
- package/{eds-timeline.entry-DEcov8mq.js → eds-timeline.entry-Bq-eo4Og.js} +1 -1
- package/{eds-timeline.entry-DhHSQScv.mjs → eds-timeline.entry-DJYcN7rN.mjs} +2 -2
- package/{eds-tooltip.entry-BTunlfGS.mjs → eds-tooltip.entry-CTCdKTKM.mjs} +3 -3
- package/eds-tooltip.entry-eiFlYpfl.js +1 -0
- package/{eds-trl.entry-Bt28XH55.mjs → eds-trl.entry-8BXrp9SK.mjs} +8 -8
- package/{eds-trl.entry-BHrlC_5O.js → eds-trl.entry-DtffM-e5.js} +1 -1
- package/eds-user.entry-DfBE6LuF.js +1 -0
- package/eds-user.entry-ybggwcts.mjs +66 -0
- package/eds-vertical-stepper.entry-DpcwvOst.mjs +27 -0
- package/eds-vertical-stepper.entry-O_GJNo8B.js +1 -0
- package/generated/components.d.ts +3 -0
- package/incorrect-use-of-colors.entry-CDHLoNBa.js +1 -0
- package/incorrect-use-of-colors.entry-DbwiJCH0.mjs +42 -0
- package/{index-I5Asbjce.mjs → index-C-Gy1Lax.mjs} +555 -497
- package/index-D_kZU_4I.js +21 -0
- package/index.js +1 -1
- package/index.mjs +30 -27
- package/{keycloak-13893af6-BLzE1H6E.mjs → keycloak-d502ec16-Ce0iGqyk.mjs} +259 -247
- package/keycloak-d502ec16-m7LwS-Gh.js +9 -0
- package/{logo-space.entry-DsM5jXgX.js → logo-space.entry-D56IaLNE.js} +1 -1
- package/{logo-space.entry-GnVq-srD.mjs → logo-space.entry-DERJLkyL.mjs} +7 -7
- package/logo-variations-horizontal_2.entry-OY3Zka_7.js +7 -0
- package/logo-variations-horizontal_2.entry-wp9D1MMl.mjs +29 -0
- package/logo-wrong-usage.entry-BniBpQrN.js +1 -0
- package/logo-wrong-usage.entry-RgKFDObE.mjs +14 -0
- package/package.json +1 -1
- package/{token-list_3.entry-DaIOT7_R.js → token-list_3.entry-C0Tohj1W.js} +1 -1
- package/{token-list_3.entry-CReCwFzO.mjs → token-list_3.entry-Zgzwbhio.mjs} +4 -4
- package/{token-ratios.entry-Dh8kvz8R.mjs → token-ratios.entry-B7ZwRluK.mjs} +2 -2
- package/token-ratios.entry-bO5CkZ9D.js +1 -0
- package/token-spacing.entry-BTYazF9c.js +1 -0
- package/token-spacing.entry-_yyMlwbO.mjs +12 -0
- package/{token-typography.entry-DG-4k5gY.js → token-typography.entry-D-PPtDvs.js} +1 -1
- package/{token-typography.entry-CIETKadf.mjs → token-typography.entry-D4bxbB2m.mjs} +2 -2
- package/color-bb472c37-CKu54kOY.js +0 -1
- package/color-bb472c37-DDERsxdk.mjs +0 -207
- package/color-primary-palette_6.entry-BB6740d4.js +0 -1
- package/correct-use-of-colors.entry-LuyuqIQ9.js +0 -1
- package/correct-use-of-colors.entry-hvZ1z3tc.mjs +0 -59
- package/eds-accordion_33.entry-DFgdjlJE.mjs +0 -31360
- package/eds-accordion_33.entry-DlnbmQ6R.js +0 -29468
- package/eds-card-project.entry-BQ-dH8vM.js +0 -1
- package/eds-card-tags.entry-CIu6lD0P.mjs +0 -13
- package/eds-card-tool.entry-DgBqQucY.js +0 -1
- package/eds-icon-arrow-diagonal.entry-DjDB--sU.js +0 -1
- package/eds-icon-arrow-diagonal.entry-E5xC3m8H.mjs +0 -13
- package/eds-icon-arrow-right.entry-DaXIkUew.mjs +0 -13
- package/eds-icon-arrow-right.entry-odZ8U-W2.js +0 -1
- package/eds-icon-bluesky.entry-B3yW2mUC.mjs +0 -13
- package/eds-icon-chevron-down.entry-xWODzTE-.mjs +0 -13
- package/eds-icon-chevron-left.entry-CJyHE01I.mjs +0 -13
- package/eds-icon-chevron-left.entry-DjJj-hmG.js +0 -1
- package/eds-icon-chevron-right.entry-D8RyOADq.js +0 -1
- package/eds-icon-chevron-up.entry-TKCdY_T3.mjs +0 -13
- package/eds-icon-chevron-up.entry-ezV-v92v.js +0 -1
- package/eds-icon-close.entry-Brv3Uxu1.mjs +0 -13
- package/eds-icon-copy.entry-DQioS3t7.mjs +0 -13
- package/eds-icon-eu.entry-BzmYOiKL.js +0 -1
- package/eds-icon-eu.entry-KylDo55P.mjs +0 -13
- package/eds-icon-facebook.entry-DWZ02rD5.js +0 -1
- package/eds-icon-facebook.entry-DpS2m4v2.mjs +0 -13
- package/eds-icon-gitlab.entry-D8PM12SK.js +0 -1
- package/eds-icon-gitlab.entry-JX-5azIw.mjs +0 -13
- package/eds-icon-linkedin.entry-BylIVu8G.mjs +0 -13
- package/eds-icon-loader.entry-DZyUa8Na.mjs +0 -13
- package/eds-icon-mastodon.entry-BIckHn_q.mjs +0 -13
- package/eds-icon-mastodon.entry-DxNG__-Y.js +0 -1
- package/eds-icon-menu.entry-C9N6s8Oa.mjs +0 -13
- package/eds-icon-menu.entry-DwN-ZAWi.js +0 -1
- package/eds-icon-more.entry-MUkUL_e2.mjs +0 -13
- package/eds-icon-search.entry-CcwwFnns.mjs +0 -13
- package/eds-icon-search.entry-CrfMqbyi.js +0 -1
- package/eds-icon-success.entry-BUzsze9h.mjs +0 -13
- package/eds-icon-twitter.entry-B1Iw69NW.mjs +0 -13
- package/eds-icon-twitter.entry-BbStwaGv.js +0 -1
- package/eds-icon-user.entry-CNo6pger.mjs +0 -13
- package/eds-icon-user.entry-vYVsxfK7.js +0 -1
- package/eds-icon-youtube.entry-CBU7Dvkh.mjs +0 -13
- package/eds-icon-youtube.entry-CmCAFp7D.js +0 -1
- package/eds-login.entry-Bfztcsrc.js +0 -1
- package/eds-login.entry-XqWPWCDL.mjs +0 -46
- package/eds-logo-variations.entry-Cy_fbJLx.mjs +0 -22
- package/eds-matomo-notice.entry-CytVSgYS.js +0 -1
- package/eds-pagination_2.entry-DUsG8tcv.js +0 -1
- package/eds-rating.entry-CErokyKU.mjs +0 -38
- package/eds-rating.entry-p9oWKCkQ.js +0 -1
- package/eds-tabs-content.entry-Cg7U8c5D.js +0 -1
- package/eds-tabs.entry-DS6qBEo7.js +0 -1
- package/eds-tooltip.entry-sjwuhdKF.js +0 -1
- package/incorrect-use-of-colors.entry-DkY89xG1.mjs +0 -42
- package/incorrect-use-of-colors.entry-e4VhTVHS.js +0 -1
- package/index-D2H_BflF.js +0 -21
- package/keycloak-13893af6-NiM3zoVg.js +0 -9
- package/logo-variations-horizontal_2.entry-BeQ_r9Li.js +0 -7
- package/logo-variations-horizontal_2.entry-CC7tj8Hr.mjs +0 -29
- package/logo-wrong-usage.entry-Ct1Ae63m.mjs +0 -14
- package/logo-wrong-usage.entry-DkqcMaqp.js +0 -1
- package/token-ratios.entry-aBiRsmfr.js +0 -1
- package/token-spacing.entry-C5HX4qPq.mjs +0 -12
- package/token-spacing.entry-DDiMRsNO.js +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";function Y(f){if(!(this instanceof Y))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");if(typeof f!="string"&&!z(f))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(z(f)){const r="oidcProvider"in f?["clientId"]:["url","realm","clientId"];for(const t of r)if(!f[t])throw new Error(`The configuration object is missing the required '${t}' property.`)}var e=this,h,v=[],U,p={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;var R=!0,_=F(console.info),x=F(console.warn);globalThis.isSecureContext||x(`[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.
|
|
2
|
+
Continuing to run your application insecurely will lead to unexpected behavior and breakage.
|
|
3
|
+
|
|
4
|
+
For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts`),e.init=function(r={}){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,U=te();var t=["default","cordova","cordova-native"];if(t.indexOf(r.adapter)>-1?h=K(r.adapter):typeof r.adapter=="object"?h=r.adapter:window.Cordova||window.cordova?h=K("cordova"):h=K(),typeof r.useNonce<"u"&&(R=r.useNonce),typeof r.checkLoginIframe<"u"&&(p.enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(p.interval=r.checkLoginIframeInterval),r.onLoad==="login-required"&&(e.loginRequired=!0),r.responseMode)if(r.responseMode==="query"||r.responseMode==="fragment")e.responseMode=r.responseMode;else throw"Invalid value for responseMode";if(r.flow){switch(r.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=r.flow}if(r.timeSkew!=null&&(e.timeSkew=r.timeSkew),r.redirectUri&&(e.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),typeof r.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=r.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof r.pkceMethod<"u"){if(r.pkceMethod!=="S256"&&r.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${r.pkceMethod}.`);e.pkceMethod=r.pkceMethod}else e.pkceMethod="S256";typeof r.enableLogging=="boolean"?e.enableLogging=r.enableLogging:e.enableLogging=!1,r.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof r.scope=="string"&&(e.scope=r.scope),typeof r.acrValues=="string"&&(e.acrValues=r.acrValues),typeof r.messageReceiveTimeout=="number"&&r.messageReceiveTimeout>0?e.messageReceiveTimeout=r.messageReceiveTimeout:e.messageReceiveTimeout=1e4,e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var s=g(),i=g();i.promise.then(function(){e.onReady&&e.onReady(e.authenticated),s.setSuccess(e.authenticated)}).catch(function(o){s.setError(o)});var a=Q();function c(){var o=function(u){u||(d.prompt="none"),r.locale&&(d.locale=r.locale),e.login(d).then(function(){i.setSuccess()}).catch(function(m){i.setError(m)})},l=async function(){var u=document.createElement("iframe"),m=await e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});u.setAttribute("src",m),u.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),u.setAttribute("title","keycloak-silent-check-sso"),u.style.display="none",document.body.appendChild(u);var w=function(S){if(!(S.origin!==window.location.origin||u.contentWindow!==S.source)){var y=T(S.data);I(y,i),document.body.removeChild(u),window.removeEventListener("message",w)}};window.addEventListener("message",w)},d={};switch(r.onLoad){case"check-sso":p.enable?P().then(function(){C().then(function(u){u?i.setSuccess():e.silentCheckSsoRedirectUri?l():o(!1)}).catch(function(u){i.setError(u)})}):e.silentCheckSsoRedirectUri?l():o(!1);break;case"login-required":o(!0);break;default:throw"Invalid value for onLoad"}}function n(){var o=T(window.location.href);if(o&&window.history.replaceState(window.history.state,null,o.newUrl),o&&o.valid)return P().then(function(){I(o,i)}).catch(function(l){i.setError(l)});r.token&&r.refreshToken?(A(r.token,r.refreshToken,r.idToken),p.enable?P().then(function(){C().then(function(l){l?(e.onAuthSuccess&&e.onAuthSuccess(),i.setSuccess(),M()):i.setSuccess()}).catch(function(l){i.setError(l)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),i.setSuccess()}).catch(function(l){e.onAuthError&&e.onAuthError(),r.onLoad?c():i.setError(l)})):r.onLoad?c():i.setSuccess()}return a.then(function(){re().then(n).catch(function(o){s.setError(o)})}),a.catch(function(o){s.setError(o)}),s.promise},e.login=function(r){return h.login(r)};function G(r){if(typeof crypto>"u"||typeof crypto.getRandomValues>"u")throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(r))}function X(r){return q(r,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function q(r,t){for(var s=G(r),i=new Array(r),a=0;a<r;a++)i[a]=t.charCodeAt(s[a]%t.length);return String.fromCharCode.apply(null,i)}async function B(r,t){if(r!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${r}'.`);const s=new Uint8Array(await oe(t));return ne(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function W(r){var t={id_token:{acr:r}};return JSON.stringify(t)}e.createLoginUrl=async function(r){var t=J(),s=J(),i=h.redirectUri(r),a={state:t,nonce:s,redirectUri:encodeURIComponent(i),loginOptions:r};r&&r.prompt&&(a.prompt=r.prompt);var c;r&&r.action=="register"?c=e.endpoints.register():c=e.endpoints.authorize();var n=r&&r.scope||e.scope;n?n.indexOf("openid")===-1&&(n="openid "+n):n="openid";var o=c+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(i)+"&state="+encodeURIComponent(t)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(n);if(R&&(o=o+"&nonce="+encodeURIComponent(s)),r&&r.prompt&&(o+="&prompt="+encodeURIComponent(r.prompt)),r&&typeof r.maxAge=="number"&&(o+="&max_age="+encodeURIComponent(r.maxAge)),r&&r.loginHint&&(o+="&login_hint="+encodeURIComponent(r.loginHint)),r&&r.idpHint&&(o+="&kc_idp_hint="+encodeURIComponent(r.idpHint)),r&&r.action&&r.action!="register"&&(o+="&kc_action="+encodeURIComponent(r.action)),r&&r.locale&&(o+="&ui_locales="+encodeURIComponent(r.locale)),r&&r.acr){var l=W(r.acr);o+="&claims="+encodeURIComponent(l)}if((r&&r.acrValues||e.acrValues)&&(o+="&acr_values="+encodeURIComponent(r.acrValues||e.acrValues)),e.pkceMethod)try{const d=X(96),u=await B(e.pkceMethod,d);a.pkceCodeVerifier=d,o+="&code_challenge="+u,o+="&code_challenge_method="+e.pkceMethod}catch(d){throw new Error("Failed to generate PKCE challenge.",{cause:d})}return U.add(a),o},e.logout=function(r){return h.logout(r)},e.createLogoutUrl=function(r){if(((r==null?void 0:r.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var s=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(h.redirectUri(r,!1));return e.idToken&&(s+="&id_token_hint="+encodeURIComponent(e.idToken)),s},e.register=function(r){return h.register(r)},e.createRegisterUrl=async function(r){return r||(r={}),r.action="register",await e.createLoginUrl(r)},e.createAccountUrl=function(r){var t=b(),s=void 0;return typeof t<"u"&&(s=t+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(h.redirectUri(r))),s},e.accountManagement=function(){return h.accountManagement()},e.hasRealmRole=function(r){var t=e.realmAccess;return!!t&&t.roles.indexOf(r)>=0},e.hasResourceRole=function(r,t){if(!e.resourceAccess)return!1;var s=e.resourceAccess[t||e.clientId];return!!s&&s.roles.indexOf(r)>=0},e.loadUserProfile=function(){var r=b()+"/account",t=new XMLHttpRequest;t.open("GET",r,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+e.token);var s=g();return t.onreadystatechange=function(){t.readyState==4&&(t.status==200?(e.profile=JSON.parse(t.responseText),s.setSuccess(e.profile)):s.setError())},t.send(),s.promise},e.loadUserInfo=function(){var r=e.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",r,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+e.token);var s=g();return t.onreadystatechange=function(){t.readyState==4&&(t.status==200?(e.userInfo=JSON.parse(t.responseText),s.setSuccess(e.userInfo)):s.setError())},t.send(),s.promise},e.isTokenExpired=function(r){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return _("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(r){if(isNaN(r))throw"Invalid minValidity";t-=r}return t<0},e.updateToken=function(r){var t=g();if(!e.refreshToken)return t.setError(),t.promise;r=r||5;var s=function(){var a=!1;if(r==-1?(a=!0,_("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(r))&&(a=!0,_("[KEYCLOAK] Refreshing token: token expired")),!a)t.setSuccess(!1);else{var c="grant_type=refresh_token&refresh_token="+e.refreshToken,n=e.endpoints.token();if(v.push(t),v.length==1){var o=new XMLHttpRequest;o.open("POST",n,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.withCredentials=!0,c+="&client_id="+encodeURIComponent(e.clientId);var l=new Date().getTime();o.onreadystatechange=function(){if(o.readyState==4)if(o.status==200){_("[KEYCLOAK] Token refreshed"),l=(l+new Date().getTime())/2;var d=JSON.parse(o.responseText);A(d.access_token,d.refresh_token,d.id_token,l),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var u=v.pop();u!=null;u=v.pop())u.setSuccess(!0)}else{x("[KEYCLOAK] Failed to refresh token"),o.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var u=v.pop();u!=null;u=v.pop())u.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.")}},o.send(c)}}};if(p.enable){var i=C();i.then(function(){s()}).catch(function(a){t.setError(a)})}else s();return t.promise},e.clearToken=function(){e.token&&(A(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function b(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function $(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function I(r,t){var s=r.code,i=r.error,a=r.prompt,c=new Date().getTime();if(r.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(r.kc_action_status,r.kc_action),i){if(a!="none")if(r.error_description&&r.error_description==="authentication_expired")e.login(r.loginOptions);else{var n={error:i,error_description:r.error_description};e.onAuthError&&e.onAuthError(n),t&&t.setError(n)}else t&&t.setSuccess();return}else e.flow!="standard"&&(r.access_token||r.id_token)&&u(r.access_token,null,r.id_token,!0);if(e.flow!="implicit"&&s){var o="code="+s+"&grant_type=authorization_code",l=e.endpoints.token(),d=new XMLHttpRequest;d.open("POST",l,!0),d.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o+="&client_id="+encodeURIComponent(e.clientId),o+="&redirect_uri="+r.redirectUri,r.pkceCodeVerifier&&(o+="&code_verifier="+r.pkceCodeVerifier),d.withCredentials=!0,d.onreadystatechange=function(){if(d.readyState==4)if(d.status==200){var m=JSON.parse(d.responseText);u(m.access_token,m.refresh_token,m.id_token,e.flow==="standard"),M()}else e.onAuthError&&e.onAuthError(),t&&t.setError()},d.send(o)}function u(m,w,S,y){c=(c+new Date().getTime())/2,A(m,w,S,c),R&&e.idTokenParsed&&e.idTokenParsed.nonce!=r.storedNonce?(_("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),t&&t.setError()):y&&(e.onAuthSuccess&&e.onAuthSuccess(),t&&t.setSuccess())}}function Q(){var r=g(),t;typeof f=="string"&&(t=f);function s(n){n?e.endpoints={authorize:function(){return n.authorization_endpoint},token:function(){return n.token_endpoint},logout:function(){if(!n.end_session_endpoint)throw"Not supported by the OIDC server";return n.end_session_endpoint},checkSessionIframe:function(){if(!n.check_session_iframe)throw"Not supported by the OIDC server";return n.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!n.userinfo_endpoint)throw"Not supported by the OIDC server";return n.userinfo_endpoint}}:e.endpoints={authorize:function(){return b()+"/protocol/openid-connect/auth"},token:function(){return b()+"/protocol/openid-connect/token"},logout:function(){return b()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){return b()+"/protocol/openid-connect/login-status-iframe.html"},thirdPartyCookiesIframe:function(){return b()+"/protocol/openid-connect/3p-cookies/step1.html"},register:function(){return b()+"/protocol/openid-connect/registrations"},userinfo:function(){return b()+"/protocol/openid-connect/userinfo"}}}if(t){var i=new XMLHttpRequest;i.open("GET",t,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(i.readyState==4)if(i.status==200||O(i)){var n=JSON.parse(i.responseText);e.authServerUrl=n["auth-server-url"],e.realm=n.realm,e.clientId=n.resource,s(null),r.setSuccess()}else r.setError()},i.send()}else{e.clientId=f.clientId;var a=f.oidcProvider;if(!a)e.authServerUrl=f.url,e.realm=f.realm,s(null),r.setSuccess();else if(typeof a=="string"){var c;a.charAt(a.length-1)=="/"?c=a+".well-known/openid-configuration":c=a+"/.well-known/openid-configuration";var i=new XMLHttpRequest;i.open("GET",c,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(i.readyState==4)if(i.status==200||O(i)){var o=JSON.parse(i.responseText);s(o),r.setSuccess()}else r.setError()},i.send()}else s(a),r.setSuccess()}return r.promise}function O(r){return r.status==0&&r.responseText&&r.responseURL.startsWith("file:")}function A(r,t,s,i){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),t?(e.refreshToken=t,e.refreshTokenParsed=j(t)):(delete e.refreshToken,delete e.refreshTokenParsed),s?(e.idToken=s,e.idTokenParsed=j(s)):(delete e.idToken,delete e.idTokenParsed),r){if(e.token=r,e.tokenParsed=j(r),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,i&&(e.timeSkew=Math.floor(i/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(_("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var a=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;_("[KEYCLOAK] Token expires in "+Math.round(a/1e3)+" s"),a<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,a)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function J(){if(typeof crypto>"u"||typeof crypto.randomUUID>"u")throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function T(r){var t=Z(r);if(t){var s=U.get(t.state);return s&&(t.valid=!0,t.redirectUri=s.redirectUri,t.storedNonce=s.nonce,t.prompt=s.prompt,t.pkceCodeVerifier=s.pkceCodeVerifier,t.loginOptions=s.loginOptions),t}}function Z(r){var t;switch(e.flow){case"standard":t=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}t.push("error"),t.push("error_description"),t.push("error_uri");var s=r.indexOf("?"),i=r.indexOf("#"),a,c;if(e.responseMode==="query"&&s!==-1?(a=r.substring(0,s),c=V(r.substring(s+1,i!==-1?i:r.length),t),c.paramsString!==""&&(a+="?"+c.paramsString),i!==-1&&(a+=r.substring(i))):e.responseMode==="fragment"&&i!==-1&&(a=r.substring(0,i),c=V(r.substring(i+1),t),c.paramsString!==""&&(a+="#"+c.paramsString)),c&&c.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((c.oauthParams.code||c.oauthParams.error)&&c.oauthParams.state)return c.oauthParams.newUrl=a,c.oauthParams}else if(e.flow==="implicit"&&(c.oauthParams.access_token||c.oauthParams.error)&&c.oauthParams.state)return c.oauthParams.newUrl=a,c.oauthParams}}function V(r,t){for(var s=r.split("&"),i={paramsString:"",oauthParams:{}},a=0;a<s.length;a++){var c=s[a].indexOf("="),n=s[a].slice(0,c);t.indexOf(n)!==-1?i.oauthParams[n]=s[a].slice(c+1):(i.paramsString!==""&&(i.paramsString+="&"),i.paramsString+=s[a])}return i}function g(){var r={setSuccess:function(t){r.resolve(t)},setError:function(t){r.reject(t)}};return r.promise=new Promise(function(t,s){r.resolve=t,r.reject=s}),r}function ee(r,t,s){var i=null,a=new Promise(function(c,n){i=setTimeout(function(){n({error:s})},t)});return Promise.race([r,a]).finally(function(){clearTimeout(i)})}function P(){var r=g();if(!p.enable||p.iframe)return r.setSuccess(),r.promise;var t=document.createElement("iframe");p.iframe=t,t.onload=function(){var a=e.endpoints.authorize();a.charAt(0)==="/"?p.iframeOrigin=$():p.iframeOrigin=a.substring(0,a.indexOf("/",8)),r.setSuccess()};var s=e.endpoints.checkSessionIframe();t.setAttribute("src",s),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t);var i=function(a){if(!(a.origin!==p.iframeOrigin||p.iframe.contentWindow!==a.source)&&(a.data=="unchanged"||a.data=="changed"||a.data=="error")){a.data!="unchanged"&&e.clearToken();for(var c=p.callbackList.splice(0,p.callbackList.length),n=c.length-1;n>=0;--n){var o=c[n];a.data=="error"?o.setError():o.setSuccess(a.data=="unchanged")}}};return window.addEventListener("message",i,!1),r.promise}function M(){p.enable&&e.token&&setTimeout(function(){C().then(function(r){r&&M()})},p.interval*1e3)}function C(){var r=g();if(p.iframe&&p.iframeOrigin){var t=e.clientId+" "+(e.sessionId?e.sessionId:"");p.callbackList.push(r);var s=p.iframeOrigin;p.callbackList.length==1&&p.iframe.contentWindow.postMessage(t,s)}else r.setSuccess();return r.promise}function re(){var r=g();if((p.enable||e.silentCheckSsoRedirectUri)&&typeof e.endpoints.thirdPartyCookiesIframe=="function"){var t=document.createElement("iframe");t.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t);var s=function(i){t.contentWindow===i.source&&(i.data!=="supported"&&i.data!=="unsupported"||(i.data==="unsupported"&&(x(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
|
|
5
|
+
|
|
6
|
+
- It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
|
|
7
|
+
- It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
|
|
8
|
+
|
|
9
|
+
For more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers`),p.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(t),window.removeEventListener("message",s),r.setSuccess()))};window.addEventListener("message",s,!1)}else r.setSuccess();return ee(r.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function K(r){if(!r||r=="default")return{login:async function(n){return window.location.assign(await e.createLoginUrl(n)),g().promise},logout:async function(n){if(((n==null?void 0:n.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(n));return}const l=document.createElement("form");l.setAttribute("method","POST"),l.setAttribute("action",e.createLogoutUrl(n)),l.style.display="none";const d={id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:h.redirectUri(n,!1)};for(const[u,m]of Object.entries(d)){const w=document.createElement("input");w.setAttribute("type","hidden"),w.setAttribute("name",u),w.setAttribute("value",m),l.appendChild(w)}document.body.appendChild(l),l.submit()},register:async function(n){return window.location.assign(await e.createRegisterUrl(n)),g().promise},accountManagement:function(){var n=e.createAccountUrl();if(typeof n<"u")window.location.href=n;else throw"Not supported by the OIDC server";return g().promise},redirectUri:function(n,o){return n&&n.redirectUri?n.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(r=="cordova"){p.enable=!1;var t=function(n,o,l){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(n,o,l):window.open(n,o,l)},s=function(n){return n&&n.cordovaOptions?Object.keys(n.cordovaOptions).reduce(function(o,l){return o[l]=n.cordovaOptions[l],o},{}):{}},i=function(n){return Object.keys(n).reduce(function(o,l){return o.push(l+"="+n[l]),o},[]).join(",")},a=function(n){var o=s(n);return o.location="no",n&&n.prompt=="none"&&(o.hidden="yes"),i(o)},c=function(){return e.redirectUri||"http://localhost"};return{login:async function(n){var o=g(),l=a(n),d=await e.createLoginUrl(n),u=t(d,"_blank",l),m=!1,w=!1,S=function(){w=!0,u.close()};return u.addEventListener("loadstart",function(y){if(y.url.indexOf(c())==0){var D=T(y.url);I(D,o),S(),m=!0}}),u.addEventListener("loaderror",function(y){if(!m)if(y.url.indexOf(c())==0){var D=T(y.url);I(D,o),S(),m=!0}else o.setError(),S()}),u.addEventListener("exit",function(y){w||o.setError({reason:"closed_by_user"})}),o.promise},logout:function(n){var o=g(),l=e.createLogoutUrl(n),d=t(l,"_blank","location=no,hidden=yes,clearcache=yes"),u;return d.addEventListener("loadstart",function(m){m.url.indexOf(c())==0&&d.close()}),d.addEventListener("loaderror",function(m){m.url.indexOf(c())==0||(u=!0),d.close()}),d.addEventListener("exit",function(m){u?o.setError():(e.clearToken(),o.setSuccess())}),o.promise},register:async function(n){var o=g(),l=await e.createRegisterUrl(),d=a(n),u=t(l,"_blank",d);return u.addEventListener("loadstart",function(m){if(m.url.indexOf(c())==0){u.close();var w=T(m.url);I(w,o)}}),o.promise},accountManagement:function(){var n=e.createAccountUrl();if(typeof n<"u"){var o=t(n,"_blank","location=no");o.addEventListener("loadstart",function(l){l.url.indexOf(c())==0&&o.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(n){return c()}}}if(r=="cordova-native")return p.enable=!1,{login:async function(n){var o=g(),l=await e.createLoginUrl(n);return universalLinks.subscribe("keycloak",function(d){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var u=T(d.url);I(u,o)}),window.cordova.plugins.browsertab.openUrl(l),o.promise},logout:function(n){var o=g(),l=e.createLogoutUrl(n);return universalLinks.subscribe("keycloak",function(d){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),o.setSuccess()}),window.cordova.plugins.browsertab.openUrl(l),o.promise},register:async function(n){var o=g(),l=await e.createRegisterUrl(n);return universalLinks.subscribe("keycloak",function(d){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var u=T(d.url);I(u,o)}),window.cordova.plugins.browsertab.openUrl(l),o.promise},accountManagement:function(){var n=e.createAccountUrl();if(typeof n<"u")window.cordova.plugins.browsertab.openUrl(n);else throw"Not supported by the OIDC server"},redirectUri:function(n){return n&&n.redirectUri?n.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+r}const E="kc-callback-";var H=function(){if(!(this instanceof H))return new H;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var r=this;function t(){const c=Date.now();for(const[n,o]of i()){const l=a(o);(l===null||l<c)&&localStorage.removeItem(n)}}function s(){for(const[c]of i())localStorage.removeItem(c)}function i(){return Object.entries(localStorage).filter(([c])=>c.startsWith(E))}function a(c){let n;try{n=JSON.parse(c)}catch{return null}return z(n)&&"expires"in n&&typeof n.expires=="number"?n.expires:null}r.get=function(c){if(c){var n=E+c,o=localStorage.getItem(n);return o&&(localStorage.removeItem(n),o=JSON.parse(o)),t(),o}},r.add=function(c){t();const n=E+c.state,o=JSON.stringify({...c,expires:Date.now()+60*60*1e3});try{localStorage.setItem(n,o)}catch{s(),localStorage.setItem(n,o)}}},N=function(){if(!(this instanceof N))return new N;var r=this;r.get=function(a){if(a){var c=s(E+a);if(i(E+a,"",t(-100)),c)return JSON.parse(c)}},r.add=function(a){i(E+a.state,JSON.stringify(a),t(60))},r.removeItem=function(a){i(a,"",t(-100))};var t=function(a){var c=new Date;return c.setTime(c.getTime()+a*60*1e3),c},s=function(a){for(var c=a+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var l=n[o];l.charAt(0)==" ";)l=l.substring(1);if(l.indexOf(c)==0)return l.substring(c.length,l.length)}return""},i=function(a,c,n){var o=a+"="+c+"; expires="+n.toUTCString()+"; ";document.cookie=o}};function te(){try{return new H}catch{}return new N}function F(r){return function(){e.enableLogging&&r.apply(console,Array.prototype.slice.call(arguments))}}}function ne(f){const e=String.fromCodePoint(...f);return btoa(e)}async function oe(f){const h=new TextEncoder().encode(f);if(typeof crypto>"u"||typeof crypto.subtle>"u")throw new Error("Web Crypto API is not available.");return await crypto.subtle.digest("SHA-256",h)}function j(f){const[e,h]=f.split(".");if(typeof h!="string")throw new Error("Unable to decode token, payload not found.");let v;try{v=ae(h)}catch(U){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:U})}try{return JSON.parse(v)}catch(U){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:U})}}function ae(f){let e=f.replaceAll("-","+").replaceAll("_","/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Input is not of the correct length.")}try{return ie(e)}catch{return atob(e)}}function ie(f){return decodeURIComponent(atob(f).replace(/(.)/g,(e,h)=>{let v=h.charCodeAt(0).toString(16).toUpperCase();return v.length<2&&(v="0"+v),"%"+v}))}function z(f){return typeof f=="object"&&f!==null}let k=null,L=null;function se(f,e=!0){return L?(console.log("Keycloak already initialized, returning from cache"),L):(k||(k=new Y({url:f.url,realm:f.realm,clientId:f.clientId})),L=k.init({onLoad:e?"check-sso":"login-required",checkLoginIframe:!1}).then(h=>h).catch(h=>(console.error("Failed to initialize Keycloak:",h),!1)),L)}function ce(){return k!=null&&k.authenticated&&(k!=null&&k.idTokenParsed)?{fullname:k.idTokenParsed.name,email:k.idTokenParsed.email,lastname:k.idTokenParsed.family_name,firstname:k.idTokenParsed.given_name,username:k.idTokenParsed.preferred_username,background:"grey",token:k.token,sub:k.idTokenParsed.sub}:{}}function le(){if(k)k.login();else throw new Error("Keycloak is not initialized.")}function ue(){if(k)k.logout();else throw new Error("Keycloak is not initialized.")}function de(){return!!(k!=null&&k.authenticated)}async function fe(f){try{const e=await fetch(f,{method:"HEAD",mode:"no-cors"});return e.ok||e.type==="opaque"}catch{return!1}}exports.checkServerAvailability=fe;exports.getUser=ce;exports.initKeycloak=se;exports.isAuthenticated=de;exports.login=le;exports.logout=ue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),a=require("./logo-color-margins-ff8ce71b-Dk06zr1Z.js"),o=".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[300px\\]{width:300px}",n=o,r=class{constructor(t){e.registerInstance(this,t)}render(){return e.h("div",{key:"fc5040b294d45ecbf8e3ee0ab26875c63efa3625",class:"container my-20"},e.h("div",{key:"acad9c182cb46fd58f37d9195c9e20658df81767",class:"w-[300px]"},e.h("div",{key:"4caac9e94b715c967958fe6bd9e5d988622c8729",class:"bg-dark"},e.h("div",{key:"d82b6156de96fd91e996c0ab775b9503395ba04f",class:"logo-container",innerHTML:a.vLogoMargins}))))}};r.style=n;exports.logo_space=r;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r, h as e } from "./index-
|
|
1
|
+
import { r as a, h as e } from "./index-C-Gy1Lax.mjs";
|
|
2
2
|
import { v as t } from "./logo-color-margins-ff8ce71b-B9nMsY9Q.mjs";
|
|
3
|
-
const o = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[300px\\]{width:300px}", n = o,
|
|
4
|
-
constructor(
|
|
5
|
-
|
|
3
|
+
const o = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[300px\\]{width:300px}", n = o, c = class {
|
|
4
|
+
constructor(r) {
|
|
5
|
+
a(this, r);
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return e("div", { key: "
|
|
8
|
+
return e("div", { key: "fc5040b294d45ecbf8e3ee0ab26875c63efa3625", class: "container my-20" }, e("div", { key: "acad9c182cb46fd58f37d9195c9e20658df81767", class: "w-[300px]" }, e("div", { key: "4caac9e94b715c967958fe6bd9e5d988622c8729", class: "bg-dark" }, e("div", { key: "d82b6156de96fd91e996c0ab775b9503395ba04f", class: "logo-container", innerHTML: t }))));
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
c.style = n;
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
c as logo_space
|
|
14
14
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),o=`.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[500px\\]{width:500px}@media (min-width: 750px){.md\\:w-\\[300px\\]{width:300px}.md\\:w-\\[500px\\]{width:500px}}@media (min-width: 900px){.lg\\:w-\\[300px\\]{width:300px}.lg\\:w-\\[500px\\]{width:500px}}.coloured{background:linear-gradient(to left,
|
|
2
|
+
#9CE142 0%,
|
|
3
|
+
#00C959 50%,
|
|
4
|
+
#00A595 100%)}`,c=o,t=class{constructor(a){e.registerInstance(this,a)}render(){return e.h("div",{key:"17506a830e62dd31e1415d2be8b4553c3068bfd0"},e.h("div",{key:"4ae7fe3624155cf1b2a749bed360d8b55cd2bede",class:"container my-16"},e.h("h3",{key:"e6daae3d262a53fb374162b5e3313fa98e11bf6b",class:"f-heading03"},"Coloured Background"),e.h("div",{key:"ab405030d5cac7ec5fe95f638dfeaa0e48f70af7",class:"coloured lg:w-[500px] md:w-[300px]"},e.h("eds-logo",{key:"05441cfb40658a2bd01f7f9a8c28e28d340b6dc1",type:"no-bg",href:"#"}))),e.h("div",{key:"82731279160c6c666889d32f329cf8469f853783",class:"container my-16"},e.h("h3",{key:"73269548408d466223d44f9293f589e7e4b99bae",class:"f-heading03"},"Black and White Background"),e.h("div",{key:"1d3e89b35eca34712e184ce42ba2f7632439ce4f",class:"bg-default lg:w-[500px] md:w-[300px]"},e.h("eds-logo",{key:"fc59306d8098f4764ab0f72fdbb5009bea5f3c44",type:"black",href:"#"}))),e.h("div",{key:"355ce3ef5cbd6872ce86ec847c3394deb29f2846",class:"container my-16"},e.h("h3",{key:"57adbc464a1e2f2d5818112f00149840c2c0758a",class:"f-heading03"},"Dark Background "),e.h("div",{key:"84e43ad22d556672c1b0e82a9ed3e2c988649598",class:"lg:w-[500px] md:w-[300px]"},e.h("eds-logo",{key:"0d0d38e691d763189c88ae803f9b02523b362ff8",type:"color-white",href:"#"}))))}};t.style=c;const n=`.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[200px\\]{width:200px}.w-\\[300px\\]{width:500px}.coloured{background:linear-gradient(to left,
|
|
5
|
+
#9CE142 0%,
|
|
6
|
+
#00C959 50%,
|
|
7
|
+
#00A595 100%)}`,i=n,r=class{constructor(a){e.registerInstance(this,a),this.orientation="vertical",this.type=void 0}render(){return e.h("div",{key:"fee70336cee863d905a6537392f1ddf6bda1d449"},e.h("div",{key:"f04e0928bbd1875982190f5fe685c43a0e712704",class:"container my-16"},e.h("h3",{key:"d10318ccf82f90743af6279afea3afa36ec411dc",class:"f-heading03"},"Coloured Background"),e.h("div",{key:"06cca782bfc5564172c1a745652c66d5304ad9c8",class:"coloured w-[200px]"},e.h("eds-logo",{key:"175bbd4acc1b184e8d372b78246524b2d4ae6758",orientation:"vertical",type:"no-bg",href:"#"}))),e.h("div",{key:"a7eb431d1ee679bc8c28aed0932325c99d4e0798",class:"container my-16"},e.h("h3",{key:"0a5d4e193f9b8e36c81beb5fcc81eccaa2433ee9",class:"f-heading03"},"Black and White Background"),e.h("div",{key:"c2d6c02f46629f32155bfb0ef1eee7522cd4b6c1",class:"bg-default w-[200px]"},e.h("eds-logo",{key:"a97c323c7af4c98fab5da6721450b80e2c8d85cb",orientation:"vertical",type:"black",href:"#"}))),e.h("div",{key:"ac99317a56b7ce01f324efc3423593a20164f932",class:"container my-16"},e.h("h3",{key:"908f915f49802906b1d0d5cb008ed4cdb3b5a68a",class:"f-heading03"},"Dark Background "),e.h("div",{key:"94e25cd1734ec0ef18d3742f908a08ceec50aa6f",class:"w-[200px]"},e.h("eds-logo",{key:"7f74de4532f6696e7168f0fc9c5dc28afed91f98",orientation:"vertical",type:"color-white",href:"#"}))))}};r.style=i;exports.logo_variations_horizontal=t;exports.logo_variations_vertical=r;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { r as t, h as e } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
const r = `.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[500px\\]{width:500px}@media (min-width: 750px){.md\\:w-\\[300px\\]{width:300px}.md\\:w-\\[500px\\]{width:500px}}@media (min-width: 900px){.lg\\:w-\\[300px\\]{width:300px}.lg\\:w-\\[500px\\]{width:500px}}.coloured{background:linear-gradient(to left,
|
|
3
|
+
#9CE142 0%,
|
|
4
|
+
#00C959 50%,
|
|
5
|
+
#00A595 100%)}`, o = r, c = class {
|
|
6
|
+
constructor(a) {
|
|
7
|
+
t(this, a);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return e("div", { key: "17506a830e62dd31e1415d2be8b4553c3068bfd0" }, e("div", { key: "4ae7fe3624155cf1b2a749bed360d8b55cd2bede", class: "container my-16" }, e("h3", { key: "e6daae3d262a53fb374162b5e3313fa98e11bf6b", class: "f-heading03" }, "Coloured Background"), e("div", { key: "ab405030d5cac7ec5fe95f638dfeaa0e48f70af7", class: "coloured lg:w-[500px] md:w-[300px]" }, e("eds-logo", { key: "05441cfb40658a2bd01f7f9a8c28e28d340b6dc1", type: "no-bg", href: "#" }))), e("div", { key: "82731279160c6c666889d32f329cf8469f853783", class: "container my-16" }, e("h3", { key: "73269548408d466223d44f9293f589e7e4b99bae", class: "f-heading03" }, "Black and White Background"), e("div", { key: "1d3e89b35eca34712e184ce42ba2f7632439ce4f", class: "bg-default lg:w-[500px] md:w-[300px]" }, e("eds-logo", { key: "fc59306d8098f4764ab0f72fdbb5009bea5f3c44", type: "black", href: "#" }))), e("div", { key: "355ce3ef5cbd6872ce86ec847c3394deb29f2846", class: "container my-16" }, e("h3", { key: "57adbc464a1e2f2d5818112f00149840c2c0758a", class: "f-heading03" }, "Dark Background "), e("div", { key: "84e43ad22d556672c1b0e82a9ed3e2c988649598", class: "lg:w-[500px] md:w-[300px]" }, e("eds-logo", { key: "0d0d38e691d763189c88ae803f9b02523b362ff8", type: "color-white", href: "#" }))));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
c.style = o;
|
|
14
|
+
const i = `.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[200px\\]{width:200px}.w-\\[300px\\]{width:500px}.coloured{background:linear-gradient(to left,
|
|
15
|
+
#9CE142 0%,
|
|
16
|
+
#00C959 50%,
|
|
17
|
+
#00A595 100%)}`, n = i, d = class {
|
|
18
|
+
constructor(a) {
|
|
19
|
+
t(this, a), this.orientation = "vertical", this.type = void 0;
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return e("div", { key: "fee70336cee863d905a6537392f1ddf6bda1d449" }, e("div", { key: "f04e0928bbd1875982190f5fe685c43a0e712704", class: "container my-16" }, e("h3", { key: "d10318ccf82f90743af6279afea3afa36ec411dc", class: "f-heading03" }, "Coloured Background"), e("div", { key: "06cca782bfc5564172c1a745652c66d5304ad9c8", class: "coloured w-[200px]" }, e("eds-logo", { key: "175bbd4acc1b184e8d372b78246524b2d4ae6758", orientation: "vertical", type: "no-bg", href: "#" }))), e("div", { key: "a7eb431d1ee679bc8c28aed0932325c99d4e0798", class: "container my-16" }, e("h3", { key: "0a5d4e193f9b8e36c81beb5fcc81eccaa2433ee9", class: "f-heading03" }, "Black and White Background"), e("div", { key: "c2d6c02f46629f32155bfb0ef1eee7522cd4b6c1", class: "bg-default w-[200px]" }, e("eds-logo", { key: "a97c323c7af4c98fab5da6721450b80e2c8d85cb", orientation: "vertical", type: "black", href: "#" }))), e("div", { key: "ac99317a56b7ce01f324efc3423593a20164f932", class: "container my-16" }, e("h3", { key: "908f915f49802906b1d0d5cb008ed4cdb3b5a68a", class: "f-heading03" }, "Dark Background "), e("div", { key: "94e25cd1734ec0ef18d3742f908a08ceec50aa6f", class: "w-[200px]" }, e("eds-logo", { key: "7f74de4532f6696e7168f0fc9c5dc28afed91f98", orientation: "vertical", type: "color-white", href: "#" }))));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
d.style = n;
|
|
26
|
+
export {
|
|
27
|
+
c as logo_variations_horizontal,
|
|
28
|
+
d as logo_variations_vertical
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),a=require("./logo-color-7f1fd803-DRD3vZVn.js"),r=".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.container{display:flex;flex-wrap:wrap;gap:16px}.example{width:200px;text-align:center;font-size:14px}.logo{width:100%;height:auto}.bg-dark{background-color:#333}.bg-light{background-color:#f3f3f3}.bg-white{background-color:white}.non-brand-color{fill:purple;}.distorted{transform:scaleX(1.5)}.effects{filter:drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5))}.rotated{transform:rotate(15deg)}.no-other-bg-color{background-color:var(--purple-200)}.no-other-color{color:var(--red-700)}.outlined{stroke:red;stroke-width:2px;fill:none;}.custom-font{font-family:'Comic Sans MS', cursive;font-size:20px;color:#333;}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.grid-col-span-12{--container-grid-columns:12;grid-column:span 12 / span 12}.gap-y-8{row-gap:0.5rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:gap-y-12{row-gap:0.75rem}.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:order-last{order:9999}.lg\\:order-none{order:0}.lg\\:mt-0{margin-top:0rem}.lg\\:flex{display:flex}.lg\\:w-\\[150px\\]{width:150px}.lg\\:w-auto{width:auto}.lg\\:max-w-\\[720px\\]{max-width:720px}.lg\\:flex-row{flex-direction:row}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:gap-y-16{row-gap:1rem}.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}.lg\\:\\!pl-12{padding-left:0.75rem !important}.lg\\:\\!pr-12{padding-right:0.75rem !important}}@media (min-width: 750px){.md\\:grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.md\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}}.flex-col{flex-direction:column}",d=r,o=class{constructor(c){e.registerInstance(this,c)}render(){return e.h("ul",{key:"3b7b6626be122a983b8e75560519c5cf7e31140a",class:"container grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16"},e.h("span",{key:"ec2af2fbd7ca5fe85b15be216bec42a9289b40f1",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},e.h("div",{key:"cef460808c414cc1a14e380d7862523e9d53b214",class:"example"},e.h("div",{key:"759ea5b73ced15cf2caef3566f2f1fdeb2122612",class:"bg-dark "},e.h("div",{key:"9d0b7aef45f578f1c6e0d84f80583f8116688cf7",class:"no-other-bg-color logo",innerHTML:a.hLogoColor})),e.h("p",{key:"223611a3bedea685dd1904922f472fee474ddf11",class:"f-ui-02"},"Do not use with backgrounds that make legibility difficult"))),e.h("span",{key:"49e6907610dfaede93ddf179dafbc93f340832ec",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},e.h("div",{key:"f11f675e9b002bc5d571907faeabfa7c8a2ea4f4",class:"example"},e.h("div",{key:"b63ab2771e06f9d56c1ae995be5b23612b670e6e",class:"no-other-color p-16"},e.h("div",{key:"91d331a3fd50976496cd9eff08e5150d5fb8c368",class:"logo non-brand-color",innerHTML:a.hLogoColor})),e.h("p",{key:"b34ec2c20218499972367287e730e3ea75d94bb2",class:"f-ui-02"},"Do not apply other colors"))),e.h("span",{key:"20d1babcf42bd66e56633f78e5e7a38689b1c831",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},e.h("div",{key:"057c8a11c93076e2b9663baa49f101f90c3007be",class:"example"},e.h("div",{key:"767471f768d48de8a230dac229f86a751590bfb6",class:"bg-light p-16"},e.h("div",{key:"d5e807d0cdea5958b0c2d93c3207924616fece63",class:"logo distorted",innerHTML:a.hLogoColor})),e.h("p",{key:"c357e9516bb82a3f431270c56a23fd614684d126",class:"f-ui-02"},"Do not deform the logo"))),e.h("span",{key:"789d0af543f4ccc9a270c3a332f1dcb2dc79b77f",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},e.h("div",{key:"a5e0d0a85a4e1656a0e7d01dc41f59711971b403",class:"example"},e.h("div",{key:"a7eb16e39e2f954e42f5f8c0c2ed152fb53f7c2a",class:"bg-white p-16"},e.h("div",{key:"46ec9c3b424cf4661cda4adc31989a8c355376d4",class:"logo effects",innerHTML:a.hLogoColor})),e.h("p",{key:"2c7e8e98a0306d08f30e857e5476703993ffda2c",class:"f-ui-02"},"Do not apply effects"))),e.h("span",{key:"846791ec992abd3f0632070cb09d9ef3dcfa67b7",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},e.h("div",{key:"82fb8f93a6cb8789bf4a56e589975ad353bc88c2",class:"example"},e.h("div",{key:"8c7e30c775364fa1d79b118e5aff5cd1e883101f",class:"bg-white p-16"},e.h("div",{key:"a18af5ffaba038fff7a442ab626f783a8a1f08ba",class:"logo rotated",innerHTML:a.hLogoColor})),e.h("p",{key:"8ad738506d45e065ad5c96df9f5bf569a632e446",class:"f-ui-02"},"Do not rotate the logo"))),e.h("span",{key:"f556f0d638d48bcd95d0cc198e0408bb109cd92f",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},e.h("div",{key:"153d0704622a633e8937bb0a481941cca7446a8f",class:"example"},e.h("div",{key:"e4d9e874f931413d924635432df55de18d329f2f",class:"bg-light p-16"},e.h("div",{key:"2435bddf3af2928878338793e895cc080b7e1f7a",class:"logo outlined",innerHTML:a.hLogoColor})),e.h("p",{key:"64c46cd279b062ab87ce34187bd979c58f1c9312",class:"f-ui-02"},"Do not apply outlines"))),e.h("span",{key:"d28391400911e4b8481a707a197915d2f9fffbf2",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"}),e.h("span",{key:"4aa8af822ff81bb7313145ccc24dbb79a7041f26",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},e.h("div",{key:"63fc69af51c57497cde82c7377dc5cc56bcd264e",class:"example"},e.h("div",{key:"54029b8e273baddb810ea869b341a66f0b9a9e9a",class:"bg-accent p-16"},e.h("div",{key:"d82bbfa6ea877ec8af75230093548fffd086b1b4",class:"text-inverse",innerHTML:a.hLogoColor})),e.h("p",{key:"f12f0cd6baedc08020ebd206c1c5c2fd8a6c7eda",class:"f-ui-02"},"Do not use the green background for the logo version of the logo with backgrounds with the same tones"))))}};o.style=d;exports.logo_wrong_usage=o;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { r as c, h as e } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { h as a } from "./logo-color-7f1fd803-CFgbXdt8.mjs";
|
|
3
|
+
const d = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.container{display:flex;flex-wrap:wrap;gap:16px}.example{width:200px;text-align:center;font-size:14px}.logo{width:100%;height:auto}.bg-dark{background-color:#333}.bg-light{background-color:#f3f3f3}.bg-white{background-color:white}.non-brand-color{fill:purple;}.distorted{transform:scaleX(1.5)}.effects{filter:drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5))}.rotated{transform:rotate(15deg)}.no-other-bg-color{background-color:var(--purple-200)}.no-other-color{color:var(--red-700)}.outlined{stroke:red;stroke-width:2px;fill:none;}.custom-font{font-family:'Comic Sans MS', cursive;font-size:20px;color:#333;}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.grid-col-span-12{--container-grid-columns:12;grid-column:span 12 / span 12}.gap-y-8{row-gap:0.5rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:gap-y-12{row-gap:0.75rem}.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:order-last{order:9999}.lg\\:order-none{order:0}.lg\\:mt-0{margin-top:0rem}.lg\\:flex{display:flex}.lg\\:w-\\[150px\\]{width:150px}.lg\\:w-auto{width:auto}.lg\\:max-w-\\[720px\\]{max-width:720px}.lg\\:flex-row{flex-direction:row}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:gap-y-16{row-gap:1rem}.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}.lg\\:\\!pl-12{padding-left:0.75rem !important}.lg\\:\\!pr-12{padding-right:0.75rem !important}}@media (min-width: 750px){.md\\:grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.md\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}}.flex-col{flex-direction:column}", r = d, l = class {
|
|
4
|
+
constructor(o) {
|
|
5
|
+
c(this, o);
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return e("ul", { key: "3b7b6626be122a983b8e75560519c5cf7e31140a", class: "container grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, e("span", { key: "ec2af2fbd7ca5fe85b15be216bec42a9289b40f1", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col" }, e("div", { key: "cef460808c414cc1a14e380d7862523e9d53b214", class: "example" }, e("div", { key: "759ea5b73ced15cf2caef3566f2f1fdeb2122612", class: "bg-dark " }, e("div", { key: "9d0b7aef45f578f1c6e0d84f80583f8116688cf7", class: "no-other-bg-color logo", innerHTML: a })), e("p", { key: "223611a3bedea685dd1904922f472fee474ddf11", class: "f-ui-02" }, "Do not use with backgrounds that make legibility difficult"))), e("span", { key: "49e6907610dfaede93ddf179dafbc93f340832ec", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col" }, e("div", { key: "f11f675e9b002bc5d571907faeabfa7c8a2ea4f4", class: "example" }, e("div", { key: "b63ab2771e06f9d56c1ae995be5b23612b670e6e", class: "no-other-color p-16" }, e("div", { key: "91d331a3fd50976496cd9eff08e5150d5fb8c368", class: "logo non-brand-color", innerHTML: a })), e("p", { key: "b34ec2c20218499972367287e730e3ea75d94bb2", class: "f-ui-02" }, "Do not apply other colors"))), e("span", { key: "20d1babcf42bd66e56633f78e5e7a38689b1c831", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col" }, e("div", { key: "057c8a11c93076e2b9663baa49f101f90c3007be", class: "example" }, e("div", { key: "767471f768d48de8a230dac229f86a751590bfb6", class: "bg-light p-16" }, e("div", { key: "d5e807d0cdea5958b0c2d93c3207924616fece63", class: "logo distorted", innerHTML: a })), e("p", { key: "c357e9516bb82a3f431270c56a23fd614684d126", class: "f-ui-02" }, "Do not deform the logo"))), e("span", { key: "789d0af543f4ccc9a270c3a332f1dcb2dc79b77f", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col" }, e("div", { key: "a5e0d0a85a4e1656a0e7d01dc41f59711971b403", class: "example" }, e("div", { key: "a7eb16e39e2f954e42f5f8c0c2ed152fb53f7c2a", class: "bg-white p-16" }, e("div", { key: "46ec9c3b424cf4661cda4adc31989a8c355376d4", class: "logo effects", innerHTML: a })), e("p", { key: "2c7e8e98a0306d08f30e857e5476703993ffda2c", class: "f-ui-02" }, "Do not apply effects"))), e("span", { key: "846791ec992abd3f0632070cb09d9ef3dcfa67b7", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col" }, e("div", { key: "82fb8f93a6cb8789bf4a56e589975ad353bc88c2", class: "example" }, e("div", { key: "8c7e30c775364fa1d79b118e5aff5cd1e883101f", class: "bg-white p-16" }, e("div", { key: "a18af5ffaba038fff7a442ab626f783a8a1f08ba", class: "logo rotated", innerHTML: a })), e("p", { key: "8ad738506d45e065ad5c96df9f5bf569a632e446", class: "f-ui-02" }, "Do not rotate the logo"))), e("span", { key: "f556f0d638d48bcd95d0cc198e0408bb109cd92f", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col" }, e("div", { key: "153d0704622a633e8937bb0a481941cca7446a8f", class: "example" }, e("div", { key: "e4d9e874f931413d924635432df55de18d329f2f", class: "bg-light p-16" }, e("div", { key: "2435bddf3af2928878338793e895cc080b7e1f7a", class: "logo outlined", innerHTML: a })), e("p", { key: "64c46cd279b062ab87ce34187bd979c58f1c9312", class: "f-ui-02" }, "Do not apply outlines"))), e("span", { key: "d28391400911e4b8481a707a197915d2f9fffbf2", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col" }), e("span", { key: "4aa8af822ff81bb7313145ccc24dbb79a7041f26", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col" }, e("div", { key: "63fc69af51c57497cde82c7377dc5cc56bcd264e", class: "example" }, e("div", { key: "54029b8e273baddb810ea869b341a66f0b9a9e9a", class: "bg-accent p-16" }, e("div", { key: "d82bbfa6ea877ec8af75230093548fffd086b1b4", class: "text-inverse", innerHTML: a })), e("p", { key: "f12f0cd6baedc08020ebd206c1c5c2fd8a6c7eda", class: "f-ui-02" }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones"))));
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
l.style = r;
|
|
12
|
+
export {
|
|
13
|
+
l as logo_wrong_usage
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),l={tokens:{"grey-100":"#f8f8f8","grey-200":"#f2f2f2","grey-300":"#e6e6e6","grey-400":"#d8d8d8","grey-500":"#8c8c8c","grey-600":"#6e6e6e","grey-700":"#666666","grey-800":"#4d4d4d","grey-900":"#242424","green-100":"#eaffee","green-200":"#d3ffdc","green-300":"#9dffb4","green-400":"#63fb92","green-500":"#00e766","green-600":"#00c959","green-700":"#009d45","green-800":"#007734","green-900":"#004f23","yellow-100":"#fefee5","yellow-200":"#ffffcb","yellow-300":"#fdfdaa","yellow-400":"#ffff8b","yellow-500":"#ffff51","yellow-600":"#f3f30a","yellow-700":"#d7d72b","yellow-800":"#9a9a1e","yellow-900":"#636313","orange-100":"#fff4ee","orange-200":"#ffeade","orange-300":"#ffdcc5","orange-400":"#ffcca9","orange-500":"#ffb87e","orange-600":"#ffa543","orange-700":"#cb7f28","orange-800":"#995f1e","orange-900":"#653f14","red-100":"#feefef","red-200":"#ffe0e1","red-300":"#ffc7c9","red-400":"#ff9ea2","red-500":"#ff7a7f","red-600":"#ff4d68","red-700":"#d01111","red-800":"#a3001a","red-900":"#6f0011","purple-100":"#f9f3ff","purple-200":"#f4e8ff","purple-300":"#e9ceff","purple-400":"#ddb1ff","purple-500":"#d18fff","purple-600":"#c461ff","purple-700":"#af56e4","purple-800":"#8337b1","purple-900":"#3d1e4f","blue-100":"#eff0ff","blue-200":"#dee0ff","blue-300":"#caceff","blue-400":"#b2b8ff","blue-500":"#7a89f5","blue-600":"#2b69fc","blue-700":"#0034cb","blue-800":"#002799","blue-900":"#001a65","cyan-100":"#E0EEFF","cyan-200":"#D3E6FF","cyan-300":"#B5D8FF","cyan-400":"#92C8FF","cyan-500":"#6CBFFE","cyan-600":"#3FA9F5","cyan-700":"#267FBE","cyan-800":"#1F689B","cyan-900":"#15496D",black:"#000000",white:"#ffffff",transparent:"transparent",current:"currentColor"},border:{default:"black",inverse:"white","inverse-soft":"rgba(255, 255, 255, 0.3)","inverse-softer":"rgba(255, 255, 255, 0.15)",soft:"rgba(0, 0, 0, .15 )",softer:"rgba(0, 0, 0, .1 )",softest:"rgba(0, 0, 0, .05 )",accent:"green-500",error:"red-700",current:"currentColor",transparent:"transparent"},text:{inverse:"white",default:"black",current:"currentColor",transparent:"transparent",light:"grey-700",lighter:"grey-600",lightest:"grey-500","extra-light":"grey-300",success:"green-800",warning:"yellow-900",error:"red-700",accent:"green-500","on-gradient":"rgba(0, 0, 0, 0.55)"},background:{default:"grey-200",inverse:"white","inverse-soft":"rgba(255, 255, 255, .2)","inverse-softer":"rgba(255, 255, 255, .15)",dark:"grey-300",darker:"grey-400",strong:"grey-700","strong-dark":"grey-800",stronger:"grey-900",strongest:"black","strongest-soft":"rgba(0, 0, 0, .05)",accent:"green-500","accent-dark":"green-600","accent-darker":"green-800",success:"green-200",warning:"yellow-200",error:"red-200",current:"currentColor",transparent:"transparent",overlay:"rgba(0, 0, 0, 0.25)","on-gradient":"rgba(0, 0, 0, 0.1)","on-dark":"rgba(255, 255, 255, 0.2)"},underline:{accent:"green-500",light:"grey-700",lighter:"grey-600",lightest:"grey-500","extra-light":"grey-300"},outline:{default:"black",accent:"green-500"},gradients:{"gradient-01-top":"gradient-01-top","gradient-02-top":"gradient-02-top","gradient-03-top":"gradient-03-top","gradient-04-top":"gradient-04-top","gradient-01-bottom":"gradient-01-bottom","gradient-02-bottom":"gradient-02-bottom","gradient-03-bottom":"gradient-03-bottom","gradient-04-bottom":"gradient-04-bottom"}},g=class{constructor(r){e.registerInstance(this,r),this.show=void 0}getTextColor(r){if(r.startsWith("rgba")||r.startsWith("rgb")){const t=r.replace(/rgba?\(/,"").replace(")","").split(",").map(c=>parseFloat(c.trim())),s=t[0],o=t[1],a=t[2];return(.299*s+.587*o+.114*a)/255>.5?"text-default":"text-inverse"}else if(r.startsWith("#")){const t=r.replace("#",""),s=parseInt(t.substring(0,2),16),o=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return(.299*s+.587*o+.114*a)/255>.5?"text-default":"text-inverse"}return"text-default"}resolveColor(r){return l.tokens[r]?l.tokens[r]:r}renderSection(r,t){if(r==="tokens"){const s=this.groupTokensByCategory(t);return Object.entries(s).map(([,o])=>e.h("ul",{class:"gap-y-8 md:gap-y-12 lg:gap-y-16"},o.map(a=>{const n=Object.keys(a)[0],c=this.resolveColor(a[n]),d=this.getTextColor(c);return e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"effect-height items-center justify-between p-16 hidden lg:flex",style:{backgroundColor:c}},e.h("span",{class:`${d} f-body-02`},n),e.h("div",{class:"inline-flex"},e.h("eds-code-block",{code:c,language:"hex",class:"min-w-[210px] mr-4"}),e.h("eds-code-block",{language:"css",code:`var(--${n})`,class:"min-w-[210px]"}))),e.h("div",{class:"effect-height items-center justify-between p-16 block lg:hidden",style:{backgroundColor:c}},e.h("span",{class:`${d} f-body-02`},n),e.h("div",{class:"inline block"},e.h("eds-code-block",{code:c,class:"min-w-[210px] mb-4"}),e.h("eds-code-block",{code:`var(--${n})`,class:"min-w-[210px]"}))))})))}return e.h("ul",{class:"gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(t).map(([s,o])=>{const a=this.resolveColor(o),n=this.getTextColor(a),c=a.startsWith("#")||a.startsWith("rgb")?{backgroundColor:a}:{border:`2px solid ${a}`};return e.h("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},e.h("div",{class:"effect-height block lg:flex items-center justify-between p-16",style:c},e.h("div",{class:"w-full flex"},e.h("span",{class:`${n} mr-auto font-bold`},s),e.h("span",{class:`${n} ml-auto mr-4 font-bold`},o)),e.h("span",{class:`${n}`},r==="background"?e.h("eds-code-block",{code:`bg-${s}`,class:"min-w-[210px] mr-4"}):e.h("eds-code-block",{code:`${r}-${s}`,class:r==="border"?"min-w-[250px] mr-4":"min-w-[210px] mr-4"}))))}))}groupTokensByCategory(r){const t={};return Object.entries(r).forEach(([s,o])=>{const a=s.split("-")[0];t[a]||(t[a]=[]),t[a].push({[s]:o})}),t}render(){const r=this.show?{[this.show]:l[this.show]}:l;return e.h("section",{key:"43d7e8b3192d4a2d596ca99a4dce072ea7387924",class:"w-full mt-28"},Object.entries(r).map(([t,s])=>s?this.renderSection(t,s):null))}},i={xxs:"2px",xs:"4px",sm:"8px",md:"12px",lg:"16px",pill:"100px"},f=class{constructor(r){e.registerInstance(this,r)}render(){return e.h("section",{key:"0b0ccb9adcfa77ea898828ddbb244e959f93e2e4",class:"w-full mt-28"},e.h("ul",{key:"7c81d0a9725565c4e2587369528568d640e7b1a3",class:"gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(i).map(([r,t])=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},e.h("div",{class:`w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${r}`},e.h("eds-code-block",{language:"Utility Class",code:`rounded-${r}`,class:"mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto"}),e.h("eds-code-block",{code:`border-radius:${t}`,language:"css",class:"mx-auto min-w-[200px] sm:max-w-[200px] ml-auto"}))))))}},b={small:"0px 1.5px 2px rgba(0, 0, 0, 0.1)",hover:"0px 0px 16px rgba(0, 0, 0, 0.2)",accent:"0px 0px 12px rgba(0, 201, 89, 0.6)",podium:"0px 0px 8px 8px rgb(0 0 0 / 25%);",border:"0 10px 10px rgba(0, 0, 0, 0.15);","border-top":"0 -10px 10px rgba(0, 0, 0, 0.15);"},p={small:"0px 0px 16px rgba(0, 0, 0, 0.3)"},u={shadows:b,dropShadows:p},h=class{constructor(r){e.registerInstance(this,r)}render(){return e.h("section",{key:"18d2b4cdcc3b6d6ce8864a9c36e869be9b9e5cb4",class:"w-full mt-28"},e.h("ul",{key:"b258c50ab37a0445d523187c773e92f6569dd6ad",class:"gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(u).map(([r,t])=>Object.entries(t).map(([s,o])=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16"},e.h("div",{class:"w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft",style:{boxShadow:o}},e.h("eds-code-block",{code:`${r}-${s}`,language:"Utility Class",class:"mr-auto sm:mb-4 min-w-[200px]"}),e.h("eds-code-block",{code:`${o}`,language:"css",class:"ml-auto min-w-[200px]"})))))))}};exports.token_list=g;exports.token_radii=f;exports.token_shadows=h;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as d, h as e } from "./index-
|
|
1
|
+
import { r as d, h as e } from "./index-C-Gy1Lax.mjs";
|
|
2
2
|
const l = {
|
|
3
3
|
tokens: {
|
|
4
4
|
// grey
|
|
@@ -201,7 +201,7 @@ const l = {
|
|
|
201
201
|
}
|
|
202
202
|
render() {
|
|
203
203
|
const r = this.show ? { [this.show]: l[this.show] } : l;
|
|
204
|
-
return e("section", { key: "
|
|
204
|
+
return e("section", { key: "43d7e8b3192d4a2d596ca99a4dce072ea7387924", class: "w-full mt-28" }, Object.entries(r).map(([t, s]) => (
|
|
205
205
|
// Only render sections that exist in `colors`
|
|
206
206
|
s ? this.renderSection(t, s) : null
|
|
207
207
|
)));
|
|
@@ -218,7 +218,7 @@ const l = {
|
|
|
218
218
|
d(this, r);
|
|
219
219
|
}
|
|
220
220
|
render() {
|
|
221
|
-
return e("section", { key: "
|
|
221
|
+
return e("section", { key: "0b0ccb9adcfa77ea898828ddbb244e959f93e2e4", class: "w-full mt-28" }, e("ul", { key: "7c81d0a9725565c4e2587369528568d640e7b1a3", class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(f).map(([r, t]) => e("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${r}` }, e("eds-code-block", { language: "Utility Class", code: `rounded-${r}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), e("eds-code-block", { code: `border-radius:${t}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))));
|
|
222
222
|
}
|
|
223
223
|
}, i = {
|
|
224
224
|
small: "0px 1.5px 2px rgba(0, 0, 0, 0.1)",
|
|
@@ -237,7 +237,7 @@ const l = {
|
|
|
237
237
|
d(this, r);
|
|
238
238
|
}
|
|
239
239
|
render() {
|
|
240
|
-
return e("section", { key: "
|
|
240
|
+
return e("section", { key: "18d2b4cdcc3b6d6ce8864a9c36e869be9b9e5cb4", class: "w-full mt-28" }, e("ul", { key: "b258c50ab37a0445d523187c773e92f6569dd6ad", class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(b).map(([r, t]) => Object.entries(t).map(([s, o]) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16" }, e("div", { class: "w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft", style: { boxShadow: o } }, e("eds-code-block", { code: `${r}-${s}`, language: "Utility Class", class: "mr-auto sm:mb-4 min-w-[200px]" }), e("eds-code-block", { code: `${o}`, language: "css", class: "ml-auto min-w-[200px]" })))))));
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
243
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, h as e } from "./index-
|
|
1
|
+
import { r as a, h as e } from "./index-C-Gy1Lax.mjs";
|
|
2
2
|
const c = {
|
|
3
3
|
"1x1": "1/1",
|
|
4
4
|
"21x9": "21/9",
|
|
@@ -11,7 +11,7 @@ const c = {
|
|
|
11
11
|
a(this, t);
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return e("section", { key: "
|
|
14
|
+
return e("section", { key: "0fb029d34cba573e04e15030b3fdd1497ac9974e", class: "w-full" }, e("eds-section-core", { key: "d6914b95ef74d590d58b0c90600fc44f5d9d6678", tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, e("ul", { key: "f08511f07380707795b810fd0f34c1acdc47d37d", class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(c).map(([t, s]) => e("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { class: "container ratio-box flex items-center justify-center text-center border-2 border-soft", style: {
|
|
15
15
|
aspectRatio: s.replace("/", ":"),
|
|
16
16
|
// Cast to string to resolve TypeScript error
|
|
17
17
|
width: "100%",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),c={"1x1":"1/1","21x9":"21/9","16x9":"16/9","3x2":"3/2","4x3":"4/3","4x5":"4/5"},a=class{constructor(t){e.registerInstance(this,t)}render(){return e.h("section",{key:"0fb029d34cba573e04e15030b3fdd1497ac9974e",class:"w-full"},e.h("eds-section-core",{key:"d6914b95ef74d590d58b0c90600fc44f5d9d6678",tag:"div","section-title":"Aspect Ratios","heading-level":"h3"},e.h("ul",{key:"f08511f07380707795b810fd0f34c1acdc47d37d",class:"gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(c).map(([t,s])=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},e.h("div",{class:"container ratio-box flex items-center justify-center text-center border-2 border-soft",style:{aspectRatio:s.replace("/",":"),width:"100%",maxWidth:"300px"}},e.h("span",{class:"text-default font-bold mr-auto"},"aspect-",t),e.h("span",{class:"mt-2 text-sm ml-auto"},s)))))))}};exports.token_ratios=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),d=class{constructor(a){e.registerInstance(this,a)}render(){return e.h("div",{key:"144e643ff3f26d09b932b3bfa2086164134728c0",class:"w-full"},e.h("ul",{key:"901ef03cdff10b00eb4c8bdbda083760fcde7f24",class:"gap-y-8 md:gap-y-12 lg:gap-y-16"},e.h("li",{key:"330a1a3bae65fde46111f2213d25e436fd2a91cf",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},e.h("div",{key:"1d2a762f9cf33ea03af1d63892f9ab53293ee1e7",class:"container p-8 item-center border-2 border-soft"},e.h("div",{key:"adb666cc7517d3bf05d3599c75adb94833522848",class:"spacing-sample m-32 bg-darker"},e.h("span",{key:"b7b11b55a5ccc619c2aa9890d1051995ba9a22f7",class:"text-white"},"Margin: 2rem / m-32")))),e.h("li",{key:"0cf9be1778f86479eca5db5d38964cdffeb4d336",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},e.h("div",{key:"5327b962b290dcaf1479cee8a0ae4c85d195be6f",class:"container p-8 item-center border-2 border-soft"},e.h("div",{key:"7ada04bb258adad1d06562a6f35d44fcfe21ab5a",class:"spacing-sample ml-64 bg-darker"},e.h("span",{key:"5b50ff36cd166f19704cc431ea607fa95fdfe2aa",class:"text-white"},"Margin Left: 4rem / ml-64")))),e.h("li",{key:"93c162e7bd651e4e7876e9098327b5d0d6a14001",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},e.h("div",{key:"baad427ed16e9f64f268cf4b5172426dee3fbf81",class:"container p-8 item-center border-2 border-soft"},e.h("div",{key:"4e9cf544dd6ef7bace03d025a887e0c21b7fe3b4",class:"spacing-sample mt-32 bg-darker"},e.h("span",{key:"64858f80ac6535ad5d1f5e0dda7ed0b4ea61c9ba",class:"text-white"},"Margin Top: 2rem / mt-32")))),e.h("li",{key:"a5f0b462645727b11bdd874b7883cde9e3208e04",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},e.h("div",{key:"90fd6d72e160d5e16088c715153370b53ba07e36",class:"container p-8 item-center border-2 border-soft"},e.h("div",{key:"c46fbff19edc9b0389b3a3347e96846e8e01d0ea",class:"spacing-sample p-32 bg-darker"},e.h("span",{key:"0acbde0ab78642e37e25103260804a096cb9e996",class:"text-white"},"Padding: 2rem / p-32")))),e.h("li",{key:"cdb0d711cad94887bd001defe30f0334dd948d16",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},e.h("div",{key:"6874126bd20267fdd9d0031002e24a71e0a39693",class:"container p-8 item-center border-2 border-soft"},e.h("div",{key:"8ab168cab95089dffdc8bff3b9bb2f9cb1fc3832",class:"spacing-sample pt-32 bg-darker"},e.h("span",{key:"4366fbd79ce583f9399bc739da790b01759eb5ea",class:"text-white"},"Padding Top: 2rem / pt-32")))),e.h("li",{key:"affbabf8b1d8c4abdd61f51ac12cac4c5e3460a7",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},e.h("div",{key:"6e9eae3de01dd4ff99b19fdfc62eb4a301d5071d",class:"container p-8 item-center border-2 border-soft"},e.h("div",{key:"5e6788281bc9f57aab48cd768fa81fb98e1e31c3",class:"spacing-sample pl-32 bg-darker"},e.h("span",{key:"8fe02840d35475a60536f13abf97bd98cb53b07e",class:"text-white"},"Padding Left: 2rem / pl-32"))))))}};exports.token_spacing=d;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { r as d, h as e } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
const s = class {
|
|
3
|
+
constructor(a) {
|
|
4
|
+
d(this, a);
|
|
5
|
+
}
|
|
6
|
+
render() {
|
|
7
|
+
return e("div", { key: "144e643ff3f26d09b932b3bfa2086164134728c0", class: "w-full" }, e("ul", { key: "901ef03cdff10b00eb4c8bdbda083760fcde7f24", class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, e("li", { key: "330a1a3bae65fde46111f2213d25e436fd2a91cf", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "1d2a762f9cf33ea03af1d63892f9ab53293ee1e7", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "adb666cc7517d3bf05d3599c75adb94833522848", class: "spacing-sample m-32 bg-darker" }, e("span", { key: "b7b11b55a5ccc619c2aa9890d1051995ba9a22f7", class: "text-white" }, "Margin: 2rem / m-32")))), e("li", { key: "0cf9be1778f86479eca5db5d38964cdffeb4d336", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "5327b962b290dcaf1479cee8a0ae4c85d195be6f", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "7ada04bb258adad1d06562a6f35d44fcfe21ab5a", class: "spacing-sample ml-64 bg-darker" }, e("span", { key: "5b50ff36cd166f19704cc431ea607fa95fdfe2aa", class: "text-white" }, "Margin Left: 4rem / ml-64")))), e("li", { key: "93c162e7bd651e4e7876e9098327b5d0d6a14001", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "baad427ed16e9f64f268cf4b5172426dee3fbf81", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "4e9cf544dd6ef7bace03d025a887e0c21b7fe3b4", class: "spacing-sample mt-32 bg-darker" }, e("span", { key: "64858f80ac6535ad5d1f5e0dda7ed0b4ea61c9ba", class: "text-white" }, "Margin Top: 2rem / mt-32")))), e("li", { key: "a5f0b462645727b11bdd874b7883cde9e3208e04", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "90fd6d72e160d5e16088c715153370b53ba07e36", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "c46fbff19edc9b0389b3a3347e96846e8e01d0ea", class: "spacing-sample p-32 bg-darker" }, e("span", { key: "0acbde0ab78642e37e25103260804a096cb9e996", class: "text-white" }, "Padding: 2rem / p-32")))), e("li", { key: "cdb0d711cad94887bd001defe30f0334dd948d16", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "6874126bd20267fdd9d0031002e24a71e0a39693", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "8ab168cab95089dffdc8bff3b9bb2f9cb1fc3832", class: "spacing-sample pt-32 bg-darker" }, e("span", { key: "4366fbd79ce583f9399bc739da790b01759eb5ea", class: "text-white" }, "Padding Top: 2rem / pt-32")))), e("li", { key: "affbabf8b1d8c4abdd61f51ac12cac4c5e3460a7", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "6e9eae3de01dd4ff99b19fdfc62eb4a301d5071d", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "5e6788281bc9f57aab48cd768fa81fb98e1e31c3", class: "spacing-sample pl-32 bg-darker" }, e("span", { key: "8fe02840d35475a60536f13abf97bd98cb53b07e", class: "text-white" }, "Padding Left: 2rem / pl-32"))))));
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
s as token_spacing
|
|
12
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),s={"heading-01":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"42px",lineHeight:"100%",letterSpacing:"-0.01em"},md:{fontSize:"48px"},lg:{fontSize:"72px"},xl:{fontSize:"83px"}},"heading-02":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"36px",lineHeight:"100%",letterSpacing:"-0.01em"},lg:{fontSize:"48px"},xl:{fontSize:"60px"}},"heading-03":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"36px",lineHeight:"100%",letterSpacing:"-0.01em"},xl:{fontSize:"42px"}},"heading-04":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"28px",lineHeight:"100%",letterSpacing:"-0.01em"},xl:{fontSize:"36px"}},"heading-05":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"28px",lineHeight:"110%",letterSpacing:"-0.01em"}},"heading-06":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"22px",lineHeight:"120%"}}},l={"body-01":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"20px",lineHeight:"140%",letterSpacing:"-0.01em"}},"body-02":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"17px",lineHeight:"150%"}}},f={"ui-01":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"18px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-02":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"16px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-02-light":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"16px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-03":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"14px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-03-light":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"14px",lineHeight:"130%",letterSpacing:"-0.01em"}},"ui-04":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"12px",lineHeight:"100%",letterSpacing:"-0.01em"}},"ui-05":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"10px",lineHeight:"110%",letterSpacing:"-0.01em"}},caption:{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"12px",lineHeight:"120%"}}},g={"display-01":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"120px",lineHeight:"100%",letterSpacing:"-0.01em"},lg:{fontSize:"150px"}}},a={families:{sans:"Inter, Helvetica, Arial, sans-serif"},typesets:{...s,...l,...f,...g}},c=class{constructor(t){e.registerInstance(this,t)}render(){return e.h("section",{key:"b831c9707b00d17768f585e2015de8a7289b11d2",class:"w-full"},e.h("ul",{key:"472e46f2c903597d24e8f24cf28b6f475c7d7a82",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(a.typesets).filter(([t])=>t!=="displays").flatMap(([t,o])=>Object.entries(o).map(([n,i])=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},e.h("div",{class:"w-full p-4 block lg:flex items-center border border-soft rounded"},e.h("div",{class:"mr-auto hidden lg:block",style:{fontFamily:a.families.sans,fontWeight:i.fontWeight,fontSize:i.fontSize,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing}},e.h("span",{class:"text-default font-bold"},`${t} (${n})`)),e.h("div",{class:"mr-auto block lg:hidden p-4"},e.h("span",{class:"text-default f-heading-05"},`${t} (${n})`)),e.h("div",{class:"ml-auto"},e.h("eds-code-block",{code:`f-${t}`,language:"Utility Class",class:"min-w-[250px] mb-4"}),e.h("eds-code-block",{code:`${n}:f-${t}`,language:"Screen",class:"min-w-[250px] mb-4"}),e.h("eds-code-block",{code:[i.fontSize&&`font-size: ${i.fontSize};`,i.lineHeight&&`line-height: ${i.lineHeight};`,i.letterSpacing&&`letter-spacing: ${i.letterSpacing};`,i.fontWeight&&`font-weight: ${i.fontWeight};`,i.fontFamily&&`font-family: ${i.fontFamily};`].filter(Boolean).join(`
|
|
2
2
|
`),language:"css",class:"min-w-[250px] mb-4"}),e.h("eds-code-block",{code:`--var(--f-${t}-fontFamily)`,class:"min-w-[250px] mb-4"}),e.h("eds-code-block",{code:`--var(--f-${t}-fontWeight)`,class:"min-w-[250px] mb-4"}),e.h("eds-code-block",{code:`--var(--f-${t}-fontSize)`,class:"min-w-[250px] mb-4"}),e.h("eds-code-block",{code:`--var(--f-${t}-lineHeight)`,class:"min-w-[250px] mb-4"}),e.h("eds-code-block",{code:`--var(--f-${t}-letterSpacing)`,class:"min-w-[250px] mb-4"}))))))))}};exports.token_typography=c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as e } from "./index-
|
|
1
|
+
import { r as s, h as e } from "./index-C-Gy1Lax.mjs";
|
|
2
2
|
const l = {
|
|
3
3
|
"heading-01": {
|
|
4
4
|
sm: {
|
|
@@ -192,7 +192,7 @@ const l = {
|
|
|
192
192
|
s(this, t);
|
|
193
193
|
}
|
|
194
194
|
render() {
|
|
195
|
-
return e("section", { key: "
|
|
195
|
+
return e("section", { key: "b831c9707b00d17768f585e2015de8a7289b11d2", class: "w-full" }, e("ul", { key: "472e46f2c903597d24e8f24cf28b6f475c7d7a82", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(a.typesets).filter(([t]) => t !== "displays").flatMap(([t, o]) => Object.entries(o).map(([n, i]) => e("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { class: "w-full p-4 block lg:flex items-center border border-soft rounded" }, e("div", { class: "mr-auto hidden lg:block", style: {
|
|
196
196
|
fontFamily: a.families.sans,
|
|
197
197
|
fontWeight: i.fontWeight,
|
|
198
198
|
fontSize: i.fontSize,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./index-39c58238-SQ-JC-LH.js");JSON.stringify([{label:"About",url:"/about"},{label:"Focus Areas",url:"/focus-areas"},{label:"News & Events",url:"/news-and-events"},{label:"Contact",url:"/contact"}]),JSON.stringify([{label:"Home",url:"#",active:!0,ariaLabel:"Home Tab"},{label:"Profile",url:"#",active:!1,ariaLabel:"Profile Tab"},{label:"Settings",url:"#",active:!1,ariaLabel:"Settings Tab"}]),JSON.stringify([{title:"Card 1",description:"Description 1",tags:"tag1, tag2",url:"/link1"},{title:"Card 2",description:"Description 2",tags:"tag3",url:"/link2"}]),JSON.stringify([{label:"Home",url:"/"},{label:"Products",url:"/products"},{label:"Electronics",url:"/products/electronics"},{label:"Laptops",url:"/products/electronics/laptops"}]),JSON.stringify([{name:"username",label:"Username",type:"text",required:!0,maxlength:10},{name:"email",label:"Email",type:"email",required:!0},{name:"number",label:"Number",type:"number",required:!0},{name:"password",label:"Password",type:"password",required:!0,maxlength:50},{name:"date",label:"Date",type:"date",required:!0},{name:"file",label:"File",type:"file",required:!1},{name:"hiddenField",type:"hidden",value:"hiddenValue"},{name:"bio",label:"Biography",type:"textarea",required:!0,maxlength:300},{name:"role",label:"Role",type:"select",required:!0,options:[{label:"Admin",value:"admin"},{label:"Editor",value:"editor"},{label:"Viewer",value:"viewer"}]},{name:"preferences",type:"checkbox",label:"Select your preferences",options:[{value:"option1",label:"Option 1"},{value:"option2",label:"Option 2"},{value:"option3",label:"Option 3"}],required:!0},{name:"gender",type:"radio",label:"Select your gender",options:[{value:"female",label:"Female"},{value:"male",label:"Male"}],required:!0},{name:"newsletter",label:"newsletter",type:"checkbox",value:"subscribe",required:!0},{name:"range",label:"Range bar",type:"range",min:"0",max:"10",step:"1",required:!0}]),JSON.stringify([{type:"image/webp",srcset:"https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 1080w"},{type:"image/jpeg",srcset:"https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w"}]),JSON.stringify([{Property:"username",Type:"string",Required:"Yes"},{Property:"password",Type:"string",Required:"Yes"},{Property:"email",Type:"string",Required:"No"}]),JSON.stringify({Type:{format:"uppercase"},Property:{format:"code"},Required:{hidden:!0}});function r(){return typeof window<"u"&&typeof window._paq<"u"}function s(e,...a){r()?window._paq.push([e,...a]):console.warn("Matomo is not available or not initialized.")}function l(e){var a;if(!r()){console.warn("Matomo is not available or not initialized.");return}const t=[];!((a=e.parentContext)===null||a===void 0)&&a.componentName&&t.push(e.parentContext.componentName),t.push(e.tag||"unknown-tag"),t.push(e.name||"unknown-name");const o=t.join("/");s("trackEvent",e.category,e.action,o),console.log(Object.assign({},e))}function n(){r()&&(window._paq.push(["rememberConsentGiven"]),console.log("User has opted in to tracking"))}const d=["green","yellow","among-blue","purple"],c=i.cva([],{variants:{color:d.reduce((e,a)=>Object.assign(Object.assign({},e),{[a]:""}),{}),direction:{top:"",bottom:""},pseudo:{true:"before:effect-opacity effect-bg-behind",false:""},hover:{true:"before:opacity-0 hover:before:opacity-100",false:""}},compoundVariants:[{color:"green",direction:"top",pseudo:!0,className:"before:bg-gradient-01-top"},{color:"green",pseudo:!0,direction:"bottom",className:"before:bg-gradient-01-bottom"},{color:"green",direction:"top",pseudo:!1,className:"bg-gradient-01-top"},{color:"green",pseudo:!1,direction:"bottom",className:"bg-gradient-01-bottom"},{color:"yellow",direction:"top",pseudo:!0,className:"before:bg-gradient-02-top"},{color:"yellow",direction:"bottom",pseudo:!0,className:"before:bg-gradient-02-bottom"},{color:"yellow",direction:"top",pseudo:!1,className:"bg-gradient-02-top"},{color:"yellow",direction:"bottom",pseudo:!1,className:"bg-gradient-02-bottom"},{color:"purple",direction:"top",pseudo:!0,class:"before:bg-gradient-03-top"},{color:"purple",direction:"bottom",pseudo:!0,class:"before:bg-gradient-03-bottom"},{color:"purple",direction:"top",pseudo:!1,class:"bg-gradient-03-top"},{color:"purple",direction:"bottom",pseudo:!1,class:"bg-gradient-03-bottom"},{color:"among-blue",direction:"top",pseudo:!0,class:"before:bg-gradient-04-top"},{color:"among-blue",direction:"bottom",pseudo:!0,class:"before:bg-gradient-04-bottom"},{color:"among-blue",direction:"top",pseudo:!1,class:"bg-gradient-04-top"},{color:"among-blue",direction:"bottom",pseudo:!1,class:"bg-gradient-04-bottom"}],defaultVariants:{direction:"top",pseudo:!0}});exports.gradientBGColorVariants=c;exports.matomoOptIn=n;exports.sendAnalytics=l;
|