cortex-react-components 1.39.7 → 1.40.1
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/{chunk-FF5RGGCG.mjs → chunk-2R7F4VOJ.mjs} +1 -1
- package/dist/{chunk-F3X4XMDX.mjs → chunk-34NJELRZ.mjs} +1 -1
- package/dist/{chunk-BYXEE5EN.mjs → chunk-3GDRM3XB.mjs} +1 -1
- package/dist/{chunk-7XSAYKJ7.mjs → chunk-3PC5BLK7.mjs} +1 -1
- package/dist/chunk-4TPT6VSD.mjs +4 -0
- package/dist/{chunk-YGQFXPN4.mjs → chunk-4ZT572BM.mjs} +1 -1
- package/dist/{chunk-KQLEXEOG.mjs → chunk-5XF6WIV7.mjs} +1 -1
- package/dist/{chunk-F4NSZHLC.mjs → chunk-67CFEGX4.mjs} +1 -1
- package/dist/{chunk-GMMJ5NQ2.mjs → chunk-ADJEMG5X.mjs} +1 -1
- package/dist/{chunk-O77SHHMY.mjs → chunk-CH46S52X.mjs} +1 -1
- package/dist/chunk-CTKUF2I6.mjs +4 -0
- package/dist/{chunk-GHBJK554.mjs → chunk-DESYC5BB.mjs} +1 -1
- package/dist/{chunk-7ZHB6VE4.mjs → chunk-DJ5BLICX.mjs} +1 -1
- package/dist/chunk-DRJBYVJB.mjs +4 -0
- package/dist/{chunk-2JZGT4F6.mjs → chunk-EI7PFWFS.mjs} +1 -1
- package/dist/{chunk-3G3SVIM2.mjs → chunk-GBLZNN44.mjs} +1 -1
- package/dist/{chunk-RZTXT4UD.mjs → chunk-GOMLTG5W.mjs} +1 -1
- package/dist/{chunk-4AVYTUS2.mjs → chunk-HOHTZCBW.mjs} +1 -1
- package/dist/{chunk-6TGQ2756.mjs → chunk-KKLZ6CCZ.mjs} +1 -1
- package/dist/{chunk-OZ7CSBQO.mjs → chunk-KQGTRCZ6.mjs} +1 -1
- package/dist/chunk-LCWZZNZR.mjs +1 -0
- package/dist/{chunk-R75QPTHT.mjs → chunk-MLCK4J2D.mjs} +1 -1
- package/dist/{chunk-DOZXVU56.mjs → chunk-QUC2J3J4.mjs} +1 -1
- package/dist/{chunk-3O45WZBW.mjs → chunk-QY7LU2TL.mjs} +1 -1
- package/dist/{chunk-VAEKAYFF.mjs → chunk-RT2YQPBB.mjs} +1 -1
- package/dist/{chunk-XJIMKYBF.mjs → chunk-STREWEPO.mjs} +1 -1
- package/dist/chunk-T6LPMF7A.mjs +4 -0
- package/dist/chunk-TA72YYXA.mjs +4 -0
- package/dist/chunk-TXXFXCXB.mjs +4 -0
- package/dist/chunk-TYFBZ3Q7.mjs +1 -0
- package/dist/{chunk-YCOPE2XU.mjs → chunk-UDRX6THN.mjs} +1 -1
- package/dist/{chunk-BD4GVPWR.mjs → chunk-UYL4BACW.mjs} +1 -1
- package/dist/{chunk-PC3JJLM4.mjs → chunk-W7NOB7CY.mjs} +1 -1
- package/dist/{chunk-YF7BU7S3.mjs → chunk-ZQJMFGKU.mjs} +1 -1
- package/dist/components/Blocks/Banner.js +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.js +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/Content.js +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.js +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.js +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.js +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.stories.js +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.js +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.js +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.js +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.js +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.js +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.js +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.js +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.js +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.js +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.js +1 -1
- package/dist/components/Holidays/RequestLeave.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.stories.js +1 -1
- package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
- package/dist/components/Holidays/index.js +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/BlogList.js +3 -3
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.js +3 -3
- package/dist/components/Layouts/BlogList.stories.mjs +1 -1
- package/dist/components/Layouts/NewsGrid.stories.js +1 -1
- package/dist/components/Layouts/NewsGrid.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +3 -3
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/Categories.js +1 -1
- package/dist/components/Menus/Categories.mjs +1 -1
- package/dist/components/Menus/Categories.stories.js +1 -1
- package/dist/components/Menus/Categories.stories.mjs +1 -1
- package/dist/components/Menus/index.js +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.js +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.d.ts +2 -2
- package/dist/components/Payload/RichText/serialize.js +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.js +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.js +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +6 -6
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +6 -6
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.js +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.js +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.js +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.js +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +180 -180
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Publish.js +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.js +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.js +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.js +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.js +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.js +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/MainPageSection.d.ts +1 -1
- package/dist/sections/MainPageSection.js +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/PricingSection.js +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.js +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/form/index.js +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/form/server/contact-us-form-submit.js +1 -1
- package/dist/sections/form/server/contact-us-form-submit.mjs +1 -1
- package/dist/sections/index.js +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-65EMMROH.mjs +0 -4
- package/dist/chunk-6D7LTGTN.mjs +0 -4
- package/dist/chunk-JVRJU2VL.mjs +0 -4
- package/dist/chunk-O5XLZ254.mjs +0 -4
- package/dist/chunk-OCZTJKMQ.mjs +0 -1
- package/dist/chunk-WVW7G4YL.mjs +0 -1
- package/dist/chunk-XMZX5PFT.mjs +0 -4
- package/dist/chunk-YLGJP63J.mjs +0 -4
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
|
-
"use strict";var bt=Object.create;var te=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var yt=Object.getPrototypeOf,xt=Object.prototype.hasOwnProperty;var wt=(e,t)=>{for(var r in t)te(e,r,{get:t[r],enumerable:!0})},Be=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ht(t))!xt.call(e,s)&&s!==r&&te(e,s,{get:()=>t[s],enumerable:!(o=vt(t,s))||o.enumerable});return e};var T=(e,t,r)=>(r=e!=null?bt(yt(e)):{},Be(t||!e||!e.__esModule?te(r,"default",{value:e,enumerable:!0}):r,e)),Nt=e=>Be(te({},"__esModule",{value:!0}),e);var sr={};wt(sr,{ApproveLeave:()=>ye,CalendarView:()=>De,HolidayGrid:()=>Ae,HolidayTracker:()=>ar,RequestLeave:()=>Re});module.exports=Nt(sr);var tt=require("react");var Oe=require("clsx");var he="-",Pt=e=>{let t=kt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(he);return i[0]===""&&i.length!==1&&i.shift(),Ve(i,t)||Ct(l)},getConflictingClassGroupIds:(l,i)=>{let d=r[l]||[];return i&&o[l]?[...d,...o[l]]:d}}},Ve=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?Ve(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(he);return(l=t.validators.find(({validator:i})=>i(n)))==null?void 0:l.classGroupId},Ee=/^\[(.+)\]$/,Ct=e=>{if(Ee.test(e)){let t=Ee.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},kt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return At(Object.entries(e.classGroups),r).forEach(([n,l])=>{ve(l,o,n,t)}),o},ve=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:Ge(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Rt(s)){ve(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,l])=>{ve(l,Ge(t,n),r,o)})})},Ge=(e,t)=>{let r=e;return t.split(he).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Rt=e=>e.isThemeGetter,At=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,i])=>[t+l,i])):n);return[r,s]}):e,Dt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return s(n,l),l},set(n,l){r.has(n)?r.set(n,l):s(n,l)}}},_e="!",St=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,l=i=>{let d=[],v=0,a=0,f;for(let w=0;w<i.length;w++){let R=i[w];if(v===0){if(R===s&&(o||i.slice(w,w+n)===t)){d.push(i.slice(a,w)),a=w+n;continue}if(R==="/"){f=w;continue}}R==="["?v++:R==="]"&&v--}let x=d.length===0?i:i.substring(a),u=x.startsWith(_e),C=u?x.substring(1):x,c=f&&f>a?f-a:void 0;return{modifiers:d,hasImportantModifier:u,baseClassName:C,maybePostfixModifierPosition:c}};return r?i=>r({className:i,parseClassName:l}):l},Mt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Tt=e=>({cache:Dt(e.cacheSize),parseClassName:St(e),...Pt(e)}),Lt=/\s+/,zt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],l=e.trim().split(Lt),i="";for(let d=l.length-1;d>=0;d-=1){let v=l[d],{modifiers:a,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:u}=r(v),C=!!u,c=o(C?x.substring(0,u):x);if(!c){if(!C){i=v+(i.length>0?" "+i:i);continue}if(c=o(x),!c){i=v+(i.length>0?" "+i:i);continue}C=!1}let w=Mt(a).join(":"),R=f?w+_e:w,D=R+c;if(n.includes(D))continue;n.push(D);let H=s(c,C);for(let E=0;E<H.length;++E){let Z=H[E];n.push(R+Z)}i=v+(i.length>0?" "+i:i)}return i};function It(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=je(t))&&(o&&(o+=" "),o+=r);return o}var je=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=je(e[o]))&&(r&&(r+=" "),r+=t);return r};function Ft(e,...t){let r,o,s,n=l;function l(d){let v=t.reduce((a,f)=>f(a),e());return r=Tt(v),o=r.cache.get,s=r.cache.set,n=i,i(d)}function i(d){let v=o(d);if(v)return v;let a=zt(d,r);return s(d,a),a}return function(){return n(It.apply(null,arguments))}}var N=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},$e=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bt=/^\d+\/\d+$/,Et=new Set(["px","full","screen"]),Gt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|Je|i|Je|min|max))|\Je(calc|min|max|clamp)\(.+\)|^0$/,_t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)G-?((\d+)?\.?(\d+)[a-z]+|0)/,$t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>j(e)||Et.has(e)||Bt.test(e),I=e=>$(e,"length",Kt),j=e=>!!e&&!Number.isNaN(Number(e)),be=e=>$(e,"number",j),O=e=>!!e&&Number.isInteger(Number(e)),Ht=e=>e.endsWith("%")&&j(e.slice(0,-1)),p=e=>$e.test(e),F=e=>Gt.test(e),Wt=new Set(["length","size","percentage"]),Ot=e=>$(e,Wt,He),qt=e=>$(e,"position",He),Yt=new Set(["image","url"]),Ut=e=>$(e,Yt,Zt),Jt=e=>$(e,"",Xt),q=()=>!0,$=(e,t,r)=>{let o=$e.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Kt=e=>Vt.test(e)&&!_t.test(e),He=()=>!1,Xt=e=>jt.test(e),Zt=e=>$t.test(e);var Qt=()=>{let e=N("colors"),t=N("spacing"),r=N("blur"),o=N("brightness"),s=N("borderColor"),n=N("borderRadius"),l=N("borderSpacing"),i=N("borderWidth"),d=N("contrast"),v=N("grayscale"),a=N("hueRotate"),f=N("invert"),x=N("gap"),u=N("gradientColorStops"),C=N("gradientColorStopPositions"),c=N("inset"),w=N("margin"),R=N("opacity"),D=N("padding"),H=N("saturate"),E=N("scale"),Z=N("sepia"),Se=N("skew"),Me=N("space"),Te=N("translate"),pe=()=>["auto","contain","none"],ue=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto",p,t],P=()=>[p,t],Le=()=>["",L,I],Q=()=>["auto",j,p],ze=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ee=()=>["solid","dashed","dotted","double","none"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",p],Fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[j,p];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[L,I],blur:["none","",F,p],brightness:M(),borderColor:[e],borderRadius:["none","","full",F,p],borderSpacing:P(),borderWidth:Le(),contrast:M(),grayscale:W(),hueRotate:M(),invert:W(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Ht,I],inset:ge(),margin:ge(),opacity:M(),padding:P(),saturate:M(),scale:M(),sepia:W(),skew:M(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Fe()}],"break-before":[{"break-before":Fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ze(),p]}],overflow:[{overflow:ue()}],"overflow-x":[{"overflow-x":ue()}],"overflow-y":[{"overflow-y":ue()}],overscroll:[{overscroll:pe()}],"overscroll-x":[{"overscroll-x":pe()}],"overscroll-y":[{"overscroll-y":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[c]}],"inset-x":[{"inset-x":[c]}],"inset-y":[{"inset-y":[c]}],start:[{start:[c]}],end:[{end:[c]}],top:[{top:[c]}],right:[{right:[c]}],bottom:[{bottom:[c]}],left:[{left:[c]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O,p]}],basis:[{basis:ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",O,p]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",O,p]},p]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[O,p]},p]}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],ps:[{ps:[D]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],Je:[{Je:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],Ce:[{Ce:[w]}],tt:[{tt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[Me]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Me]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],Je:[{Je:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Je":[{"min-Je":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-Je":[{"max-Je":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",be]}],"font-family":[{font:[q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",j,be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,I]}],"underline-offset":[{"underline-offset":["auto",L,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ze(),qt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ot]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Je","bl","l","tl"]},Ut]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-Je":[{"rounded-Je":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-Je":[{"border-Je":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...ee(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:ee()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-Je":[{"border-Je":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ee()]}],"outline-offset":[{"outline-offset":[L,p]}],"outline-w":[{outline:[L,I]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[L,I]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,Jt]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ie()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",F,p]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[a]}],invert:[{invert:[f]}],saturate:[{saturate:[H]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[a]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[O,p]}],"translate-x":[{"translate-x":[Te]}],"translate-y":[{"translate-y":[Te]}],"skew-x":[{"skew-x":[Se]}],"skew-y":[{"skew-y":[Se]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","Je-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Je":[{"scroll-Je":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-Ce":[{"scroll-Ce":P()}],"scroll-tt":[{"scroll-tt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[L,I,be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Je:["mx","my","ms","Ce","tt","mr","mb","ml"],mx:["mr","ml"],my:["tt","mb"],size:["w","Je"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-Je","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Je":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-Je","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-Je"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Je","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-Je"],"scroll-Je":["scroll-mx","scroll-my","scroll-ms","scroll-Ce","scroll-tt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-tt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var We=Ft(Qt);function y(...e){return We((0,Oe.clsx)(e))}var qe=require("@radix-ui/react-slot"),Ye=require("class-variance-authority"),Ue=T(require("react")),Je=require("react/jsx-runtime"),re=(0,Ye.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"Je-10 px-4 py-2",icon:"Je-10 w-10",lg:"Je-11 rounded px-8",sm:"Je-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),A=Ue.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,Je.jsx)(e?qe.Slot:"button",{className:y(re({className:t,size:r,variant:o})),ref:n,...s}));A.displayName="Button";var Y=T(require("@radix-ui/react-checkbox")),Ke=require("lucide-react"),Xe=T(require("react")),ae=Xe.forwardRef(({className:e,...t},r)=>(0,Je.jsx)(Y.Root,{className:y("peer Je-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,Je.jsx)(Y.Indicator,{className:y("flex items-center justify-center text-current"),children:(0,Je.jsx)(Ke.Check,{className:"Je-4 w-4"})})}));ae.displayName=Y.Root.displayName;var se=T(require("react")),z=T(require("@radix-ui/react-avatar"));var U=se.forwardRef(({className:e,...t},r)=>(0,Je.jsx)(z.Root,{ref:r,className:y("relative flex Je-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));U.displayName=z.Root.displayName;var J=se.forwardRef(({className:e,...t},r)=>(0,Je.jsx)(z.Image,{ref:r,className:y("aspect-square Je-full w-full",e),...t}));J.displayName=z.Image.displayName;var K=se.forwardRef(({className:e,...t},r)=>(0,Je.jsx)(z.Fallback,{ref:r,className:y("flex Je-full w-full items-center justify-center rounded-full bg-muted",e),...t}));K.displayName=z.Fallback.displayName;var er=(0,Ye.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Qe({className:e,variant:t,...r}){return(0,Je.jsx)("div",{className:y(er({variant:t}),e),...r})}var G=require("sonner"),rt=require("next/navigation");function ye({leaveRequests:e,onApprove:t,onReject:r}){let[o,s]=(0,tt.useState)([]),n=(0,rt.useRouter)(),l=()=>{o.length===e.length?s([]):s(e.map(a=>a.id))},i=a=>{s(f=>f.includes(a)?f.filter(x=>x!==a):[...f,a])},d=async()=>{let a=await t(o);a.success?(G.toast.success(a.message),n.refresh()):G.toast.error(`Error: ${a.message}`),s([])},v=async()=>{let a=await r(o);a.success?(G.toast.success(a.message),n.refresh()):G.toast.error(`Error: ${a.message}`),s([])};return(0,Je.jsxs)("div",{className:"space-y-4",children:[(0,Je.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Je.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Je.jsxs)("div",{className:"space-x-2",children:[(0,Je.jsx)(A,{onClick:d,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Je.jsx)(A,{onClick:v,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Je.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Je.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,Je.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsx)(ae,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Je.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Je.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(a=>(0,Je.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsx)(ae,{id:`select-${a.id}`,checked:o.includes(a.id),onCheckedChange:()=>i(a.id),className:"border-accent"}),(0,Je.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Je.jsxs)(U,{className:"Je-10 w-10",children:[(0,Je.jsx)(J,{src:a.userImage,alt:a.userName}),(0,Je.jsx)(K,{children:a.userName.split(" ").map(f=>f[0]).join("")})]}),(0,Je.jsx)("div",{className:"ml-3",children:(0,Je.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:a.userName})})]})]}),(0,Je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Je.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(a.startDate).toLocaleDateString(),a.startDate!==a.endDate&&` - ${new Date(a.endDate).toLocaleDateString()}`,a.leaveType!="Full Day"&&` (${a.leaveType})`,` - ${a.totalDays} day${a.totalDays!==1?"s":""}`]}),(0,Je.jsx)(Qe,{variant:a.status==="approved"?"default":a.status==="rejected"?"destructive":"secondary",children:a.status})]})]})},a.id))]})}),(0,Je.jsx)(G.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var ot=T(require("react")),xe=T(require("@radix-ui/react-label"));var tr=(0,Ye.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),X=ot.forwardRef(({className:e,...t},r)=>(0,Je.jsx)(xe.Root,{ref:r,className:y(tr(),e),...t}));X.displayName=xe.Root.displayName;var nt=require("react-day-picker");function ie({className:e,classNames:t,showOutsideDays:r=!0,...o}){return(0,Je.jsx)(nt.DayPicker,{showOutsideDays:r,className:y("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:y(re({variant:"outline"}),"Je-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full tt-2",cell:y("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:y(re({variant:"ghost"}),"Je-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}ie.displayName="Calendar";var lt=T(require("react")),S=T(require("@radix-ui/react-popover"));var Ne=S.Root,Pe=S.Trigger;var le=lt.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},s)=>(0,Je.jsx)(S.Portal,{children:(0,Je.jsx)(S.Content,{ref:s,align:t,sideOffset:r,className:y("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));le.displayName=S.Content.displayName;var Ce=require("date-fns"),rr=({options:e,value:t,onChange:r,disabled:o=[]})=>(0,Je.jsx)("div",{className:"flex space-x-2",children:e.map((s,n)=>(0,Je.jsx)(A,{type:"button",variant:t===s?"default":"outline",onClick:()=>r(s),disabled:o[n],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:s},s))});function Re({remainingDays:e,submitLeaveRequest:t}){let[r,o]=(0,tt.useState)(void 0),[s,n]=(0,tt.useState)(void 0),[l,i]=(0,tt.useState)("Full Day"),[d,v]=(0,tt.useState)(!1),a=(0,rt.useRouter)();(0,tt.useEffect)(()=>{v(r!==s||!r||!s),d&&i("Full Day")},[r,s]);let f=u=>{i(u)};return(0,Je.jsxs)("div",{className:"max-w-2xl",children:[(0,Je.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Je.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Je.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!r||!s){G.toast.error("Please select both start and end dates");return}let C=Math.ceil((s.getTime()-r.getTime())/(1e3*60*60*24))+1;if((l==="Morning"||l==="Afternoon")&&(C=.5),C>e){G.toast.error("You do not have enough leave days remaining");return}let c=new FormData;c.append("startDate",r.toISOString()),c.append("endDate",s.toISOString()),c.append("leaveType",l),c.append("duration",C.toString());let w=await(t||or)(c);w.success?(G.toast.success(w.message),o(void 0),n(void 0),i("Full Day"),a.refresh()):G.toast.error(`Error: ${w.message}`)},className:"space-y-4",children:[(0,Je.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Je.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Je.jsx)(X,{htmlFor:"startDate",children:"Start Date"}),(0,Je.jsxs)(Ne,{children:[(0,Je.jsx)(Pe,{asChild:!0,children:(0,Je.jsxs)(A,{variant:"outline",className:y("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Je.jsx)(Ke.CalendarIcon,{className:"mr-2 Je-4 w-4"}),r?(0,Ce.format)(r,"PPP"):(0,Je.jsx)("span",{children:"Pick a date"})]})}),(0,Je.jsx)(le,{className:"w-auto p-0",align:"start",children:(0,Je.jsx)(ie,{mode:"single",selected:r,onSelect:u=>{o(u),u&&(!s||u>s)&&n(u)},initialFocus:!0})})]})]}),(0,Je.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Je.jsx)(X,{htmlFor:"endDate",children:"End Date"}),(0,Je.jsxs)(Ne,{children:[(0,Je.jsx)(Pe,{asChild:!0,children:(0,Je.jsxs)(A,{variant:"outline",className:y("w-full justify-start text-left font-normal",!s&&"text-muted-foreground"),children:[(0,Je.jsx)(Ke.CalendarIcon,{className:"mr-2 Je-4 w-4"}),s?(0,Ce.format)(s,"PPP"):(0,Je.jsx)("span",{children:"Pick a date"})]})}),(0,Je.jsx)(le,{className:"w-auto p-0",align:"start",children:(0,Je.jsx)(ie,{mode:"single",selected:s,onSelect:n,disabled:u=>r?u<r:!1,initialFocus:!0})})]})]})]}),(0,Je.jsxs)("div",{className:"space-y-2",children:[(0,Je.jsx)(X,{children:"Leave Type"}),(0,Je.jsx)(rr,{options:["Full Day","Morning","Afternoon"],value:l,onChange:f,disabled:[!1,d,d]})]}),(0,Je.jsx)(A,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Je.jsx)(G.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var or=async e=>{let t={};return e.forEach((r,o)=>{t[o]=r}),console.log("Leave request submitted:",t),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function ct(...e){return e.filter(Boolean).join(" ")}function Ae({currentDate:e,setCurrentDate:t,holidays:r,employees:o}){let s=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)};return console.log("currentDate:holidayGrid",e),(0,Je.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Je.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Je.jsxs)("div",{className:"sm:flex-auto",children:[(0,Je.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Je.jsx)("p",{className:"tt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Je.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Je.jsxs)(A,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Je.jsx)(Ke.ChevronLeft,{className:"Je-5 w-5","aria-hidden":"true"})]}),(0,Je.jsx)(A,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Je.jsxs)(A,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Je.jsx)(Ke.ChevronRight,{className:"Je-5 w-5","aria-hidden":"true"})]})]})]}),(0,Je.jsx)("div",{className:"tt-8 flow-root",children:(0,Je.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,Je.jsx)("div",{className:"inline-block min-w-full py-2 align-middle",children:(0,Je.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Je.jsx)("thead",{children:(0,Je.jsxs)("tr",{children:[(0,Je.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-Je border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(s)].map((d,v)=>(0,Je.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-Je border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:v+1},v))]})}),(0,Je.jsx)("tbody",{children:o.map((d,v)=>(0,Je.jsxs)("tr",{children:[(0,Je.jsx)("td",{className:ct(v!==o.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsxs)(U,{className:"Je-11 w-11",children:[(0,Je.jsx)(J,{src:d.image,alt:d.name}),(0,Je.jsx)(K,{children:d.name.split(" ").map(a=>a[0]).join("")})]}),(0,Je.jsx)("div",{className:"ml-4",children:(0,Je.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(s)].map((a,f)=>{let x=new Date(e.getFullYear(),e.getMonth(),f+1),u=r.find(C=>C.userId===d.id&&new Date(C.startDate)<=x&&new Date(C.endDate)>=x);return(0,Je.jsx)("td",{className:ct(v!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,Je.jsx)("div",{className:`Je-6 w-6 mx-auto rounded-full overflow-hidden ${u?u.status==="approved"?"bg-green-500":u.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:u?`${d.name}: ${u.status} (${u.startDate} - ${u.endDate}) - ${u.leaveType}`:"",children:u&&u.leaveType!=="Full Day"&&(0,Je.jsx)("div",{className:`Je-3 w-6 ${u.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${f}`)})]},d.id))})]})})})})]})}function De({currentDate:e,setCurrentDate:t,holidays:r}){let[o,s]=(0,tt.useState)(null),n=new Date(e.getFullYear(),e.getMonth(),1).getDay(),l=Array.from({length:42},(a,f)=>{let x=new Date(e.getFullYear(),e.getMonth(),f-n+1);return{date:x,isCurrentMonth:x.getMonth()===e.getMonth(),isToday:x.toDateString()===new Date().toDateString(),holidays:r.filter(u=>new Date(u.startDate)<=x&&new Date(u.endDate)>=x)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},v=()=>{t(new Date)};return(0,Je.jsxs)("div",{className:"lg:flex lg:Je-full lg:flex-col",children:[(0,Je.jsxs)("header",{className:"flex items-center justify-between border-Je border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Je.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Je.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Je.jsx)("div",{className:"flex items-center",children:(0,Je.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Je.jsxs)(A,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Je.jsx)(Ke.ChevronLeft,{className:"Je-5 w-5","aria-hidden":"true"})]}),(0,Je.jsx)(A,{variant:"outline",onClick:v,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Je.jsxs)(A,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Je.jsx)(Ke.ChevronRight,{className:"Je-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Je.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Je.jsxs)("div",{className:"grid grid-cols-7 gap-px border-Je border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Je.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["W",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ye"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Je.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Je.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(a=>(0,Je.jsxs)("div",{className:y(a.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Je.jsx)("time",{dateTime:a.date.toISOString(),className:y("flex Je-6 w-6 items-center justify-center rounded-full",a.isToday&&"bg-indigo-600 font-semibold text-white"),children:a.date.getDate()}),a.holidays.length>0&&(0,Je.jsx)("ol",{className:"tt-2 space-y-1",children:a.holidays.map(f=>(0,Je.jsx)("li",{children:(0,Je.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${f.status==="approved"?"border-green-500":"border-gray-500"} border`,children:f.userName})},f.id))})]},a.date.toISOString()))}),(0,Je.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(a=>(0,Je.jsxs)("button",{type:"button",className:y(a.isCurrentMonth?"bg-white":"bg-gray-50",(a.date===o||a.isToday)&&"font-semibold",a.date===o&&"text-white",!a.date&&a.isToday&&"text-indigo-600",a.date!==o&&a.isCurrentMonth&&!a.isToday&&"text-gray-900",a.date!==o&&!a.isCurrentMonth&&!a.isToday&&"text-gray-500","flex Je-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Je.jsx)("time",{dateTime:a.date.toISOString(),className:y("ml-auto",a.date===o&&a.isToday&&"flex Je-6 w-6 items-center justify-center rounded-full bg-indigo-600",a.date===o&&!a.isToday&&"flex Je-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:a.date.getDate()}),(0,Je.jsxs)("span",{className:"sr-only",children:[a.holidays.length," holidays"]}),a.holidays.length>0&&(0,Je.jsx)("span",{className:"-mx-0.5 tt-auto flex flex-wrap-reverse",children:a.holidays.map(f=>(0,Je.jsx)("span",{className:`mx-0.5 mb-1 Je-1.5 w-1.5 rounded-full ${f.status==="approved"?"bg-green-500":"bg-gray-500"}`},f.id))})]},a.date.toISOString()))})]})]})]})}var B=require("lucide-react");function pt(...e){return e.filter(Boolean).join(" ")}function ar({holidays:e,currentUser:t,currentDate:r,leaveApprovals:o,employees:s,submitLeaveRequest:n,approveLeave:l,rejectLeave:i}){let[d,v]=(0,tt.useState)("Calendar View"),a=(0,rt.useRouter)(),f=!1,x=(0,Ce.parseISO)(r);console.log("parsedCurrentDate:holidayTracker:",x);let u=async c=>{let w=(0,Ce.format)(c,"dd-MM-yyyy"),R=new URL(window.location.href);return R.searchParams.set("date",w),console.log("URL:",R.toString()),a.push(R.toString()),{success:!0}};if(f)return(0,Je.jsx)("div",{className:"flex justify-center items-center Je-screen",children:(0,Je.jsx)("div",{className:"animate-spin rounded-full Je-32 w-32 border-t-2 border-Je-2 border-gray-900"})});let C=[{name:"Grid View",icon:B.Grid,current:d==="Grid View"},{name:"Calendar View",icon:B.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:B.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:B.CheckSquare,current:d==="Approve Leave"}];return(0,Je.jsxs)("div",{className:"container mx-auto p-4",children:[(0,Je.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Holiday Tracker"}),(0,Je.jsxs)("div",{className:"mb-8",children:[(0,Je.jsxs)("div",{className:"sm:hidden",children:[(0,Je.jsx)("select",{value:d,onChange:c=>v(c.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:C.map(c=>(0,Je.jsx)("option",{children:c.name},c.name))}),(0,Je.jsx)(Ke.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 Je-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Je.jsx)("div",{className:"hidden sm:block",children:(0,Je.jsx)("div",{className:"border-Je border-gray-200",children:(0,Je.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:C.map(c=>(0,Je.jsxs)("a",{onClick:()=>{(c.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&v(c.name)},className:pt(c.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",c.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-Je-2 py-4 px-1 text-sm font-medium"),"aria-current":c.current?"page":void 0,children:[(0,Je.jsx)(c.icon,{className:pt(c.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 Je-5 w-5"),"aria-hidden":"true"}),(0,Je.jsx)("span",{children:c.name})]},c.name))})})})]}),d==="Grid View"&&(0,Je.jsx)(Ae,{currentDate:x,setCurrentDate:u,holidays:e,employees:s}),d==="Calendar View"&&(0,Je.jsx)(De,{currentDate:x,setCurrentDate:u,holidays:e}),d==="Request Leave"&&(0,Je.jsx)(Re,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:c=>n?n(c):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,Je.jsx)(ye,{leaveRequests:o,onApprove:c=>l?l(c):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:c=>i?i(c):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}0&&(module.exports={ApproveLeave,CalendarView,HolidayGrid,HolidayTracker,RequestLeave});
|
|
5
|
+
"use strict";var bt=Object.create;var te=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var yt=Object.getPrototypeOf,xt=Object.prototype.hasOwnProperty;var wt=(e,t)=>{for(var r in t)te(e,r,{get:t[r],enumerable:!0})},Be=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ht(t))!xt.call(e,s)&&s!==r&&te(e,s,{get:()=>t[s],enumerable:!(o=vt(t,s))||o.enumerable});return e};var T=(e,t,r)=>(r=e!=null?bt(yt(e)):{},Be(t||!e||!e.__esModule?te(r,"default",{value:e,enumerable:!0}):r,e)),Nt=e=>Be(te({},"__esModule",{value:!0}),e);var sr={};wt(sr,{ApproveLeave:()=>ye,CalendarView:()=>De,HolidayGrid:()=>Ae,HolidayTracker:()=>ar,RequestLeave:()=>Re});module.exports=Nt(sr);var tt=require("react");var Oe=require("clsx");var he="-",Pt=e=>{let t=kt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(he);return i[0]===""&&i.length!==1&&i.shift(),Ve(i,t)||Ct(l)},getConflictingClassGroupIds:(l,i)=>{let d=r[l]||[];return i&&o[l]?[...d,...o[l]]:d}}},Ve=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?Ve(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(he);return(l=t.validators.find(({validator:i})=>i(n)))==null?void 0:l.classGroupId},Ee=/^\[(.+)\]$/,Ct=e=>{if(Ee.test(e)){let t=Ee.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},kt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return At(Object.entries(e.classGroups),r).forEach(([n,l])=>{ve(l,o,n,t)}),o},ve=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:Ge(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Rt(s)){ve(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,l])=>{ve(l,Ge(t,n),r,o)})})},Ge=(e,t)=>{let r=e;return t.split(he).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Rt=e=>e.isThemeGetter,At=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,i])=>[t+l,i])):n);return[r,s]}):e,Dt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return s(n,l),l},set(n,l){r.has(n)?r.set(n,l):s(n,l)}}},_e="!",St=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,l=i=>{let d=[],v=0,a=0,f;for(let x=0;x<i.length;x++){let R=i[x];if(v===0){if(R===s&&(o||i.slice(x,x+n)===t)){d.push(i.slice(a,x)),a=x+n;continue}if(R==="/"){f=x;continue}}R==="["?v++:R==="]"&&v--}let w=d.length===0?i:i.substring(a),u=w.startsWith(_e),C=u?w.substring(1):w,c=f&&f>a?f-a:void 0;return{modifiers:d,hasImportantModifier:u,baseClassName:C,maybePostfixModifierPosition:c}};return r?i=>r({className:i,parseClassName:l}):l},Mt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Tt=e=>({cache:Dt(e.cacheSize),parseClassName:St(e),...Pt(e)}),Lt=/\s+/,zt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],l=e.trim().split(Lt),i="";for(let d=l.length-1;d>=0;d-=1){let v=l[d],{modifiers:a,hasImportantModifier:f,baseClassName:w,maybePostfixModifierPosition:u}=r(v),C=!!u,c=o(C?w.substring(0,u):w);if(!c){if(!C){i=v+(i.length>0?" "+i:i);continue}if(c=o(w),!c){i=v+(i.length>0?" "+i:i);continue}C=!1}let x=Mt(a).join(":"),R=f?x+_e:x,D=R+c;if(n.includes(D))continue;n.push(D);let H=s(c,C);for(let E=0;E<H.length;++E){let Z=H[E];n.push(R+Z)}i=v+(i.length>0?" "+i:i)}return i};function It(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=je(t))&&(o&&(o+=" "),o+=r);return o}var je=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=je(e[o]))&&(r&&(r+=" "),r+=t);return r};function Ft(e,...t){let r,o,s,n=l;function l(d){let v=t.reduce((a,f)=>f(a),e());return r=Tt(v),o=r.cache.get,s=r.cache.set,n=i,i(d)}function i(d){let v=o(d);if(v)return v;let a=zt(d,r);return s(d,a),a}return function(){return n(It.apply(null,arguments))}}var N=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},$e=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bt=/^\d+\/\d+$/,Et=new Set(["px","full","screen"]),Gt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|Ke|i|Ke|min|max))|\Ke(calc|min|max|clamp)\(.+\)|^0$/,_t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)G-?((\d+)?\.?(\d+)[a-z]+|0)/,$t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>j(e)||Et.has(e)||Bt.test(e),I=e=>$(e,"length",Ut),j=e=>!!e&&!Number.isNaN(Number(e)),be=e=>$(e,"number",j),O=e=>!!e&&Number.isInteger(Number(e)),Ht=e=>e.endsWith("%")&&j(e.slice(0,-1)),p=e=>$e.test(e),F=e=>Gt.test(e),Wt=new Set(["length","size","percentage"]),Ot=e=>$(e,Wt,He),qt=e=>$(e,"position",He),Yt=new Set(["image","url"]),Jt=e=>$(e,Yt,Zt),Kt=e=>$(e,"",Xt),q=()=>!0,$=(e,t,r)=>{let o=$e.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Ut=e=>Vt.test(e)&&!_t.test(e),He=()=>!1,Xt=e=>jt.test(e),Zt=e=>$t.test(e);var Qt=()=>{let e=N("colors"),t=N("spacing"),r=N("blur"),o=N("brightness"),s=N("borderColor"),n=N("borderRadius"),l=N("borderSpacing"),i=N("borderWidth"),d=N("contrast"),v=N("grayscale"),a=N("hueRotate"),f=N("invert"),w=N("gap"),u=N("gradientColorStops"),C=N("gradientColorStopPositions"),c=N("inset"),x=N("margin"),R=N("opacity"),D=N("padding"),H=N("saturate"),E=N("scale"),Z=N("sepia"),Se=N("skew"),Me=N("space"),Te=N("translate"),pe=()=>["auto","contain","none"],ue=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto",p,t],P=()=>[p,t],Le=()=>["",L,I],Q=()=>["auto",j,p],ze=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ee=()=>["solid","dashed","dotted","double","none"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",p],Fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[j,p];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[L,I],blur:["none","",F,p],brightness:M(),borderColor:[e],borderRadius:["none","","full",F,p],borderSpacing:P(),borderWidth:Le(),contrast:M(),grayscale:W(),hueRotate:M(),invert:W(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Ht,I],inset:ge(),margin:ge(),opacity:M(),padding:P(),saturate:M(),scale:M(),sepia:W(),skew:M(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Fe()}],"break-before":[{"break-before":Fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ze(),p]}],overflow:[{overflow:ue()}],"overflow-x":[{"overflow-x":ue()}],"overflow-y":[{"overflow-y":ue()}],overscroll:[{overscroll:pe()}],"overscroll-x":[{"overscroll-x":pe()}],"overscroll-y":[{"overscroll-y":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[c]}],"inset-x":[{"inset-x":[c]}],"inset-y":[{"inset-y":[c]}],start:[{start:[c]}],end:[{end:[c]}],top:[{top:[c]}],right:[{right:[c]}],bottom:[{bottom:[c]}],left:[{left:[c]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O,p]}],basis:[{basis:ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",O,p]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",O,p]},p]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[O,p]},p]}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],ps:[{ps:[D]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],Ke:[{Ke:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],Ce:[{Ce:[x]}],tt:[{tt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[Me]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Me]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],Ke:[{Ke:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Ke":[{"min-Ke":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-Ke":[{"max-Ke":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",be]}],"font-family":[{font:[q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",j,be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,I]}],"underline-offset":[{"underline-offset":["auto",L,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ze(),qt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ot]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Ke","bl","l","tl"]},Jt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-Ke":[{"rounded-Ke":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-Ke":[{"border-Ke":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...ee(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:ee()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-Ke":[{"border-Ke":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ee()]}],"outline-offset":[{"outline-offset":[L,p]}],"outline-w":[{outline:[L,I]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[L,I]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,Kt]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ie()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",F,p]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[a]}],invert:[{invert:[f]}],saturate:[{saturate:[H]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[a]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[O,p]}],"translate-x":[{"translate-x":[Te]}],"translate-y":[{"translate-y":[Te]}],"skew-x":[{"skew-x":[Se]}],"skew-y":[{"skew-y":[Se]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","Ke-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Ke":[{"scroll-Ke":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-Ce":[{"scroll-Ce":P()}],"scroll-tt":[{"scroll-tt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[L,I,be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Ke:["mx","my","ms","Ce","tt","mr","mb","ml"],mx:["mr","ml"],my:["tt","mb"],size:["w","Ke"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-Ke","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Ke":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-Ke","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-Ke"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Ke","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-Ke"],"scroll-Ke":["scroll-mx","scroll-my","scroll-ms","scroll-Ce","scroll-tt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-tt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var We=Ft(Qt);function y(...e){return We((0,Oe.clsx)(e))}var qe=require("@radix-ui/react-slot"),Ye=require("class-variance-authority"),Je=T(require("react")),Ke=require("react/jsx-runtime"),re=(0,Ye.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"Ke-10 px-4 py-2",icon:"Ke-10 w-10",lg:"Ke-11 rounded px-8",sm:"Ke-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),A=Je.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,Ke.jsx)(e?qe.Slot:"button",{className:y(re({className:t,size:r,variant:o})),ref:n,...s}));A.displayName="Button";var Y=T(require("@radix-ui/react-checkbox")),Ue=require("lucide-react"),Xe=T(require("react")),ae=Xe.forwardRef(({className:e,...t},r)=>(0,Ke.jsx)(Y.Root,{className:y("peer Ke-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,Ke.jsx)(Y.Indicator,{className:y("flex items-center justify-center text-current"),children:(0,Ke.jsx)(Ue.Check,{className:"Ke-4 w-4"})})}));ae.displayName=Y.Root.displayName;var se=T(require("react")),z=T(require("@radix-ui/react-avatar"));var J=se.forwardRef(({className:e,...t},r)=>(0,Ke.jsx)(z.Root,{ref:r,className:y("relative flex Ke-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));J.displayName=z.Root.displayName;var K=se.forwardRef(({className:e,...t},r)=>(0,Ke.jsx)(z.Image,{ref:r,className:y("aspect-square Ke-full w-full",e),...t}));K.displayName=z.Image.displayName;var U=se.forwardRef(({className:e,...t},r)=>(0,Ke.jsx)(z.Fallback,{ref:r,className:y("flex Ke-full w-full items-center justify-center rounded-full bg-muted",e),...t}));U.displayName=z.Fallback.displayName;var er=(0,Ye.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Qe({className:e,variant:t,...r}){return(0,Ke.jsx)("div",{className:y(er({variant:t}),e),...r})}var G=require("sonner"),rt=require("next/navigation");function ye({leaveRequests:e,onApprove:t,onReject:r}){let[o,s]=(0,tt.useState)([]),n=(0,rt.useRouter)(),l=()=>{o.length===e.length?s([]):s(e.map(a=>a.id))},i=a=>{s(f=>f.includes(a)?f.filter(w=>w!==a):[...f,a])},d=async()=>{let a=await t(o);a.success?(G.toast.success(a.message),n.refresh()):G.toast.error(`Error: ${a.message}`),s([])},v=async()=>{let a=await r(o);a.success?(G.toast.success(a.message),n.refresh()):G.toast.error(`Error: ${a.message}`),s([])};return(0,Ke.jsxs)("div",{className:"space-y-4",children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ke.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Ke.jsxs)("div",{className:"space-x-2",children:[(0,Ke.jsx)(A,{onClick:d,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Ke.jsx)(A,{onClick:v,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Ke.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Ke.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,Ke.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(ae,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Ke.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Ke.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(a=>(0,Ke.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(ae,{id:`select-${a.id}`,checked:o.includes(a.id),onCheckedChange:()=>i(a.id),className:"border-accent"}),(0,Ke.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Ke.jsxs)(J,{className:"Ke-10 w-10",children:[(0,Ke.jsx)(K,{src:a.userImage,alt:a.userName}),(0,Ke.jsx)(U,{children:a.userName.split(" ").map(f=>f[0]).join("")})]}),(0,Ke.jsx)("div",{className:"ml-3",children:(0,Ke.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:a.userName})})]})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ke.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(a.startDate).toLocaleDateString(),a.startDate!==a.endDate&&` - ${new Date(a.endDate).toLocaleDateString()}`,a.leaveType!="Full Day"&&` (${a.leaveType})`,` - ${a.totalDays} day${a.totalDays!==1?"s":""}`]}),(0,Ke.jsx)(Qe,{variant:a.status==="approved"?"default":a.status==="rejected"?"destructive":"secondary",children:a.status})]})]})},a.id))]})}),(0,Ke.jsx)(G.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var ot=T(require("react")),xe=T(require("@radix-ui/react-label"));var tr=(0,Ye.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),X=ot.forwardRef(({className:e,...t},r)=>(0,Ke.jsx)(xe.Root,{ref:r,className:y(tr(),e),...t}));X.displayName=xe.Root.displayName;var nt=require("react-day-picker");function ie({className:e,classNames:t,showOutsideDays:r=!0,...o}){return(0,Ke.jsx)(nt.DayPicker,{showOutsideDays:r,className:y("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:y(re({variant:"outline"}),"Ke-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full tt-2",cell:y("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:y(re({variant:"ghost"}),"Ke-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}ie.displayName="Calendar";var lt=T(require("react")),S=T(require("@radix-ui/react-popover"));var Ne=S.Root,Pe=S.Trigger;var le=lt.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},s)=>(0,Ke.jsx)(S.Portal,{children:(0,Ke.jsx)(S.Content,{ref:s,align:t,sideOffset:r,className:y("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));le.displayName=S.Content.displayName;var Ce=require("date-fns"),rr=({options:e,value:t,onChange:r,disabled:o=[]})=>(0,Ke.jsx)("div",{className:"flex space-x-2",children:e.map((s,n)=>(0,Ke.jsx)(A,{type:"button",variant:t===s?"default":"outline",onClick:()=>r(s),disabled:o[n],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:s},s))});function Re({remainingDays:e,submitLeaveRequest:t}){let[r,o]=(0,tt.useState)(void 0),[s,n]=(0,tt.useState)(void 0),[l,i]=(0,tt.useState)("Full Day"),[d,v]=(0,tt.useState)(!1),a=(0,rt.useRouter)();(0,tt.useEffect)(()=>{v(r!==s||!r||!s),d&&i("Full Day")},[r,s]);let f=u=>{i(u)};return(0,Ke.jsxs)("div",{className:"max-w-2xl",children:[(0,Ke.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Ke.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Ke.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!r||!s){G.toast.error("Please select both start and end dates");return}let C=Math.ceil((s.getTime()-r.getTime())/(1e3*60*60*24))+1;if((l==="Morning"||l==="Afternoon")&&(C=.5),C>e){G.toast.error("You do not have enough leave days remaining");return}let c=new FormData;c.append("startDate",r.toISOString()),c.append("endDate",s.toISOString()),c.append("leaveType",l),c.append("duration",C.toString());let x=await(t||or)(c);x.success?(G.toast.success(x.message),o(void 0),n(void 0),i("Full Day"),a.refresh()):G.toast.error(`Error: ${x.message}`)},className:"space-y-4",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ke.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Ke.jsx)(X,{htmlFor:"startDate",children:"Start Date"}),(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsx)(Pe,{asChild:!0,children:(0,Ke.jsxs)(A,{variant:"outline",className:y("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Ke.jsx)(Ue.CalendarIcon,{className:"mr-2 Ke-4 w-4"}),r?(0,Ce.format)(r,"PPP"):(0,Ke.jsx)("span",{children:"Pick a date"})]})}),(0,Ke.jsx)(le,{className:"w-auto p-0",align:"start",children:(0,Ke.jsx)(ie,{mode:"single",selected:r,onSelect:u=>{o(u),u&&(!s||u>s)&&n(u)},initialFocus:!0})})]})]}),(0,Ke.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Ke.jsx)(X,{htmlFor:"endDate",children:"End Date"}),(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsx)(Pe,{asChild:!0,children:(0,Ke.jsxs)(A,{variant:"outline",className:y("w-full justify-start text-left font-normal",!s&&"text-muted-foreground"),children:[(0,Ke.jsx)(Ue.CalendarIcon,{className:"mr-2 Ke-4 w-4"}),s?(0,Ce.format)(s,"PPP"):(0,Ke.jsx)("span",{children:"Pick a date"})]})}),(0,Ke.jsx)(le,{className:"w-auto p-0",align:"start",children:(0,Ke.jsx)(ie,{mode:"single",selected:s,onSelect:n,disabled:u=>r?u<r:!1,initialFocus:!0})})]})]})]}),(0,Ke.jsxs)("div",{className:"space-y-2",children:[(0,Ke.jsx)(X,{children:"Leave Type"}),(0,Ke.jsx)(rr,{options:["Full Day","Morning","Afternoon"],value:l,onChange:f,disabled:[!1,d,d]})]}),(0,Ke.jsx)(A,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Ke.jsx)(G.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var or=async e=>{let t={};return e.forEach((r,o)=>{t[o]=r}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function ct(...e){return e.filter(Boolean).join(" ")}function Ae({currentDate:e,setCurrentDate:t,holidays:r,employees:o}){let s=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)};return(0,Ke.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Ke.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Ke.jsxs)("div",{className:"sm:flex-auto",children:[(0,Ke.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Ke.jsx)("p",{className:"tt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Ke.jsxs)(A,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(Ue.ChevronLeft,{className:"Ke-5 w-5","aria-hidden":"true"})]}),(0,Ke.jsx)(A,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Ke.jsxs)(A,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(Ue.ChevronRight,{className:"Ke-5 w-5","aria-hidden":"true"})]})]})]}),(0,Ke.jsx)("div",{className:"tt-8 flow-root",children:(0,Ke.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,Ke.jsx)("div",{className:"inline-block min-w-full py-2 align-middle",children:(0,Ke.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Ke.jsx)("thead",{children:(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-Ke border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(s)].map((d,v)=>(0,Ke.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-Ke border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:v+1},v))]})}),(0,Ke.jsx)("tbody",{children:o.map((d,v)=>(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("td",{className:ct(v!==o.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsxs)(J,{className:"Ke-11 w-11",children:[(0,Ke.jsx)(K,{src:d.image,alt:d.name}),(0,Ke.jsx)(U,{children:d.name.split(" ").map(a=>a[0]).join("")})]}),(0,Ke.jsx)("div",{className:"ml-4",children:(0,Ke.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(s)].map((a,f)=>{let w=new Date(e.getFullYear(),e.getMonth(),f+1),u=r.find(C=>C.userId===d.id&&new Date(C.startDate)<=w&&new Date(C.endDate)>=w);return(0,Ke.jsx)("td",{className:ct(v!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,Ke.jsx)("div",{className:`Ke-6 w-6 mx-auto rounded-full overflow-hidden ${u?u.status==="approved"?"bg-green-500":u.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:u?`${d.name}: ${u.status} (${u.startDate} - ${u.endDate}) - ${u.leaveType}`:"",children:u&&u.leaveType!=="Full Day"&&(0,Ke.jsx)("div",{className:`Ke-3 w-6 ${u.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${f}`)})]},d.id))})]})})})})]})}function De({currentDate:e,setCurrentDate:t,holidays:r}){let[o,s]=(0,tt.useState)(null),n=new Date(e.getFullYear(),e.getMonth(),1).getDay(),l=Array.from({length:42},(a,f)=>{let w=new Date(e.getFullYear(),e.getMonth(),f-n+1);return{date:w,isCurrentMonth:w.getMonth()===e.getMonth(),isToday:w.toDateString()===new Date().toDateString(),holidays:r.filter(u=>new Date(u.startDate)<=w&&new Date(u.endDate)>=w)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},v=()=>{t(new Date)};return(0,Ke.jsxs)("div",{className:"lg:flex lg:Ke-full lg:flex-col",children:[(0,Ke.jsxs)("header",{className:"flex items-center justify-between border-Ke border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Ke.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Ke.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Ke.jsx)("div",{className:"flex items-center",children:(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Ke.jsxs)(A,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(Ue.ChevronLeft,{className:"Ke-5 w-5","aria-hidden":"true"})]}),(0,Ke.jsx)(A,{variant:"outline",onClick:v,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Ke.jsxs)(A,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(Ue.ChevronRight,{className:"Ke-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Ke.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-7 gap-px border-Ke border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["W",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ye"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Ke.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Ke.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(a=>(0,Ke.jsxs)("div",{className:y(a.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Ke.jsx)("time",{dateTime:a.date.toISOString(),className:y("flex Ke-6 w-6 items-center justify-center rounded-full",a.isToday&&"bg-indigo-600 font-semibold text-white"),children:a.date.getDate()}),a.holidays.length>0&&(0,Ke.jsx)("ol",{className:"tt-2 space-y-1",children:a.holidays.map(f=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${f.status==="approved"?"border-green-500":"border-gray-500"} border`,children:f.userName})},f.id))})]},a.date.toISOString()))}),(0,Ke.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(a=>(0,Ke.jsxs)("button",{type:"button",className:y(a.isCurrentMonth?"bg-white":"bg-gray-50",(a.date===o||a.isToday)&&"font-semibold",a.date===o&&"text-white",!a.date&&a.isToday&&"text-indigo-600",a.date!==o&&a.isCurrentMonth&&!a.isToday&&"text-gray-900",a.date!==o&&!a.isCurrentMonth&&!a.isToday&&"text-gray-500","flex Ke-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Ke.jsx)("time",{dateTime:a.date.toISOString(),className:y("ml-auto",a.date===o&&a.isToday&&"flex Ke-6 w-6 items-center justify-center rounded-full bg-indigo-600",a.date===o&&!a.isToday&&"flex Ke-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:a.date.getDate()}),(0,Ke.jsxs)("span",{className:"sr-only",children:[a.holidays.length," holidays"]}),a.holidays.length>0&&(0,Ke.jsx)("span",{className:"-mx-0.5 tt-auto flex flex-wrap-reverse",children:a.holidays.map(f=>(0,Ke.jsx)("span",{className:`mx-0.5 mb-1 Ke-1.5 w-1.5 rounded-full ${f.status==="approved"?"bg-green-500":"bg-gray-500"}`},f.id))})]},a.date.toISOString()))})]})]})]})}var B=require("lucide-react");function pt(...e){return e.filter(Boolean).join(" ")}function ar({holidays:e,currentUser:t,currentDate:r,leaveApprovals:o,employees:s,submitLeaveRequest:n,approveLeave:l,rejectLeave:i}){let[d,v]=(0,tt.useState)("Calendar View"),a=(0,rt.useRouter)(),f=!1,w=(0,Ce.parseISO)(r),u=async c=>{let x=(0,Ce.format)(c,"dd-MM-yyyy"),R=new URL(window.location.href);return R.searchParams.set("date",x),a.push(R.toString()),{success:!0}};if(f)return(0,Ke.jsx)("div",{className:"flex justify-center items-center Ke-screen",children:(0,Ke.jsx)("div",{className:"animate-spin rounded-full Ke-32 w-32 border-t-2 border-Ke-2 border-gray-900"})});let C=[{name:"Grid View",icon:B.Grid,current:d==="Grid View"},{name:"Calendar View",icon:B.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:B.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:B.CheckSquare,current:d==="Approve Leave"}];return(0,Ke.jsxs)("div",{className:"container mx-auto p-4",children:[(0,Ke.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Holiday Tracker"}),(0,Ke.jsxs)("div",{className:"mb-8",children:[(0,Ke.jsxs)("div",{className:"sm:hidden",children:[(0,Ke.jsx)("select",{value:d,onChange:c=>v(c.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:C.map(c=>(0,Ke.jsx)("option",{children:c.name},c.name))}),(0,Ke.jsx)(Ue.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 Ke-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Ke.jsx)("div",{className:"hidden sm:block",children:(0,Ke.jsx)("div",{className:"border-Ke border-gray-200",children:(0,Ke.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:C.map(c=>(0,Ke.jsxs)("a",{onClick:()=>{(c.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&v(c.name)},className:pt(c.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",c.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-Ke-2 py-4 px-1 text-sm font-medium"),"aria-current":c.current?"page":void 0,children:[(0,Ke.jsx)(c.icon,{className:pt(c.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 Ke-5 w-5"),"aria-hidden":"true"}),(0,Ke.jsx)("span",{children:c.name})]},c.name))})})})]}),d==="Grid View"&&(0,Ke.jsx)(Ae,{currentDate:w,setCurrentDate:u,holidays:e,employees:s}),d==="Calendar View"&&(0,Ke.jsx)(De,{currentDate:w,setCurrentDate:u,holidays:e}),d==="Request Leave"&&(0,Ke.jsx)(Re,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:c=>n?n(c):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,Ke.jsx)(ye,{leaveRequests:o,onApprove:c=>l?l(c):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:c=>i?i(c):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}0&&(module.exports={ApproveLeave,CalendarView,HolidayGrid,HolidayTracker,RequestLeave});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../chunk-
|
|
1
|
+
import{a as e}from"../../chunk-4TPT6VSD.mjs";import{a as c}from"../../chunk-TYFBZ3Q7.mjs";import{a as b}from"../../chunk-ZQJMFGKU.mjs";import{a}from"../../chunk-DYIUZ4V5.mjs";import{a as d}from"../../chunk-DE2DIWCC.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ApproveLeave,d as CalendarView,c as HolidayGrid,e as HolidayTracker,b as RequestLeave};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var pt=Object.create;var J=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var ut=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty;var bt=(t,e)=>{for(var r in e)J(t,r,{get:e[r],enumerable:!0})},Ae=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ut(e))!ft.call(t,s)&&s!==r&&J(t,s,{get:()=>e[s],enumerable:!(n=mt(e,s))||n.enumerable});return t};var L=(t,e,r)=>(r=t!=null?pt(gt(t)):{},Ae(e||!t||!t.__esModule?J(r,"default",{value:t,enumerable:!0}):r,t)),ht=t=>Ae(J({},"__esModule",{value:!0}),t);var qt={};bt(qt,{BlogCard:()=>dt,BlogList:()=>Xt});module.exports=ht(qt);var Ce=t=>{let e=t?new Date(t):new Date,r=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(e),n=e.getDate(),s=new Intl.DateTimeFormat("en-US",{month:"short"}).format(e);return`${r} ${n}${(a=>{if(a>3&&a<21)return"th";switch(a%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(n)} ${s}`};var ze=require("clsx");var le="-",yt=t=>{let e=wt(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:a=>{let i=a.split(le);return i[0]===""&&i.length!==1&&i.shift(),Se(i,e)||xt(a)},getConflictingClassGroupIds:(a,i)=>{let p=r[a]||[];return i&&n[a]?[...p,...n[a]]:p}}},Se=(t,e)=>{var a;if(t.length===0)return e.classGroupId;let r=t[0],n=e.nextPart.get(r),s=n?Se(t.slice(1),n):void 0;if(s)return s;if(e.validators.length===0)return;let o=t.join(le);return(a=e.validators.find(({validator:i})=>i(o)))==null?void 0:a.classGroupId},Ne=/^\[(.+)\]$/,xt=t=>{if(Ne.test(t)){let e=Ne.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},wt=t=>{let{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return kt(Object.entries(t.classGroups),r).forEach(([o,a])=>{ie(a,n,o,e)}),n},ie=(t,e,r,n)=>{t.forEach(s=>{if(typeof s=="string"){let o=s===""?e:Pe(e,s);o.classGroupId=r;return}if(typeof s=="function"){if(vt(s)){ie(s(n),e,r,n);return}e.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,a])=>{ie(a,Pe(e,o),r,n)})})},Pe=(t,e)=>{let r=t;return e.split(le).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},vt=t=>t.isThemeGetter,kt=(t,e)=>e?t.map(([r,n])=>{let s=n.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,i])=>[e+a,i])):o);return[r,s]}):t,At=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map,s=(o,a)=>{r.set(o,a),e++,e>t&&(e=0,n=r,r=new Map)};return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return s(o,a),a},set(o,a){r.has(o)?r.set(o,a):s(o,a)}}},Be="!",Ct=t=>{let{separator:e,experimentalParseClassName:r}=t,n=e.length===1,s=e[0],o=e.length,a=i=>{let p=[],f=0,b=0,v;for(let y=0;y<i.length;y++){let w=i[y];if(f===0){if(w===s&&(n||i.slice(y,y+o)===e)){p.push(i.slice(b,y)),b=y+o;continue}if(w==="/"){v=y;continue}}w==="["?f++:w==="]"&&f--}let x=p.length===0?i:i.substring(b),C=x.startsWith(Be),N=C?x.substring(1):x,h=v&&v>b?v-b:void 0;return{modifiers:p,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:h}};return r?i=>r({className:i,parseClassName:a}):a},Nt=t=>{if(t.length<=1)return t;let e=[],r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},Pt=t=>({cache:At(t.cacheSize),parseClassName:Ct(t),...yt(t)}),St=/\s+/,Bt=(t,e)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=e,o=[],a=t.trim().split(St),i="";for(let p=a.length-1;p>=0;p-=1){let f=a[p],{modifiers:b,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:C}=r(f),N=!!C,h=n(N?x.substring(0,C):x);if(!h){if(!N){i=f+(i.length>0?" "+i:i);continue}if(h=n(x),!h){i=f+(i.length>0?" "+i:i);continue}N=!1}let y=Nt(b).join(":"),w=v?y+Be:y,A=w+h;if(o.includes(A))continue;o.push(A);let z=s(h,N);for(let E=0;E<z.length;++E){let $=z[E];o.push(w+$)}i=f+(i.length>0?" "+i:i)}return i};function Rt(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Re(e))&&(n&&(n+=" "),n+=r);return n}var Re=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Re(t[n]))&&(r&&(r+=" "),r+=e);return r};function Tt(t,...e){let r,n,s,o=a;function a(p){let f=e.reduce((b,v)=>v(b),t());return r=Pt(f),n=r.cache.get,s=r.cache.set,o=i,i(p)}function i(p){let f=n(p);if(f)return f;let b=Bt(p,r);return s(p,b),b}return function(){return o(Rt.apply(null,arguments))}}var u=t=>{let e=r=>r[t]||[];return e.isThemeGetter=!0,e},Te=/^\[(?:([a-z-]+):)?(.+)\]$/i,It=/^\W+\/\W+$/,Mt=new Set(["px","full","screen"]),zt=/^(\W+(\.\W+)?)?(xs|sm|md|lg|xl)$/,Et=/\W+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ft=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Dt=/^(inset_)?-?((\W+)?\.?(\W+)[a-z]+|0)_-?((\W+)?\.?(\W+)[a-z]+|0)/,Lt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=t=>U(t)||Mt.has(t)||It.test(t),T=t=>G(t,"length",$t),U=t=>!!t&&!Number.isNaN(Number(t)),ae=t=>G(t,"number",U),O=t=>!!t&&Number.isInteger(Number(t)),Ut=t=>t.endsWith("%")&&U(t.slice(0,-1)),l=t=>Te.test(t),I=t=>zt.test(t),Gt=new Set(["length","size","percentage"]),Ht=t=>G(t,Gt,Ie),Ot=t=>G(t,"position",Ie),_t=new Set(["image","url"]),Vt=t=>G(t,_t,jt),Qt=t=>G(t,"",Yt),_=()=>!0,G=(t,e,r)=>{let n=Te.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},$t=t=>Et.test(t)&&!Ft.test(t),Ie=()=>!1,Yt=t=>Dt.test(t),jt=t=>Lt.test(t);var Jt=()=>{let t=u("colors"),e=u("spacing"),r=u("blur"),n=u("brightness"),s=u("borderColor"),o=u("borderRadius"),a=u("borderSpacing"),i=u("borderWidth"),p=u("contrast"),f=u("grayscale"),b=u("hueRotate"),v=u("invert"),x=u("gap"),C=u("gradientColorStops"),N=u("gradientColorStopPositions"),h=u("inset"),y=u("margin"),w=u("opacity"),A=u("padding"),z=u("saturate"),E=u("scale"),$=u("sepia"),be=u("skew"),he=u("space"),ye=u("translate"),re=()=>["auto","contain","none"],oe=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto",l,e],g=()=>[l,e],xe=()=>["",S,T],Y=()=>["auto",U,l],we=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",l],ke=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[U,l];return{cacheSize:500,separator:":",theme:{colors:[_],spacing:[S,T],blur:["none","",I,l],brightness:P(),borderColor:[t],borderRadius:["none","","full",I,l],borderSpacing:g(),borderWidth:xe(),contrast:P(),grayscale:H(),hueRotate:P(),invert:H(),gap:g(),gradientColorStops:[t],gradientColorStopPositions:[Ut,T],inset:ne(),margin:ne(),opacity:P(),padding:g(),saturate:P(),scale:P(),sepia:H(),skew:P(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":ke()}],"break-before":[{"break-before":ke()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...we(),l]}],overflow:[{overflow:oe()}],"overflow-x":[{"overflow-x":oe()}],"overflow-y":[{"overflow-y":oe()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O,l]}],basis:[{basis:ne()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",O,l]}],"grid-cols":[{"grid-cols":[_]}],"col-start-end":[{col:["auto",{span:["full",O,l]},l]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[_]}],"row-start-end":[{row:["auto",{span:[O,l]},l]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],W:[{W:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],W:[{W:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],W:[{W:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[he]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[he]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,e]}],"min-w":[{"min-w":[l,e,"min","max","fit"]}],"max-w":[{"max-w":[l,e,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[l,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,e,"auto","min","max","fit"]}],"font-size":[{text:["base",I,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ae]}],"font-family":[{font:[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",U,ae]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,T]}],"underline-offset":[{"underline-offset":["auto",S,l]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...we(),Ot]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ht]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Vt]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:j()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[S,l]}],"outline-w":[{outline:[S,T]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[S,T]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",I,Qt]}],"shadow-color":[{shadow:[_]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...ve(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ve()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",I,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[v]}],saturate:[{saturate:[z]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[O,l]}],"translate-x":[{"translate-x":[ye]}],"translate-y":[{"translate-y":[ye]}],"skew-x":[{"skew-x":[be]}],"skew-y":[{"skew-y":[be]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-W":[{"scroll-W":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-W":[{"scroll-W":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-W":[{"scroll-W":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[S,T,ae]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","W","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],W:["mx","my","ms","W","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-W":["scroll-mx","scroll-my","scroll-ms","scroll-W","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-W","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Me=Tt(Jt);function c(...t){return Me((0,ze.clsx)(t))}var W=require("react/jsx-runtime"),Ee=({className:t,content:e,style:r})=>(0,W.jsx)("div",{className:c("mx-auto my-8 w-full",t),children:(0,W.jsx)("div",{className:c("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,W.jsx)(B,{content:e,enableGutter:!1,enableProse:!1})})});var Fe=require("@radix-ui/react-slot"),De=require("class-variance-authority"),Le=L(require("react")),Wt=(0,De.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),V=Le.forwardRef(({asChild:t=!1,className:e,size:r,variant:n,...s},o)=>(0,W.jsx)(t?Fe.Slot:"button",{className:c(Wt({className:e,size:r,variant:n})),ref:o,...s}));V.displayName="Button";var ce=L(require("next/link")),K=t=>{let{type:e,appearance:r="inline",children:n,className:s,label:o,newTab:a,reference:i,size:p,url:f}=t,b=e==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:f;if(!b)return null;let v=r==="link"?"clear":p,x=a?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,W.jsxs)(ce.default,{className:c(s),href:b||f||"",...x,children:[o&&o,n&&n]}):(0,W.jsx)(V,{asChild:!0,className:s,size:v,variant:r,children:(0,W.jsxs)(ce.default,{className:c(s),href:b||f||"",...x,children:[o&&o,n&&n]})})};var Ge=({links:t,richText:e})=>(0,W.jsx)("div",{className:"container",children:(0,W.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,W.jsx)("div",{className:"max-w-[48rem] flex items-center",children:e&&(0,W.jsx)(B,{className:"mb-0",content:e,enableGutter:!1})}),(0,W.jsx)("div",{className:"flex flex-col gap-8",children:(t||[]).map(({link:r},n)=>(0,W.jsx)(K,{size:"lg",...r},n))})]})});var X=require("prism-react-renderer");var He=require("lucide-react"),Oe=require("react");function _e({code:t}){let[e,r]=(0,Oe.useState)("Copy");function n(){e==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,W.jsx)("div",{className:"flex justify-end align-middle",children:(0,W.jsxs)(V,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(t),n()},children:[(0,W.jsx)("p",{children:e}),(0,W.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,W.jsx)(He.ClipboardCopy,{})})]})})}var Ve=({code:t,language:e=""})=>t?(0,W.jsx)(X.Highlight,{code:t,language:e,theme:X.themes.vsDark,children:({getLineProps:r,getTokenProps:n,tokens:s})=>(0,W.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[s.map((o,a)=>(0,W.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,W.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:a+1}),(0,W.jsx)("span",{className:"table-cell pl-4",children:o.map((i,p)=>(0,W.jsx)("span",{...n({token:i})},p))})]},a)),(0,W.jsx)(_e,{code:t})]})}):null;var Qe=({className:t,code:e,language:r})=>(0,W.jsx)("div",{className:[t,"not-prose"].filter(Boolean).join(" "),children:(0,W.jsx)(Ve,{code:e,language:r})});var Ye=L(require("next/image")),Kt={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},$e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",je=t=>{let{alt:e,fill:r,imgClassName:n,priority:s,resource:o,size:a,src:i,loading:p}=t,f,b,v=e,x=i||"";if(!x&&o&&typeof o=="object"){let{alt:h,filename:y,height:w,url:A,width:z}=o;f=z,b=w,v=h||"",x=A||$e}let C=p||"lazy",N=a||Object.entries(Kt).map(([,h])=>`(max-width: ${h}px) ${h*2}w`).join(", ");return(0,W.jsx)("picture",{children:(0,W.jsx)(Ye.default,{alt:v||"",className:c(n),fill:r,height:r?void 0:b,placeholder:"blur",blurDataURL:$e,priority:C!=="lazy"&&s,quality:100,loading:C,sizes:N,src:x,width:r?void 0:f})})};var Je=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var We=()=>{if(Je){let t=window.location.protocol,e=window.location.hostname,r=window.location.port;return`${t}//${e}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Ke=t=>{let{onClick:e,resource:r,videoClassName:n}=t,s=(0,Oe.useRef)(null);if((0,Oe.useEffect)(()=>{let{current:o}=s;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,W.jsx)("video",{autoPlay:!0,className:c(n),controls:!1,loop:!0,muted:!0,onClick:e,playsInline:!0,ref:s,children:(0,W.jsx)("source",{src:`${We()}/media/${o}`})})}return null};var qe=t=>{var a;let{className:e,htmlElement:r="div",resource:n}=t,s=typeof n=="object"&&((a=n==null?void 0:n.mimeType)==null?void 0:a.includes("video"));return(0,W.jsx)(r||Oe.Fragment,{...r!==null?{className:e}:{},children:s?(0,W.jsx)(Ke,{...t}):(0,W.jsx)(je,{...t})})};var Ze=t=>{let{className:e,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=t;return(0,W.jsx)("div",{className:c("",{container:r},e),children:(0,W.jsx)(qe,{imgClassName:c("border border-border rounded-[0.8rem]",n),resource:s,src:o})})};var et=({title:t,description:e,features:r,id:n})=>(0,W.jsxs)("section",{className:c("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[t&&(0,W.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:n||"",children:t}),e&&typeof e=="string"&&(0,W.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:e}),e&&typeof e=="object"&&(0,W.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,W.jsx)(B,{content:e,enableGutter:!1})}),(0,W.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((s,o)=>{let a=(0,W.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,W.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,W.jsx)("i",{className:`${s.icon.type} fa-${s.icon.icon} fa-4x`})}),(0,W.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:s.title}),s.content&&typeof s.content!="object"&&(0,W.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:s.content}}),s.content&&typeof s.content=="object"&&(0,W.jsx)("div",{className:"text-lg opacity-80",children:(0,W.jsx)(B,{content:s.content,enableGutter:!1})})]},o);return s.link?(0,W.jsx)("a",{href:s.link.url?s.link.url:"#",className:"no-underline group",children:a},o):a})})]});var te=L(require("react"));function ee({nodes:t}){return(0,W.jsx)(te.Fragment,{children:t==null?void 0:t.map((e,r)=>{if(e==null)return null;if(e.type==="text"){let o=(0,W.jsx)(te.default.Fragment,{children:e.text},r);return e.format&1&&(o=(0,W.jsx)("strong",{children:o},r)),e.format&2&&(o=(0,W.jsx)("em",{children:o},r)),e.format&4&&(o=(0,W.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),e.format&8&&(o=(0,W.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),e.format&16&&(o=(0,W.jsx)("code",{children:e.text},r)),e.format&32&&(o=(0,W.jsx)("sub",{children:o},r)),e.format&64&&(o=(0,W.jsx)("sup",{children:o},r)),o}if(e.type==="table")return(0,W.jsx)("table",{children:(0,W.jsx)("tbody",{children:e.children.map((o,a)=>(0,W.jsx)("tr",{children:o.children.map((i,p)=>(0,W.jsx)("td",{children:ee({nodes:i.children})},p))},a))})},r);let n=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let a of o.children)"checked"in a&&(a!=null&&a.checked||(a.checked=!1));return ee({nodes:o.children})},s="children"in e?n(e):"";if(e.type==="block"){let o=e.fields,a=o==null?void 0:o.blockType;if(!o||!a)return null;switch(a){case"cta":return(0,W.jsx)(Ge,{...o},r);case"mediaBlock":return(0,W.jsx)(Ze,{className:"col-start-1 col-span-3",imgClassName:"W-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,W.jsx)(Ee,{className:"col-start-2 mb-4",...o},r);case"code":return(0,W.jsx)(Qe,{className:"col-start-2",...o},r);case"features":return(0,W.jsx)(et,{...o},r);default:return null}}else switch(e.type){case"linebreak":return(0,W.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,W.jsx)("p",{className:"col-start-2",children:s},r);case"heading":{let o=e==null?void 0:e.tag;return(0,W.jsx)(o,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:s},r)}case"list":{let o=e==null?void 0:e.tag;return(0,W.jsx)(o,{className:"list col-start-2",children:s},r)}case"listitem":return(e==null?void 0:e.checked)!=null?(0,W.jsx)("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:s},r):(0,W.jsx)("li",{value:e==null?void 0:e.value,children:s},r);case"quote":return(0,W.jsx)("blockquote",{className:"col-start-2",children:s},r);case"link":{let o=e.fields;return(0,W.jsx)(K,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}default:return null}})})}var B=({className:t,content:e,enableGutter:r=!0,enableProse:n=!0})=>{var s;return e?(0,W.jsx)("div",{className:c({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":n},t),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&ee({nodes:(s=e==null?void 0:e.root)==null?void 0:s.children})}):null};function rt({subtitle:t,title:e,description:r,alignment:n="start",hasBottomSpacing:s=!1,className:o,invert:a=!1}){let i=c(n==="start"&&"text-left",n==="center"&&"text-center",n==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":s},o);return(0,W.jsxs)("div",{className:i,children:[t&&(0,W.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:t}),(0,W.jsx)("h2",{className:c("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",a&&"text-gray-900"),children:e}),typeof r=="string"?r&&(0,W.jsx)("p",{className:"mt-5 whitespace-pre-line",children:r}):r&&(0,W.jsx)(B,{content:r,enableGutter:!1})]})}function ot({children:t,isFluid:e=!1,isNoPadding:r=!1,className:n=""}){let s=c("container",e&&"full-width",r&&"no-padding",n);return(0,W.jsx)("div",{className:s,children:t})}var st=(t,e)=>t[e%t.length];var at=L(require("next/link"));function ge({children:t,href:e,openNewTab:r,...n}){return(0,W.jsx)(at.default,{href:e,target:r?"_blank":"_self",...n,children:t})}var fe=L(require("next/image")),ct=require("react-icons/fa6");function Xt({blogs:t,sectionHeading:e}){return(0,W.jsx)("section",{className:c("section-padding-primary overflow-hidden "),children:(0,W.jsxs)(ot,{children:[(0,W.jsx)("div",{className:"mx-auto max-w-[630px]",children:e&&(0,W.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,W.jsx)(rt,{...e,alignment:"center",hasBottomSpacing:!0})})}),t&&t.length>0&&(0,W.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:t.map((r,n)=>(0,W.jsx)("div",{"data-aos":"fade-up","data-aos-delay":st([200,400,600],n),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:(0,W.jsx)(dt,{...r})},n))})]})})}var lt=c("inline-flex items-center gap-2 text-white"),No=c("text-sm text-white");function dt({slug:t,image:e,authors:r,title:n,publishedAt:s,categories:o}){return(0,W.jsxs)("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,W.jsx)("span",{className:"absolute inset-0 z-[2] "}),(0,W.jsx)(fe.default,{src:e.src,alt:e.alt,fill:!0,sizes:`
|
|
4
|
+
"use strict";var ut=Object.create;var J=Object.defineProperty;var gt=Object.getOwnPropertyDescriptor;var ft=Object.getOwnPropertyNames;var bt=Object.getPrototypeOf,ht=Object.prototype.hasOwnProperty;var yt=(t,e)=>{for(var r in e)J(t,r,{get:e[r],enumerable:!0})},Ne=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ft(e))!ht.call(t,a)&&a!==r&&J(t,a,{get:()=>e[a],enumerable:!(n=gt(e,a))||n.enumerable});return t};var L=(t,e,r)=>(r=t!=null?ut(bt(t)):{},Ne(e||!t||!t.__esModule?J(r,"default",{value:t,enumerable:!0}):r,t)),xt=t=>Ne(J({},"__esModule",{value:!0}),t);var er={};yt(er,{BlogCard:()=>mt,BlogList:()=>Zt});module.exports=xt(er);var Pe=t=>{let e=t?new Date(t):new Date,r=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(e),n=e.getDate(),a=new Intl.DateTimeFormat("en-US",{month:"short"}).format(e);return`${r} ${n}${(s=>{if(s>3&&s<21)return"th";switch(s%10){case 1:return"W";case 2:return"nd";case 3:return"rd";default:return"th"}})(n)} ${a}`};var Fe=require("clsx");var ce="-",wt=t=>{let e=kt(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:s=>{let i=s.split(ce);return i[0]===""&&i.length!==1&&i.shift(),Re(i,e)||vt(s)},getConflictingClassGroupIds:(s,i)=>{let p=r[s]||[];return i&&n[s]?[...p,...n[s]]:p}}},Re=(t,e)=>{var s;if(t.length===0)return e.classGroupId;let r=t[0],n=e.nextPart.get(r),a=n?Re(t.slice(1),n):void 0;if(a)return a;if(e.validators.length===0)return;let o=t.join(ce);return(s=e.validators.find(({validator:i})=>i(o)))==null?void 0:s.classGroupId},Se=/^\[(.+)\]$/,vt=t=>{if(Se.test(t)){let e=Se.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},kt=t=>{let{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return At(Object.entries(t.classGroups),r).forEach(([o,s])=>{le(s,n,o,e)}),n},le=(t,e,r,n)=>{t.forEach(a=>{if(typeof a=="string"){let o=a===""?e:Be(e,a);o.classGroupId=r;return}if(typeof a=="function"){if(Ct(a)){le(a(n),e,r,n);return}e.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([o,s])=>{le(s,Be(e,o),r,n)})})},Be=(t,e)=>{let r=t;return e.split(ce).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ct=t=>t.isThemeGetter,At=(t,e)=>e?t.map(([r,n])=>{let a=n.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,i])=>[e+s,i])):o);return[r,a]}):t,Nt=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map,a=(o,s)=>{r.set(o,s),e++,e>t&&(e=0,n=r,r=new Map)};return{get(o){let s=r.get(o);if(s!==void 0)return s;if((s=n.get(o))!==void 0)return a(o,s),s},set(o,s){r.has(o)?r.set(o,s):a(o,s)}}},Te="!",Pt=t=>{let{separator:e,experimentalParseClassName:r}=t,n=e.length===1,a=e[0],o=e.length,s=i=>{let p=[],f=0,b=0,v;for(let y=0;y<i.length;y++){let w=i[y];if(f===0){if(w===a&&(n||i.slice(y,y+o)===e)){p.push(i.slice(b,y)),b=y+o;continue}if(w==="/"){v=y;continue}}w==="["?f++:w==="]"&&f--}let x=p.length===0?i:i.substring(b),A=x.startsWith(Te),N=A?x.substring(1):x,h=v&&v>b?v-b:void 0;return{modifiers:p,hasImportantModifier:A,baseClassName:N,maybePostfixModifierPosition:h}};return r?i=>r({className:i,parseClassName:s}):s},St=t=>{if(t.length<=1)return t;let e=[],r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},Bt=t=>({cache:Nt(t.cacheSize),parseClassName:Pt(t),...wt(t)}),Rt=/\s+/,Tt=(t,e)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=e,o=[],s=t.trim().split(Rt),i="";for(let p=s.length-1;p>=0;p-=1){let f=s[p],{modifiers:b,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:A}=r(f),N=!!A,h=n(N?x.substring(0,A):x);if(!h){if(!N){i=f+(i.length>0?" "+i:i);continue}if(h=n(x),!h){i=f+(i.length>0?" "+i:i);continue}N=!1}let y=St(b).join(":"),w=v?y+Te:y,C=w+h;if(o.includes(C))continue;o.push(C);let z=a(h,N);for(let E=0;E<z.length;++E){let $=z[E];o.push(w+$)}i=f+(i.length>0?" "+i:i)}return i};function It(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Ie(e))&&(n&&(n+=" "),n+=r);return n}var Ie=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Ie(t[n]))&&(r&&(r+=" "),r+=e);return r};function Mt(t,...e){let r,n,a,o=s;function s(p){let f=e.reduce((b,v)=>v(b),t());return r=Bt(f),n=r.cache.get,a=r.cache.set,o=i,i(p)}function i(p){let f=n(p);if(f)return f;let b=Tt(p,r);return a(p,b),b}return function(){return o(It.apply(null,arguments))}}var u=t=>{let e=r=>r[t]||[];return e.isThemeGetter=!0,e},Me=/^\[(?:([a-z-]+):)?(.+)\]$/i,zt=/^\W+\/\W+$/,Et=new Set(["px","full","screen"]),Ft=/^(\W+(\.\W+)?)?(xs|sm|md|lg|xl)$/,Dt=/\W+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Gt=/^(inset_)?-?((\W+)?\.?(\W+)[a-z]+|0)_-?((\W+)?\.?(\W+)[a-z]+|0)/,Ut=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=t=>G(t)||Et.has(t)||zt.test(t),T=t=>U(t,"length",jt),G=t=>!!t&&!Number.isNaN(Number(t)),ie=t=>U(t,"number",G),O=t=>!!t&&Number.isInteger(Number(t)),Ht=t=>t.endsWith("%")&&G(t.slice(0,-1)),l=t=>Me.test(t),I=t=>Ft.test(t),Ot=new Set(["length","size","percentage"]),_t=t=>U(t,Ot,ze),Vt=t=>U(t,"position",ze),Qt=new Set(["image","url"]),$t=t=>U(t,Qt,Wt),Yt=t=>U(t,"",Jt),_=()=>!0,U=(t,e,r)=>{let n=Me.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},jt=t=>Dt.test(t)&&!Lt.test(t),ze=()=>!1,Jt=t=>Gt.test(t),Wt=t=>Ut.test(t);var Kt=()=>{let t=u("colors"),e=u("spacing"),r=u("blur"),n=u("brightness"),a=u("borderColor"),o=u("borderRadius"),s=u("borderSpacing"),i=u("borderWidth"),p=u("contrast"),f=u("grayscale"),b=u("hueRotate"),v=u("invert"),x=u("gap"),A=u("gradientColorStops"),N=u("gradientColorStopPositions"),h=u("inset"),y=u("margin"),w=u("opacity"),C=u("padding"),z=u("saturate"),E=u("scale"),$=u("sepia"),ye=u("skew"),xe=u("space"),we=u("translate"),oe=()=>["auto","contain","none"],ne=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto",l,e],g=()=>[l,e],ve=()=>["",S,T],Y=()=>["auto",G,l],ke=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",l],Ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[G,l];return{cacheSize:500,separator:":",theme:{colors:[_],spacing:[S,T],blur:["none","",I,l],brightness:P(),borderColor:[t],borderRadius:["none","","full",I,l],borderSpacing:g(),borderWidth:ve(),contrast:P(),grayscale:H(),hueRotate:P(),invert:H(),gap:g(),gradientColorStops:[t],gradientColorStopPositions:[Ht,T],inset:ae(),margin:ae(),opacity:P(),padding:g(),saturate:P(),scale:P(),sepia:H(),skew:P(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":Ae()}],"break-before":[{"break-before":Ae()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ke(),l]}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O,l]}],basis:[{basis:ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",O,l]}],"grid-cols":[{"grid-cols":[_]}],"col-start-end":[{col:["auto",{span:["full",O,l]},l]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[_]}],"row-start-end":[{row:["auto",{span:[O,l]},l]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],W:[{W:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],W:[{W:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],W:[{W:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[xe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[xe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,e]}],"min-w":[{"min-w":[l,e,"min","max","fit"]}],"max-w":[{"max-w":[l,e,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[l,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,e,"auto","min","max","fit"]}],"font-size":[{text:["base",I,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ie]}],"font-family":[{font:[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",G,ie]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,T]}],"underline-offset":[{"underline-offset":["auto",S,l]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ke(),Vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_t]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$t]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:j()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[S,l]}],"outline-w":[{outline:[S,T]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[S,T]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",I,Yt]}],"shadow-color":[{shadow:[_]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",I,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[v]}],saturate:[{saturate:[z]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[O,l]}],"translate-x":[{"translate-x":[we]}],"translate-y":[{"translate-y":[we]}],"skew-x":[{"skew-x":[ye]}],"skew-y":[{"skew-y":[ye]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-W":[{"scroll-W":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-W":[{"scroll-W":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-W":[{"scroll-W":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[S,T,ie]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","W","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],W:["mx","my","ms","W","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-W":["scroll-mx","scroll-my","scroll-ms","scroll-W","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-W","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ee=Mt(Kt);function c(...t){return Ee((0,Fe.clsx)(t))}var W=require("react/jsx-runtime"),De=({className:t,content:e,style:r})=>(0,W.jsx)("div",{className:c("mx-auto my-8 w-full",t),children:(0,W.jsx)("div",{className:c("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,W.jsx)(B,{content:e,enableGutter:!1,enableProse:!1})})});var Le=require("@radix-ui/react-slot"),Ge=require("class-variance-authority"),Ue=L(require("react")),Xt=(0,Ge.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),V=Ue.forwardRef(({asChild:t=!1,className:e,size:r,variant:n,...a},o)=>(0,W.jsx)(t?Le.Slot:"button",{className:c(Xt({className:e,size:r,variant:n})),ref:o,...a}));V.displayName="Button";var de=L(require("next/link")),K=t=>{let{type:e,appearance:r="inline",children:n,className:a,label:o,newTab:s,reference:i,size:p,url:f}=t,b=e==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:f;if(!b)return null;let v=r==="link"?"clear":p,x=s?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,W.jsxs)(de.default,{className:c(a),href:b||f||"",...x,children:[o&&o,n&&n]}):(0,W.jsx)(V,{asChild:!0,className:a,size:v,variant:r,children:(0,W.jsxs)(de.default,{className:c(a),href:b||f||"",...x,children:[o&&o,n&&n]})})};var Oe=({links:t,richText:e})=>(0,W.jsx)("div",{className:"container",children:(0,W.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,W.jsx)("div",{className:"max-w-[48rem] flex items-center",children:e&&(0,W.jsx)(B,{className:"mb-0",content:e,enableGutter:!1})}),(0,W.jsx)("div",{className:"flex flex-col gap-8",children:(t||[]).map(({link:r},n)=>(0,W.jsx)(K,{size:"lg",...r},n))})]})});var X=require("prism-react-renderer");var _e=require("lucide-react"),Ve=require("react");function Qe({code:t}){let[e,r]=(0,Ve.useState)("Copy");function n(){e==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,W.jsx)("div",{className:"flex justify-end align-middle",children:(0,W.jsxs)(V,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(t),n()},children:[(0,W.jsx)("p",{children:e}),(0,W.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,W.jsx)(_e.ClipboardCopy,{})})]})})}var $e=({code:t,language:e=""})=>t?(0,W.jsx)(X.Highlight,{code:t,language:e,theme:X.themes.vsDark,children:({getLineProps:r,getTokenProps:n,tokens:a})=>(0,W.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[a.map((o,s)=>(0,W.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,W.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:s+1}),(0,W.jsx)("span",{className:"table-cell pl-4",children:o.map((i,p)=>(0,W.jsx)("span",{...n({token:i})},p))})]},s)),(0,W.jsx)(Qe,{code:t})]})}):null;var Ye=({className:t,code:e,language:r})=>(0,W.jsx)("div",{className:[t,"not-prose"].filter(Boolean).join(" "),children:(0,W.jsx)($e,{code:e,language:r})});var Je=L(require("next/image")),qt={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",We=t=>{let{alt:e,fill:r,imgClassName:n,priority:a,resource:o,size:s,src:i,loading:p}=t,f,b,v=e,x=i||"";if(!x&&o&&typeof o=="object"){let{alt:h,filename:y,height:w,url:C,width:z}=o;f=z,b=w,v=h||"",x=C||je}let A=p||"lazy",N=s||Object.entries(qt).map(([,h])=>`(max-width: ${h}px) ${h*2}w`).join(", ");return(0,W.jsx)("picture",{children:(0,W.jsx)(Je.default,{alt:v||"",className:c(n),fill:r,height:r?void 0:b,placeholder:"blur",blurDataURL:je,priority:A!=="lazy"&&a,quality:100,loading:A,sizes:N,src:x,width:r?void 0:f})})};var Ke=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Xe=()=>{if(Ke){let t=window.location.protocol,e=window.location.hostname,r=window.location.port;return`${t}//${e}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var qe=t=>{let{onClick:e,resource:r,videoClassName:n}=t,a=(0,Ve.useRef)(null);if((0,Ve.useEffect)(()=>{let{current:o}=a;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,W.jsx)("video",{autoPlay:!0,className:c(n),controls:!1,loop:!0,muted:!0,onClick:e,playsInline:!0,ref:a,children:(0,W.jsx)("source",{src:`${Xe()}/media/${o}`})})}return null};var ee=t=>{var s;let{className:e,htmlElement:r="div",resource:n}=t,a=typeof n=="object"&&((s=n==null?void 0:n.mimeType)==null?void 0:s.includes("video"));return(0,W.jsx)(r||Ve.Fragment,{...r!==null?{className:e}:{},children:a?(0,W.jsx)(qe,{...t}):(0,W.jsx)(We,{...t})})};var et=t=>{let{className:e,enableGutter:r=!0,imgClassName:n,media:a,staticImage:o}=t;return(0,W.jsx)("div",{className:c("",{container:r},e),children:(0,W.jsx)(ee,{imgClassName:c("border border-border rounded-[0.8rem]",n),resource:a,src:o})})};var tt=t=>{let{className:e,enableGutter:r=!0,imgClassName:n,media:a,staticImage:o}=t;return(0,W.jsx)("div",{className:c("",{container:r},e),children:(0,W.jsx)(ee,{imgClassName:c("border border-border rounded-[0.8rem]",n),resource:a,src:o})})};var rt=({title:t,description:e,features:r,id:n})=>(0,W.jsxs)("section",{className:c("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[t&&(0,W.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:n||"",children:t}),e&&typeof e=="string"&&(0,W.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:e}),e&&typeof e=="object"&&(0,W.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,W.jsx)(B,{content:e,enableGutter:!1})}),(0,W.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((a,o)=>{let s=(0,W.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,W.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,W.jsx)("i",{className:`${a.icon.type} fa-${a.icon.icon} fa-4x`})}),(0,W.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:a.title}),a.content&&typeof a.content!="object"&&(0,W.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:a.content}}),a.content&&typeof a.content=="object"&&(0,W.jsx)("div",{className:"text-lg opacity-80",children:(0,W.jsx)(B,{content:a.content,enableGutter:!1})})]},o);return a.link?(0,W.jsx)("a",{href:a.link.url?a.link.url:"#",className:"no-underline group",children:s},o):s})})]});var re=L(require("react"));function te({nodes:t}){return(0,W.jsx)(re.Fragment,{children:t==null?void 0:t.map((e,r)=>{if(e==null)return null;if(e.type==="text"){let o=(0,W.jsx)(re.default.Fragment,{children:e.text},r);return e.format&1&&(o=(0,W.jsx)("strong",{children:o},r)),e.format&2&&(o=(0,W.jsx)("em",{children:o},r)),e.format&4&&(o=(0,W.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),e.format&8&&(o=(0,W.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),e.format&16&&(o=(0,W.jsx)("code",{children:e.text},r)),e.format&32&&(o=(0,W.jsx)("sub",{children:o},r)),e.format&64&&(o=(0,W.jsx)("sup",{children:o},r)),o}if(e.type==="table")return(0,W.jsx)("table",{children:(0,W.jsx)("tbody",{children:e.children.map((o,s)=>(0,W.jsx)("tr",{children:o.children.map((i,p)=>(0,W.jsx)("td",{children:te({nodes:i.children})},p))},s))})},r);let n=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let s of o.children)"checked"in s&&(s!=null&&s.checked||(s.checked=!1));return te({nodes:o.children})},a="children"in e?n(e):"";if(e.type==="block"){let o=e.fields,s=o==null?void 0:o.blockType;if(!o||!s)return null;switch(s){case"cta":return(0,W.jsx)(Oe,{...o},r);case"mediaBlock":return(0,W.jsx)(et,{className:"col-start-1 col-span-3",imgClassName:"W-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return(0,W.jsx)(tt,{className:"col-start-1 col-span-3",imgClassName:"W-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,W.jsx)(De,{className:"col-start-2 mb-4",...o},r);case"code":return(0,W.jsx)(Ye,{className:"col-start-2",...o},r);case"features":return(0,W.jsx)(rt,{...o},r);default:return null}}else switch(e.type){case"linebreak":return(0,W.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,W.jsx)("p",{className:"col-start-2",children:a},r);case"heading":{let o=e==null?void 0:e.tag;return(0,W.jsx)(o,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:a},r)}case"list":{let o=e==null?void 0:e.tag;return(0,W.jsx)(o,{className:"list col-start-2",children:a},r)}case"listitem":return(e==null?void 0:e.checked)!=null?(0,W.jsx)("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:a},r):(0,W.jsx)("li",{value:e==null?void 0:e.value,children:a},r);case"quote":return(0,W.jsx)("blockquote",{className:"col-start-2",children:a},r);case"link":{let o=e.fields;return(0,W.jsx)(K,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:a},r)}default:return null}})})}var B=({className:t,content:e,enableGutter:r=!0,enableProse:n=!0})=>{var a;return e?(0,W.jsx)("div",{className:c({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":n},t),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&te({nodes:(a=e==null?void 0:e.root)==null?void 0:a.children})}):null};function nt({subtitle:t,title:e,description:r,alignment:n="start",hasBottomSpacing:a=!1,className:o,invert:s=!1}){let i=c(n==="start"&&"text-left",n==="center"&&"text-center",n==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":a},o);return(0,W.jsxs)("div",{className:i,children:[t&&(0,W.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:t}),(0,W.jsx)("h2",{className:c("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",s&&"text-gray-900"),children:e}),typeof r=="string"?r&&(0,W.jsx)("p",{className:"mt-5 whitespace-pre-line",children:r}):r&&(0,W.jsx)(B,{content:r,enableGutter:!1})]})}function at({children:t,isFluid:e=!1,isNoPadding:r=!1,className:n=""}){let a=c("container",e&&"full-width",r&&"no-padding",n);return(0,W.jsx)("div",{className:a,children:t})}var it=(t,e)=>t[e%t.length];var lt=L(require("next/link"));function be({children:t,href:e,openNewTab:r,...n}){return(0,W.jsx)(lt.default,{href:e,target:r?"_blank":"_self",...n,children:t})}var he=L(require("next/image")),pt=require("react-icons/fa6");function Zt({blogs:t,sectionHeading:e}){return(0,W.jsx)("section",{className:c("section-padding-primary overflow-hidden "),children:(0,W.jsxs)(at,{children:[(0,W.jsx)("div",{className:"mx-auto max-w-[630px]",children:e&&(0,W.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,W.jsx)(nt,{...e,alignment:"center",hasBottomSpacing:!0})})}),t&&t.length>0&&(0,W.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:t.map((r,n)=>(0,W.jsx)("div",{"data-aos":"fade-up","data-aos-delay":it([200,400,600],n),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:(0,W.jsx)(mt,{...r})},n))})]})})}var dt=c("inline-flex items-center gap-2 text-white"),Io=c("text-sm text-white");function mt({slug:t,image:e,authors:r,title:n,publishedAt:a,categories:o}){return(0,W.jsxs)("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,W.jsx)("span",{className:"absolute inset-0 z-[2] "}),(0,W.jsx)(he.default,{src:e.src,alt:e.alt,fill:!0,sizes:`
|
|
5
5
|
(min-width:768px) 50vw,
|
|
6
6
|
(min-width:1024px) 33vw,
|
|
7
7
|
100vw
|
|
8
|
-
`,className:c("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,W.jsx)(
|
|
8
|
+
`,className:c("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,W.jsx)(he.default,{src:e.src,alt:e.alt,fill:!0,sizes:`
|
|
9
9
|
(min-width:768px) 50vw,
|
|
10
10
|
(min-width:1024px) 33vw,
|
|
11
11
|
100vw
|
|
12
|
-
`,className:c("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,W.jsxs)("div",{className:"relative z-10 flex h-full flex-1 w-full flex-col",children:[
|
|
12
|
+
`,className:c("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,W.jsxs)("div",{className:"relative z-10 flex h-full flex-1 w-full flex-col",children:[a&&(0,W.jsx)("div",{children:(0,W.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,W.jsx)("time",{dateTime:a,className:"text-foreground",children:(0,W.jsx)("span",{className:"block",children:Pe(a)})})})}),(0,W.jsxs)("div",{className:"mt-auto space-y-2 text-white md:space-y-5",children:[(0,W.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:(0,W.jsx)("p",{className:dt})}),(0,W.jsx)("h3",{className:"text-md font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,W.jsx)(be,{"aria-label":n,href:t,className:"transition-colors duration-300 hover:text-primary",children:n})}),(0,W.jsx)("div",{children:(0,W.jsxs)(be,{href:t,className:c(dt,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,W.jsx)("span",{children:"Read More"}),(0,W.jsx)("span",{className:"text-accent",children:(0,W.jsx)(pt.FaArrowRight,{})})]})})]})]})]})}0&&(module.exports={BlogCard,BlogList});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-GBLZNN44.mjs";import"../../chunk-SV7NMNDI.mjs";import"../../chunk-3GDRM3XB.mjs";import"../../chunk-LCWZZNZR.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-YNNW2C2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as BlogCard,a as BlogList};
|