@e-llm-studio/instant-learning 1.3.0-alpha.144 → 1.3.0-alpha.146
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/cjs/features/IL-marketplace/components/GuidelineCardMenu.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/constants.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineCart.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineCart.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCart.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineCartItem.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineCartItem.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCartItem.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineHeader.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineHeader.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineHeader.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineIconButton.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineIconButton.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineIconButton.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLibrary.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLibrary.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLibrary.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/constants.js +1 -1
- package/dist/types/src/ILMarketplaceMockTest.d.ts +3 -0
- package/dist/types/src/ILMarketplaceMockTest.d.ts.map +1 -0
- package/dist/types/src/ILMarketplaceWrapper.d.ts +49 -0
- package/dist/types/src/ILMarketplaceWrapper.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineCardMenu.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineCart.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineCartHeader.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineCartItem.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineConfirmDialog.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineEmptyState.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineFilterPanel.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineHeader.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineIconButton.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLandingPage.d.ts +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLandingPage.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibrary.d.ts +6 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibrary.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts +4 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineProceedButton.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineSelectButton.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts +8 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/IL-marketplace.api.d.ts +69 -0
- package/dist/types/src/features/IL-marketplace/services/IL-marketplace.api.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/types/add-context.types.d.ts +1 -0
- package/dist/types/src/features/IL-marketplace/types/add-context.types.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/types/file-item.d.ts +6 -0
- package/dist/types/src/features/IL-marketplace/types/file-item.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/types.d.ts +8 -0
- package/dist/types/src/features/IL-marketplace/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),l=require("lucide-react"),s=require("../utils.js"),u=require("./GuidelineSelectButton.module.css.js");exports.GuidelineSelectButton=function(c){var i=c.isSelected,r=c.onClick,n=c.classNames,a=c.styles;return t.jsx("button",e.__assign({type:"button",onClick:r,"aria-pressed":i,"aria-label":i?"Unselect guideline":"Select guideline",className:s.cx(u.default.selectButton,i?u.default.selectButtonSelected:u.default.selectButtonUnselected,null==n?void 0:n.cartItemSelectButton),style:null==a?void 0:a.cartItemSelectButton},{children:t.jsx(l.Check,{className:u.default.checkIcon,strokeWidth:3.2})}))};
|
|
2
2
|
//# sourceMappingURL=GuidelineSelectButton.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../../../node_modules/style-inject/dist/style-inject.es.js").default(".GuidelineSelectButton-module_selectButton__s54LS{align-items:center;background-color:#fff;border:1px solid;border-radius:5px;color:#0000;cursor:pointer;display:flex;flex-shrink:0;height:1.25rem;justify-content:center;margin-top:.25rem;transition:all .2s ease;width:1.25rem}.GuidelineSelectButton-module_selectButtonSelected__JUy-6{background-color:#5b2cf4;border-color:#5b2cf4;color:#fff}.GuidelineSelectButton-module_selectButtonUnselected__vuf8h{border-color:#cbd5e1}.GuidelineSelectButton-module_selectButtonUnselected__vuf8h:hover{border-color:#8b5cf6}.GuidelineSelectButton-module_checkIcon__85opA{height:.875rem;width:.875rem}"),exports.default={selectButton:"GuidelineSelectButton-module_selectButton__s54LS",selectButtonSelected:"GuidelineSelectButton-module_selectButtonSelected__JUy-6",selectButtonUnselected:"GuidelineSelectButton-module_selectButtonUnselected__vuf8h",checkIcon:"GuidelineSelectButton-module_checkIcon__85opA"};
|
|
2
|
+
//# sourceMappingURL=GuidelineSelectButton.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineSelectButton.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("../utils.js"),u=require("./GuidelineStatusChip.module.css.js"),s={published:"published",draft:"draft",under_review:"underReview","under-review":"underReview","under review":"underReview"},t={published:"Published",draft:"Draft",underReview:"Under Review"};exports.GuidelineStatusChip=function(d){var a=d.status,n=d.className,l=a?s[a.trim().toLowerCase()]:void 0;return l?r.jsx("span",e.__assign({className:i.cx(u.default.chip,u.default[l],n)},{children:t[l]})):null};
|
|
2
|
+
//# sourceMappingURL=GuidelineStatusChip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineStatusChip.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../../../node_modules/style-inject/dist/style-inject.es.js").default(".GuidelineStatusChip-module_chip__fNMka{align-items:center;border-radius:100px;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:500;height:1.5rem;line-height:1;padding:0 .625rem;white-space:nowrap}.GuidelineStatusChip-module_published__t3hjL{background:var(--green-50,#f0fdf4);border:1px solid var(--green-200,#bbf7d0);color:var(--green-700,#15803d)}.GuidelineStatusChip-module_draft__ek3T5{background:var(--blue-50,#eff6ff);border:1px solid var(--blue-200,#bfdbfe);color:var(--blue-700,#1d4ed8)}.GuidelineStatusChip-module_underReview__HhDvk{background:var(--yellow-50,#fefce8);border:1px solid var(--yellow-200,#fef08a);color:var(--yellow-700,#a16207)}"),exports.default={chip:"GuidelineStatusChip-module_chip__fNMka",published:"GuidelineStatusChip-module_published__t3hjL",draft:"GuidelineStatusChip-module_draft__ek3T5",underReview:"GuidelineStatusChip-module_underReview__HhDvk"};
|
|
2
|
+
//# sourceMappingURL=GuidelineStatusChip.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineStatusChip.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ADD_CONTEXT_FILE_TYPES={GUIDELINE:"guideline",CONTEXT:"context"},exports.DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE={data:{_id:"",artifactId:"",artifactTitle:"",artifactTitleIDs:[],artifactData:{final_response_gs_url:"",citationsSnapshot:{image_citations:[],appmod_citations:[],audio_citations:[],file_citations:[],web_citations:[],pdf_citations:[],gpt_citations:[]},projectIdSnapshot:"",userStorySnapshot:[],breadCrumbsSnapShot:[],activePageSnapShot:"",aiReasoningsSnapshot:[],dataSources_files:{},knowledgeBaseSnapshot:[],projectAnalyserSummarySnapshot:[],chatHistorySnapshot:[],persistedDataFilesSnapshot:{},risk_gap_items_json:{},selectedCodebasesSnapshot:[],selectedUserStoryTypeSnapshot:""},dataSources_files:{},modeName:"",modeId:null,artifactSubTitle:"",isLoading:!1,widgetName:"user story",userEmail:"",optionalData:{},created_at:"",updated_at:""},counter:{ai_reasoning_id_counter:0,pdf_citation_id_counter:0,section_number:0}},exports.DEFAULT_GUIDELINE_LABELS={landingBreadcrumbLabel:"Agent Guidelines",landingTitle:"Set Your Agent's Guidelines",landingDescription:"Add a set of guidelines that shape how your agent behaves, responds, and interprets.",landingDebugLabel:"Know more about debug mode",landingAddGuidelineLabel:"Add New Set of Guidelines",savedTabLabel:"Saved",recentTabLabel:"Recently used",libraryEmptyTitle:"No saved guidelines",libraryEmptyDescription:"Create a new guideline to start building your session rules.",libraryAddToCart:"Add to Cart",libraryAddedToCart:"Added to Cart",librarySelect:"Select",librarySelected:"Selected",libraryExplore:"Explore",libraryShowMore:"Show more guidelines",libraryShowLess:"Show fewer guidelines",cartTitle:"Guideline Cart",cartDescription:"Guidelines added to your current session",emptyCartTitle:"No guidelines added",emptyCartDescription:"Your selected guidelines will appear here.",proceedButton:"Proceed with Selected",addGuidelineLabel:"Add guideline",selectedBadge:function(e){return"".concat(e," Selected")},landingDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query.",createGuidelinesTooltipContent:"Topics are used to optimize guideline ingestion and retrieval. Select the closest matching topic for the best results.",popoverDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query."},exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ADD_CONTEXT_FILE_TYPES={GUIDELINE:"guideline",CONTEXT:"context"},exports.DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE={data:{_id:"",artifactId:"",artifactTitle:"",artifactTitleIDs:[],artifactData:{final_response_gs_url:"",citationsSnapshot:{image_citations:[],appmod_citations:[],audio_citations:[],file_citations:[],web_citations:[],pdf_citations:[],gpt_citations:[]},projectIdSnapshot:"",userStorySnapshot:[],breadCrumbsSnapShot:[],activePageSnapShot:"",aiReasoningsSnapshot:[],dataSources_files:{},knowledgeBaseSnapshot:[],projectAnalyserSummarySnapshot:[],chatHistorySnapshot:[],persistedDataFilesSnapshot:{},risk_gap_items_json:{},selectedCodebasesSnapshot:[],selectedUserStoryTypeSnapshot:""},dataSources_files:{},modeName:"",modeId:null,artifactSubTitle:"",isLoading:!1,widgetName:"user story",userEmail:"",optionalData:{},created_at:"",updated_at:""},counter:{ai_reasoning_id_counter:0,pdf_citation_id_counter:0,section_number:0}},exports.DEFAULT_GUIDELINE_LABELS={landingBreadcrumbLabel:"Agent Guidelines",landingTitle:"Set Your Agent's Guidelines",landingDescription:"Add a set of guidelines that shape how your agent behaves, responds, and interprets.",landingDebugLabel:"Know more about debug mode",landingAddGuidelineLabel:"Add New Set of Guidelines",savedTabLabel:"Saved",recentTabLabel:"Recently used",libraryEmptyTitle:"No saved guidelines",libraryEmptyDescription:"Create a new guideline to start building your session rules.",libraryAddToCart:"Add to Cart",libraryAddedToCart:"Added to Cart",librarySelect:"Select",librarySelected:"Selected",libraryExplore:"Explore",libraryShowMore:"Show more guidelines",libraryShowLess:"Show fewer guidelines",cartTitle:"Guideline Cart",cartDescription:"Guidelines added to your current session",emptyCartTitle:"No guidelines added",emptyCartDescription:"Your selected guidelines will appear here.",proceedButton:"Proceed with Selected",addGuidelineLabel:"Add guideline",selectedBadge:function(e){return"".concat(e," Selected")},landingDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query.",createGuidelinesTooltipContent:"Topics are used to optimize guideline ingestion and retrieval. Select the closest matching topic for the best results.",popoverDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query."},exports.FILE_INGESTION_STATUS={IN_PROGRESS:"In-Progress",INGESTION_COMPLETE:"Completed",INGESTION_FAILED:"Failed"},exports.GUIDELINE_SESSION_ID="GUIDELINE_SESSION_ID",exports.SOURCE_IDS={IMAGES:"images",MEETING_RECORDINGS:"meeting-recordings",DOCUMENTS:"documents",STORMEE_CONVERSATIONS:"stormee-conversations",REQUIREMENT_DOCUMENTS:"requirement-documents",CODEBASE_KNOWLEDGE:"codebase-knowledge",GUIDELINES:"guidelines"};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{useRef as t,useEffect as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{useRef as t,useEffect as i}from"react";import{Trash2 as o}from"lucide-react";import{cx as l}from"../utils.js";import u from"./GuidelineCardMenu.module.css.js";function a(o){var a=o.open,d=o.onClose,m=o.anchorRef,c=o.items,s=o.classNames,f=o.styles,v=t(null);if(i(function(){if(a){var e=function(e){var n=e.target;v.current&&!v.current.contains(n)&&m.current&&!m.current.contains(n)&&d()},n=function(e){"Escape"===e.key&&d()};return document.addEventListener("mousedown",e),document.addEventListener("keydown",n),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",n)}}},[a,d,m]),!a)return null;var y=c.filter(function(e){return!e.hidden});return n("div",e({ref:v,role:"menu",className:l(u.menu,null==s?void 0:s.libraryCardMenu),style:null==f?void 0:f.libraryCardMenu},{children:y.map(function(t){return r("button",e({type:"button",role:"menuitem",disabled:t.disabled,onClick:function(){t.onClick(),d()},className:l(u.menuItem,t.danger&&u.menuItemDanger,t.danger?null==s?void 0:s.libraryCardMenuItemDanger:null==s?void 0:s.libraryCardMenuItem),style:t.danger?null==f?void 0:f.libraryCardMenuItemDanger:null==f?void 0:f.libraryCardMenuItem},{children:[t.icon,n("span",{children:t.label})]}),t.key)})}))}function d(e){var r=e.onDelete,t=e.deleteLabel,i=void 0===t?"Delete":t,l=e.hideDelete,a=void 0!==l&&l;return[{key:"delete",label:i,icon:n(o,{className:u.icon,strokeWidth:2}),onClick:r,danger:!0,hidden:a}]}export{a as GuidelineCardMenu,d as createGuidelineCardMenuItems};
|
|
2
2
|
//# sourceMappingURL=GuidelineCardMenu.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var n={menu:"GuidelineCardMenu-module_menu__B41-L",menuItem:"GuidelineCardMenu-module_menuItem__52UdI",menuItemDanger:"GuidelineCardMenu-module_menuItemDanger__WKSkN",icon:"GuidelineCardMenu-module_icon__rVCwa"};e(".GuidelineCardMenu-module_menu__B41-L{background-color:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 4px 16px #1018281f;margin-top:.25rem;min-width:180px;padding:.25rem;position:absolute;right:0;top:100%;z-index:50}.GuidelineCardMenu-module_menuItem__52UdI{align-items:center;background-color:initial;border:none;color:#344054;cursor:pointer;display:flex;font-size:13px;font-weight:500;gap:.625rem;padding:.625rem;text-align:left;transition:background-color .2s ease;width:100%}.GuidelineCardMenu-module_menuItem__52UdI:hover{background-color:#f9fafb}.GuidelineCardMenu-module_menuItem__52UdI:disabled{cursor:not-allowed;opacity:.5}.GuidelineCardMenu-module_menuItemDanger__WKSkN{color:#ef4444}.GuidelineCardMenu-module_menuItemDanger__WKSkN:hover{background-color:#fef2f2}.GuidelineCardMenu-module_icon__rVCwa{flex-shrink:0;height:1rem;width:1rem}");export{n as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineCardMenu.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineCardMenu.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as i,jsx as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{mergeGuidelineLabels as l,getGuidelineId as d,cx as o,defaultFormatAddedOnLabel as n}from"../utils.js";import{GuidelineCartHeader as s}from"./GuidelineCartHeader.js";import{GuidelineCartItem as r}from"./GuidelineCartItem.js";import{GuidelineEmptyState as a}from"./GuidelineEmptyState.js";import{GuidelineProceedButton as c}from"./GuidelineProceedButton.js";import u from"./GuidelineCart.module.css.js";function m(m){var p=m.guidelines,f=m.cartGuidelineIds,v=m.selectedGuidelineIds,y=m.onToggleGuideline,G=m.onPreviewGuideline,b=m.onRemoveGuideline,g=m.onProceed,B=m.onAddGuideline,L=m.hideDeleteButton,N=void 0!==L&&L,h=m.proceedDisabledTooltip,j=void 0===h?"Add guideline to proceed":h,C=m.classNames,T=m.styles,A=m.labels,D=m.formatAddedOnLabel,P=void 0===D?n:D,I=l(A),w=f?p.filter(function(e){return f.includes(d(e))}):p,x=w.filter(function(e){return v.includes(d(e))}),O=x.length;return i("aside",e({className:o(u.cart,null==C?void 0:C.cart),style:null==T?void 0:T.cart},{children:[t(s,{title:I.cartTitle,description:I.cartDescription,selectedLabel:O>0?I.selectedBadge(O):void 0,addGuidelineLabel:I.addGuidelineLabel,onAddGuideline:B,classNames:C,styles:T}),t("div",e({className:o(u.cartBody,null==C?void 0:C.cartBody),style:null==T?void 0:T.cartBody},{children:0===w.length?t(a,{title:I.emptyCartTitle,description:I.emptyCartDescription,classNames:C,styles:T}):t("div",e({className:o(u.cartList,null==C?void 0:C.cartList),style:null==T?void 0:T.cartList},{children:w.map(function(e){return t(r,{guideline:e,isSelected:v.includes(d(e)),onToggle:y,onPreview:G,onRemove:b,hideDeleteButton:N,classNames:C,styles:T,formatAddedOnLabel:P},d(e))})}))})),t(c,{label:I.proceedButton,disabled:0===O,onClick:function(){return g(x)},disabledTooltip:j,classNames:C,styles:T})]}))}export{m as GuidelineCart};
|
|
2
2
|
//# sourceMappingURL=GuidelineCart.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var i={cart:"GuidelineCart-module_cart__NwbOQ",cartBody:"GuidelineCart-module_cartBody__nbciR",cartList:"GuidelineCart-module_cartList__bwkUX"};e(".GuidelineCart-module_cart__NwbOQ{background-color:#f5f1ff;border:1px solid #5b2cf4;border-radius:12px;box-shadow:0 1px 4px #1018280a;display:flex;flex-direction:column;font-family:Inter;padding:1.75rem;width:100%}.GuidelineCart-module_cartBody__nbciR{flex:1;margin-top:2rem;min-height:280px;overflow:hidden}.GuidelineCart-module_cartList__bwkUX{display:flex;flex-direction:column;gap:1rem;max-height:420px;overflow-y:auto;padding-right:.5rem}");export{i as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineCart.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineCart.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as l,jsx as t}from"react/jsx-runtime";import{Plus as i}from"lucide-react";import{cx as a}from"../utils.js";import d from"./GuidelineCartHeader.module.css.js";function r(r){var c=r.title,s=r.description,n=r.selectedLabel,o=r.addGuidelineLabel,u=r.onAddGuideline,m=r.classNames,p=r.styles;return l("div",e({className:a(d.header,null==m?void 0:m.cartHeader),style:null==p?void 0:p.cartHeader},{children:[l("div",e({className:d.container},{children:[l("div",e({className:d.titleWrapper},{children:[t("h2",e({className:a(d.title,null==m?void 0:m.cartTitle),style:null==p?void 0:p.cartTitle},{children:c})),n&&t("span",e({className:a(d.badge,null==m?void 0:m.cartSelectedBadge),style:null==p?void 0:p.cartSelectedBadge},{children:n}))]})),t("p",e({className:a(d.description,null==m?void 0:m.cartDescription),style:null==p?void 0:p.cartDescription},{children:s}))]})),u&&t("button",e({type:"button",onClick:u,className:a(d.addButton,null==m?void 0:m.cartAddButton),style:null==p?void 0:p.cartAddButton,"aria-label":o,title:o},{children:t(i,{className:d.icon,strokeWidth:2.4})}))]}))}export{r as GuidelineCartHeader};
|
|
2
2
|
//# sourceMappingURL=GuidelineCartHeader.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var r={header:"GuidelineCartHeader-module_header__e-B-s",container:"GuidelineCartHeader-module_container__X5Hd3",titleWrapper:"GuidelineCartHeader-module_titleWrapper__n-WDL",title:"GuidelineCartHeader-module_title__y4Yuq",badge:"GuidelineCartHeader-module_badge__rQ07g",description:"GuidelineCartHeader-module_description__kBEr7",addButton:"GuidelineCartHeader-module_addButton__1iHPU",icon:"GuidelineCartHeader-module_icon__g7Bsq"};e(".GuidelineCartHeader-module_header__e-B-s{align-items:flex-start;display:flex;gap:.75rem;justify-content:space-between}.GuidelineCartHeader-module_container__X5Hd3{min-width:0}.GuidelineCartHeader-module_titleWrapper__n-WDL{align-items:center;display:flex;flex-wrap:wrap;gap:.5rem}.GuidelineCartHeader-module_title__y4Yuq{color:#1f2937;font-size:20px;font-weight:600;line-height:1.75rem}.GuidelineCartHeader-module_badge__rQ07g{background-color:#e8ddff;border-radius:9999px;color:#5b2cf4;font-size:13px;font-weight:600;line-height:1rem;padding:.25rem .625rem}.GuidelineCartHeader-module_description__kBEr7{color:#475467;font-size:13px;line-height:1.25rem;margin-top:.25rem}.GuidelineCartHeader-module_addButton__1iHPU{align-items:center;background-color:#fff;border:1px solid #cdbdff;border-radius:8px;color:#5b2cf4;cursor:pointer;display:flex;flex-shrink:0;height:2rem;justify-content:center;transition:background-color .2s ease;width:2rem}.GuidelineCartHeader-module_addButton__1iHPU:hover{background-color:#f9f7ff}.GuidelineCartHeader-module_icon__g7Bsq{height:1rem;width:1rem}");export{r as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineCartHeader.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineCartHeader.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as t,jsxs as l}from"react/jsx-runtime";import{Eye as i,X as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t,jsxs as l}from"react/jsx-runtime";import{Eye as i,X as o}from"lucide-react";import{getGuidelineId as n,getGuidelineTitle as c,getGuidelineDisplayDescription as s,getGuidelineDate as r,cx as a}from"../utils.js";import{GuidelineIconButton as m}from"./GuidelineIconButton.js";import{GuidelineSelectButton as d}from"./GuidelineSelectButton.js";import u from"./GuidelineCartItem.module.css.js";function v(v){var I=v.guideline,p=v.isSelected,h=v.onToggle,N=v.onPreview,f=v.onRemove,y=v.hideDeleteButton,w=void 0!==y&&y,R=v.classNames,C=v.styles,j=v.formatAddedOnLabel,k=n(I),B=c(I),D=s(I),T=j(r(I));return t("div",e({className:a(u.cartItem,null==R?void 0:R.cartItem),style:null==C?void 0:C.cartItem},{children:l("div",e({className:u.wrapper},{children:[t(d,{isSelected:p,onClick:function(){return h(k)},classNames:R,styles:C}),l("div",e({className:a(u.content,null==R?void 0:R.cartItemContent),style:null==C?void 0:C.cartItemContent},{children:[l("div",e({className:a(u.titleRow,null==R?void 0:R.cartItemTitleRow),style:null==C?void 0:C.cartItemTitleRow},{children:[t("h3",e({className:a(u.title,null==R?void 0:R.cartItemTitle),style:null==C?void 0:C.cartItemTitle,title:B},{children:B})),l("div",e({className:a(u.actions,null==R?void 0:R.cartItemActions),style:null==C?void 0:C.cartItemActions},{children:[t(m,e({slot:"cartItemPreviewButton",label:"Preview ".concat(B),title:"Preview",onClick:function(){return N(I)},classNames:R,styles:C},{children:t(i,{className:u.icon,strokeWidth:2.2})})),!w&&t(m,e({slot:"cartItemRemoveButton",label:"Remove ".concat(B),title:"Remove",onClick:function(){return f(I)},classNames:R,styles:C},{children:t(o,{className:u.icon,strokeWidth:2.2})}))]}))]})),t("p",e({className:a(u.description,null==R?void 0:R.cartItemDescription),style:null==C?void 0:C.cartItemDescription,title:D},{children:D})),T&&t("p",e({className:a(u.date,null==R?void 0:R.cartItemDate),style:null==C?void 0:C.cartItemDate,title:T},{children:T}))]}))]}))}))}export{v as GuidelineCartItem};
|
|
2
2
|
//# sourceMappingURL=GuidelineCartItem.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var t={cartItem:"GuidelineCartItem-module_cartItem__3mlQh",wrapper:"GuidelineCartItem-module_wrapper__fiSrp",content:"GuidelineCartItem-module_content__l-zkK",titleRow:"GuidelineCartItem-module_titleRow__8xiWB",title:"GuidelineCartItem-module_title__0rWh-",actions:"GuidelineCartItem-module_actions__LKBeM",icon:"GuidelineCartItem-module_icon__oDL8d",description:"GuidelineCartItem-module_description__fAOou",date:"GuidelineCartItem-module_date__3boGz"};e(".GuidelineCartItem-module_cartItem__3mlQh{background-color:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 1px 2px #1018280a;padding:1rem}.GuidelineCartItem-module_wrapper__fiSrp{align-items:flex-start;display:flex;gap:.75rem}.GuidelineCartItem-module_content__l-zkK{flex:1;min-width:0}.GuidelineCartItem-module_titleRow__8xiWB{align-items:flex-start;display:flex;gap:.75rem;justify-content:space-between;min-width:0}.GuidelineCartItem-module_title__0rWh-{color:#1f2937;font-size:15px;font-weight:600;line-height:1.25rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GuidelineCartItem-module_actions__LKBeM{align-items:center;color:#64748b;display:flex;flex-shrink:0;gap:.5rem}.GuidelineCartItem-module_icon__oDL8d{height:1rem;width:1rem}.GuidelineCartItem-module_description__fAOou{color:#344054;font-size:13px;line-height:1.25rem;margin-top:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GuidelineCartItem-module_date__3boGz{color:#475467;font-size:12px;line-height:1rem;margin-top:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}");export{t as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineCartItem.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineCartItem.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as o}from"tslib";import{jsx as i,jsxs as
|
|
1
|
+
import{__assign as o}from"tslib";import{jsx as i,jsxs as n}from"react/jsx-runtime";import{useRef as l,useEffect as e}from"react";import{cx as t}from"../utils.js";import r from"./GuidelineConfirmDialog.module.css.js";function a(a){var c=a.open,d=a.onClose,s=a.onConfirm,m=a.title,u=a.description,f=a.confirmLabel,v=void 0===f?"Confirm":f,g=a.cancelLabel,D=void 0===g?"Cancel":g,y=a.variant,p=void 0===y?"default":y,C=a.loading,b=void 0!==C&&C,h=a.classNames,B=a.styles,N=l(null);return e(function(){if(c){var o=function(o){"Escape"!==o.key||b||d()};return document.addEventListener("keydown",o),function(){return document.removeEventListener("keydown",o)}}},[c,d,b]),c?i("div",o({className:t(r.overlay,null==h?void 0:h.confirmDialogOverlay),style:null==B?void 0:B.confirmDialogOverlay,onClick:function(o){o.target!==o.currentTarget||b||d()}},{children:n("div",o({ref:N,role:"dialog","aria-modal":"true",className:t(r.dialog,null==h?void 0:h.confirmDialog),style:null==B?void 0:B.confirmDialog},{children:[i("h3",o({className:t(r.title,null==h?void 0:h.confirmDialogTitle),style:null==B?void 0:B.confirmDialogTitle},{children:m})),i("p",o({className:t(r.description,null==h?void 0:h.confirmDialogDescription),style:null==B?void 0:B.confirmDialogDescription},{children:u})),n("div",o({className:t(r.actions,null==h?void 0:h.confirmDialogActions),style:null==B?void 0:B.confirmDialogActions},{children:[i("button",o({type:"button",onClick:d,disabled:b,className:t(r.cancelButton,null==h?void 0:h.confirmDialogCancelButton),style:null==B?void 0:B.confirmDialogCancelButton},{children:D})),i("button",o({type:"button",onClick:s,disabled:b,className:t(r.confirmButton,"danger"===p?r.confirmButtonDanger:r.confirmButtonDefault,null==h?void 0:h.confirmDialogConfirmButton),style:null==B?void 0:B.confirmDialogConfirmButton},{children:b?"Processing...":v}))]}))]}))})):null}export{a as GuidelineConfirmDialog};
|
|
2
2
|
//# sourceMappingURL=GuidelineConfirmDialog.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"../../../node_modules/style-inject/dist/style-inject.es.js";var i={overlay:"GuidelineConfirmDialog-module_overlay__RFfxB",dialog:"GuidelineConfirmDialog-module_dialog__-Lm15",title:"GuidelineConfirmDialog-module_title__X9Ros",description:"GuidelineConfirmDialog-module_description__yJBd5",actions:"GuidelineConfirmDialog-module_actions__BK-si",cancelButton:"GuidelineConfirmDialog-module_cancelButton__PJQwG",confirmButton:"GuidelineConfirmDialog-module_confirmButton__54zRt",confirmButtonDefault:"GuidelineConfirmDialog-module_confirmButtonDefault__uzghk",confirmButtonDanger:"GuidelineConfirmDialog-module_confirmButtonDanger__qF9rX"};o(".GuidelineConfirmDialog-module_overlay__RFfxB{align-items:center;background-color:#0006;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:9999}.GuidelineConfirmDialog-module_dialog__-Lm15{background-color:#fff;border-radius:12px;box-shadow:0 8px 30px #0000001f;max-width:420px;padding:1.5rem;width:100%}.GuidelineConfirmDialog-module_title__X9Ros{color:#1f2937;font-size:16px;font-weight:600;line-height:1.5rem}.GuidelineConfirmDialog-module_description__yJBd5{color:#667085;font-size:14px;line-height:1.25rem;margin-top:.5rem}.GuidelineConfirmDialog-module_actions__BK-si{align-items:center;display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.5rem}.GuidelineConfirmDialog-module_cancelButton__PJQwG{background-color:#fff;border:1px solid #d0d5dd;border-radius:6px;color:#344054;cursor:pointer;font-size:14px;font-weight:600;height:2.5rem;padding:0 1rem;transition:background-color .2s ease}.GuidelineConfirmDialog-module_cancelButton__PJQwG:hover{background-color:#f9fafb}.GuidelineConfirmDialog-module_cancelButton__PJQwG:disabled{cursor:not-allowed;opacity:.5}.GuidelineConfirmDialog-module_confirmButton__54zRt{border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;height:2.5rem;padding:0 1rem;transition:background-color .2s ease}.GuidelineConfirmDialog-module_confirmButton__54zRt:disabled{cursor:not-allowed;opacity:.5}.GuidelineConfirmDialog-module_confirmButtonDefault__uzghk{background-color:#5b2cf4}.GuidelineConfirmDialog-module_confirmButtonDefault__uzghk:hover{background-color:#4c1fe8}.GuidelineConfirmDialog-module_confirmButtonDanger__qF9rX{background-color:#ef4444}.GuidelineConfirmDialog-module_confirmButtonDanger__qF9rX:hover{background-color:#dc2626}");export{i as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineConfirmDialog.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineConfirmDialog.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as i,jsx as l}from"react/jsx-runtime";import{cx as e}from"../utils.js";import r from"./GuidelineEmptyState.module.css.js";function s(s){var o=s.title,c=s.description,m=s.classNames,a=s.styles;return i("div",t({className:e(r.container,null==m?void 0:m.cartEmptyState),style:null==a?void 0:a.cartEmptyState},{children:[l("p",t({className:e(r.title,null==m?void 0:m.cartEmptyTitle),style:null==a?void 0:a.cartEmptyTitle},{children:o})),l("p",t({className:e(r.description,null==m?void 0:m.cartEmptyDescription),style:null==a?void 0:a.cartEmptyDescription},{children:c}))]}))}export{s as GuidelineEmptyState};
|
|
2
2
|
//# sourceMappingURL=GuidelineEmptyState.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var t={container:"GuidelineEmptyState-module_container__cYFH0",title:"GuidelineEmptyState-module_title__rRsyR",description:"GuidelineEmptyState-module_description__yY7Z6"};e(".GuidelineEmptyState-module_container__cYFH0{align-items:center;background-color:#ffffffb3;border:1px dashed #cdbdff;border-radius:8px;display:flex;flex-direction:column;height:100%;justify-content:center;min-height:260px;padding:0 1.25rem;text-align:center}.GuidelineEmptyState-module_title__rRsyR{color:#344054;font-size:14px;font-weight:600}.GuidelineEmptyState-module_description__yY7Z6{color:#667085;font-size:13px;line-height:1.25rem;margin-top:.25rem}");export{t as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineEmptyState.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineEmptyState.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as l}from"tslib";import{jsx as e,jsxs as n}from"react/jsx-runtime";import{useEffect as i}from"react";import{X as t,Check as o}from"lucide-react";import{cx as a}from"../utils.js";import r from"./GuidelineFilterPanel.module.css.js";function s(s){var c=s.open,d=s.onClose,u=s.sections,v=s.title,p=void 0===v?"Filters":v,f=s.applyLabel,m=void 0===f?"Apply Filters":f,h=s.cancelLabel,y=void 0===h?"Cancel":h,b=s.closeAriaLabel,P=void 0===b?"Close filters":b,N=s.onApply,k=s.onCancel,C=s.disableActions,B=void 0!==C&&C,L=s.classNames,x=s.styles;return i(function(){if(c){var l=function(l){"Escape"===l.key&&d()};return document.addEventListener("keydown",l),function(){return document.removeEventListener("keydown",l)}}},[c,d]),c?e("div",l({className:a(r.overlay,null==L?void 0:L.filterPanelOverlay),style:null==x?void 0:x.filterPanelOverlay,role:"presentation",onClick:d},{children:n("aside",l({role:"dialog","aria-modal":"true","aria-label":p,className:a(r.panel,null==L?void 0:L.filterPanel),style:null==x?void 0:x.filterPanel,onClick:function(l){return l.stopPropagation()}},{children:[n("div",l({className:a(r.header,null==L?void 0:L.filterPanelHeader),style:null==x?void 0:x.filterPanelHeader},{children:[e("h2",l({className:a(r.title,null==L?void 0:L.filterPanelTitle),style:null==x?void 0:x.filterPanelTitle},{children:p})),e("button",l({type:"button",onClick:d,"aria-label":P,className:a(r.closeButton,null==L?void 0:L.filterPanelCloseButton),style:null==x?void 0:x.filterPanelCloseButton},{children:e(t,{className:r.closeIcon})}))]})),e("div",l({className:a(r.body,null==L?void 0:L.filterPanelBody),style:null==x?void 0:x.filterPanelBody},{children:e("div",l({className:r.sectionsWrapper},{children:u.map(function(i){return n("section",l({className:a(r.section,null==L?void 0:L.filterPanelSection),style:null==x?void 0:x.filterPanelSection},{children:[e("h3",l({className:a(r.sectionTitle,null==L?void 0:L.filterPanelSectionTitle),style:null==x?void 0:x.filterPanelSectionTitle},{children:i.title})),e("div",l({className:r.optionsWrapper},{children:i.options.map(function(t){var s=!0===i.singleSelect;return n("label",l({className:a(r.optionLabel,t.disabled?r.disabled:"",null==L?void 0:L.filterPanelOption),style:null==x?void 0:x.filterPanelOption},{children:[e("input",{type:"checkbox",checked:t.checked,disabled:t.disabled,onChange:function(l){return e=l.target.checked,s&&e&&i.options.forEach(function(l){l.id!==t.id&&l.checked&&l.onChange(!1)}),void t.onChange(e);var e},className:r.checkbox}),e("span",l({"aria-hidden":"true",className:a(r.checkboxVisual,null==L?void 0:L.filterPanelCheckbox),style:null==x?void 0:x.filterPanelCheckbox},{children:e(o,{className:r.checkIcon,strokeWidth:3.2})})),e("span",l({className:a(r.optionLabelText,null==L?void 0:L.filterPanelOptionLabel),style:null==x?void 0:x.filterPanelOptionLabel},{children:t.label}))]}),t.id)})}))]}),i.id)})}))})),n("div",l({className:a(r.actions,null==L?void 0:L.filterPanelActions),style:null==x?void 0:x.filterPanelActions},{children:[e("button",l({type:"button",onClick:null!=k?k:d,disabled:B,className:a(r.cancelButton,null==L?void 0:L.filterPanelCancelButton),style:null==x?void 0:x.filterPanelCancelButton},{children:y})),e("button",l({type:"button",onClick:N,disabled:B,className:a(r.applyButton,null==L?void 0:L.filterPanelApplyButton),style:null==x?void 0:x.filterPanelApplyButton},{children:m}))]}))]}))})):null}export{s as GuidelineFilterPanel};
|
|
2
2
|
//# sourceMappingURL=GuidelineFilterPanel.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var l={overlay:"GuidelineFilterPanel-module_overlay__BBlvL",panel:"GuidelineFilterPanel-module_panel__ovZAl",header:"GuidelineFilterPanel-module_header__w24l2",title:"GuidelineFilterPanel-module_title__2R42X",closeButton:"GuidelineFilterPanel-module_closeButton__mCdoL",closeIcon:"GuidelineFilterPanel-module_closeIcon__wlUTf",body:"GuidelineFilterPanel-module_body__jGtsH",sectionsWrapper:"GuidelineFilterPanel-module_sectionsWrapper__6e073",section:"GuidelineFilterPanel-module_section__mueva",sectionTitle:"GuidelineFilterPanel-module_sectionTitle__DFdnj",optionsWrapper:"GuidelineFilterPanel-module_optionsWrapper__Tenp2",optionLabel:"GuidelineFilterPanel-module_optionLabel__3vXnf",disabled:"GuidelineFilterPanel-module_disabled__H4Rzn",checkbox:"GuidelineFilterPanel-module_checkbox__4UOh3",checkboxVisual:"GuidelineFilterPanel-module_checkboxVisual__JY5-N",checkIcon:"GuidelineFilterPanel-module_checkIcon__9dscS",optionLabelText:"GuidelineFilterPanel-module_optionLabelText__mnUXP",actions:"GuidelineFilterPanel-module_actions__-bqvr",cancelButton:"GuidelineFilterPanel-module_cancelButton__O7lc1",applyButton:"GuidelineFilterPanel-module_applyButton__-abtz"};e(".GuidelineFilterPanel-module_overlay__BBlvL{background-color:#0000001a;bottom:0;left:0;position:fixed;right:0;top:0;z-index:9999}.GuidelineFilterPanel-module_panel__ovZAl{background-color:#fff;box-shadow:-12px 0 32px #1018281f;display:flex;flex-direction:column;height:100%;margin-left:auto;max-width:336px;width:100%}.GuidelineFilterPanel-module_header__w24l2{align-items:center;border-bottom:1px solid #eaecf0;display:flex;justify-content:space-between;padding:1.25rem 1.5rem}.GuidelineFilterPanel-module_title__2R42X{color:#344054;font-size:18px;font-weight:600;line-height:1.75rem}.GuidelineFilterPanel-module_closeButton__mCdoL{align-items:center;background-color:initial;border:none;border-radius:50%;color:#667085;cursor:pointer;display:inline-flex;height:2rem;justify-content:center;transition:background-color .2s ease,color .2s ease;width:2rem}.GuidelineFilterPanel-module_closeButton__mCdoL:hover{background-color:#f2f4f7;color:#344054}.GuidelineFilterPanel-module_closeIcon__wlUTf{height:1.25rem;width:1.25rem}.GuidelineFilterPanel-module_body__jGtsH{flex:1;overflow-y:auto;padding:1.5rem}.GuidelineFilterPanel-module_sectionsWrapper__6e073{display:flex;flex-direction:column;gap:2rem}.GuidelineFilterPanel-module_section__mueva{display:flex;flex-direction:column;gap:1rem}.GuidelineFilterPanel-module_sectionTitle__DFdnj{color:#344054;font-size:14px;font-weight:600;line-height:1.5rem}.GuidelineFilterPanel-module_optionsWrapper__Tenp2{display:flex;flex-direction:column;gap:.75rem}.GuidelineFilterPanel-module_optionLabel__3vXnf{align-items:center;color:#344054;cursor:pointer;display:flex;font-size:15px;gap:.75rem;line-height:1.75rem}.GuidelineFilterPanel-module_optionLabel__3vXnf.GuidelineFilterPanel-module_disabled__H4Rzn{cursor:not-allowed;opacity:.5}.GuidelineFilterPanel-module_checkbox__4UOh3{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.GuidelineFilterPanel-module_checkboxVisual__JY5-N{align-items:center;background-color:#fff;border:1px solid #cbd5e1;border-radius:5px;color:#0000;display:flex;flex-shrink:0;height:1.25rem;justify-content:center;margin-top:.25rem;transition:all .2s ease;width:1.25rem}.GuidelineFilterPanel-module_checkbox__4UOh3:checked+.GuidelineFilterPanel-module_checkboxVisual__JY5-N{background-color:#5b2cf4;border-color:#5b2cf4;color:#fff}.GuidelineFilterPanel-module_checkbox__4UOh3:not(:checked):hover+.GuidelineFilterPanel-module_checkboxVisual__JY5-N{border-color:#8b5cf6}.GuidelineFilterPanel-module_checkbox__4UOh3:disabled+.GuidelineFilterPanel-module_checkboxVisual__JY5-N{opacity:.5}.GuidelineFilterPanel-module_checkIcon__9dscS{height:.875rem;width:.875rem}.GuidelineFilterPanel-module_optionLabelText__mnUXP{flex:1;min-width:0}.GuidelineFilterPanel-module_actions__-bqvr{align-items:center;border-top:1px solid #eaecf0;display:flex;gap:.75rem;justify-content:flex-end;padding:1rem 1.5rem}.GuidelineFilterPanel-module_cancelButton__O7lc1{background-color:#fff;border:1px solid #d0d5dd;border-radius:8px;color:#344054;cursor:pointer;font-size:15px;font-weight:500;height:2.75rem;padding:0 1.25rem;transition:background-color .2s ease}.GuidelineFilterPanel-module_cancelButton__O7lc1:hover{background-color:#f9fafb}.GuidelineFilterPanel-module_cancelButton__O7lc1:disabled{cursor:not-allowed;opacity:.5}.GuidelineFilterPanel-module_applyButton__-abtz{background-color:#6d5bff;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:15px;font-weight:500;height:2.75rem;padding:0 1.25rem;transition:background-color .2s ease}.GuidelineFilterPanel-module_applyButton__-abtz:hover{background-color:#5b4be6}.GuidelineFilterPanel-module_applyButton__-abtz:disabled{cursor:not-allowed;opacity:.5}");export{l as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineFilterPanel.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineFilterPanel.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as o,jsx as t}from"react/jsx-runtime";import{ArrowLeft as l,Home as a,ChevronRight as n,X as c}from"lucide-react";import{cx as r}from"../utils.js";import s from"./GuidelineHeader.module.css.js";var i=function(i){var m=i.breadcrumbItems,u=i.onBack,d=i.onHome,b=i.onClose,h=i.className,k=i.showBackButton,p=i.showHomeIcon,v=void 0===p||p,N=i.classNames,B=i.styles,f=null!=k?k:!!(u&&m.length>1),C=Boolean(d||f&&u);return o("div",e({className:r(s.headerRoot,null==N?void 0:N.headerRoot,h),style:null==B?void 0:B.headerRoot},{children:[o("div",e({className:s.breadcrumbWrapper},{children:[f&&u&&t("button",e({type:"button",onClick:u,className:r(s.backButton,null==N?void 0:N.backButton),"aria-label":"Back",title:"Back"},{children:t(l,{className:s.backIcon,strokeWidth:2.4})})),v&&t("button",e({type:"button",onClick:C?function(){d?d():f&&(null==u||u())}:void 0,className:r(s.homeButton,C?s.clickable:s.notClickable,null==N?void 0:N.homeButton),"aria-label":"Home",title:"Home"},{children:t(a,{className:s.homeIcon,strokeWidth:2})})),m.map(function(l,a){var c=a===m.length-1,i=v||a>0;return o("div",e({className:r(s.breadcrumbItem,null==N?void 0:N.breadcrumbItem)},{children:[i&&t(n,{className:s.chevronIcon,strokeWidth:2}),t("span",e({className:r(s.breadcrumbSpan,c?s.breadcrumbSpanLast:s.breadcrumbSpanPrev),onClick:function(){c||null==u||u()}},{children:l}))]}),"".concat(l,"-").concat(a))})]})),b&&t("button",e({type:"button",onClick:b,className:r(s.closeButton,null==N?void 0:N.closeButton),"aria-label":"Close guidelines",title:"Close"},{children:t(c,{className:s.closeIcon,strokeWidth:2.2})}))]}))};export{i as GuidelineHeader};
|
|
2
2
|
//# sourceMappingURL=GuidelineHeader.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var r={headerRoot:"GuidelineHeader-module_headerRoot__TxRah",breadcrumbWrapper:"GuidelineHeader-module_breadcrumbWrapper__OAX7j",backButton:"GuidelineHeader-module_backButton__-OaTK",backIcon:"GuidelineHeader-module_backIcon__qcIm9",homeButton:"GuidelineHeader-module_homeButton__EpeuA",clickable:"GuidelineHeader-module_clickable__jtKSG",notClickable:"GuidelineHeader-module_notClickable__3OSw9",homeIcon:"GuidelineHeader-module_homeIcon__J6bnW",breadcrumbItem:"GuidelineHeader-module_breadcrumbItem__q5bi8",chevronIcon:"GuidelineHeader-module_chevronIcon__F5T4l",breadcrumbSpan:"GuidelineHeader-module_breadcrumbSpan__EZVmf",breadcrumbSpanLast:"GuidelineHeader-module_breadcrumbSpanLast__e700Z",breadcrumbSpanPrev:"GuidelineHeader-module_breadcrumbSpanPrev__EYURq",closeButton:"GuidelineHeader-module_closeButton__gRctX",closeIcon:"GuidelineHeader-module_closeIcon__E7TiC"};e(".GuidelineHeader-module_headerRoot__TxRah{align-items:center;border-bottom:1px solid #eaecf0;display:flex;height:76px;justify-content:space-between;padding:0 2.25rem}.GuidelineHeader-module_breadcrumbWrapper__OAX7j{align-items:center;color:#1f2937;display:flex;font-size:15px;font-weight:600;gap:.5rem;min-width:0}.GuidelineHeader-module_backButton__-OaTK{align-items:center;background-color:initial;border:none;border-radius:8px;color:#111827;cursor:pointer;display:inline-flex;flex-shrink:0;height:2.25rem;justify-content:center;transition:background-color .2s ease;width:2.25rem}.GuidelineHeader-module_backButton__-OaTK:hover{background-color:#f2f4f7}.GuidelineHeader-module_backIcon__qcIm9{height:1.25rem;width:1.25rem}.GuidelineHeader-module_homeButton__EpeuA{align-items:center;background-color:initial;border:none;border-radius:8px;display:inline-flex;flex-shrink:0;height:2.25rem;justify-content:center;width:2.25rem}.GuidelineHeader-module_homeButton__EpeuA.GuidelineHeader-module_clickable__jtKSG{cursor:pointer}.GuidelineHeader-module_homeButton__EpeuA.GuidelineHeader-module_clickable__jtKSG:hover{background-color:#f2f4f7}.GuidelineHeader-module_homeButton__EpeuA.GuidelineHeader-module_notClickable__3OSw9{cursor:default}.GuidelineHeader-module_homeIcon__J6bnW{color:#8ca0b8;flex-shrink:0;height:1.25rem;width:1.25rem}.GuidelineHeader-module_breadcrumbItem__q5bi8{align-items:center;display:flex;gap:.5rem;min-width:0}.GuidelineHeader-module_chevronIcon__F5T4l{color:#8ca0b8;flex-shrink:0;height:1rem;width:1rem}.GuidelineHeader-module_breadcrumbSpan__EZVmf{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GuidelineHeader-module_breadcrumbSpanLast__e700Z{color:#1f2937}.GuidelineHeader-module_breadcrumbSpanPrev__EYURq{color:#6b7280;cursor:pointer}.GuidelineHeader-module_breadcrumbSpanPrev__EYURq:hover{color:#1f2937}.GuidelineHeader-module_closeButton__gRctX{align-items:center;background-color:#fff;border:1px solid #cbd5e1;border-radius:8px;color:#111827;cursor:pointer;display:inline-flex;height:2.5rem;justify-content:center;transition:background-color .2s ease;width:2.5rem}.GuidelineHeader-module_closeButton__gRctX:hover{background-color:#f8fafc}.GuidelineHeader-module_closeIcon__E7TiC{height:1.25rem;width:1.25rem}");export{r as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineHeader.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineHeader.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as l}from"react/jsx-runtime";import{forwardRef as o}from"react";import{cx as r}from"../utils.js";import e from"./GuidelineIconButton.module.css.js";var i=o(function(o,i){var s=o.label,n=o.title,m=o.onClick,a=o.children,u=o.slot,c=o.classNames,f=o.styles,p=o.className;return l("button",t({ref:i,type:"button",onClick:m,className:r(e.button,p,null==c?void 0:c[u]),style:null==f?void 0:f[u],"aria-label":s,title:null!=n?n:s},{children:a}))});export{i as GuidelineIconButton};
|
|
2
2
|
//# sourceMappingURL=GuidelineIconButton.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"../../../node_modules/style-inject/dist/style-inject.es.js";var e={button:"GuidelineIconButton-module_button__ozA6F"};o(".GuidelineIconButton-module_button__ozA6F{align-items:center;background-color:initial;border:none;border-radius:4px;color:#667085;cursor:pointer;display:flex;height:1.5rem;justify-content:center;transition:background-color .2s ease,color .2s ease;width:1.5rem}.GuidelineIconButton-module_button__ozA6F:hover{background-color:#f2f4f7;color:#344054}");export{e as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineIconButton.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineIconButton.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as n,__awaiter as
|
|
1
|
+
import{__assign as e,__spreadArray as n,__awaiter as l,__generator as i}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as d,useEffect as a}from"react";import{CircleHelp as r,ArrowLeft as s,Plus as u,Check as c}from"lucide-react";import{mergeGuidelineLabels as g,getGuidelineId as p,cx as b,defaultFormatAddedOnLabel as m,isInstantLearningGuideline as h,getGuidelineTitle as f,getAppIntegrationId as v}from"../utils.js";import I from"./GuidelineLandingPage.module.css.js";import{useGuidelineSelection as y}from"../hooks/useGuidelineSelection.js";import{useControllableState as G}from"../hooks/useControllableState.js";import{GuidelineCart as L}from"./GuidelineCart.js";import{GuidelineFilterPanel as C}from"./GuidelineFilterPanel.js";import{GuidelineLibrary as T}from"./GuidelineLibrary.js";import{GuidelineTooltip as k}from"./GuidelineTooltip.js";import{LearningManagementWrapper as B}from"./LearningManagementWrapper.js";import{registerGuidelinePreviewRequest as N}from"../workspace/workspace.runtime.js";var D="Test Knowledgebase";function S(S){var A,w=this,P=S.guidelines,R=S.cartGuidelines,W=S.recentGuidelines,U=S.selectedGuidelineIds,j=S.defaultSelectedGuidelineIds,x=S.cartGuidelineIds,E=S.defaultCartGuidelineIds,O=S.guidelineSections,M=S.onSelectedGuidelineIdsChange,V=S.onCartGuidelineIdsChange,F=S.onToggleGuideline,H=S.onPreviewGuideline,K=S.onRemoveGuideline,q=S.onProceed,z=S.onAddGuideline,J=S.addGuidelineButtons,Q=S.onDebugInfoClick,X=S.hideDeleteButton,Y=S.className,Z=S.classNames,$=S.styles,_=S.customIcons,ee=S.subTitleLayout,ne=S.labels,le=S.formatAddedOnLabel,ie=void 0===le?m:le,te=S.initialVisibleCount,oe=S.showRecentlyUsedTab,de=S.onEditGuideline,ae=S.onDuplicateGuideline,re=S.onDeleteGuideline,se=S.hideEditOption,ue=S.hideDuplicateOption,ce=S.hideDeleteOption,ge=S.instantLearning,pe=S.onExploreILGuideline,be=S.onProceedSelectedIL,me=S.transformSelectedToILData,he=S.fetchILRBACConfig,fe=S.onTabSelection,ve=S.searchProps,Ie=S.treeSearchProps,ye=S.filterProps,Ge=S.filterPanelProps,Le=S.showDashboardButton,Ce=void 0!==Le&&Le,Te=S.onDashboardClick,ke=S.isLoading,Be=S.fetchWishlistStatus,Ne=S.onWishlistToggle,De=S.treeSidebarProps,Se=S.isILMarketplace,Ae=void 0!==Se&&Se;S.handleViewButtonCallback;var we=g(ne),Pe=null!==(A=null==ge?void 0:ge.maxCartItems)&&void 0!==A?A:1,Re=d(null),We=Re[0],Ue=Re[1],je=y({guidelines:P,selectedGuidelineIds:U,defaultSelectedGuidelineIds:j,onSelectedGuidelineIdsChange:M}),xe=je.selectedIds,Ee=je.toggleGuideline,Oe=je.setSelectedIds,Me=G({value:x,defaultValue:null!=E?E:[],onChange:V}),Ve=Me[0],Fe=Me[1],He=null!=R?R:P,Ke=He.filter(function(e){return xe.includes(p(e))&&Ve.includes(p(e))}),qe=function(e){var l=Ve.includes(e),i=P.find(function(n){return p(n)===e});return l?(Fe(function(n){return n.filter(function(n){return n!==e})}),Oe(function(n){return n.filter(function(n){return n!==e})}),void(i&&K(i))):i&&h(i)&&1===Pe?(Fe([e]),Oe([e]),void(null==F||F(e,[e]))):(Fe(function(l){return i&&h(i)&&Pe>0&&l.length>=Pe?l:n(n([],l,!0),[e],!1)}),void Oe(function(l){var i=l.includes(e)?l:n(n([],l,!0),[e],!1);return null==F||F(e,i),i}))},ze=function(e){Ue(e),null==pe||pe(e)},Je=function(e){h(e)?ze(e):H(e)};a(function(){return N(function(e){Je(e)}),function(){N(null)}},[Je]);return t("div",e({className:b("lsc-guidelines",I.landingRoot,null==Z?void 0:Z.landingRoot,Y),style:null==$?void 0:$.landingRoot},{children:[t("main",e({className:b(I.landingContent,null==Z?void 0:Z.landingContent),style:null==$?void 0:$.landingContent},{children:[t("div",e({className:b(I.landingIntroRow,null==Z?void 0:Z.landingIntroRow),style:null==$?void 0:$.landingIntroRow},{children:[t("div",e({className:b(I.landingIntro,null==Z?void 0:Z.landingIntro),style:null==$?void 0:$.landingIntro},{children:[o("h1",e({className:b(I.landingTitle,null==Z?void 0:Z.landingTitle),style:null==$?void 0:$.landingTitle},{children:we.landingTitle})),o("p",e({className:b(I.landingDescription,null==Z?void 0:Z.landingDescription),style:null==$?void 0:$.landingDescription},{children:we.landingDescription})),o(k,e({content:we.landingDebugTooltipContent,side:"right",maxWidth:400},{children:t("button",e({type:"button",onClick:Q,className:b(I.debugButton,null==Z?void 0:Z.landingDebugLink),style:null==$?void 0:$.landingDebugLink},{children:[o("span",{children:we.landingDebugLabel}),o(r,{className:b(I.debugIcon,null==Z?void 0:Z.landingDebugIcon),style:null==$?void 0:$.landingDebugIcon,strokeWidth:2})]}))}))]})),J&&J.length>0?o("div",e({className:b(I.addButtonGroup,null==Z?void 0:Z.landingTopAddButtonGroup),style:null==$?void 0:$.landingTopAddButtonGroup,"data-testid":"lsc-add-guideline-button-group"},{children:J.map(function(n,l){var i;return t("button",e({type:"button",onClick:n.onClick,disabled:n.disabled,"data-testid":"lsc-add-guideline-button-".concat(n.id),className:b(I.addButton,0===l?I.addButtonPrimary:I.addButtonSecondary,null==Z?void 0:Z.landingTopAddButton),style:null==$?void 0:$.landingTopAddButton},{children:[null!==(i=n.icon)&&void 0!==i?i:o(u,{className:I.addIcon,strokeWidth:2.4}),o("span",e({className:I.addButtonLabel},{children:n.label}))]}),n.id)})})):z?t("button",e({type:"button",onClick:z,className:b(I.singleAddButton,null==Z?void 0:Z.landingTopAddButton),style:null==$?void 0:$.landingTopAddButton},{children:[o(u,{className:I.singleAddIcon,strokeWidth:2.4}),o("span",e({className:I.singleAddLabel},{children:we.landingAddGuidelineLabel}))]})):null]})),t("div",e({className:b(I.landingBody,Ae&&I.landingBodyFullWidth,null==Z?void 0:Z.landingBody),style:null==$?void 0:$.landingBody},{children:[We?function(){var n,l;if(!We)return null;var i=f(We),d=v(We,null==ge?void 0:ge.modeId);p(We);var a,r,g=(a=p(We),r=Ve.includes(a),t("button",e({type:"button",onClick:function(){return qe(a)},className:b(I.toggleCartButton,r?I.toggleCartButtonAdded:I.toggleCartButtonNotAdded)},{children:[o(r?c:u,{className:I.toggleCartIcon,strokeWidth:2.6}),o("span",e({className:I.toggleCartLabel},{children:r?we.libraryAddedToCart:we.libraryAddToCart}))]})));return(null==ge?void 0:ge.userDetails)&&ge.baseUrl&&ge.baseWebsocketUrl&&ge.token&&ge.assistantName&&ge.appsecRbacUrl&&ge.appsecBaseUrl&&he?o(B,{userDetails:ge.userDetails,baseUrl:ge.baseUrl,baseWebsocketUrl:ge.baseWebsocketUrl,token:ge.token,assistantName:ge.assistantName,appsecRbacUrl:null!==(n=ge.appsecGranularRbacUrl)&&void 0!==n?n:"",appsecBaseUrl:null!==(l=ge.appsecGranularBaseUrl)&&void 0!==l?l:"",appIntegrationId:d,modeId:ge.modeId,guidelineTitle:i,onBack:function(){return Ue(null)},fetchILRBACConfig:he,headerActions:g}):o("div",e({className:I.exploreILContent},{children:t("div",e({className:I.exploreILHeader},{children:[t("button",e({type:"button",onClick:function(){return Ue(null)},className:I.backButton},{children:[o(s,{className:I.backIcon,strokeWidth:2}),o("span",{children:"Back"})]})),o("p",e({className:I.exploreILTitle},{children:i})),g]}))}))}():o(T,{guidelines:P,recentGuidelines:W,guidelineSections:O,cartGuidelineIds:Ve,savedTabLabel:we.savedTabLabel,recentTabLabel:we.recentTabLabel,emptyTitle:we.libraryEmptyTitle,emptyDescription:we.libraryEmptyDescription,addToCartLabel:we.libraryAddToCart,addedToCartLabel:we.libraryAddedToCart,selectLabel:Ae?D:we.librarySelect,selectedLabel:Ae?D:we.librarySelected,exploreLabel:we.libraryExplore,showMoreLabel:we.libraryShowMore,showLessLabel:we.libraryShowLess,initialVisibleCount:te,showRecentlyUsedTab:oe,onToggleGuideline:qe,onPreviewGuideline:H,onExploreILGuideline:ze,classNames:Z,styles:$,customIcons:_,subTitleLayout:ee,onTabSelection:fe,formatAddedOnLabel:ie,onEditGuideline:de,onDuplicateGuideline:ae,onDeleteGuideline:re,hideEditOption:se,hideDuplicateOption:ue,hideDeleteOption:ce,searchProps:ve,treeSearchProps:Ie,filterProps:ye,showDashboardButton:Ce&&!Ae,onDashboardClick:Te,isLoading:ke,instantLearning:ge,fetchWishlistStatus:Be,onWishlistToggle:Ne,treeSidebarProps:De,isILMarketplace:Ae}),!Ae&&o(L,{guidelines:He,cartGuidelineIds:Ve,selectedGuidelineIds:xe,onToggleGuideline:Ee,onPreviewGuideline:Je,onRemoveGuideline:function(e){var n=p(e);Fe(function(e){return e.filter(function(e){return e!==n})}),Oe(function(e){return e.filter(function(e){return e!==n})}),K(e)},onProceed:function(){return l(w,void 0,void 0,function(){var e;return i(this,function(n){switch(n.label){case 0:return Ke.some(h)&&be&&me&&(null==ge?void 0:ge.token)?[4,me(Ke,ge.modeId,ge.token)]:[3,2];case 1:return e=n.sent(),be(e),[2];case 2:return q(Ke),[2]}})})},hideDeleteButton:X,classNames:Z,styles:$,labels:ne,formatAddedOnLabel:ie})]}))]})),Ge&&o(C,e({},Ge,{classNames:Z,styles:$}))]}))}export{S as GuidelineLandingPage};
|
|
2
2
|
//# sourceMappingURL=GuidelineLandingPage.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var n={toggleCartButton:"GuidelineLandingPage-module_toggleCartButton__AnxCi",toggleCartButtonAdded:"GuidelineLandingPage-module_toggleCartButtonAdded__1xvlx",toggleCartButtonNotAdded:"GuidelineLandingPage-module_toggleCartButtonNotAdded__6aE9X",toggleCartIcon:"GuidelineLandingPage-module_toggleCartIcon__bqYx8",toggleCartLabel:"GuidelineLandingPage-module_toggleCartLabel__VpmiO",exploreILContent:"GuidelineLandingPage-module_exploreILContent__cyD-W",exploreILHeader:"GuidelineLandingPage-module_exploreILHeader__NRaLs",backButton:"GuidelineLandingPage-module_backButton__YK7DE",backIcon:"GuidelineLandingPage-module_backIcon__MC7rc",exploreILTitle:"GuidelineLandingPage-module_exploreILTitle__DH59Z",addButtonGroup:"GuidelineLandingPage-module_addButtonGroup__7vXMD",addButton:"GuidelineLandingPage-module_addButton__txZVU",addButtonPrimary:"GuidelineLandingPage-module_addButtonPrimary__qGGbn",addButtonSecondary:"GuidelineLandingPage-module_addButtonSecondary__ARibX",addIcon:"GuidelineLandingPage-module_addIcon__LK82C",addButtonLabel:"GuidelineLandingPage-module_addButtonLabel__rKz3s",singleAddButton:"GuidelineLandingPage-module_singleAddButton__tyqor",singleAddIcon:"GuidelineLandingPage-module_singleAddIcon__l3-h6",singleAddLabel:"GuidelineLandingPage-module_singleAddLabel__Ztw6H",landingRoot:"GuidelineLandingPage-module_landingRoot__DaULU",landingContent:"GuidelineLandingPage-module_landingContent__boCdJ",landingIntroRow:"GuidelineLandingPage-module_landingIntroRow__41IYq",landingIntro:"GuidelineLandingPage-module_landingIntro__jtV3D",landingTitle:"GuidelineLandingPage-module_landingTitle__whMuS",landingDescription:"GuidelineLandingPage-module_landingDescription__klClH",debugButton:"GuidelineLandingPage-module_debugButton__FkeQ8",debugIcon:"GuidelineLandingPage-module_debugIcon__S2nK7",landingBody:"GuidelineLandingPage-module_landingBody__DBWAI",landingBodyFullWidth:"GuidelineLandingPage-module_landingBodyFullWidth__ebiUi"};e(".GuidelineLandingPage-module_toggleCartButton__AnxCi{align-items:center;border:1px solid;border-radius:6px;display:inline-flex;font-size:14px;font-weight:600;gap:.5rem;height:2.5rem;justify-content:center;min-width:140px;transition:all .2s ease}.GuidelineLandingPage-module_toggleCartButtonAdded__1xvlx{background-color:#f3efff;border-color:#0000;color:#5b2cf4}.GuidelineLandingPage-module_toggleCartButtonAdded__1xvlx:hover{background-color:#ede5ff}.GuidelineLandingPage-module_toggleCartButtonNotAdded__6aE9X{background-color:#fff;border-color:#8b5cf6;color:#5b2cf4}.GuidelineLandingPage-module_toggleCartButtonNotAdded__6aE9X:hover{background-color:#f8f5ff}.GuidelineLandingPage-module_toggleCartIcon__bqYx8{flex-shrink:0;height:1rem;width:1rem}.GuidelineLandingPage-module_toggleCartLabel__VpmiO{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GuidelineLandingPage-module_exploreILContent__cyD-W{background-color:#fff;border:1px solid #eaecf0;border-radius:8px;display:flex;flex-direction:column;min-height:420px}.GuidelineLandingPage-module_exploreILHeader__NRaLs{align-items:center;border-bottom:1px solid #eaecf0;display:flex;gap:.75rem;padding:.75rem .25rem}.GuidelineLandingPage-module_backButton__YK7DE{align-items:center;background-color:initial;border:none;border-radius:6px;color:#344054;cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;gap:.5rem;padding:.25rem .5rem;transition:background-color .2s ease}.GuidelineLandingPage-module_backButton__YK7DE:hover{background-color:#f9fafb}.GuidelineLandingPage-module_backIcon__MC7rc{height:1rem;width:1rem}.GuidelineLandingPage-module_exploreILTitle__DH59Z{color:#1f2937;flex:1;font-size:14px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GuidelineLandingPage-module_addButtonGroup__7vXMD{align-items:center;display:flex;flex-shrink:0;flex-wrap:wrap;gap:.75rem}@media (min-width:640px){.GuidelineLandingPage-module_addButtonGroup__7vXMD{margin-left:auto}}.GuidelineLandingPage-module_addButton__txZVU{align-items:center;border:none;border-radius:6px;box-shadow:0 1px 2px #10182814;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:15px;font-weight:600;gap:.75rem;height:2.75rem;justify-content:center;min-width:200px;padding:0 1.25rem;transition:all .2s ease}.GuidelineLandingPage-module_addButton__txZVU:disabled{cursor:not-allowed;opacity:.5}.GuidelineLandingPage-module_addButtonPrimary__qGGbn{background-color:#4438f5;color:#fff}.GuidelineLandingPage-module_addButtonPrimary__qGGbn:hover:not(:disabled){background-color:#392de8}.GuidelineLandingPage-module_addButtonSecondary__ARibX{background-color:#fff;border:1px solid #4438f5;color:#4438f5}.GuidelineLandingPage-module_addButtonSecondary__ARibX:hover:not(:disabled){background-color:#f8f5ff}.GuidelineLandingPage-module_addIcon__LK82C{flex-shrink:0;height:1.25rem;width:1.25rem}.GuidelineLandingPage-module_addButtonLabel__rKz3s{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GuidelineLandingPage-module_singleAddButton__tyqor{align-items:center;background-color:#4438f5;border:none;border-radius:6px;box-shadow:0 1px 2px #10182814;color:#fff;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:15px;font-weight:600;gap:.75rem;height:2.75rem;justify-content:center;min-width:210px;padding:0 1.25rem;transition:background-color .2s ease}@media (min-width:640px){.GuidelineLandingPage-module_singleAddButton__tyqor{margin-left:auto}}.GuidelineLandingPage-module_singleAddButton__tyqor:hover{background-color:#392de8}.GuidelineLandingPage-module_singleAddIcon__l3-h6{flex-shrink:0;height:1.25rem;width:1.25rem}.GuidelineLandingPage-module_singleAddLabel__Ztw6H{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GuidelineLandingPage-module_landingRoot__DaULU{background-color:#fff;font-family:Inter;height:100%;width:100%}.GuidelineLandingPage-module_landingContent__boCdJ{height:100%;overflow:auto;padding:2.5rem}.GuidelineLandingPage-module_landingIntroRow__41IYq{display:flex;flex-direction:column;gap:1.5rem}@media (min-width:640px){.GuidelineLandingPage-module_landingIntroRow__41IYq{align-items:flex-start;flex-direction:row;justify-content:space-between}}.GuidelineLandingPage-module_landingIntro__jtV3D{flex:1;min-width:0}.GuidelineLandingPage-module_landingTitle__whMuS{color:#6d35f2;font-size:30px;font-weight:700;line-height:38px}.GuidelineLandingPage-module_landingDescription__klClH{color:#1f2937;font-size:19px;line-height:1.75rem;margin-top:.5rem}.GuidelineLandingPage-module_debugButton__FkeQ8{align-items:center;background-color:initial;border:none;color:#53657d;cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;gap:.5rem;margin-top:.75rem;transition:color .2s ease}.GuidelineLandingPage-module_debugButton__FkeQ8:hover{color:#344054}.GuidelineLandingPage-module_debugIcon__S2nK7{height:1.25rem;width:1.25rem}.GuidelineLandingPage-module_landingBody__DBWAI{align-items:start;display:grid;gap:1.5rem;grid-template-columns:minmax(0,1fr) minmax(300px,360px);margin-top:3rem;width:100%}@media (min-width:1536px){.GuidelineLandingPage-module_landingBody__DBWAI{grid-template-columns:minmax(0,1fr) minmax(360px,424px)}}.GuidelineLandingPage-module_landingBodyFullWidth__ebiUi{grid-template-columns:minmax(0,1fr)}");export{n as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineLandingPage.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineLandingPage.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as l,jsx as i}from"react/jsx-runtime";import{useState as r,Fragment as t}from"react";import{ChevronRight as a,ChevronLeft as n,Search as o,SlidersHorizontal as d,X as s,LayoutDashboard as c,BookmarkCheck as u}from"lucide-react";import{cx as b,getGuidelineId as p}from"../utils.js";import{GuidelineLibraryCard as m}from"./GuidelineLibraryCard.js";import{GuidelineTooltip as h}from"./GuidelineTooltip.js";import{TreeSidebar as x}from"@e-llm-studio/creative-workspace-ui-component";function v(r){var t=r.classNames,a=r.styles;return l("article",e({className:b("flex min-h-[156px] flex-col rounded-[8px] border border-[#EAECF0] bg-white px-5 py-5 shadow-[0_1px_2px_rgba(16,24,40,0.03)]",null==t?void 0:t.libraryCard),style:null==a?void 0:a.libraryCard},{children:[l("div",e({className:"flex min-w-0 items-start justify-between gap-4"},{children:[l("div",e({className:"min-w-0 flex-1"},{children:[i("div",{className:"h-5 w-3/4 animate-pulse rounded bg-[#E5E7EB]"}),i("div",{className:"mt-2 h-4 w-1/2 animate-pulse rounded bg-[#E5E7EB]"})]})),l("div",e({className:"flex flex-shrink-0 items-center gap-2"},{children:[i("div",{className:"h-8 w-8 animate-pulse rounded bg-[#E5E7EB]"}),i("div",{className:"h-8 w-8 animate-pulse rounded bg-[#E5E7EB]"})]}))]})),l("div",e({className:"mt-6 space-y-2"},{children:[i("div",{className:"h-4 w-full animate-pulse rounded bg-[#E5E7EB]"}),i("div",{className:"h-4 w-2/3 animate-pulse rounded bg-[#E5E7EB]"})]})),l("div",e({className:"mt-auto grid grid-cols-[minmax(0,1fr)_minmax(140px,176px)] items-end gap-3 pt-5"},{children:[l("div",e({className:"flex items-center gap-4"},{children:[i("div",{className:"h-5 w-5 animate-pulse rounded bg-[#E5E7EB]"}),i("div",{className:"h-5 w-5 animate-pulse rounded bg-[#E5E7EB]"})]})),i("div",{className:"h-10 w-full animate-pulse rounded-[6px] bg-[#E5E7EB]"})]}))]}))}function f(f){var y,g,w,E,N,C,D,F=f.guidelines,S=f.guidelineSections,L=f.cartGuidelineIds,B=f.emptyTitle,T=f.emptyDescription,k=f.addToCartLabel,A=f.addedToCartLabel,W=f.selectLabel,I=f.selectedLabel,G=f.exploreLabel;f.showMoreLabel,f.showLessLabel,f.initialVisibleCount,f.showRecentlyUsedTab;var _=f.onToggleGuideline,j=f.onPreviewGuideline,O=f.onExploreILGuideline,P=f.classNames,H=f.styles,M=f.customIcons,R=f.subTitleLayout,U=f.formatAddedOnLabel,V=f.onEditGuideline,q=f.onDuplicateGuideline,z=f.onDeleteGuideline,J=f.hideEditOption,K=f.hideDuplicateOption,Q=f.hideDeleteOption,X=f.onTabSelection,Y=f.searchProps;f.treeSearchProps;var Z=f.filterProps,$=f.showDashboardButton,ee=void 0!==$&&$,le=f.onDashboardClick,ie=f.isLoading,re=f.instantLearning,te=f.fetchWishlistStatus,ae=f.onWishlistToggle,ne=f.treeSidebarProps,oe=f.cartAction,de=r(!1),se=de[0],ce=de[1],ue=function(r){var t,a,n,o=r.id,d=r.isDisabled,s=null!==(t=r.isActive)&&void 0!==t&&t,c=r.title,p=r.count,m=null!==(a=r.description)&&void 0!==a?a:"",x=null!==(n=r.icon)&&void 0!==n?n:i(u,{className:"h-5 w-5 flex-shrink-0",strokeWidth:2}),v=l("button",e({type:"button",onClick:function(){d||null==X||X(o)},disabled:d,className:b("relative inline-flex h-10 items-center gap-2 px-4 text-[14px] font-medium transition-colors",s?"text-[#1F2937] after:absolute after:inset-x-0 after:bottom-0 after:h-[3px] after:rounded-full after:bg-[#6D5BFF]":"text-[#B5BDC8]",s?null==P?void 0:P.libraryTabActive:null==P?void 0:P.libraryTabInactive,null==P?void 0:P.libraryTab),style:e(e({},null==H?void 0:H.libraryTab),s?null==H?void 0:H.libraryTabActive:null==H?void 0:H.libraryTabInactive)},{children:[x,i("span",e({className:"truncate"},{children:c})),"number"==typeof p&&i("span",e({className:b("inline-flex h-5 min-w-5 flex-shrink-0 items-center justify-center rounded-full px-1.5 text-[12px] font-semibold",s?"bg-[#EDE9FE] text-[#5B2CF4]":"bg-[#F2F4F7] text-[#98A2B3]")},{children:p}))]}));return m?i(h,e({content:m,side:"bottom",maxWidth:220},{children:v})):v};return l("section",e({className:b("flex min-h-0 min-w-0 flex-col overflow-hidden",null==P?void 0:P.library),style:null==H?void 0:H.library},{children:[l("div",e({className:b("flex min-w-0 items-end gap-3 border-b border-[#EAECF0]",null==P?void 0:P.libraryTabs),style:null==H?void 0:H.libraryTabs},{children:[i("div",e({className:"flex min-w-0 flex-1 overflow-x-auto"},{children:null==S?void 0:S.map(function(e){return i(t,{children:ue(e)},e.id)})})),oe]})),l("div",e({className:b("border border-[#E3E6EA] rounded-xl flex flex-row min-h-0 min-w-0 flex-1 items-stretch overflow-hidden",null==P?void 0:P.guideLineLibraryContent),style:null==H?void 0:H.guideLineLibraryContent},{children:[ne&&l("div",e({className:b("flex flex-col border-r border-[#E3E6EA] flex-shrink-0 overflow-hidden transition-[width] duration-200 ease-[ease]",se?"w-14":"w-[360px]",null==P?void 0:P.treeSidebarWrapper,se&&(null==P?void 0:P.treeSidebarCollapsedWrapper)),style:e(e({},null==H?void 0:H.treeSidebarWrapper),se&&(null==H?void 0:H.treeSidebarCollapsedWrapper))},{children:[l("div",e({className:b("flex border-b border-[#EAECF0] p-4 items-center min-h-14",se?"justify-center px-0 [border-bottom:none]":"justify-between",null==P?void 0:P.treeSidebarHeading),style:null==H?void 0:H.treeSidebarHeading},{children:[!se&&i("p",e({className:b("text-sm font-medium text-[#344054] m-0",null==P?void 0:P.treeSidebarHeadingText),style:null==H?void 0:H.treeSidebarHeadingText},{children:"Scope"})),i("button",e({type:"button",onClick:function(){return ce(function(e){return!e})},"aria-label":se?"Expand scope sidebar":"Collapse scope sidebar","aria-expanded":!se,title:se?"Expand scope sidebar":"Collapse scope sidebar",className:b("inline-flex w-8 h-8 flex-shrink-0 items-center justify-center p-0 border-0 rounded-md bg-transparent text-[#475467] cursor-pointer",null==P?void 0:P.treeSidebarCollapseButton),style:null==H?void 0:H.treeSidebarCollapseButton},{children:i(se?a:n,{strokeWidth:2,className:b("h-5 w-5",null==P?void 0:P.treeSidebarCollapseIcon),style:null==H?void 0:H.treeSidebarCollapseIcon})}))]})),!se&&i(x,e({},ne))]})),l("div",e({className:b("flex-1 min-h-0 min-w-0 flex flex-col overflow-hidden",null==P?void 0:P.guideLineLibraryCardContainer),style:null==H?void 0:H.guideLineLibraryCardContainer},{children:[(Y||Z||ee)&&l("div",e({className:b("mt-6 flex flex-col gap-3 sm:flex-row sm:items-center",null==P?void 0:P.libraryControls),style:null==H?void 0:H.libraryControls},{children:[Y&&l("label",e({className:b("flex h-11 flex-1 items-center gap-3 rounded-[10px] border border-[#D0D5DD] bg-white px-4 shadow-[0_1px_2px_rgba(16,24,40,0.05)] transition-colors focus-within:border-[#A78BFA] focus-within:ring-2 focus-within:ring-[#F4F0FF]",null==P?void 0:P.librarySearchWrapper),style:null==H?void 0:H.librarySearchWrapper},{children:[i(o,{className:b("h-5 w-5 flex-shrink-0 text-[#98A2B3]",null==P?void 0:P.librarySearchIcon),style:null==H?void 0:H.librarySearchIcon,strokeWidth:2}),i("input",{type:"search",value:Y.value,onChange:function(e){return Y.onChange(e.target.value)},placeholder:null!==(y=Y.placeholder)&&void 0!==y?y:"Search guidelines","aria-label":null!==(g=Y.ariaLabel)&&void 0!==g?g:"Search guidelines",className:b("w-full border-0 bg-transparent p-0 text-[16px] text-[#344054] outline-none placeholder:text-[#667085]",null==P?void 0:P.librarySearchInput),style:null==H?void 0:H.librarySearchInput})]})),Z&&l("div",e({className:b("inline-flex h-11 items-center rounded-[10px] border border-[#D0D5DD] bg-white shadow-[0_1px_2px_rgba(16,24,40,0.05)]",null==P?void 0:P.libraryFilterButton),style:null==H?void 0:H.libraryFilterButton},{children:[l("button",e({type:"button",onClick:Z.onClick,"aria-label":null!==(E=null!==(w=Z.ariaLabel)&&void 0!==w?w:Z.label)&&void 0!==E?E:"Filters",className:"inline-flex h-full items-center gap-2 px-4 text-[16px] font-medium text-[#53657D] transition-colors hover:bg-[#F9FAFB] rounded-l-[10px]"},{children:[null!==(N=Z.icon)&&void 0!==N?N:i(d,{className:b("h-5 w-5 flex-shrink-0",null==P?void 0:P.libraryFilterIcon),style:null==H?void 0:H.libraryFilterIcon,strokeWidth:2}),i("span",{children:null!==(C=Z.label)&&void 0!==C?C:"Filters"}),void 0!==Z.activeCount&&Z.activeCount>0&&i("span",e({className:"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-[#6D5BFF] px-1.5 text-[12px] font-medium text-white"},{children:Z.activeCount}))]})),void 0!==Z.activeCount&&Z.activeCount>0&&Z.onClear&&l("button",e({type:"button",onClick:function(e){var l;e.stopPropagation(),null===(l=Z.onClear)||void 0===l||l.call(Z)},"aria-label":"Clear all filters",className:"inline-flex h-full items-center gap-1.5 border-l border-[#D0D5DD] px-3 text-[14px] font-medium text-[#53657D] transition-colors hover:bg-[#F9FAFB] rounded-r-[10px]"},{children:[i("span",{children:null!==(D=Z.clearLabel)&&void 0!==D?D:"clear all"}),i(s,{className:"h-4 w-4 flex-shrink-0",strokeWidth:2})]}))]})),ee&&l("button",e({type:"button",onClick:le,"aria-label":"Dashboard",className:b("inline-flex h-11 flex-shrink-0 items-center gap-2 rounded-[10px] border border-[#D0D5DD] bg-white px-4 text-[16px] font-medium text-[#53657D] shadow-[0_1px_2px_rgba(16,24,40,0.05)] transition-colors hover:bg-[#F9FAFB]",null==P?void 0:P.libraryDashboardButton),style:null==H?void 0:H.libraryDashboardButton},{children:[i(c,{className:b("h-5 w-5 flex-shrink-0",null==P?void 0:P.libraryDashboardIcon),style:null==H?void 0:H.libraryDashboardIcon,strokeWidth:2}),i("span",{children:"Dashboard"})]}))]})),ie?i("div",e({className:b("mt-6 min-h-0 flex-1 overflow-y-auto pr-2",null==P?void 0:P.libraryScrollArea),style:null==H?void 0:H.libraryScrollArea},{children:i("div",e({className:b("grid grid-cols-[repeat(auto-fit,minmax(min(100%,280px),1fr))] gap-5",null==P?void 0:P.libraryGrid),style:null==H?void 0:H.libraryGrid},{children:Array.from({length:4}).map(function(e,l){return i(v,{classNames:P,styles:H},"skeleton-".concat(l))})}))})):0===F.length?l("div",e({className:b("mt-6 flex min-h-[260px] flex-col items-center justify-center rounded-[8px] border border-dashed border-[#CDBDFF] bg-[#FBFAFF] px-6 text-center",null==P?void 0:P.libraryEmptyState),style:null==H?void 0:H.libraryEmptyState},{children:[i("p",e({className:b("text-[15px] font-semibold text-[#344054]",null==P?void 0:P.libraryEmptyTitle),style:null==H?void 0:H.libraryEmptyTitle},{children:B})),i("p",e({className:b("mt-2 max-w-[320px] text-[13px] leading-5 text-[#667085]",null==P?void 0:P.libraryEmptyDescription),style:null==H?void 0:H.libraryEmptyDescription},{children:T}))]})):i("div",e({className:b("mt-6 min-h-0 flex-1 overflow-y-auto pr-2",null==P?void 0:P.libraryScrollArea),style:null==H?void 0:H.libraryScrollArea},{children:i("div",e({className:b("grid grid-cols-[repeat(auto-fit,minmax(min(100%,280px),1fr))] gap-5",null==P?void 0:P.libraryGrid),style:null==H?void 0:H.libraryGrid},{children:F.map(function(e){return i(m,{guideline:e,isSelected:L.includes(p(e)),addToCartLabel:k,addedToCartLabel:A,selectLabel:W,selectedLabel:I,exploreLabel:G,onToggle:_,onPreview:j,onExplore:O,onEdit:V,onDuplicate:q,onDelete:z,hideEditOption:J,hideDuplicateOption:K,hideDeleteOption:Q,classNames:P,styles:H,customIcons:M,subTitleLayout:R,formatAddedOnLabel:U,instantLearning:re,fetchWishlistStatus:te,onWishlistToggle:ae},p(e))})}))}))]}))]}))]}))}export{f as GuidelineLibrary};
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as l,jsx as i}from"react/jsx-runtime";import{useState as a,Fragment as r}from"react";import{ChevronRight as t,ChevronLeft as n,Search as o,SlidersHorizontal as d,X as s,LayoutDashboard as c,BookmarkCheck as u}from"lucide-react";import{cx as b,getGuidelineId as v}from"../utils.js";import y from"./GuidelineLibrary.module.css.js";import{GuidelineLibraryCard as p}from"./GuidelineLibraryCard.js";import{GuidelineTooltip as m}from"./GuidelineTooltip.js";import{TreeSidebar as h}from"@e-llm-studio/creative-workspace-ui-component";function S(a){var r=a.classNames,t=a.styles;return l("article",e({className:b(y.skeletonCard,null==r?void 0:r.libraryCard),style:null==t?void 0:t.libraryCard},{children:[l("div",e({className:y.skeletonHeader},{children:[l("div",e({className:y.skeletonHeaderContent},{children:[i("div",{className:y.skeletonTitle}),i("div",{className:y.skeletonDate})]})),l("div",e({className:y.skeletonActions},{children:[i("div",{className:y.skeletonActionButton}),i("div",{className:y.skeletonActionButton})]}))]})),l("div",e({className:y.skeletonDescription},{children:[i("div",{className:y.skeletonDescriptionLine}),i("div",{className:y.skeletonDescriptionLine})]})),l("div",e({className:y.skeletonFooter},{children:[l("div",e({className:y.skeletonFooterIcons},{children:[i("div",{className:y.skeletonFooterIcon}),i("div",{className:y.skeletonFooterIcon})]})),i("div",{className:y.skeletonButton})]}))]}))}var N=[0,1,1,2,0,1,2,1];function C(){return i("div",e({className:y.treeSidebarSkeleton},{children:N.map(function(a,r){return l("div",e({className:y.treeSidebarSkeletonRow,style:{paddingLeft:"".concat(1.25*a,"rem")}},{children:[i("div",{className:y.treeSidebarSkeletonIcon}),i("div",{className:y.treeSidebarSkeletonLine,style:{width:"".concat(65-10*a,"%")}})]}),r)})}))}function L(N){var L,g,k,T,f,I,D,B=N.guidelines,A=N.guidelineSections,W=N.cartGuidelineIds,E=N.emptyTitle,F=N.emptyDescription,G=N.addToCartLabel,x=N.addedToCartLabel,w=N.selectLabel,H=N.selectedLabel,O=N.exploreLabel;N.showMoreLabel,N.showLessLabel,N.initialVisibleCount,N.showRecentlyUsedTab;var P=N.onToggleGuideline,j=N.onPreviewGuideline,V=N.onExploreILGuideline,M=N.classNames,R=N.styles,U=N.customIcons,q=N.subTitleLayout,z=N.formatAddedOnLabel,J=N.onEditGuideline,K=N.onDuplicateGuideline,Q=N.onDeleteGuideline,X=N.hideEditOption,Y=N.hideDuplicateOption,Z=N.hideDeleteOption,$=N.onTabSelection,_=N.searchProps;N.treeSearchProps;var ee=N.filterProps,le=N.showDashboardButton,ie=void 0!==le&&le,ae=N.onDashboardClick,re=N.isLoading,te=N.instantLearning,ne=N.fetchWishlistStatus,oe=N.onWishlistToggle,de=N.onVersionSelect,se=N.treeSidebarProps,ce=N.isTreeSidebarLoading,ue=N.cartAction,be=N.isILMarketplace,ve=void 0!==be&&be,ye=N.handleViewButtonCallback,pe=a(!1),me=pe[0],he=pe[1],Se=function(a){var r,t,n,o=a.id,d=a.isDisabled,s=null!==(r=a.isActive)&&void 0!==r&&r,c=a.title,v=a.count,p=null!==(t=a.description)&&void 0!==t?t:"",h=null!==(n=a.icon)&&void 0!==n?n:i(u,{className:y.tabIcon,strokeWidth:2}),S=l("button",e({type:"button",onClick:function(){d||null==$||$(o)},disabled:d,className:b(y.tabButton,s?y.tabButtonActive:y.tabButtonInactive,s?null==M?void 0:M.libraryTabActive:null==M?void 0:M.libraryTabInactive,null==M?void 0:M.libraryTab),style:e(e({},null==R?void 0:R.libraryTab),s?null==R?void 0:R.libraryTabActive:null==R?void 0:R.libraryTabInactive)},{children:[h,i("span",e({className:y.tabLabel},{children:c})),"number"==typeof v&&i("span",e({className:b(y.tabBadge,s?y.tabBadgeActive:y.tabBadgeInactive)},{children:v}))]}));return p?i(m,e({content:p,side:"bottom",maxWidth:220},{children:S})):S};return l("section",e({className:b(y.library,null==M?void 0:M.library),style:null==R?void 0:R.library},{children:[l("div",e({className:b(y.libraryTabsContainer,null==M?void 0:M.libraryTabs),style:null==R?void 0:R.libraryTabs},{children:[i("div",e({className:y.libraryTabsScrollArea},{children:null==A?void 0:A.map(function(e){return i(r,{children:Se(e)},e.id)})})),ue]})),l("div",e({className:b(y.guidelineLibraryContent,null==M?void 0:M.guideLineLibraryContent),style:null==R?void 0:R.guideLineLibraryContent},{children:[se&&l("div",e({className:b(y.treeSidebarWrapper,me?y.treeSidebarCollapsed:y.treeSidebarExpanded,null==M?void 0:M.treeSidebarWrapper,me&&(null==M?void 0:M.treeSidebarCollapsedWrapper)),style:e(e({},null==R?void 0:R.treeSidebarWrapper),me&&(null==R?void 0:R.treeSidebarCollapsedWrapper))},{children:[l("div",e({className:b(y.treeSidebarHeading,me&&y.treeSidebarHeadingCollapsed,null==M?void 0:M.treeSidebarHeading),style:null==R?void 0:R.treeSidebarHeading},{children:[!me&&i("p",e({className:b(y.treeSidebarHeadingText,null==M?void 0:M.treeSidebarHeadingText),style:null==R?void 0:R.treeSidebarHeadingText},{children:"Scope"})),i("button",e({type:"button",onClick:function(){return he(function(e){return!e})},"aria-label":me?"Expand scope sidebar":"Collapse scope sidebar","aria-expanded":!me,title:me?"Expand scope sidebar":"Collapse scope sidebar",className:b(y.treeSidebarCollapseButton,null==M?void 0:M.treeSidebarCollapseButton),style:null==R?void 0:R.treeSidebarCollapseButton},{children:i(me?t:n,{strokeWidth:2,className:b(y.treeSidebarCollapseIcon,null==M?void 0:M.treeSidebarCollapseIcon),style:null==R?void 0:R.treeSidebarCollapseIcon})}))]})),!me&&(ce?i(C,{}):i(h,e({},se)))]})),l("div",e({className:b(y.guideLineLibraryCardContainer,null==M?void 0:M.guideLineLibraryCardContainer),style:null==R?void 0:R.guideLineLibraryCardContainer},{children:[(_||ee||ie)&&l("div",e({className:b(y.libraryControls,null==M?void 0:M.libraryControls),style:null==R?void 0:R.libraryControls},{children:[_&&l("label",e({className:b(y.librarySearchWrapper,null==M?void 0:M.librarySearchWrapper),style:null==R?void 0:R.librarySearchWrapper},{children:[i(o,{className:b(y.librarySearchIcon,null==M?void 0:M.librarySearchIcon),style:null==R?void 0:R.librarySearchIcon,strokeWidth:2}),i("input",{type:"search",value:_.value,onChange:function(e){return _.onChange(e.target.value)},placeholder:null!==(L=_.placeholder)&&void 0!==L?L:"Search guidelines","aria-label":null!==(g=_.ariaLabel)&&void 0!==g?g:"Search guidelines",className:b(y.librarySearchInput,null==M?void 0:M.librarySearchInput),style:null==R?void 0:R.librarySearchInput})]})),ee&&l("div",e({className:b(y.libraryFilterButton,null==M?void 0:M.libraryFilterButton),style:null==R?void 0:R.libraryFilterButton},{children:[l("button",e({type:"button",onClick:ee.onClick,"aria-label":null!==(T=null!==(k=ee.ariaLabel)&&void 0!==k?k:ee.label)&&void 0!==T?T:"Filters",className:y.libraryFilterButtonText},{children:[null!==(f=ee.icon)&&void 0!==f?f:i(d,{className:b(y.libraryFilterIcon,null==M?void 0:M.libraryFilterIcon),style:null==R?void 0:R.libraryFilterIcon,strokeWidth:2}),i("span",{children:null!==(I=ee.label)&&void 0!==I?I:"Filters"}),void 0!==ee.activeCount&&ee.activeCount>0&&i("span",e({className:y.libraryFilterBadge},{children:ee.activeCount}))]})),void 0!==ee.activeCount&&ee.activeCount>0&&ee.onClear&&l("button",e({type:"button",onClick:function(e){var l;e.stopPropagation(),null===(l=ee.onClear)||void 0===l||l.call(ee)},"aria-label":"Clear all filters",className:y.libraryFilterClearButton},{children:[i("span",{children:null!==(D=ee.clearLabel)&&void 0!==D?D:"clear all"}),i(s,{className:y.libraryFilterClearIcon,strokeWidth:2})]}))]})),ie&&l("button",e({type:"button",onClick:ae,"aria-label":"Dashboard",className:b(y.libraryDashboardButton,null==M?void 0:M.libraryDashboardButton),style:null==R?void 0:R.libraryDashboardButton},{children:[i(c,{className:b(y.libraryDashboardIcon,null==M?void 0:M.libraryDashboardIcon),style:null==R?void 0:R.libraryDashboardIcon,strokeWidth:2}),i("span",{children:"Dashboard"})]}))]})),re?i("div",e({className:b(y.libraryScrollArea,null==M?void 0:M.libraryScrollArea),style:null==R?void 0:R.libraryScrollArea},{children:i("div",e({className:b(y.libraryGrid,null==M?void 0:M.libraryGrid),style:null==R?void 0:R.libraryGrid},{children:Array.from({length:4}).map(function(e,l){return i(S,{classNames:M,styles:R},"skeleton-".concat(l))})}))})):0===B.length?l("div",e({className:b(y.libraryEmptyState,null==M?void 0:M.libraryEmptyState),style:null==R?void 0:R.libraryEmptyState},{children:[i("p",e({className:b(y.libraryEmptyTitle,null==M?void 0:M.libraryEmptyTitle),style:null==R?void 0:R.libraryEmptyTitle},{children:E})),i("p",e({className:b(y.libraryEmptyDescription,null==M?void 0:M.libraryEmptyDescription),style:null==R?void 0:R.libraryEmptyDescription},{children:F}))]})):i("div",e({className:b(y.libraryScrollArea,null==M?void 0:M.libraryScrollArea),style:null==R?void 0:R.libraryScrollArea},{children:i("div",e({className:b(y.libraryGrid,null==M?void 0:M.libraryGrid),style:null==R?void 0:R.libraryGrid},{children:B.map(function(e){return i(p,{guideline:e,isSelected:W.includes(v(e)),addToCartLabel:G,addedToCartLabel:x,selectLabel:w,selectedLabel:H,exploreLabel:O,onToggle:P,onPreview:j,onExplore:V,onEdit:J,onDuplicate:K,onDelete:Q,hideEditOption:X,hideDuplicateOption:Y,hideDeleteOption:Z,classNames:M,styles:R,customIcons:U,subTitleLayout:q,formatAddedOnLabel:z,instantLearning:te,fetchWishlistStatus:ne,onWishlistToggle:oe,onVersionSelect:de,isILMarketplace:ve,handleViewButtonCallback:ye},v(e))})}))}))]}))]}))]}))}export{L as GuidelineLibrary};
|
|
2
2
|
//# sourceMappingURL=GuidelineLibrary.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var i={skeletonCard:"GuidelineLibrary-module_skeletonCard__c2nYB",skeletonHeader:"GuidelineLibrary-module_skeletonHeader__d9Y80",skeletonHeaderContent:"GuidelineLibrary-module_skeletonHeaderContent__FrmyG",skeletonTitle:"GuidelineLibrary-module_skeletonTitle__LNOuw",pulse:"GuidelineLibrary-module_pulse__Esc73",skeletonDate:"GuidelineLibrary-module_skeletonDate__8kWE4",skeletonActions:"GuidelineLibrary-module_skeletonActions__Yve1R",skeletonActionButton:"GuidelineLibrary-module_skeletonActionButton__1rgW4",skeletonDescription:"GuidelineLibrary-module_skeletonDescription__vG7a5",skeletonDescriptionLine:"GuidelineLibrary-module_skeletonDescriptionLine__XN2YT",skeletonFooter:"GuidelineLibrary-module_skeletonFooter__Bz03i",skeletonFooterIcons:"GuidelineLibrary-module_skeletonFooterIcons__bgo5C",skeletonFooterIcon:"GuidelineLibrary-module_skeletonFooterIcon__K8lsH",skeletonButton:"GuidelineLibrary-module_skeletonButton__O3N78",treeSidebarSkeleton:"GuidelineLibrary-module_treeSidebarSkeleton__PHZ6w",treeSidebarSkeletonRow:"GuidelineLibrary-module_treeSidebarSkeletonRow__uBw2h",treeSidebarSkeletonIcon:"GuidelineLibrary-module_treeSidebarSkeletonIcon__ABlMq",treeSidebarSkeletonLine:"GuidelineLibrary-module_treeSidebarSkeletonLine__2zJwA",tabIcon:"GuidelineLibrary-module_tabIcon__ymA0s",tabButton:"GuidelineLibrary-module_tabButton__I7l3j",tabButtonActive:"GuidelineLibrary-module_tabButtonActive__BbC4w",tabButtonInactive:"GuidelineLibrary-module_tabButtonInactive__XfRYd",tabLabel:"GuidelineLibrary-module_tabLabel__KhULR",tabBadge:"GuidelineLibrary-module_tabBadge__pzUJF",tabBadgeActive:"GuidelineLibrary-module_tabBadgeActive__JFUzn",tabBadgeInactive:"GuidelineLibrary-module_tabBadgeInactive__OQx4g",library:"GuidelineLibrary-module_library__kDkvM",libraryTabsContainer:"GuidelineLibrary-module_libraryTabsContainer__AGbYD",libraryTabsScrollArea:"GuidelineLibrary-module_libraryTabsScrollArea__uA06-",guidelineLibraryContent:"GuidelineLibrary-module_guidelineLibraryContent__ffbNX",treeSidebarWrapper:"GuidelineLibrary-module_treeSidebarWrapper__ZMDeK",treeSidebarCollapsed:"GuidelineLibrary-module_treeSidebarCollapsed__MRVdl",treeSidebarExpanded:"GuidelineLibrary-module_treeSidebarExpanded__b-Xcp",treeSidebarHeading:"GuidelineLibrary-module_treeSidebarHeading__59TR2",treeSidebarHeadingCollapsed:"GuidelineLibrary-module_treeSidebarHeadingCollapsed__-rDRG",treeSidebarHeadingText:"GuidelineLibrary-module_treeSidebarHeadingText__1Leob",treeSidebarCollapseButton:"GuidelineLibrary-module_treeSidebarCollapseButton__QfuiD",treeSidebarCollapseIcon:"GuidelineLibrary-module_treeSidebarCollapseIcon__H-HZm",guideLineLibraryCardContainer:"GuidelineLibrary-module_guideLineLibraryCardContainer__RpV3x",libraryControls:"GuidelineLibrary-module_libraryControls__lY6-f",librarySearchWrapper:"GuidelineLibrary-module_librarySearchWrapper__GFHud",librarySearchIcon:"GuidelineLibrary-module_librarySearchIcon__fs4Rx",librarySearchInput:"GuidelineLibrary-module_librarySearchInput__A7dUH",libraryFilterButton:"GuidelineLibrary-module_libraryFilterButton__pGRW1",libraryFilterButtonText:"GuidelineLibrary-module_libraryFilterButtonText__VpIqg",libraryFilterIcon:"GuidelineLibrary-module_libraryFilterIcon__5th7S",libraryFilterBadge:"GuidelineLibrary-module_libraryFilterBadge__rl-bY",libraryFilterClearButton:"GuidelineLibrary-module_libraryFilterClearButton__DFs75",libraryFilterClearIcon:"GuidelineLibrary-module_libraryFilterClearIcon__67OPR",libraryDashboardButton:"GuidelineLibrary-module_libraryDashboardButton__T32lb",libraryDashboardIcon:"GuidelineLibrary-module_libraryDashboardIcon__8ioVF",libraryScrollArea:"GuidelineLibrary-module_libraryScrollArea__pqfsk",libraryGrid:"GuidelineLibrary-module_libraryGrid__0FiIY",libraryEmptyState:"GuidelineLibrary-module_libraryEmptyState__3HOZL",libraryEmptyTitle:"GuidelineLibrary-module_libraryEmptyTitle__Domn6",libraryEmptyDescription:"GuidelineLibrary-module_libraryEmptyDescription__CE1jN"};e('.GuidelineLibrary-module_skeletonCard__c2nYB{background-color:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 1px 2px #10182808;display:flex;flex-direction:column;min-height:156px;padding:1.25rem}.GuidelineLibrary-module_skeletonHeader__d9Y80{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;min-width:0}.GuidelineLibrary-module_skeletonHeaderContent__FrmyG{flex:1;min-width:0}.GuidelineLibrary-module_skeletonTitle__LNOuw{height:1.25rem;width:75%}.GuidelineLibrary-module_skeletonDate__8kWE4,.GuidelineLibrary-module_skeletonTitle__LNOuw{animation:GuidelineLibrary-module_pulse__Esc73 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e5e7eb;border-radius:4px}.GuidelineLibrary-module_skeletonDate__8kWE4{height:1rem;margin-top:.5rem;width:50%}.GuidelineLibrary-module_skeletonActions__Yve1R{align-items:center;display:flex;flex-shrink:0;gap:.5rem}.GuidelineLibrary-module_skeletonActionButton__1rgW4{animation:GuidelineLibrary-module_pulse__Esc73 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e5e7eb;border-radius:4px;height:2rem;width:2rem}.GuidelineLibrary-module_skeletonDescription__vG7a5{display:flex;flex-direction:column;gap:.5rem;margin-top:1.5rem}.GuidelineLibrary-module_skeletonDescriptionLine__XN2YT{animation:GuidelineLibrary-module_pulse__Esc73 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e5e7eb;border-radius:4px;height:1rem;width:100%}.GuidelineLibrary-module_skeletonDescriptionLine__XN2YT:last-child{width:66.666667%}.GuidelineLibrary-module_skeletonFooter__Bz03i{align-items:end;display:grid;gap:.75rem;grid-template-columns:minmax(0,1fr) minmax(140px,176px);margin-top:auto;padding-top:1.25rem}.GuidelineLibrary-module_skeletonFooterIcons__bgo5C{align-items:center;display:flex;gap:1rem}.GuidelineLibrary-module_skeletonFooterIcon__K8lsH{border-radius:4px;height:1.25rem;width:1.25rem}.GuidelineLibrary-module_skeletonButton__O3N78,.GuidelineLibrary-module_skeletonFooterIcon__K8lsH{animation:GuidelineLibrary-module_pulse__Esc73 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e5e7eb}.GuidelineLibrary-module_skeletonButton__O3N78{border-radius:6px;height:2.5rem;width:100%}@keyframes GuidelineLibrary-module_pulse__Esc73{0%,to{opacity:1}50%{opacity:.5}}.GuidelineLibrary-module_treeSidebarSkeleton__PHZ6w{display:flex;flex-direction:column;gap:.75rem;padding:.75rem}.GuidelineLibrary-module_treeSidebarSkeletonRow__uBw2h{align-items:center;display:flex;gap:.5rem}.GuidelineLibrary-module_treeSidebarSkeletonIcon__ABlMq{flex-shrink:0;height:1rem;width:1rem}.GuidelineLibrary-module_treeSidebarSkeletonIcon__ABlMq,.GuidelineLibrary-module_treeSidebarSkeletonLine__2zJwA{animation:GuidelineLibrary-module_pulse__Esc73 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e5e7eb;border-radius:4px}.GuidelineLibrary-module_treeSidebarSkeletonLine__2zJwA{height:.875rem}.GuidelineLibrary-module_tabIcon__ymA0s{flex-shrink:0;height:1.25rem;width:1.25rem}.GuidelineLibrary-module_tabButton__I7l3j{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;gap:.5rem;height:2.5rem;padding:0 1rem;position:relative;transition:all .2s ease}.GuidelineLibrary-module_tabButtonActive__BbC4w{color:#1f2937}.GuidelineLibrary-module_tabButtonActive__BbC4w:after{background-color:#6d5bff;border-radius:9999px;bottom:0;content:"";height:3px;left:0;position:absolute;right:0}.GuidelineLibrary-module_tabButtonInactive__XfRYd{color:#b5bdc8}.GuidelineLibrary-module_tabLabel__KhULR{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GuidelineLibrary-module_tabBadge__pzUJF{align-items:center;border-radius:9999px;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:600;height:1.25rem;justify-content:center;min-width:1.25rem;padding:0 .375rem}.GuidelineLibrary-module_tabBadgeActive__JFUzn{background-color:#ede9fe;color:#5b2cf4}.GuidelineLibrary-module_tabBadgeInactive__OQx4g{background-color:#f2f4f7;color:#98a2b3}.GuidelineLibrary-module_library__kDkvM{display:flex;flex-direction:column;gap:20px;min-height:0;min-width:0;overflow:hidden}.GuidelineLibrary-module_libraryTabsContainer__AGbYD{align-items:flex-end;border-bottom:1px solid #eaecf0;display:flex;gap:.75rem;min-width:0}.GuidelineLibrary-module_libraryTabsScrollArea__uA06-{display:flex;flex:1;min-width:0;overflow-x:auto}.GuidelineLibrary-module_guidelineLibraryContent__ffbNX{align-items:stretch;border:1px solid #e3e6ea;border-radius:12px;display:flex;flex:1;flex-direction:row;min-height:0;min-width:0;overflow:hidden}.GuidelineLibrary-module_treeSidebarWrapper__ZMDeK{border-right:1px solid #e3e6ea;display:flex;flex-direction:column;flex-shrink:0;overflow:hidden;transition:width .2s ease}.GuidelineLibrary-module_treeSidebarCollapsed__MRVdl{width:3.5rem}.GuidelineLibrary-module_treeSidebarExpanded__b-Xcp{width:360px}.GuidelineLibrary-module_treeSidebarHeading__59TR2{align-items:center;border-bottom:1px solid #eaecf0;display:flex;justify-content:space-between;min-height:3.5rem;padding:1rem}.GuidelineLibrary-module_treeSidebarHeadingCollapsed__-rDRG{border-bottom:none;justify-content:center;padding-left:0;padding-right:0}.GuidelineLibrary-module_treeSidebarHeadingText__1Leob{color:#344054;font-size:14px;font-weight:500;margin:0}.GuidelineLibrary-module_treeSidebarCollapseButton__QfuiD{align-items:center;background-color:initial;border:none;border-radius:6px;color:#475467;cursor:pointer;display:inline-flex;flex-shrink:0;height:2rem;justify-content:center;padding:0;transition:background-color .2s ease;width:2rem}.GuidelineLibrary-module_treeSidebarCollapseButton__QfuiD:hover{background-color:#f2f4f7}.GuidelineLibrary-module_treeSidebarCollapseIcon__H-HZm{height:1.25rem;width:1.25rem}.GuidelineLibrary-module_guideLineLibraryCardContainer__RpV3x{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;overflow:hidden;padding:1.5rem}.GuidelineLibrary-module_libraryControls__lY6-f{display:flex;flex-direction:column;gap:.75rem;margin-top:1.5rem}@media (min-width:640px){.GuidelineLibrary-module_libraryControls__lY6-f{align-items:center;flex-direction:row}}.GuidelineLibrary-module_librarySearchWrapper__GFHud{align-items:center;background-color:#fff;border:1px solid #d0d5dd;border-radius:10px;box-shadow:0 1px 2px #1018280d;display:flex;flex:1;gap:.75rem;height:2.75rem;padding:0 1rem;transition:all .2s ease}.GuidelineLibrary-module_librarySearchWrapper__GFHud:focus-within{border-color:#a78bfa;box-shadow:0 0 0 2px #f4f0ff}.GuidelineLibrary-module_librarySearchIcon__fs4Rx{color:#98a2b3;flex-shrink:0;height:1.25rem;width:1.25rem}.GuidelineLibrary-module_librarySearchInput__A7dUH{background-color:initial;border:none;color:#344054;font-size:16px;outline:none;padding:0;width:100%}.GuidelineLibrary-module_librarySearchInput__A7dUH:focus{outline:none}.GuidelineLibrary-module_librarySearchInput__A7dUH::placeholder{color:#667085}.GuidelineLibrary-module_libraryFilterButton__pGRW1{align-items:center;background-color:#fff;border:1px solid #d0d5dd;border-radius:10px;box-shadow:0 1px 2px #1018280d;display:inline-flex;height:2.75rem;outline:none}.GuidelineLibrary-module_libraryFilterButtonText__VpIqg{align-items:center;background:none;border:none;border-radius:10px 0 0 10px;color:#53657d;cursor:pointer;display:inline-flex;font-size:16px;font-weight:500;gap:.5rem;height:100%;outline:none;padding:0 1rem;transition:background-color .2s ease}.GuidelineLibrary-module_libraryFilterButtonText__VpIqg:hover{background-color:#f9fafb}.GuidelineLibrary-module_libraryFilterIcon__5th7S{flex-shrink:0;height:1.25rem;width:1.25rem}.GuidelineLibrary-module_libraryFilterBadge__rl-bY{align-items:center;background-color:#6d5bff;border-radius:9999px;color:#fff;display:inline-flex;font-size:12px;font-weight:500;height:1.25rem;justify-content:center;min-width:1.25rem;padding:0 .375rem}.GuidelineLibrary-module_libraryFilterClearButton__DFs75{align-items:center;background:none;border-left:1px solid #d0d5dd;border-radius:0 10px 10px 0;color:#53657d;cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;gap:.375rem;height:100%;outline:none;padding:0 .75rem;transition:background-color .2s ease}.GuidelineLibrary-module_libraryFilterClearButton__DFs75:hover{background-color:#f9fafb}.GuidelineLibrary-module_libraryFilterClearIcon__67OPR{flex-shrink:0;height:1rem;width:1rem}.GuidelineLibrary-module_libraryDashboardButton__T32lb{align-items:center;background-color:#fff;border:1px solid #d0d5dd;border-radius:10px;box-shadow:0 1px 2px #1018280d;color:#53657d;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:16px;font-weight:500;gap:.5rem;height:2.75rem;outline:none;padding:0 1rem;transition:background-color .2s ease}.GuidelineLibrary-module_libraryDashboardButton__T32lb:hover{background-color:#f9fafb}.GuidelineLibrary-module_libraryDashboardIcon__8ioVF{flex-shrink:0;height:1.25rem;width:1.25rem}.GuidelineLibrary-module_libraryScrollArea__pqfsk{flex:1;margin-top:1.5rem;min-height:0;overflow-y:auto;padding-right:.5rem}.GuidelineLibrary-module_libraryGrid__0FiIY{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}.GuidelineLibrary-module_libraryEmptyState__3HOZL{align-items:center;background-color:#fbfaff;border:1px dashed #cdbdff;border-radius:8px;display:flex;flex-direction:column;justify-content:center;margin-top:1.5rem;min-height:260px;padding:1.5rem;text-align:center}.GuidelineLibrary-module_libraryEmptyTitle__Domn6{color:#344054;font-size:15px;font-weight:600}.GuidelineLibrary-module_libraryEmptyDescription__CE1jN{color:#667085;font-size:13px;line-height:1.25rem;margin-top:.5rem;max-width:320px}');export{i as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineLibrary.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineLibrary.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|