PageSourceSearch

https://app.iclosed.io/static/js/5034.ff0f77bb.chunk.js

js iclosed.io collected 2026-09-26 06:57:47 UTC 43,516 bytes, 2 lines download raw bytes

1(self.webpackChunki_closed_app=self.webpackChunki_closed_app||[]).push([[5034],{89580:(e,t,a)=>{"use strict";a.d(t,{Z:()=>y});var l=a(1413),n=a(28381),r=a(8410),s=a(84330),o=a(75091),i=a(2647),d=a(28781),c=a(26847),u=a(84802),m=a(25779),p=a(96533),v=a(81827),x=a(32923),h=a(92264),f=a(40810),g=a(29343);const b=e=>{let{btnStyle:t,hideIcon:a,extraIcon:b,highlighWhenSelected:y,filterDateRange:w,onFilterDateRange:j,placeholder:N,openAtRightSide:C,fullWidth:S,dropdownExtrastyle:R="",dropdownContainerExtraStyles:D="",months:I=2,showSelectedValue:M=!0,defaultNotSelected:k=!1,showDateOnStaticDate:F=!1,renderLabel:L,chevronStyle:T="",onDropdownToggle:Z,dateOnReset:E,disableFuture:P=!1,maxDate:A}=e;const O=(0,n.useRef)(null),B="fr"===(0,f.JP)()?x.Z:h.default,H=[{startDate:(0,m.default)(new Date,-6),endDate:new Date,key:"selection",notSelected:k}],[V,U]=(0,n.useState)(!1),[W,z]=(0,n.useState)(),[_,Q]=(0,n.useState)(),$=(0,s.v9)((e=>{var t,a;return null===(t=e.authReducer)||void 0===t||null===(a=t.user)||void 0===a?void 0:a.user})),Y=(null===$||void 0===$?void 0:$.timeZone)||Intl.DateTimeFormat().resolvedOptions().timeZone,[J,K]=(0,n.useState)(H),{startDate:q,endDate:G}=(null===J||void 0===J?void 0:J[0])||{},X=!q||!G,ee=(0,n.useMemo)((()=>{if(A)return A;if(P){const e=new Date((0,v.formatInTimeZone)(new Date,Y,"yyyy-MM-dd HH:mm:ss.SSS"));return e.setHours(23,59,59,999),e}}),[A,P,Y]),te=(0,n.useMemo)((()=>{var e,t,a,n,r,s;return[(0,l.Z)((0,l.Z)({},w[0]),{},{startDate:"string"===typeof(null===(e=w[0])||void 0===e?void 0:e.startDate)?new Date(null===(t=w[0])||void 0===t?void 0:t.startDate):null===(a=w[0])||void 0===a?void 0:a.startDate,endDate:"string"===typeof(null===(n=w[0])||void 0===n?void 0:n.endDate)?new Date(null===(r=w[0])||void 0===r?void 0:r.endDate):null===(s=w[0])||void 0===s?void 0:s.endDate})]}),[w]);(0,n.useEffect)((()=>{K(te)}),[te,V]);const ae=(e,t)=>{e[0].notSelected=!1,Q(t),K(e)},le=()=>{J[0].notSelected=!1,j(J),z(_),U(!1)},ne=()=>{var e,t;U(!1),null===O||void 0===O||null===(e=O.current)||void 0===e||e.click(),null===te||void 0===te||!te.length||null!==te&&void 0!==te&&null!==(t=te[0])&&void 0!==t&&t.notSelected?K(H):K(te)},re=()=>{var e;if(null===J||void 0===J||null===(e=J[0])||void 0===e||!e.notSelected){var t;j(null!==E&&void 0!==E?E:H),z(void 0),U(!1),null===O||void 0===O||null===(t=O.current)||void 0===t||t.click()}};function se(e,t,a,l){const n=document.createElement("span");n.className="rdrStaticRangeLabel",n.innerText=e;const r=document.createElement("button");r.className="rdrStaticRange",r.appendChild(n);const s=new Date((0,v.formatInTimeZone)(new Date,Y,"yyyy-MM-dd HH:mm:ss.SSS"));s.setHours(0,0,0,0);const o=new Date((0,v.formatInTimeZone)(new Date,Y,"yyyy-MM-dd HH:mm:ss.SSS"));return o.setHours(23,59,59,999),r.addEventListener("click",(e=>{const n=F?(0,p.default)((0,m.default)(s,t+1),"MMM, dd yyyy",{locale:B})+" to "+(0,p.default)((0,m.default)(o,l||0),"MMM, dd yyyy",{locale:B}):a;ae([{startDate:(0,m.default)(s,t+1),endDate:(0,m.default)(o,l||0),key:"selection",notSelected:!1}],n)})),r}return(0,n.useEffect)((()=>{setTimeout((()=>{try{var e;null===(e=document.getElementsByClassName("rdrInputRanges")[0])||void 0===e||e.remove();const t=document.getElementsByClassName("rdrNextButton")[0];if(!t)return;t.innerHTML='<svg width="16" height="10" viewBox="0 0 16 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n        <path fill-rule="evenodd" clip-rule="evenodd" d="M10.293 0.292787C10.4805 0.105316 10.7348 0 11 0C11.2652 0 11.5195 0.105316 11.707 0.292787L15.707 4.29279C15.8945 4.48031 15.9998 4.73462 15.9998 4.99979C15.9998 5.26495 15.8945 5.51926 15.707 5.70679L11.707 9.70679C11.5184 9.88894 11.2658 9.98974 11.0036 9.98746C10.7414 9.98518 10.4906 9.88001 10.3052 9.6946C10.1198 9.5092 10.0146 9.25838 10.0123 8.99619C10.01 8.73399 10.1108 8.48139 10.293 8.29279L12.586 5.99979H1C0.734784 5.99979 0.48043 5.89443 0.292893 5.70689C0.105357 5.51936 0 5.265 0 4.99979C0 4.73457 0.105357 4.48022 0.292893 4.29268C0.48043 4.10514 0.734784 3.99979 1 3.99979H12.586L10.293 1.70679C10.1055 1.51926 10.0002 1.26495 10.0002 0.999786C10.0002 0.734622 10.1055 0.480314 10.293 0.292787Z" fill="#111928"/>\n        </svg>';document.getElementsByClassName("rdrPprevButton")[0].innerHTML='<svg width="16" height="10" viewB
1ox="0 0 16 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n        <path fill-rule="evenodd" clip-rule="evenodd" d="M5.70679 9.70692C5.51926 9.89439 5.26495 9.99971 4.99979 9.99971C4.73462 9.99971 4.48031 9.89439 4.29279 9.70692L0.292786 5.70692C0.105315 5.51939 0 5.26508 0 4.99992C0 4.73475 0.105315 4.48045 0.292786 4.29292L4.29279 0.292919C4.48139 0.110761 4.73399 0.00996641 4.99619 0.0122448C5.25838 0.0145233 5.5092 0.119692 5.6946 0.305101C5.88001 0.490509 5.98518 0.741321 5.98746 1.00352C5.98974 1.26571 5.88894 1.51832 5.70679 1.70692L3.41379 3.99992H14.9998C15.265 3.99992 15.5194 4.10528 15.7069 4.29281C15.8944 4.48035 15.9998 4.7347 15.9998 4.99992C15.9998 5.26514 15.8944 5.51949 15.7069 5.70703C15.5194 5.89456 15.265 5.99992 14.9998 5.99992H3.41379L5.70679 8.29292C5.89426 8.48045 5.99957 8.73475 5.99957 8.99992C5.99957 9.26508 5.89426 9.51939 5.70679 9.70692Z" fill="#111928"/>\n        </svg>\n        ';const a=document.getElementById("date-range-confirm"),l=document.getElementsByClassName("rdrDateDisplayWrapper")[0];l.remove(),a.remove();const n=document.createElement("div");n.style.display="inline-flex";const r=document.getElementsByClassName("rdrCalendarWrapper")[0];n.appendChild(l),n.appendChild(a),r.appendChild(n);const s=document.getElementsByClassName("rdrStaticRange"),o=document.createElement("button");o.innerHTML='<div class="w-[108px] flex items-center justify-center absolute bottom-0 mb-[15px]">\n        <button  class=" w-[100px] h-[2.5em] rounded-lg bg-[#FFFFFF] border-[1px] border-[#D1D5DB] text-xs">Reset</button>\n        </div>',o.addEventListener("click",re);const i=document.querySelector(".rdrDefinedRangesWrapper"),d=document.querySelector(".rdrStaticRanges");d.appendChild(se("Today",-1,"Today")),d.appendChild(se("Yesterday",-2,"Yesterday",-1)),d.appendChild(se("7D",-7,"Last Week")),d.appendChild(se("30D",-30,"Last Month")),d.appendChild(se("3M",-90,"Last 3 Months")),d.appendChild(se("6M",-180,"Last 6 Months")),d.appendChild(se("12M",-365,"Last Year")),i.appendChild(o),s[0].remove(),s[0].remove(),s[0].remove(),s[0].remove(),s[0].remove(),s[0].remove()}catch(t){}}),100)}),[V]),(0,g.jsx)("div",{children:(0,g.jsx)(o.v,{as:"div",className:"".concat(S?"w-full":""," relative inline-block text-left"),children:e=>{var l;let{open:s}=e;return(0,n.useEffect)((()=>{null===Z||void 0===Z||Z(s)}),[s]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{children:(0,g.jsxs)(o.v.Button,{ref:O,onClick:()=>U(!V),className:"".concat(t||""," ").concat(S?"w-full":""," ").concat(y&&!te[0].notSelected?"border-2 border-blue-400":"border border-gray-300"," font-medium z-[1] rounded-[8px] bg-white hover:bg-gray-50 flex items-center gap-x-1 px-3 py-[6px] text-xs focus:outline-none"),children:[!a&&(0,g.jsx)(c.Z,{className:"w-4 h-4 text-gray-500 mr-[4px] shrink-0"}),!te[0].notSelected&&M?L?L(te,W):(0,g.jsxs)("div",{className:"min-w-0 flex-1 flex items-center gap-x-1 overflow-x-hidden",children:[(0,g.jsx)("p",{className:"text-[inherit] shrink-0 cursor-pointer",children:W?"Displaying:  ":(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"no-loc-translate",children:(0,p.default)(te[0].startDate,"MMM",{locale:B})})," ",(0,g.jsx)("span",{className:"no-loc-translate",children:(0,p.default)(te[0].startDate,"dd yyyy")})]})}),!W&&(0,g.jsx)(d,{className:"w-4 h-4 shrink-0 text-gray-500 px-[2px]"}),(0,g.jsx)("p",{className:"text-[inherit] shrink-0 cursor-pointer no-loc-translate",children:W||(0,g.jsxs)(g.Fragment,{children:[(0,p.default)(te[0].endDate,"MMM",{locale:B})," ",(0,p.default)(te[0].endDate,"dd yyy")]})}),b]}):(0,g.jsx)("p",{className:"w-full text-left text-[inherit] cursor-pointer",children:N||"Date Range"}),(0,g.jsx)(u.Z,{className:"".concat(T," h-5 w-5 text-gray-600 shrink-0 transition-all ").concat(s?"rotate-180":""),"aria-hidden":"true"})]})}),(0,g.jsx)(i.u,{as:n.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,g.jsx)(o.v.Items,{className:"absolute ".concat(C?"left-0":"right-0"," z-50 mt-1 w-56 origin-top-right rounded-md bg-white focus:outline-none ").concat(D),children:(0,g.jsxs)("div",{className:"absolute top-0 ".concat(C?"left-0":"right-0"," rounded-lg bg-white border border-gray-300 shadow-md ").concat(R),children:[(0,g.jsx)(r.Dw,{onChange:e=>ae([e.selection]),ranges:J,months:I,locale:B,maxDate:ee,direction:"horizontal",className:"m-1 ".concat(null!==J&&void 0!==J&&null!==(l=J[0])&&void 0!==l&&l.startDate?"rdrInRange-selected":"rdrInRange-none")}),(0,g.jsx)("div",{children:(0,g.jsxs)("div",{id:"date-range-confirm",className:"p-[11px] ml-5 ",children:[(0,g.jsx)("button",{onClick:ne,className:"relative inline-flex items-center justify-center w-[100px] h-[2.5em] rounded-lg bg-[#FFFFFF] border-[1px] border-[#D1D5DB] text-xs mr-4",children:"Cancel"}),(0,g.jsx)(o.v.Item,{children:(0,g.jsx)("button",{onClick:le,className:"relative inline-flex items-center justify-center w-[100px] h-[2.5em] rounded-lg ".concat(X?"bg-dark-gradient-disabled":"bg-gradient"," border-[1px] border-[#D1D5DB] text-xs text-white"),disabled:X,children:"Apply"})})]})})]})})})]})}})})},y=n.memo(b)},96052:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var l=a(53894),n=a(85779),r=a(74913),s=a(29343);const o=e=>{let{chartLabels:t,timeSeries:a,totalSales:o,label:i="Sales Revenue",customStyle:d="bg-white rounded-lg shadow-md h-fit",customHeight:c=49
10}=e;const u={chart:{id:"basic-bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"smooth"},labels:t,xaxis:{type:"datetime"},yaxis:{labels:{formatter:function(e){return(0,n.e_)(e.toFixed(0))}}},tooltip:{y:{formatter:function(e){return(0,n.e_)(null===e||void 0===e?void 0:e.toFixed(0))}}}},m=[{name:"Sales Revenue",data:a.length&&(null===a||void 0===a?void 0:a.map((e=>e.revenue?e.revenue.toFixed(2):0)))||[]}];return(0,s.jsxs)("div",{className:"".concat(d),children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-end items-start p-6",children:[(0,s.jsx)("div",{className:"text-sm font-normal text-gray-500",children:i}),(0,s.jsx)("div",{className:"flex flex-col gap-y-2",children:(0,s.jsx)("div",{className:"flex items-center gap-x-4",children:(0,s.jsx)("div",{className:"text-gray-900 font-semibold text-[30px] leading-[45px]",children:a&&a.length>0?(0,n.e_)(o.value):(0,s.jsx)(r.Z,{height:28,width:110})})})})]}),(0,s.jsx)("div",{className:"flex items-center font-bold text-green-700 mr-6 gap-x-2",children:a&&a.length>0?(0,s.jsxs)(s.Fragment,{children:[o.percentage,(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M1.03052 5.55144C1.2356 5.75652 1.54321 5.73601 1.74829 5.55144L4.10669 3.06999L4.10669 8.95573C4.10669 9.24284 4.31177 9.44792 4.59888 9.44792H5.25513C5.52173 9.44792 5.74731 9.24284 5.74731 8.95573L5.74731 3.06999L8.0852 5.53093C8.29028 5.73601 8.5979 5.73601 8.80298 5.55144L9.25415 5.10027C9.43872 4.89519 9.43872 4.58757 9.25415 4.403L5.25513 0.403976C5.07056 0.219406 4.76294 0.219406 4.57837 0.403976L0.579346 4.403C0.394775 4.58757 0.394775 4.89519 0.579346 5.10027L1.03052 5.55144Z",fill:"currentColor"})})]}):(0,s.jsx)(r.Z,{height:28,width:110})})]}),a&&a.length>0?(0,s.jsx)(l.Z,{options:u,series:m,type:"area",height:c}):(0,s.jsx)("img",{className:"h-[".concat(c,"px] mx-auto"),src:"/chart-loader.gif"})]})}},47010:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var l=a(28381),n=a(2647),r=a(98911),s=a(56577),o=a(29343);const i=e=>{let{children:t,footer:a,title:i,isModalOpen:d,setModalOpen:c,customStyles:u,inviteLinkLoading:m,closeOnOutsideClick:p=!0,showCrossButton:v=!0,contentClass:x="",headerClass:h="",addClass:f=""}=e;const g=(0,l.useRef)(null);return(0,o.jsx)(n.u.Root,{show:d,as:l.Fragment,children:(0,o.jsxs)(r.V,{as:"div",className:"".concat(f," relative z-50 disable-key-listeners"),initialFocus:g,onClose:e=>{p&&c(e)},children:[(0,o.jsx)(n.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,o.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,o.jsx)("div",{className:"fixed inset-0 w-screen overflow-y-auto top-0 sm:top-0 sm:pt-16 z-0",children:(0,o.jsx)("div",{className:"h-full sm:h-fit flex justify-center text-center p-0",children:(0,o.jsx)(n.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,o.jsxs)(r.V.Panel,{className:"".concat(u," w-full md:max-w-[440px] flex flex-col relative transform rounded-lg bg-white text-left shadow-xl transition-all "),children:[(0,o.jsxs)("div",{className:"".concat(h," flex inline-flex justify-between w-full border-b p-4"),children:[(0,o.jsx)(r.V.Title,{as:"h3",className:"text-base font-semibold text-gray-900 w-fit",children:i}),v&&(0,o.jsxs)("button",{type:"button",className:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",onClick:()=>c(!1),children:[(0,o.jsx)("span",{className:"sr-only",children:"Close"}),(0,o.jsx)(s,{ref:g,className:"h-5 w-5","aria-hidden":"true"})]})]}),(0,o.jsx)("div",{className:"".concat(x," flex-1 min-h-0 text-left p-5 mt-[-6px]"),children:(0,o.jsx)("div",{className:"h-full",children:t})}),a&&(0,o.jsx)("div",{className:"border-t ",children:a})]})})})})]})})}},48517:(e,t,a)=>{"use strict";a.d(t,{Rt:()=>n,ZW:()=>s,ab:()=>r});var l=a(33613);const n=e=>({type:l.nf,query:e}),r=e=>({type:l.ir,query:e}),s=(e,t)=>({type:l.OB,saveQuery:e,getQuery:t})},11512:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>S});var l=a(1413),n=a(75458),r=a(72864),s=a(17084),o=a(84496),i=a(28381),d=a(42524),c=a(84330),u=a(25779),m=a(96052),p=a(48517),v=a(68358),x=a(99524),h=a(52693),f=
1a.n(h),g=a(47010),b=a(29343);const y=e=>{var t;let{isModalOpen:a,setModalOpen:n}=e;const r=(0,c.I0)(),s=(0,d.s0)(),[o,u]=(0,i.useState)(),{register:m,handleSubmit:h,control:y,watch:w,clearErrors:j,formState:{errors:N}}=(0,v.cI)({defaultValues:{email:"",phoneNumber:"",website:""}}),C=e=>{const{email:t,phoneNumber:a,website:l}=e;r((0,p.ZW)({email:t,phoneNumber:a,website:l})),s("".concat(window.location.pathname,"?email=").concat(t)),n(!1)};(0,i.useEffect)((()=>{w("phoneNumber")||j("phoneNumber")}),[w("phoneNumber")]);const S=()=>{window.grecaptcha.ready((e=>{window.grecaptcha.execute("6LdaXE4lAAAAAHuOfkvf_1pgRCTyHyVPjkxMnctJ",{action:"homepage"}).then((e=>{u(e)}))}))};return(0,i.useEffect)((()=>{const e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?render=6LdaXE4lAAAAAHuOfkvf_1pgRCTyHyVPjkxMnctJ",e.addEventListener("load",S),document.body.appendChild(e)}),[]),(0,b.jsx)(g.Z,{title:"Business details",isModalOpen:a,setModalOpen:()=>{},customStyles:"relative my-auto w-11/12 md:w-[500px] transform rounded-lg  bg-white  text-left shadow-xl transition-all ",closeOnOutsideClick:!1,showCrossButton:!1,children:(0,b.jsxs)("form",{onSubmit:e=>{e.preventDefault(),h(C)},children:[(0,b.jsxs)("div",{className:"space-y-6 py-1 px-3",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("label",{htmlFor:"email",className:"block text-sm font-medium  text-[#111928]",children:["Email Address",(0,b.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,b.jsx)("div",{className:"mt-1 relative",children:(0,b.jsx)("input",(0,l.Z)((0,l.Z)({id:"email",name:"email",type:"email"},m("email",(0,l.Z)({},(0,x.Kr)()))),{},{autoComplete:"email",placeholder:"[email protected]",className:"bg-[#F9FAFB] block w-full appearance-none rounded-lg border lg:h-[40px] border-gray-300 py-2 placeholder-gray-400 shadow-sm focus:border-blue-400 focus:outline-none  sm:text-sm"}))}),(null===N||void 0===N?void 0:N.email)&&(0,b.jsxs)("p",{className:"text-red-500 text-xs mt-1 ml-1",children:[" ",null===(t=N.email)||void 0===t?void 0:t.message]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{htmlFor:"phoneNumber",className:"block text-sm font-medium text-[#111928]",children:"Phone Number"}),(0,b.jsxs)("div",{className:"mt-1 relative",children:[(0,b.jsx)(v.Qr,{name:"phoneNumber",control:y,rules:{validate:()=>x.r5},render:e=>{let{field:t}=e;const{value:a,onChange:l}=t;return(0,b.jsx)(f(),{value:a,onChange:l,placeholder:"Phone Number",containerClass:"!w-[100%] ",inputClass:"!w-[100%] !h-10 !bg-[#F9FAFB] !block !rounded-lg !border-gray-300 !py-2 !placeholder-gray-400 ",enableSearch:!0,enableLongNumbers:!0,isValid:(e,t)=>(0,x.Y0)({inputNumber:e,country:t})})}}),(null===N||void 0===N?void 0:N.phoneNumber)&&(0,b.jsxs)("p",{className:"text-red-500 text-xs mt-1 ml-1",children:[" ","Invalid Phone Number"]})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium  text-[#111928]",children:"Website"}),(0,b.jsx)("div",{className:"mt-1 relative",children:(0,b.jsx)("input",(0,l.Z)((0,l.Z)({id:"website",name:"website",type:"text"},m("website")),{},{autoComplete:"off",placeholder:"Name or Link",className:"bg-[#F9FAFB] block w-full appearance-none rounded-lg border lg:h-[40px] border-gray-300 py-2 placeholder-gray-400 shadow-sm focus:border-blue-400 focus:outline-none  sm:text-sm"}))})]})]}),(0,b.jsx)("div",{className:"mt-6 grid gap-4 grid-cols-4",children:(0,b.jsx)("button",{disabled:!o,onClick:h(C),"data-sitekey":"6LdaXE4lAAAAAHuOfkvf_1pgRCTyHyVPjkxMnctJ","data-callback":"handleRecaptchaSubmitBtn","data-action":"submit",className:"g-recaptcha col-span-2 col-end-5 md:col-span-1 md:col-end-5 inline-flex w-full justify-center rounded-md border border-transparent bg-gradient px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-[[#1C64F2]] focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2  sm:text-sm",children:"Continue"})})]})})};var w=a(89580),j=a(61367),N=a(53894);a(85779);const C=e=>{let{label:t,chartLabels:a,timeSeries:l,showUpRate:n,attribute:r="showUpRate"}=e;const s={chart:{id:"basic-bar",toolbar:{show:!1},sparkline:{enabled:!0}},dataLabels:{enabled:!1},stroke:{curve:"smooth"},labels:a,xaxis:{type:"datetime"},tooltip:{y:{formatter:function(e){return"".concat(null===e||void 0===e?void 0:e.toFixed(0))}}}},o=[{name:t,data:l.map((e=>e[r]))}];return(0,b.jsxs)("div",{className:"bg-white rounded-md shadow-none border border-gray-300 h-fit",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsxs)("div",{className:"flex flex-col justify-end items-start p-6 pb-0",children:[(0,b.jsx)("div",{className:"text-sm font-normal text-gray-500",children:t}),(0,b.jsx)("div",{className:"flex flex-col gap-y-2",children:(0,b.jsx)("div",{className:"flex items-center gap-x-4",children:(0,b.jsx)("div",{className:"text-gray-900 font-semibold text-[30px] leading-[45px]",children:null===n||void 0===n?void 0:n.value})})})]}),(0,b.jsxs)("div",{className:"flex items-center font-bold text-green-700 mr-6 gap-x-2",children:[null===n||void 0===n?void 0:n.percentage,(0,b.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,b.jsx)("path",{d:"M1.03052 5.55144C1.2356 5.75652 1.54321 5.73601 1.74829 5.55144L4.10669 3.06999L4.10669 8.95573C4.10669 9.24284 4.31177 9.44792 4.59888 9.44792H5.25513C5.52173 9.44792 5.74731 9.24284 5.74731 8.95573L5.74731 3.06999L8.0852 5.53093C8.29028 5.73601 8.5979 5.73601 8.8
10298 5.55144L9.25415 5.10027C9.43872 4.89519 9.43872 4.58757 9.25415 4.403L5.25513 0.403976C5.07056 0.219406 4.76294 0.219406 4.57837 0.403976L0.579346 4.403C0.394775 4.58757 0.394775 4.89519 0.579346 5.10027L1.03052 5.55144Z",fill:"currentColor"})})]})]}),(0,b.jsx)(N.Z,{options:s,series:o,type:"area",height:135})]})},S=()=>{var e,t,a,v,x,h,f,g,N,S,R,D,I,M,k,F,L,T,Z,E,P,A,O,B;const H=(0,d.TH)(),V=(0,c.I0)(),U=new URLSearchParams(H.search),W=(0,c.v9)((e=>e.forecastReducer)),{loading:z}=W||{},_=new Date;_.setHours(0,0,0,0);const[Q,$]=(0,i.useState)([{startDate:(0,u.default)(_,-29),endDate:_,key:"selection",notSelected:!1}]),Y=U.get("email"),[J,K]=(0,i.useState)(!0),[q,G]=(0,i.useState)([{id:"adSpent",name:"Daily Ad Spend",value:"",placeholder:"e.g. $300",type:"number"},{id:"CPC",name:"CPC",value:"",placeholder:"e.g. $15",type:"number"}]),[X,ee]=(0,i.useState)([{id:"optinRate",name:"Opt-In Rate %",value:"",placeholder:"e.g. 30%",type:"percent"},{id:"leadToCall",name:"Lead to Call %",value:"",placeholder:"e.g. 10%",type:"percent"}]),[te,ae]=(0,i.useState)([{id:"contractValue",name:"Contract Value",value:"",placeholder:"e.g. $3,500",type:"number"},{id:"averageCashCollected",name:"Average Cash Collected",value:"",placeholder:"e.g. $2,500",type:"number"}]),[le,ne]=(0,i.useState)([{id:"showUpRate",name:"Show Up Rate %",value:"",placeholder:"e.g. 80%",type:"percent"},{id:"closingRate",name:"Closing Rate %",value:"",placeholder:"e.g. 25%",type:"percent"},{id:"callBooked",name:"No. of calls / day / closer",value:"",placeholder:"e.g. 15",type:"number"}]),re=[{id:"totalAdsSpend",name:"Budget Spent",value:"$0"},{id:"totalCPC",name:"Total Clicks",value:"0"},{id:"totalOptinRate",name:"People Optin",value:"0"},{id:"totalLeadToCall",name:"Calls Booked",value:"0"},{id:"totalShowUp",name:"Calls Showed Up",value:"0"},{id:"closersNeeded",name:"No of Closers needed",value:"0"},{id:"totalContractValue",name:"Net Contract Value",value:"$0"},{id:"totalAverageCash",name:"Net Cash Collected",value:"$0"},{id:"contractROAS",name:"Contract Value ROAS",value:"0%"},{id:"collectedROAS",name:"Collected ROAS",value:"0%"},{id:"netProfit",name:"Net Profit",value:"$0"},{id:"commission",name:"Closers Commission",value:"$0"}];return(0,i.useEffect)((()=>{Y&&V((0,p.Rt)((0,l.Z)((0,l.Z)({email:Y},!Q[0].notSelected&&{dateFrom:(0,j.CM)(Q[0].startDate)}),!Q[0].notSelected&&{dateTo:(0,j.CM)((0,u.default)(Q[0].endDate,1))})))}),[Q]),(0,i.useEffect)((()=>{Y&&K(!1)}),[Y]),(0,b.jsxs)(b.Fragment,{children:[J&&(0,b.jsx)(y,{isModalOpen:J,setModalOpen:K}),(0,b.jsxs)("div",{className:"grid grid-cols-12 mb-4 md:mb-0",children:[(0,b.jsxs)("div",{className:"md:sticky top-0 col-span-12 md:col-span-3 border-r border-b border-gray-300 bg-white md:h-screen",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between p-4 bg-white  border-b border-gray-300",children:[(0,b.jsx)("p",{className:"text-base font-semibold text-gray-800",children:"Live Forecasting"}),(0,b.jsx)("button",{className:"text-sm font-normal text-blue-600",onClick:()=>{G(null===q||void 0===q?void 0:q.map((e=>(0,l.Z)((0,l.Z)({},e),{},{value:""})))),ee(null===X||void 0===X?void 0:X.map((e=>(0,l.Z)((0,l.Z)({},e),{},{value:""})))),ae(null===te||void 0===te?void 0:te.map((e=>(0,l.Z)((0,l.Z)({},e),{},{value:""})))),ne(null===le||void 0===le?void 0:le.map((e=>(0,l.Z)((0,l.Z)({},e),{},{value:""}))))},children:"Reset"})]}),(0,b.jsxs)("div",{className:"flex items-center space-x-1 bg-gray-100 py-3 px-4 border-b border-gray-300",children:[(0,b.jsx)(n,{className:"w-4 h-4 text-gray-700"}),(0,b.jsx)("span",{children:"Marketing Metrics"})]}),null===q||void 0===q?void 0:q.map((e=>(0,b.jsxs)("div",{className:"grid grid-cols-2",children:[(0,b.jsx)("div",{className:"col-span-1 px-4 py-[11px] text-13 font-medium text-gray-900 bg-white border-b border-r border-gray-300",children:null===e||void 0===e?void 0:e.name}),(0,b.jsx)("div",{className:"col-span-1 border-b border-gray-300",children:(0,b.jsx)("input",{className:"px-4 py-[11px] h-full rounded-sm bg-gray-50 w-full focus:outline-blue-600",placeholder:e.placeholder,value:e.value,onChange:t=>{var a;let l=[...q];const n=null===(a=t.target.value)||void 0===a?void 0:a.replace(/,/g,""),r=n.split(" ").join("");if((Number.parseFloat(+r)||0===Number.parseFloat(+r))&&("percent"===(null===e||void 0===e?void 0:e.type)&&+r>=0&&+r<=100||"number"===(null===e||void 0===e?void 0:e.type)&&+r<=1e9)){var s,o,i;if(null!==n&&void 0!==n&&null!==(s=n.split("."))&&void 0!==s&&null!==(o=s[1])&&void 0!==o&&o.length)l.find((t=>t.name==e.name)).value="".concat(null===n||void 0===n?void 0:n.split(".")[0],".").concat(null===n||void 0===n||null===(i=n.split(".")[1])||void 0===i?void 0:i.slice(0,2));else l.find((t=>t.name==e.name)).value=n;G(l)}}})})]},null===e||void 0===e?void 0:e.name))),(0,b.jsxs)("div",{className:"flex items-center space-x-1 bg-gray-100 py-3 px-4 border-b border-gray-300",children:[(0,b.jsx)(r,{className:"w-4 h-4 text-gray-700"}),(0,b.jsx)("span",{children:"Funnel Metrics"})]}),null===X||void 0===X?void 0:X.map((e=>(0,b.jsxs)("div",{className:"grid grid-cols-2",children:[(0,b.jsx)("div",{className:"col-span-1 px-4 py-[11px] text-13 font-medium text-gray-900 bg-white border-b border-r border-gray-300",children:null===e||void 0===e?void 0:e.name}),(0,b.jsx)("div",{className:"col-span-1 border-b border-gray-300",children:(0,b.jsx)("input",{className:"px-4 py-[11px] h-full rounded-sm bg-gray-50 w-full focus:outline-blue-600",placeholder:e.placeholder,value:e.value,onChange:t=>{var a;let l=[...X];const n=null===(a=t.target.value)||void 0===a?void 0:a.replace(/,/g,""),r=n.split(" ").join("");if((Number.parseFloat(+r)||0===Number.parseFloat(+r))&&("percent"===(null===e||void 0===e?void 0:e.type)&&+r>=0&&+r<=100||"number"===(null===e||void 0===e?void 0:e.type)&&+r<=1e9)){var s,o,i;if(null!==n&&void 0!==n&&null!==(s=n.split("."))&&void 0!==s&&null!==(o=s[1])&&void 0!==o&&o.length)l.find((t=>t.name==e.name)).value="".concat(null===n||void 0===n?void 0:n.split(".")[0],".").concat(null===n||void 0===n||null===(i=n.split(".")[1])||void 0===i?void 0:i.slice(0,2));else l.find((t=>t.name==e.name)).value=n;ee(l)}}})})]},null===e||void 0===e?void 0:e.name))),(0,b.jsxs)("div",{className:"flex items-center space-x-1 bg-gray-100 py-3 px-4 border-b border-gray-300",children:[(0,b.jsx)(s,{className:"w-4 h-4 text-gray-700"}),(0,b.jsx)("span",{children:"Product Metrics"})]}),null===te||void 0===te?void 0:te.map((e=>(0,b.jsxs)("div",{className:"grid grid-cols-2",children:[(0,b.jsx)("div",{className:"col-span-1 px-4 py-[11px] text-13 font-medium text-gray-900 bg-white border-b border-r border-gray-300",children:null===e||void 0===e?void 0:e.name}),(0,b.jsx)("div",{className:"col-span-1 border-b border-gray-300",children:(0,b.jsx)("input",{className:"px-4 py-[11px] h-full rounded-sm bg-gray-50 w-full focus:outline-blue-600",placeholder:e.placeholder,value:e.value,onChange:t=>{var a;let l=[...te];const n=null===(a=t.target.value)||void 0===a?void 0:a.replace(/,/g,""),r=n.split(" ").join("");if((Number.parseFloat(+r)||0===Number.parseFloat(+r))&&("percent"===(null===e||void 0===e?void 0:e.type)&&+r>=0&&+r<=100||"number"===(null===e||void 0===e?void 0:e.type)&&+r<=1e9)){var s,o,i;if(null!==n&&void 0!==n&&null!==(s=n.split("."))&&void 0!==s&&null!==(o=s[1])&&void 0!==o&&o.length)l.find((t=>t.name==e.name)).value="".concat(null===n||void 0===n?void 0:n.split(".")[0],".").concat(null===n||void 0===n||null===(i=n.split(".")[1])||void 0===i?void 0:i.slice(0,2));else l.find((t=>t.name==e.name)).value=n;ae(l)}}})})]},null===e||void 0===e?void 0:e.name))),(0,b.jsxs)("div",{className:"flex items-center space-x-1 bg-gray-100 py-3 px-4 border-b border-gray-300",children:[(0,b.jsx)(o,{className:"w-4 h-4 text-gray-700"}),(0,b.jsx)("span",{children:"Sales Metrics"})]}),null===le||void 0===le?void 0:le.map((e=>(0,b.jsxs)("div",{className:"grid grid-cols-2",children:[(0,b.jsx)("div",{className:"col-span-1 px-4 py-[11px] text-13 font-medium text-gray-900 bg-white border-b border-r border-gray-300",children:null===e||void 0===e?void 0:e.name}),(0,b.jsx)("div",{className:"col-span-1 border-b border-gray-300",children:(0,b.jsx)("input",{className:"px-4 py-[11px] h-full rounded-sm bg-gray-50 w-full focus:outline-blue-600",placeholder:e.placeholder,value:e.value,onChange:t=>{var a;let l=[...le];const n=null===(a=t.target.value)||void 0===a?void 0:a.replace(/,/g,""),r=n.split(" ").join("");if((Number.parseFloat(+r)||0===Number.parseFloat(+r))&&("percent"===(null===e||void 0===e?void 0:e.type)&&+r>=0&&+r<=100||"number"===(null===e||void 0===e?void 0:e.type)&&+r<=1e9)){var s,o,i;if(null!==n&&void 0!==n&&null!==(s=n.split("."))&&void 0!==s&&null!==(o=s[1])&&void 0!==o&&o.length)l.find((t=>t.name==e.name)).value="".concat(null===n||void 0===n?void 0:n.split(".")[0],".").concat(null===n||void 0===n||null===(i=n.split(".")[1])||void 0===i?void 0:i.slice(0,2));else l.find((t=>t.name==e.name)).value=n;ne(l)}}})})]},null===e||void 0===e?void 0:e.name))),(0,b.jsx)("div",{className:"flex items-center justify-center md:justify-end ",children:(0,b.jsx)("button",{onClick:()=>{console.log("email submission",Y),V((0,p.ZW)((0,l.Z)({email:Y},[...q,...X,...te,...le].reduce(((e,t)=>(e[t.id]=+t.value||0,e)),{})),{email:Y}))},className:"m-4 w-full bg-gradient px-7 py-2  md:px-3 rounded-lg text-white text-sm font-medium",disabled:z,children:z?"Calculating...":"Calculate"})})]}),(0,b.jsxs)("div",{className:"col-span-12 md:col-span-9 mt-3 md:mt-0",children:[(0,b.jsx)("div",{className:"flex items-center justify-center md:justify-start py-4 md:py-0 px-3 md:h-[57px] bg-white border-b border-t border-r md:border-t-0 md:border-r-0 border-gray-300 ",children:(0,b.jsx)(w.Z,{filterDateRange:Q,defaultRange:[{startDate:(0,u.default)(_,-29),endDate:_,key:"selection",notSelected:!1}],placeholder:"Date Range",onFilterDateRange:e=>{$(e)},months:window.innerWidth<=768?1:2,dropdownExtrastyle:window.innerWidth<=768&&"max-w-[300px]",openAtRightSide:!(window.innerWidth<=768)})}),(0,b.jsx)("div",{className:"px-[17px] pt-4 flex flex-wrap justify-center md:justify-start",children:null===re||void 0===re?void 0:re.map((e=>{var t,a;return(0,b.jsxs)("div",{className:"p-4 mr-2 md:mr-[18px] mb-4 rounded-[4px] bg-white border border-gray-300 w-[150px] md:w-[200px]",children:[(0,b.jsx)("p",{className:"text-sm font-normal text-gray-500",children:e.name}),(0,b.jsx)("p",{className:"text-sm md:text-xl font-semibold text-gray-900 mt-2 break-words",children:(null===W||void 0===W||null===(t=W.data)||void 0===t?void 0:t.calculatedData)&&(null===W||void 0===W||null===(a=W.data)||void 0===a?void 0:a.calculatedData[e.id])||0})]},e.name)}))}),(0,b.jsxs)("div",{className:"grid grid-cols-3 gap-x-6 mt-2 px-[17px]",children:[(0,b.jsx)("div",{className:"col-span-3 md:col-span-2 bg-white rounded-md",children:(0,b.jsx)(m.Z,{chartLabels:(null===W||void 0===W||null===(e=W.data)||void 0===e||null===(t=e.timeSeries)||void 0===t||null===(a=t.netProfit)||void 0===a?void 0:a.map((e=>e.time)))||[{revenue:0}],timeSeries:(null===W||void 0===W||null===(v=W.data)||void 0===v||null===(x=v.timeSeries)||void 0===x?void 0:x.netProfit)||[{revenue:0}],totalSales:{value:parseInt(null===W||void 0===W||null===(h=W.data)||void 0===h||null===(f=h.calculatedData)||void 0===f||null===(g=f.netProfit)||void 0===g?void 0:g.replace(/[$,]/g,""))||0},label:"Total Revenue",customHeight:335,customStyle:"bg-white rounded-md shadow-none border border-gray-300 h-fit"})}),(0,b.jsxs)("div",{className:"col-span-3 md:col-span-1 space-y-3 mt-3 md:mt-0",children:[(0,b.jsx)(C,{chartLabels:(null===W||void 0===W||null===(N=W.data)||void 0===N||null===(S=N.timeSeries)||void 0===S||null===(R=S.totalSales)||void 0===R?void 0:R.map((e=>e.time)))||[{revenue:0}],timeSeries:(null===W||void 0===W||null===(D=W.data)||void 0===D||null===(I=D.timeSeries)||void 0===I?void 0:I.totalSales)||[{revenue:0}],showUpRate:{value:parseInt(null===W||void 0===W||null===(M=W.data)||void 0===M||null===(k=M.calculatedData)||void 0===k||null===(F=k.totalSales)||void 0===F?void 0:F.replace(/[$,]/g,""))||0},label:"Total Sales",attribute:"revenue",customStyle:"bg-white rounded-md shadow-none border h-[fit]"}),(0,b.jsx)(C,{chartLabels:(null===W||void 0===W||null===(L=W.data)||void 0===L||null===(T=L.timeSeries)||void 0===T||null===(Z=T.totalShowU
1p)||void 0===Z?void 0:Z.map((e=>e.time)))||[{revenue:0}],timeSeries:(null===W||void 0===W||null===(E=W.data)||void 0===E||null===(P=E.timeSeries)||void 0===P?void 0:P.totalShowUp)||[{revenue:0}],showUpRate:{value:parseInt(null===W||void 0===W||null===(A=W.data)||void 0===A||null===(O=A.calculatedData)||void 0===O||null===(B=O.totalShowUp)||void 0===B?void 0:B.replace(/[$,]/g,""))||0},label:"Call showed up",attribute:"revenue",customStyle:"bg-white rounded-md shadow-none border h-fit"})]})]}),(0,b.jsx)("div",{className:"flex justify-center my-6 px-6",children:(0,b.jsx)("iframe",{className:"w-full h-[800px] border rounded-lg border-gray-300",src:"https://app.iclosed.io/e/Closing%20Mastery-123/closing-mastery"})})]})]})]})}},56577:(e,t,a)=>{var l=a(70215).default;const n=["title","titleId"],r=a(28381);const s=r.forwardRef((function(e,t){let{title:a,titleId:s}=e,o=l(e,n);return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":s},o),a?r.createElement("title",{id:s},a):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}));e.exports=s},72231:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});var l=a(59033),n=a(19337);function r(e){(0,n.Z)(1,arguments);var t=(0,l.Z)(e),a=t.getDay();return 0===a||6===a}},75091:(e,t,a)=>{"use strict";a.d(t,{v:()=>V});var l=a(45987),n=a(1413),r=a(28381),s=a(61520),o=a(22914),i=a(94538),d=a(91775),c=a(77176),u=a(16026),m=a(53118),p=a(27687),v=a(26567),x=a(25322),h=a(12195),f=a(47160),g=a(84760);var b=a(35751),y=a(31799),w=a(679),j=a(79837);const N=["disabled"];var C,S,R=((S=R||{})[S.Open=0]="Open",S[S.Closed=1]="Closed",S),D=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(D||{}),I=((C=I||{})[C.OpenMenu=0]="OpenMenu",C[C.CloseMenu=1]="CloseMenu",C[C.GoToItem=2]="GoToItem",C[C.Search=3]="Search",C[C.ClearSearch=4]="ClearSearch",C[C.RegisterItem=5]="RegisterItem",C[C.UnregisterItem=6]="UnregisterItem",C);function M(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,l=(0,h.z2)(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),n=a?l.indexOf(a):null;return-1===n&&(n=null),{items:l,activeItemIndex:n}}let k={1:e=>1===e.menuState?e:(0,n.Z)((0,n.Z)({},e),{},{activeItemIndex:null,menuState:1}),0:e=>0===e.menuState?e:(0,n.Z)((0,n.Z)({},e),{},{menuState:0}),2:(e,t)=>{var a;let l=M(e),r=(0,v.d)(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return(0,n.Z)((0,n.Z)((0,n.Z)({},e),l),{},{searchQuery:"",activeItemIndex:r,activationTrigger:null!=(a=t.trigger)?a:1})},3:(e,t)=>{let a=""!==e.searchQuery?0:1,l=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+a).concat(e.items.slice(0,e.activeItemIndex+a)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(l))&&!e.dataRef.current.disabled})),s=r?e.items.indexOf(r):-1;return-1===s||s===e.activeItemIndex?(0,n.Z)((0,n.Z)({},e),{},{searchQuery:l}):(0,n.Z)((0,n.Z)({},e),{},{searchQuery:l,activeItemIndex:s,activationTrigger:1})},4:e=>""===e.searchQuery?e:(0,n.Z)((0,n.Z)({},e),{},{searchQuery:"",searchActiveItemIndex:null}),5:(e,t)=>{let a=M(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return(0,n.Z)((0,n.Z)({},e),a)},6:(e,t)=>{let a=M(e,(e=>{let a=e.findIndex((e=>e.id===t.id));return-1!==a&&e.splice(a,1),e}));return(0,n.Z)((0,n.Z)((0,n.Z)({},e),a),{},{activationTrigger:1})}},F=(0,r.createContext)(null);function L(e){let t=(0,r.useContext)(F);if(null===t){let t=new Error("<".concat(e," /> is missing a parent <Menu /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,L),t}return t}function T(e,t){return(0,s.E)(t.type,k,e,t)}F.displayName="MenuContext";let Z=r.Fragment,E=(0,o.yV)((function(e,t){let a=(0,r.useReducer)(T,{menuState:1,buttonRef:(0,r.createRef)(),itemsRef:(0,r.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:l,itemsRef:n,buttonRef:i},d]=a,c=(0,u.T)(t);(0,f.O)([i,n],((e,t)=>{var a;d({type:1}),(0,h.sP)(t,h.tJ.Loose)||(e.preventDefault(),null==(a=i.current)||a.focus())}),0===l);let m=(0,r.useMemo)((()=>({open:0===l})),[l]),p=e,v={ref:c};return r.createElement(F.Provider,{value:a},r.createElement(b.up,{value:(0,s.E)(l,{0:b.ZM.Open,1:b.ZM.Closed})},(0,o.sY)({ourProps:v,theirProps:p,slot:m,defaultTag:Z,name:"Menu"})))})),P=(0,o.yV)((function(e,t){var a;let[l,n]=L("Menu.Button"),s=(0,u.T)(l.buttonRef,t),i="headlessui-menu-button-".concat((0,m.M)()),c=(0,d.G)(),h=(0,j.z)((e=>{switch(e.key){case p.R.Space:case p.R.Enter:case p.R.ArrowDown:e.preventDefault(),e.stopPropagation(),n({type:0}),c.nextFrame((()=>n({type:2,focus:v.T.First})));break;case p.R.ArrowUp:e.preventDefault(),e.stopPropagation(),n({type:0}),c.nextFrame((()=>n({type:2,focus:v.T.Last}
1)))}})),f=(0,j.z)((e=>{if(e.key===p.R.Space)e.preventDefault()})),g=(0,j.z)((t=>{if((0,x.P)(t.currentTarget))return t.preventDefault();e.disabled||(0===l.menuState?(n({type:1}),c.nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),n({type:0})))})),b=(0,r.useMemo)((()=>({open:0===l.menuState})),[l]),w=e,N={ref:s,id:i,type:(0,y.f)(e,l.buttonRef),"aria-haspopup":!0,"aria-controls":null==(a=l.itemsRef.current)?void 0:a.id,"aria-expanded":e.disabled?void 0:0===l.menuState,onKeyDown:h,onKeyUp:f,onClick:g};return(0,o.sY)({ourProps:N,theirProps:w,slot:b,defaultTag:"button",name:"Menu.Button"})})),A=o.AN.RenderStrategy|o.AN.Static,O=(0,o.yV)((function(e,t){var a,l;let[n,s]=L("Menu.Items"),x=(0,u.T)(n.itemsRef,t),f=(0,w.i)(n.itemsRef),y="headlessui-menu-items-".concat((0,m.M)()),N=(0,d.G)(),C=(0,b.oJ)(),S=null!==C?C===b.ZM.Open:0===n.menuState;(0,r.useEffect)((()=>{let e=n.itemsRef.current;!e||0===n.menuState&&e!==(null==f?void 0:f.activeElement)&&e.focus({preventScroll:!0})}),[n.menuState,n.itemsRef,f]),function(e){let{container:t,accept:a,walk:l,enabled:n=!0}=e,s=(0,r.useRef)(a),o=(0,r.useRef)(l);(0,r.useEffect)((()=>{s.current=a,o.current=l}),[a,l]),(0,c.e)((()=>{if(!t||!n)return;let e=(0,g.r)(t);if(!e)return;let a=s.current,l=o.current,r=Object.assign((e=>a(e)),{acceptNode:a}),i=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,r,!1);for(;i.nextNode();)l(i.currentNode)}),[t,n,s,o])}({container:n.itemsRef.current,enabled:0===n.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let R=(0,j.z)((e=>{var t,a;switch(N.dispose(),e.key){case p.R.Space:if(""!==n.searchQuery)return e.preventDefault(),e.stopPropagation(),s({type:3,value:e.key});case p.R.Enter:if(e.preventDefault(),e.stopPropagation(),s({type:1}),null!==n.activeItemIndex){let{dataRef:e}=n.items[n.activeItemIndex];null==(a=null==(t=e.current)?void 0:t.domRef.current)||a.click()}(0,h.wI)(n.buttonRef.current);break;case p.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),s({type:2,focus:v.T.Next});case p.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),s({type:2,focus:v.T.Previous});case p.R.Home:case p.R.PageUp:return e.preventDefault(),e.stopPropagation(),s({type:2,focus:v.T.First});case p.R.End:case p.R.PageDown:return e.preventDefault(),e.stopPropagation(),s({type:2,focus:v.T.Last});case p.R.Escape:e.preventDefault(),e.stopPropagation(),s({type:1}),(0,i.k)().nextFrame((()=>{var e;return null==(e=n.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1));break;case p.R.Tab:e.preventDefault(),e.stopPropagation(),s({type:1}),(0,i.k)().nextFrame((()=>{(0,h.EO)(n.buttonRef.current,e.shiftKey?h.TO.Previous:h.TO.Next)}));break;default:1===e.key.length&&(s({type:3,value:e.key}),N.setTimeout((()=>s({type:4})),350))}})),D=(0,j.z)((e=>{if(e.key===p.R.Space)e.preventDefault()})),I=(0,r.useMemo)((()=>({open:0===n.menuState})),[n]),M=e,k={"aria-activedescendant":null===n.activeItemIndex||null==(a=n.items[n.activeItemIndex])?void 0:a.id,"aria-labelledby":null==(l=n.buttonRef.current)?void 0:l.id,id:y,onKeyDown:R,onKeyUp:D,role:"menu",tabIndex:0,ref:x};return(0,o.sY)({ourProps:k,theirProps:M,slot:I,defaultTag:"div",features:A,visible:S,name:"Menu.Items"})})),B=r.Fragment,H=(0,o.yV)((function(e,t){let{disabled:a=!1}=e,n=(0,l.Z)(e,N),[s,d]=L("Menu.Item"),p="headlessui-menu-item-".concat((0,m.M)()),x=null!==s.activeItemIndex&&s.items[s.activeItemIndex].id===p,f=(0,r.useRef)(null),g=(0,u.T)(t,f);(0,c.e)((()=>{if(0!==s.menuState||!x||0===s.activationTrigger)return;let e=(0,i.k)();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,x,s.menuState,s.activationTrigger,s.activeItemIndex]);let b=(0,r.useRef)({disabled:a,domRef:f});(0,c.e)((()=>{b.current.disabled=a}),[b,a]),(0,c.e)((()=>{var e,t;b.current.textValue=null==(t=null==(e=f.current)?void 0:e.textContent)?void 0:t.toLowerCase()}),[b,f]),(0,c.e)((()=>(d({type:5,id:p,dataRef:b}),()=>d({type:6,id:p}))),[b,p]);let y=(0,j.z)((e=>{if(a)return e.preventDefault();d({type:1}),(0,h.wI)(s.buttonRef.current)})),w=(0,j.z)((()=>{if(a)return d({type:2,focus:v.T.Nothing});d({type:2,focus:v.T.Specific,id:p})})),C=(0,j.z)((()=>{a||x||d({type:2,focus:v.T.Specific,id:p,trigger:0})})),S=(0,j.z)((()=>{a||!x||d({type:2,focus:v.T.Nothing})})),R=(0,r.useMemo)((()=>({active:x,disabled:a})),[x,a]);return(0,o.sY)({ourProps:{id:p,ref:g,role:"menuitem",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,disabled:void 0,onClick:y,onFocus:w,onPointerMove:C,onMouseMove:C,onPointerLeave:S,onMouseLeave:S},theirProps:n,slot:R,defaultTag:B,name:"Menu.Item"})})),V=Object.assign(E,{Button:P,Items:O,Item:H})},31799:(e,t,a)=>{"use strict";a.d(t,{f:()=>s});var l=a(28381),n=a(77176);function r(e){var t;if(e.type)return e.type;let a=null!=(t=e.as)?t:"button";return"string"==typeof a&&"button"===a.toLowerCase()?"button":void 0}function s(e,t){let[a,s]=(0,l.useState)((()=>r(e)));return(0,n.e)((()=>{s(r(e))}),[e.type,e.as]),(0,n.e)((()=>{a||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&s("button")}),[a,t]),a}},26567:(e,t,a)=>{"use strict";a.d(t,{T:()=>n,d:()=>r});var l,n=((l=n||{})[l.First=0]="First",l[l.Previous=1]="Previous",l[l.Next=2]="Next",l[l.Last=3]="Last",l[l.Specific=4]="Specific",l[l.Nothing=5]="Nothing",l);function r(e,t){let a=t.resolveItems();if(a.length<=0)return null;let l=t.resolveActiveIndex(),n=null!=l?l:-1,r=(()=>{switch(e.focus){case 0:return a.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=a.slice().reverse().findIndex(((e,a,l)=>!(-1!==n&&l.length-a-1>=n)&&!t.resolveDisabled(e)));return-1===e?e:a.length-1-e}case 2:return a.findIndex(((e,a)=>!(a<=n)&&!t.resolveDisabled(e)));case 3:{let e=a.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:a.length-1-e}case 4:return a.findIndex((a=>t.resolveId(a)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===r?l:r}}}]);
2//# sourceMappingURL=5034.ff0f77bb.chunk.js.map

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