PageSourceSearch

https://hunterandbard.com/assets/Outreach-DASwRSZw.js

js hunterandbard.com collected 2026-09-25 19:20:32 UTC 52,787 bytes, 11 lines download raw bytes

1import{c as Xe,r as p,j as r,N as H,ag as He,z as It,ah as Et,ai as Je,aj as Qe,ak as et,al as tt,am as ne,an as at,ao as Wt,ap as At,aq as Yt,ar as Bt,as as Ht,at as Vt,au as Ut,av as zt,aw as Kt,ax as qt,ay as $t,az as Gt,P as Zt,H as Xt,B as te,L as k,S as $,e as G,f as Z,g as X,h as Y,aA as Jt,aB as Qt,aC as ea,aD as ta,I as K,T as Ve,aE as aa,k as ae,i as q}from"./index-Bnn5SQRy.js";import{t as M,c as J,s as fe,a as re,g as Ue,m as na,b as ra,d as A,e as oa,f as sa,h as Se,i as ia,j as la,k as E,l as nt,T as ca,n as da,o as de,p as B,q as ua,r as I}from"./table-DyK6BAzZ.js";import{C as fa}from"./chevron-left-CldZLyWQ.js";import{P as va}from"./plus-BDcN3ZJg.js";import{C as ha}from"./calendar-C16K0rNe.js";import{p as ge}from"./parseISO-DWrf1ZAM.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const ma=Xe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const pa=Xe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function P(e,a){const t=M(e);return isNaN(a)?J(e,NaN):(a&&t.setDate(t.getDate()+a),t)}function R(e,a){const t=M(e);if(isNaN(a))return J(e,NaN);if(!a)return t;const n=t.getDate(),o=J(e,t.getTime());o.setMonth(t.getMonth()+a+1,0);const s=o.getDate();return n>=s?o:(t.setFullYear(o.getFullYear(),o.getMonth(),n),t)}function ke(e,a){const t=a*7;return P(e,t)}function xa(e,a){return R(e,a*12)}function ya(e){let a;return e.forEach(function(t){const n=M(t);(a===void 0||a<n||isNaN(Number(n)))&&(a=n)}),a||new Date(NaN)}function ga(e){let a;return e.forEach(t=>{const n=M(t);(!a||a>n||isNaN(+n))&&(a=n)}),a||new Date(NaN)}function S(e,a){const t=fe(e),n=fe(a);return+t==+n}function oe(e,a){const t=M(e),n=M(a),o=t.getFullYear()-n.getFullYear(),s=t.getMonth()-n.getMonth();return o*12+s}function ba(e,a,t){const n=re(e,t),o=re(a,t),s=+n-Ue(n),i=+o-Ue(o);return Math.round((s-i)/na)}function Oe(e){const a=M(e),t=a.getMonth();return a.setFullYear(a.getFullYear(),t+1,0),a.setHours(23,59,59,999),a}function O(e){const a=M(e);return a.setDate(1),a.setHours(0,0,0,0),a}function Te(e,a){var l,u,f,c;const t=ra(),n=(a==null?void 0:a.weekStartsOn)??((u=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((c=(f=t.locale)==null?void 0:f.options)==null?void 0:c.weekStartsOn)??0,o=M(e),s=o.getDay(),i=(s<n?-7:0)+6-(s-n);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function rt(e){return Te(e,{weekStartsOn:1})}function _a(e){const a=M(e),t=a.getFullYear(),n=a.getMonth(),o=J(e,0);return o.setFullYear(t,n+1,0),o.setHours(0,0,0,0),o.getDate()}function ja(e){return Math.trunc(+M(e)/1e3)}function Na(e){const a=M(e),t=a.getMonth();return a.setFullYear(a.getFullYear(),t+1,0),a.setHours(0,0,0,0),a}function wa(e,a){return ba(Na(e),O(e),a)+1}function Pe(e,a){const t=M(e),n=M(a);return t.getTime()>n.getTime()}function ot(e,a){const t=M(e),n=M(a);return+t<+n}function Fe(e,a){const t=M(e),n=M(a);return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()}function Ca(e,a){const t=M(e),n=M(a);return t.getFullYear()===n.getFullYear()}function be(e,a){return P(e,-a)}function _e(e,a){const t=M(e),n=t.getFullYear(),o=t.getDate(),s=J(e,0);s.setFullYear(n,a,15),s.setHours(0,0,0,0);const i=_a(s);return t.setMonth(a,Math.min(o,i)),t}function ze(e,a){const t=M(e);return isNaN(+t)?J(e,NaN):(t.setFullYear(a),t)}var g=function(){return g=Object.assign||function(a){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=t[s])}return a},g.apply(this,arguments)};function Da(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)a.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]]);return t}function st(e,a,t){for(var n=0,o=a.length,s;n<o;n++)(s||!(n in a))&&(s||(s=Array.prototype.slice.call(a,0,n)),s[n]=a[n]);return e.concat(s||Array.prototype.slice.call(a))}function se(e){return e.mode==="multiple"}function ie(e){return e.mode==="range"}function he(e){return e.mode==="single"}var Ma={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rd
11p-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function ka(e,a){return E(e,"LLLL y",a)}function Pa(e,a){return E(e,"d",a)}function Sa(e,a){return E(e,"LLLL",a)}function Oa(e){return"".concat(e)}function Ta(e,a){return E(e,"cccccc",a)}function Fa(e,a){return E(e,"yyyy",a)}var Ra=Object.freeze({__proto__:null,formatCaption:ka,formatDay:Pa,formatMonthCaption:Sa,formatWeekNumber:Oa,formatWeekdayName:Ta,formatYearCaption:Fa}),La=function(e,a,t){return E(e,"do MMMM (EEEE)",t)},Ia=function(){return"Month: "},Ea=function(){return"Go to next month"},Wa=function(){return"Go to previous month"},Aa=function(e,a){return E(e,"cccc",a)},Ya=function(e){return"Week n. ".concat(e)},Ba=function(){return"Year: "},Ha=Object.freeze({__proto__:null,labelDay:La,labelMonthDropdown:Ia,labelNext:Ea,labelPrevious:Wa,labelWeekNumber:Ya,labelWeekday:Aa,labelYearDropdown:Ba});function Va(){var e="buttons",a=Ma,t=oa,n={},o={},s=1,i={},l=new Date;return{captionLayout:e,classNames:a,formatters:Ra,labels:Ha,locale:t,modifiersClassNames:n,modifiers:o,numberOfMonths:s,styles:i,today:l,mode:"default"}}function Ua(e){var a=e.fromYear,t=e.toYear,n=e.fromMonth,o=e.toMonth,s=e.fromDate,i=e.toDate;return n?s=O(n):a&&(s=new Date(a,0,1)),o?i=Oe(o):t&&(i=new Date(t,11,31)),{fromDate:s?fe(s):void 0,toDate:i?fe(i):void 0}}var it=p.createContext(void 0);function za(e){var a,t=e.initialProps,n=Va(),o=Ua(t),s=o.fromDate,i=o.toDate,l=(a=t.captionLayout)!==null&&a!==void 0?a:n.captionLayout;l!=="buttons"&&(!s||!i)&&(l="buttons");var u;(he(t)||se(t)||ie(t))&&(u=t.onSelect);var f=g(g(g({},n),t),{captionLayout:l,classNames:g(g({},n.classNames),t.classNames),components:g({},t.components),formatters:g(g({},n.formatters),t.formatters),fromDate:s,labels:g(g({},n.labels),t.labels),mode:t.mode||n.mode,modifiers:g(g({},n.modifiers),t.modifiers),modifiersClassNames:g(g({},n.modifiersClassNames),t.modifiersClassNames),onSelect:u,styles:g(g({},n.styles),t.styles),toDate:i});return r.jsx(it.Provider,{value:f,children:e.children})}function w(){var e=p.useContext(it);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function lt(e){var a=w(),t=a.locale,n=a.classNames,o=a.styles,s=a.formatters.formatCaption;return r.jsx("div",{className:n.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:s(e.displayMonth,{locale:t})})}function Ka(e){return r.jsx("svg",g({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:r.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function ct(e){var a,t,n=e.onChange,o=e.value,s=e.children,i=e.caption,l=e.className,u=e.style,f=w(),c=(t=(a=f.components)===null||a===void 0?void 0:a.IconDropdown)!==null&&t!==void 0?t:Ka;return r.jsxs("div",{className:l,style:u,children:[r.jsx("span",{className:f.classNames.vhidden,children:e["aria-label"]}),r.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:f.classNames.dropdown,style:f.styles.dropdown,value:o,onChange:n,children:s}),r.jsxs("div",{className:f.classNames.caption_label,style:f.styles.caption_label,"aria-hidden":"true",children:[i,r.jsx(c,{className:f.classNames.dropdown_icon,style:f.styles.dropdown_icon})]})]})}function qa(e){var a,t=w(),n=t.fromDate,o=t.toDate,s=t.styles,i=t.locale,l=t.formatters.formatMonthCaption,u=t.classNames,f=t.components,c=t.labels.labelMonthDropdown;if(!n)return r.jsx(r.Fragment,{});if(!o)return r.jsx(r.Fragment,{});var v=[];
11if(Ca(n,o))for(var h=O(n),m=n.getMonth();m<=o.getMonth();m++)v.push(_e(h,m));else for(var h=O(new Date),m=0;m<=11;m++)v.push(_e(h,m));var y=function(_){var D=Number(_.target.value),C=_e(O(e.displayMonth),D);e.onChange(C)},N=(a=f==null?void 0:f.Dropdown)!==null&&a!==void 0?a:ct;return r.jsx(N,{name:"months","aria-label":c(),className:u.dropdown_month,style:s.dropdown_month,onChange:y,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:i}),children:v.map(function(_){return r.jsx("option",{value:_.getMonth(),children:l(_,{locale:i})},_.getMonth())})})}function $a(e){var a,t=e.displayMonth,n=w(),o=n.fromDate,s=n.toDate,i=n.locale,l=n.styles,u=n.classNames,f=n.components,c=n.formatters.formatYearCaption,v=n.labels.labelYearDropdown,h=[];if(!o)return r.jsx(r.Fragment,{});if(!s)return r.jsx(r.Fragment,{});for(var m=o.getFullYear(),y=s.getFullYear(),N=m;N<=y;N++)h.push(ze(sa(new Date),N));var _=function(C){var U=ze(O(t),Number(C.target.value));e.onChange(U)},D=(a=f==null?void 0:f.Dropdown)!==null&&a!==void 0?a:ct;return r.jsx(D,{name:"years","aria-label":v(),className:u.dropdown_year,style:l.dropdown_year,onChange:_,value:t.getFullYear(),caption:c(t,{locale:i}),children:h.map(function(C){return r.jsx("option",{value:C.getFullYear(),children:c(C,{locale:i})},C.getFullYear())})})}function Ga(e,a){var t=p.useState(e),n=t[0],o=t[1],s=a===void 0?n:a;return[s,o]}function Za(e){var a=e.month,t=e.defaultMonth,n=e.today,o=a||t||n||new Date,s=e.toDate,i=e.fromDate,l=e.numberOfMonths,u=l===void 0?1:l;if(s&&oe(s,o)<0){var f=-1*(u-1);o=R(s,f)}return i&&oe(o,i)<0&&(o=i),O(o)}function Xa(){var e=w(),a=Za(e),t=Ga(a,e.month),n=t[0],o=t[1],s=function(i){var l;if(!e.disableNavigation){var u=O(i);o(u),(l=e.onMonthChange)===null||l===void 0||l.call(e,u)}};return[n,s]}function Ja(e,a){for(var t=a.reverseMonths,n=a.numberOfMonths,o=O(e),s=O(R(o,n)),i=oe(s,o),l=[],u=0;u<i;u++){var f=R(o,u);l.push(f)}return t&&(l=l.reverse()),l}function Qa(e,a){if(!a.disableNavigation){var t=a.toDate,n=a.pagedNavigation,o=a.numberOfMonths,s=o===void 0?1:o,i=n?s:1,l=O(e);if(!t)return R(l,i);var u=oe(t,e);if(!(u<s))return R(l,i)}}function en(e,a){if(!a.disableNavigation){var t=a.fromDate,n=a.pagedNavigation,o=a.numberOfMonths,s=o===void 0?1:o,i=n?s:1,l=O(e);if(!t)return R(l,-i);var u=oe(l,t);if(!(u<=0))return R(l,-i)}}var dt=p.createContext(void 0);function tn(e){var a=w(),t=Xa(),n=t[0],o=t[1],s=Ja(n,a),i=Qa(n,a),l=en(n,a),u=function(v){return s.some(function(h){return Fe(v,h)})},f=function(v,h){u(v)||(h&&ot(v,h)?o(R(v,1+a.numberOfMonths*-1)):o(v))},c={currentMonth:n,displayMonths:s,goToMonth:o,goToDate:f,previousMonth:l,nextMonth:i,isDateDisplayed:u};return r.jsx(dt.Provider,{value:c,children:e.children})}function le(){var e=p.useContext(dt);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Ke(e){var a,t=w(),n=t.classNames,o=t.styles,s=t.components,i=le().goToMonth,l=function(c){i(R(c,e.displayIndex?-e.dis
11playIndex:0))},u=(a=s==null?void 0:s.CaptionLabel)!==null&&a!==void 0?a:lt,f=r.jsx(u,{id:e.id,displayMonth:e.displayMonth});return r.jsxs("div",{className:n.caption_dropdowns,style:o.caption_dropdowns,children:[r.jsx("div",{className:n.vhidden,children:f}),r.jsx(qa,{onChange:l,displayMonth:e.displayMonth}),r.jsx($a,{onChange:l,displayMonth:e.displayMonth})]})}function an(e){return r.jsx("svg",g({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:r.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function nn(e){return r.jsx("svg",g({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:r.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var ve=p.forwardRef(function(e,a){var t=w(),n=t.classNames,o=t.styles,s=[n.button_reset,n.button];e.className&&s.push(e.className);var i=s.join(" "),l=g(g({},o.button_reset),o.button);return e.style&&Object.assign(l,e.style),r.jsx("button",g({},e,{ref:a,type:"button",className:i,style:l}))});function rn(e){var a,t,n=w(),o=n.dir,s=n.locale,i=n.classNames,l=n.styles,u=n.labels,f=u.labelPrevious,c=u.labelNext,v=n.components;if(!e.nextMonth&&!e.previousMonth)return r.jsx(r.Fragment,{});var h=f(e.previousMonth,{locale:s}),m=[i.nav_button,i.nav_button_previous].join(" "),y=c(e.nextMonth,{locale:s}),N=[i.nav_button,i.nav_button_next].join(" "),_=(a=v==null?void 0:v.IconRight)!==null&&a!==void 0?a:nn,D=(t=v==null?void 0:v.IconLeft)!==null&&t!==void 0?t:an;return r.jsxs("div",{className:i.nav,style:l.nav,children:[!e.hidePrevious&&r.jsx(ve,{name:"previous-month","aria-label":h,className:m,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?r.jsx(_,{className:i.nav_icon,style:l.nav_icon}):r.jsx(D,{className:i.nav_icon,style:l.nav_icon})}),!e.hideNext&&r.jsx(ve,{name:"next-month","aria-label":y,className:N,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?r.jsx(D,{className:i.nav_icon,style:l.nav_icon}):r.jsx(_,{className:i.nav_icon,style:l.nav_icon})})]})}function qe(e){var a=w().numberOfMonths,t=le(),n=t.previousMonth,o=t.nextMonth,s=t.goToMonth,i=t.displayMonths,l=i.findIndex(function(y){return Fe(e.displayMonth,y)}),u=l===0,f=l===i.length-1,c=a>1&&(u||!f),v=a>1&&(f||!u),h=function(){n&&s(n)},m=function(){o&&s(o)};return r.jsx(rn,{displayMonth:e.displayMonth,hideNext:c,hidePrevious:v,nextMonth:o,previousMonth:n,onPreviousClick:h,onNextClick:m})}function on(e){var a,t=w(),n=t.classNames,o=t.disableNavigation,s=t.styles,i=t.captionLayout,l=t.components,u=(a=l==null?void 0:l.CaptionLabel)!==null&&a!==void 0?a:lt,f;return o?f=r.jsx(u,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?f=r.jsx(Ke,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?f=r.jsxs(r.Fragment,{children:[r.jsx(Ke,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),r.jsx(qe,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):f=r.jsxs(r.Fragment,{children:[r.jsx(u,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),r.jsx(qe,{displayMonth:e.displayMonth,id:e.id})]}),r.jsx("div",{className:n.caption,style:s.caption,children:f})}function sn(e){var a=w(),t=a.footer,n=a.styles,o=a.classNames.tfoot;return t?r.jsx("tfoot",{className:o,style:n.tfoot,children:r.jsx("tr",{children:r.jsx("td",{colSpan:8,children:t})})}):r.jsx(r.Fragment,{})}function ln(e,a,t){for(var n=t?Se(new Date):re(new Date,{locale:e,weekStartsOn:a}),o=[],s=0;s<7;s++){var i=P(n,s);o.push(i)}return o}function cn(){var e=w(),a=e.classNames,t=e.styles,n=e.showWeekNumber,o=e.locale,s=e.weekStartsOn,i=e.ISOWeek,l=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,f=ln(o,s,i);return r.jsxs("tr",{style:t.head_row,className:a.head_row,children:[n&&r.jsx("td",{style:t.head_cell,className:a.head_cell}),f.map(function(c,v){return r.jsx("th",{scope:"col",className:a.head_cell,style:t.head_cell,"aria-label":u(c,{locale:o}),children:l(c,{locale:o})},v)})]})}function dn(){var e,a=w(),t=a.classNames,n=a.styles,o=a.components,s=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:cn;return r.jsx("thead",{style:n.head,className:t.head,children:r.jsx(s,{})})}function un(e){var a=w(),t=a.locale,n=a.formatters.formatDay;return r.jsx(r.Fragment,{children:n(e.date,{locale:t})})}var Re=p.createContext(void 0);function fn(e){if(!se(e.initialProps)){var a={selected:void 0,modifiers:{disabled:[]}};return r.jsx(Re.Provider,{value:a,children:e.children})}return r.jsx(vn,{initialProps:e.initialProps,children:e.children})}function vn(e){var a=e.initialProps,t=e.children,n=a.selected,o=a.min,s=a.max,i=function(f,c,v){var h,m;
11(h=a.onDayClick)===null||h===void 0||h.call(a,f,c,v);var y=!!(c.selected&&o&&(n==null?void 0:n.length)===o);if(!y){var N=!!(!c.selected&&s&&(n==null?void 0:n.length)===s);if(!N){var _=n?st([],n):[];if(c.selected){var D=_.findIndex(function(C){return S(f,C)});_.splice(D,1)}else _.push(f);(m=a.onSelect)===null||m===void 0||m.call(a,_,f,c,v)}}},l={disabled:[]};n&&l.disabled.push(function(f){var c=s&&n.length>s-1,v=n.some(function(h){return S(h,f)});return!!(c&&!v)});var u={selected:n,onDayClick:i,modifiers:l};return r.jsx(Re.Provider,{value:u,children:t})}function Le(){var e=p.useContext(Re);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function hn(e,a){var t=a||{},n=t.from,o=t.to;return n&&o?S(o,e)&&S(n,e)?void 0:S(o,e)?{from:o,to:void 0}:S(n,e)?void 0:Pe(n,e)?{from:e,to:o}:{from:n,to:e}:o?Pe(e,o)?{from:o,to:e}:{from:e,to:o}:n?ot(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var Ie=p.createContext(void 0);function mn(e){if(!ie(e.initialProps)){var a={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return r.jsx(Ie.Provider,{value:a,children:e.children})}return r.jsx(pn,{initialProps:e.initialProps,children:e.children})}function pn(e){var a=e.initialProps,t=e.children,n=a.selected,o=n||{},s=o.from,i=o.to,l=a.min,u=a.max,f=function(m,y,N){var _,D;(_=a.onDayClick)===null||_===void 0||_.call(a,m,y,N);var C=hn(m,n);(D=a.onSelect)===null||D===void 0||D.call(a,C,m,y,N)},c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(s?(c.range_start=[s],i?(c.range_end=[i],S(s,i)||(c.range_middle=[{after:s,before:i}])):c.range_end=[s]):i&&(c.range_start=[i],c.range_end=[i]),l&&(s&&!i&&c.disabled.push({after:be(s,l-1),before:P(s,l-1)}),s&&i&&c.disabled.push({after:s,before:P(s,l-1)}),!s&&i&&c.disabled.push({after:be(i,l-1),before:P(i,l-1)})),u){if(s&&!i&&(c.disabled.push({before:P(s,-u+1)}),c.disabled.push({after:P(s,u-1)})),s&&i){var v=A(i,s)+1,h=u-v;c.disabled.push({before:be(s,h)}),c.disabled.push({after:P(i,h)})}!s&&i&&(c.disabled.push({before:P(i,-u+1)}),c.disabled.push({after:P(i,u-1)}))}return r.jsx(Ie.Provider,{value:{selected:n,onDayClick:f,modifiers:c},children:t})}function Ee(){var e=p.useContext(Ie);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function ue(e){return Array.isArray(e)?st([],e):e!==void 0?[e]:[]}function xn(e){var a={};return Object.entries(e).forEach(function(t){var n=t[0],o=t[1];a[n]=ue(o)}),a}var L;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(L||(L={}));var yn=L.Selected,W=L.Disabled,gn=L.Hidden,bn=L.Today,je=L.RangeEnd,Ne=L.RangeMiddle,we=L.RangeStart,_n=L.Outside;function jn(e,a,t){var n,o=(n={},n[yn]=ue(e.selected),n[W]=ue(e.disabled),n[gn]=ue(e.hidden),n[bn]=[e.today],n[je]=[],n[Ne]=[],n[we]=[],n[_n]=[],n);return e.fromDate&&o[W].push({before:e.fromDate}),e.toDate&&o[W].push({after:e.toDate}),se(e)?o[W]=o[W].concat(a.modifiers[W]):ie(e)&&(o[W]=o[W].concat(t.modifiers[W]),o[we]=t.modifiers[we],o[Ne]=t.modifiers[Ne],o[je]=t.modifiers[je]),o}var ut=p.createContext(void 0);function Nn(e){var a=w(),t=Le(),n=Ee(),o=jn(a,t,n),s=xn(a.modifiers),i=g(g({},o),s);return r.jsx(ut.Provider,{value:i,children:e.children})}function ft(){var e=p.useContext(ut);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function wn(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Cn(e){return!!(e&&typeof e=="object"&&"from"in e)}function Dn(e){return!!(e&&typeof e=="object"&&"after"in e)}function Mn(e){return!!(e&&typeof e=="object"&&"before"in e)}function kn(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Pn(e,a){var t,n=a.from,o=a.to;if(n&&o){var s=A(o,n)<0;s&&(t=[o,n],n=t[0],o=t[1]);var i=A(e,n)>=0&&A(o,e)>=0;return i}return o?S(o,e):n?S(n,e):!1}function Sn(e){return nt(e)}function On(e){return Array.isArray(e)&&e.every(nt)}function Tn(e,a){return a.some(function(t){if(typeof t=="boolean")return t;if(Sn(t))return S(e,t);if(On(t))return t.includes(e);if(Cn(t))return Pn(e,t);if(kn(t))return t.dayOfWeek.includes(e.getDay());if(wn(t)){var n=A(t.before,e),o=A(t.after,e),s=n>0,i=o<0,l=Pe(t.before,t.after);return l?i&&s:s||i}return Dn(t)?A(e,t.after)>0:Mn(t)?A(t.before,e)>0:typeof t=="function"?t(e):!1})}function We(e,a,t){var n=Object.keys(a).reduce(function(s,i){var l=a[i];return Tn(e,l)&&s.push(i),s},[]),o={};
11return n.forEach(function(s){return o[s]=!0}),t&&!Fe(e,t)&&(o.outside=!0),o}function Fn(e,a){for(var t=O(e[0]),n=Oe(e[e.length-1]),o,s,i=t;i<=n;){var l=We(i,a),u=!l.disabled&&!l.hidden;if(!u){i=P(i,1);continue}if(l.selected)return i;l.today&&!s&&(s=i),o||(o=i),i=P(i,1)}return s||o}var Rn=365;function vt(e,a){var t=a.moveBy,n=a.direction,o=a.context,s=a.modifiers,i=a.retry,l=i===void 0?{count:0,lastFocused:e}:i,u=o.weekStartsOn,f=o.fromDate,c=o.toDate,v=o.locale,h={day:P,week:ke,month:R,year:xa,startOfWeek:function(_){return o.ISOWeek?Se(_):re(_,{locale:v,weekStartsOn:u})},endOfWeek:function(_){return o.ISOWeek?rt(_):Te(_,{locale:v,weekStartsOn:u})}},m=h[t](e,n==="after"?1:-1);n==="before"&&f?m=ya([f,m]):n==="after"&&c&&(m=ga([c,m]));var y=!0;if(s){var N=We(m,s);y=!N.disabled&&!N.hidden}return y?m:l.count>Rn?l.lastFocused:vt(m,{moveBy:t,direction:n,context:o,modifiers:s,retry:g(g({},l),{count:l.count+1})})}var ht=p.createContext(void 0);function Ln(e){var a=le(),t=ft(),n=p.useState(),o=n[0],s=n[1],i=p.useState(),l=i[0],u=i[1],f=Fn(a.displayMonths,t),c=o??(l&&a.isDateDisplayed(l))?l:f,v=function(){u(o),s(void 0)},h=function(_){s(_)},m=w(),y=function(_,D){if(o){var C=vt(o,{moveBy:_,direction:D,context:m,modifiers:t});S(o,C)||(a.goToDate(C,o),h(C))}},N={focusedDay:o,focusTarget:c,blur:v,focus:h,focusDayAfter:function(){return y("day","after")},focusDayBefore:function(){return y("day","before")},focusWeekAfter:function(){return y("week","after")},focusWeekBefore:function(){return y("week","before")},focusMonthBefore:function(){return y("month","before")},focusMonthAfter:function(){return y("month","after")},focusYearBefore:function(){return y("year","before")},focusYearAfter:function(){return y("year","after")},focusStartOfWeek:function(){return y("startOfWeek","before")},focusEndOfWeek:function(){return y("endOfWeek","after")}};return r.jsx(ht.Provider,{value:N,children:e.children})}function Ae(){var e=p.useContext(ht);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function In(e,a){var t=ft(),n=We(e,t,a);return n}var Ye=p.createContext(void 0);function En(e){if(!he(e.initialProps)){var a={selected:void 0};return r.jsx(Ye.Provider,{value:a,children:e.children})}return r.jsx(Wn,{initialProps:e.initialProps,children:e.children})}function Wn(e){var a=e.initialProps,t=e.children,n=function(s,i,l){var u,f,c;if((u=a.onDayClick)===null||u===void 0||u.call(a,s,i,l),i.selected&&!a.required){(f=a.onSelect)===null||f===void 0||f.call(a,void 0,s,i,l);return}(c=a.onSelect)===null||c===void 0||c.call(a,s,s,i,l)},o={selected:a.selected,onDayClick:n};return r.jsx(Ye.Provider,{value:o,children:t})}function mt(){var e=p.useContext(Ye);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function An(e,a){var t=w(),n=mt(),o=Le(),s=Ee(),i=Ae(),l=i.focusDayAfter,u=i.focusDayBefore,f=i.focusWeekAfter,c=i.focusWeekBefore,v=i.blur,h=i.focus,m=i.focusMonthBefore,y=i.focusMonthAfter,N=i.focusYearBefore,_=i.focusYearAfter,D=i.focusStartOfWeek,C=i.focusEndOfWeek,U=function(b){var x,pe,xe,ye;he(t)?(x=n.onDayClick)===null||x===void 0||x.call(n,e,a,b):se(t)?(pe=o.onDayClick)===null||pe===void 0||pe.call(o,e,a,b):ie(t)?(xe=s.onDayClick)===null||xe===void 0||xe.call(s,e,a,b):(ye=t.onDayClick)===null||ye===void 0||ye.call(t,e,a,b)},z=function(b){var x;h(e),(x=t.onDayFocus)===null||x===void 0||x.call(t,e,a,b)},d=function(b){var x;v(),(x=t.onDayBlur)===null||x===void 0||x.call(t,e,a,b)},j=function(b){var x;(x=t.onDayMouseEnter)===null||x===void 0||x.call(t,e,a,b)},T=function(b){var x;(x=t.onDayMouseLeave)===null||x===void 0||x.call(t,e,a,b)},ee=function(b){var x;(x=t.onDayPointerEnter)===null||x===void 0||x.call(t,e,a,b)},F=function(b){var x;(x=t.onDayPointerLeave)===null||x===void 0||x.call(t,e,a,b)},Pt=function(b){var x;(x=t.onDayTouchCancel)===null||x===void 0||x.call(t,e,a,b)},St=function(b){var x;(x=t.onDayTouchEnd)===null||x===void 0||x.call(t,e,a,b)},Ot=function(b){var x;(x=t.onDayTouchMove)===null||x===void 0||x.call(t,e,a,b)},Tt=function(b){var x;(x=t.onDayTouchStart)===null||x===void 0||x.call(t,e,a,b)},Ft=function(b){var x;(x=t.onDayKeyUp)===null||x===void 0||x.call(t,e,a,b)},Rt=function(b){var x;switch(b.key){case"ArrowLeft":b.preventDefault(),b.stopPropagation(),t.dir==="rtl"?l(
11):u();break;case"ArrowRight":b.preventDefault(),b.stopPropagation(),t.dir==="rtl"?u():l();break;case"ArrowDown":b.preventDefault(),b.stopPropagation(),f();break;case"ArrowUp":b.preventDefault(),b.stopPropagation(),c();break;case"PageUp":b.preventDefault(),b.stopPropagation(),b.shiftKey?N():m();break;case"PageDown":b.preventDefault(),b.stopPropagation(),b.shiftKey?_():y();break;case"Home":b.preventDefault(),b.stopPropagation(),D();break;case"End":b.preventDefault(),b.stopPropagation(),C();break}(x=t.onDayKeyDown)===null||x===void 0||x.call(t,e,a,b)},Lt={onClick:U,onFocus:z,onBlur:d,onKeyDown:Rt,onKeyUp:Ft,onMouseEnter:j,onMouseLeave:T,onPointerEnter:ee,onPointerLeave:F,onTouchCancel:Pt,onTouchEnd:St,onTouchMove:Ot,onTouchStart:Tt};return Lt}function Yn(){var e=w(),a=mt(),t=Le(),n=Ee(),o=he(e)?a.selected:se(e)?t.selected:ie(e)?n.selected:void 0;return o}function Bn(e){return Object.values(L).includes(e)}function Hn(e,a){var t=[e.classNames.day];return Object.keys(a).forEach(function(n){var o=e.modifiersClassNames[n];if(o)t.push(o);else if(Bn(n)){var s=e.classNames["day_".concat(n)];s&&t.push(s)}}),t}function Vn(e,a){var t=g({},e.styles.day);return Object.keys(a).forEach(function(n){var o;t=g(g({},t),(o=e.modifiersStyles)===null||o===void 0?void 0:o[n])}),t}function Un(e,a,t){var n,o,s,i=w(),l=Ae(),u=In(e,a),f=An(e,u),c=Yn(),v=!!(i.onDayClick||i.mode!=="default");p.useEffect(function(){var j;u.outside||l.focusedDay&&v&&S(l.focusedDay,e)&&((j=t.current)===null||j===void 0||j.focus())},[l.focusedDay,e,t,v,u.outside]);var h=Hn(i,u).join(" "),m=Vn(i,u),y=!!(u.outside&&!i.showOutsideDays||u.hidden),N=(s=(o=i.components)===null||o===void 0?void 0:o.DayContent)!==null&&s!==void 0?s:un,_=r.jsx(N,{date:e,displayMonth:a,activeModifiers:u}),D={style:m,className:h,children:_,role:"gridcell"},C=l.focusTarget&&S(l.focusTarget,e)&&!u.outside,U=l.focusedDay&&S(l.focusedDay,e),z=g(g(g({},D),(n={disabled:u.disabled,role:"gridcell"},n["aria-selected"]=u.selected,n.tabIndex=U||C?0:-1,n)),f),d={isButton:v,isHidden:y,activeModifiers:u,selectedDays:c,buttonProps:z,divProps:D};return d}function zn(e){var a=p.useRef(null),t=Un(e.date,e.displayMonth,a);return t.isHidden?r.jsx("div",{role:"gridcell"}):t.isButton?r.jsx(ve,g({name:"day",ref:a},t.buttonProps)):r.jsx("div",g({},t.divProps))}function Kn(e){var a=e.number,t=e.dates,n=w(),o=n.onWeekNumberClick,s=n.styles,i=n.classNames,l=n.locale,u=n.labels.labelWeekNumber,f=n.formatters.formatWeekNumber,c=f(Number(a),{locale:l});if(!o)return r.jsx("span",{className:i.weeknumber,style:s.weeknumber,children:c});var v=u(Number(a),{locale:l}),h=function(m){o(a,t,m)};return r.jsx(ve,{name:"week-number","aria-label":v,className:i.weeknumber,style:s.weeknumber,onClick:h,children:c})}function qn(e){var a,t,n=w(),o=n.styles,s=n.classNames,i=n.showWeekNumber,l=n.components,u=(a=l==null?void 0:l.Day)!==null&&a!==void 0?a:zn,f=(t=l==null?void 0:l.WeekNumber)!==null&&t!==void 0?t:Kn,c;return i&&(c=r.jsx("td",{className:s.cell,style:o.cell,children:r.jsx(f,{number:e.weekNumber,dates:e.dates})})),r.jsxs("tr",{className:s.row,style:o.row,children:[c,e.dates.map(function(v){return r.jsx("td",{className:s.cell,style:o.cell,role:"presentation",children:r.jsx(u,{displayMonth:e.displayMonth,date:v})},ja(v))})]})}function $e(e,a,t){for(var n=t!=null&&t.ISOWeek?rt(a):Te(a,t),o=t!=null&&t.ISOWeek?Se(e):re(e,t),s=A(n,o),i=[],l=0;l<=s;l++)i.push(P(o,l));var u=i.reduce(function(f,c){var v=t!=null&&t.ISOWeek?ia(c):la(c,t),h=f.find(function(m){return m.weekNumber===v});return h?(h.dates.push(c),f):(f.push({weekNumber:v,dates:[c]}),f)},[]);return u}function $n(e,a){var t=$e(O(e),Oe(e),a);if(a!=null&&a.useFixedWeeks){var n=wa(e,a);if(n<6){var o=t[t.length-1],s=o.dates[o.dates.length-1],i=ke(s,6-n),l=$e(ke(s,1),i,a);t.push.apply(t,l)}}return t}function Gn(e){var a,t,n,o=w(),s=o.locale,i=o.classNames,l=o.styles,u=o.hideHead,f=o.fixedWeeks,c=o.components,v=o.weekStartsOn,h=o.firstWeekContainsDate,m=o.ISOWeek,y=$n(e.displayMonth,{useFixedWeeks:!!f,ISOWeek:m,locale:s,weekStartsOn:v,firstWeekContainsDate:h}),N=(a=c==null?void 0:c.Head)!==null&&a!==void 0?a:dn,_=(t=c==null?void 0:c.Row)!==null&&t!==void 0?t:qn,D=(n=c==null?void 0:c.Footer)!==null&&n!==void 0?n:sn;return r.jsxs("table",{id:e.id,className:i.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!u&&r.jsx(N,{}),r.jsx("tbody",{className:i.tbody,style:l.tbody,children:y.map(function(C){return r.jsx(_,{displayMonth:e.displayMonth,dates:C.dates,weekNumber:C.weekNumber},C.weekNumber)})}),r.jsx(D,{displayMonth:e.displayMonth})]})}function Zn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Xn=Zn()?p.useLayoutEffect:p.useEffect,Ce=!1,Jn=0;function Ge(){return"react-day-picker-".concat(++Jn)}function Qn(e){var a,t=e??(Ce?Ge():null),n=p.useState(t),o=n[0],s=n[1];return Xn(function(){o===null&&s(Ge())},[]),p.useEffect(function(){Ce===!1&&(Ce=!0)},[]),(a=e??o)!==null&&a!==void 0?a:void 0}
vendor: 8,341 bytes, line 11
11function er(e){var a,t,n=w(),o=n.dir,s=n.classNames,i=n.styles,l=n.components,u=le().displayMonths,f=Qn(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),c=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,v=[s.month],h=i.month,m=e.displayIndex===0,y=e.displayIndex===u.length-1,N=!m&&!y;o==="rtl"&&(a=[m,y],y=a[0],m=a[1]),m&&(v.push(s.caption_start),h=g(g({},h),i.caption_start)),y&&(v.push(s.caption_end),h=g(g({},h),i.caption_end)),N&&(v.push(s.caption_between),h=g(g({},h),i.caption_between));var _=(t=l==null?void 0:l.Caption)!==null&&t!==void 0?t:on;return r.jsxs("div",{className:v.join(" "),style:h,children:[r.jsx(_,{id:f,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),r.jsx(Gn,{id:c,"aria-labelledby":f,displayMonth:e.displayMonth})]},e.displayIndex)}function tr(e){var a=w(),t=a.classNames,n=a.styles;return r.jsx("div",{className:t.months,style:n.months,children:e.children})}function ar(e){var a,t,n=e.initialProps,o=w(),s=Ae(),i=le(),l=p.useState(!1),u=l[0],f=l[1];p.useEffect(function(){o.initialFocus&&s.focusTarget&&(u||(s.focus(s.focusTarget),f(!0)))},[o.initialFocus,u,s.focus,s.focusTarget,s]);var c=[o.classNames.root,o.className];o.numberOfMonths>1&&c.push(o.classNames.multiple_months),o.showWeekNumber&&c.push(o.classNames.with_weeknumber);var v=g(g({},o.styles.root),o.style),h=Object.keys(n).filter(function(y){return y.startsWith("data-")}).reduce(function(y,N){var _;return g(g({},y),(_={},_[N]=n[N],_))},{}),m=(t=(a=n.components)===null||a===void 0?void 0:a.Months)!==null&&t!==void 0?t:tr;return r.jsx("div",g({className:c.join(" "),style:v,dir:o.dir,id:o.id,nonce:n.nonce,title:n.title,lang:n.lang},h,{children:r.jsx(m,{children:i.displayMonths.map(function(y,N){return r.jsx(er,{displayIndex:N,displayMonth:y},N)})})}))}function nr(e){var a=e.children,t=Da(e,["children"]);return r.jsx(za,{initialProps:t,children:r.jsx(tn,{children:r.jsx(En,{initialProps:t,children:r.jsx(fn,{initialProps:t,children:r.jsx(mn,{initialProps:t,children:r.jsx(Nn,{children:r.jsx(Ln,{children:a})})})})})})})}function rr(e){return r.jsx(nr,g({},e,{children:r.jsx(ar,{initialProps:e})}))}function pt({className:e,classNames:a,showOutsideDays:t=!0,...n}){return r.jsx(rr,{showOutsideDays:t,className:H("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:H(He({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:H(He({variant:"subtle"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...a},components:{IconLeft:({...o})=>r.jsx(fa,{className:"h-4 w-4"}),IconRight:({...o})=>r.jsx(It,{className:"h-4 w-4"})},...n})}pt.displayName="Calendar";var me="Popover",[xt,kr]=Et(me,[Je]),ce=Je(),[or,V]=xt(me),yt=e=>{const{__scopePopover:a,children:t,open:n,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,l=ce(a),u=p.useRef(null),[f,c]=p.useState(!1),[v,h]=zt({prop:n,defaultProp:o??!1,onChange:s,caller:me});return r.jsx(Kt,{...l,children:r.jsx(or,{scope:a,contentId:qt(),triggerRef:u,open:v,onOpenChange:h,onOpenToggle:p.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:f,onCustomAnchorAdd:p.useCallback(()=>c(!0),[]),onCustomAnchorRemove:p.useCallback(()=>c(!1),[]),modal:i,children:t})})};yt.displayName=me;var gt="PopoverAnchor",sr=p.forwardRef((e,a)=>{const{__scopePopover:t,...n}=e,o=V(gt,t),s=ce(t),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return p.useEffect(()=>(i(),()=>l()),[i,l]),r.jsx(Qe,{...s,...n,ref:a})});sr.displayName=gt;var bt="PopoverTrigger",_t=p.forwardRef((e,a)=>{const{__scopePopover:t,...n}=e,o=V(bt,t),s=ce(t),i=et(a,o.triggerRef),l=r.jsx(tt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Dt(o.open),...n,ref:i,onClick:ne(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:r.jsx(Qe,{asChild:!0,...s,children:l})});_t.displayName=bt;var Be="PopoverPortal",[ir,lr]=xt(Be,{forceMount:void 0}),jt=e=>{const{__scopePopover:a,forceMount:t,children:n,container:o}=e,s=V(Be,a);return r.jsx(ir,{scope:a,forceMount:t,children:r.jsx(at,{present:t||s.open,children:r.jsx($t,{asChild:!0,container:o,children:n})})})};jt.displayName=Be;var Q="PopoverContent",Nt=p.forwardRef((e,a)=>{const t=lr(Q,e.__scopePopover),{forceMount:n=t.forceMount,...o}=e,s=V(Q,e.__scopePopover);return r.jsx(at,{present:n||s.open,children:s.modal?r.jsx(dr,{...o,ref:a}):r.jsx(ur,{...o,ref:a})})});Nt.displayName=Q;var cr=Gt("PopoverContent.RemoveScroll"),dr=p.forwardRef((e,a)=>{const t=V(Q,e.__scopePopover),n=p.useRef(null),o=et(a,n),s=p.useRef(!1);return p.useEffect(()=>{const i=n.current;if(i)return Wt(i)},[]),r.jsx(At,{as:cr,allowPinchZoom:!0,children:r.jsx(wt,{...e,ref:o,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),s.current||(l=t.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ne(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:ne(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),ur=p.forwardRef((e,a)=>{const t=V(Q,e.__scopePopover),n=p.useRef(!1),o=p.useRef(!1);return r.jsx(wt,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(n.current||(l=t.triggerRef.current)==null||l.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var u,f;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((f=t.triggerRef.current)==null?void 0:f.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),wt=p.forwardRef((e,a)=>{const{__scopePopover:t,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:c,...v}=e,h=V(Q,t),m=ce(t);return Yt(),r.jsx(Bt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:r.jsx(Ht,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1),children:r.jsx(Vt,{"data-state":Dt(h.open),role:"dialog",id:h.contentId,...m,...v,ref:a,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ct="PopoverClose",fr=p.forwardRef((e,a)=>{const{__scopePopover:t,...n}=e,o=V(Ct,t);return r.jsx(tt.button,{type:"button",...n,ref:a,onClick:ne(e.onClick,()=>o.onOpenChange(!1))})});fr.displayName=Ct;var vr="PopoverArrow",hr=p.forwardRef((e,a)=>{const{__scopePopover:t,...n}=e,o=ce(t);return r.jsx(Ut,{...o,...n,ref:a})});hr.displayName=vr;function Dt(e){return e?"open":"closed"}
11var mr=yt,pr=_t,xr=jt,Mt=Nt;const yr=mr,gr=pr,kt=p.forwardRef(({className:e,align:a="center",sideOffset:t=4,...n},o)=>r.jsx(xr,{children:r.jsx(Mt,{ref:o,align:a,sideOffset:t,className:H("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));kt.displayName=Mt.displayName;const De={not_started:"Not started",researching:"Researching",pitched:"Pitched",in_conversation:"In conversation",scheduled:"Scheduled",published:"Published",declined:"Declined",no_response:"No response"},br={not_started:"bg-mushroom-100 text-mushroom-700",researching:"bg-dusk-100 text-dusk-700",pitched:"bg-wasabi-100 text-wasabi-900",in_conversation:"bg-teal-100 text-teal-700",scheduled:"bg-teal-500 text-white",published:"bg-teal-700 text-white",declined:"bg-mushroom-200 text-mushroom-700",no_response:"bg-mushroom-100 text-mushroom-600"},Me={podcast:"Podcast",newsletter:"Newsletter",publication:"Publication",client_case_study:"Client case study",directory:"Directory"},Ze={high:"High",medium:"Medium",low:"Low"},_r={name:"",type:"podcast",status:"not_started",priority:"medium"},Pr=()=>{const[e,a]=p.useState([]),[t,n]=p.useState(!0),[o,s]=p.useState("all"),[i,l]=p.useState("all"),[u,f]=p.useState(!1),[c,v]=p.useState(null),h=async()=>{n(!0);const{data:d,error:j}=await ae.from("outreach_targets").select("*").order("priority",{ascending:!0}).order("sort_order",{ascending:!0});j?q.error(j.message):a(d??[]),n(!1)};p.useEffect(()=>{h()},[]);const m=p.useMemo(()=>e.filter(d=>(o==="all"||d.status===o)&&(i==="all"||d.type===i)),[e,o,i]),y=p.useMemo(()=>{const d=e.length,j=e.filter(F=>["pitched","in_conversation","scheduled","published"].includes(F.status)).length,T=e.filter(F=>F.status==="scheduled").length,ee=e.filter(F=>F.status==="published").length;return{total:d,pitched:j,scheduled:T,published:ee}},[e]),N=()=>{v({..._r}),f(!0)},_=d=>{v({...d}),f(!0)},D=async()=>{var T;if(!((T=c==null?void 0:c.name)!=null&&T.trim())){q.error("Name is required");return}const d={name:c.name.trim(),type:c.type??"podcast",domain:c.domain||null,authority_score:c.authority_score??null,contact_name:c.contact_name||null,contact_email:c.contact_email||null,contact_url:c.contact_url||null,status:c.status??"not_started",priority:c.priority??"medium",pitch_angle:c.pitch_angle||null,pitch_date:c.pitch_date||null,follow_up_date:c.follow_up_date||null,scheduled_date:c.scheduled_date||null,published_url:c.published_url||null,notes:c.notes||null,sort_order:c.sort_order??999},{error:j}=c.id?await ae.from("outreach_targets").update(d).eq("id",c.id):await ae.from("outreach_targets").insert(d);if(j){q.error(j.message);return}q.success(c.id?"Target updated":"Target added"),f(!1),v(null),h()},C=async d=>{if(!confirm("Delete this target?"))return;const{error:j}=await ae.from("outreach_targets").delete().eq("id",d);if(j){q.error(j.message);return}q.success("Deleted"),h()},U=async(d,j)=>{const{error:T}=await ae.from("outreach_targets").update({status:j}).eq("id",d);T?q.error(T.message):a(ee=>ee.map(F=>F.id===d?{...F,status:j}:F))},z=d=>d?E(ge(d),"MMM d"):"—";return r.jsxs(Zt,{children:[r.jsxs(Xt,{children:[r.jsx("title",{children:"Outreach Tracker | Hunter & Bard Admin"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsx("main",{className:"pt-28 pb-20",children:r.jsxs("div",{className:"max-w-[1350px] mx-auto px-6 md:px-12",children:[r.jsxs("div",{className:"mb-10 flex flex-col md:flex-row md:items-end md:justify-between gap-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-xs text-obsidian-900 uppercase tracking-wider mb-3",children:"Backlink campaign"}),r.jsx("h1",{className:"font-display text-5xl md:text-6xl text-teal-700 uppercase font-semibold mb-3",children:"Outreach Tracker"}),r.jsx("p",{className:"text-obsidian/70 max-w-3xl",children:"Podcast, newsletter, and case-study targets identified from the Fletch / MKT1 / Kalungi backlink analysis. Update status as Shira pitches, books, and publishes."})]}),r.jsxs(te,{variant:"wasabi",onClick:N,children:[r.jsx(va,{className:"w-4 h-4"}),"Add target"]})]}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-8",children:[{label:"Total targets",value:y.total},{label:"Pitched+",value:y.pitched},{label:"Scheduled",value:y.scheduled},{label:"Published",value:y.published}].map(d=>r.jsxs("div",{className:"bg-cloud rounded-lg p-5",children:[r.jsx("p",{className:"font-semibold text-xs text-obsidian-900 uppercase tracking-wider mb-2",children:d.label}),r.jsx("p",{className:"font-display text-4xl text-teal-700 font-semibold",children:d.value})]},d.label))}),r.jsxs("div",{className:"flex flex-wrap gap-3 mb-6",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(k,{className:"text-xs",children:"Status"}),r.jsxs($,{value:o,onValueChange:d=>s(d),children:[r.jsx(G,{className:"w-[180px] h-9",children:r.jsx(Z,{})}),r.jsxs(X,{children:[r.jsx(Y,{value:"all",children:"All statuses"}
11),Object.entries(De).map(([d,j])=>r.jsx(Y,{value:d,children:j},d))]})]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(k,{className:"text-xs",children:"Type"}),r.jsxs($,{value:i,onValueChange:d=>l(d),children:[r.jsx(G,{className:"w-[180px] h-9",children:r.jsx(Z,{})}),r.jsxs(X,{children:[r.jsx(Y,{value:"all",children:"All types"}),Object.entries(Me).map(([d,j])=>r.jsx(Y,{value:d,children:j},d))]})]})]})]}),r.jsx("div",{className:"border border-mushroom-200 rounded-lg overflow-hidden bg-white",children:r.jsxs(ca,{children:[r.jsx(da,{children:r.jsxs(de,{className:"bg-cloud hover:bg-cloud",children:[r.jsx(B,{className:"text-obsidian-900 font-semibold",children:"Target"}),r.jsx(B,{className:"text-obsidian-900 font-semibold",children:"Type"}),r.jsx(B,{className:"text-obsidian-900 font-semibold",children:"Priority"}),r.jsx(B,{className:"text-obsidian-900 font-semibold",children:"Status"}),r.jsx(B,{className:"text-obsidian-900 font-semibold",children:"Pitched"}),r.jsx(B,{className:"text-obsidian-900 font-semibold",children:"Follow-up"}),r.jsx(B,{className:"text-obsidian-900 font-semibold",children:"Scheduled"}),r.jsx(B,{className:"text-obsidian-900 font-semibold w-20"})]})}),r.jsx(ua,{children:t?r.jsx(de,{children:r.jsx(I,{colSpan:8,className:"text-center py-12 text-mushroom-500",children:"Loading…"})}):m.length===0?r.jsx(de,{children:r.jsx(I,{colSpan:8,className:"text-center py-12 text-mushroom-500",children:"No targets match these filters."})}):m.map(d=>r.jsxs(de,{className:"cursor-pointer",onClick:()=>_(d),children:[r.jsxs(I,{children:[r.jsx("div",{className:"font-semibold text-obsidian",children:d.name}),d.domain&&r.jsxs("a",{href:`https://${d.domain}`,target:"_blank",rel:"noreferrer",onClick:j=>j.stopPropagation(),className:"text-xs text-teal-700 hover:text-teal-500 inline-flex items-center gap-1 mt-0.5",children:[d.domain,d.authority_score?r.jsxs("span",{className:"text-mushroom-500",children:["· AS ",d.authority_score]}):null,r.jsx(ma,{className:"w-3 h-3"})]})]}),r.jsx(I,{className:"text-sm text-obsidian/70",children:Me[d.type]}),r.jsx(I,{children:r.jsx("span",{className:H("text-xs font-semibold uppercase tracking-wider px-2 py-0.5 rounded",d.priority==="high"&&"bg-wasabi-500 text-obsidian-900",d.priority==="medium"&&"bg-mushroom-100 text-obsidian",d.priority==="low"&&"bg-mushroom-50 text-mushroom-600"),children:Ze[d.priority]})}),r.jsx(I,{onClick:j=>j.stopPropagation(),children:r.jsxs($,{value:d.status,onValueChange:j=>U(d.id,j),children:[r.jsx(G,{className:H("h-8 w-[160px] text-xs font-semibold border-0 rounded",br[d.status]),children:r.jsx(Z,{})}),r.jsx(X,{children:Object.entries(De).map(([j,T])=>r.jsx(Y,{value:j,children:T},j))})]})}),r.jsx(I,{className:"text-sm text-obsidian/70",children:z(d.pitch_date)}),r.jsx(I,{className:"text-sm text-obsidian/70",children:z(d.follow_up_date)}),r.jsx(I,{className:"text-sm text-obsidian/70",children:z(d.scheduled_date)}),r.jsx(I,{onClick:j=>j.stopPropagation(),children:r.jsx(te,{variant:"subtle",size:"sm",onClick:()=>C(d.id),"aria-label":"Delete",children:r.jsx(pa,{className:"w-4 h-4"})})})]},d.id))})]})})]})}),r.jsx(Jt,{open:u,onOpenChange:f,children:r.jsxs(Qt,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[r.jsx(ea,{children:r.jsx(ta,{className:"font-display uppercase",children:c!=null&&c.id?"Edit target":"Add target"})}),c&&r.jsx("div",{className:"space-y-4",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-2 md:col-span-2",children:[r.jsx(k,{children:"Name"}),r.jsx(K,{value:c.name??"",onChange:d=>v({...c,name:d.target.value})})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(k,{children:"Type"}),r.jsxs($,{value:c.type,onValueChange:d=>v({...c,type:d}),children:[r.jsx(G,{children:r.jsx(Z,{})}),r.jsx(X,{children:Object.entries(Me).map(([d,j])=>r.jsx(Y,{value:d,children:j},d))})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(k,{children:"Priority"}),r.jsxs($,{value:c.priority,onValueChange:d=>v({...c,priority:d}),children:[r.jsx(G,{children:r.jsx(Z,{})}),r.jsx(X,{children:Object.entries(Ze).map(([d,j])=>r.jsx(Y,{value:d,children:j},d))})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(k,{children:"Domain"}),r.jsx(K,{value:c.domain??"",onChange:d=>v({...c,domain:d.target.value}),placeholder:"example.com"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(k,{children:"Authority score"}),r.jsx(K,{type:"number",value:c.authority_score??"",onChange:d=>v({...c,authority_score:d.target.value?Number(d.target.value):null})})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(k,{children:"Status"}),r.jsxs($,{value:c.status,onValueChange:d=>v({...c,status:d}),children:[r.jsx(G,{children:r.jsx(Z,{})}),r.jsx(X,{children:Object.entries(De).map(([d,j])=>r.jsx(Y,{value:d,children:j},d))})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(k,{children:"Contact name"}),r.jsx(K,{value:c.contact_name??"",onChange:d=>v({...c,contact_name:d.target.value})})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(k,{children:"Contact email"}),r.jsx(K,{type:"email",value:c.contact_email??"",onChange:d=>v({...c,contact_email:d.target.value})})]}),r.jsxs("div",{className:"space-y-2 md:col-span-2",children:[r.jsx(k,{children:"Contact URL"}),r.jsx(K,{value:c.contact_url??"",onChange:d=>v({...c,contact_url:d.target.value}),placeholder:"https://…"})]}),r.jsxs("div",{className:"space-y-2 md:col-span-2",children:[r.jsx(k,{children:"Pitch angle"}),r.jsx(Ve,{value:c.pitch_angle??"",onChange:d=>v({...c,pitch_angle:d.target.value}),rows:2})]}),["pitch_date","follow_up_date","scheduled_date"].map(d=>r.jsxs("div",{className:"space-y-2",children:[r.jsx(k,{children:d==="pitch_date"?"Pitch date":d==="follow_up_date"?"Follow-up date":"Scheduled date"}),r.jsxs(yr,{children:[r.jsx(gr,{asChild:!0,children:r.jsxs(te,{variant:"outline",size:"sm",className:H("w-full justify-start font-normal",!c[d]&&"text-mushroom-500"),
11children:[r.jsx(ha,{className:"w-4 h-4"}),c[d]?E(ge(c[d]),"PPP"):"Pick a date"]})}),r.jsx(kt,{className:"w-auto p-0",align:"start",children:r.jsx(pt,{mode:"single",selected:c[d]?ge(c[d]):void 0,onSelect:j=>v({...c,[d]:j?E(j,"yyyy-MM-dd"):null}),initialFocus:!0,className:H("p-3 pointer-events-auto")})})]})]},d)),r.jsxs("div",{className:"space-y-2 md:col-span-2",children:[r.jsx(k,{children:"Published URL"}),r.jsx(K,{value:c.published_url??"",onChange:d=>v({...c,published_url:d.target.value}),placeholder:"https://…"})]}),r.jsxs("div",{className:"space-y-2 md:col-span-2",children:[r.jsx(k,{children:"Notes"}),r.jsx(Ve,{value:c.notes??"",onChange:d=>v({...c,notes:d.target.value}),rows:3})]})]})}),r.jsxs(aa,{children:[r.jsx(te,{variant:"subtle",onClick:()=>f(!1),children:"Cancel"}),r.jsx(te,{variant:"teal",onClick:D,children:"Save"})]})]})})]})};export{Pr as default};

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.