PageSourceSearch

https://uniform.app/_next/static/chunks/1m784p_jtyvpj.js

js uniform.app collected 2026-09-24 10:25:09 UTC 25,236 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="3b0b9431-499a-0e4c-c5e9-c55bc7ee771d")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,82736,e=>{"use strict";var t=e.i(474019),r=e.i(83802),n=e.i(788787),i=e.i(97232),o=e.i(344445),a=e.i(414394),s=e.i(936390),u=e.i(124412),c=e.i(150755),l=e.i(613787),d=e.i(493087),p=e.i(648509),f=e.i(372555),v=e.i(757285),h="uniform_release_",y=function(e){return{id:e,name:"Loading...",state:"open"}},j=(0,u.createContext)({authoritativeDataSource:"passive",activeRelease:void 0,activeReleaseName:"Base",canEditReleaseContents:!1,setAuthoritativeDataSource:function(){throw Error("Not initialised")},changeRelease:function(){throw Error("Not initialised")},removeFromRelease:function(){throw Error("Not initialised")}});e.s(["ReleaseProvider",0,function(e){var m,_,I=e.children,M=(0,l.useProjectIdFromRoute)({allowOutsideProjectRoute:!0}).projectId,P=(0,n._)((0,f.useQueryParam)(v.RELEASE_QUERY_PARAM,{skipNestedRoute:!0}),1)[0],g=(0,n._)((0,s.useQueryStates)((_={},(0,r._)(_,v.RELEASE_QUERY_PARAM,s.parseAsString),(0,r._)(_,v.VERSION_QUERY_PARAM,s.parseAsString),_),{history:"push",scroll:!0,shallow:!1}),2)[1],b=(0,n._)((0,c.useSessionStorage)(h+(null!=M?M:"")),2),E=b[0],w=b[1],R=P||E,S=(0,n._)((0,u.useState)("passive"),2),T=S[0],C=S[1],A=(0,u.useRef)(T),k=(0,d.useReleaseContentsMutations)(M||"").remove,N=(0,p.useReleases)({projectId:M||"",releaseIDs:[null!=(m=null!=P?P:E)?m:""]},{enabled:!!(M&&R),refetchOnWindowFocus:!1,placeholderData:a.keepPreviousData}),D=N.data,Q=N.isLoading,K=(0,u.useCallback)(function(e){return(0,t._)(function(){var t;return(0,i._)(this,function(n){switch(n.label){case 0:return[4,g((t={},(0,r._)(t,v.RELEASE_QUERY_PARAM,null!=e?e:null),(0,r._)(t,v.VERSION_QUERY_PARAM,null),t))];case 1:return n.sent(),w(e),[2]}})})()},[w,g]),O=(0,u.useCallback)(function(e){var r=e.releaseId,n=e.publicId,o=e.definitionType,a=e.editionId;return(0,t._)(function(){return(0,i._)(this,function(e){switch(e.label){case 0:if(!(P||r))throw Error("A releaseId must be provided to removeFromRelease on a non release aware route");return[4,k.mutateAsync({releaseId:null!=r?r:P,editionId:a,publicId:n,definitionType:o})];case 1:return e.sent(),[2]}})})()},[P,k]);(0,u.useEffect)(function(){"active"===A.current&&w(P)},[P,w]);var q=(0,u.useMemo)(function(){var e,t,r,n,i,o=E||P?null!=(e=null==D||null==(n=D.results)?void 0:n[0])?e:Q?y(null!=E?E:P):void 0:void 0,a=P?null!=(t=null==D||null==(i=D.results)?void 0:i[0])?t:Q?y(P):void 0:"heisenberg"===T?o:void 0,s=!o&&(!R||!Q)||(null==o?void 0:o.state)=="open";return{activeRelease:a,passiveRelease:o,activeReleaseName:null!=(r=null==a?void 0:a.name)?r:"Base",canEditReleaseContents:s,changeRelease:K,removeFromRelease:O,authoritativeDataSource:T,setAuthoritativeDataSource:function(e){A.current=e,C(e)}}},[P,T,K,R,Q,E,null==D?void 0:D.results,O]);return(0,o.jsx)(j.Provider,{value:q,children:I})},"useGetPassiveReleaseIdFromStorage",0,function(e){return(0,u.useCallback)(function(){if(e){var t=sessionStorage.getItem(h+e);if(t)try{return JSON.parse(t)}catch(e){}}},[e])},"useReleaseContext",0,function(){return(0,u.useContext)(j)}])},648509,e=>{"use strict";var t=e.i(474019),r=e.i(183202),n=e.i(984072),i=e.i(831427),o=e.i(528388),a=e.i(97232),s=e.i(240677),u=e.i(83052),c=e.i(268002),l=e.i(973814),d=e.i(977660),p=e.i(516179),f=e.i(330686),v=e.i(82777),h=e.i(613787),y=function(e){return(0,d.extendQueryKeys)({id:e,keys:h.projectsKeys},(0,d.createEntityQueryKeys)("releases"))};e.s(["releaseKeys",0,y,"useInfiniteReleases",0,function(e,o){return(0,d.useAccessTokenPoweredInfiniteQuery)(y(e.projectId).list(e),function(o,s){return(0,t._)(function(){var t,l;return(0,a._)(this,function(a){switch(a.label){case 0:t=new c.ReleaseClient((0,p.dashboardClientOptions)({projectId:e.projectId,bearerToken:o})),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,t.list((0,i._)((0,n._)({},e),{offset:s}))];case 2:return[2,a.sent()];case 3:if(l=a.sent(),(0,r._)(l,u.ApiClientError)&&404===l.statusCode)return[2,null];throw l;case 4:return[2]}})})()},(0,n._)({getNextPageParam:function(e,t){if(e){var r=t.reduce(function(e,t){var r;return e+(null!=(r=null==t?void 0:t.results.length)?r:0)},0);return r<e.totalCount?r:void 0}},initialPageParam:0,staleTime:6e5},o))},"useReleaseMutations",0,function(e){var r=(0,s.useQueryClient)(),n=(0,l.useAnalytics)(),i=(0,f.useIncrementUsage)(),u=y(e),j=(0,d.useAccessTokenPoweredMutation)(function(r){var i=r.accessToken,s=r.newData;return(0,t._)(function(){var t,r;return(0,a._)(this,function(a){switch(a.label){case 0:return t=s.isNew,r=(0,o._)(s,["isNew"]),[4,new c.ReleaseClient((0,p.dashboardClientOptions)({projectId:e,bearerToken:i})).save(r)];case 1:return a.sent(),n.track(t?"RELEASE_ADDED":"RELEASE_SAVED",{projectId:e,releaseId:s.releaseId,name:r.name}),[2]}})})()},{onSuccess:function(t,n){i("releases"),r.invalidateQueries({queryKey:u.detail(n.releaseId)}),r.invalidateQueries({queryKey:u.lists()}),r.invalidateQueries({queryKey:(0,v.entityReleasesKeys)(e).lists()})},onError:function(){r.invalidateQueries({queryKey:u.all})}}),m=(0,d.useAccessTokenPoweredMutation)(function(r){var i=r.accessToken,o=r.newData;return(0,t._)(function(){return(0,a._)(this,function(t){switch(t.label){case 0:return[4,new c.ReleaseClient((0,p.dashboardClientOptions)({projectId:e,bearerToken:i})).ready(o)];case 1:return t.sent(),n.track("RELEASE_ACTION",{projectId:e,releaseId:o.releaseId,action:o.action}),[2]}})})()},{onSuccess:function(t,n){"launch"==n.action&&i("releases",-1),r.invalidateQueries({queryKey:u.detail(n.releaseId)}),r.invalidateQueries({queryKey:u.lists()}),r.invalidateQueries({queryKey:h.projectsKeys.detail(e)})},onError:function(){r.invalidateQueries({queryKey:u.all})}});return{upsert:j,remove:(0,d.useAccessTokenPoweredMutation)(function(r){var i=r.newData,o=r.accessToken;return(0,t._)(function(){return(0,a._)(this,function(t){switch(t.label){case 0:return[4,new c.ReleaseClient((0,p.dashboardClientOptions)({projectId:e,bearerToken:o})).remove({releaseId:i})];case 1:return t.sent(),n.track("RELEASE_DELETED",{projectId:e,id:i}),[2]}})})()},{onSuccess:function(){i("releases",-1),r.invalidateQueries({queryKey:u.all}),r.invalidateQueries({queryKey:(0,v.entityReleasesKeys)(e).all})},onError:function(){r.invalidateQueries({queryKey:u.all})}}),action:m}},"useReleases",0,function(e,i){return(0,d.useAccessTokenPoweredQuery)(y(e.projectId).list(e),function(n){return(0,t._)(function(){var t,i;return(0,a._)(this,function(o){switch(o.label){case 0:t=new c.ReleaseClient((0,p.dashboardClientOptions)({projectId:e.projectId,bearerToken:n})),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,t.list(e)];case 2:return[2,o.sent()];case 3:if(i=o.sent(),(0,r._)(i,u.ApiClientError)&&404===i.statusCode)return[2,null];throw i;case 4:return[2]}})})()},(0,n._)({staleTime:6e5},i))}])},408010,e=>{"use strict";var t=e.i(344445),r=e.i(758292),n=e.i(973814),i=e.i(124412),o=(0,i.createContext)(null);e.s(["TweeProvider",0,function(e){var a=e.data,s=e.versionId,u=e.children,c=e.startDirty,l=(0,n.useAnalytics)(),d=(0,i.useRef)(l);d.current=l;var p=(0,i.useMemo)(function(){var e=a.state,t=a.projectId,n=a.pattern,i=a.uiStatus,o=a.modified,u=a.created,l=a.editionId,p=new r.Twee(a.composition,{startDirty:c,metadata:(0,r.compositionResponseMetadata)(a),isPattern:!!n});return p.events.on("propertyOverrideCreated",function(e){var t;null==(t=d.current)||t.track("CANVAS_PARAMETER_OVERRIDDEN",{parameterId:e.property})}),p.events.on("propertyOverrideReset",function(e){var t;null==(t=d.current)||t.track("CANVAS_PARAMETER_OVERRIDE_RESET",{parameter:e.property,usedPatternDefault:e.usedPatternDefault})}),{state:e,projectId:t,pattern:n,patternId:a.composition._pattern,compositionId:a.composition._id,editionId:l,twee:p,uiStatus:i,versionId:s,releaseId:a.releaseId,modified:o,created:u,deletedAt:a.deletedAt}},[a,c,s]);return(0,t.jsx)(o.Provider,{value:p,children:u})},"useTwee",0,function(){var e=(0,i.useContext)(o);if(!e)throw Error("TweeProvider is missing");return e},"useTweeMaybe",0,function(){return(0,i.useContext)(o)}])},44383,325417,e=>{"use strict";var t=e.i(474019),r=e.i(984072),n=e.i(528388),i=e.i(97232),o=e.i(613787),a=e.i(977660),s=e.i(240677),u=e.i(124412),c=e.i(516179),l=e.i(397340),d=e.i(168602);function p(e){return(0,t._)(function(){var t,r,n,o;return(0,i._)(this,function(i){switch(i.label){case 0:if(t=e.projectId,!(r=e.auth0))return[3,2];return[4,(0,l.getUniformAccessToken)(r)];case 1:return o=i.sent(),[3,3];case 2:o=e.bearerToken,i.label=3;case 3:if(!(n=o))throw Error("getProjectMapClient requires either an auth0 context or a bearer token");return[2,new d.ProjectMapClient((0,c.dashboardClientOptions)({bearerToken:n,projectId:t}))]}})})()}e.s(["getProjectMapClient",0,p],325417);var f=function(e){var t=e.projectId;return(0,a.extendQueryKeys)({id:t,keys:o.projectsKeys},(0,a.createEntityQueryKeys)("projectMap"))};function v(e,n){var o=e.projectId;return(0,a.useAccessTokenPoweredQuery)(f({projectId:o}).lists(),function(e){return(0,t._)(function(){return(0,i._)(this,function(t){switch(t.label){case 0:return[4,p({projectId:o,bearerToken:e})];case 1:return[4,t.sent().getProjectMapDefinitions()];case 2:return[2,t.sent().projectMaps]}})})()},(0,r._)({enabled:!!o,staleTime:36e5},n))}e.s(["projectMapKeys",0,f,"useProjectMap",0,function(e,t){var i=e.projectId,o=e.projectMapId,a=v({projectId:i},t),s=a.data,c=(0,n._)(a,["data"]);return(0,u.useMemo)(function(){if(!s)return(0,r._)({projectMap:void 0,projectMaps:void 0},c);var e=o?s.find(function(e){return e.id===o}):void 0;return(0,r._)({projectMap:null!=e?e:s[0],projectMaps:s},c)},[s,o])},"useProjectMaps",0,v,"useProjectMapsMutations",0,function(e){var r=e.projectId,n=(0,s.useQueryClient)(),o=f({projectId:r});return{upsert:(0,a.useAccessTokenPoweredMutation)(function(e){var n=e.accessToken,o=e.newData;return(0,t._)(function(){return(0,i._)(this,function(e){switch(e.label){case 0:return[4,p({projectId:r,bearerToken:n})];case 1:return[4,e.sent().upsertProjectMap({projectMap:o})];case 2:return e.sent(),[2]}})})()},{onMutate:function(e){return(0,t._)(function(){return(0,i._)(this,function(t){return n.setQueriesData({queryKey:o.lists()},function(t){return t?(0,a.optimisticallyUpdateLists)(e,e.id,function(e){return e.id})(t):t}),[2]})})()},onSuccess:function(){n.invalidateQueries({queryKey:o.lists()})},onError:function(){n.invalidateQueries({queryKey:o.all})}}),remove:(0,a.useAccessTokenPoweredMutation)(function(e){var n=e.accessToken,o=e.newData;return(0,t._)(function(){return(0,i._)(this,function(e){switch(e.label){case 0:return[4,p({projectId:r,bearerToken:n})];case 1:return[4,e.sent().deleteProjectMap({projectMapId:o})];case 2:return e.sent(),[2]}})})()},{onMutate:function(e){return(0,t._)(function(){return(0,i._)(this,function(t){return n.setQueriesData({queryKey:o.lists()},function(t){return t?(0,a.optimisticallyDeleteFromLists)(e,function(e){return e.id})(t):t}),[2]})})()},onSuccess:function(){n.invalidateQueries({queryKey:o.lists()})},onError:function(){n.invalidateQueries({queryKey:o.all})}})}}],44383)},897077,e=>{"use strict";var t=e.i(474019),r=e.i(984072),n=e.i(831427),i=e.i(788787),o=e.i(97232),a=e.i(4600),s=e.i(977660),u=e.i(240677),c=e.i(532211),l=e.i(644750),d=e.i(570244),p=e.i(124412),f=e.i(325417);function v(e){for(var t=new Map,r=e?[e]:[];r.length>0;){var n,i=r.pop();
2i.id&&i.path&&t.set(i.id,i.path),null==(n=i.children)||n.forEach(function(e){return r.push(e)})}return t}var h=e.i(44383),y=function(e){var t=e.projectId,r=e.projectMapId;return(0,s.extendQueryKeys)({id:r,keys:(0,h.projectMapKeys)({projectId:t})},(0,s.createEntityQueryKeys)("projectMapNode"))};function j(e,i){var a=e.projectId,u=e.projectMapId,c=e.projectNodeOptions,l=void 0===c?{}:c,d=(0,s.useAccessTokenPoweredQuery)(y({projectId:a,projectMapId:u}).list((0,n._)((0,r._)({},l),{tree:!0})),function(e){return(0,t._)(function(){var t;return(0,o._)(this,function(i){switch(i.label){case 0:if("00000000-0000-0000-0000-000000000000"===l.id)return[2,null];return[4,(0,f.getProjectMapClient)({projectId:a,bearerToken:e})];case 1:return[4,i.sent().getNodes((0,n._)((0,r._)({projectMapId:u},l),{tree:!0}))];case 2:return[2,null!=(t=i.sent().tree)?t:null]}})})()},(0,r._)({enabled:!!u},i));return(0,n._)((0,r._)({},d),{isLoading:d.isLoading&&"idle"!==d.fetchStatus})}e.s(["useProjectMapCompositionLocations",0,function(e){var t=j({projectId:e.projectId,projectMapId:e.projectMapId}).data;return(0,p.useMemo)(function(){return function(e){for(var t=new Map,r=e?[e]:[];r.length>0;){var n,i=r.pop();if(i.compositionId&&i.path){var o=t.get(i.compositionId);o?o.push(i.path):t.set(i.compositionId,[i.path])}null==(n=i.children)||n.forEach(function(e){return r.push(e)})}return t}(t)},[t])},"useProjectMapNodeIdToPath",0,function(e){var t=j({projectId:e.projectId,projectMapId:e.projectMapId}).data;return(0,p.useMemo)(function(){return v(t)},[t])},"useProjectMapNodes",0,function(e,i){var a=e.projectId,u=e.projectMapId,c=e.projectNodeOptions,l=void 0===c?{}:c,d=(0,s.useAccessTokenPoweredQuery)(y({projectId:a,projectMapId:u}).list(l),function(e){return(0,t._)(function(){return(0,o._)(this,function(n){return[2,function(e){return(0,t._)(function(e){var t,n,i,a,s;return(0,o._)(this,function(o){switch(o.label){case 0:if(t=e.projectId,n=e.projectMapId,a=void 0===(i=e.projectNodeOptions)?{}:i,s=e.bearerToken,"00000000-0000-0000-0000-000000000000"===a.id)return[2,[]];return[4,(0,f.getProjectMapClient)({projectId:t,bearerToken:s})];case 1:return[4,o.sent().getNodes((0,r._)({projectMapId:n,expanded:!0},a))];case 2:return[2,o.sent().nodes]}})}).apply(this,arguments)}({projectId:a,projectMapId:u,projectNodeOptions:l,bearerToken:e})]})})()},(0,r._)({enabled:!!u},i));return(0,n._)((0,r._)({},d),{isLoading:d.isLoading&&"idle"!==d.fetchStatus})},"useProjectMapNodesMutations",0,function(e){var a=e.projectId,l=e.projectMapId,d=(0,u.useQueryClient)(),p=y({projectId:a,projectMapId:l});return{upsert:(0,s.useAccessTokenPoweredMutation)(function(e){var i=e.accessToken,s=e.newData;return(0,t._)(function(){return(0,o._)(this,function(e){switch(e.label){case 0:return[4,(0,f.getProjectMapClient)({projectId:a,bearerToken:i})];case 1:return[4,e.sent().upsertProjectMapNodes((0,n._)((0,r._)({},s),{projectMapId:s.projectMapId||l}))];case 2:return e.sent(),[2]}})})()},{onMutate:function(e){return(0,t._)(function(){return(0,o._)(this,function(t){return e.nodes.forEach(function(e){var t=e.node,o=(0,n._)((0,r._)({},t),{id:t.id,name:t.name,locales:function(e,t){if(t){var o=Object.entries(t);if(o.length)return o.reduce(function(t,o){var a=(0,i._)(o,2),s=a[0],u=a[1];return t[s]=(0,n._)((0,r._)({},u),{path:"".concat(e,"/").concat(s),inherited:!1}),t},{})}}((0,c.getParentPath)(t.path),t.locales)});d.setQueryData(p.detail(o.id),o),d.setQueriesData({queryKey:p.lists()},function(e){return e?(0,s.optimisticallyUpdateLists)(o,o.id,function(e){return e.id})(e):e})}),[2]})})()},onSuccess:function(){d.invalidateQueries({queryKey:p.lists()}),d.removeQueries({queryKey:p.details()})},onError:function(){return d.invalidateQueries({queryKey:p.all})}}),remove:(0,s.useAccessTokenPoweredMutation)(function(e){var r=e.accessToken,n=e.newData;return(0,t._)(function(){return(0,o._)(this,function(e){switch(e.label){case 0:return[4,(0,f.getProjectMapClient)({projectId:a,bearerToken:r})];case 1:return[4,e.sent().deleteProjectMapNode({projectMapId:l,path:n})];case 2:return e.sent(),[2]}})})()},{onSuccess:function(){d.invalidateQueries({queryKey:p.lists()})},onError:function(){return d.invalidateQueries({queryKey:p.all})}})}}
2,"useProjectMapPolicyHydration",0,function(e,t){var r,n,i,o=(0,a.useProjectPermissions)(e).data,s=(0,p.useMemo)(function(){if(o)return o.roles.some(function(e){var t,r=e.role;return(0,l.collectLocationNodeIds)((0,d.parsePolicyDocument)(null==r||null==(t=r.policy_documents.at(0))?void 0:t.document)).length>0})},[o]),u=!0===s,c=(0,h.useProjectMap)({projectId:null!=e?e:"",projectMapId:t},{enabled:u}),f=j({projectId:null!=e?e:"",projectMapId:null==(r=c.projectMap)?void 0:r.id},{enabled:u&&!!(null==(n=c.projectMap)?void 0:n.id)}),y=(0,p.useMemo)(function(){return u&&f.isSuccess?v(f.data):void 0},[u,f.isSuccess,f.data]);return e?void 0===s?{nodeIdToPath:void 0,hydrationPending:!0}:!u||c.isError||f.isError||c.projectMaps&&!(null==(i=c.projectMap)?void 0:i.id)?{nodeIdToPath:void 0,hydrationPending:!1}:{nodeIdToPath:y,hydrationPending:void 0===y}:{nodeIdToPath:void 0,hydrationPending:!1}},"useProjectMapTreeNodes",0,j],897077)},150755,e=>{"use strict";var t=e.i(124412),r=e.i(888374);e.s(["useSessionStorage",0,function(e,n,i){if(!r.isBrowser)return[n,function(){}];var o=(0,t.useState)(function(){try{var t=sessionStorage.getItem(e);if("string"!=typeof t)return sessionStorage.setItem(e,i?String(n):JSON.stringify(n)),n;return i?t:JSON.parse(t||"null")}catch(e){return n}}),a=o[0],s=o[1];return(0,t.useEffect)(function(){try{var t=i?String(a):JSON.stringify(a);sessionStorage.setItem(e,t)}catch(e){}}),[a,s]}],150755)},168602,e=>{"use strict";var t,r,n,i,o=e.i(474019),a=e.i(159211),s=e.i(877032),u=e.i(776477),c=e.i(990039),l=e.i(183202),d=e.i(984072),p=e.i(831427),f=e.i(788787),v=e.i(714834),h=e.i(97232),y=e.i(83052),j=e.i(268002),m=function(e){throw TypeError(e)},_=function(e,t,r){return t.has(e)||m("Cannot "+r)},I=function(e,t,r){return _(e,t,"read from private field"),r?r.call(e):t.get(e)},M=function(e,t,r){return t.has(e)?m("Cannot add the same private member more than once"):(0,l._)(t,WeakSet)?t.add(e):t.set(e,r)},P=function(e,t,r){return _(e,t,"access private method"),r},g=function(e){function t(e){var r;return(0,s._)(this,t),(r=(0,a._)(this,t,[e])).getProjectMapDefinitions=function(){return(0,o._)(function(){var e,t;return(0,h._)(this,function(n){switch(n.label){case 0:return e=r.options.projectId,t=r.createUrl("/api/v1/project-map",{projectId:e}),[4,r.apiClient(t)];case 1:return[2,n.sent()]}})})()},r.getProjectMapDefinition=function(e){return(0,o._)(function(){var t,n;return(0,h._)(this,function(i){switch(i.label){case 0:return t=r.options.projectId,n=r.createUrl("/api/v1/project-map",(0,p._)((0,d._)({},e),{projectId:t})),[4,r.apiClient(n)];case 1:return[2,i.sent()]}})})()},r.upsertProjectMap=function(e){return(0,o._)(function(){var t,n;return(0,h._)(this,function(i){switch(i.label){case 0:return t=r.options.projectId,n=r.createUrl("/api/v1/project-map"),[4,r.apiClient(n,{method:"PUT",body:JSON.stringify((0,p._)((0,d._)({},e),{projectId:t}))})];case 1:return[2,i.sent().projectMapId]}})})()},r.deleteProjectMap=function(e){return(0,o._)(function(){var t,n;return(0,h._)(this,function(i){switch(i.label){case 0:return t=r.options.projectId,n=r.createUrl("/api/v1/project-map"),[4,r.apiClient(n,{method:"DELETE",body:JSON.stringify((0,p._)((0,d._)({},e),{projectId:t})),expectNoContent:!0})];case 1:return i.sent(),[2]}})})()},r.upsertProjectMapNodes=function(e){return(0,o._)(function(){var t,n;return(0,h._)(this,function(i){switch(i.label){case 0:return t=r.options.projectId,n=r.createUrl("/api/v1/project-map-nodes"),[4,r.apiClient(n,{method:"PUT",body:JSON.stringify((0,p._)((0,d._)({},e),{projectId:t,nodes:e.nodes.map(function(e){return(0,p._)((0,d._)({},e),{node:(0,d._)({},r.cleanProjectMapNode(e.node))})})})),expectNoContent:!0})];case 1:return i.sent(),[2]}})})()},r.deleteProjectMapNode=function(e){return(0,o._)(function(){var t,n;return(0,h._)(this,function(i){switch(i.label){case 0:return t=r.options.projectId,n=r.createUrl("/api/v1/project-map-nodes"),[4,r.apiClient(n,{method:"DELETE",body:JSON.stringify((0,p._)((0,d._)({},e),{projectId:t})),expectNoContent:!0})];case 1:return i.sent(),[2]}})})()},r.getSubtree=function(e){return(0,o._)(function(){var t,n,i,o,a,s,u;return(0,h._)(this,function(c){switch(c.label){case 0:return t=function(){var e=u.pop(),t=void 0;
2null==(n=null==e?void 0:e.children)||n.forEach(function(r){r.parent=b(e),r.previousSibling=b(t),t&&(t.nextSibling=b(r)),t=r,u.push(r)})},(i=r.setFetchOptions(e)).tree="true",o=r.createUrl("/api/v1/project-map-nodes",i),[4,r.apiClient(o)];case 1:for(a=c.sent(),u=[s=(0,d._)({},a.tree)];u&&u.length>0;)t();return[2,s]}})})()},r.getNodes=function(e){return(0,o._)(function(){var t,n;return(0,h._)(this,function(i){switch(i.label){case 0:return t=r.setFetchOptions(e),n=r.createUrl("/api/v1/project-map-nodes",t),[4,r.apiClient(n)];case 1:return[2,i.sent()]}})})()},r}return(0,c._)(t,e),(0,u._)(t,[{key:"setFetchOptions",value:function(e){var t={projectId:this.options.projectId};return Object.entries(e).forEach(function(e){var r=(0,f._)(e,2),n=r[0],i=r[1];if(void 0!==i){if("boolean"==typeof i){if(!i)return;t[n]="true";return}if("number"==typeof i){t[n]=i.toString(10);return}t[n]=i}}),t}},{key:"cleanProjectMapNode",value:function(e){var t,r,n;return{id:(null!=(n=null==(r=null==(t=e.id)?void 0:t.match(/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i))?void 0:r.length)?n:0)==1?e.id:void 0,path:e.path,name:e.name,type:e.type,order:e.order,data:e.data,compositionId:e.compositionId,description:e.description,locales:e.locales}}}]),t}(y.ApiClient);(0,c._)(function e(t){return(0,s._)(this,e),(0,a._)(this,e,[(0,p._)((0,d._)({},t),{bypassCache:!0})])},g);var b=function(e){return e?(0,p._)((0,d._)({},e),{parent:void 0,children:void 0}):void 0},E=function(){function e(i){var o,a;(0,s._)(this,e),this.route=i,M(this,t),o=t,a=P(e,r,n).call(e,this.route),_(this,o,"write to private field"),o.set(this,a)}return(0,u._)(e,[{key:"dynamicSegmentCount",get:function(){return I(this,t).segments.reduce(function(t,n){return P(e,r,i).call(e,n)?t+1:t},0)}},{key:"matches",value:function(o){var a=P(e,r,n).call(e,o),s=a.segments,u=a.queryParams,c=I(this,t).segments;if(s.length!==c.length)return{match:!1};for(var l={match:!0,dynamicSegmentCount:0,pathParams:{},queryParams:{}},d=0;d<c.length;d++){var p=c[d],v=s[d];if(P(e,r,i).call(e,p)){var h=p.slice(1);l.pathParams[h]=v,l.dynamicSegmentCount++}else if(p!==v)return{match:!1}}var y=!0,j=!1,m=void 0;try{for(var _,M=I(this,t).queryParams[Symbol.iterator]();!(y=(_=M.next()).done);y=!0){var g=(0,f._)(_.value,2),b=g[0],E=g[1];l.queryParams[b]=u.has(b)?u.get(b):E}}catch(e){j=!0,m=e}finally{try{y||null==M.return||M.return()}finally{if(j)throw m}}return l}},{key:"expand",value:function(r){var n=null!=r?r:{},i=n.dynamicInputValues,o=void 0===i?{}:i,a=n.allowedQueryParams,s=n.doNotEscapeVariables,u=void 0!==s&&s,c=I(this,t).segments.map(function(t){var r=e.getDynamicRouteSegmentName(t);if(!r)return t;var n=o[r];return n?w(n,u):t}).join("/"),l=(void 0===a?[]:a).filter(function(e){var t=(0,v._)(o[e]);return"string"===t||"number"===t||"boolean"===t}).map(function(e){return"".concat(w(e,u),"=").concat(w(o[e],u))}),d=l.length?"?".concat(l.join("&")):"";return"/".concat(c).concat(d)}}],[{key:"getDynamicRouteSegmentName",value:function(t){if(P(e,r,i).call(e,t))return t.slice(e.dynamicSegmentPrefix.length)}},{key:"splitFragment",value:function(e){var t=-1;return((0,j.parseVariableExpression)(e,function(e,r,n){if("variable"!==r){var i=e.indexOf("#");if(-1!==i)return t=n+i,!1}}),-1===t)?{path:e,fragment:void 0}:{path:e.slice(0,t),fragment:e.slice(t+1)}}}]),e}();function w(e,t){if(!t)return encodeURIComponent(e);var r=[];return(0,j.parseVariableExpression)(e.toString(10),function(e,t){"variable"===t?r.push((0,j.createVariableReference)(e)):r.push(encodeURIComponent(e))}),r.join("")}t=new WeakMap,r=new WeakSet,n=function(e){if(!e.startsWith("/")||""===e)throw Error("Path must start with a slash: ".concat(e));var t=(0,f._)(e.split("?"),2),r=t[0],n=t[1],i=r.substring(1).split("/");return""===i[i.length-1]&&i.pop(),{segments:i,queryParams:new URLSearchParams(n)}},i=function(e){return!!e&&e.startsWith(E.dynamicSegmentPrefix)},M(E,r),E.dynamicSegmentPrefix=":",e.s(["ProjectMapClient",0,g,"ROOT_NODE_PATH",0,"/","Route",0,E,"getNodeActiveCompositionEdition",0,function(e){var t,r=e.node,n=e.targetLocale,i=e.fallbackWhenLocaleNotMatched;
2if(r.compositionData){if(!n)return r.compositionData;var o=function(e){var t=e.editions,r=e.selectEdition,n=e.selectId,i=e.selectEnabledLocales,o=e.targetLocale;if(t&&t.length){if(!o)return t.find(function(e){var t=r(e);return!t.editionId||t.editionId===n(e)});var a=void 0;return t.forEach(function(e){var t,n,s,u,c=r(e),l=a?r(a):void 0,d=null!=(t=c.editionPriority)?t:0,p=null!=(n=null==l?void 0:l.editionPriority)?n:Number.MIN_SAFE_INTEGER;i(e).includes(o)&&(d>p||d===p&&0>(null!=(s=c.editionName)?s:"").localeCompare(null!=(u=null==l?void 0:l.editionName)?u:"","en",{sensitivity:"base"}))&&(a=e)}),a}}({editions:null!=(t=r.compositionData.editions)?t:[],selectId:function(e){var t;return null!=(t=e.editionId)?t:""},selectEnabledLocales:function(e){return e.locales},selectEdition:function(e){return e},targetLocale:n});return!r.compositionData.editions&&r.compositionData.locales.includes(n)||void 0!==i&&i&&!o?r.compositionData:o}},"getNodeLocalePath",0,function(e,t){var r,n;return e?t&&(null==(n=null==(r=e.locales)?void 0:r[t])?void 0:n.path)||e.path:null}])}]);
3
4//# debugId=3b0b9431-499a-0e4c-c5e9-c55bc7ee771d

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.