@powerhousedao/connect 4.1.0-dev.12 → 4.1.0-dev.14
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/dist/assets/{AddDriveModal.DJ-dAFOA.js → AddDriveModal.BS70zcOt.js} +2 -2
- package/dist/assets/{AddDriveModal.DJ-dAFOA.js.map → AddDriveModal.BS70zcOt.js.map} +1 -1
- package/dist/assets/{AddRemoteDriveModal.Bbso9zlA.js → AddRemoteDriveModal.B4vRLfuY.js} +2 -2
- package/dist/assets/{AddRemoteDriveModal.Bbso9zlA.js.map → AddRemoteDriveModal.B4vRLfuY.js.map} +1 -1
- package/dist/assets/{CookiesPolicyModal._TIEDwTl.js → CookiesPolicyModal.BB5tPLL1.js} +2 -2
- package/dist/assets/{CookiesPolicyModal._TIEDwTl.js.map → CookiesPolicyModal.BB5tPLL1.js.map} +1 -1
- package/dist/assets/{CreateDocumentModal.6coMTZ5K.js → CreateDocumentModal.CH46uens.js} +2 -2
- package/dist/assets/{CreateDocumentModal.6coMTZ5K.js.map → CreateDocumentModal.CH46uens.js.map} +1 -1
- package/dist/assets/{DebugSettingsModal.CC8h7-01.js → DebugSettingsModal.DrwrnsQg.js} +2 -2
- package/dist/assets/{DebugSettingsModal.CC8h7-01.js.map → DebugSettingsModal.DrwrnsQg.js.map} +1 -1
- package/dist/assets/{DeleteDriveModal.MOCpt-lE.js → DeleteDriveModal.Ci2Tk1nU.js} +2 -2
- package/dist/assets/{DeleteDriveModal.MOCpt-lE.js.map → DeleteDriveModal.Ci2Tk1nU.js.map} +1 -1
- package/dist/assets/{DeleteItemModal.D1JNJ3SD.js → DeleteItemModal.DSTkzCfP.js} +2 -2
- package/dist/assets/{DeleteItemModal.D1JNJ3SD.js.map → DeleteItemModal.DSTkzCfP.js.map} +1 -1
- package/dist/assets/{DisclaimerModal.CpWL_8dJ.js → DisclaimerModal.C15wk_lm.js} +2 -2
- package/dist/assets/{DisclaimerModal.CpWL_8dJ.js.map → DisclaimerModal.C15wk_lm.js.map} +1 -1
- package/dist/assets/{DriveSettingsModal.Cq31PlSd.js → DriveSettingsModal.C-G7CykG.js} +2 -2
- package/dist/assets/{DriveSettingsModal.Cq31PlSd.js.map → DriveSettingsModal.C-G7CykG.js.map} +1 -1
- package/dist/assets/{SettingsModal.DXSp8FUL.js → SettingsModal.wa7YqU2k.js} +2 -2
- package/dist/assets/{SettingsModal.DXSp8FUL.js.map → SettingsModal.wa7YqU2k.js.map} +1 -1
- package/dist/assets/{Trans.B_Bse39z.js → Trans.fzROOCo7.js} +2 -2
- package/dist/assets/{Trans.B_Bse39z.js.map → Trans.fzROOCo7.js.map} +1 -1
- package/dist/assets/{UpgradeDriveModal.Bcaqra-T.js → UpgradeDriveModal.CZjzdZUT.js} +2 -2
- package/dist/assets/{UpgradeDriveModal.Bcaqra-T.js.map → UpgradeDriveModal.CZjzdZUT.js.map} +1 -1
- package/dist/assets/{atlas-import.CrAV29KX.js → atlas-import.KoebOAIH.js} +2 -2
- package/dist/assets/{atlas-import.CrAV29KX.js.map → atlas-import.KoebOAIH.js.map} +1 -1
- package/dist/assets/{content.BVfObTK-.js → content.DOqiMQud.js} +3 -3
- package/dist/assets/{content.BVfObTK-.js.map → content.DOqiMQud.js.map} +1 -1
- package/dist/assets/{cookie-banner.CqSpDuL2.js → cookie-banner.BnV4V9SC.js} +2 -2
- package/dist/assets/{cookie-banner.CqSpDuL2.js.map → cookie-banner.BnV4V9SC.js.map} +1 -1
- package/dist/assets/{index.Be3reTUB.js → index.BrAiYFNe.js} +3 -3
- package/dist/assets/index.BrAiYFNe.js.map +1 -0
- package/dist/assets/{index.CTYq_dOR.js → index.CFBhtw7k.js} +2 -2
- package/dist/assets/{index.CTYq_dOR.js.map → index.CFBhtw7k.js.map} +1 -1
- package/dist/assets/{index.MXCURbo4.js → index.CGEMCdxE.js} +2 -2
- package/dist/assets/{index.MXCURbo4.js.map → index.CGEMCdxE.js.map} +1 -1
- package/dist/assets/{index.C0tp--nk.js → index.CYihR6D1.js} +5 -5
- package/dist/assets/{index.C0tp--nk.js.map → index.CYihR6D1.js.map} +1 -1
- package/dist/assets/{index.ycvKRDCc.js → index.Cxw5H4RY.js} +2 -2
- package/dist/assets/{index.ycvKRDCc.js.map → index.Cxw5H4RY.js.map} +1 -1
- package/dist/assets/{index.TIUvoczv.js → index.D0rNrBNg.js} +2 -2
- package/dist/assets/{index.TIUvoczv.js.map → index.D0rNrBNg.js.map} +1 -1
- package/dist/assets/{index.hUDcoha1.js → index.DD46OEj6.js} +2 -2
- package/dist/assets/{index.hUDcoha1.js.map → index.DD46OEj6.js.map} +1 -1
- package/dist/assets/{index.DNX0QOJs.js → index.Ddrhov_Q.js} +2 -2
- package/dist/assets/{index.DNX0QOJs.js.map → index.Ddrhov_Q.js.map} +1 -1
- package/dist/assets/{main.CpBKbYrC.js → main.D9ohwghr.js} +3 -3
- package/dist/assets/{main.CpBKbYrC.js.map → main.D9ohwghr.js.map} +1 -1
- package/dist/assets/{modal.B6AxZ1yB.js → modal.B5QcwU3z.js} +3 -3
- package/dist/assets/{modal.B6AxZ1yB.js.map → modal.B5QcwU3z.js.map} +1 -1
- package/dist/assets/{modals.jKUpbvJU.js → modals.CNMxXHX5.js} +2 -2
- package/dist/assets/{modals.jKUpbvJU.js.map → modals.CNMxXHX5.js.map} +1 -1
- package/dist/assets/{nodefs.rxvmn5tR.js → nodefs.D8koVME7.js} +2 -2
- package/dist/assets/{nodefs.rxvmn5tR.js.map → nodefs.D8koVME7.js.map} +1 -1
- package/dist/assets/{nodes.CkHD8Mis.js → nodes.CzVpU5ay.js} +2 -2
- package/dist/assets/{nodes.CkHD8Mis.js.map → nodes.CzVpU5ay.js.map} +1 -1
- package/dist/assets/{opfs-ahp.BE5Mymun.js → opfs-ahp.DtxBzzyG.js} +2 -2
- package/dist/assets/{opfs-ahp.BE5Mymun.js.map → opfs-ahp.DtxBzzyG.js.map} +1 -1
- package/dist/assets/{registerServiceWorker.3WXSlUUt.js → registerServiceWorker.DKuDmwXm.js} +2 -2
- package/dist/assets/{registerServiceWorker.3WXSlUUt.js.map → registerServiceWorker.DKuDmwXm.js.map} +1 -1
- package/dist/assets/{root.20yJwNI0.js → root.clzrzcwe.js} +2 -2
- package/dist/assets/{root.20yJwNI0.js.map → root.clzrzcwe.js.map} +1 -1
- package/dist/assets/{useAcceptedCookies.BEC0OUzL.js → useAcceptedCookies.gs7EPZvN.js} +2 -2
- package/dist/assets/{useAcceptedCookies.BEC0OUzL.js.map → useAcceptedCookies.gs7EPZvN.js.map} +1 -1
- package/dist/assets/useDefaultDocumentModelEditor.C3yx0NsG.js +2 -0
- package/dist/assets/{useDefaultDocumentModelEditor.oOnI3BO7.js.map → useDefaultDocumentModelEditor.C3yx0NsG.js.map} +1 -1
- package/dist/assets/{useInitSentry.DX0S8ltZ.js → useInitSentry.BjNhCx3t.js} +6 -6
- package/dist/assets/{useInitSentry.DX0S8ltZ.js.map → useInitSentry.BjNhCx3t.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +11 -11
- package/dist/assets/index.Be3reTUB.js.map +0 -1
- package/dist/assets/useDefaultDocumentModelEditor.oOnI3BO7.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as y,jsx as o}from"react/jsx-runtime";import{u as b}from"./useAcceptedCookies.
|
|
2
|
-
//# sourceMappingURL=cookie-banner.
|
|
1
|
+
import{jsxs as y,jsx as o}from"react/jsx-runtime";import{u as b}from"./useAcceptedCookies.gs7EPZvN.js";import{s as v,i as g,h as k,j as w}from"./index.CYihR6D1.js";import{useSyncExternalStore as S}from"react";import{i as l}from"./i18next.CqOP20KE.js";import{useModal as C}from"./modal.B5QcwU3z.js";import{a6 as D}from"./index.CW6hXWch.js";import{T as B}from"./Trans.fzROOCo7.js";import"react-dom/client";import"./browser.BkwNmV2Z.js";import"./app-skeleton.js";import"react-dom";const x={type:"3rdParty",init(e){v(e.options.react),g(e)}},A=k.routerBasename,c=`${A}:display-cookie-banner`,n=new Set;let d=T();function T(){try{return localStorage.getItem(c)!=="false"}catch(e){return console.error(e),!0}}function a(){return d}function N(e){d=e,localStorage.setItem(c,JSON.stringify(e))}function E(e){return n.add(e),()=>n.delete(e)}const I=()=>[S(E,a,a),N],j={cancel:"Cancel",delete:"Delete",continue:"Continue",empty:"Empty",create:"Create",save:"Save",export:"Export",reload:"Reload",reloadConnect:"Click here to reload Connect"},P={placeholder:"Search Powerhouse",filterLabel:"File type"},F={sections:{folders:{title:"Folders",empty:"No folders 🗂️"},documents:{title:"Documents and files",empty:"No documents or files 📄"}}},O={options:{switchboardLink:"Switchboard Link"}},R={deleteItem:{folder:{header:"Delete “{{item}}” folder?",body:"Are you sure you want to delete this folder? All files and subfolders within it will be removed."},file:{header:"Delete “{{item}}” file?",body:"Are you sure you want to delete this file?"}},deleteDrive:{title:'Delete "{{label}}" drive?',body:"Are you sure you want to delete this drive? All files and subfolders within it will be removed. Do you want to proceed?",inputPlaceholder:"Enter drive name..."},upgradeDrive:{header:"Upgrade to cloud drive",body:"You are moving files from a private to a shared drive. These files will become accessible to others in the shared drive.Do you want to proceed?"},createDocument:{header:"Create a new document",placeholder:"Document name"},connectSettings:{title:"Settings",body:"These settings will apply to all drives.",clearStorage:{button:"Clear Storage",description:"Delete previous session data",confirmation:{title:"Clear Storage",body:"Are you sure you want to clear the storage? This will remove all previous session data.",clearButton:"Clear Storage"}},enabledDocumentTypes:{title:"Document Models",description:"Documents enabled",allSelected:"All documents are selected"}},exportDocumentWithErrors:{title:"Your document contains errors",body:"Your document contains structure errors. Do you want to export it anyway?"},disclaimer:{title:"Disclaimer",body:"All content provided herein our website, hyperlinked sites, associated applications, forums, blogs, social media accounts and other platforms (“Site”) is for your general information only, procured from third party sources. We make no warranties of any kind in relation to our content, including but not limited to accuracy and updatedness. No part of the content that we provide constitutes financial advice, legal advice or any other form of advice meant for your specific reliance for any purpose. Any use or reliance on our content is solely at your own risk and discretion. You should conduct your own research, review, analyse and verify our content before relying on them. Trading is a highly risky activity that can lead to major losses, please therefore consult your financial advisor before making any decision. No content on our Site is meant to be a solicitation or offer."},cookiesPolicy:{title:"Cookies Policy",body:"<subtitle>Use of Cookies and Similar Technologies</subtitle><p>The Site is using cookies. Cookies are small text files that are placed on your computer by websites that you visit. They are widely used in order to make websites work, or work more efficiently, as well as to provide information to the owners of the site. Cookies are typically stored on your computer´s hard drive.Information collected from cookies is used by us to evaluate the effectiveness of our Site and analyze trends. The information collected from cookies allows us to determine such things as which parts of the Site are most visited and difficulties our visitors may experience in accessing the SIte. With this knowledge, we can improve the quality of your experience on the Site by recognizing and delivering more of the most desired features and information, as well as by resolving access difficulties.</p><p>We use third party service providers, to assist us in better understanding the use of our Site. Our service providers will place cookies on the hard drive of your computer (or use similar technologies) and will receive information that we select that will educate us on such things as how visitors navigate around our Site. This information is aggregated to provide statistical data about our users browsing actions and patterns, and does not personally identify individuals. This information may include:</p><p>Computer or mobile device information, Website usage information, such as:<list></p><bullet>Page views,</bullet><bullet>Button clicks,</bullet><bullet>Input form changes (without the values being entered),</bullet><bullet>Errors.</bullet></list><p>Our service providers analyses this information and provides us with aggregate reports. The information and analysis provided by our service providers will be used to assist us in better understanding our visitors interests in our Site and how to better serve those interests. If you want to avoid using cookies altogether, you can disable cookies in your browser. However, disabling cookies might make it impossible for you to use certain features of the Site. Your use of the Site with a browser that is configured to accept cookies constitutes an acceptance of our and third-party cookies.</p>"}},W={deleteDriveSuccess:"Drive successfully deleted",deleteFolderSuccess:"Folder deleted",fileDeleteSuccess:"File deleted",addDriveSuccess:"New drive successfully added",driveSyncSuccess:"Drive synced successfully",driveSyncError:"Error synchronizing drive {{drive}}",driveSyncConflict:"Conflict error detected in {{drive}}",reloadApp:"It seems like you're running an outdated version of the app. Please reload Connect to get the latest version."},Y={cookiePolicy:"Cookie Policy",termsOfUse:"Terms of Use",disclaimer:"Disclaimer",builtWith:"Built with <icon /> Powerhouse"},L={message:"This website uses cookies for analytic purposes only. Cookies are anonymous and do not link to user data. We collect information to improve the user experience and validate UI changes. You can still use the page without cookies. For more information, please read our <a>cookies policy.</a>",accept:"Accept configured cookies",reject:"Reject all cookies",cookies:{functional:"Functional cookies",analytics:"Analytics cookies"}},U={common:j,searchbar:P,folderView:F,files:O,modals:R,notifications:W,footer:Y,cookieBanner:L},z={en:{code:"en",name:"English",translation:U}};l.use(x).init({resources:z,fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1}}).catch(e=>{console.error(e)});const K=(e,i)=>e.some(t=>t.id===i&&t.value),oe=()=>{const{t:e}=w(void 0,{useSuspense:!0,i18n:l}),{showModal:i}=C(),[t,s]=I(),[,r]=b(),u=[{id:"analytics-cookie",label:e("cookieBanner.cookies.analytics"),value:!0}],m=p=>{s(!1),K(p,"analytics-cookie")&&r(h=>({...h,analytics:!0}))},f=()=>{s(!1),r(()=>({analytics:!1,functional:!1,marketing:!1}))};return t?y("div",{className:"absolute inset-0 z-[10000] backdrop-blur-sm",children:[o("div",{className:"absolute inset-0 bg-black opacity-15"}),o("div",{className:"absolute inset-x-0 bottom-0 flex justify-center bg-white px-10 pb-16 pt-10 shadow-lg",children:o(D,{className:"max-w-[1024px] ",cookies:u,onSubmit:m,onReject:f,submitLabel:e("cookieBanner.accept"),rejectLabel:e("cookieBanner.reject"),children:o("p",{className:"font-semibold text-gray-500",children:o(B,{i18nKey:"cookieBanner.message",components:{a:o("a",{onClick:()=>i("cookiesPolicy",{}),className:"cursor-pointer text-gray-900 hover:underline"},"cookieBanner.message-link")}},"cookieBanner.message")})})})]}):null};export{oe as CookieBanner};
|
|
2
|
+
//# sourceMappingURL=cookie-banner.BnV4V9SC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookie-banner.
|
|
1
|
+
{"version":3,"file":"cookie-banner.BnV4V9SC.js","sources":["../../../../node_modules/.pnpm/react-i18next@13.5.0_i18next@23.16.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-i18next/dist/es/initReactI18next.js","../../src/hooks/useCookiebanner.ts","../../src/i18n/index.ts","../../src/components/cookie-banner.tsx"],"sourcesContent":["import { setDefaults } from './defaults.js';\nimport { setI18n } from './i18nInstance.js';\nexport const initReactI18next = {\n type: '3rdParty',\n init(instance) {\n setDefaults(instance.options.react);\n setI18n(instance);\n }\n};","import connectConfig from '#connect-config';\nimport { useSyncExternalStore } from 'react';\n\nconst namespace = connectConfig.routerBasename;\n\nexport const COOKIE_BANNER_KEY_STORAGE = `${namespace}:display-cookie-banner`;\n\nconst listeners = new Set<() => void>();\n\nlet bannerShown = getInitial();\n\nfunction getInitial(): boolean {\n try {\n const value = localStorage.getItem(COOKIE_BANNER_KEY_STORAGE);\n return value !== 'false';\n } catch (error) {\n console.error(error);\n return true;\n }\n}\n\nfunction getCookieBannerState(): boolean {\n return bannerShown;\n}\n\nfunction setCookieBannerState(state: boolean) {\n bannerShown = state;\n localStorage.setItem(COOKIE_BANNER_KEY_STORAGE, JSON.stringify(state));\n}\n\nfunction subscribe(fn: () => void) {\n listeners.add(fn);\n return () => listeners.delete(fn);\n}\n\nexport const useCookieBanner = () => {\n const cookieBannerShown = useSyncExternalStore(\n subscribe,\n getCookieBannerState,\n getCookieBannerState,\n );\n return [cookieBannerShown, setCookieBannerState] as const;\n};\n","import i18n, { type Resource } from 'i18next';\nimport { initReactI18next } from 'react-i18next';\n\nimport translationEN from './locales/en.json' with { type: 'json' };\n\nconst resources: Resource = {\n en: {\n code: 'en',\n name: 'English',\n translation: translationEN,\n },\n};\n\ni18n.use(initReactI18next)\n .init({\n resources,\n fallbackLng: 'en',\n debug: false,\n interpolation: {\n escapeValue: false,\n },\n })\n .catch((e: unknown) => {\n console.error(e);\n });\n\nexport default i18n;\n","import {\n type CookieInput,\n CookieBanner as PHCookieBanner,\n} from '@powerhousedao/design-system';\nimport { Trans, useTranslation } from 'react-i18next';\nimport { useAcceptedCookies } from '../hooks/useAcceptedCookies.js';\nimport { useCookieBanner } from '../hooks/useCookiebanner.js';\nimport i18n from '../i18n';\nimport { useModal } from './modal/index.js';\n\nconst isCookieAccepted = (cookies: CookieInput[], id: string) => {\n return cookies.some(cookie => cookie.id === id && cookie.value);\n};\n\nexport const CookieBanner = () => {\n const { t } = useTranslation(undefined, {\n useSuspense: true,\n i18n,\n });\n const { showModal } = useModal();\n const [showBanner, setShowBanner] = useCookieBanner();\n const [, setAcceptedCookies] = useAcceptedCookies();\n\n const cookiesInput: CookieInput[] = [\n {\n id: 'analytics-cookie',\n label: t('cookieBanner.cookies.analytics'),\n value: true,\n },\n ];\n\n const handleAccept = (cookies: CookieInput[]) => {\n setShowBanner(false);\n\n if (isCookieAccepted(cookies, 'analytics-cookie')) {\n setAcceptedCookies(acceptedCookies => ({\n ...acceptedCookies,\n analytics: true,\n }));\n }\n };\n\n const handleReject = () => {\n setShowBanner(false);\n setAcceptedCookies(() => ({\n analytics: false,\n functional: false,\n marketing: false,\n }));\n };\n\n if (!showBanner) {\n return null;\n }\n\n return (\n <div className=\"absolute inset-0 z-[10000] backdrop-blur-sm\">\n <div className=\"absolute inset-0 bg-black opacity-15\" />\n <div className=\"absolute inset-x-0 bottom-0 flex justify-center bg-white px-10 pb-16 pt-10 shadow-lg\">\n <PHCookieBanner\n className=\"max-w-[1024px] \"\n cookies={cookiesInput}\n onSubmit={handleAccept}\n onReject={handleReject}\n submitLabel={t('cookieBanner.accept')}\n rejectLabel={t('cookieBanner.reject')}\n >\n <p className=\"font-semibold text-gray-500\">\n <Trans\n key={'cookieBanner.message'}\n i18nKey=\"cookieBanner.message\"\n components={{\n a: (\n <a\n onClick={() =>\n showModal('cookiesPolicy', {})\n }\n key={'cookieBanner.message-link'}\n className=\"cursor-pointer text-gray-900 hover:underline\"\n />\n ),\n }}\n />\n </p>\n </PHCookieBanner>\n </div>\n </div>\n );\n};\n"],"names":["initReactI18next","instance","setDefaults","setI18n","namespace","connectConfig","COOKIE_BANNER_KEY_STORAGE","listeners","bannerShown","getInitial","error","getCookieBannerState","setCookieBannerState","state","subscribe","fn","useCookieBanner","useSyncExternalStore","resources","translationEN","i18n","isCookieAccepted","cookies","id","cookie","CookieBanner","t","useTranslation","showModal","useModal","showBanner","setShowBanner","setAcceptedCookies","useAcceptedCookies","cookiesInput","handleAccept","acceptedCookies","handleReject","jsxs","jsx","PHCookieBanner","Trans"],"mappings":"8dAEO,MAAMA,EAAmB,CAC9B,KAAM,WACN,KAAKC,EAAU,CACbC,EAAYD,EAAS,QAAQ,KAAK,EAClCE,EAAQF,CAAQ,CACpB,CACA,ECLMG,EAAYC,EAAc,eAEnBC,EAA4B,GAAGF,CAAS,yBAE/CG,MAAgB,IAEtB,IAAIC,EAAcC,EAAA,EAElB,SAASA,GAAsB,CAC3B,GAAI,CAEA,OADc,aAAa,QAAQH,CAAyB,IAC3C,OAAA,OACZI,EAAO,CACZ,eAAQ,MAAMA,CAAK,EACZ,EAAA,CAEf,CAEA,SAASC,GAAgC,CACrC,OAAOH,CACX,CAEA,SAASI,EAAqBC,EAAgB,CAC1CL,EAAcK,EACd,aAAa,QAAQP,EAA2B,KAAK,UAAUO,CAAK,CAAC,CACzE,CAEA,SAASC,EAAUC,EAAgB,CAC/B,OAAAR,EAAU,IAAIQ,CAAE,EACT,IAAMR,EAAU,OAAOQ,CAAE,CACpC,CAEO,MAAMC,EAAkB,IAMpB,CALmBC,EACtBH,EACAH,EACAA,CAAA,EAEuBC,CAAoB,47LCpC7CM,EAAsB,CACxB,GAAI,CACA,KAAM,KACN,KAAM,UACN,YAAaC,CAAA,CAErB,EAEAC,EAAK,IAAIpB,CAAgB,EACpB,KAAK,CACF,UAAAkB,EACA,YAAa,KACb,MAAO,GACP,cAAe,CACX,YAAa,EAAA,CAErB,CAAC,EACA,MAAO,GAAe,CACnB,QAAQ,MAAM,CAAC,CACnB,CAAC,ECdL,MAAMG,EAAmB,CAACC,EAAwBC,IACvCD,EAAQ,KAAKE,GAAUA,EAAO,KAAOD,GAAMC,EAAO,KAAK,EAGrDC,GAAe,IAAM,CAC9B,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAe,OAAW,CACpC,YAAa,GAAA,KACbP,CAAA,CACH,EACK,CAAE,UAAAQ,CAAA,EAAcC,EAAA,EAChB,CAACC,EAAYC,CAAa,EAAIf,EAAA,EAC9B,CAAA,CAAGgB,CAAkB,EAAIC,EAAA,EAEzBC,EAA8B,CAChC,CACI,GAAI,mBACJ,MAAOR,EAAE,gCAAgC,EACzC,MAAO,EAAA,CACX,EAGES,EAAgBb,GAA2B,CAC7CS,EAAc,EAAK,EAEfV,EAAiBC,EAAS,kBAAkB,GAC5CU,EAAmBI,IAAoB,CACnC,GAAGA,EACH,UAAW,EAAA,EACb,CACN,EAGEC,EAAe,IAAM,CACvBN,EAAc,EAAK,EACnBC,EAAmB,KAAO,CACtB,UAAW,GACX,WAAY,GACZ,UAAW,EAAA,EACb,CAAA,EAGN,OAAKF,EAKDQ,EAAC,MAAA,CAAI,UAAU,8CACX,SAAA,CAAAC,EAAC,MAAA,CAAI,UAAU,sCAAA,CAAuC,EACtDA,EAAC,MAAA,CAAI,UAAU,uFACX,SAAAA,EAACC,EAAA,CACG,UAAU,kBACV,QAASN,EACT,SAAUC,EACV,SAAUE,EACV,YAAaX,EAAE,qBAAqB,EACpC,YAAaA,EAAE,qBAAqB,EAEpC,SAAAa,EAAC,IAAA,CAAE,UAAU,8BACT,SAAAA,EAACE,EAAA,CAEG,QAAQ,uBACR,WAAY,CACR,EACIF,EAAC,IAAA,CACG,QAAS,IACLX,EAAU,gBAAiB,EAAE,EAGjC,UAAU,8CAAA,EADL,2BAAA,CAET,CAER,EAZK,sBAAA,CAaT,CACJ,CAAA,CAAA,CACJ,CACJ,CAAA,EACJ,EAlCO,IAoCf","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as Y,jsxs as Me}from"react/jsx-runtime";import*as Gt from"react";import Pu,{useState as Ms,useEffect as en,createContext as Z_,useContext as Y_,forwardRef as fh,useRef as Nt,useCallback as ve,useImperativeHandle as wb,useId as dh,memo as xb,useMemo as to}from"react";import{ar as z_,a_ as K_,o as Ci,a$ as ii,s as Ie,b0 as X_,b1 as kb,b as Ib,b2 as J_,d as eN,b3 as tN,w as Ln,b4 as Vf,b5 as jc,b6 as Rb,g as nN,b7 as iN,b8 as rN,l as sN,b9 as oN,ba as aN,bb as lN,bc as uN,bd as cN,be as fN,bf as dN,p as hN,bg as pN,bh as mN,bi as Db,bj as Cb,bk as Pb,bl as Ep,bm as gN,bn as vN,bo as yN,bp as bN,bq as ON,br as Ap,bs as SN,q as Gc,bt as TN,bu as EN,bv as AN,bw as _N,bx as NN,by as wN,bz as xN,bA as kN,bB as IN,bC as RN,bD as DN}from"./index.CW6hXWch.js";import{c2 as Mb,c3 as ie,c4 as On,c5 as Su,c6 as En,c7 as bc,c8 as Ht,c9 as tn,ca as Oc,cb as Lr,cc as Ls,cd as CN,ce as z,cf as PN,cg as MN,ch as Lb,ci as $b,cj as LN,ck as Qb,cl as _p,cm as Oi,cn as Np,co as wp,cp as xp,cq as $N,cr as ui,cs as Cn,ct as QN,cu as $r,cv as $s,cw as ot,cx as Qs,cy as hh,cz as Fb,cA as Vb,cB as Bb,cC as Ub,cD as Bf,cE as FN,cF as Mu,cG as VN,cH as ph,cI as mh,cJ as qb,cK as jb,cL as BN,cM as Uf,cN as qf,cO as jf,cP as gs,cQ as UN,cR as Gb,cS as qN,cT as jN,cU as it,cV as GN,cW as HN,cX as WN}from"./index.
|
|
1
|
+
import{jsx as Y,jsxs as Me}from"react/jsx-runtime";import*as Gt from"react";import Pu,{useState as Ms,useEffect as en,createContext as Z_,useContext as Y_,forwardRef as fh,useRef as Nt,useCallback as ve,useImperativeHandle as wb,useId as dh,memo as xb,useMemo as to}from"react";import{ar as z_,a_ as K_,o as Ci,a$ as ii,s as Ie,b0 as X_,b1 as kb,b as Ib,b2 as J_,d as eN,b3 as tN,w as Ln,b4 as Vf,b5 as jc,b6 as Rb,g as nN,b7 as iN,b8 as rN,l as sN,b9 as oN,ba as aN,bb as lN,bc as uN,bd as cN,be as fN,bf as dN,p as hN,bg as pN,bh as mN,bi as Db,bj as Cb,bk as Pb,bl as Ep,bm as gN,bn as vN,bo as yN,bp as bN,bq as ON,br as Ap,bs as SN,q as Gc,bt as TN,bu as EN,bv as AN,bw as _N,bx as NN,by as wN,bz as xN,bA as kN,bB as IN,bC as RN,bD as DN}from"./index.CW6hXWch.js";import{c2 as Mb,c3 as ie,c4 as On,c5 as Su,c6 as En,c7 as bc,c8 as Ht,c9 as tn,ca as Oc,cb as Lr,cc as Ls,cd as CN,ce as z,cf as PN,cg as MN,ch as Lb,ci as $b,cj as LN,ck as Qb,cl as _p,cm as Oi,cn as Np,co as wp,cp as xp,cq as $N,cr as ui,cs as Cn,ct as QN,cu as $r,cv as $s,cw as ot,cx as Qs,cy as hh,cz as Fb,cA as Vb,cB as Bb,cC as Ub,cD as Bf,cE as FN,cF as Mu,cG as VN,cH as ph,cI as mh,cJ as qb,cK as jb,cL as BN,cM as Uf,cN as qf,cO as jf,cP as gs,cQ as UN,cR as Gb,cS as qN,cT as jN,cU as it,cV as GN,cW as HN,cX as WN}from"./index.CYihR6D1.js";import"react-dom";import"react-dom/client";import"./browser.BkwNmV2Z.js";import"./app-skeleton.js";const ZN=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});function YN(n){return n instanceof Error?n:new zN(n)}class zN extends Error{constructor(e){super("Unexpected error value: "+Mb(e)),this.name="NonErrorThrown",this.thrownValue=e}}function KN(n,e,t){var i;const r=YN(n);return XN(r)?r:new ie(r.message,{nodes:(i=r.nodes)!==null&&i!==void 0?i:e,source:r.source,positions:r.positions,path:t,originalError:r})}function XN(n){return Array.isArray(n.path)}function JN(n){return{Field(e){const t=n.getFieldDef(),i=t==null?void 0:t.deprecationReason;if(t&&i!=null){const r=n.getParentType();r!=null||Su(!1),n.reportError(new ie(`The field ${r.name}.${t.name} is deprecated. ${i}`,{nodes:e}))}},Argument(e){const t=n.getArgument(),i=t==null?void 0:t.deprecationReason;if(t&&i!=null){const r=n.getDirective();if(r!=null)n.reportError(new ie(`Directive "@${r.name}" argument "${t.name}" is deprecated. ${i}`,{nodes:e}));else{const s=n.getParentType(),o=n.getFieldDef();s!=null&&o!=null||Su(!1),n.reportError(new ie(`Field "${s.name}.${o.name}" argument "${t.name}" is deprecated. ${i}`,{nodes:e}))}}},ObjectField(e){const t=On(n.getParentInputType());if(En(t)){const i=t.getFields()[e.name.value],r=i==null?void 0:i.deprecationReason;r!=null&&n.reportError(new ie(`The input field ${t.name}.${i.name} is deprecated. ${r}`,{nodes:e}))}},EnumValue(e){const t=n.getEnumValue(),i=t==null?void 0:t.deprecationReason;if(t&&i!=null){const r=On(n.getInputType());r!=null||Su(!1),n.reportError(new ie(`The enum value "${r.name}.${t.name}" is deprecated. ${i}`,{nodes:e}))}}}}function gh(n){return tw(n,e=>!Lb(e),ew)}function ew(n){return!$b(n)&&!LN(n)}function tw(n,e,t){const i=n.getDirectives().filter(e),r=Object.values(n.getTypeMap()).filter(t);return[nw(n),...i.map(s=>fw(s)),...r.map(s=>rw(s))].filter(Boolean).join(`
|
|
2
2
|
|
|
3
3
|
`)}function nw(n){if(n.description==null&&iw(n))return;const e=[],t=n.getQueryType();t&&e.push(` query: ${t.name}`);const i=n.getMutationType();i&&e.push(` mutation: ${i.name}`);const r=n.getSubscriptionType();return r&&e.push(` subscription: ${r.name}`),Wt(n)+`schema {
|
|
4
4
|
${e.join(`
|
|
@@ -12,7 +12,7 @@ ${e.join(`
|
|
|
12
12
|
`+e+")"}function Gf(n){const e=PN(n.defaultValue,n.type);let t=n.name+": "+String(n.type);return e&&(t+=` = ${Ls(e)}`),t+yh(n.deprecationReason)}function fw(n){return Wt(n)+"directive @"+n.name+Zb(n.args)+(n.isRepeatable?" repeatable":"")+" on "+n.locations.join(" | ")}function yh(n){return n==null?"":n!==MN?` @deprecated(reason: ${Ls({kind:z.STRING,value:n})})`:" @deprecated"}function dw(n){return n.specifiedByURL==null?"":` @specifiedBy(url: ${Ls({kind:z.STRING,value:n.specifiedByURL})})`}function Wt(n,e="",t=!0){const{description:i}=n;if(i==null)return"";const r=Ls({kind:z.STRING,value:i,block:CN(i)});return(e&&!t?`
|
|
13
13
|
`+e:e)+r.replace(/\n/g,`
|
|
14
14
|
`+e)+`
|
|
15
|
-
`}function Yt(...n){return z_(K_(n))}function kp({className:n,size:e="sm",margin:t="md"}){function i(){return e==="sm"?"h-px":e==="md"?"h-1":"h-1.5"}function r(){return t==="sm"?"my-4":t==="md"?"my-6":"my-8"}const s=i(),o=r();return Y("div",{className:Yt("bg-gray-200",s,o,n)})}const Yb="String",zb="Boolean",Kb="Int",Xb="Float",Jb="ID",hw=[Yb,zb,Kb,Xb,Jb],pw=n=>Array.isArray(n)?n:n?[n]:[];function mw(){let n=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return ZN.major<15&&(n=n.map(e=>e.replace(/Rule$/,""))),Qb.filter(e=>!n.includes(e.name))}var de;(function(n){n.TYPE="MapperKind.TYPE",n.SCALAR_TYPE="MapperKind.SCALAR_TYPE",n.ENUM_TYPE="MapperKind.ENUM_TYPE",n.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",n.OBJECT_TYPE="MapperKind.OBJECT_TYPE",n.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",n.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",n.UNION_TYPE="MapperKind.UNION_TYPE",n.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",n.ROOT_OBJECT="MapperKind.ROOT_OBJECT",n.QUERY="MapperKind.QUERY",n.MUTATION="MapperKind.MUTATION",n.SUBSCRIPTION="MapperKind.SUBSCRIPTION",n.DIRECTIVE="MapperKind.DIRECTIVE",n.FIELD="MapperKind.FIELD",n.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",n.OBJECT_FIELD="MapperKind.OBJECT_FIELD",n.ROOT_FIELD="MapperKind.ROOT_FIELD",n.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",n.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",n.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",n.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",n.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",n.ARGUMENT="MapperKind.ARGUMENT",n.ENUM_VALUE="MapperKind.ENUM_VALUE"})(de||(de={}));function qi(n,e){if(e){const t=n[e.name];if(Ht(t))return t}}function gw(n){if("getFields"in n){const e=n.getFields();for(const t in e)return e[t].name==="_fake"}return!1}function vw(n){switch(n.name){case xp.name:return xp;case wp.name:return wp;case Np.name:return Np;case Oi.name:return Oi;case _p.name:return _p;default:return n}}function yw(n,e){const t=Object.create(null);for(const d in n)t[d]=n[d];const i=Object.create(null);for(const d in t){const h=t[d];if(h==null||d.startsWith("__"))continue;const p=h.name;if(!p.startsWith("__")){if(i[p]!=null){console.warn(`Duplicate schema type name ${p} found; keeping the existing one found in the schema`);continue}i[p]=h}}for(const d in i)i[d]=a(i[d]);const r=e.map(d=>s(d));return{typeMap:i,directives:r};function s(d){if(Lb(d))return d;const h=d.toConfig();return h.args=o(h.args),new $N(h)}function o(d){const h={};for(const p in d){const m=d[p],g=c(m.type);g!=null&&(m.type=g,h[p]=m)}return h}function a(d){if(Ht(d)){const h=d.toConfig(),p={...h,fields:()=>l(h.fields),interfaces:()=>f(h.interfaces)};return new ui(p)}else if(tn(d)){const h=d.toConfig(),p={...h,fields:()=>l(h.fields)};return"interfaces"in p&&(p.interfaces=()=>f(h.interfaces)),new Cn(p)}else if(Oc(d)){const h=d.toConfig(),p={...h,types:()=>f(h.types)};return new QN(p)}else if(En(d)){const h=d.toConfig(),p={...h,fields:()=>u(h.fields)};return new $r(p)}else if(Lr(d)){const h=d.toConfig();return new $s(h)}else if(bc(d)){if($b(d))return d;const h=d.toConfig();return new ot(h)}throw new Error(`Unexpected schema type: ${d}`)}function l(d){const h={};for(const p in d){const m=d[p],g=c(m.type);g!=null&&m.args&&(m.type=g,m.args=o(m.args),h[p]=m)}return h}function u(d){const h={};for(const p in d){const m=d[p],g=c(m.type);g!=null&&(m.type=g,h[p]=m)}return h}function f(d){const h=[];for(const p of d){const m=c(p);m!=null&&h.push(m)}return h}function c(d){if(Qs(d)){const h=c(d.ofType);return h!=null?new hh(h):null}else if(Fb(d)){const h=c(d.ofType);return h!=null?new Vb(h):null}else if(Bb(d)){let h=t[d.name];return h===void 0&&(h=gw(d)?vw(d):a(d),i[h.name]=t[d.name]=h),h!=null?i[h.name]:null}return null}}function Lu(n,e,t=null,i=null){if(e==null)return e;const r=Ub(n);if(Bf(r))return t!=null?t(r,e):e;if(Qs(r))return pw(e).map(s=>Lu(r.ofType,s,t,i));if(En(r)){const s=r.getFields(),o={};for(const a in e){const l=s[a];l!=null&&(o[a]=Lu(l.type,e[a],t,i))}return i!=null?i(r,o):o}}function bw(n,e){return Lu(n,e,(t,i)=>{try{return t.serialize(i)}catch{return i}})}function Ow(n,e){return Lu(n,e,(t,i)=>{try{return t.parseValue(i)}catch{return i}})}function Sw(n,e={}){const t=tO(eO(Hf(Ip(Tw(Hf(Ip(n.getTypeMap(),n,bw),n,e,a=>Bf(a)),n,e),n,Ow),n,e,a=>!Bf(a)),n,e),n,e),i=n.getDirectives(),r=Ew(i,n,e),{typeMap:s,directives:o}=yw(t,r);return new FN({...n.toConfig(),query:qi(s,qi(t,n.getQueryType())),mutation:qi(s,qi(t,n.getMutationType())),subscription:qi(s,qi(t,n.getSubscriptionType())),types:Object.values(s),directives:o})}function Hf(n,e,t,i=()=>!0){const r={};for(const s in n)if(!s.startsWith("__")){const o=n[s];if(o==null||!i(o)){r[s]=o;continue}const a=_w(e,t,s);if(a==null){r[s]=o;continue}const l=a(o,e);if(l===void 0){r[s]=o;continue}r[s]=l}return r}function Tw(n,e,t){const i=Iw(t);return i?Hf(n,e,{[de.ENUM_TYPE]:r=>{const s=r.toConfig(),o=s.values,a={};for(const l in o){const u=o[l],f=i(u,r.name,e,l);if(f===void 0)a[l]=u;else if(Array.isArray(f)){const[c,d]=f;a[c]=d===void 0?u:d}else f!==null&&(a[l]=f)}return Tu(new $s({...s,values:a}))}},r=>Lr(r)):n}function Ip(n,e,t){const i=tO(n,e,{[de.ARGUMENT]:r=>{if(r.defaultValue===void 0)return r;const s=$u(n,r.type);if(s!=null)return{...r,defaultValue:t(s,r.defaultValue)}}});return eO(i,e,{[de.INPUT_OBJECT_FIELD]:r=>{if(r.defaultValue===void 0)return r;const s=$u(i,r.type);if(s!=null)return{...r,defaultValue:t(s,r.defaultValue)}}})}function $u(n,e){if(Qs(e)){const t=$u(n,e.ofType);return t!=null?new hh(t):null}else if(Fb(e)){const t=$u(n,e.ofType);return t!=null?new Vb(t):null}else if(Bb(e)){const t=n[e.name];return t??null}return null}function eO(n,e,t){const i={};for(const r in n)if(!r.startsWith("__")){const s=n[r];if(!Ht(s)&&!tn(s)&&!En(s)){i[r]=s;continue}const o=ww(e,t,r);if(o==null){i[r]=s;continue}const a=s.toConfig(),l=a.fields,u={};for(const f in l){const c=l[f],d=o(c,f,r,e);if(d===void 0)u[f]=c;else if(Array.isArray(d)){const[h,p]=d;p.astNode!=null&&(p.astNode={...p.astNode,name:{...p.astNode.name,value:h}}),u[h]=p===void 0?c:p}else d!==null&&(u[f]=d)}Ht(s)?i[r]=Tu(new ui({...a,fields:u})):tn(s)?i[r]=Tu(new Cn({...a,fields:u})):i[r]=Tu(new $r({...a,fields:u}))}return i}function tO(n,e,t){const i={};for(const r in n)if(!r.startsWith("__")){const s=n[r];if(!Ht(s)&&!tn(s)){i[r]=s;continue}const o=xw(t);if(o==null){i[r]=s;continue}const a=s.toConfig(),l=a.fields,u={};for(const f in l){const c=l[f],d=c.args;if(d==null){u[f]=c;continue}const h=Object.keys(d);if(!h.length){u[f]=c;continue}const p={};for(const m of h){const g=d[m],v=o(g,f,r,e);if(v===void 0)p[m]=g;else if(Array.isArray(v)){const[y,O]=v;p[y]=O}else v!==null&&(p[m]=v)}u[f]={...c,args:p}}Ht(s)?i[r]=new ui({...a,fields:u}):tn(s)?i[r]=new Cn({...a,fields:u}):i[r]=new $r({...a,fields:u})}return i}function Ew(n,e,t){const i=kw(t);if(i==null)return n.slice();const r=[];for(const s of n){const o=i(s,e);o===void 0?r.push(s):o!==null&&r.push(o)}return r}function Aw(n,e){var r,s,o;const t=n.getType(e),i=[de.TYPE];return Ht(t)?(i.push(de.COMPOSITE_TYPE,de.OBJECT_TYPE),e===((r=n.getQueryType())==null?void 0:r.name)?i.push(de.ROOT_OBJECT,de.QUERY):e===((s=n.getMutationType())==null?void 0:s.name)?i.push(de.ROOT_OBJECT,de.MUTATION):e===((o=n.getSubscriptionType())==null?void 0:o.name)&&i.push(de.ROOT_OBJECT,de.SUBSCRIPTION)):En(t)?i.push(de.INPUT_OBJECT_TYPE):tn(t)?i.push(de.COMPOSITE_TYPE,de.ABSTRACT_TYPE,de.INTERFACE_TYPE):Oc(t)?i.push(de.COMPOSITE_TYPE,de.ABSTRACT_TYPE,de.UNION_TYPE):Lr(t)?i.push(de.ENUM_TYPE):bc(t)&&i.push(de.SCALAR_TYPE),i}function _w(n,e,t){const i=Aw(n,t);let r;const s=[...i];for(;!r&&s.length>0;){const o=s.pop();r=e[o]}return r??null}function Nw(n,e){var r,s,o;const t=n.getType(e),i=[de.FIELD];return Ht(t)?(i.push(de.COMPOSITE_FIELD,de.OBJECT_FIELD),e===((r=n.getQueryType())==null?void 0:r.name)?i.push(de.ROOT_FIELD,de.QUERY_ROOT_FIELD):e===((s=n.getMutationType())==null?void 0:s.name)?i.push(de.ROOT_FIELD,de.MUTATION_ROOT_FIELD):e===((o=n.getSubscriptionType())==null?void 0:o.name)&&i.push(de.ROOT_FIELD,de.SUBSCRIPTION_ROOT_FIELD)):tn(t)?i.push(de.COMPOSITE_FIELD,de.INTERFACE_FIELD):En(t)&&i.push(de.INPUT_OBJECT_FIELD),i}function ww(n,e,t){const i=Nw(n,t);let r;const s=[...i];for(;!r&&s.length>0;){const o=s.pop();r=e[o]}return r??null}function xw(n){const e=n[de.ARGUMENT];return e??null}function kw(n){const e=n[de.DIRECTIVE];return e??null}function Iw(n){const e=n[de.ENUM_VALUE];return e??null}function Tu(n){if(Ht(n)){const e=n.toConfig();if(e.astNode!=null){const t=[];for(const i in e.fields){const r=e.fields[i];r.astNode!=null&&t.push(r.astNode)}e.astNode={...e.astNode,kind:z.OBJECT_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:z.OBJECT_TYPE_EXTENSION,fields:void 0}))),new ui(e)}else if(tn(n)){const e=n.toConfig();if(e.astNode!=null){const t=[];for(const i in e.fields){const r=e.fields[i];r.astNode!=null&&t.push(r.astNode)}e.astNode={...e.astNode,kind:z.INTERFACE_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:z.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new Cn(e)}else if(En(n)){const e=n.toConfig();if(e.astNode!=null){const t=[];for(const i in e.fields){const r=e.fields[i];r.astNode!=null&&t.push(r.astNode)}e.astNode={...e.astNode,kind:z.INPUT_OBJECT_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:z.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new $r(e)}else if(Lr(n)){const e=n.toConfig();if(e.astNode!=null){const t=[];for(const i in e.values){const r=e.values[i];r.astNode!=null&&t.push(r.astNode)}e.astNode={...e.astNode,values:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,values:void 0}))),new $s(e)}else return n}function Rw({schema:n,typeFilter:e=()=>!0,fieldFilter:t=void 0,rootFieldFilter:i=void 0,objectFieldFilter:r=void 0,interfaceFieldFilter:s=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:a=void 0,directiveFilter:l=void 0,enumValueFilter:u=void 0}){return Sw(n,{[de.QUERY]:c=>Hc(c,"Query",i,a),[de.MUTATION]:c=>Hc(c,"Mutation",i,a),[de.SUBSCRIPTION]:c=>Hc(c,"Subscription",i,a),[de.OBJECT_TYPE]:c=>e(c.name,c)?Wc(ui,c,r||t,a):null,[de.INTERFACE_TYPE]:c=>e(c.name,c)?Wc(Cn,c,s||t,a):null,[de.INPUT_OBJECT_TYPE]:c=>e(c.name,c)?Wc($r,c,o||t):null,[de.UNION_TYPE]:c=>e(c.name,c)?void 0:null,[de.ENUM_TYPE]:c=>e(c.name,c)?void 0:null,[de.SCALAR_TYPE]:c=>e(c.name,c)?void 0:null,[de.DIRECTIVE]:c=>l&&!l(c.name,c)?null:void 0,[de.ENUM_VALUE]:(c,d,h,p)=>u&&!u(d,p,c)?null:void 0})}function Hc(n,e,t,i){if(t||i){const r=n.toConfig();for(const s in r.fields){const o=r.fields[s];if(t&&!t(e,s,r.fields[s]))delete r.fields[s];else if(i&&o.args)for(const a in o.args)i(n.name,s,a,o.args[a])||delete o.args[a]}return new ui(r)}return n}function Wc(n,e,t,i){if(t||i){const r=e.toConfig();for(const s in r.fields){const o=r.fields[s];if(t&&!t(e.name,s,r.fields[s]))delete r.fields[s];else if(i&&"args"in o)for(const a in o.args)i(e.name,s,a,o.args[a])||delete o.args[a]}return new n(r)}}const Dw="{ unit?: string, value?: number }",nO="scalar Amount",iO=Ci({unit:Ie().optional(),value:ii().finite()}),Cw="z.object({ unit: z.string().optional(), value: z.number().finite() })",Zc=n=>{if(typeof n!="object"||!n)throw new ie(`Invalid Amount value: ${JSON.stringify(n)}`);const e=iO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},rO={name:"Amount",description:"A custom scalar that represents a currency amount with its currency type",serialize:Zc,parseValue:Zc,parseLiteral:n=>{var r;if(n.kind!==z.OBJECT)throw new ie("Value must be an object",{nodes:n});const e=n.fields.find(s=>s.name.value==="unit"),t=n.fields.find(s=>s.name.value==="value");if(e&&e.value.kind!==z.STRING)throw new ie("unit must be a valid string value",{nodes:n});if(!t||t.value.kind!==z.FLOAT)throw new ie("value must be a valid float value",{nodes:n});const i={unit:(r=e==null?void 0:e.value)==null?void 0:r.value,value:parseFloat(t.value.value)};return Zc(i)}},Pw=new ot(rO),Mw=Object.freeze(Object.defineProperty({__proto__:null,config:rO,scalar:Pw,schema:iO,stringSchema:Cw,type:Dw,typedef:nO},Symbol.toStringTag,{value:"Module"})),sO=/^\d+(\.\d+)?$/,Lw="{ unit: string, value: string }",oO="scalar Amount_Crypto",aO=Ci({unit:Ie(),value:Ie()}),$w="z.object({ unit: z.string(), value: z.string() })",Yc=n=>{if(typeof n!="object"||!n)throw new ie(`Invalid Amount Crypto value: ${JSON.stringify(n)}`);const e=aO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},lO={name:"Amount_Crypto",description:"A custom scalar that represents a cryptocurrency amount with its currency type",serialize:Yc,parseValue:Yc,parseLiteral:n=>{if(n.kind!==z.OBJECT)throw new ie("Value must be an object",{nodes:n});const e=n.fields.find(r=>r.name.value==="unit"),t=n.fields.find(r=>r.name.value==="value");if(!e||e.value.kind!==z.STRING)throw new ie("unit must be a valid string value",{nodes:n});if(!t||t.value.kind!==z.STRING)throw new ie("value must be a valid string value",{nodes:n});if(!sO.test(t.value.value))throw new ie('value must be a valid numeric string (e.g., "123" or "123.45")',{nodes:n});const i={unit:e.value.value,value:t.value.value};return Yc(i)}},Qw=new ot(lO),Fw=Object.freeze(Object.defineProperty({__proto__:null,NUMERIC_VALUE_REGEX:sO,config:lO,scalar:Qw,schema:aO,stringSchema:$w,type:Lw,typedef:oO},Symbol.toStringTag,{value:"Module"})),uO=/^\d+(\.\d+)?$/,Vw="{ unit: string, value: string }",cO="scalar Amount_Currency",fO=Ci({unit:Ie(),value:Ie()}),Bw="z.object({ unit: z.string(), value: z.string()})",zc=n=>{if(typeof n!="object"||!n)throw new ie(`Invalid Amount Currency value: ${JSON.stringify(n)}`);const e=fO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},dO={name:"Amount_Currency",description:"A custom scalar that represents a currency amount with its currency type",serialize:zc,parseValue:zc,parseLiteral:n=>{if(n.kind!==z.OBJECT)throw new ie("Value must be an object",{nodes:n});const e=n.fields.find(r=>r.name.value==="unit"),t=n.fields.find(r=>r.name.value==="value");if(!e||e.value.kind!==z.STRING)throw new ie("unit must be a valid string value",{nodes:n});if(!t||t.value.kind!==z.STRING)throw new ie("value must be a valid string value",{nodes:n});if(!uO.test(t.value.value))throw new ie('value must be a valid numeric string (e.g., "123" or "123.45")',{nodes:n});const i={unit:e.value.value,value:t.value.value};return zc(i)}},Uw=new ot(dO),qw=Object.freeze(Object.defineProperty({__proto__:null,NUMERIC_VALUE_REGEX:uO,config:dO,scalar:Uw,schema:fO,stringSchema:Bw,type:Vw,typedef:cO},Symbol.toStringTag,{value:"Module"})),jw="{ unit: string, value: number }",hO="scalar Amount_Fiat",pO=Ci({unit:Ie(),value:ii().finite()}),Gw="z.object({ unit: z.string(), value: z.number().finite() })",Kc=n=>{if(typeof n!="object"||!n)throw new ie(`Invalid Amount Fiat value: ${JSON.stringify(n)}`);const e=pO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},mO={name:"Amount_Fiat",description:"A custom scalar that represents a currency amount with its currency type",serialize:Kc,parseValue:Kc,parseLiteral:n=>{if(n.kind!==z.OBJECT)throw new ie("Value must be an object",{nodes:n});const e=n.fields.find(r=>r.name.value==="unit"),t=n.fields.find(r=>r.name.value==="value");if(!e||e.value.kind!==z.STRING)throw new ie("unit must be a valid string value",{nodes:n});if(!t||t.value.kind!==z.FLOAT)throw new ie("value must be a valid float value",{nodes:n});const i={unit:e.value.value,value:parseFloat(t.value.value)};return Kc(i)}},Hw=new ot(mO),Ww=Object.freeze(Object.defineProperty({__proto__:null,config:mO,scalar:Hw,schema:pO,stringSchema:Gw,type:jw,typedef:hO},Symbol.toStringTag,{value:"Module"})),Zw="number",gO="scalar Amount_Money",vO=ii(),Yw="z.number()",Xc=n=>{if(typeof n!="number")throw new ie(`Value is not number: ${JSON.stringify(n)}`);if(!Number.isFinite(n))throw new ie(`Value is not a finite number: ${n}`);const e=vO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},yO={name:"Amount_Money",description:"A custom scalar that represents a monetary amount in a currency",serialize:Xc,parseValue:Xc,parseLiteral:n=>{if(n.kind!==z.FLOAT)throw new ie("Value is not a float type",{nodes:n});const e=parseFloat(n.value);return Xc(e)}},zw=new ot(yO),Kw=Object.freeze(Object.defineProperty({__proto__:null,config:yO,scalar:zw,schema:vO,stringSchema:Yw,type:Zw,typedef:gO},Symbol.toStringTag,{value:"Module"})),Xw="number",bO="scalar Amount_Percentage",OO=ii(),Jw="z.number()",Jc=n=>{if(typeof n!="number")throw new ie(`Value is not number: ${JSON.stringify(n)}`);if(!Number.isFinite(n))throw new ie(`Value is not a finite number: ${n}`);const e=OO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},SO={name:"Amount_Percentage",description:"",serialize:Jc,parseValue:Jc,parseLiteral:n=>{if(n.kind!==z.FLOAT)throw new ie("some error message",{nodes:n});const e=parseFloat(n.value);return Jc(e)}},ex=new ot(SO),tx=Object.freeze(Object.defineProperty({__proto__:null,config:SO,scalar:ex,schema:OO,stringSchema:Jw,type:Xw,typedef:bO},Symbol.toStringTag,{value:"Module"})),nx="number",TO="scalar Amount_Tokens",EO=ii(),ix="z.number()",ef=n=>{if(typeof n!="number")throw new ie(`Value is not number: ${JSON.stringify(n)}`);if(!Number.isFinite(n))throw new ie(`Value is not a finite number: ${n}`);const e=EO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},AO={name:"Amount_Tokens",description:"A custom scalar that represents an amount of tokens",serialize:ef,parseValue:ef,parseLiteral:n=>{if(n.kind!==z.FLOAT)throw new ie("some error message",{nodes:n});const e=parseFloat(n.value);return ef(e)}},rx=new ot(AO),sx=Object.freeze(Object.defineProperty({__proto__:null,config:AO,scalar:rx,schema:EO,stringSchema:ix,type:nx,typedef:TO},Symbol.toStringTag,{value:"Module"})),ox="string",_O="scalar Currency",NO=Ie(),ax="z.string()",tf=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=NO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},wO={name:"Currency",description:"A custom scalar that represents a Currency Code string",serialize:tf,parseValue:tf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie(`Value is not a valid string: ${n.kind}`,{nodes:n});return tf(n.value)}},lx=new ot(wO),ux=Object.freeze(Object.defineProperty({__proto__:null,config:wO,scalar:lx,schema:NO,stringSchema:ax,type:ox,typedef:_O},Symbol.toStringTag,{value:"Module"})),cx="string",xO="scalar Date",kO=Ie().datetime(),fx="z.string().datetime()",nf=n=>{if(typeof n!="string")throw new ie(`Value is not iso string: ${JSON.stringify(n)}`);const e=kO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},IO={name:"Date",description:"A custom scalar that represents a datetime in ISO 8601 format (Time: 00:00:00)",serialize:nf,parseValue:nf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie("Value is not an string",{nodes:n});return nf(n.value)}},dx=new ot(IO),hx=Object.freeze(Object.defineProperty({__proto__:null,config:IO,scalar:dx,schema:kO,stringSchema:fx,type:cx,typedef:xO},Symbol.toStringTag,{value:"Module"})),px="string",RO="scalar DateTime",DO=Ie().datetime(),mx="z.string().datetime()",rf=n=>{if(typeof n!="string")throw new ie(`Value is not iso string: ${JSON.stringify(n)}`);const e=DO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},CO={name:"DateTime",description:"A custom scalar that represents a datetime in ISO 8601 format",serialize:rf,parseValue:rf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie("Value is not an string",{nodes:n});return rf(n.value)}},gx=new ot(CO),vx=Object.freeze(Object.defineProperty({__proto__:null,config:CO,scalar:gx,schema:DO,stringSchema:mx,type:px,typedef:RO},Symbol.toStringTag,{value:"Module"})),yx="string",PO="scalar EmailAddress",MO=Ie().email(),bx="z.string().email()",sf=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=MO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},LO={name:"EmailAddress",description:"A field whose value conforms to the standard internet email address format as specified in RFC822: https://www.w3.org/Protocols/rfc822/.",serialize:sf,parseValue:sf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie(`Can only validate strings as email addresses but got a: ${n.kind}`,{nodes:n});return sf(n.value)}},Ox=new ot(LO),Sx=Object.freeze(Object.defineProperty({__proto__:null,config:LO,scalar:Ox,schema:MO,stringSchema:bx,type:yx,typedef:PO},Symbol.toStringTag,{value:"Module"})),Tx="string",$O="scalar EthereumAddress",QO=Ie().regex(/^0x[a-fA-F0-9]{40}$/,{message:"Invalid Ethereum address format"}),Ex="z.string().regex(/^0x[a-fA-F0-9]{40}$/, { message: 'Invalid Ethereum address format' })",of=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=QO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},FO={name:"EthereumAddress",description:'A custom scalar representing an Ethereum address, validated as a 42-character hexadecimal string prefixed with "0x"',serialize:of,parseValue:of,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie("some error message",{nodes:n});return of(n.value)}},Ax=new ot(FO),_x=Object.freeze(Object.defineProperty({__proto__:null,config:FO,scalar:Ax,schema:QO,stringSchema:Ex,type:Tx,typedef:$O},Symbol.toStringTag,{value:"Module"})),Nx="string",VO="scalar OID",BO=Ie(),wx="z.string()",af=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=BO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},UO={name:"OID",description:"A custom scalar that represents a OID string",serialize:af,parseValue:af,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie(`Value is not a valid string: ${n.kind}`,{nodes:n});return af(n.value)}},xx=new ot(UO),kx=Object.freeze(Object.defineProperty({__proto__:null,config:UO,scalar:xx,schema:BO,stringSchema:wx,type:Nx,typedef:VO},Symbol.toStringTag,{value:"Module"})),Ix="string",qO="scalar OLabel",jO=Ie(),Rx="z.string()",lf=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=jO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},GO={name:"OLabel",description:"A custom scalar that represents a OLabel string",serialize:lf,parseValue:lf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie(`Value is not a valid string: ${n.kind}`,{nodes:n});return lf(n.value)}},Dx=new ot(GO),Cx=Object.freeze(Object.defineProperty({__proto__:null,config:GO,scalar:Dx,schema:jO,stringSchema:Rx,type:Ix,typedef:qO},Symbol.toStringTag,{value:"Module"})),Px="string",HO="scalar PHID",WO=Ie(),Mx="z.string()",uf=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=WO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},ZO={name:"PHID",description:"A custom scalar that represents a PowerhouseID string",serialize:uf,parseValue:uf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie(`Value is not a valid string: ${n.kind}`,{nodes:n});return uf(n.value)}},Lx=new ot(ZO),$x=Object.freeze(Object.defineProperty({__proto__:null,config:ZO,scalar:Lx,schema:WO,stringSchema:Mx,type:Px,typedef:HO},Symbol.toStringTag,{value:"Module"})),Qx="string",YO="scalar URL",zO=Ie().url(),Fx="z.string().url()",cf=n=>{if(typeof n!="string")throw new ie(`Value is not iso string: ${JSON.stringify(n)}`);const e=zO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},KO={name:"URL",description:"A custom scalar that represents a URL string",serialize:cf,parseValue:cf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie("Value is not an string",{nodes:n});return cf(n.value)}},Vx=new ot(KO),Bx=Object.freeze(Object.defineProperty({__proto__:null,config:KO,scalar:Vx,schema:zO,stringSchema:Fx,type:Qx,typedef:YO},Symbol.toStringTag,{value:"Module"}));class Ux{constructor(){this.promise=new Promise((e,t)=>{this.resolve=i=>{this.file=i,e(i)},this.reject=t}),this.promise.catch(()=>{})}}const qx=new ot({name:"Upload",description:"The `Upload` scalar type represents a file upload.",parseValue(n){if(n instanceof Ux)return n.promise;throw new ie("Upload value invalid.")},parseLiteral(n){throw new ie("Upload literal unsupported.",{nodes:n})},serialize(){throw new ie("Upload serialization unsupported.")}}),jx="FileUpload",XO="scalar Upload",Gx={name:"Upload",description:"A custom scalar that represents a file upload"},Hx="z.any()",Wx=qx,Zx=Object.freeze(Object.defineProperty({__proto__:null,config:Gx,scalar:Wx,stringSchema:Hx,type:jx,typedef:XO},Symbol.toStringTag,{value:"Module"})),Yx={Amount:Mw,AmountCrypto:Fw,AmountCurrency:qw,AmountFiat:Ww,AmountMoney:Kw,AmountPercentage:tx,AmountTokens:sx,Currency:ux,DateScalar:hx,DateTime:vx,EmailAddress:Sx,EthereumAddress:_x,File:Zx,OID:kx,OLabel:Cx,PHID:$x,URLScalar:Bx},zx=[TO,$O,bO,PO,xO,RO,YO,gO,qO,_O,HO,VO,hO,cO,oO,nO,XO],Rp=X_(()=>kb([Ie(),ii(),Ib(),J_(),eN(Rp),tN(Ie(),Rp)]));function Kx(n){return Object.values(Yx).find(t=>t.config.name===n)??null}const JO=`type Query {
|
|
15
|
+
`}function Yt(...n){return z_(K_(n))}function kp({className:n,size:e="sm",margin:t="md"}){function i(){return e==="sm"?"h-px":e==="md"?"h-1":"h-1.5"}function r(){return t==="sm"?"my-4":t==="md"?"my-6":"my-8"}const s=i(),o=r();return Y("div",{className:Yt("bg-gray-200",s,o,n)})}const Yb="String",zb="Boolean",Kb="Int",Xb="Float",Jb="ID",hw=[Yb,zb,Kb,Xb,Jb],pw=n=>Array.isArray(n)?n:n?[n]:[];function mw(){let n=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return ZN.major<15&&(n=n.map(e=>e.replace(/Rule$/,""))),Qb.filter(e=>!n.includes(e.name))}var de;(function(n){n.TYPE="MapperKind.TYPE",n.SCALAR_TYPE="MapperKind.SCALAR_TYPE",n.ENUM_TYPE="MapperKind.ENUM_TYPE",n.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",n.OBJECT_TYPE="MapperKind.OBJECT_TYPE",n.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",n.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",n.UNION_TYPE="MapperKind.UNION_TYPE",n.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",n.ROOT_OBJECT="MapperKind.ROOT_OBJECT",n.QUERY="MapperKind.QUERY",n.MUTATION="MapperKind.MUTATION",n.SUBSCRIPTION="MapperKind.SUBSCRIPTION",n.DIRECTIVE="MapperKind.DIRECTIVE",n.FIELD="MapperKind.FIELD",n.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",n.OBJECT_FIELD="MapperKind.OBJECT_FIELD",n.ROOT_FIELD="MapperKind.ROOT_FIELD",n.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",n.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",n.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",n.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",n.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",n.ARGUMENT="MapperKind.ARGUMENT",n.ENUM_VALUE="MapperKind.ENUM_VALUE"})(de||(de={}));function qi(n,e){if(e){const t=n[e.name];if(Ht(t))return t}}function gw(n){if("getFields"in n){const e=n.getFields();for(const t in e)return e[t].name==="_fake"}return!1}function vw(n){switch(n.name){case xp.name:return xp;case wp.name:return wp;case Np.name:return Np;case Oi.name:return Oi;case _p.name:return _p;default:return n}}function yw(n,e){const t=Object.create(null);for(const d in n)t[d]=n[d];const i=Object.create(null);for(const d in t){const h=t[d];if(h==null||d.startsWith("__"))continue;const p=h.name;if(!p.startsWith("__")){if(i[p]!=null){console.warn(`Duplicate schema type name ${p} found; keeping the existing one found in the schema`);continue}i[p]=h}}for(const d in i)i[d]=a(i[d]);const r=e.map(d=>s(d));return{typeMap:i,directives:r};function s(d){if(Lb(d))return d;const h=d.toConfig();return h.args=o(h.args),new $N(h)}function o(d){const h={};for(const p in d){const m=d[p],g=c(m.type);g!=null&&(m.type=g,h[p]=m)}return h}function a(d){if(Ht(d)){const h=d.toConfig(),p={...h,fields:()=>l(h.fields),interfaces:()=>f(h.interfaces)};return new ui(p)}else if(tn(d)){const h=d.toConfig(),p={...h,fields:()=>l(h.fields)};return"interfaces"in p&&(p.interfaces=()=>f(h.interfaces)),new Cn(p)}else if(Oc(d)){const h=d.toConfig(),p={...h,types:()=>f(h.types)};return new QN(p)}else if(En(d)){const h=d.toConfig(),p={...h,fields:()=>u(h.fields)};return new $r(p)}else if(Lr(d)){const h=d.toConfig();return new $s(h)}else if(bc(d)){if($b(d))return d;const h=d.toConfig();return new ot(h)}throw new Error(`Unexpected schema type: ${d}`)}function l(d){const h={};for(const p in d){const m=d[p],g=c(m.type);g!=null&&m.args&&(m.type=g,m.args=o(m.args),h[p]=m)}return h}function u(d){const h={};for(const p in d){const m=d[p],g=c(m.type);g!=null&&(m.type=g,h[p]=m)}return h}function f(d){const h=[];for(const p of d){const m=c(p);m!=null&&h.push(m)}return h}function c(d){if(Qs(d)){const h=c(d.ofType);return h!=null?new hh(h):null}else if(Fb(d)){const h=c(d.ofType);return h!=null?new Vb(h):null}else if(Bb(d)){let h=t[d.name];return h===void 0&&(h=gw(d)?vw(d):a(d),i[h.name]=t[d.name]=h),h!=null?i[h.name]:null}return null}}function Lu(n,e,t=null,i=null){if(e==null)return e;const r=Ub(n);if(Bf(r))return t!=null?t(r,e):e;if(Qs(r))return pw(e).map(s=>Lu(r.ofType,s,t,i));if(En(r)){const s=r.getFields(),o={};for(const a in e){const l=s[a];l!=null&&(o[a]=Lu(l.type,e[a],t,i))}return i!=null?i(r,o):o}}function bw(n,e){return Lu(n,e,(t,i)=>{try{return t.serialize(i)}catch{return i}})}function Ow(n,e){return Lu(n,e,(t,i)=>{try{return t.parseValue(i)}catch{return i}})}function Sw(n,e={}){const t=tO(eO(Hf(Ip(Tw(Hf(Ip(n.getTypeMap(),n,bw),n,e,a=>Bf(a)),n,e),n,Ow),n,e,a=>!Bf(a)),n,e),n,e),i=n.getDirectives(),r=Ew(i,n,e),{typeMap:s,directives:o}=yw(t,r);return new FN({...n.toConfig(),query:qi(s,qi(t,n.getQueryType())),mutation:qi(s,qi(t,n.getMutationType())),subscription:qi(s,qi(t,n.getSubscriptionType())),types:Object.values(s),directives:o})}function Hf(n,e,t,i=()=>!0){const r={};for(const s in n)if(!s.startsWith("__")){const o=n[s];if(o==null||!i(o)){r[s]=o;continue}const a=_w(e,t,s);if(a==null){r[s]=o;continue}const l=a(o,e);if(l===void 0){r[s]=o;continue}r[s]=l}return r}function Tw(n,e,t){const i=Iw(t);return i?Hf(n,e,{[de.ENUM_TYPE]:r=>{const s=r.toConfig(),o=s.values,a={};for(const l in o){const u=o[l],f=i(u,r.name,e,l);if(f===void 0)a[l]=u;else if(Array.isArray(f)){const[c,d]=f;a[c]=d===void 0?u:d}else f!==null&&(a[l]=f)}return Tu(new $s({...s,values:a}))}},r=>Lr(r)):n}function Ip(n,e,t){const i=tO(n,e,{[de.ARGUMENT]:r=>{if(r.defaultValue===void 0)return r;const s=$u(n,r.type);if(s!=null)return{...r,defaultValue:t(s,r.defaultValue)}}});return eO(i,e,{[de.INPUT_OBJECT_FIELD]:r=>{if(r.defaultValue===void 0)return r;const s=$u(i,r.type);if(s!=null)return{...r,defaultValue:t(s,r.defaultValue)}}})}function $u(n,e){if(Qs(e)){const t=$u(n,e.ofType);return t!=null?new hh(t):null}else if(Fb(e)){const t=$u(n,e.ofType);return t!=null?new Vb(t):null}else if(Bb(e)){const t=n[e.name];return t??null}return null}function eO(n,e,t){const i={};for(const r in n)if(!r.startsWith("__")){const s=n[r];if(!Ht(s)&&!tn(s)&&!En(s)){i[r]=s;continue}const o=ww(e,t,r);if(o==null){i[r]=s;continue}const a=s.toConfig(),l=a.fields,u={};for(const f in l){const c=l[f],d=o(c,f,r,e);if(d===void 0)u[f]=c;else if(Array.isArray(d)){const[h,p]=d;p.astNode!=null&&(p.astNode={...p.astNode,name:{...p.astNode.name,value:h}}),u[h]=p===void 0?c:p}else d!==null&&(u[f]=d)}Ht(s)?i[r]=Tu(new ui({...a,fields:u})):tn(s)?i[r]=Tu(new Cn({...a,fields:u})):i[r]=Tu(new $r({...a,fields:u}))}return i}function tO(n,e,t){const i={};for(const r in n)if(!r.startsWith("__")){const s=n[r];if(!Ht(s)&&!tn(s)){i[r]=s;continue}const o=xw(t);if(o==null){i[r]=s;continue}const a=s.toConfig(),l=a.fields,u={};for(const f in l){const c=l[f],d=c.args;if(d==null){u[f]=c;continue}const h=Object.keys(d);if(!h.length){u[f]=c;continue}const p={};for(const m of h){const g=d[m],v=o(g,f,r,e);if(v===void 0)p[m]=g;else if(Array.isArray(v)){const[y,O]=v;p[y]=O}else v!==null&&(p[m]=v)}u[f]={...c,args:p}}Ht(s)?i[r]=new ui({...a,fields:u}):tn(s)?i[r]=new Cn({...a,fields:u}):i[r]=new $r({...a,fields:u})}return i}function Ew(n,e,t){const i=kw(t);if(i==null)return n.slice();const r=[];for(const s of n){const o=i(s,e);o===void 0?r.push(s):o!==null&&r.push(o)}return r}function Aw(n,e){var r,s,o;const t=n.getType(e),i=[de.TYPE];return Ht(t)?(i.push(de.COMPOSITE_TYPE,de.OBJECT_TYPE),e===((r=n.getQueryType())==null?void 0:r.name)?i.push(de.ROOT_OBJECT,de.QUERY):e===((s=n.getMutationType())==null?void 0:s.name)?i.push(de.ROOT_OBJECT,de.MUTATION):e===((o=n.getSubscriptionType())==null?void 0:o.name)&&i.push(de.ROOT_OBJECT,de.SUBSCRIPTION)):En(t)?i.push(de.INPUT_OBJECT_TYPE):tn(t)?i.push(de.COMPOSITE_TYPE,de.ABSTRACT_TYPE,de.INTERFACE_TYPE):Oc(t)?i.push(de.COMPOSITE_TYPE,de.ABSTRACT_TYPE,de.UNION_TYPE):Lr(t)?i.push(de.ENUM_TYPE):bc(t)&&i.push(de.SCALAR_TYPE),i}function _w(n,e,t){const i=Aw(n,t);let r;const s=[...i];for(;!r&&s.length>0;){const o=s.pop();r=e[o]}return r??null}function Nw(n,e){var r,s,o;const t=n.getType(e),i=[de.FIELD];return Ht(t)?(i.push(de.COMPOSITE_FIELD,de.OBJECT_FIELD),e===((r=n.getQueryType())==null?void 0:r.name)?i.push(de.ROOT_FIELD,de.QUERY_ROOT_FIELD):e===((s=n.getMutationType())==null?void 0:s.name)?i.push(de.ROOT_FIELD,de.MUTATION_ROOT_FIELD):e===((o=n.getSubscriptionType())==null?void 0:o.name)&&i.push(de.ROOT_FIELD,de.SUBSCRIPTION_ROOT_FIELD)):tn(t)?i.push(de.COMPOSITE_FIELD,de.INTERFACE_FIELD):En(t)&&i.push(de.INPUT_OBJECT_FIELD),i}function ww(n,e,t){const i=Nw(n,t);let r;const s=[...i];for(;!r&&s.length>0;){const o=s.pop();r=e[o]}return r??null}function xw(n){const e=n[de.ARGUMENT];return e??null}function kw(n){const e=n[de.DIRECTIVE];return e??null}function Iw(n){const e=n[de.ENUM_VALUE];return e??null}function Tu(n){if(Ht(n)){const e=n.toConfig();if(e.astNode!=null){const t=[];for(const i in e.fields){const r=e.fields[i];r.astNode!=null&&t.push(r.astNode)}e.astNode={...e.astNode,kind:z.OBJECT_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:z.OBJECT_TYPE_EXTENSION,fields:void 0}))),new ui(e)}else if(tn(n)){const e=n.toConfig();if(e.astNode!=null){const t=[];for(const i in e.fields){const r=e.fields[i];r.astNode!=null&&t.push(r.astNode)}e.astNode={...e.astNode,kind:z.INTERFACE_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:z.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new Cn(e)}else if(En(n)){const e=n.toConfig();if(e.astNode!=null){const t=[];for(const i in e.fields){const r=e.fields[i];r.astNode!=null&&t.push(r.astNode)}e.astNode={...e.astNode,kind:z.INPUT_OBJECT_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:z.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new $r(e)}else if(Lr(n)){const e=n.toConfig();if(e.astNode!=null){const t=[];for(const i in e.values){const r=e.values[i];r.astNode!=null&&t.push(r.astNode)}e.astNode={...e.astNode,values:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,values:void 0}))),new $s(e)}else return n}function Rw({schema:n,typeFilter:e=()=>!0,fieldFilter:t=void 0,rootFieldFilter:i=void 0,objectFieldFilter:r=void 0,interfaceFieldFilter:s=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:a=void 0,directiveFilter:l=void 0,enumValueFilter:u=void 0}){return Sw(n,{[de.QUERY]:c=>Hc(c,"Query",i,a),[de.MUTATION]:c=>Hc(c,"Mutation",i,a),[de.SUBSCRIPTION]:c=>Hc(c,"Subscription",i,a),[de.OBJECT_TYPE]:c=>e(c.name,c)?Wc(ui,c,r||t,a):null,[de.INTERFACE_TYPE]:c=>e(c.name,c)?Wc(Cn,c,s||t,a):null,[de.INPUT_OBJECT_TYPE]:c=>e(c.name,c)?Wc($r,c,o||t):null,[de.UNION_TYPE]:c=>e(c.name,c)?void 0:null,[de.ENUM_TYPE]:c=>e(c.name,c)?void 0:null,[de.SCALAR_TYPE]:c=>e(c.name,c)?void 0:null,[de.DIRECTIVE]:c=>l&&!l(c.name,c)?null:void 0,[de.ENUM_VALUE]:(c,d,h,p)=>u&&!u(d,p,c)?null:void 0})}function Hc(n,e,t,i){if(t||i){const r=n.toConfig();for(const s in r.fields){const o=r.fields[s];if(t&&!t(e,s,r.fields[s]))delete r.fields[s];else if(i&&o.args)for(const a in o.args)i(n.name,s,a,o.args[a])||delete o.args[a]}return new ui(r)}return n}function Wc(n,e,t,i){if(t||i){const r=e.toConfig();for(const s in r.fields){const o=r.fields[s];if(t&&!t(e.name,s,r.fields[s]))delete r.fields[s];else if(i&&"args"in o)for(const a in o.args)i(e.name,s,a,o.args[a])||delete o.args[a]}return new n(r)}}const Dw="{ unit?: string, value?: number }",nO="scalar Amount",iO=Ci({unit:Ie().optional(),value:ii().finite()}),Cw="z.object({ unit: z.string().optional(), value: z.number().finite() })",Zc=n=>{if(typeof n!="object"||!n)throw new ie(`Invalid Amount value: ${JSON.stringify(n)}`);const e=iO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},rO={name:"Amount",description:"A custom scalar that represents a currency amount with its currency type",serialize:Zc,parseValue:Zc,parseLiteral:n=>{var r;if(n.kind!==z.OBJECT)throw new ie("Value must be an object",{nodes:n});const e=n.fields.find(s=>s.name.value==="unit"),t=n.fields.find(s=>s.name.value==="value");if(e&&e.value.kind!==z.STRING)throw new ie("unit must be a valid string value",{nodes:n});if(!t||t.value.kind!==z.FLOAT)throw new ie("value must be a valid float value",{nodes:n});const i={unit:(r=e==null?void 0:e.value)==null?void 0:r.value,value:parseFloat(t.value.value)};return Zc(i)}},Pw=new ot(rO),Mw=Object.freeze(Object.defineProperty({__proto__:null,config:rO,scalar:Pw,schema:iO,stringSchema:Cw,type:Dw,typedef:nO},Symbol.toStringTag,{value:"Module"})),sO=/^\d+(\.\d+)?$/,Lw="{ unit: string, value: string }",oO="scalar Amount_Crypto",aO=Ci({unit:Ie(),value:Ie()}),$w="z.object({ unit: z.string(), value: z.string() })",Yc=n=>{if(typeof n!="object"||!n)throw new ie(`Invalid Amount Crypto value: ${JSON.stringify(n)}`);const e=aO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},lO={name:"Amount_Crypto",description:"A custom scalar that represents a cryptocurrency amount with its currency type",serialize:Yc,parseValue:Yc,parseLiteral:n=>{if(n.kind!==z.OBJECT)throw new ie("Value must be an object",{nodes:n});const e=n.fields.find(r=>r.name.value==="unit"),t=n.fields.find(r=>r.name.value==="value");if(!e||e.value.kind!==z.STRING)throw new ie("unit must be a valid string value",{nodes:n});if(!t||t.value.kind!==z.STRING)throw new ie("value must be a valid string value",{nodes:n});if(!sO.test(t.value.value))throw new ie('value must be a valid numeric string (e.g., "123" or "123.45")',{nodes:n});const i={unit:e.value.value,value:t.value.value};return Yc(i)}},Qw=new ot(lO),Fw=Object.freeze(Object.defineProperty({__proto__:null,NUMERIC_VALUE_REGEX:sO,config:lO,scalar:Qw,schema:aO,stringSchema:$w,type:Lw,typedef:oO},Symbol.toStringTag,{value:"Module"})),uO=/^\d+(\.\d+)?$/,Vw="{ unit: string, value: string }",cO="scalar Amount_Currency",fO=Ci({unit:Ie(),value:Ie()}),Bw="z.object({ unit: z.string(), value: z.string()})",zc=n=>{if(typeof n!="object"||!n)throw new ie(`Invalid Amount Currency value: ${JSON.stringify(n)}`);const e=fO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},dO={name:"Amount_Currency",description:"A custom scalar that represents a currency amount with its currency type",serialize:zc,parseValue:zc,parseLiteral:n=>{if(n.kind!==z.OBJECT)throw new ie("Value must be an object",{nodes:n});const e=n.fields.find(r=>r.name.value==="unit"),t=n.fields.find(r=>r.name.value==="value");if(!e||e.value.kind!==z.STRING)throw new ie("unit must be a valid string value",{nodes:n});if(!t||t.value.kind!==z.STRING)throw new ie("value must be a valid string value",{nodes:n});if(!uO.test(t.value.value))throw new ie('value must be a valid numeric string (e.g., "123" or "123.45")',{nodes:n});const i={unit:e.value.value,value:t.value.value};return zc(i)}},Uw=new ot(dO),qw=Object.freeze(Object.defineProperty({__proto__:null,NUMERIC_VALUE_REGEX:uO,config:dO,scalar:Uw,schema:fO,stringSchema:Bw,type:Vw,typedef:cO},Symbol.toStringTag,{value:"Module"})),jw="{ unit: string, value: number }",hO="scalar Amount_Fiat",pO=Ci({unit:Ie(),value:ii().finite()}),Gw="z.object({ unit: z.string(), value: z.number().finite() })",Kc=n=>{if(typeof n!="object"||!n)throw new ie(`Invalid Amount Fiat value: ${JSON.stringify(n)}`);const e=pO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},mO={name:"Amount_Fiat",description:"A custom scalar that represents a currency amount with its currency type",serialize:Kc,parseValue:Kc,parseLiteral:n=>{if(n.kind!==z.OBJECT)throw new ie("Value must be an object",{nodes:n});const e=n.fields.find(r=>r.name.value==="unit"),t=n.fields.find(r=>r.name.value==="value");if(!e||e.value.kind!==z.STRING)throw new ie("unit must be a valid string value",{nodes:n});if(!t||t.value.kind!==z.FLOAT)throw new ie("value must be a valid float value",{nodes:n});const i={unit:e.value.value,value:parseFloat(t.value.value)};return Kc(i)}},Hw=new ot(mO),Ww=Object.freeze(Object.defineProperty({__proto__:null,config:mO,scalar:Hw,schema:pO,stringSchema:Gw,type:jw,typedef:hO},Symbol.toStringTag,{value:"Module"})),Zw="number",gO="scalar Amount_Money",vO=ii(),Yw="z.number()",Xc=n=>{if(typeof n!="number")throw new ie(`Value is not number: ${JSON.stringify(n)}`);if(!Number.isFinite(n))throw new ie(`Value is not a finite number: ${n}`);const e=vO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},yO={name:"Amount_Money",description:"A custom scalar that represents a monetary amount in a currency",serialize:Xc,parseValue:Xc,parseLiteral:n=>{if(n.kind!==z.FLOAT)throw new ie("Value is not a float type",{nodes:n});const e=parseFloat(n.value);return Xc(e)}},zw=new ot(yO),Kw=Object.freeze(Object.defineProperty({__proto__:null,config:yO,scalar:zw,schema:vO,stringSchema:Yw,type:Zw,typedef:gO},Symbol.toStringTag,{value:"Module"})),Xw="number",bO="scalar Amount_Percentage",OO=ii(),Jw="z.number()",Jc=n=>{if(typeof n!="number")throw new ie(`Value is not number: ${JSON.stringify(n)}`);if(!Number.isFinite(n))throw new ie(`Value is not a finite number: ${n}`);const e=OO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},SO={name:"Amount_Percentage",description:"",serialize:Jc,parseValue:Jc,parseLiteral:n=>{if(n.kind!==z.FLOAT)throw new ie("some error message",{nodes:n});const e=parseFloat(n.value);return Jc(e)}},ex=new ot(SO),tx=Object.freeze(Object.defineProperty({__proto__:null,config:SO,scalar:ex,schema:OO,stringSchema:Jw,type:Xw,typedef:bO},Symbol.toStringTag,{value:"Module"})),nx="number",TO="scalar Amount_Tokens",EO=ii(),ix="z.number()",ef=n=>{if(typeof n!="number")throw new ie(`Value is not number: ${JSON.stringify(n)}`);if(!Number.isFinite(n))throw new ie(`Value is not a finite number: ${n}`);const e=EO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},AO={name:"Amount_Tokens",description:"A custom scalar that represents an amount of tokens",serialize:ef,parseValue:ef,parseLiteral:n=>{if(n.kind!==z.FLOAT)throw new ie("some error message",{nodes:n});const e=parseFloat(n.value);return ef(e)}},rx=new ot(AO),sx=Object.freeze(Object.defineProperty({__proto__:null,config:AO,scalar:rx,schema:EO,stringSchema:ix,type:nx,typedef:TO},Symbol.toStringTag,{value:"Module"})),ox="string",_O="scalar Currency",NO=Ie(),ax="z.string()",tf=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=NO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},wO={name:"Currency",description:"A custom scalar that represents a Currency Code string",serialize:tf,parseValue:tf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie(`Value is not a valid string: ${n.kind}`,{nodes:n});return tf(n.value)}},lx=new ot(wO),ux=Object.freeze(Object.defineProperty({__proto__:null,config:wO,scalar:lx,schema:NO,stringSchema:ax,type:ox,typedef:_O},Symbol.toStringTag,{value:"Module"})),cx="string",xO="scalar Date",kO=Ie().datetime(),fx="z.string().datetime()",nf=n=>{if(typeof n!="string")throw new ie(`Value is not iso string: ${JSON.stringify(n)}`);const e=kO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},IO={name:"Date",description:"A custom scalar that represents a datetime in ISO 8601 format (Time: 00:00:00)",serialize:nf,parseValue:nf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie("Value is not an string",{nodes:n});return nf(n.value)}},dx=new ot(IO),hx=Object.freeze(Object.defineProperty({__proto__:null,config:IO,scalar:dx,schema:kO,stringSchema:fx,type:cx,typedef:xO},Symbol.toStringTag,{value:"Module"})),px="string",RO="scalar DateTime",DO=Ie().datetime(),mx="z.string().datetime()",rf=n=>{if(typeof n!="string")throw new ie(`Value is not iso string: ${JSON.stringify(n)}`);const e=DO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},CO={name:"DateTime",description:"A custom scalar that represents a datetime in ISO 8601 format",serialize:rf,parseValue:rf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie("Value is not an string",{nodes:n});return rf(n.value)}},gx=new ot(CO),vx=Object.freeze(Object.defineProperty({__proto__:null,config:CO,scalar:gx,schema:DO,stringSchema:mx,type:px,typedef:RO},Symbol.toStringTag,{value:"Module"})),yx="string",PO="scalar EmailAddress",MO=Ie().email(),bx="z.string().email()",sf=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=MO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},LO={name:"EmailAddress",description:"A field whose value conforms to the standard internet email address format as specified in RFC822: https://www.w3.org/Protocols/rfc822/.",serialize:sf,parseValue:sf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie(`Can only validate strings as email addresses but got a: ${n.kind}`,{nodes:n});return sf(n.value)}},Ox=new ot(LO),Sx=Object.freeze(Object.defineProperty({__proto__:null,config:LO,scalar:Ox,schema:MO,stringSchema:bx,type:yx,typedef:PO},Symbol.toStringTag,{value:"Module"})),Tx="string",$O="scalar EthereumAddress",QO=Ie().regex(/^0x[a-fA-F0-9]{40}$/,{message:"Invalid Ethereum address format"}),Ex="z.string().regex(/^0x[a-fA-F0-9]{40}$/, { message: 'Invalid Ethereum address format' })",of=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=QO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},FO={name:"EthereumAddress",description:'A custom scalar representing an Ethereum address, validated as a 42-character hexadecimal string prefixed with "0x"',serialize:of,parseValue:of,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie("some error message",{nodes:n});return of(n.value)}},Ax=new ot(FO),_x=Object.freeze(Object.defineProperty({__proto__:null,config:FO,scalar:Ax,schema:QO,stringSchema:Ex,type:Tx,typedef:$O},Symbol.toStringTag,{value:"Module"})),Nx="string",VO="scalar OID",BO=Ie(),wx="z.string()",af=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=BO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},UO={name:"OID",description:"A custom scalar that represents a OID string",serialize:af,parseValue:af,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie(`Value is not a valid string: ${n.kind}`,{nodes:n});return af(n.value)}},xx=new ot(UO),kx=Object.freeze(Object.defineProperty({__proto__:null,config:UO,scalar:xx,schema:BO,stringSchema:wx,type:Nx,typedef:VO},Symbol.toStringTag,{value:"Module"})),Ix="string",qO="scalar OLabel",jO=Ie(),Rx="z.string()",lf=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=jO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},GO={name:"OLabel",description:"A custom scalar that represents a OLabel string",serialize:lf,parseValue:lf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie(`Value is not a valid string: ${n.kind}`,{nodes:n});return lf(n.value)}},Dx=new ot(GO),Cx=Object.freeze(Object.defineProperty({__proto__:null,config:GO,scalar:Dx,schema:jO,stringSchema:Rx,type:Ix,typedef:qO},Symbol.toStringTag,{value:"Module"})),Px="string",HO="scalar PHID",WO=Ie(),Mx="z.string()",uf=n=>{if(typeof n!="string")throw new ie(`Value is not string: ${JSON.stringify(n)}`);const e=WO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},ZO={name:"PHID",description:"A custom scalar that represents a PowerhouseID string",serialize:uf,parseValue:uf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie(`Value is not a valid string: ${n.kind}`,{nodes:n});return uf(n.value)}},Lx=new ot(ZO),$x=Object.freeze(Object.defineProperty({__proto__:null,config:ZO,scalar:Lx,schema:WO,stringSchema:Mx,type:Px,typedef:HO},Symbol.toStringTag,{value:"Module"})),Qx="string",YO="scalar URL",zO=Ie().url(),Fx="z.string().url()",cf=n=>{if(typeof n!="string")throw new ie(`Value is not iso string: ${JSON.stringify(n)}`);const e=zO.safeParse(n);if(e.success)return e.data;throw new ie(e.error.message)},KO={name:"URL",description:"A custom scalar that represents a URL string",serialize:cf,parseValue:cf,parseLiteral:n=>{if(n.kind!==z.STRING)throw new ie("Value is not an string",{nodes:n});return cf(n.value)}},Vx=new ot(KO),Bx=Object.freeze(Object.defineProperty({__proto__:null,config:KO,scalar:Vx,schema:zO,stringSchema:Fx,type:Qx,typedef:YO},Symbol.toStringTag,{value:"Module"}));class Ux{constructor(){this.promise=new Promise((e,t)=>{this.resolve=i=>{this.file=i,e(i)},this.reject=t}),this.promise.catch(()=>{})}}const qx=new ot({name:"Upload",description:"The `Upload` scalar type represents a file upload.",parseValue(n){if(n instanceof Ux)return n.promise;throw new ie("Upload value invalid.")},parseLiteral(n){throw new ie("Upload literal unsupported.",{nodes:n})},serialize(){throw new ie("Upload serialization unsupported.")}}),jx="File",XO="scalar Upload",Gx={name:"Upload",description:"A custom scalar that represents a file upload"},Hx="z.any()",Wx=qx,Zx=Object.freeze(Object.defineProperty({__proto__:null,config:Gx,scalar:Wx,stringSchema:Hx,type:jx,typedef:XO},Symbol.toStringTag,{value:"Module"})),Yx={Amount:Mw,AmountCrypto:Fw,AmountCurrency:qw,AmountFiat:Ww,AmountMoney:Kw,AmountPercentage:tx,AmountTokens:sx,Currency:ux,DateScalar:hx,DateTime:vx,EmailAddress:Sx,EthereumAddress:_x,File:Zx,OID:kx,OLabel:Cx,PHID:$x,URLScalar:Bx},zx=[TO,$O,bO,PO,xO,RO,YO,gO,qO,_O,HO,VO,hO,cO,oO,nO,XO],Rp=X_(()=>kb([Ie(),ii(),Ib(),J_(),eN(Rp),tN(Ie(),Rp)]));function Kx(n){return Object.values(Yx).find(t=>t.config.name===n)??null}const JO=`type Query {
|
|
16
16
|
_hidden: String
|
|
17
17
|
}
|
|
18
18
|
`,bh=zx.join(`
|
|
@@ -111,4 +111,4 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
111
111
|
"errors editor"
|
|
112
112
|
`,gridTemplateRows:"auto 1fr"},children:[Me("div",{className:"flex flex-col gap-2",style:{gridArea:"left"},children:[Y(HS,{operation:e,onAddOperationAndInitialSchema:s,updateOperationName:o,deleteOperation:a,module:t,allOperationNames:i}),Y(MQ,{operation:e,focusOnMount:e.id===r,setOperationDescription:u})]}),Y("div",{className:"relative top-8",style:{gridArea:"editor"},children:Y(ah,{doc:e.schema??"",updateDocumentInModel:h,customLinter:p})}),Me("div",{style:{gridArea:"errors"},children:[Y("h3",{className:"my-2 text-sm font-medium text-gray-700",children:"Reducer Exceptions"}),Y(LQ,{operation:e,addOperationError:f,deleteOperationError:c,setOperationErrorName:d})]})]})}function VQ({module:n,allOperations:e,shouldFocusNewOperation:t,updateOperationName:i,deleteOperation:r,addOperationAndInitialSchema:s,addOperationError:o,deleteOperationError:a,setOperationErrorName:l,updateOperationSchema:u,setOperationDescription:f}){const[c,d]=Ms(null),h=dh(),p=e.map(g=>g.name).filter(g=>g!==null),m=ve(async(g,v)=>{const y=await s(g,v);return y&&d(y),y},[s,d]);return Me("div",{children:[n.operations.map(g=>Y("div",{children:Y(FQ,{operation:g,module:n,lastCreatedOperationId:c,allOperationNames:p,addOperationError:o,deleteOperationError:a,setOperationErrorName:l,onAddOperationAndInitialSchema:m,updateOperationName:i,deleteOperation:r,updateOperationSchema:u,setOperationDescription:f})},g.id)),Y("div",{className:"mt-6 w-1/2 pr-6",children:Y(HS,{onAddOperationAndInitialSchema:m,updateOperationName:i,deleteOperation:r,module:n,allOperationNames:p,focusOnMount:t},h)})]})}function Eb(n){const{module:e,modules:t,allOperations:i,lastCreatedModuleId:r,onAddModule:s,updateModuleName:o,deleteModule:a,updateOperationName:l,deleteOperation:u,addOperationAndInitialSchema:f,updateOperationSchema:c,setOperationDescription:d,addOperationError:h,deleteOperationError:p,setOperationErrorName:m}=n;return Me("div",{className:"relative rounded-3xl bg-gray-100 p-6",children:[Me("div",{className:"mb-2 w-1/2 pr-6",children:[Y(IR,{modules:t,module:e,onAddModule:s,updateModuleName:o}),!!e&&Y("button",{"aria-label":"Delete module",tabIndex:-1,className:"absolute right-1 top-1 p-2 text-gray-800 transition-colors hover:text-gray-500",onClick:()=>{a(e.id)},children:Y("svg",{className:"size-6",viewBox:"0 0 24 24",fill:"currentcolor",children:Y("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.9993 8.51506L15.4844 7L11.9994 10.4852L8.51497 7.00057L7 8.51562L10.4844 12.0003L7.00056 15.4843L8.51552 16.9994L11.9994 13.5153L15.4838 17L16.9988 15.4849L13.5144 12.0003L16.9993 8.51506Z"})})})]}),!!e&&Y(VQ,{module:e,allOperations:i,shouldFocusNewOperation:e.id===r,updateOperationName:l,deleteOperation:u,addOperationAndInitialSchema:f,updateOperationSchema:c,setOperationDescription:d,addOperationError:h,deleteOperationError:p,setOperationErrorName:m})]})}function BQ({modules:n,allOperations:e,addModule:t,updateModuleName:i,deleteModule:r,updateOperationName:s,deleteOperation:o,addOperationAndInitialSchema:a,updateOperationSchema:l,setOperationDescription:u,addOperationError:f,deleteOperationError:c,setOperationErrorName:d}){const[h,p]=Ms(null),m=Nt(null),g=ve(async v=>{var O;const y=await t(v);return y&&(p(y),(O=m.current)==null||O.focus()),y},[t,p]);return Me("div",{className:"flex flex-col gap-2",children:[n.map(v=>Y(Eb,{module:v,modules:n,allOperations:e,lastCreatedModuleId:h,onAddModule:g,updateModuleName:i,deleteModule:r,updateOperationName:s,deleteOperation:o,addOperationAndInitialSchema:a,updateOperationSchema:l,setOperationDescription:u,addOperationError:f,deleteOperationError:c,setOperationErrorName:d},v.id)),Y(Eb,{modules:n,allOperations:e,lastCreatedModuleId:h,onAddModule:g,updateModuleName:i,deleteModule:r,updateOperationName:s,deleteOperation:o,addOperationAndInitialSchema:a,updateOperationSchema:l,setOperationDescription:u,addOperationError:f,deleteOperationError:c,setOperationErrorName:d},"add-module"),Y("div",{ref:m,tabIndex:0,className:"size-0 overflow-hidden","aria-hidden":"true"})]})}const lh=fh((n,e)=>{const{className:t,...i}=n;return Y("button",{ref:e,...i,className:Yt("h-10 whitespace-nowrap rounded-md border border-gray-200 bg-gray-50 px-4 py-2 text-sm font-medium text-gray-800 transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",t)})}),UQ=Yh({String:Q.string,Number:Q.number,"True False":Q.bool,PropertyName:Q.propertyName,Null:Q.null,", :":Q.separator,"[ ]":Q.squareBracket,"{ }":Q.brace}),qQ=ks.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[UQ],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),jQ=()=>n=>{try{JSON.parse(n.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const t=GQ(e,n.state.doc);return[{from:t,message:e.message,severity:"error",to:t}]}return[]};function GQ(n,e){let t;return(t=n.message.match(/at position (\d+)/))?Math.min(+t[1],e.length):(t=n.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+t[1]).from+ +t[2]-1,e.length):0}const S_=Is.define({name:"json",parser:qQ.configure({props:[Xh.add({Object:my({except:/^\s*\}/}),Array:my({except:/^\s*\]/})}),ep.add({"Object Array":GE})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function HQ(){return new UE(S_)}const WQ=xb(function(e){const{doc:t,readonly:i=!1,updateDocumentInModel:r}=e,{editorRef:s,viewRef:o,updateListenerCompartment:a,focusHandlerCompartment:l,pasteHandlerCompartment:u,timeoutRef:f}=h_();return en(()=>{o.current||(o.current=new ne({state:Ee.create({doc:t,extensions:[...v_,wc.of(y_),oA,S_,HQ(),Uh(jQ()),a.current.of(yp(i,f,r)),l.current.of(bp(i,f,r)),u.current.of(Op(i,f,r)),Ee.readOnly.of(i)]}),parent:s.current}),kr(o.current))},[]),p_(o),m_(o.current,i,f,r,{updateListener:a.current,focusHandler:l.current,pasteHandler:u.current}),g_(o.current,t),Y("div",{ref:s})}),ZQ=mN,T_=Gt.forwardRef(({className:n,...e},t)=>Y(Db,{ref:t,className:Yt("flex items-center justify-center rounded-xl bg-slate-50 p-1 shadow-[inset_0px_0px_2px_rgba(255,255,255,0.50)]",n),...e}));T_.displayName=Db.displayName;const uh=Gt.forwardRef(({className:n,...e},t)=>Y(Cb,{ref:t,className:Yt("flex w-full items-center justify-center whitespace-nowrap rounded-lg p-1 text-sm text-gray-500 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-gray-50 data-[state=active]:text-gray-800 data-[state=active]:shadow-[0px_16px_16px_-4px_rgba(0,0,0,0.10)]",n),...e}));uh.displayName=Cb.displayName;const ch=Gt.forwardRef(({className:n,...e},t)=>Y(Pb,{ref:t,className:Yt("",n),...e}));ch.displayName=Pb.displayName;function Ab({modelName:n,stateSchema:e,initialValue:t,setStateSchema:i,setInitialState:r,scope:s}){const o=nS(),[a,l]=Ms(!1),u=ve(p=>$Q(p,n,s),[n,s]),f=ve(()=>{l(p=>!p)},[]),c=ve(p=>i(p,s),[i,s]),d=ve(p=>r(p,s),[r,s]),h=ve(()=>{const p=t||"{}",m=nn(o);if(!m)return;const g=nn(e);if(!g)return;const v=iS(n,s);if(!v)return;const y=g.definitions.find(S=>S.kind===z.OBJECT_TYPE_DEFINITION&&S.name.value===v);if(!y||y.kind!==z.OBJECT_TYPE_DEFINITION)return;const O=lk({sharedSchemaDocumentNode:m,stateTypeDefinitionNode:y,existingValue:p});r(O,s)},[o,t,r,s]);return Me("div",{className:"grid grid-cols-2 gap-4",children:[Me("div",{children:[Me("h3",{className:"mb-2 text-lg capitalize",children:[s," state schema"]}),Me(lh,{onClick:f,className:"mb-2 flex w-fit items-center gap-2",children:[a?"Hide":"Show"," standard library",Y("svg",{className:Yt("inline-block transition-transform",a?"rotate-180":"rotate-0"),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:Y("path",{d:"M11.9883 6.01172C11.4363 6.01172 10.9883 6.45972 10.9883 7.01172V13.0117H6.98828L11.9883 18.0117L16.9883 13.0117H12.9883V7.01172C12.9883 6.45972 12.5403 6.01172 11.9883 6.01172Z",fill:"black"})})]}),a&&Y(ah,{doc:bh,readonly:!0}),Y(ah,{doc:e,updateDocumentInModel:c,customLinter:u})]}),Me("div",{children:[Me("div",{className:"flex flex-col items-end",children:[Me("h3",{className:"mb-2 text-right text-lg capitalize",children:[s," state initial value"]}),Me(lh,{onClick:h,className:"mb-2 flex w-fit items-center gap-2",children:["Sync with schema"," ",Y("svg",{className:"inline-block",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:Y("path",{d:"M8.00521 1.99219C6.63588 1.99219 5.32788 2.45152 4.27588 3.28419C3.98721 3.51219 3.94321 3.93285 4.17188 4.22151C4.40054 4.51018 4.82055 4.55418 5.10921 4.32552C5.92721 3.67819 6.93921 3.32552 8.00521 3.32552C10.5825 3.32552 12.6719 5.41485 12.6719 7.99218H11.3385L13.3385 10.6588L15.3385 7.99218H14.0052C14.0052 4.67818 11.3192 1.99219 8.00521 1.99219ZM2.67188 5.32552L0.671875 7.99218H2.00521C2.00521 11.3062 4.69121 13.9922 8.00521 13.9922C9.37521 13.9922 10.6825 13.5335 11.7345 12.7002C12.0232 12.4722 12.0672 12.0515 11.8385 11.7628C11.6099 11.4742 11.1899 11.4302 10.9012 11.6588C10.0825 12.3068 9.07188 12.6588 8.00521 12.6588C5.42788 12.6588 3.33854 10.5695 3.33854 7.99218H4.67188L2.67188 5.32552Z",fill:"#343839"})})]})]}),Y(WQ,{doc:t,updateDocumentInModel:d})]})]})}function YQ({modelName:n,globalStateSchema:e,localStateSchema:t,globalStateInitialValue:i,localStateInitialValue:r,setStateSchema:s,setInitialState:o}){const a=ve(()=>{const l=Oh(n,"local");s(l,"local"),o("","local")},[n,s,o]);return Me(ZQ,{className:"pb-8",activationMode:"manual",defaultValue:"global",children:[Y("div",{className:"my-6",children:Me(T_,{className:"mx-auto flex max-w-sm",children:[Y(uh,{value:"global",children:"Global"}),Y(uh,{value:"local",children:"Local"})]})}),Y(ch,{value:"global",tabIndex:-1,children:Y(Ab,{modelName:n,stateSchema:e,initialValue:i,setStateSchema:s,setInitialState:o,scope:"global"})}),Y(ch,{value:"local",tabIndex:-1,children:t?Y(Ab,{modelName:n,stateSchema:t,initialValue:r,setStateSchema:s,setInitialState:o,scope:"local"}):Me("div",{className:"",children:[Y("h3",{className:"mb-2 text-lg capitalize",children:"local state schema"}),Y(lh,{onClick:a,children:"Add local state"})]})})]})}function zQ(n){const{document:e,documentNodeName:t,dispatch:i}=n,{name:r,id:s,extension:o,description:a,author:{name:l,website:u}}=to(()=>e.state.global,[e.state.global]),{state:{global:{schema:f,initialValue:c},local:{schema:d,initialValue:h}},modules:p}=to(()=>e.state.global.specifications[0],[e.state.global.specifications[0]]),m=to(()=>p.flatMap(B=>B.operations),[p]),g=Nt(!r&&!!t&&m.length===0);en(()=>{!g.current||!t||(i(Ep({name:t})),lS({modelName:t,setStateSchema:(B,ee)=>{i(Ap({schema:B,scope:ee}))}}),g.current=!1)},[t]);const v=to(()=>m.flatMap(B=>B.schema??[]).join(`
|
|
113
113
|
`),[m]),y=ve(B=>{ct(B,s)||i(gN({id:B}))},[s]),O=ve(B=>{ct(B,a)||i(vN({description:B}))},[a]),S=ve(B=>{ct(B,o)||i(yN({extension:B}))},[o]),b=ve(B=>{ct(B,r)||i(Ep({name:B}))},[r]),T=ve(B=>{ct(B,l)||i(bN({authorName:B}))},[l]),w=ve(B=>{ct(B,u??"")||i(ON({authorWebsite:B}))},[u]),C=ve((B,ee)=>{ct(B,ee==="global"?f:d)||i(Ap({schema:B,scope:ee}))},[f,d]),D=ve((B,ee)=>{ct(B,ee==="global"?c:h)||i(SN({initialValue:B,scope:ee}))},[c,h]),k=ve(B=>new Promise(ee=>{try{if(p.some(pe=>ct(pe.name,B))){ee(void 0);return}const re=Gc();i(TN({id:re,name:B})),ee(re)}catch(re){console.error("Failed to add module:",re),ee(void 0)}}),[p]),$=ve((B,ee)=>{p.some(re=>ct(re.name,ee))||i(EN({id:B,name:ee}))},[p]),A=ve(B=>i(AN({id:B})),[]),_=ve((B,ee)=>new Promise(re=>{var pe;try{if((((pe=p.find(Ue=>Ue.id===B))==null?void 0:pe.operations.map(Ue=>Ue.name).filter(Boolean))??[]).some(Ue=>ct(Ue,ee))){re(void 0);return}const Le=Gc();i(_N({id:Le,moduleId:B,name:ee})),re(Le)}catch(xe){console.error("Failed to add operation:",xe),re(void 0)}}),[p]),I=ve((B,ee)=>{const re=p.find(xe=>xe.operations.some(Le=>Le.id===B));((re==null?void 0:re.operations.map(xe=>xe.name).filter(Boolean))??[]).some(xe=>ct(xe,ee))||i(NN({id:B,name:ee}))},[p]),R=ve((B,ee)=>{const re=m.find(pe=>pe.id===B);re!=null&&re.schema&&ct(ee,re.schema)||i(wN({id:B,schema:ee}))},[m]),F=ve((B,ee)=>{var pe;const re=((pe=m.find(xe=>xe.id===B))==null?void 0:pe.description)??"";ct(re,ee)||i(xN({id:B,description:ee}))},[m]),U=ve(B=>i(kN({id:B})),[]),X=ve((B,ee)=>new Promise(re=>{try{const pe=m.find(Ue=>Ue.id===B);if(((pe==null?void 0:pe.errors.map(Ue=>Ue.name).filter(Boolean))??[]).some(Ue=>ct(Ue,ee))){re(void 0);return}const Le=Gc();i(IN({id:Le,operationId:B,errorName:ee})),re(Le)}catch(pe){console.error("Failed to add operation error:",pe),re(void 0)}}),[m]),te=ve(B=>i(RN({id:B})),[]),ue=ve((B,ee,re)=>{const pe=m.find(Le=>Le.id===B);((pe==null?void 0:pe.errors.map(Le=>Le.name).filter(Boolean))??[]).some(Le=>ct(Le,re))||i(DN({id:ee,errorName:re}))},[m]),fe=ve(async(B,ee)=>{try{const re=await _(B,ee);if(!re)return;try{return R(re,ok(ee)),re}catch(pe){console.error("Failed to update operation schema:",pe);return}}catch(re){console.error("Failed to add operation and schema:",re);return}},[_,R]);return Y("main",{className:"min-h-dvh bg-gray-50",children:Y(sk,{globalStateSchemaSdl:f,localStateSchemaSdl:d,operationSchemasSdl:v,children:Me("div",{className:"mx-auto max-w-6xl px-4 pt-8",children:[Y(ER,{name:r,documentType:s,extension:o,description:a,authorName:l,authorWebsite:u??"",globalStateSchema:f,localStateSchema:d,setModelId:y,setModelDescription:O,setModelExtension:S,setModelName:b,setAuthorName:T,setAuthorWebsite:w,setStateSchema:C}),Y(kp,{}),Me("div",{children:[Y(YQ,{modelName:r,globalStateSchema:f,globalStateInitialValue:c,localStateSchema:d,localStateInitialValue:h,setStateSchema:C,setInitialState:D}),Y(kp,{}),Y("h3",{className:"mb-6 text-lg",children:"Global Operations"}),Y(BQ,{modules:p,allOperations:m,addModule:k,updateModuleName:$,deleteModule:A,updateOperationName:I,updateOperationSchema:R,setOperationDescription:F,deleteOperation:U,addOperationError:X,deleteOperationError:te,setOperationErrorName:ue,addOperationAndInitialSchema:fe})]})]})})})}const dF={Component:zQ,documentTypes:["powerhouse/document-model"],config:{id:"document-model-editor-v2",disableExternalControls:!0,documentToolbarEnabled:!0,timelineEnabled:!0}};export{zQ as DocumentModelEditor,dF as documentModelEditorModule};
|
|
114
|
-
//# sourceMappingURL=index.
|
|
114
|
+
//# sourceMappingURL=index.BrAiYFNe.js.map
|