"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[6969],{1524:(e,t,n)=>{n.d(t,{A:()=>j});n(6540);var i=n(4164),r=n(8774),c=n(4718),s=n(6654),a=n(1312),o=n(5846),d=n(1107),l=n(8583);const u={cardContainer:"cardContainer_S8oU",cardTitle:"cardTitle_HoSo",cardIcon:"cardIcon_whke",cardTitleText:"cardTitleText_z2nB",cardDescription:"cardDescription_c27F"};var m=n(4848);function p(e){return e.endsWith("/usage/integrated-development-environment")?l.mN3:e.endsWith("/usage/integrated-development-environment/sample-acquisition")?l.fAH:l.$6n}function h(e){switch(e.docId){case"usage/integrated-development-environment/development-directory":return l.qZs;case"usage/integrated-development-environment/text-editor":return l.I7v;case"usage/integrated-development-environment/sample-acquisition/color-picker":return l.ukJ;case"usage/integrated-development-environment/sample-acquisition/matrix-dict-tool":return l.GBA;case"usage/integrated-development-environment/sample-acquisition/text-element-inspector":return l.N0k;case"usage/integrated-development-environment/script-ui-editor":return l.k8f;default:return(0,s.A)(e.href)?l.MY6:l.qGB}}function g({icon:e}){return(0,m.jsx)(e,{"aria-hidden":!0,className:u.cardIcon})}function f({className:e,href:t,children:n}){return(0,m.jsx)(r.A,{href:t,className:(0,i.A)("card padding--lg",u.cardContainer,e),children:n})}function v({className:e,href:t,icon:n,title:r,description:c}){return(0,m.jsxs)(f,{href:t,className:e,children:[(0,m.jsxs)(d.A,{as:"h2",className:u.cardTitle,title:r,children:[(0,m.jsx)(g,{icon:n}),(0,m.jsx)("span",{className:u.cardTitleText,children:r})]}),c&&(0,m.jsx)("p",{className:(0,i.A)("text--truncate",u.cardDescription),title:c,children:c})]})}function x({item:e}){const t=(0,c.Nr)(e),n=function(){const{selectMessage:e}=(0,o.W)();return t=>e(t,(0,a.T)({message:"1 item|{count} items",id:"theme.docs.DocCard.categoryDescription.plurals",description:"The default description for a category card in the generated index about how many items this category includes"},{count:t}))}();return t?(0,m.jsx)(v,{className:e.className,href:t,icon:p(t),title:e.label,description:e.description??n(e.items.length)}):null}function N({item:e}){const t=(0,c.cC)(e.docId??void 0);return(0,m.jsx)(v,{className:e.className,href:e.href,icon:h(e),title:e.label,description:e.description??t?.description})}function j({item:e}){switch(e.type){case"link":return(0,m.jsx)(N,{item:e});case"category":return(0,m.jsx)(x,{item:e});default:throw new Error(`unknown item type ${JSON.stringify(e)}`)}}}}]);