From 667e9b7ea5f5e64edeebb8b40efca1d2fc052d0e Mon Sep 17 00:00:00 2001
From: dvappnnt
')}}),d.length>0&&e.jsx("div",{className:`flex items-center gap-8 ${a?"justify-center":""}`,children:d.map((l,c)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-gray-900",children:l.value}),e.jsx("div",{className:"text-sm text-gray-600",children:l.label})]},c))})]}),k=()=>f==="centered"?n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden mb-8 sm:mb-12 lg:mb-16",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full h-96 object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"110%",top:"-5%",position:"relative"}:void 0}),e.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center p-8",children:e.jsxs("div",{className:"text-center text-white max-w-2xl",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4",children:t.story_title||s("We are passionate about simplifying HR management for businesses of all sizes.")}),e.jsx("div",{className:"mb-6 leading-relaxed opacity-90",dangerouslySetInnerHTML:{__html:(t.story_content||s("Founded by HR and tech enthusiasts, HRMGo was created to replace cumbersome spreadsheets and manual processes with a modern, all-in-one HR platform.")).replace(/\n/g,'
')}}),d.length>0&&e.jsx("div",{className:"flex items-center justify-center gap-8",children:d.map((a,l)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold",children:a.value}),e.jsx("div",{className:"text-sm opacity-80",children:a.label})]},l))})]})})]}):e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx(u,{centered:!0}),(n==="left"||n==="right")&&e.jsx("div",{className:"mt-8",children:e.jsx(x,{})})]}):f==="image-left"?e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center mb-8 sm:mb-12 lg:mb-16",children:[n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden h-96",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"120%",top:"-10%",position:"relative"}:{height:"100%"}}),e.jsx("div",{className:"absolute inset-0 bg-black/30 rounded-xl"})]}):e.jsx(x,{}),e.jsx(u,{})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx(u,{}),n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden h-96",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"120%",top:"-10%",position:"relative"}:{height:"100%"}}),e.jsx("div",{className:"absolute inset-0 bg-black/30 rounded-xl"})]}):e.jsx(x,{})]});return e.jsx("section",{id:"about",className:"py-12 sm:py-16 lg:py-20",style:{backgroundColor:v},ref:j,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:`text-center mb-8 sm:mb-12 lg:mb-16 transition-all duration-700 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:t.title||s("About HRM SaaS")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:t.description||s("We are passionate about simplifying HR management for businesses of all sizes.")})]}),k(),e.jsx("div",{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-8 transition-all duration-700 delay-500 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:H.map((a,l)=>{const c=U[a.icon]||b;return e.jsxs("div",{className:"text-center bg-white p-6 rounded-xl border border-gray-200",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center mx-auto mb-4",style:{backgroundColor:`${p}15`},children:e.jsx(c,{className:"w-6 h-6",style:{color:p}})}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-3",children:a.title}),e.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:a.description})]},l)})})]})})}export{X as default}; +import{r as g,j as e}from"./ui-Z445SNHD.js";import{u as R}from"./useScrollAnimation-B_bDsIuD.js";import{u as S,g as _}from"./app-BJfYyIIX.js";import{Z as A}from"./zap-DtypiZBz.js";import{U as z}from"./users-TIev6QWg.js";import{S as M}from"./shield-D4lNYMUI.js";import{S as $}from"./star-B6re2o3I.js";import{L as E}from"./lightbulb-K-Y_5YRB.js";import{A as I}from"./award-CHhopoZe.js";import{H as T}from"./heart-COE1qsyT.js";import{T as b}from"./target-Tqqh32oJ.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const U={target:b,heart:T,award:I,lightbulb:E,star:$,shield:M,users:z,zap:A};function X({settings:L,sectionData:t,brandColor:p="#3b82f6"}){const{t:s}=S(),{ref:j,isVisible:h}=R(),r=_(t.image),v=t.background_color||"#f9fafb",f=t.layout||"image-right",n=t.image_position||"right",i=t.parallax===!0,o=g.useRef(null),[m,y]=g.useState(0);g.useEffect(()=>{if(!i||!r)return;const a=()=>{if(!o.current)return;const l=o.current.getBoundingClientRect(),c=l.top+l.height/2-window.innerHeight/2;y(c*.2)};return window.addEventListener("scroll",a,{passive:!0}),a(),()=>window.removeEventListener("scroll",a)},[i,r]);const N=[{icon:"target",title:s("Our Mission"),description:s("To empower businesses with smart HR solutions that simplify employee management, payroll, attendance, and performance tracking.")},{icon:"heart",title:s("Our Values"),description:s("We prioritize innovation, efficiency, and creating a workplace ecosystem that nurtures growth and collaboration.")},{icon:"award",title:s("Our Commitment"),description:s("Providing reliable, intuitive HR tools backed by exceptional support to help organizations optimize their workforce.")},{icon:"lightbulb",title:s("Our Vision"),description:s("A future where HR management is fully automated, transparent, and enables organizations to focus on people, not paperwork.")}],w=[{value:s("3+ Years"),label:s("Experience"),color:"blue"},{value:"500+",label:s("Companies Served"),color:"green"},{value:"20K+",label:s("Employees Managed"),color:"purple"}],H=t.values&&t.values.length>0?t.values:N,d=t.stats&&t.stats.length>0?t.stats:w,x=()=>e.jsx("div",{className:"bg-white rounded-xl p-8 border border-gray-200 h-96 flex items-center justify-center overflow-hidden",children:r?e.jsx("img",{src:r,alt:"About Us",className:"max-w-full max-h-full object-contain rounded-lg",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear"}:void 0}):e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-24 h-24 bg-gray-100 rounded-full mx-auto mb-6 flex items-center justify-center",children:e.jsx("span",{className:"text-3xl",children:t.image_icon||"🚀"})}),e.jsx("h4",{className:"text-xl font-semibold text-gray-900 mb-2",children:t.image_title||s("Innovation Driven")}),e.jsx("p",{className:"text-gray-600",children:t.image_subtitle||s("Building the future of networking")})]})}),u=({centered:a=!1})=>e.jsxs("div",{className:a?"text-center":"",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:t.story_title||s("We are passionate about simplifying HR management for businesses of all sizes.")}),e.jsx("div",{className:"text-gray-600 mb-8 leading-relaxed",dangerouslySetInnerHTML:{__html:(t.story_content||s("Founded by HR and tech enthusiasts, HRMGo was created to replace cumbersome spreadsheets and manual processes with a modern, all-in-one HR platform.")).replace(/\n/g,'
')}}),d.length>0&&e.jsx("div",{className:`flex items-center gap-8 ${a?"justify-center":""}`,children:d.map((l,c)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-gray-900",children:l.value}),e.jsx("div",{className:"text-sm text-gray-600",children:l.label})]},c))})]}),k=()=>f==="centered"?n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden mb-8 sm:mb-12 lg:mb-16",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full h-96 object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"110%",top:"-5%",position:"relative"}:void 0}),e.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center p-8",children:e.jsxs("div",{className:"text-center text-white max-w-2xl",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4",children:t.story_title||s("We are passionate about simplifying HR management for businesses of all sizes.")}),e.jsx("div",{className:"mb-6 leading-relaxed opacity-90",dangerouslySetInnerHTML:{__html:(t.story_content||s("Founded by HR and tech enthusiasts, HRMGo was created to replace cumbersome spreadsheets and manual processes with a modern, all-in-one HR platform.")).replace(/\n/g,'
')}}),d.length>0&&e.jsx("div",{className:"flex items-center justify-center gap-8",children:d.map((a,l)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold",children:a.value}),e.jsx("div",{className:"text-sm opacity-80",children:a.label})]},l))})]})})]}):e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx(u,{centered:!0}),(n==="left"||n==="right")&&e.jsx("div",{className:"mt-8",children:e.jsx(x,{})})]}):f==="image-left"?e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center mb-8 sm:mb-12 lg:mb-16",children:[n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden h-96",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"120%",top:"-10%",position:"relative"}:{height:"100%"}}),e.jsx("div",{className:"absolute inset-0 bg-black/30 rounded-xl"})]}):e.jsx(x,{}),e.jsx(u,{})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx(u,{}),n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden h-96",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"120%",top:"-10%",position:"relative"}:{height:"100%"}}),e.jsx("div",{className:"absolute inset-0 bg-black/30 rounded-xl"})]}):e.jsx(x,{})]});return e.jsx("section",{id:"about",className:"py-12 sm:py-16 lg:py-20",style:{backgroundColor:v},ref:j,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:`text-center mb-8 sm:mb-12 lg:mb-16 transition-all duration-700 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:t.title||s("About HRM SaaS")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:t.description||s("We are passionate about simplifying HR management for businesses of all sizes.")})]}),k(),e.jsx("div",{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-8 transition-all duration-700 delay-500 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:H.map((a,l)=>{const c=U[a.icon]||b;return e.jsxs("div",{className:"text-center bg-white p-6 rounded-xl border border-gray-200",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center mx-auto mb-4",style:{backgroundColor:`${p}15`},children:e.jsx(c,{className:"w-6 h-6",style:{color:p}})}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-3",children:a.title}),e.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:a.description})]},l)})})]})})}export{X as default};
diff --git a/public/build/assets/ContactSection-BQ7htjn6.js b/public/build/assets/ContactSection-BG2hOf0j.js
similarity index 97%
rename from public/build/assets/ContactSection-BQ7htjn6.js
rename to public/build/assets/ContactSection-BG2hOf0j.js
index c6c9f398b..b1206cce9 100644
--- a/public/build/assets/ContactSection-BQ7htjn6.js
+++ b/public/build/assets/ContactSection-BG2hOf0j.js
@@ -1 +1 @@
-import{j as e}from"./ui-Z445SNHD.js";import{u as j,b as y,t as u}from"./app-BgZv7gqf.js";import{M as f}from"./mail-93xDBlk_.js";import{P as N}from"./phone-DnfpDyd6.js";import{M as v}from"./map-pin-DosTqNQe.js";import{S as w}from"./send-CDJgAS3Q.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function T({flash:S,settings:a,sectionData:s,brandColor:d="#3b82f6"}){const{t:r}=j(),{data:n,setData:c,post:g,processing:o,errors:t,reset:h}=y({name:"",email:"",subject:"",message:""}),b=l=>{l.preventDefault(),g(route("landing-page.contact"),{onSuccess:m=>{var x;h();const i=((x=m.props.flash)==null?void 0:x.success)||"Thank you for your message. We will get back to you soon!";u.success(i)},onError:m=>{const i=Object.values(m).join(", ");u.error(i||"Failed to send message. Please try again.")}})},p=[{icon:f,title:r("Email Us"),content:(a==null?void 0:a.contact_email)||"support@hrm.com"},{icon:N,title:r("Call Us"),content:(a==null?void 0:a.contact_phone)||"+1 (555) 123-4567"},{icon:v,title:r("Visit Us"),content:(a==null?void 0:a.contact_address)||"123 Business Ave, Suite 100"}].filter(l=>l.content);return e.jsx("section",{id:"contact",className:"py-12 sm:py-16 lg:py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:(s==null?void 0:s.title)||r("Get in Touch")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:(s==null?void 0:s.subtitle)||r("Have questions about HRM SaaS? We'd love to hear from you.. Send us a message and we'll respond as soon as possible.")})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16",children:[e.jsx("div",{children:e.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl p-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:(s==null?void 0:s.form_title)||r("Send us a Message")}),e.jsxs("form",{onSubmit:b,className:"space-y-6",role:"form","aria-label":"Contact form",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Full Name")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"text",id:"name",value:n.name,onChange:l=>c("name",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("Your full name"),required:!0,disabled:o}),t.name&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.name})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Email Address")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"email",id:"email",value:n.email,onChange:l=>c("email",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("your@email.com"),required:!0,disabled:o}),t.email&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.email})]})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"subject",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Subject")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"text",id:"subject",value:n.subject,onChange:l=>c("subject",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("What's this about?"),required:!0,disabled:o}),t.subject&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.subject})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Message")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("textarea",{id:"message",rows:6,value:n.message,onChange:l=>c("message",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 resize-none disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("Tell us more about your inquiry..."),required:!0,disabled:o}),t.message&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.message})]}),e.jsx("button",{type:"submit",disabled:o,className:"cursor-pointer w-full text-white px-8 py-4 rounded-lg transition-colors font-semibold disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",style:{backgroundColor:d},"aria-label":o?"Sending message":"Send contact message",children:o?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),r("Sending...")]}):e.jsxs(e.Fragment,{children:[e.jsx(w,{className:"w-5 h-5"}),r("Send Message")]})})]})]})}),e.jsx("div",{children:e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:(s==null?void 0:s.info_title)||r("Contact Information")}),e.jsx("p",{className:"text-gray-600 mb-8",children:(s==null?void 0:s.info_description)||r("We're here to help and answer any questions you might have about managing your HR processes efficiently. We look forward to hearing from you.")})]}),e.jsx("div",{className:"space-y-6",children:p.map((l,m)=>{const i=l.icon;return e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${d}15`},children:e.jsx(i,{className:"w-6 h-6",style:{color:d}})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-lg font-semibold text-gray-900 mb-1",children:l.title}),e.jsx("p",{className:"text-gray-900 font-medium mb-1",children:l.content}),e.jsx("p",{className:"text-gray-600 text-sm",children:l.description})]})]},m)})}),(s==null?void 0:s.faqs)&&s.faqs.length>0&&e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:r("Frequently Asked Questions")}),e.jsx("div",{className:"space-y-4",children:s.faqs.map((l,m)=>e.jsxs("div",{children:[e.jsx("h5",{className:"font-medium text-gray-900 mb-1",children:l.question}),e.jsx("p",{className:"text-gray-600 text-sm",children:l.answer})]},m))})]})]})})]})]})})}export{T as default};
+import{j as e}from"./ui-Z445SNHD.js";import{u as j,b as y,t as u}from"./app-BJfYyIIX.js";import{M as f}from"./mail-C0lU3gWz.js";import{P as N}from"./phone-D7CEVFIv.js";import{M as v}from"./map-pin-DLXmT6vb.js";import{S as w}from"./send-CP2EW1aB.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function T({flash:S,settings:a,sectionData:s,brandColor:d="#3b82f6"}){const{t:r}=j(),{data:n,setData:c,post:g,processing:o,errors:t,reset:h}=y({name:"",email:"",subject:"",message:""}),b=l=>{l.preventDefault(),g(route("landing-page.contact"),{onSuccess:m=>{var x;h();const i=((x=m.props.flash)==null?void 0:x.success)||"Thank you for your message. We will get back to you soon!";u.success(i)},onError:m=>{const i=Object.values(m).join(", ");u.error(i||"Failed to send message. Please try again.")}})},p=[{icon:f,title:r("Email Us"),content:(a==null?void 0:a.contact_email)||"support@hrm.com"},{icon:N,title:r("Call Us"),content:(a==null?void 0:a.contact_phone)||"+1 (555) 123-4567"},{icon:v,title:r("Visit Us"),content:(a==null?void 0:a.contact_address)||"123 Business Ave, Suite 100"}].filter(l=>l.content);return e.jsx("section",{id:"contact",className:"py-12 sm:py-16 lg:py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:(s==null?void 0:s.title)||r("Get in Touch")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:(s==null?void 0:s.subtitle)||r("Have questions about HRM SaaS? We'd love to hear from you.. Send us a message and we'll respond as soon as possible.")})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16",children:[e.jsx("div",{children:e.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl p-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:(s==null?void 0:s.form_title)||r("Send us a Message")}),e.jsxs("form",{onSubmit:b,className:"space-y-6",role:"form","aria-label":"Contact form",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Full Name")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"text",id:"name",value:n.name,onChange:l=>c("name",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("Your full name"),required:!0,disabled:o}),t.name&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.name})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Email Address")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"email",id:"email",value:n.email,onChange:l=>c("email",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("your@email.com"),required:!0,disabled:o}),t.email&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.email})]})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"subject",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Subject")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"text",id:"subject",value:n.subject,onChange:l=>c("subject",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("What's this about?"),required:!0,disabled:o}),t.subject&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.subject})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Message")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("textarea",{id:"message",rows:6,value:n.message,onChange:l=>c("message",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 resize-none disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("Tell us more about your inquiry..."),required:!0,disabled:o}),t.message&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.message})]}),e.jsx("button",{type:"submit",disabled:o,className:"cursor-pointer w-full text-white px-8 py-4 rounded-lg transition-colors font-semibold disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",style:{backgroundColor:d},"aria-label":o?"Sending message":"Send contact message",children:o?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),r("Sending...")]}):e.jsxs(e.Fragment,{children:[e.jsx(w,{className:"w-5 h-5"}),r("Send Message")]})})]})]})}),e.jsx("div",{children:e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:(s==null?void 0:s.info_title)||r("Contact Information")}),e.jsx("p",{className:"text-gray-600 mb-8",children:(s==null?void 0:s.info_description)||r("We're here to help and answer any questions you might have about managing your HR processes efficiently. We look forward to hearing from you.")})]}),e.jsx("div",{className:"space-y-6",children:p.map((l,m)=>{const i=l.icon;return e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${d}15`},children:e.jsx(i,{className:"w-6 h-6",style:{color:d}})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-lg font-semibold text-gray-900 mb-1",children:l.title}),e.jsx("p",{className:"text-gray-900 font-medium mb-1",children:l.content}),e.jsx("p",{className:"text-gray-600 text-sm",children:l.description})]})]},m)})}),(s==null?void 0:s.faqs)&&s.faqs.length>0&&e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:r("Frequently Asked Questions")}),e.jsx("div",{className:"space-y-4",children:s.faqs.map((l,m)=>e.jsxs("div",{children:[e.jsx("h5",{className:"font-medium text-gray-900 mb-1",children:l.question}),e.jsx("p",{className:"text-gray-600 text-sm",children:l.answer})]},m))})]})]})})]})]})})}export{T as default};
diff --git a/public/build/assets/CookieConsentBanner-D0P1KfBc.js b/public/build/assets/CookieConsentBanner-C38N4PTk.js
similarity index 98%
rename from public/build/assets/CookieConsentBanner-D0P1KfBc.js
rename to public/build/assets/CookieConsentBanner-C38N4PTk.js
index 1ae76aef4..b76983dc0 100644
--- a/public/build/assets/CookieConsentBanner-D0P1KfBc.js
+++ b/public/build/assets/CookieConsentBanner-C38N4PTk.js
@@ -1 +1 @@
-import{r as v,j as e,z as B,B as $,E as K,F as V,I as W,S as Q,G as Y,L as Z}from"./ui-Z445SNHD.js";import{R as P}from"./react-country-flag.esm-Bs2jngHP.js";import{u as A,c as I,D as ee,h as te,j as se,k as ae,L as M,I as z,o as j,J as T,e as F,K as _,N as O,P as oe,O as U,Q as ne,r as q,R as J,a as re,C as G,X as H,T as ie,t as X}from"./app-BgZv7gqf.js";import{R as ce}from"./refresh-cw-DB91vbyv.js";import{G as le}from"./globe-CmKLi0v7.js";import{S as de}from"./settings-DyKafdDI.js";import{S as ue}from"./switch-DMnwI1wX.js";function me({open:s,onOpenChange:l,onSuccess:c}){var o;const{t}=A(),{props:p}=I(),b=((o=p.globalSettings)==null?void 0:o.is_demo)||!1,[n,u]=v.useState({code:"",name:"",countryCode:""}),[x,D]=v.useState(!1),f=async d=>{var C;d.preventDefault(),D(!0);try{const y=await fetch(route("languages.create"),{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":((C=document.querySelector('meta[name="csrf-token"]'))==null?void 0:C.getAttribute("content"))||"",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(n)}),h=await y.json();y.ok&&h.success?(T.success(h.message||t("Language created successfully")),u({code:"",name:"",countryCode:""}),l(!1),c==null||c(),window.location.reload()):(console.error("Create language error:",h),b&&h.message?T.error(h.message):T.error(h.error||t("Failed to create language")))}catch(y){console.error("Network error:",y),T.error(t("Failed to create language"))}finally{D(!1)}};return e.jsx(ee,{open:s,onOpenChange:l,children:e.jsxs(te,{className:"sm:max-w-md",children:[e.jsx(se,{children:e.jsx(ae,{children:t("Create Language")})}),e.jsxs("form",{onSubmit:f,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(M,{htmlFor:"code",children:t("Language Code")}),e.jsx(z,{id:"code",placeholder:t("e.g., fr, de, ja"),value:n.code,onChange:d=>u({...n,code:d.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(M,{htmlFor:"name",children:t("Language Name")}),e.jsx(z,{id:"name",placeholder:t("e.g., Français, Deutsch, 日本語"),value:n.name,onChange:d=>u({...n,name:d.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(M,{htmlFor:"countryCode",children:t("Country Code")}),e.jsx(z,{id:"countryCode",placeholder:t("e.g., FR, DE, JP"),maxLength:2,value:n.countryCode,onChange:d=>u({...n,countryCode:d.target.value.toUpperCase()}),required:!0})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(j,{type:"button",variant:"outline",onClick:()=>l(!1),children:t("Cancel")}),e.jsx(j,{type:"submit",disabled:x,children:x?e.jsxs(e.Fragment,{children:[e.jsx(ce,{className:"h-4 w-4 animate-spin mr-2"}),t("Creating...")]}):t("Create Language")})]})]})]})})}function ge({...s}){return e.jsx(B,{"data-slot":"dropdown-menu",...s})}function fe({...s}){return e.jsx($,{"data-slot":"dropdown-menu-trigger",...s})}function pe({className:s,sideOffset:l=4,...c}){return e.jsx(K,{children:e.jsx(V,{"data-slot":"dropdown-menu-content",sideOffset:l,className:F("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",s),...c})})}function he({...s}){return e.jsx(Y,{"data-slot":"dropdown-menu-group",...s})}function R({className:s,inset:l,variant:c="default",...t}){return e.jsx(W,{"data-slot":"dropdown-menu-item","data-inset":l,"data-variant":c,className:F("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...t})}function Ne({className:s,inset:l,...c}){return e.jsx(Z,{"data-slot":"dropdown-menu-label","data-inset":l,className:F("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",s),...c})}function xe({className:s,...l}){return e.jsx(Q,{"data-slot":"dropdown-menu-separator",className:F("bg-border -mx-1 my-1 h-px",s),...l})}function De(){var g,N;const{i18n:s,t:l}=A(),{auth:c,globalSettings:t,userLanguage:p}=I().props,{setPosition:b}=_(),{updatePosition:n}=_(),[u,x]=v.useState(()=>{const a=((t==null?void 0:t.availableLanguages)||[]).filter(r=>r.enabled!==!1);if(p){const r=a.find(i=>i.code===p);if(r)return r}return a[0]||null}),[D,f]=v.useState(!1),o=(t==null?void 0:t.availableLanguages)||[],d=(t==null?void 0:t.is_saas)||!1,C=!!(c!=null&&c.user),y=((N=(g=c==null?void 0:c.user)==null?void 0:g.roles)==null?void 0:N.map(a=>a.name))||[],h=C&&O("superadmin",y),S=C&&O("company",y),m=d?h:S;v.useEffect(()=>{const a=(o||[]).filter(r=>r.enabled!==!1);if(p&&s.language!==p)s.changeLanguage(p,()=>{const r=a.find(i=>i.code===p)||a[0];x(r)});else{const r=a.find(i=>i.code===s.language)||a[0];x(r)}},[o,p]),v.useEffect(()=>{const a=(o||[]).filter(i=>i.enabled!==!1),r=a.find(i=>i.code===s.language)||a[0];x(r)},[s.language,o]);const k=["ar","he"],w=async a=>{const r=o.find(i=>i.code===a);if(r){x(r);try{await s.changeLanguage(a);const i=k.includes(a);let L;U()?L=i?"right":ne("layoutPosition")||"left":L=i?"right":(t==null?void 0:t.layoutDirection)||"left",document.documentElement.dir="ltr",document.documentElement.setAttribute("dir","ltr"),n(L),C&&!U()?q.post(route("languages.change"),{language:a},{preserveScroll:!0,onSuccess:()=>{(i||!i&&(t==null?void 0:t.layoutDirection)==="right")&&q.post(route("settings.brand.update"),{settings:{layoutDirection:L}},{preserveScroll:!0,onError:E=>{console.error("Failed to update layout direction:",E)}})},onError:E=>{console.error("Failed to change language:",E)}}):(J("app_language",a),J("layoutPosition",L)),window.dispatchEvent(new CustomEvent("languageChanged",{detail:{language:a,direction:L}})),window.dispatchEvent(new Event("resize"))}catch(i){console.error("Error changing language:",i)}}};return e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsxs(j,{variant:"ghost",className:"flex items-center gap-2 rounded-md border shadow-sm bg-white",children:[e.jsx(le,{className:"h-4 w-4"}),u&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm font-medium hidden md:inline-block",children:u.name}),e.jsx(P,{countryCode:u.countryCode,svg:!0,style:{width:"1.2em",height:"1.2em"}})]})]})}),e.jsxs(pe,{className:"w-56",align:"end",forceMount:!0,children:[e.jsx(he,{children:e.jsx("div",{className:"max-h-48 overflow-y-auto",children:(o||[]).filter(a=>a.enabled!==!1).map(a=>e.jsxs(R,{onClick:()=>w(a.code),className:`flex items-center gap-2 ${(u==null?void 0:u.code)===a.code?"bg-accent":""}`,children:[e.jsx(P,{countryCode:a.countryCode,svg:!0,style:{width:"1.2em",height:"1.2em"}}),e.jsx("span",{children:a.name})]},a.code))})}),m&&e.jsxs(e.Fragment,{children:[e.jsx(xe,{}),e.jsxs(R,{onClick:()=>f(!0),className:"justify-center text-primary font-semibold cursor-pointer",children:[e.jsx(oe,{className:"h-4 w-4 mr-2"}),l("Create Language")]}),e.jsx(R,{asChild:!0,className:"justify-center text-primary font-semibold cursor-pointer",children:e.jsxs("a",{href:route("manage-language"),rel:"noopener noreferrer",children:[e.jsx(de,{className:"h-4 w-4 mr-2"}),l("Manage Language")]})})]})]})]}),e.jsx(me,{open:D,onOpenChange:f,onSuccess:()=>f(!1)})]})}function Le(){const{t:s}=A(),{props:l}=I(),[c,t]=v.useState(!1),[p,b]=v.useState(!1),[n,u]=v.useState(!1),{themeColor:x,customColor:D}=re(),f=x==="custom"?D:ie[x],o=l.globalSettings||{},d={cookieTitle:o.cookieTitle||"Cookie Consent",cookieDescription:o.cookieDescription||"We use cookies to enhance your browsing experience and provide personalized content.",strictlyCookieTitle:o.strictlyCookieTitle||"Strictly Necessary Cookies",strictlyCookieDescription:o.strictlyCookieDescription||"These cookies are essential for the website to function properly.",contactUsDescription:o.contactUsDescription||"If you have any questions about our cookie policy, please contact us.",contactUsUrl:o.contactUsUrl||"#"};v.useEffect(()=>{var N,a;const m=o.enableLogging==="1"||o.enableLogging===1||o.enableLogging===!0,k=o.is_demo==="1"||o.is_demo===1||o.is_demo===!0,w=window.location.pathname==="/dashboard"||window.location.pathname.includes("/dashboard"),g=(a=(N=l.auth)==null?void 0:N.user)==null?void 0:a.type;if(m){if(k&&(!w||g!=="company"))return;localStorage.getItem("cookie-consent")||t(!0)}},[]);const C=async()=>{try{const m=new AbortController,k=setTimeout(()=>m.abort(),5e3),w=await fetch("https://ipapi.co/json/",{signal:m.signal,headers:{Accept:"application/json"}});if(clearTimeout(k),!w.ok)throw new Error(`HTTP error! status: ${w.status}`);const g=await w.json();return{ip:g.ip||"unknown",country:g.country_name||"unknown",city:g.city||"unknown",region:g.region||"unknown",...g}}catch(m){return console.warn("Failed to get location data:",m.message),{ip:"unknown",country:"unknown",city:"unknown",region:"unknown",error:m.message||"Location fetch failed"}}},y=async(m,k)=>{var w;try{const g=await C(),N={...k,timestamp:new Date().toISOString(),consentType:m,userAgent:navigator.userAgent||"unknown",language:navigator.language||"unknown",url:window.location.href,...g};localStorage.setItem("cookie-consent",JSON.stringify({accepted:!0,timestamp:Date.now()}));const a=(w=document.querySelector('meta[name="csrf-token"]'))==null?void 0:w.getAttribute("content");if(!a){console.warn("CSRF token not found");return}const r=await fetch(route("cookie.consent.store"),{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":a,Accept:"application/json"},body:JSON.stringify(N)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);if(!(await r.json()).success)throw new Error("Server returned error")}catch(g){throw console.error("Failed to save cookie consent:",g),localStorage.setItem("cookie-consent",JSON.stringify({accepted:!0,timestamp:Date.now()})),g}},h=async()=>{if(!n){u(!0);try{await y("accept_all",{necessary:!0,analytics:!0,marketing:!0}),t(!1)}catch{X.error(s("Failed to save cookie preferences"))}finally{u(!1)}}},S=async()=>{if(!n){u(!0);try{await y("necessary_only",{necessary:!0,analytics:!1,marketing:!1}),t(!1)}catch{X.error(s("Failed to save cookie preferences"))}finally{u(!1)}}};return c?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed bottom-4 left-1/2 transform -translate-x-1/2 z-50 max-w-md w-full mx-4",children:e.jsxs(G,{className:"p-4 shadow-lg border",children:[e.jsxs("div",{className:"flex justify-between items-start mb-3",children:[e.jsx("h3",{className:"font-semibold text-sm",children:d.cookieTitle}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>t(!1),className:"h-6 w-6 p-0",children:e.jsx(H,{className:"h-4 w-4"})})]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:d.cookieDescription}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(j,{onClick:h,size:"sm",className:"flex-1 text-white hover:opacity-90",style:{backgroundColor:f},disabled:n,children:s(n?"Saving...":"Accept All")}),e.jsx(j,{onClick:S,variant:"outline",size:"sm",className:"flex-1",style:{borderColor:f,color:f},disabled:n,children:s(n?"Saving...":"Necessary Only")})]}),e.jsx(j,{onClick:()=>b(!0),variant:"ghost",size:"sm",className:"text-sm underline",children:s("Let me choose")})]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:[d.contactUsDescription," ",e.jsx("a",{href:d.contactUsUrl,className:"underline",children:s("Contact us")})]})]})}),p&&e.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-4",children:e.jsx(G,{className:"w-full max-w-md max-h-[80vh] overflow-y-auto",children:e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("h3",{className:"text-lg font-semibold",children:d.cookieTitle}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>b(!1),className:"h-6 w-6 p-0",children:e.jsx(H,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-medium text-sm",children:d.strictlyCookieTitle}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:d.strictlyCookieDescription})]}),e.jsx(ue,{checked:!0,disabled:!0})]})}),e.jsxs("div",{className:"flex gap-2 mt-6",children:[e.jsx(j,{onClick:async()=>{await S(),b(!1)},variant:"outline",size:"sm",className:"flex-1",style:{borderColor:f,color:f},disabled:n,children:s(n?"Saving...":"Save Preferences")}),e.jsx(j,{onClick:async()=>{await h(),b(!1)},size:"sm",className:"flex-1 text-white hover:opacity-90",style:{backgroundColor:f},disabled:n,children:s(n?"Saving...":"Accept All")})]})]})})})]}):null}export{Le as C,ge as D,De as L,fe as a,pe as b,R as c,xe as d,Ne as e,he as f};
+import{r as v,j as e,z as B,B as $,E as K,F as V,I as W,S as Q,G as Y,L as Z}from"./ui-Z445SNHD.js";import{R as P}from"./react-country-flag.esm-Bs2jngHP.js";import{u as A,c as I,D as ee,h as te,j as se,k as ae,L as M,I as z,o as j,J as T,e as F,K as _,N as O,P as oe,O as U,Q as ne,r as q,R as J,a as re,C as G,X as H,T as ie,t as X}from"./app-BJfYyIIX.js";import{R as ce}from"./refresh-cw-ALYE7VHu.js";import{G as le}from"./globe-BDbxh4XP.js";import{S as de}from"./settings-iEK2zkZs.js";import{S as ue}from"./switch-Cx2aNaqN.js";function me({open:s,onOpenChange:l,onSuccess:c}){var o;const{t}=A(),{props:p}=I(),b=((o=p.globalSettings)==null?void 0:o.is_demo)||!1,[n,u]=v.useState({code:"",name:"",countryCode:""}),[x,D]=v.useState(!1),f=async d=>{var C;d.preventDefault(),D(!0);try{const y=await fetch(route("languages.create"),{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":((C=document.querySelector('meta[name="csrf-token"]'))==null?void 0:C.getAttribute("content"))||"",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(n)}),h=await y.json();y.ok&&h.success?(T.success(h.message||t("Language created successfully")),u({code:"",name:"",countryCode:""}),l(!1),c==null||c(),window.location.reload()):(console.error("Create language error:",h),b&&h.message?T.error(h.message):T.error(h.error||t("Failed to create language")))}catch(y){console.error("Network error:",y),T.error(t("Failed to create language"))}finally{D(!1)}};return e.jsx(ee,{open:s,onOpenChange:l,children:e.jsxs(te,{className:"sm:max-w-md",children:[e.jsx(se,{children:e.jsx(ae,{children:t("Create Language")})}),e.jsxs("form",{onSubmit:f,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(M,{htmlFor:"code",children:t("Language Code")}),e.jsx(z,{id:"code",placeholder:t("e.g., fr, de, ja"),value:n.code,onChange:d=>u({...n,code:d.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(M,{htmlFor:"name",children:t("Language Name")}),e.jsx(z,{id:"name",placeholder:t("e.g., Français, Deutsch, 日本語"),value:n.name,onChange:d=>u({...n,name:d.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(M,{htmlFor:"countryCode",children:t("Country Code")}),e.jsx(z,{id:"countryCode",placeholder:t("e.g., FR, DE, JP"),maxLength:2,value:n.countryCode,onChange:d=>u({...n,countryCode:d.target.value.toUpperCase()}),required:!0})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(j,{type:"button",variant:"outline",onClick:()=>l(!1),children:t("Cancel")}),e.jsx(j,{type:"submit",disabled:x,children:x?e.jsxs(e.Fragment,{children:[e.jsx(ce,{className:"h-4 w-4 animate-spin mr-2"}),t("Creating...")]}):t("Create Language")})]})]})]})})}function ge({...s}){return e.jsx(B,{"data-slot":"dropdown-menu",...s})}function fe({...s}){return e.jsx($,{"data-slot":"dropdown-menu-trigger",...s})}function pe({className:s,sideOffset:l=4,...c}){return e.jsx(K,{children:e.jsx(V,{"data-slot":"dropdown-menu-content",sideOffset:l,className:F("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",s),...c})})}function he({...s}){return e.jsx(Y,{"data-slot":"dropdown-menu-group",...s})}function R({className:s,inset:l,variant:c="default",...t}){return e.jsx(W,{"data-slot":"dropdown-menu-item","data-inset":l,"data-variant":c,className:F("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...t})}function Ne({className:s,inset:l,...c}){return e.jsx(Z,{"data-slot":"dropdown-menu-label","data-inset":l,className:F("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",s),...c})}function xe({className:s,...l}){return e.jsx(Q,{"data-slot":"dropdown-menu-separator",className:F("bg-border -mx-1 my-1 h-px",s),...l})}function De(){var g,N;const{i18n:s,t:l}=A(),{auth:c,globalSettings:t,userLanguage:p}=I().props,{setPosition:b}=_(),{updatePosition:n}=_(),[u,x]=v.useState(()=>{const a=((t==null?void 0:t.availableLanguages)||[]).filter(r=>r.enabled!==!1);if(p){const r=a.find(i=>i.code===p);if(r)return r}return a[0]||null}),[D,f]=v.useState(!1),o=(t==null?void 0:t.availableLanguages)||[],d=(t==null?void 0:t.is_saas)||!1,C=!!(c!=null&&c.user),y=((N=(g=c==null?void 0:c.user)==null?void 0:g.roles)==null?void 0:N.map(a=>a.name))||[],h=C&&O("superadmin",y),S=C&&O("company",y),m=d?h:S;v.useEffect(()=>{const a=(o||[]).filter(r=>r.enabled!==!1);if(p&&s.language!==p)s.changeLanguage(p,()=>{const r=a.find(i=>i.code===p)||a[0];x(r)});else{const r=a.find(i=>i.code===s.language)||a[0];x(r)}},[o,p]),v.useEffect(()=>{const a=(o||[]).filter(i=>i.enabled!==!1),r=a.find(i=>i.code===s.language)||a[0];x(r)},[s.language,o]);const k=["ar","he"],w=async a=>{const r=o.find(i=>i.code===a);if(r){x(r);try{await s.changeLanguage(a);const i=k.includes(a);let L;U()?L=i?"right":ne("layoutPosition")||"left":L=i?"right":(t==null?void 0:t.layoutDirection)||"left",document.documentElement.dir="ltr",document.documentElement.setAttribute("dir","ltr"),n(L),C&&!U()?q.post(route("languages.change"),{language:a},{preserveScroll:!0,onSuccess:()=>{(i||!i&&(t==null?void 0:t.layoutDirection)==="right")&&q.post(route("settings.brand.update"),{settings:{layoutDirection:L}},{preserveScroll:!0,onError:E=>{console.error("Failed to update layout direction:",E)}})},onError:E=>{console.error("Failed to change language:",E)}}):(J("app_language",a),J("layoutPosition",L)),window.dispatchEvent(new CustomEvent("languageChanged",{detail:{language:a,direction:L}})),window.dispatchEvent(new Event("resize"))}catch(i){console.error("Error changing language:",i)}}};return e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsxs(j,{variant:"ghost",className:"flex items-center gap-2 rounded-md border shadow-sm bg-white",children:[e.jsx(le,{className:"h-4 w-4"}),u&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm font-medium hidden md:inline-block",children:u.name}),e.jsx(P,{countryCode:u.countryCode,svg:!0,style:{width:"1.2em",height:"1.2em"}})]})]})}),e.jsxs(pe,{className:"w-56",align:"end",forceMount:!0,children:[e.jsx(he,{children:e.jsx("div",{className:"max-h-48 overflow-y-auto",children:(o||[]).filter(a=>a.enabled!==!1).map(a=>e.jsxs(R,{onClick:()=>w(a.code),className:`flex items-center gap-2 ${(u==null?void 0:u.code)===a.code?"bg-accent":""}`,children:[e.jsx(P,{countryCode:a.countryCode,svg:!0,style:{width:"1.2em",height:"1.2em"}}),e.jsx("span",{children:a.name})]},a.code))})}),m&&e.jsxs(e.Fragment,{children:[e.jsx(xe,{}),e.jsxs(R,{onClick:()=>f(!0),className:"justify-center text-primary font-semibold cursor-pointer",children:[e.jsx(oe,{className:"h-4 w-4 mr-2"}),l("Create Language")]}),e.jsx(R,{asChild:!0,className:"justify-center text-primary font-semibold cursor-pointer",children:e.jsxs("a",{href:route("manage-language"),rel:"noopener noreferrer",children:[e.jsx(de,{className:"h-4 w-4 mr-2"}),l("Manage Language")]})})]})]})]}),e.jsx(me,{open:D,onOpenChange:f,onSuccess:()=>f(!1)})]})}function Le(){const{t:s}=A(),{props:l}=I(),[c,t]=v.useState(!1),[p,b]=v.useState(!1),[n,u]=v.useState(!1),{themeColor:x,customColor:D}=re(),f=x==="custom"?D:ie[x],o=l.globalSettings||{},d={cookieTitle:o.cookieTitle||"Cookie Consent",cookieDescription:o.cookieDescription||"We use cookies to enhance your browsing experience and provide personalized content.",strictlyCookieTitle:o.strictlyCookieTitle||"Strictly Necessary Cookies",strictlyCookieDescription:o.strictlyCookieDescription||"These cookies are essential for the website to function properly.",contactUsDescription:o.contactUsDescription||"If you have any questions about our cookie policy, please contact us.",contactUsUrl:o.contactUsUrl||"#"};v.useEffect(()=>{var N,a;const m=o.enableLogging==="1"||o.enableLogging===1||o.enableLogging===!0,k=o.is_demo==="1"||o.is_demo===1||o.is_demo===!0,w=window.location.pathname==="/dashboard"||window.location.pathname.includes("/dashboard"),g=(a=(N=l.auth)==null?void 0:N.user)==null?void 0:a.type;if(m){if(k&&(!w||g!=="company"))return;localStorage.getItem("cookie-consent")||t(!0)}},[]);const C=async()=>{try{const m=new AbortController,k=setTimeout(()=>m.abort(),5e3),w=await fetch("https://ipapi.co/json/",{signal:m.signal,headers:{Accept:"application/json"}});if(clearTimeout(k),!w.ok)throw new Error(`HTTP error! status: ${w.status}`);const g=await w.json();return{ip:g.ip||"unknown",country:g.country_name||"unknown",city:g.city||"unknown",region:g.region||"unknown",...g}}catch(m){return console.warn("Failed to get location data:",m.message),{ip:"unknown",country:"unknown",city:"unknown",region:"unknown",error:m.message||"Location fetch failed"}}},y=async(m,k)=>{var w;try{const g=await C(),N={...k,timestamp:new Date().toISOString(),consentType:m,userAgent:navigator.userAgent||"unknown",language:navigator.language||"unknown",url:window.location.href,...g};localStorage.setItem("cookie-consent",JSON.stringify({accepted:!0,timestamp:Date.now()}));const a=(w=document.querySelector('meta[name="csrf-token"]'))==null?void 0:w.getAttribute("content");if(!a){console.warn("CSRF token not found");return}const r=await fetch(route("cookie.consent.store"),{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":a,Accept:"application/json"},body:JSON.stringify(N)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);if(!(await r.json()).success)throw new Error("Server returned error")}catch(g){throw console.error("Failed to save cookie consent:",g),localStorage.setItem("cookie-consent",JSON.stringify({accepted:!0,timestamp:Date.now()})),g}},h=async()=>{if(!n){u(!0);try{await y("accept_all",{necessary:!0,analytics:!0,marketing:!0}),t(!1)}catch{X.error(s("Failed to save cookie preferences"))}finally{u(!1)}}},S=async()=>{if(!n){u(!0);try{await y("necessary_only",{necessary:!0,analytics:!1,marketing:!1}),t(!1)}catch{X.error(s("Failed to save cookie preferences"))}finally{u(!1)}}};return c?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed bottom-4 left-1/2 transform -translate-x-1/2 z-50 max-w-md w-full mx-4",children:e.jsxs(G,{className:"p-4 shadow-lg border",children:[e.jsxs("div",{className:"flex justify-between items-start mb-3",children:[e.jsx("h3",{className:"font-semibold text-sm",children:d.cookieTitle}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>t(!1),className:"h-6 w-6 p-0",children:e.jsx(H,{className:"h-4 w-4"})})]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:d.cookieDescription}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(j,{onClick:h,size:"sm",className:"flex-1 text-white hover:opacity-90",style:{backgroundColor:f},disabled:n,children:s(n?"Saving...":"Accept All")}),e.jsx(j,{onClick:S,variant:"outline",size:"sm",className:"flex-1",style:{borderColor:f,color:f},disabled:n,children:s(n?"Saving...":"Necessary Only")})]}),e.jsx(j,{onClick:()=>b(!0),variant:"ghost",size:"sm",className:"text-sm underline",children:s("Let me choose")})]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:[d.contactUsDescription," ",e.jsx("a",{href:d.contactUsUrl,className:"underline",children:s("Contact us")})]})]})}),p&&e.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-4",children:e.jsx(G,{className:"w-full max-w-md max-h-[80vh] overflow-y-auto",children:e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("h3",{className:"text-lg font-semibold",children:d.cookieTitle}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>b(!1),className:"h-6 w-6 p-0",children:e.jsx(H,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-medium text-sm",children:d.strictlyCookieTitle}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:d.strictlyCookieDescription})]}),e.jsx(ue,{checked:!0,disabled:!0})]})}),e.jsxs("div",{className:"flex gap-2 mt-6",children:[e.jsx(j,{onClick:async()=>{await S(),b(!1)},variant:"outline",size:"sm",className:"flex-1",style:{borderColor:f,color:f},disabled:n,children:s(n?"Saving...":"Save Preferences")}),e.jsx(j,{onClick:async()=>{await h(),b(!1)},size:"sm",className:"flex-1 text-white hover:opacity-90",style:{backgroundColor:f},disabled:n,children:s(n?"Saving...":"Accept All")})]})]})})})]}):null}export{Le as C,ge as D,De as L,fe as a,pe as b,R as c,xe as d,Ne as e,he as f};
diff --git a/public/build/assets/CrudDeleteModal-C8DxE2v7.js b/public/build/assets/CrudDeleteModal-B6HMcwYN.js
similarity index 90%
rename from public/build/assets/CrudDeleteModal-C8DxE2v7.js
rename to public/build/assets/CrudDeleteModal-B6HMcwYN.js
index 9004d5650..6fa9eae05 100644
--- a/public/build/assets/CrudDeleteModal-C8DxE2v7.js
+++ b/public/build/assets/CrudDeleteModal-B6HMcwYN.js
@@ -1 +1 @@
-import{j as e}from"./ui-Z445SNHD.js";import{u as r,D as c,h as d,j as u,k as h,p as j,q as x,o as a}from"./app-BgZv7gqf.js";function p({isOpen:o,onClose:n,onConfirm:i,itemName:l,entityName:t}){const{t:s}=r();return e.jsx(c,{open:o,onOpenChange:n,children:e.jsxs(d,{className:"sm:max-w-md",children:[e.jsxs(u,{children:[e.jsxs(h,{children:[s("Delete")," ",t]}),e.jsxs(j,{children:[s("Are you sure you want to delete")," ",l||`this ${t}`,"? ",s("This action cannot be undone.")]})]}),e.jsxs(x,{className:"sm:justify-end",children:[e.jsx(a,{type:"button",variant:"outline",onClick:n,children:s("Cancel")}),e.jsx(a,{type:"button",variant:"destructive",onClick:i,children:s("Delete")})]})]})})}export{p as C};
+import{j as e}from"./ui-Z445SNHD.js";import{u as r,D as c,h as d,j as u,k as h,p as j,q as x,o as a}from"./app-BJfYyIIX.js";function p({isOpen:o,onClose:n,onConfirm:i,itemName:l,entityName:t}){const{t:s}=r();return e.jsx(c,{open:o,onOpenChange:n,children:e.jsxs(d,{className:"sm:max-w-md",children:[e.jsxs(u,{children:[e.jsxs(h,{children:[s("Delete")," ",t]}),e.jsxs(j,{children:[s("Are you sure you want to delete")," ",l||`this ${t}`,"? ",s("This action cannot be undone.")]})]}),e.jsxs(x,{className:"sm:justify-end",children:[e.jsx(a,{type:"button",variant:"outline",onClick:n,children:s("Cancel")}),e.jsx(a,{type:"button",variant:"destructive",onClick:i,children:s("Delete")})]})]})})}export{p as C};
diff --git a/public/build/assets/CrudFormModal-BYighDyZ.js b/public/build/assets/CrudFormModal-I0cLiJrd.js
similarity index 97%
rename from public/build/assets/CrudFormModal-BYighDyZ.js
rename to public/build/assets/CrudFormModal-I0cLiJrd.js
index 5ee3e4331..d9850482c 100644
--- a/public/build/assets/CrudFormModal-BYighDyZ.js
+++ b/public/build/assets/CrudFormModal-I0cLiJrd.js
@@ -1 +1 @@
-import{r as w,j as a,R as se}from"./ui-Z445SNHD.js";import{B as re,X as ce,c as oe,u as le,D as me,h as ie,j as ue,k as pe,p as de,L as R,q as xe,o as X,I as M,M as he}from"./app-BgZv7gqf.js";import{T as ye}from"./textarea-1opk0Otg.js";import{S as be,a as ge,b as je,c as ve,d as Y}from"./select-DrmcPACR.js";import{R as we,a as Se}from"./radio-group-BPwBisSB.js";import{C as Ne}from"./checkbox-DpVey6Kb.js";import{S as Oe}from"./switch-DMnwI1wX.js";import{S as Fe}from"./scroll-area-BZa27yl2.js";function ke({options:i,selected:h,onChange:g,placeholder:d="Select options",className:x}){const[O,l]=w.useState(!1),[F,j]=w.useState(""),C=w.useRef(null);w.useEffect(()=>{function t(c){C.current&&!C.current.contains(c.target)&&(l(!1),j(""))}return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[]);const b=t=>{h.includes(t)||g([...h,t]),j("")},n=t=>{g(h.filter(c=>c!==t))},p=i.filter(t=>!h.includes(t.value)&&t.label.toLowerCase().includes(F.toLowerCase()));return a.jsxs("div",{ref:C,className:`${x??""}`,children:[a.jsxs("div",{className:"flex flex-wrap gap-1 p-2 border rounded-md min-h-[38px] cursor-text",onClick:()=>l(!0),children:[h.map(t=>{const c=i.find(v=>v.value===t);return a.jsxs(re,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[(c==null?void 0:c.label)||t,a.jsx("button",{type:"button",className:"ml-1 rounded-sm",onClick:v=>{v.stopPropagation(),n(t)},children:a.jsx(ce,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},t)}),a.jsx("input",{type:"text",value:F,onChange:t=>j(t.target.value),onFocus:()=>l(!0),placeholder:h.length===0?d:"",className:"flex-1 outline-none bg-transparent min-w-[50px] text-sm"})]}),O&&p.length>0&&a.jsx("div",{className:"mt-1 w-full border border-gray-200 dark:border-gray-700 rounded-md bg-white dark:bg-gray-800 shadow-sm",children:p.map(t=>a.jsx("div",{className:"px-3 py-2 cursor-pointer text-sm text-gray-900 dark:text-gray-100 hover:bg-gray-100 dark:hover:bg-gray-700",onMouseDown:c=>{c.preventDefault(),b(t.value)},children:t.label},t.value))})]})}function Ce({field:i,formData:h,handleChange:g}){const d=Array.isArray(h[i.name])?h[i.name]:h[i.name]?[h[i.name].toString()]:[];return a.jsx(ke,{options:i.options||[],selected:d,onChange:x=>g(i.name,x),placeholder:i.placeholder||`Select ${i.label}`})}function Ve({fields:i,values:h,onChange:g,disabled:d=!1}){const{base_url:x}=oe().props,[O,l]=w.useState(()=>{const n={};return i.forEach((p,t)=>{t===0?n[p.name]=p.options||[]:n[p.name]=[]}),n}),[F,j]=w.useState({}),C=async(n,p)=>{var t;if(!n.apiEndpoint)return[];j(c=>({...c,[n.name]:!0}));try{let c=n.apiEndpoint;if(p){const u=encodeURIComponent(String(p)),y=(t=i[i.indexOf(n)-1])==null?void 0:t.name;y&&(c=c.replace(`{${y}}`,u))}const v=await fetch(`${x}${c}`);if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);const S=await v.json();return Array.isArray(S)?S.map(u=>({value:String(u.id||u.value||""),label:String(u.name||u.label||"Unknown")})):[]}catch{return[]}finally{j(c=>({...c,[n.name]:!1}))}};w.useEffect(()=>{(async()=>{const p={};for(let t=0;t =r||D<0||h&&P>=u}function C(){var U=Wf();if(E(U))return L(U);p=setTimeout(C,_(U))}function L(U){return p=void 0,S&&o?T(U):(o=l=void 0,f)}function z(){p!==void 0&&clearTimeout(p),g=0,o=m=l=p=void 0}function F(){return p===void 0?f:L(Wf())}function ee(){var U=Wf(),D=E(U);if(o=arguments,l=this,m=U,D){if(p===void 0)return b(m);if(h)return clearTimeout(p),p=setTimeout(C,r),T(m)}return p===void 0&&(p=setTimeout(C,r)),f}return ee.cancel=z,ee.flush=F,ee}function yp(t,r,a){(a!==void 0&&!_s(t[r],a)||a===void 0&&!(r in t))&&Qp(t,r,a)}function lC(t){return Er(t)&&Tu(t)}function vp(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}function uC(t){return gT(t,gx(t))}function cC(t,r,a,o,l,u,f){var p=vp(t,a),m=vp(r,a),g=f.get(m);if(g){yp(t,a,g);return}var y=u?u(p,m,a+"",t,r,f):void 0,h=y===void 0;if(h){var S=ir(m),T=!S&&ds(m),b=!S&&!T&&tm(m);y=m,S||T||b?ir(p)?y=p:lC(p)?y=rT(p):T?(h=!1,y=Sx(m,!0)):b?(h=!1,y=_x(m,!0)):y=[]:WA(m)||lu(m)?(y=p,lu(p)?y=uC(p):(!Ln(p)||Kp(p))&&(y=Ex(m))):h=!1}h&&(f.set(m,y),l(y,m,o,u,f),f.delete(m)),yp(t,a,y)}function Cx(t,r,a,o,l){t!==r&&rC(r,function(u,f){if(l||(l=new Sr),Ln(u))cC(t,r,f,a,Cx,o,l);else{var p=o?o(vp(t,f),u,f+"",t,r,l):void 0;p===void 0&&(p=u),yp(t,f,p)}},gx)}var fC={"&":"&","<":"<",">":">",'"':""","'":"'"},dC=eO(fC),Dx=/[&<>"']/g,pC=RegExp(Dx.source);function mC(t){return t=yx(t),t&&pC.test(t)?t.replace(Dx,dC):t}var hC=Object.prototype,gC=hC.hasOwnProperty;function yC(t,r){return t!=null&&gC.call(t,r)}function Nx(t,r){return t!=null&&tC(t,r,yC)}function Ea(t,r){return Rx(t,r)}var bp=ST(function(t,r,a){Cx(t,r,a)});function vC(t,r,a,o){if(!Ln(t))return t;r=rm(r,t);for(var l=-1,u=r.length,f=u-1,p=t;p!=null&&++l-1e3&&V<1e3||U.call(/e/,Z))return Z;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof V=="number"){var ke=V<0?-ne(-V):ne(V);if(ke!==V){var We=String(ke),Le=L.call(Z,We.length+1);return z.call(We,Be,"$&_")+"."+z.call(z.call(Le,/([0-9]{3})/g,"$&_"),/_$/,"")}}return z.call(Z,Be,"$&_")}var Y=SC,le=Y.custom,fe=Qe(le)?le:null,Q={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};td=function V(Z,Be,ke,We){var Le=Be||{};if(dt(Le,"quoteStyle")&&!dt(Q,Le.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(dt(Le,"maxStringLength")&&(typeof Le.maxStringLength=="number"?Le.maxStringLength<0&&Le.maxStringLength!==1/0:Le.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var sn=dt(Le,"customInspect")?Le.customInspect:!0;if(typeof sn!="boolean"&&sn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(dt(Le,"indent")&&Le.indent!==null&&Le.indent!==" "&&!(parseInt(Le.indent,10)===Le.indent&&Le.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(dt(Le,"numericSeparator")&&typeof Le.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Yt=Le.numericSeparator;if(typeof Z>"u")return"undefined";if(Z===null)return"null";if(typeof Z=="boolean")return Z?"true":"false";if(typeof Z=="string")return Ee(Z,Le);if(typeof Z=="number"){if(Z===0)return 1/0/Z>0?"0":"-0";var Te=String(Z);return Yt?j(Z,Te):Te}if(typeof Z=="bigint"){var Ze=String(Z)+"n";return Yt?j(Z,Ze):Ze}var Rt=typeof Le.depth>"u"?5:Le.depth;if(typeof ke>"u"&&(ke=0),ke>=Rt&&Rt>0&&typeof Z=="object")return Oe(Z)?"[Array]":"[Object]";var At=Pn(Le,ke);if(typeof We>"u")We=[];else if(kt(We,Z)>=0)return"[Circular]";function Mt(wr,fr,io){if(fr&&(We=k.call(We),We.push(fr)),io){var Tr={depth:Le.depth};return dt(Le,"quoteStyle")&&(Tr.quoteStyle=Le.quoteStyle),V(wr,Tr,ke+1,We)}return V(wr,Le,ke+1,We)}if(typeof Z=="function"&&!be(Z)){var ht=it(Z),Wt=on(Z,Mt);return"[Function"+(ht?": "+ht:" (anonymous)")+"]"+(Wt.length>0?" { "+P.call(Wt,", ")+" }":"")}if(Qe(Z)){var ur=ae?z.call(String(Z),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(Z);return typeof Z=="object"&&!ae?Ke(ur):ur}if(Pe(Z)){for(var zt="<"+ee.call(String(Z.nodeName)),Xt=Z.attributes||[],Kn=0;Kn Date: {date} Date: {date} Date: {date}=h;--m)l.point(O[m],x[m]);l.lineEnd(),l.areaEnd()}g&&(O[d]=+e(y,d,f),x[d]=+t(y,d,f),l.point(n?+n(y,d,f):O[d],r?+r(y,d,f):x[d]))}if(b)return l=null,b+""||null}function s(){return Nm().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:re(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:re(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:re(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:re(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:re(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:re(+f),c):r},c.lineX0=c.lineY0=function(){return s().x(e).y(t)},c.lineY1=function(){return s().x(e).y(r)},c.lineX1=function(){return s().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:re(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),c):a},c}class Dm{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function uw(e){return new Dm(e,!0)}function sw(e){return new Dm(e,!1)}const As={draw(e,t){const r=gt(t/Fi);e.moveTo(r,0),e.arc(0,0,r,0,Ra)}},cw={draw(e,t){const r=gt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},$m=gt(1/3),fw=$m*2,dw={draw(e,t){const r=gt(t/fw),n=r*$m;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},vw={draw(e,t){const r=gt(t),n=-r/2;e.rect(n,n,r,r)}},hw=.8908130915292852,Rm=Bi(Fi/10)/Bi(7*Fi/10),pw=Bi(Ra/10)*Rm,mw=-Cm(Ra/10)*Rm,yw={draw(e,t){const r=gt(t*hw),n=pw*r,i=mw*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ra*a/5,l=Cm(o),u=Bi(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*i,u*n+l*i)}e.closePath()}},No=gt(3),gw={draw(e,t){const r=-gt(t/(No*3));e.moveTo(0,r*2),e.lineTo(-No*r,-r),e.lineTo(No*r,-r),e.closePath()}},nt=-.5,it=gt(3)/2,bu=1/gt(12),bw=(bu/2+1)*3,xw={draw(e,t){const r=gt(t/bw),n=r/2,i=r*bu,a=n,o=r*bu+r,l=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(nt*n-it*i,it*n+nt*i),e.lineTo(nt*a-it*o,it*a+nt*o),e.lineTo(nt*l-it*u,it*l+nt*u),e.lineTo(nt*n+it*i,nt*i-it*n),e.lineTo(nt*a+it*o,nt*o-it*a),e.lineTo(nt*l+it*u,nt*u-it*l),e.closePath()}};function ww(e,t){let r=null,n=Ps(i);e=typeof e=="function"?e:re(e||As),t=typeof t=="function"?t:re(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:re(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:re(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Wi(){}function Ki(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Lm(e){this._context=e}Lm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ki(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ki(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Pw(e){return new Lm(e)}function zm(e){this._context=e}zm.prototype={areaStart:Wi,areaEnd:Wi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ki(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ow(e){return new zm(e)}function Bm(e){this._context=e}Bm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ki(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Aw(e){return new Bm(e)}function Fm(e){this._context=e}Fm.prototype={areaStart:Wi,areaEnd:Wi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Sw(e){return new Fm(e)}function Sf(e){return e<0?-1:1}function jf(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(Sf(a)+Sf(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Ef(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Do(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function qi(e){this._context=e}qi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Do(this,this._t0,Ef(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Do(this,Ef(this,r=jf(this,e,t)),r);break;default:Do(this,this._t0,r=jf(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Wm(e){this._context=new Km(e)}(Wm.prototype=Object.create(qi.prototype)).point=function(e,t){qi.prototype.point.call(this,t,e)};function Km(e){this._context=e}Km.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function jw(e){return new qi(e)}function Ew(e){return new Wm(e)}function qm(e){this._context=e}qm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=_f(e),i=_f(t),a=0,o=1;o=h;--m)l.point(O[m],x[m]);l.lineEnd(),l.areaEnd()}g&&(O[d]=+e(y,d,f),x[d]=+t(y,d,f),l.point(n?+n(y,d,f):O[d],r?+r(y,d,f):x[d]))}if(b)return l=null,b+""||null}function s(){return Nm().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:re(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:re(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:re(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:re(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:re(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:re(+f),c):r},c.lineX0=c.lineY0=function(){return s().x(e).y(t)},c.lineY1=function(){return s().x(e).y(r)},c.lineX1=function(){return s().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:re(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),c):a},c}class Dm{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function uw(e){return new Dm(e,!0)}function sw(e){return new Dm(e,!1)}const As={draw(e,t){const r=gt(t/Fi);e.moveTo(r,0),e.arc(0,0,r,0,Ra)}},cw={draw(e,t){const r=gt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},$m=gt(1/3),fw=$m*2,dw={draw(e,t){const r=gt(t/fw),n=r*$m;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},vw={draw(e,t){const r=gt(t),n=-r/2;e.rect(n,n,r,r)}},hw=.8908130915292852,Rm=Bi(Fi/10)/Bi(7*Fi/10),pw=Bi(Ra/10)*Rm,mw=-Cm(Ra/10)*Rm,yw={draw(e,t){const r=gt(t*hw),n=pw*r,i=mw*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ra*a/5,l=Cm(o),u=Bi(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*i,u*n+l*i)}e.closePath()}},No=gt(3),gw={draw(e,t){const r=-gt(t/(No*3));e.moveTo(0,r*2),e.lineTo(-No*r,-r),e.lineTo(No*r,-r),e.closePath()}},nt=-.5,it=gt(3)/2,bu=1/gt(12),bw=(bu/2+1)*3,xw={draw(e,t){const r=gt(t/bw),n=r/2,i=r*bu,a=n,o=r*bu+r,l=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(nt*n-it*i,it*n+nt*i),e.lineTo(nt*a-it*o,it*a+nt*o),e.lineTo(nt*l-it*u,it*l+nt*u),e.lineTo(nt*n+it*i,nt*i-it*n),e.lineTo(nt*a+it*o,nt*o-it*a),e.lineTo(nt*l+it*u,nt*u-it*l),e.closePath()}};function ww(e,t){let r=null,n=Ps(i);e=typeof e=="function"?e:re(e||As),t=typeof t=="function"?t:re(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:re(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:re(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Wi(){}function Ki(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Lm(e){this._context=e}Lm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ki(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ki(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Pw(e){return new Lm(e)}function zm(e){this._context=e}zm.prototype={areaStart:Wi,areaEnd:Wi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ki(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ow(e){return new zm(e)}function Bm(e){this._context=e}Bm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ki(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Aw(e){return new Bm(e)}function Fm(e){this._context=e}Fm.prototype={areaStart:Wi,areaEnd:Wi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Sw(e){return new Fm(e)}function Sf(e){return e<0?-1:1}function jf(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(Sf(a)+Sf(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Ef(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Do(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function qi(e){this._context=e}qi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Do(this,this._t0,Ef(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Do(this,Ef(this,r=jf(this,e,t)),r);break;default:Do(this,this._t0,r=jf(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Wm(e){this._context=new Km(e)}(Wm.prototype=Object.create(qi.prototype)).point=function(e,t){qi.prototype.point.call(this,t,e)};function Km(e){this._context=e}Km.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function jw(e){return new qi(e)}function Ew(e){return new Wm(e)}function qm(e){this._context=e}qm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=_f(e),i=_f(t),a=0,o=1;oExperience Certificate
",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class va extends _{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{st(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{st(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",s=!i&&n.height!=null?n.height:"",l=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Ui()||l.push("fc-liquid-hack"),e.children(l,s,i,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class Ce{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function ba(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Dn(t){return{[t.component.uid]:t}}const Zt={};class Re extends U{constructor(e,n){super(e,n),this.handleRefresh=()=>{let r=this.computeTiming();r.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(r.state),this.clearTimeout(),this.setTimeout(r.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:n}=this,r=n.nowManager.getDateMarker(),{nowIndicatorSnap:i}=n.options;i==="auto"&&(i=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1);let s,l;return i?(s=n.dateEnv.startOf(r,e.unit),l=n.dateEnv.add(s,C(1,e.unit)).valueOf()-r.valueOf()):(s=r,l=1e3*60),l=Math.min(1e3*60*60*24,l),{state:{nowDate:s,todayRange:ya(s)},waitMs:l}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const n=this.computeTiming();this.setState(n.state,()=>{this.setTimeout(n.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Re.contextType=$;function ya(t){let e=M(t),n=P(e,1);return{start:e,end:n}}class Ea{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,l;for(let o in n)i.push(o);for(s=0;sJoining Letter
No Objection Certificate
t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=b.fromJSON(e,t.content),s=e.nodeType(t.type).create(t.attrs,i,r);return s.type.checkAttrs(s.attrs),s}};_e.prototype.text=void 0;class zn extends _e{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):el(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new zn(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new zn(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function el(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ht{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new mc(e,t);if(r.next==null)return ht.empty;let i=tl(r);r.next&&r.err("Unexpected trailing text");let s=Cc(xc(i));return Mc(s,r),s}matchType(e){for(let t=0;tt.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=b.fromJSON(e,t.content),s=e.nodeType(t.type).create(t.attrs,i,r);return s.type.checkAttrs(s.attrs),s}};_e.prototype.text=void 0;class zn extends _e{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):el(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new zn(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new zn(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function el(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ht{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new mc(e,t);if(r.next==null)return ht.empty;let i=tl(r);r.next&&r.err("Unexpected trailing text");let s=Cc(xc(i));return Mc(s,r),s}matchType(e){for(let t=0;t_&&(g=_)}if(u){var x,R;const C=p==="y"?"width":"height",S=Rr.has(pe(o)),_=i.reference[f]-i.floating[C]+(S&&((x=c.offset)==null?void 0:x[f])||0)+(S?0:w.crossAxis),P=i.reference[f]+i.reference[C]+(S?0:((R=c.offset)==null?void 0:R[f])||0)-(S?w.crossAxis:0);h<_?h=_:h>P&&(h=P)}return{[p]:g,[f]:h}}}},dc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:c,elements:s}=t,{apply:l=()=>{},...u}=de(e,t),d=await c.detectOverflow(t,u),f=pe(o),p=Ne(o),g=ce(o)==="y",{width:h,height:v}=i.floating;let w,x;f==="top"||f==="bottom"?(w=f,x=p===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(x=f,w=p==="end"?"top":"bottom");const R=v-d.top-d.bottom,C=h-d.left-d.right,S=he(v-d[w],R),_=he(h-d[x],C),P=!t.middlewareData.shift;let b=S,T=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=R),P&&!p){const k=Q(d.left,0),B=Q(d.right,0),G=Q(d.top,0),H=Q(d.bottom,0);g?T=h-2*(k!==0||B!==0?k+B:Q(d.left,d.right)):b=v-2*(G!==0||H!==0?G+H:Q(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:b});const W=await c.getDimensions(s.floating);return h!==W.width||v!==W.height?{reset:{rects:!0}}:{}}}};function dt(){return typeof window<"u"}function De(e){return _r(e)?(e.nodeName||"").toLowerCase():"#document"}function ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function le(e){var t;return(t=(_r(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _r(e){return dt()?e instanceof Node||e instanceof ee(e).Node:!1}function re(e){return dt()?e instanceof Element||e instanceof ee(e).Element:!1}function ue(e){return dt()?e instanceof HTMLElement||e instanceof ee(e).HTMLElement:!1}function jn(e){return!dt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ee(e).ShadowRoot}const pc=new Set(["inline","contents"]);function Be(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!pc.has(o)}const mc=new Set(["table","td","th"]);function vc(e){return mc.has(De(e))}const gc=[":popover-open",":modal"];function pt(e){return gc.some(t=>{try{return e.matches(t)}catch{return!1}})}const hc=["transform","translate","scale","rotate","perspective"],yc=["transform","translate","scale","rotate","perspective","filter"],wc=["paint","layout","strict","content"];function qt(e){const t=Zt(),n=re(e)?oe(e):e;return hc.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||yc.some(r=>(n.willChange||"").includes(r))||wc.some(r=>(n.contain||"").includes(r))}function xc(e){let t=ye(e);for(;ue(t)&&!Te(t);){if(qt(t))return t;if(pt(t))return null;t=ye(t)}return null}function Zt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ec=new Set(["html","body","#document"]);function Te(e){return Ec.has(De(e))}function oe(e){return ee(e).getComputedStyle(e)}function mt(e){return re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ye(e){if(De(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jn(e)&&e.host||le(e);return jn(t)?t.host:t}function Pr(e){const t=ye(e);return Te(t)?e.ownerDocument?e.ownerDocument.body:e.body:ue(t)&&Be(t)?t:Pr(t)}function Le(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Pr(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),c=ee(o);if(i){const s=jt(c);return t.concat(c,c.visualViewport||[],Be(o)?o:[],s&&n?Le(s):[])}return t.concat(o,Le(o,[],n))}function jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Or(e){const t=oe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ue(e),i=o?e.offsetWidth:n,c=o?e.offsetHeight:r,s=rt(n)!==i||rt(r)!==c;return s&&(n=i,r=c),{width:n,height:r,$:s}}function Jt(e){return re(e)?e:e.contextElement}function Me(e){const t=Jt(e);if(!ue(t))return ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Or(t);let c=(i?rt(n.width):n.width)/r,s=(i?rt(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const Cc=ae(0);function Ar(e){const t=ee(e);return!Zt()||!t.visualViewport?Cc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ee(e)?!1:t}function Ce(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Jt(e);let c=ae(1);t&&(r?re(r)&&(c=Me(r)):c=Me(e));const s=Sc(i,n,r)?Ar(i):ae(0);let l=(o.left+s.x)/c.x,u=(o.top+s.y)/c.y,d=o.width/c.x,f=o.height/c.y;if(i){const p=ee(i),g=r&&re(r)?ee(r):r;let h=p,v=jt(h);for(;v&&r&&g!==h;){const w=Me(v),x=v.getBoundingClientRect(),R=oe(v),C=x.left+(v.clientLeft+parseFloat(R.paddingLeft))*w.x,S=x.top+(v.clientTop+parseFloat(R.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,f*=w.y,l+=C,u+=S,h=ee(v),v=jt(h)}}return it({width:d,height:f,x:l,y:u})}function vt(e,t){const n=mt(e).scrollLeft;return t?t.left+n:Ce(le(e)).left+n}function Mr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-vt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function bc(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",c=le(r),s=t?pt(t.floating):!1;if(r===c||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=ae(1);const d=ae(0),f=ue(r);if((f||!f&&!i)&&((De(r)!=="body"||Be(c))&&(l=mt(r)),ue(r))){const g=Ce(r);u=Me(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const p=c&&!f&&!i?Mr(c,l):ae(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function Rc(e){return Array.from(e.getClientRects())}function _c(e){const t=le(e),n=mt(e),r=e.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+vt(e);const s=-n.scrollTop;return oe(r).direction==="rtl"&&(c+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:c,y:s}}const Ln=25;function Pc(e,t){const n=ee(e),r=le(e),o=n.visualViewport;let i=r.clientWidth,c=r.clientHeight,s=0,l=0;if(o){i=o.width,c=o.height;const d=Zt();(!d||d&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const u=vt(r);if(u<=0){const d=r.ownerDocument,f=d.body,p=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(r.clientWidth-f.clientWidth-g);h<=Ln&&(i-=h)}else u<=Ln&&(i+=u);return{width:i,height:c,x:s,y:l}}const Oc=new Set(["absolute","fixed"]);function Ac(e,t){const n=Ce(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ue(e)?Me(e):ae(1),c=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:c,height:s,x:l,y:u}}function Fn(e,t,n){let r;if(t==="viewport")r=Pc(e,n);else if(t==="document")r=_c(le(e));else if(re(t))r=Ac(t,n);else{const o=Ar(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return it(r)}function Tr(e,t){const n=ye(e);return n===t||!re(n)||Te(n)?!1:oe(n).position==="fixed"||Tr(n,t)}function Mc(e,t){const n=t.get(e);if(n)return n;let r=Le(e,[],!1).filter(s=>re(s)&&De(s)!=="body"),o=null;const i=oe(e).position==="fixed";let c=i?ye(e):e;for(;re(c)&&!Te(c);){const s=oe(c),l=qt(c);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&Oc.has(o.position)||Be(c)&&!l&&Tr(e,c))?r=r.filter(d=>d!==c):o=s,c=ye(c)}return t.set(e,r),r}function Tc(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?pt(t)?[]:Mc(t,this._c):[].concat(n),r],s=c[0],l=c.reduce((u,d)=>{const f=Fn(t,d,o);return u.top=Q(f.top,u.top),u.right=he(f.right,u.right),u.bottom=he(f.bottom,u.bottom),u.left=Q(f.left,u.left),u},Fn(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Nc(e){const{width:t,height:n}=Or(e);return{width:t,height:n}}function Dc(e,t,n){const r=ue(t),o=le(t),i=n==="fixed",c=Ce(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ae(0);function u(){l.x=vt(o)}if(r||!r&&!i)if((De(t)!=="body"||Be(o))&&(s=mt(t)),r){const g=Ce(t,!0,i,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?Mr(o,s):ae(0),f=c.left+s.scrollLeft-l.x-d.x,p=c.top+s.scrollTop-l.y-d.y;return{x:f,y:p,width:c.width,height:c.height}}function At(e){return oe(e).position==="static"}function kn(e,t){if(!ue(e)||oe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return le(e)===n&&(n=n.ownerDocument.body),n}function Nr(e,t){const n=ee(e);if(pt(e))return n;if(!ue(e)){let o=ye(e);for(;o&&!Te(o);){if(re(o)&&!At(o))return o;o=ye(o)}return n}let r=kn(e,t);for(;r&&vc(r)&&At(r);)r=kn(r,t);return r&&Te(r)&&At(r)&&!qt(r)?n:r||xc(e)||n}const Ic=async function(e){const t=this.getOffsetParent||Nr,n=this.getDimensions,r=await n(e.floating);return{reference:Dc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $c(e){return oe(e).direction==="rtl"}const jc={convertOffsetParentRelativeRectToViewportRelativeRect:bc,getDocumentElement:le,getClippingRect:Tc,getOffsetParent:Nr,getElementRects:Ic,getClientRects:Rc,getDimensions:Nc,getScale:Me,isElement:re,isRTL:$c};function Dr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Lc(e,t){let n=null,r;const o=le(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function c(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:g}=u;if(s||t(),!p||!g)return;const h=Je(f),v=Je(o.clientWidth-(d+p)),w=Je(o.clientHeight-(f+g)),x=Je(d),C={rootMargin:-h+"px "+-v+"px "+-w+"px "+-x+"px",threshold:Q(0,he(1,l))||1};let S=!0;function _(P){const b=P[0].intersectionRatio;if(b!==l){if(!S)return c();b?c(!1,b):r=setTimeout(()=>{c(!1,1e-7)},1e3)}b===1&&!Dr(u,e.getBoundingClientRect())&&c(),S=!1}try{n=new IntersectionObserver(_,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,C)}n.observe(e)}return c(!0),i}function Fc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Jt(e),d=o||i?[...u?Le(u):[],...Le(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const f=u&&s?Lc(u,n):null;let p=-1,g=null;c&&(g=new ResizeObserver(x=>{let[R]=x;R&&R.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let h,v=l?Ce(e):null;l&&w();function w(){const x=Ce(e);v&&!Dr(v,x)&&n(),v=x,h=requestAnimationFrame(w)}return n(),()=>{var x;d.forEach(R=>{o&&R.removeEventListener("scroll",n),i&&R.removeEventListener("resize",n)}),f==null||f(),(x=g)==null||x.disconnect(),g=null,l&&cancelAnimationFrame(h)}}const kc=uc,Wc=lc,Bc=sc,Vc=dc,Hc=cc,Wn=ic,Uc=fc,Gc=(e,t,n)=>{const r=new Map,o={platform:jc,...n},i={...o.platform,_c:r};return oc(e,t,{...o,platform:i})};var Kc=typeof document<"u",Yc=function(){},tt=Kc?a.useLayoutEffect:Yc;function st(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!st(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!st(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ir(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bn(e,t){const n=Ir(e);return Math.round(t*n)/n}function Mt(e){const t=a.useRef(e);return tt(()=>{t.current=e}),t}function zc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:c}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,f]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=a.useState(r);st(p,r)||g(r);const[h,v]=a.useState(null),[w,x]=a.useState(null),R=a.useCallback(D=>{D!==P.current&&(P.current=D,v(D))},[]),C=a.useCallback(D=>{D!==b.current&&(b.current=D,x(D))},[]),S=i||h,_=c||w,P=a.useRef(null),b=a.useRef(null),T=a.useRef(d),W=l!=null,k=Mt(l),B=Mt(o),G=Mt(u),H=a.useCallback(()=>{if(!P.current||!b.current)return;const D={placement:t,strategy:n,middleware:p};B.current&&(D.platform=B.current),Gc(P.current,b.current,D).then(O=>{const Y={...O,isPositioned:G.current!==!1};V.current&&!st(T.current,Y)&&(T.current=Y,ut.flushSync(()=>{f(Y)}))})},[p,t,n,B,G]);tt(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(D=>({...D,isPositioned:!1})))},[u]);const V=a.useRef(!1);tt(()=>(V.current=!0,()=>{V.current=!1}),[]),tt(()=>{if(S&&(P.current=S),_&&(b.current=_),S&&_){if(k.current)return k.current(S,_,H);H()}},[S,_,H,k,W]);const z=a.useMemo(()=>({reference:P,floating:b,setReference:R,setFloating:C}),[R,C]),$=a.useMemo(()=>({reference:S,floating:_}),[S,_]),K=a.useMemo(()=>{const D={position:n,left:0,top:0};if(!$.floating)return D;const O=Bn($.floating,d.x),Y=Bn($.floating,d.y);return s?{...D,transform:"translate("+O+"px, "+Y+"px)",...Ir($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:Y}},[n,s,$.floating,d.x,d.y]);return a.useMemo(()=>({...d,update:H,refs:z,elements:$,floatingStyles:K}),[d,H,z,$,K])}const Xc=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Wn({element:r.current,padding:o}).fn(n):{}:r?Wn({element:r,padding:o}).fn(n):{}}}},qc=(e,t)=>({...kc(e),options:[e,t]}),Zc=(e,t)=>({...Wc(e),options:[e,t]}),Jc=(e,t)=>({...Uc(e),options:[e,t]}),Qc=(e,t)=>({...Bc(e),options:[e,t]}),ea=(e,t)=>({...Vc(e),options:[e,t]}),ta=(e,t)=>({...Hc(e),options:[e,t]}),na=(e,t)=>({...Xc(e),options:[e,t]});function ra(e){const t=oa(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(sa);if(l){const u=l.props.children,d=s.map(f=>f===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return y.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function oa(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=aa(o),s=ca(i,o.props);return o.type!==a.Fragment&&(s.ref=r?te(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ia=Symbol("radix.slottable");function sa(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ia}function ca(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function aa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ua=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],la=ua.reduce((e,t)=>{const n=ra(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),fa="Arrow",$r=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return y.jsx(la.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});$r.displayName=fa;var da=$r;function pa(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),l=n.length;n=[...n,c];const u=f=>{var x;const{scope:p,children:g,...h}=f,v=((x=p==null?void 0:p[e])==null?void 0:x[l])||s,w=a.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:w,children:g})};u.displayName=i+"Provider";function d(f,p){var v;const g=((v=p==null?void 0:p[e])==null?void 0:v[l])||s,h=a.useContext(g);if(h)return h;if(c!==void 0)return c;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const l=(s==null?void 0:s[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,ma(o,...t)]}function ma(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const c=r.reduce((s,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...s,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function va(e){const t=ga(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(ya);if(l){const u=l.props.children,d=s.map(f=>f===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return y.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function ga(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=xa(o),s=wa(i,o.props);return o.type!==a.Fragment&&(s.ref=r?te(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ha=Symbol("radix.slottable");function ya(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ha}function wa(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function xa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ea=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jr=Ea.reduce((e,t)=>{const n=va(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ca(e){const[t,n]=a.useState(void 0);return ge(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let c,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;c=u.inlineSize,s=u.blockSize}else c=e.offsetWidth,s=e.offsetHeight;n({width:c,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Qt="Popper",[Lr,Fr]=pa(Qt),[Sa,kr]=Lr(Qt),Wr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return y.jsx(Sa,{scope:t,anchor:r,onAnchorChange:o,children:n})};Wr.displayName=Qt;var Br="PopperAnchor",Vr=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=kr(Br,n),c=a.useRef(null),s=X(t,c),l=a.useRef(null);return a.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||c.current,u!==l.current&&i.onAnchorChange(l.current)}),r?null:y.jsx(jr.div,{...o,ref:s})});Vr.displayName=Br;var en="PopperContent",[ba,Ra]=Lr(en),Hr=a.forwardRef((e,t)=>{var F,q,U,xe,un,ln;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:h,...v}=e,w=kr(en,n),[x,R]=a.useState(null),C=X(t,Ie=>R(Ie)),[S,_]=a.useState(null),P=Ca(S),b=(P==null?void 0:P.width)??0,T=(P==null?void 0:P.height)??0,W=r+(i!=="center"?"-"+i:""),k=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(u)?u:[u],G=B.length>0,H={padding:k,boundary:B.filter(Pa),altBoundary:G},{refs:V,floatingStyles:z,placement:$,isPositioned:K,middlewareData:D}=zc({strategy:"fixed",placement:W,whileElementsMounted:(...Ie)=>Fc(...Ie,{animationFrame:g==="always"}),elements:{reference:w.anchor},middleware:[qc({mainAxis:o+T,alignmentAxis:c}),l&&Zc({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Jc():void 0,...H}),l&&Qc({...H}),ea({...H,apply:({elements:Ie,rects:fn,availableWidth:Fo,availableHeight:ko})=>{const{width:Wo,height:Bo}=fn.reference,Ke=Ie.floating.style;Ke.setProperty("--radix-popper-available-width",`${Fo}px`),Ke.setProperty("--radix-popper-available-height",`${ko}px`),Ke.setProperty("--radix-popper-anchor-width",`${Wo}px`),Ke.setProperty("--radix-popper-anchor-height",`${Bo}px`)}}),S&&na({element:S,padding:s}),Oa({arrowWidth:b,arrowHeight:T}),p&&ta({strategy:"referenceHidden",...H})]}),[O,Y]=Kr($),m=fe(h);ge(()=>{K&&(m==null||m())},[K,m]);const E=(F=D.arrow)==null?void 0:F.x,M=(q=D.arrow)==null?void 0:q.y,A=((U=D.arrow)==null?void 0:U.centerOffset)!==0,[j,L]=a.useState();return ge(()=>{x&&L(window.getComputedStyle(x).zIndex)},[x]),y.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:K?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(xe=D.transformOrigin)==null?void 0:xe.x,(un=D.transformOrigin)==null?void 0:un.y].join(" "),...((ln=D.hide)==null?void 0:ln.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(ba,{scope:n,placedSide:O,onArrowChange:_,arrowX:E,arrowY:M,shouldHideArrow:A,children:y.jsx(jr.div,{"data-side":O,"data-align":Y,...v,ref:C,style:{...v.style,animation:K?void 0:"none"}})})})});Hr.displayName=en;var Ur="PopperArrow",_a={top:"bottom",right:"left",bottom:"top",left:"right"},Gr=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Ra(Ur,r),c=_a[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(da,{...o,ref:n,style:{...o.style,display:"block"}})})});Gr.displayName=Ur;function Pa(e){return e!==null}var Oa=e=>({name:"transformOrigin",options:e,fn(t){var w,x,R;const{placement:n,rects:r,middlewareData:o}=t,c=((w=o.arrow)==null?void 0:w.centerOffset)!==0,s=c?0:e.arrowWidth,l=c?0:e.arrowHeight,[u,d]=Kr(n),f={start:"0%",center:"50%",end:"100%"}[d],p=(((x=o.arrow)==null?void 0:x.x)??0)+s/2,g=(((R=o.arrow)==null?void 0:R.y)??0)+l/2;let h="",v="";return u==="bottom"?(h=c?f:`${p}px`,v=`${-l}px`):u==="top"?(h=c?f:`${p}px`,v=`${r.floating.height+l}px`):u==="right"?(h=`${-l}px`,v=c?f:`${g}px`):u==="left"&&(h=`${r.floating.width+l}px`,v=c?f:`${g}px`),{data:{x:h,y:v}}}});function Kr(e){const[t,n="center"]=e.split("-");return[t,n]}var Aa=Wr,Ma=Vr,Ta=Hr,Na=Gr;function Da(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),l=n.length;n=[...n,c];const u=f=>{var x;const{scope:p,children:g,...h}=f,v=((x=p==null?void 0:p[e])==null?void 0:x[l])||s,w=a.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:w,children:g})};u.displayName=i+"Provider";function d(f,p){var v;const g=((v=p==null?void 0:p[e])==null?void 0:v[l])||s,h=a.useContext(g);if(h)return h;if(c!==void 0)return c;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const l=(s==null?void 0:s[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Ia(o,...t)]}function Ia(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const c=r.reduce((s,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...s,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function $a(e){const t=ja(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(Fa);if(l){const u=l.props.children,d=s.map(f=>f===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return y.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function ja(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=Wa(o),s=ka(i,o.props);return o.type!==a.Fragment&&(s.ref=r?te(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var La=Symbol("radix.slottable");function Fa(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===La}function ka(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Wa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ba=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Va=Ba.reduce((e,t)=>{const n=$a(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ha(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),l=n.length;n=[...n,c];const u=f=>{var x;const{scope:p,children:g,...h}=f,v=((x=p==null?void 0:p[e])==null?void 0:x[l])||s,w=a.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:w,children:g})};u.displayName=i+"Provider";function d(f,p){var v;const g=((v=p==null?void 0:p[e])==null?void 0:v[l])||s,h=a.useContext(g);if(h)return h;if(c!==void 0)return c;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const l=(s==null?void 0:s[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Ua(o,...t)]}function Ua(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const c=r.reduce((s,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...s,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Vn(e){const t=Ga(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(Ya);if(l){const u=l.props.children,d=s.map(f=>f===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return y.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Ga(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=Xa(o),s=za(i,o.props);return o.type!==a.Fragment&&(s.ref=r?te(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ka=Symbol("radix.slottable");function Ya(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ka}function za(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Xa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Yr(e){const t=e+"CollectionProvider",[n,r]=Ha(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=v=>{const{scope:w,children:x}=v,R=me.useRef(null),C=me.useRef(new Map).current;return y.jsx(o,{scope:w,itemMap:C,collectionRef:R,children:x})};c.displayName=t;const s=e+"CollectionSlot",l=Vn(s),u=me.forwardRef((v,w)=>{const{scope:x,children:R}=v,C=i(s,x),S=X(w,C.collectionRef);return y.jsx(l,{ref:S,children:R})});u.displayName=s;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=Vn(d),g=me.forwardRef((v,w)=>{const{scope:x,children:R,...C}=v,S=me.useRef(null),_=X(w,S),P=i(d,x);return me.useEffect(()=>(P.itemMap.set(S,{ref:S,...C}),()=>void P.itemMap.delete(S))),y.jsx(p,{[f]:"",ref:_,children:R})});g.displayName=d;function h(v){const w=i(e+"CollectionConsumer",v);return me.useCallback(()=>{const R=w.collectionRef.current;if(!R)return[];const C=Array.from(R.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((P,b)=>C.indexOf(P.ref.current)-C.indexOf(b.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:c,Slot:u,ItemSlot:g},h,r]}function qa(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),l=n.length;n=[...n,c];const u=f=>{var x;const{scope:p,children:g,...h}=f,v=((x=p==null?void 0:p[e])==null?void 0:x[l])||s,w=a.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:w,children:g})};u.displayName=i+"Provider";function d(f,p){var v;const g=((v=p==null?void 0:p[e])==null?void 0:v[l])||s,h=a.useContext(g);if(h)return h;if(c!==void 0)return c;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const l=(s==null?void 0:s[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Za(o,...t)]}function Za(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const c=r.reduce((s,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...s,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var Ja=a.createContext(void 0);function zr(e){const t=a.useContext(Ja);return e||t||"ltr"}function Xr(e){const t=Qa(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(tu);if(l){const u=l.props.children,d=s.map(f=>f===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return y.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Qa(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=ru(o),s=nu(i,o.props);return o.type!==a.Fragment&&(s.ref=r?te(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var eu=Symbol("radix.slottable");function tu(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eu}function nu(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ru(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ou=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ve=ou.reduce((e,t)=>{const n=Xr(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function iu(e,t){e&&ut.flushSync(()=>e.dispatchEvent(t))}function su(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),l=n.length;n=[...n,c];const u=f=>{var x;const{scope:p,children:g,...h}=f,v=((x=p==null?void 0:p[e])==null?void 0:x[l])||s,w=a.useMemo(()=>h,Object.values(h));return y.jsx(v.Provider,{value:w,children:g})};u.displayName=i+"Provider";function d(f,p){var v;const g=((v=p==null?void 0:p[e])==null?void 0:v[l])||s,h=a.useContext(g);if(h)return h;if(c!==void 0)return c;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const l=(s==null?void 0:s[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,cu(o,...t)]}function cu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const c=r.reduce((s,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...s,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function au(e){const t=uu(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(fu);if(l){const u=l.props.children,d=s.map(f=>f===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return y.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function uu(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=pu(o),s=du(i,o.props);return o.type!==a.Fragment&&(s.ref=r?te(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lu=Symbol("radix.slottable");function fu(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lu}function du(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function pu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qr=mu.reduce((e,t)=>{const n=au(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Tt="rovingFocusGroup.onEntryFocus",vu={bubbles:!1,cancelable:!0},He="RovingFocusGroup",[Lt,Zr,gu]=Yr(He),[hu,Jr]=su(He,[gu]),[yu,wu]=hu(He),Qr=a.forwardRef((e,t)=>y.jsx(Lt.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Lt.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(xu,{...e,ref:t})})}));Qr.displayName=He;var xu=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=a.useRef(null),g=X(t,p),h=zr(i),[v,w]=kt({prop:c,defaultProp:s??null,onChange:l,caller:He}),[x,R]=a.useState(!1),C=fe(u),S=Zr(n),_=a.useRef(!1),[P,b]=a.useState(0);return a.useEffect(()=>{const T=p.current;if(T)return T.addEventListener(Tt,C),()=>T.removeEventListener(Tt,C)},[C]),y.jsx(yu,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:v,onItemFocus:a.useCallback(T=>w(T),[w]),onItemShiftTab:a.useCallback(()=>R(!0),[]),onFocusableItemAdd:a.useCallback(()=>b(T=>T+1),[]),onFocusableItemRemove:a.useCallback(()=>b(T=>T-1),[]),children:y.jsx(qr.div,{tabIndex:x||P===0?-1:0,"data-orientation":r,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:I(e.onMouseDown,()=>{_.current=!0}),onFocus:I(e.onFocus,T=>{const W=!_.current;if(T.target===T.currentTarget&&W&&!x){const k=new CustomEvent(Tt,vu);if(T.currentTarget.dispatchEvent(k),!k.defaultPrevented){const B=S().filter($=>$.focusable),G=B.find($=>$.active),H=B.find($=>$.id===v),z=[G,H,...B].filter(Boolean).map($=>$.ref.current);no(z,d)}}_.current=!1}),onBlur:I(e.onBlur,()=>R(!1))})})}),eo="RovingFocusGroupItem",to=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:c,...s}=e,l=Oe(),u=i||l,d=wu(eo,n),f=d.currentTabStopId===u,p=Zr(n),{onFocusableItemAdd:g,onFocusableItemRemove:h,currentTabStopId:v}=d;return a.useEffect(()=>{if(r)return g(),()=>h()},[r,g,h]),y.jsx(Lt.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:y.jsx(qr.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:I(e.onMouseDown,w=>{r?d.onItemFocus(u):w.preventDefault()}),onFocus:I(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:I(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const x=Su(w,d.orientation,d.dir);if(x!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let C=p().filter(S=>S.focusable).map(S=>S.ref.current);if(x==="last")C.reverse();else if(x==="prev"||x==="next"){x==="prev"&&C.reverse();const S=C.indexOf(w.currentTarget);C=d.loop?bu(C,S+1):C.slice(S+1)}setTimeout(()=>no(C))}}),children:typeof c=="function"?c({isCurrentTabStop:f,hasTabStop:v!=null}):c})})});to.displayName=eo;var Eu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Cu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Su(e,t,n){const r=Cu(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Eu[r]}function no(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function bu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ru=Qr,_u=to,Ft=["Enter"," "],Pu=["ArrowDown","PageUp","Home"],ro=["ArrowUp","PageDown","End"],Ou=[...Pu,...ro],Au={ltr:[...Ft,"ArrowRight"],rtl:[...Ft,"ArrowLeft"]},Mu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ue="Menu",[Fe,Tu,Nu]=Yr(Ue),[Se,oo]=qa(Ue,[Nu,Fr,Jr]),gt=Fr(),io=Jr(),[Du,be]=Se(Ue),[Iu,Ge]=Se(Ue),so=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:c=!0}=e,s=gt(t),[l,u]=a.useState(null),d=a.useRef(!1),f=fe(i),p=zr(o);return a.useEffect(()=>{const g=()=>{d.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>d.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),y.jsx(Aa,{...s,children:y.jsx(Du,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:y.jsx(Iu,{scope:t,onClose:a.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:c,children:r})})})};so.displayName=Ue;var $u="MenuAnchor",tn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gt(n);return y.jsx(Ma,{...o,...r,ref:t})});tn.displayName=$u;var nn="MenuPortal",[ju,co]=Se(nn,{forceMount:void 0}),ao=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=be(nn,t);return y.jsx(ju,{scope:t,forceMount:n,children:y.jsx(we,{present:n||i.open,children:y.jsx(Vt,{asChild:!0,container:o,children:r})})})};ao.displayName=nn;var ne="MenuContent",[Lu,rn]=Se(ne),uo=a.forwardRef((e,t)=>{const n=co(ne,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=be(ne,e.__scopeMenu),c=Ge(ne,e.__scopeMenu);return y.jsx(Fe.Provider,{scope:e.__scopeMenu,children:y.jsx(we,{present:r||i.open,children:y.jsx(Fe.Slot,{scope:e.__scopeMenu,children:c.modal?y.jsx(Fu,{...o,ref:t}):y.jsx(ku,{...o,ref:t})})})})}),Fu=a.forwardRef((e,t)=>{const n=be(ne,e.__scopeMenu),r=a.useRef(null),o=X(t,r);return a.useEffect(()=>{const i=r.current;if(i)return cr(i)},[]),y.jsx(on,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:I(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ku=a.forwardRef((e,t)=>{const n=be(ne,e.__scopeMenu);return y.jsx(on,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Wu=Xr("MenuContent.ScrollLock"),on=a.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:g,disableOutsideScroll:h,...v}=e,w=be(ne,n),x=Ge(ne,n),R=gt(n),C=io(n),S=Tu(n),[_,P]=a.useState(null),b=a.useRef(null),T=X(t,b,w.onContentChange),W=a.useRef(0),k=a.useRef(""),B=a.useRef(0),G=a.useRef(null),H=a.useRef("right"),V=a.useRef(0),z=h?Ht:a.Fragment,$=h?{as:Wu,allowPinchZoom:!0}:void 0,K=O=>{var F,q;const Y=k.current+O,m=S().filter(U=>!U.disabled),E=document.activeElement,M=(F=m.find(U=>U.ref.current===E))==null?void 0:F.textValue,A=m.map(U=>U.textValue),j=Ju(A,Y,M),L=(q=m.find(U=>U.textValue===j))==null?void 0:q.ref.current;(function U(xe){k.current=xe,window.clearTimeout(W.current),xe!==""&&(W.current=window.setTimeout(()=>U(""),1e3))})(Y),L&&setTimeout(()=>L.focus())};a.useEffect(()=>()=>window.clearTimeout(W.current),[]),Jn();const D=a.useCallback(O=>{var m,E;return H.current===((m=G.current)==null?void 0:m.side)&&el(O,(E=G.current)==null?void 0:E.area)},[]);return y.jsx(Lu,{scope:n,searchRef:k,onItemEnter:a.useCallback(O=>{D(O)&&O.preventDefault()},[D]),onItemLeave:a.useCallback(O=>{var Y;D(O)||((Y=b.current)==null||Y.focus(),P(null))},[D]),onTriggerLeave:a.useCallback(O=>{D(O)&&O.preventDefault()},[D]),pointerGraceTimerRef:B,onPointerGraceIntentChange:a.useCallback(O=>{G.current=O},[]),children:y.jsx(z,{...$,children:y.jsx(Bt,{asChild:!0,trapped:o,onMountAutoFocus:I(i,O=>{var Y;O.preventDefault(),(Y=b.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:y.jsx(Wt,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:g,children:y.jsx(Ru,{asChild:!0,...C,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:P,onEntryFocus:I(l,O=>{x.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(Ta,{role:"menu","aria-orientation":"vertical","data-state":_o(w.open),"data-radix-menu-content":"",dir:x.dir,...R,...v,ref:T,style:{outline:"none",...v.style},onKeyDown:I(v.onKeyDown,O=>{const m=O.target.closest("[data-radix-menu-content]")===O.currentTarget,E=O.ctrlKey||O.altKey||O.metaKey,M=O.key.length===1;m&&(O.key==="Tab"&&O.preventDefault(),!E&&M&&K(O.key));const A=b.current;if(O.target!==A||!Ou.includes(O.key))return;O.preventDefault();const L=S().filter(F=>!F.disabled).map(F=>F.ref.current);ro.includes(O.key)&&L.reverse(),qu(L)}),onBlur:I(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(W.current),k.current="")}),onPointerMove:I(e.onPointerMove,ke(O=>{const Y=O.target,m=V.current!==O.clientX;if(O.currentTarget.contains(Y)&&m){const E=O.clientX>V.current?"right":"left";H.current=E,V.current=O.clientX}}))})})})})})})});uo.displayName=ne;var Bu="MenuGroup",sn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(Ve.div,{role:"group",...r,ref:t})});sn.displayName=Bu;var Vu="MenuLabel",lo=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(Ve.div,{...r,ref:t})});lo.displayName=Vu;var ct="MenuItem",Hn="menu.itemSelect",ht=a.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=a.useRef(null),c=Ge(ct,e.__scopeMenu),s=rn(ct,e.__scopeMenu),l=X(t,i),u=a.useRef(!1),d=()=>{const f=i.current;if(!n&&f){const p=new CustomEvent(Hn,{bubbles:!0,cancelable:!0});f.addEventListener(Hn,g=>r==null?void 0:r(g),{once:!0}),iu(f,p),p.defaultPrevented?u.current=!1:c.onClose()}};return y.jsx(fo,{...o,ref:l,disabled:n,onClick:I(e.onClick,d),onPointerDown:f=>{var p;(p=e.onPointerDown)==null||p.call(e,f),u.current=!0},onPointerUp:I(e.onPointerUp,f=>{var p;u.current||(p=f.currentTarget)==null||p.click()}),onKeyDown:I(e.onKeyDown,f=>{const p=s.searchRef.current!=="";n||p&&f.key===" "||Ft.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});ht.displayName=ct;var fo=a.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,c=rn(ct,n),s=io(n),l=a.useRef(null),u=X(t,l),[d,f]=a.useState(!1),[p,g]=a.useState("");return a.useEffect(()=>{const h=l.current;h&&g((h.textContent??"").trim())},[i.children]),y.jsx(Fe.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:y.jsx(_u,{asChild:!0,...s,focusable:!r,children:y.jsx(Ve.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:I(e.onPointerMove,ke(h=>{r?c.onItemLeave(h):(c.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:I(e.onPointerLeave,ke(h=>c.onItemLeave(h))),onFocus:I(e.onFocus,()=>f(!0)),onBlur:I(e.onBlur,()=>f(!1))})})})}),Hu="MenuCheckboxItem",po=a.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return y.jsx(yo,{scope:e.__scopeMenu,checked:n,children:y.jsx(ht,{role:"menuitemcheckbox","aria-checked":at(n)?"mixed":n,...o,ref:t,"data-state":an(n),onSelect:I(o.onSelect,()=>r==null?void 0:r(at(n)?!0:!n),{checkForDefaultPrevented:!1})})})});po.displayName=Hu;var mo="MenuRadioGroup",[Uu,Gu]=Se(mo,{value:void 0,onValueChange:()=>{}}),vo=a.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=fe(r);return y.jsx(Uu,{scope:e.__scopeMenu,value:n,onValueChange:i,children:y.jsx(sn,{...o,ref:t})})});vo.displayName=mo;var go="MenuRadioItem",ho=a.forwardRef((e,t)=>{const{value:n,...r}=e,o=Gu(go,e.__scopeMenu),i=n===o.value;return y.jsx(yo,{scope:e.__scopeMenu,checked:i,children:y.jsx(ht,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":an(i),onSelect:I(r.onSelect,()=>{var c;return(c=o.onValueChange)==null?void 0:c.call(o,n)},{checkForDefaultPrevented:!1})})})});ho.displayName=go;var cn="MenuItemIndicator",[yo,Ku]=Se(cn,{checked:!1}),wo=a.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Ku(cn,n);return y.jsx(we,{present:r||at(i.checked)||i.checked===!0,children:y.jsx(Ve.span,{...o,ref:t,"data-state":an(i.checked)})})});wo.displayName=cn;var Yu="MenuSeparator",xo=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(Ve.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});xo.displayName=Yu;var zu="MenuArrow",Eo=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gt(n);return y.jsx(Na,{...o,...r,ref:t})});Eo.displayName=zu;var Xu="MenuSub",[zl,Co]=Se(Xu),je="MenuSubTrigger",So=a.forwardRef((e,t)=>{const n=be(je,e.__scopeMenu),r=Ge(je,e.__scopeMenu),o=Co(je,e.__scopeMenu),i=rn(je,e.__scopeMenu),c=a.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,u={__scopeMenu:e.__scopeMenu},d=a.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return a.useEffect(()=>d,[d]),a.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),l(null)}},[s,l]),y.jsx(tn,{asChild:!0,...u,children:y.jsx(fo,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":_o(n.open),...e,ref:te(t,o.onTriggerChange),onClick:f=>{var p;(p=e.onClick)==null||p.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:I(e.onPointerMove,ke(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:I(e.onPointerLeave,ke(f=>{var g,h;d();const p=(g=n.content)==null?void 0:g.getBoundingClientRect();if(p){const v=(h=n.content)==null?void 0:h.dataset.side,w=v==="right",x=w?-5:5,R=p[w?"left":"right"],C=p[w?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+x,y:f.clientY},{x:R,y:p.top},{x:C,y:p.top},{x:C,y:p.bottom},{x:R,y:p.bottom}],side:v}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:I(e.onKeyDown,f=>{var g;const p=i.searchRef.current!=="";e.disabled||p&&f.key===" "||Au[r.dir].includes(f.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),f.preventDefault())})})})});So.displayName=je;var bo="MenuSubContent",Ro=a.forwardRef((e,t)=>{const n=co(ne,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=be(ne,e.__scopeMenu),c=Ge(ne,e.__scopeMenu),s=Co(bo,e.__scopeMenu),l=a.useRef(null),u=X(t,l);return y.jsx(Fe.Provider,{scope:e.__scopeMenu,children:y.jsx(we,{present:r||i.open,children:y.jsx(Fe.Slot,{scope:e.__scopeMenu,children:y.jsx(on,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;c.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:I(e.onFocusOutside,d=>{d.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:I(e.onEscapeKeyDown,d=>{c.onClose(),d.preventDefault()}),onKeyDown:I(e.onKeyDown,d=>{var g;const f=d.currentTarget.contains(d.target),p=Mu[c.dir].includes(d.key);f&&p&&(i.onOpenChange(!1),(g=s.trigger)==null||g.focus(),d.preventDefault())})})})})})});Ro.displayName=bo;function _o(e){return e?"open":"closed"}function at(e){return e==="indeterminate"}function an(e){return at(e)?"indeterminate":e?"checked":"unchecked"}function qu(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Zu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Ju(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let c=Zu(e,Math.max(i,0));o.length===1&&(c=c.filter(u=>u!==n));const l=c.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Qu(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,c=t.length-1;i
@@ -225,11 +251,10 @@
-
Payment Date:
payrollRun->pay_date)->format('d M, Y')); ?>
Status:
- status)); ?>
+ payslip->status ?? 'Generated')); ?>
+
+
+
-
EARNINGS
@@ -237,19 +262,60 @@
DEDUCTIONS
AMOUNT
-
+
-
-
-
+ Basic Salary
+
+ Undertime Deduction
+
+
+
+ Night Differential
+
+ SSS Contribution (EE)
+
+
+
+ Overtime
+
+ PhilHealth Contribution (EE)
+
+
+
+ Holiday Pay
+
+ Pag-IBIG Contribution (EE)
+
+
+
-
Adjustment +
+
+ Withholding Tax
+
+ Total Earnings
gross_pay)); ?>
Total Deductions
- deductions)); ?>
+ total_deductions)); ?>
+
+
@@ -257,7 +323,7 @@
+
+
+ Tardiness
+
+
+
+
+ Absences
+
+
+
+ Undertime
+
Days Worked:
- Absences: ()
+ Absences:
Leaves:
@@ -275,13 +341,12 @@
-
Net Pay
- net_pay)); ?>
+ Net Pay: symbol ?? '?'); ?> net_pay, 2)); ?>
+