PageSourceSearch

https://help.jpegmini.com/_next/static/chunks/8815.ad6a3dd0816a5e9c.js

js jpegmini.com collected 2026-09-24 15:18:19 UTC 27,217 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="7b08a155-c0a6-448d-bdb4-119c8eb7f0b5",e._sentryDebugIdIdentifier="sentry-dbid-7b08a155-c0a6-448d-bdb4-119c8eb7f0b5")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8815],{40875:function(e,l,i){i.d(l,{Z:function(){return t}});let t=(0,i(79205).Z)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},28124:function(e,l,i){i.d(l,{Z:function(){return t}});let t=(0,i(79205).Z)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},17689:function(e,l,i){i.d(l,{Z:function(){return t}});let t=(0,i(79205).Z)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},38815:function(e,l,i){i.r(l);var t=i(57437),n=i(2265),r=i(71533),a=i(28124),s=i(18930),o=i(99397),c=i(48736),d=i(82068),m=i(17580),u=i(64170),p=i(40875),x=i(30401),f=i(8522),h=i(51817),g=i(17689),j=i(12381),v=i(7162),y=i(40279),b=i(23675),N=i(93448),w=i(74291),k=i(31593),C=i(75060),I=i(12749),z=i(28786),T=i(90641),E=i(81573),_=i(15291),Z=i(62170),R=i(99376),O=i(14438),S=i(33145),U=i(40387),D=i(2596);let L=[{id:"1",title:"Card Title",content:"Card Description",icon:"mdi:earth",type:"icon",url:"",linkToId:"",color:"#000000",editOpen:!1},{id:"2",title:"Card Title",content:"Card Description",icon:"mdi:earth",type:"icon",url:"",editOpen:!1,color:"#000000"},{id:"3",title:"Card Title",content:"Card Description",icon:"mdi:earth",type:"icon",url:"",editOpen:!1,color:"#000000"}],A=e=>{var l,i,a;let{item:o,onUpdate:L,onRemove:A,canRemove:Y,brandColor:G,columns:F,kbDocuments:P}=e,J=(0,n.useRef)(null),q=(0,n.useRef)(null),{search:M,setSearch:Q,icons:B}=(0,z.Q)(),[V,H]=(0,n.useState)(!1),[W,$]=(0,n.useState)(),[K,X]=(0,n.useState)(o.title),ee=(0,n.useRef)(null),[el,ei]=(0,n.useState)(o.content),[et,en]=(0,n.useState)(!1),er=(0,n.useRef)(null),ea=(0,R.useParams)(),{documentId:es}=null!=ea?ea:{documentId:""};(0,n.useEffect)(()=>{ee.current&&ee.current.innerText!==K&&(ee.current.innerText=K)},[K]),(0,n.useEffect)(()=>{er.current&&er.current.innerText!==el&&(er.current.innerText=el)},[el]),(0,n.useEffect)(()=>{$(o)},[o]);let{mutateAsync:eo}=Z.hi.asset.uploadImageInEditor.useMutation(),ec=async e=>{try{if(e.size>2097152){O.Am.error("File size should be less than 2MB",{description:"Please upload a smaller file."});return}en(!0);let l=new FileReader,i=new Promise(e=>{l.onload=()=>{let i=l.result;e(i)}});l.readAsDataURL(e);let t=await i,n=await eo({customBg:t,pageId:es});n&&(null==W?void 0:W.type)==="image"&&$({...W,imageUrl:n,imageFileName:e.name}),en(!1)}catch(e){throw console.error("Error uploading file:",e),en(!1),e}},ed=()=>{if(!W)return"";let{linkToType:e,linkToId:l,url:i}=W;return e===E.E.ARTICLE&&l?"/doc/".concat(l):e===E.E.COLLECTION&&l?"/col/".concat(l):null!=i?i:""};return(0,t.jsxs)("div",{style:{"--hover-border-color":G},className:(0,N.cn)("group/card relative flex h-full flex-col overflow-hidden rounded-xl border hover:[border-color:var(--hover-border-color)]"),children:[(0,t.jsxs)("div",{className:(0,N.cn)("relative h-[135px] w-full p-4","image"===o.type&&F>1&&"aspect-video h-auto"),children:["icon"===o.type&&!!o.icon&&(0,t.jsx)("div",{className:"flex size-6 items-center justify-center text-[24px] leading-none",children:(0,t.jsx)(v.JO,{style:{color:o.color},icon:o.icon})})," ","image"===o.type&&!!o.imageUrl&&(0,t.jsx)(S.default,{src:o.imageUrl,alt:"",fill:!0,objectFit:"cover"})]}),(0,t.jsx)(k.Z,{}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 px-6 py-5",children:[(0,t.jsxs)("div",{className:"relative",children:[!(null===(l=ee.current)||void 0===l?void 0:l.innerText.trim())&&(0,t.jsx)("h4",{className:(0,N.cn)("absolute left-0 top-0 w-full  text-base font-medium text-gray-400 focus:outline-none"),children:"Enter title..."}),(0,t.jsx)("h4",{ref:ee,contentEditable:!0,suppressContentEditableWarning:!0,onInput:e=>{let l=e.currentTarget.innerText;X(l),L({title:l})},className:(0,N.cn)("relative z-10 w-full text-base font-medium focus:outline-none")})]}),(0,t.jsxs)("div",{className:"relative",children:[!(null===(i=er.current)||void 0===i?void 0:i.innerText.trim())&&(0,t.jsx)("p",{className:(0,N.cn)("absolute left-0 top-0 w-full text-base text-muted-foreground focus:outline-none"),children:"Enter description..."}),(0,t.jsx)("p",{ref:er,contentEditable:!0,suppressContentEditableWarning:!0,onInput:e=>{let l=e.currentTarget.innerText;ei(l),L({content:l})},className:(0,N.cn)("relative z-10 w-full text-base text-foreground-80 antialiased focus:outline-none")})]})]}),W&&!!ed().trim()&&(0,t.jsx)("div",{onClick:()=>window.open(ed(),"_blank"),className:(0,N.cn)("absolute right-12 top-2 z-50 flex size-8 !cursor-pointer items-center justify-center rounded-md border bg-background opacity-0 group-hover/card:opacity-100"),children:(0,t.jsx)(m.Z,{className:"size-4"})}),W&&(0,t.jsxs)(w.Vq,{onOpenChange:e=>{var l;o.editOpen&&!e&&L({...W,editOpen:!1}),(null===(l=J.current)||void 0===l?void 0:l.value)&&(J.current.value="")},defaultOpen:o.editOpen,children:[(0,t.jsx)(w.hg,{asChild:!0,children:(0,t.jsx)("div",{className:(0,N.cn)("absolute right-2 top-2 flex size-8 cursor-pointer items-center justify-center rounded-md border bg-background opacity-0 group-hover/card:opacity-100"),children:(0,t.jsx)(r.Z,{className:"size-4"})})}),(0,t.jsxs)(w.cZ,{className:"max-w-[358px] gap-0 p-0",ref:q,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b p-4",children:[(0,t.jsx)(u.Z,{className:"size-4"}),(0,t.jsx)("p",{className:"text-lg font-semibold",children:"Edit Feature Card"})]}),(0,t.jsxs)("form",{className:"flex flex-col gap-4 p-4",onSubmit:e=>{e.preventDefault(),L({...W,editOpen:!1}),X(W.title),ei(W.content)},children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(C._,{children:"Title"}),(0,t.jsx)(y.I,{value:W.title,onChange:e=>$({...W,title:e.target.value}),required:!0,placeholder:"Enter title..."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(C._,{children:"Description"}),(0,t.jsx)(b.g,{value:W.content,onChange:e=>$({...W,content:e.target.value}),placeholder:"Enter description..."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(C._,{children:"Link To"}),(0,t.jsxs)(_.Ph,{defaultValue:W.linkToType?"document":"url",onValueChange:e=>{$({...W,linkToType:"url"===e?void 0:E.E.ARTICLE})},children:[(0,t.jsx)(_.i4,{children:(0,t.jsx)(_.ki,{placeholder:"Select card placeholder"})}),(0,t.jsx)(_.Bw,{children:(0,t.jsxs)(_.DI,{children:[(0,t.jsx)(_.Ql,{value:"url",children:"Custom Link"}),(0,t.jsx)(_.Ql,{value:"document",children:"Article or Collection"})]})})]})]}),W.linkToType?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(C._,{children:"Select Article or Collection"}),(0,t.jsxs)(I.J2,{open:V,onOpenChange:H,children:[(0,t.jsx)(I.xo,{asChild:!0,children:(0,t.jsxs)(j.z,{variant:"outline",role:"combobox","aria-expanded":V,className:"line-clamp-1 flex w-[326px] px-3 hover:bg-transparent",children:[W.linkToId?(()=>{let e=null==P?void 0:P.find(e=>
1e.id===(null==W?void 0:W.linkToId));return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,N.cn)("size-4 shrink-0 overflow-hidden rounded-sm transition-all"),children:"ICON"===e.iconType&&e.iconifyIcon?(0,t.jsx)(v.JO,{className:"shrink-0 text-base  leading-none",noobserver:!0,icon:e.iconifyIcon}):e.iconEmoji&&"EMOJI"===e.iconType?(0,t.jsx)("p",{className:"text-base leading-none",children:e.iconEmoji}):e.iconImageUrl&&"IMAGE"===e.iconType?(0,t.jsx)("div",{className:"relative size-4",children:(0,t.jsx)(S.default,{src:e.iconImageUrl,alt:"",objectFit:"cover",objectPosition:"center",fill:!0})}):e.type===E.E.ARTICLE?(0,t.jsx)(c.Z,{className:"size-4"}):(0,t.jsx)(d.Z,{className:"size-4"})}),(0,t.jsx)("p",{className:" w-[400px] overflow-hidden text-ellipsis whitespace-nowrap text-left font-normal",children:e.title})]}):null})():"Select...",(0,t.jsx)(p.Z,{className:(0,N.cn)("ml-auto transition-all",V&&"rotate-180")})]})}),(0,t.jsx)(I.yk,{className:"z-[99999999] w-[326px] p-0",disablePortal:!0,children:(0,t.jsxs)(U.mY,{children:[(0,t.jsx)(D.sZ,{placeholder:"Search Article or Collection...",className:"h-9"}),(0,t.jsxs)(D.e8,{children:[(0,t.jsx)(D.rb,{children:"No published article or collection found."}),(0,t.jsx)(D.fu,{children:null==P?void 0:P.map((e,l)=>(0,t.jsxs)(D.di,{value:"".concat(e.title,"_").concat(l),onSelect:()=>{var l,i;"icon"===W.type?$({...W,title:e.title,content:e.description,icon:null!==(l=e.iconifyIcon)&&void 0!==l?l:W.icon,linkToType:e.type,linkToId:e.id}):$({...W,title:e.title,content:e.description,imageUrl:null!==(i=e.iconImageUrl)&&void 0!==i?i:W.imageUrl,linkToType:e.type,linkToId:e.id}),H(!1)},children:[(0,t.jsx)("div",{className:(0,N.cn)("size-4 shrink-0 overflow-hidden rounded-sm transition-all"),children:"ICON"===e.iconType&&e.iconifyIcon?(0,t.jsx)(v.JO,{className:"text-base leading-none",noobserver:!0,icon:e.iconifyIcon}):e.iconEmoji&&"EMOJI"===e.iconType?(0,t.jsx)("p",{className:"text-base leading-none",children:e.iconEmoji}):e.iconImageUrl&&"IMAGE"===e.iconType?(0,t.jsx)("div",{className:"relative size-4",children:(0,t.jsx)(S.default,{src:e.iconImageUrl,alt:"",objectFit:"cover",objectPosition:"center",fill:!0})}):e.type===E.E.ARTICLE?(0,t.jsx)(c.Z,{className:"size-4 shrink-0 "}):(0,t.jsx)(d.Z,{className:"size-4 shrink-0 "})}),(0,t.jsx)("p",{className:"line-clamp-1",children:e.title}),(0,t.jsx)(x.Z,{className:(0,N.cn)("ml-auto",W.linkToId===e.id?"opacity-100":"opacity-0")})]},e.id))})]})]})})]})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(C._,{children:"Custom Link"}),(0,t.jsx)(y.I,{value:W.url,onChange:e=>$({...W,url:e.target.value}),placeholder:"Enter url..."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(C._,{children:"Cover Type"}),(0,t.jsxs)(_.Ph,{value:W.type,onValueChange:e=>{let l={...W,type:e};"icon"===l.type?l.icon||(l.icon="",l.color="#000000"):"image"!==l.type||l.imageUrl||(l.imageUrl="",l.imageFileName=""),$(l)},children:[(0,t.jsx)(_.i4,{children:(0,t.jsx)(_.ki,{placeholder:"Select card placeholder"})}),(0,t.jsx)(_.Bw,{children:(0,t.jsxs)(_.DI,{children:[(0,t.jsx)(_.Ql,{value:"image",children:"Image"}),(0,t.jsx)(_.Ql,{value:"icon",children:"Icon"})]})})]})]}),"icon"===W.type&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(C._,{children:"Icon"}),(0,t.jsxs)(I.J2,{children:[(0,t.jsx)(I.xo,{className:"",children:(0,t.jsxs)("div",{className:"flex h-9 items-center gap-2 rounded-md border p-2 text-sm capitalize focus-visible:ring-1 focus-visible:ring-ring",children:[(0,t.jsx)("div",{className:"flex aspect-square size-4 min-w-min items-center justify-center rounded-md",children:!!W.icon&&(0,t.jsx)(v.JO,{icon:W.icon})}),null===(a=W.icon.split(":")[1])||void 0===a?void 0:a.replace("-"," ")]})}),(0,t.jsxs)(I.yk,{disablePortal:!0,className:"pointer-events-auto z-[99999999] w-[258px] p-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-2 pb-1.5 pt-2",children:[(0,t.jsx)(y.I,{placeholder:"Search for icon...",type:"search",value:M,onChange:e=>Q(e.target.value),className:"rounded-md dark:bg-primary-foreground"}),(0,t.jsx)("div",{onClick:()=>{var e,l;$({...W,icon:null!==(l=null===(e=B[Math.floor(Math.random()*B.length)])||void 0===e?void 0:e.icon)&&void 0!==l?l:""})},className:"flex aspect-square size-9  min-w-min cursor-pointer items-center justify-center rounded-md border hover:bg-muted dark:bg-primary-foreground",children:(0,t.jsx)(f.Z,{className:"size-4"})})]}),(0,t.jsx)("p",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:"Icons"}),(0,t.jsx)(T.x,{className:"h-[240px]",children:B.length?(0,t.jsx)("div",{className:"flex flex-wrap gap-2 px-3 py-1.5",children:B.map(e=>{let{icon:l,Component:i}=e;return(0,t.jsxs)(j.z,{type:"button",role:"button",onClick:()=>{$({...W,icon:l})},className:"flex aspect-square size-8 min-w-min items-center justify-center overflow-hidden p-0",variant:W.icon===l?"default":"outline",children:[(0,t.jsx)(i,{className:"shrink-0 !text-base"}),(0,t.jsx)("span",{className:"sr-only",children:l})]},l)})}):(0,t.jsxs)("div",{className:"col-span-full flex grow flex-col items-center justify-center gap-2 text-center",children:[(0,t.jsx)("p",{children:"No icons foun
1d..."}),(0,t.jsx)(j.z,{onClick:()=>Q(""),variant:"ghost",children:"Clear search"})]})})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(C._,{children:"Color"}),(0,t.jsxs)("div",{className:"flex h-9 items-center gap-2 rounded-md border p-2 focus-visible:ring-1 focus-visible:ring-ring",children:[(0,t.jsx)("div",{style:{background:W.color},className:"relative size-4 cursor-pointer rounded-sm",children:(0,t.jsx)("input",{type:"color",className:"opacity-0",value:W.color,onChange:e=>$({...W,color:e.target.value})})}),(0,t.jsx)("input",{value:W.color,onChange:e=>$({...W,color:e.target.value}),className:"w-full appearance-none bg-transparent text-sm focus:outline-none",placeholder:"#000000"})]})]})]}),"image"===W.type&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(C._,{children:"Image"}),(0,t.jsxs)("div",{onClick:()=>{var e;return null===(e=J.current)||void 0===e?void 0:e.click()},className:"flex h-9 cursor-pointer items-center justify-between gap-2 rounded-md border p-2 text-sm capitalize focus-visible:ring-1 focus-visible:ring-ring",children:[(0,t.jsx)("input",{ref:J,type:"file",accept:"image/*",className:"hidden",id:"imageUpload",onChange:e=>{var l;let i=null===(l=e.target.files)||void 0===l?void 0:l[0];i&&ec(i)},disabled:et}),et?(0,t.jsxs)("div",{className:"flex w-full flex-1 items-center gap-2",children:[(0,t.jsx)(h.Z,{className:"size-4 animate-spin"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Uploading..."})]}):(0,t.jsx)("p",{className:(0,N.cn)("line-clamp-1 text-sm",!W.imageFileName&&"text-muted-foreground"),children:W.imageFileName?W.imageFileName:"Click to upload"}),(0,t.jsx)(g.Z,{className:"size-4 text-muted-foreground"})]})]})}),(0,t.jsx)(k.Z,{}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[Y&&(0,t.jsx)(w.GG,{asChild:!0,children:(0,t.jsx)(j.z,{onClick:A,variant:"secondary",size:"icon",children:(0,t.jsx)(s.Z,{})})}),(0,t.jsx)(w.GG,{asChild:!0,children:(0,t.jsx)(j.z,{type:"submit",children:"Save Changes"})})]})]})]})]})]},o.id)};l.default=e=>{let l=(0,R.useParams)(),[i,c]=(0,n.useState)(e.block.props.columns),d=e.block.props.items,[m,u]=(0,n.useState)(()=>{try{return JSON.parse(d)}catch(e){return L}}),{data:p,isLoading:x}=Z.hi.articleQuery.getPageSmallData.useQuery({pageId:l.documentId},{enabled:!!(null==l?void 0:l.documentId)}),f=null==p?void 0:p.kbId,{data:h,isLoading:g}=Z.hi.articleQuery.getAllArticlesInKb.useQuery({kbId:f,locale:null},{enabled:!!f}),{data:v,isLoading:y}=Z.hi.collection.getAllCollectionsInKb.useQuery({kbId:f,locale:null},{enabled:!!f}),b=x||g||y?null:[...(null!=h?h:[]).filter(e=>e.publishedPage&&!e.publishedPage.isUnPublished).map(e=>{var l;return{id:e.id,type:E.E.ARTICLE,title:e.title,iconImageUrl:e.iconImageUrl,iconEmoji:e.iconEmoji,iconType:e.iconType,description:null!==(l=e.description)&&void 0!==l?l:"",iconifyIcon:e.iconifyIcon}}),...(null!=v?v:[]).map(e=>{var l;return{id:e.id,type:E.E.COLLECTION,title:e.title,iconImageUrl:e.iconImageUrl,iconEmoji:e.iconEmoji,iconType:e.iconType,description:null!==(l=e.description)&&void 0!==l?l:"",iconifyIcon:e.iconifyIcon}})].sort((e,l)=>e.title.localeCompare(l.title));(0,n.useEffect)(()=>{try{let e=JSON.parse(d);u(e)}catch(e){u(L)}},[d]);let I=l=>{u(l),e.editor.updateBlock(e.block.id,{props:{items:JSON.stringify(l)}})},z=()=>{if(m.length){let e={...m[m.length-1],id:Date.now().toString(),title:"",linkToId:"",url:"",content:"Card description",editOpen:!0};I([...m,e])}else I([...m,{id:Date.now().toString(),title:"",type:"icon",content:"Card description",icon:"mdi:earth",url:"",color:e.block.props.textColor,editOpen:!0}])},T=e=>{m.length>1&&I(m.filter(l=>l.id!==e))},_=(e,l)=>{I(m.map(i=>i.id===e?{...i,...l}:i))};return(0,t.jsx)("div",{className:(0,N.cn)("group/collection grid grid-cols-1 gap-[8px]",2===e.block.props.columns&&"grid-cols-2",3===e.block.props.columns&&"grid-cols-3"),children:m.map((l,n)=>n===m.length-1?(0,t.jsxs)("div",{className:"relative h-full",children:[(0,t.jsx)(A,{item:l,brandColor:e.block.props.textColor,onUpdate:e=>_(l.id,e),onRemove:()=>T(l.id),canRemove:m.length>1,columns:e.block.props.columns,kbDocuments:b})," ",(0,t.jsxs)(w.Vq,{onOpenChange:()=>c(e.block.props.columns),children:[(0,t.jsx)(w.hg,{asChild:!0,children:(0,t.jsx)("div",{className:"absolute -right-10 bottom-10 flex size-8 cursor-pointer items-center justify-center rounded-md border opacity-0 group-hover/collection:opacity-100 ",children:(0,t.jsx)(r.Z,{className:"size-4"})})}),(0,t.jsxs)(w.cZ,{className:"w-[360px] gap-0 p-0",children:[" ",(0,t.jsxs)("div",{className:"flex items-center gap-2 p-4",children:[" ",(0,t.jsx)(a.Z,{className:"size-4"})," ",(0,t.jsx)("p",{className:"text-lg font-semibold",children:"Edit FeatureCard Group"})]}),(0,t.jsx)(k.Z,{}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(C._,{children:" Columns"})," ",(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(j.z,{className:"w-full",onClick:()=>c(1),variant:1===i?"default":"outline",children:"1 Column"}),(0,t.jsx)(j.z,{className:"w-full",onClick:()=>c(2),variant:2===i?"default":"outline",children:"2 Column"}),(0,t.jsx)(j.z,{className:"w-full",onClick:()=>c(3),variant:3===i?"default":"outline",children:"3 Column"})]})]}),(0,t.jsx)(k.Z,{}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,t.jsx)(w.GG,{asChild:!0,children:(0,t.jsx)(j.z,{onClick:()=>{e.editor.removeBlocks([e.block])},variant:"secondary",size:"icon",children:(0,t.jsx)(s.Z,{})})}),(0,t.jsx)(w.GG,{asChild:!0,children:(0,t.jsx)(j.z,{onClick:()=>{e.editor.updateBlock(e.block,{props:{...e,columns:i}})},children:"Save Changes"})})]})]})]})]}),(0,t.jsx)("div",{onClick:z,className:"absolute -right-10 bottom-0 flex size-8 cursor-pointer items-center justify-center rounded-md border opacity-0 group-hover/collection:opacity-100 ",children:(0,t.jsx)(o.Z,{className:"size-4"})})]},l.id):(0,t.jsx)(A,{brandColor:e.block.props.textColor,item:l,onUpdate:e=>_(l.id,e),onRemove:()=>T(l.id),canRemove:m.length>1,columns:e.block.props.columns,kbDocuments:b},l.id))})}},2596:function(e,l,i){i.d(l,{di:function(){return p},e8:function(){return d},fu:function(){return u},mY:function(){return o},rb:function(){return m},sZ:function(){return c}});
1var t=i(57437),n=i(2265),r=i(40387),a=i(73247),s=i(93448);i(74291);let o=n.forwardRef((e,l)=>{let{className:i,...n}=e;return(0,t.jsx)(r.mY,{ref:l,className:(0,s.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",i),...n})});o.displayName=r.mY.displayName;let c=n.forwardRef((e,l)=>{let{className:i,...n}=e;return(0,t.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,t.jsx)(a.Z,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)(r.mY.Input,{ref:l,className:(0,s.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",i),...n})]})});c.displayName=r.mY.Input.displayName;let d=n.forwardRef((e,l)=>{let{className:i,...n}=e;return(0,t.jsx)(r.mY.List,{ref:l,className:(0,s.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",i),...n})});d.displayName=r.mY.List.displayName;let m=n.forwardRef((e,l)=>(0,t.jsx)(r.mY.Empty,{ref:l,className:"py-6 text-center text-sm",...e}));m.displayName=r.mY.Empty.displayName;let u=n.forwardRef((e,l)=>{let{className:i,...n}=e;return(0,t.jsx)(r.mY.Group,{ref:l,className:(0,s.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",i),...n})});u.displayName=r.mY.Group.displayName,n.forwardRef((e,l)=>{let{className:i,...n}=e;return(0,t.jsx)(r.mY.Separator,{ref:l,className:(0,s.cn)("-mx-1 h-px bg-border",i),...n})}).displayName=r.mY.Separator.displayName;let p=n.forwardRef((e,l)=>{let{className:i,...n}=e;return(0,t.jsx)(r.mY.Item,{ref:l,className:(0,s.cn)("relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",i),...n})});p.displayName=r.mY.Item.displayName},90641:function(e,l,i){i.d(l,{B:function(){return o},x:function(){return s}});var t=i(57437),n=i(2265),r=i(43643),a=i(93448);let s=n.forwardRef((e,l)=>{var i;let{className:n,children:s,hideScrollbar:c=!1,viewportRef:d,...m}=e;return(0,t.jsxs)(r.fC,{ref:l,scrollHideDelay:null!==(i=m.scrollHideDelay)&&void 0!==i?i:0,className:(0,a.cn)("relative overflow-hidden",n),...m,children:[(0,t.jsx)(r.l_,{ref:d,className:"h-full w-full rounded-[inherit]",children:s}),(0,t.jsx)(o,{hidden:c}),(0,t.jsx)(r.Ns,{})]})});s.displayName=r.fC.displayName;let o=n.forwardRef((e,l)=>{let{className:i,orientation:n="vertical",hidden:s=!1,...o}=e;return(0,t.jsx)(r.gb,{ref:l,orientation:n,className:(0,a.cn)("flex touch-none select-none transition-colors","vertical"===n&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===n&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s&&"hidden",i),...o,children:(0,t.jsx)(r.q4,{className:"relative flex-1 rounded-full bg-zinc-400"})})});o.displayName=r.gb.displayName},15291:function(e,l,i){i.d(l,{Bw:function(){return x},DI:function(){return c},Ph:function(){return o},Ql:function(){return f},U$:function(){return h},i4:function(){return m},ki:function(){return d}});var t=i(57437),n=i(2265),r=i(20653),a=i(74797),s=i(93448);let o=a.fC,c=a.ZA,d=a.B4,m=n.forwardRef((e,l)=>{let{className:i,rightIcon:n,children:o,...c}=e;return(0,t.jsxs)(a.xz,{ref:l,className:(0,s.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",i),...c,children:[o,(0,t.jsx)(a.JO,{asChild:!0,children:n||(0,t.jsx)(r.v4q,{className:"h-4 w-4 transition-all data-[state=open]:rotate-180"})})]})});m.displayName=a.xz.displayName;let u=n.forwardRef((e,l)=>{let{className:i,...n}=e;return(0,t.jsx)(a.u_,{ref:l,className:(0,s.cn)("flex cursor-default items-center justify-center py-1",i),...n,children:(0,t.jsx)(r.g8U,{})})});u.displayName=a.u_.displayName;let p=n.forwardRef((e,l)=>{let{className:i,...n}=e;return(0,t.jsx)(a.$G,{ref:l,className:(0,s.cn)("flex cursor-default items-center justify-center py-1",i),...n,children:(0,t.jsx)(r.v4q,{})})});p.displayName=a.$G.displayName;let x=n.forwardRef((e,l)=>{let{className:i,children:n,position:r="popper",...o}=e;return(0,t.jsx)(a.h_,{children:(0,t.jsxs)(a.VY,{ref:l,className:(0,s.cn)("relative z-[9999999] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",i),position:r,...o,children:[(0,t.jsx)(u,{}),(0,t.jsx)(a.l_,{className:(0,s.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,t.jsx)(p,{})]})})});x.displayName=a.VY.displayName,n.forwardRef((e,l)=>{let{className:i,...n}=e;return(0,t.jsx)(a.__,{ref:l,className:(0,s.cn)("px-2 py-1.5 text-sm font-semibold",i),...n})}).displayName=a.__.displayName;let f=n.forwardRef((e,l)=>{let{className:i,children:n,...o}=e;return(0,t.jsxs)(a.ck,{ref:l,className:(0,s.cn)("relative flex w-full cursor-pointer select-none items-center rounded-md py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",i),...o,children:[(0,t.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(a.wU,{children:(0,t.jsx)(r.nQG,{className:"h-4 w-4"})})}),(0,t.jsx)(a.eT,{children:n})]})});f.displayName=a.ck.displayName;let h=n.forwardRef((e,l)=>{let{className:i,...n}=e;return(0,t.jsx)(a.Z0,{ref:l,className:(0,s.cn)("-mx-1 my-1 h-px bg-muted",i),...n})});h.displayName=a.Z0.displayName},28786:function(e,l,i){i.d(l,{Q:function(){return c}});var t=i(57437),n=i(7162),r=i(2265),a=i(83464);let s=async(e,l,i,t)=>{let n=new URL("/search","https://api.iconify.design"),r=(await a.Z.get(n.toString(),{params:{query:e,limit:48,start:0,prefixes:l,category:i,prefix:t}})).data;return{icons:(null==r?void 0:r.icons)||[],total:(null==r?void 0:r.total)||0}},o=["mdi:airplane","mdi:block-helper","mdi:calendar-month","mdi:camera-plus","mdi:car-sports","mdi:city","mdi:cloud-arrow-down","mdi:cog","mdi:credit-card","mdi:database","mdi:delete","mdi:dog","mdi:earth","mdi:eiffel-tower","mdi:exit-run","mdi:ferry","mdi:fruit-pear","mdi:gauge","mdi:gas-station-in-use","mdi:golf-cart","mdi:hail","mdi:home","mdi:image-edit","mdi:invoice-multiple","mdi:karate","mdi:leaf-maple","mdi:lightbulb-on","mdi:lock","mdi:map","mdi:map-marker","mdi:meditation","mdi:message-plus","mdi:microphone-plus","mdi:moped","mdi:mower","mdi:muffin","mdi:music-circle","mdi:paw","mdi:penguin","mdi:phone-classic","mdi:phone-in-talk","mdi:pine-tree","mdi:play","mdi:pliers","mdi:puzzle","mdi:radio","mdi:receipt-text","mdi:recycle"],c=()=>{let[e,l]=(0,r.useState)(""),[i,a]=(0,r.useState)([]);return(0,r.useEffect)(()=>{let l=async()=>{let{icons:l}=await s(e);a(l.filter(e=>!e.startsWith("logos:")).map(e=>({icon:e,Component:l=>{let{className:i}=l;return(0,t.jsx)(n.JO,{icon:e,className:i})}})))};if(e){let e=setTimeout(()=>{l()},300);return()=>clearTimeout(e)}a(o.map(e=>({icon:e,Component:l=>{let{className:i}=l;return(0,t.jsx)(n.JO,{icon:e,className:i})}})))},[e]),{search:e,setSearch:l,icons:i}}}}]);

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