endarMonth_caption__verticalScrollable { padding-top: 12px; padding-bottom: 7px } .CalendarDay_container { padding: 0; -moz-box-sizing: border-box; box-sizing: border-box; color: `).concat(ye.colors.gray[4],`; background: `).concat(ye.colors.white,` } .CalendarDay_container:hover { background: `).concat(ye.colors.blue[9],`; color: `).concat(ye.colors.blue[1],` } .CalendarDay_button { position: relative; height: 100%; width: 100%; text-align: center; background: 0 0!important; border: 0!important; margin: 0; padding: 0; color: inherit!important; font: inherit; line-height: normal; overflow: visible; -moz-box-sizing: border-box; box-sizing: border-box; cursor: pointer; box-shadow: none!important; } .CalendarDay_button:active { outline: 0 } .CalendarDay_button__default { cursor: default } .CalendarDay__outside { border: 0; background: `).concat(ye.colors.white,`; color: `).concat(ye.colors.gray[1],` } .CalendarDay__blocked_minimum_nights { background: `).concat(ye.colors.white,`; border: 1px solid `).concat(ye.colors.gray[8],`; color: `).concat(ye.colors.gray[5],` } .CalendarDay__blocked_minimum_nights:active, .CalendarDay__blocked_minimum_nights:hover { background: `).concat(ye.colors.white,`; color: `).concat(ye.colors.gray[5],` } .CalendarDay__highlighted_calendar { background: `).concat(ye.colors.blue[9],`; color: `).concat(ye.colors.gray[1],` } .CalendarDay__highlighted_calendar:active, .CalendarDay__highlighted_calendar:hover { background: `).concat(ye.colors.blue[4],`; color: `).concat(ye.colors.blue[1],` } .CalendarDay__selected_span { background: `).concat(ye.colors.blue[9],`; color: `).concat(ye.colors.blue[4],` } .CalendarDay__selected_span:active, .CalendarDay__selected_span:hover { background: `).concat(ye.colors.blue[8],`; color: `).concat(ye.colors.blue[1],` } .CalendarDay__last_in_range { border-right: `).concat(ye.colors.gray[5],` } .CalendarDay__selected, .CalendarDay__selected:active, .CalendarDay__selected:hover { background: `).concat(ye.colors.blue[4],`; color: `).concat(ye.colors.white,` } .CalendarDay__hovered_span, .CalendarDay__hovered_span:hover { background: `).concat(ye.colors.blue[9],`; color: `).concat(ye.colors.blue[1],` } .CalendarDay__hovered_span:active { background: `).concat(ye.colors.blue[4],`; color: `).concat(ye.colors.white,` } .CalendarDay__blocked_calendar, .CalendarDay__blocked_calendar:active, .CalendarDay__blocked_calendar:hover { background: `).concat(ye.colors.gray[5],`; color: `).concat(ye.colors.gray[4],` } .CalendarDay__blocked_out_of_range, .CalendarDay__blocked_out_of_range:active, .CalendarDay__blocked_out_of_range:hover { background: `).concat(ye.colors.white,`; color: `).concat(ye.colors.gray[6],`; } .CalendarDay__blocked_out_of_range .CalendarDay_button__default { cursor: not-allowed; text-decoration: line-through !important; } .DateRangePickerInput { background-color: `).concat(ye.colors.white,`; border: 1px solid `).concat(ye.colors.gray[5],`; display: inline-flex; align-items: center; } .DateRangePickerInput:hover { border: 1px solid `).concat(ye.colors.blue[4],`; } .DateRangePickerInput__disabled { background: `).concat(ye.colors.gray[5],` } .DateRangePickerInput__rtl { direction: rtl } .DateRangePickerInput_arrow { display: inline-flex; } .DateRangePickerInput_arrow_svg { vertical-align: middle; fill: `).concat(ye.colors.gray[1],`; height: 24px; width: 24px } .DateRangePickerInput_clearDates { background: 0 0; border: 0; color: inherit; font: inherit; line-height: normal; overflow: visible; cursor: pointer; display: inline-block; vertical-align: middle; padding: 10px; margin: 0 10px 0 5px } .DateRangePickerInput_clearDates:focus, .DateRangePickerInput_clearDates:hover { background: `).concat(ye.colors.gray[7],`; border-radius: 50% } .DateRangePickerInput_clearDates__hide { visibility: hidden } .DateRangePickerInput_clearDates_svg { fill: `).concat(ye.colors.gray[4],`; height: 12px; width: 15px; vertical-align: middle } .DateRangePickerInput_calendarIcon { background: 0 0; border: 0; color: inherit; font: inherit; line-height: normal; overflow: visible; cursor: pointer; display: inline-block; vertical-align: middle; padding: 10px; margin: 0 5px 0 10px } .DateRangePickerInput_calendarIcon_svg { fill: `).concat(ye.colors.gray[4],`; height: 15px; width: 14px; vertical-align: middle } .DateInput { font-size: 14px; line-height: 24px; color: `).concat(ye.colors.gray[4],`; margin: 0; padding: 4px; background: `).concat(ye.colors.white,`; position: relative; display: inline-block; vertical-align: middle } .DateInput__withCaret:after, .DateInput__withCaret:before { content: ""; display: none; position: absolute; bottom: auto; border: 9px solid transparent; left: 22px; z-index: 2; } .DateInput__openUp:before { border-bottom: 0; top: -24px; border-top-color: `).concat(ye.colors.gray[5],` } .DateInput__openUp:after { border-bottom: 0; top: -25px; border-top-color: `).concat(ye.colors.white,` } .DateInput__openDown:before { border-top: 0; top: 62px; border-bottom-color: `).concat(ye.colors.gray[5],` } .DateInput__openDown:after { border-top: 0; top: 63px; border-bottom-color: `).concat(ye.colors.white,` } .DateInput__disabled { background: `).concat(ye.colors.gray[5],` } .DateInput_input { opacity: 0; position: absolute; top: 0; left: 0; height: 100%; width: 100% } .DateInput_input__readOnly { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer!important; } .DateInput_screenReaderMessage { border: 0; clip: rect(0,0,0,0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px } .DateInput_displayText { padding: 0 8px; white-space: nowrap; overflow: hidden } .DateInput_displayText__hasInput { color: `).concat(ye.colors.gray[1],` } .DateInput_displayText__focused { background: `).concat(ye.colors.blue[9],`; border-color: `).concat(ye.colors.blue[9],`; color: `).concat(ye.colors.gray[1],` } .DateInput_displayText__disabled { font-style: italic }`),W=f("../../../../node_modules/@cloudflare/util-formatters/es/index.js"),he="startDate",le="endDate";class Q extends r().Component{constructor(De){super(De);this.state={focusedInput:null},this.onFocusChange=this.onFocusChange.bind(this)}onFocusChange(De){this.setState({focusedInput:De})}render(){var{startDate:De,endDate:Ae,onDatesChange:we,isOutsideRange:Be}=this.props;return r().createElement("div",null,r().createElement(h.DateRangePicker,{required:!0,minimumNights:0,readOnly:!0,displayFormat:W.pN.ShortDate,hideKeyboardShortcutsPanel:!0,keepOpenOnDateSelect:!0,startDate:De,endDate:Ae,onDatesChange:we,focusedInput:this.state.focusedInput,onFocusChange:this.onFocusChange,isOutsideRange:Be,customArrowIcon:r().createElement(w.J,{color:"gray.4",label:"forward",type:"forward"}),navPrev:r().createElement(w.J,{color:"blue.4",label:"Previous",type:"left"}),navNext:r().createElement(w.J,{color:"blue.4",label:"Next",type:"right"})}))}}Q.propTypes={startDate:s().momentObj,endDate:s().momentObj,onDatesChange:o().func.isRequired,focusedInput:o().oneOf([he,le]),isOutsideRange:o().func.isRequired},Q.displayName="DateRangePickerWrapper";var re=(0,P.applyStaticStyles)(J,Q);function b(ye,De,Ae){return De in ye?Object.defineProperty(ye,De,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):ye[De]=Ae,ye}var q=ye=>!isNaN(ye)&&isFinite(ye),Z=ye=>ye.toString().padStart(2,"0"),_e=ye=>De=>{if(De.length>2)return!1;if(De==="")return!0;var Ae=parseInt(De,10);return!(!q(Ae)||Ae>=ye||Ae<0)},je=_e(24),Oe=_e(60),Fe={"-webkit-appearance":"none",margin:0},qe=(0,P.createStyledComponent)(()=>({my:0,width:"48px",textAlign:"center","-moz-appearance":"textfield","&::-webkit-inner-spin-button":Fe,"&::-webkit-outer-spin-button":Fe}),"input");class rt extends t.Component{constructor(){super(...arguments);b(this,"state",{hour:Z(this.props.hour),minutes:Z(this.props.minutes)}),b(this,"handleHourChange",De=>{var Ae=De.currentTarget.value;je(Ae)&&this.setState({hour:Ae})}),b(this,"handleMinuteChange",De=>{var Ae=De.currentTarget.value;Oe(Ae)&&this.setState({minutes:Ae})}),b(this,"handleFormSubmit",De=>{De.preventDefault(),this.propagateInputChange()}),b(this,"propagateInputChange",()=>{var{hour:De,minutes:Ae}=this.state;this.props.onChange({hour:De,minutes:Ae})})}componentDidUpdate(De){this.props.hour!==De.hour&&this.setState({hour:Z(this.props.hour)}),this.props.minutes!==De.minutes&&this.setState({minutes:Z(this.props.minutes)})}render(){return r().createElement(ne.ZC,{display:"flex",className:this.props.className,onKeyPress:De=>{De.key==="Enter"&&this.handleFormSubmit(De)}},r().createElement(qe,{type:"number",value:this.state.hour,onChange:this.handleHourChange,onBlur:this.propagateInputChange,onFocus:this.props.onFocus,mr:2}),r().createElement(qe,{type:"number",value:this.state.minutes,onChange:this.handleMinuteChange,onBlur:this.propagateInputChange,onFocus:this.props.onFocus}))}}b(rt,"propTypes",{hour:o().number,minutes:o().number,onChange:o().func,className:o().string,onFocus:o().func}),b(rt,"defaultProps",{onFocus:()=>{}});var Ye=(0,P.createStyledComponent)(()=>{},rt);function Se(){return Se=Object.assign?Object.assign.bind():function(ye){for(var De=1;De{var{theme:De,compact:Ae,disabled:we}=ye;return{display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:we?De.colors.gray[8]:De.colors.white,borderColor:De.colors.gray[6],borderRadius:De.radii[2],borderWidth:1,borderStyle:"solid",py:Ae?0:"2px",px:Ae?0:"3px",opacity:we?.5:void 0}}),et=(0,P.createStyledComponent)(ye=>{var{theme:De,focused:Ae,compact:we,disabled:Be}=ye;return ze(ze({px:we?"6px":2,py:we?"2px":1,borderRadius:De.radii[2],cursor:Be?"default":"pointer",display:"flex",alignItems:"baseline"},Ae&&{backgroundColor:De.colors.blue[9]}),!Ae&&{"&:hover":{backgroundColor:Be?void 0:De.colors.gray[9]}})},"div"),at=(0,P.createStyledComponent)(ye=>{var{theme:De,compact:Ae,disabled:we}=ye;return{alignSelf:"stretch",backgroundColor:"transparent",borderColor:"transparent",color:"currentColor",px:Ae?1:2,py:Ae?0:2,mr:Ae?1:0,display:"flex",alignItems:"center",borderWidth:0,":hover":{backgroundColor:we?void 0:De.colors.gray[9]},":active":{backgroundColor:De.colors.gray[9]},":focus":{boxShadow:"none"}}},"button"),bt=(0,P.createStyledComponent)(ye=>{var{compact:De,disabled:Ae}=ye;return{fontSize:De?1:2,whiteSpace:"nowrap",opacity:Ae?.5:void 0}}),xt=(0,P.createStyledComponent)(ye=>{var{theme:De,compact:Ae,disabled:we}=ye;return{ml:Ae?1:2,fontSize:1,color:De.colors.gray[4],opacity:we?.5:void 0}}),Dt=(0,P.createStyledComponent)(()=>({position:"relative"})),jt=(0,P.applyStaticStyles)(J,(0,P.createStyledComponent)(()=>({position:"absolute",zIndex:1,right:0,mt:2}))),Zt=(0,P.createStyledComponent)(ye=>{var{theme:De}=ye;return{color:De.colors.gray[6],borderTop:"1px solid ".concat(De.colors.gray[8]),p:3}}),tt="custom",ot="startDate",Ce="endDate",ve=(ye,De)=>{if(!ye)return De;var Ae=d().duration(ye-1,"days").as("minutes"),we=De<=Ae?Ae:De;return we};class se extends t.Component{constructor(){super(...arguments);Pe(this,"state",{focusedInput:ot,dateAnchor:null,openPicker:!1,invalid:!1,validationMessages:[],startDate:null,endDate:null}),Pe(this,"handleSelectChange",De=>{if(De.value!==tt)this.props.onChange({relativeTimeRange:De.value,startDate:null,endDate:null});else{var Ae=ve(this.props.minDays,this.props.relativeTimeRange);this.setState({openPicker:!0},()=>{this.props.onChange({relativeTimeRange:null,startDate:d()(this.props.now).subtract(Ae,"m"),endDate:this.props.now})})}}),Pe(this,"handleDateSummaryClick",De=>{this.setState({focusedInput:De,openPicker:!0})}),Pe(this,"handleFocusChange",De=>{De&&this.setState({focusedInput:De})}),Pe(this,"handleDatePickerChange",De=>{var{startDate:Ae,endDate:we}=De,{now:Be,minDays:Ze}=this.props,nt=()=>this.state.focusedInput===ot&&Ze?Ae.clone().add(Ze-1,"day").endOf("day"):this.state.focusedInput===ot?Ae.clone().endOf("day"):we.clone().endOf("day"),dt=nt();this.props.onChange({relativeTimeRange:null,startDate:Ae.clone().startOf("day"),endDate:dt.isSame(Be,"day")?dt.hour(Be.hour()).minute(Be.minute()):dt})}),Pe(this,"handleOutsideDatePickerClick",()=>{this.setState({openPicker:!1,focusedInput:ot,invalid:!1,startDate:null,endDate:null})}),Pe(this,"handleCustomDateClear",()=>{this.props.onChange({relativeTimeRange:this.props.defaultRelativeTimeRange,startDate:null,endDate:null})}),Pe(this,"handleTimeChange",(De,Ae)=>{var{hour:we,minutes:Be}=De,{startDate:Ze,endDate:nt}=this.props;this.handleDateRangeChange({startDate:Ae===ot?Ze.clone().hour(we||0).minutes(Be||0):Ze,endDate:Ae===Ce?nt.clone().hour(we||0).minutes(Be||0):nt})}),Pe(this,"handleDateRangeChange",De=>{var{startDate:Ae,endDate:we}=De,{translator:Be}=this.props,Ze=[{invalid:Ae.isAfter(we),message:Be.t("timerange.picker.invalid.start_date",{_:"Start date cannot be after end date"})},{invalid:Ae.clone().add(this.props.maxTimeRange,"m").isBefore(we),message:Be.t("timerange.picker.invalid.range",{_:"Selected time is out of range"})},{invalid:we.isAfter(d()()),message:Be.t("timerange.picker.invalid.end_date",{_:"Selected time must be before current time"})}].filter(nt=>{var{invalid:dt}=nt;return dt});Ze.length>0?this.setState({invalid:!0,validationMessages:Ze.map(nt=>{var{message:dt}=nt;return dt}),startDate:Ae,endDate:we}):this.setState({invalid:!1,validationMessages:[],startDate:null,endDate:null},()=>this.props.onChange({startDate:Ae,endDate:we,relativeTimeRange:null}))})}renderOpenPicker(){var{focusedInput:De,invalid:Ae,validationMessages:we}=this.state,{isUtc:Be}=this.props,{startDate:Ze,endDate:nt}=Ae?this.state:this.props,dt=this.props.minDays&&this.props.minDays-1;return r().createElement(Dt,null,r().createElement(jt,null,r().createElement(h.DayPickerRangeController,{minimumNights:dt,startDate:Ze,endDate:nt,focusedInput:De,onFocusChange:this.handleFocusChange,onDatesChange:this.handleDatePickerChange,onOutsideClick:this.handleOutsideDatePickerClick,hideKeyboardShortcutsPanel:!0,enableOutsideDays:!0,isOutsideRange:vt=>{var Et=vt.clone().startOf("day");if(De===Ce&&this.props.startDate){var wt=this.props.startDate.clone().startOf("day");return Et.isBefore(wt)||Et.isAfter(this.props.now)||this.props.maxTimeRange&&Et.endOf("day").isSameOrAfter(wt.clone().add(this.props.maxTimeRange,"m"))}return Et.isAfter(this.props.now)||Et.isBefore(this.props.now.clone().subtract(this.props.maxPickableWindow,"m").endOf("day"))},renderCalendarInfo:()=>this.props.hideTimePicker?null:r().createElement(Zt,null,r().createElement(ne.ZC,{px:"6px"},r().createElement(ne.H5,{mb:2,color:"gray.4",fontSize:2,fontWeight:"normal"},Be?r().createElement(L.Trans,{id:"timerange.picker.utc_time",_:"Time (UTC)"}):r().createElement(L.Trans,{id:"timerange.picker.local_time",_:"Time (local)"})),r().createElement(ne.ZC,{display:"flex",justifyContent:"space-between",alignItems:"center"},r().createElement(Ye,{hour:Ze.hour(),minutes:Ze.minutes(),onChange:vt=>{this.handleTimeChange(vt,ot)},onFocus:()=>this.handleFocusChange(ot)}),r().createElement(w.J,{type:"forward",label:!1,mx:3}),r().createElement(Ye,{hour:nt.hour(),minutes:nt.minutes(),onChange:vt=>{this.handleTimeChange(vt,Ce)},onFocus:()=>this.handleFocusChange(Ce)})),r().createElement(ne.ZC,{position:"relative"},r().createElement(pe,{mt:3,field:{invalid:this.state.invalid},validations:we.reduce((vt,Et,wt)=>(vt["msg-".concat(wt)]=Et,vt),{})}))))})))}renderCustomRange(){var{startDate:De,endDate:Ae,hideTimePicker:we,isUtc:Be}=this.props,{focusedInput:Ze,openPicker:nt}=this.state;return r().createElement(t.Fragment,null,r().createElement(Ue,{id:this.props.id,compact:this.props.compact,disabled:this.props.disabled},r().createElement(et,{compact:this.props.compact,focused:nt&&Ze===ot,onClick:()=>!this.props.disabled&&this.handleDateSummaryClick(ot),onKeyPress:dt=>{!this.props.disabled&&(dt.key===" "||dt.key==="Enter")&&this.handleDateSummaryClick(ot)},disabled:this.props.disabled,role:"button",tabIndex:this.props.disabled?-1:0},r().createElement(bt,{compact:this.props.compact},Be?De.utc().format("MMM Do"):De.format("MMM Do")),!we&&r().createElement(xt,{compact:this.props.compact},Be?De.utc().format("HH:mm"):De.format("HH:mm"))),r().createElement(w.J,{type:"forward",label:!1,mx:this.props.compact?0:1,size:this.props.compact?12:void 0}),r().createElement(et,{compact:this.props.compact,focused:nt&&Ze===Ce,onClick:()=>!this.props.disabled&&this.handleDateSummaryClick(Ce),onKeyPress:dt=>{!this.props.disabled&&(dt.key===" "||dt.key==="Enter")&&this.handleDateSummaryClick(Ce)},disabled:this.props.disabled,role:"button",tabIndex:this.props.disabled?-1:0},r().createElement(bt,{compact:this.props.compact},Be?Ae.utc().format("MMM Do"):Ae.format("MMM Do")),!we&&r().createElement(xt,{compact:this.props.compact},Be?Ae.utc().format("HH:mm"):Ae.format("HH:mm"))),r().createElement(at,{type:"button",onClick:this.handleCustomDateClear,compact:this.props.compact,disabled:this.props.disabled},r().createElement(w.J,{type:"remove",label:!1,size:this.props.compact?10:void 0}))),nt&&this.renderOpenPicker())}renderTimeRangeOptionsList(){var{relativeTimeRangeOptions:De}=this.props,{relativeTimeRange:Ae,translator:we}=this.props;return De=De||[{value:30,label:we.t("time.last.30_minutes",{_:"Last 30 minutes"})},{value:6*60,label:we.t("time.last.6_hours",{_:"Last 6 hours"})},{value:12*60,label:we.t("time.last.12_hours",{_:"Last 12 hours"})},{value:24*60,label:we.t("time.last.24_hours",{_:"Last 24 hours"})},{value:24*60*7,label:we.t("time.last.week",{_:"Last week"})},{value:24*60*30,label:we.t("time.last.month",{_:"Last month"})}],r().createElement(T.R,{id:this.props.id,value:Ae,options:this.props.allowCustom?[...De,{value:tt,label:we.t("timerange.picker.custom_range",{_:"Custom range"})}]:De,onChange:this.handleSelectChange,compact:this.props.compact,placeholder:we.t("common.choose",{_:"Choose..."}),disabled:this.props.disabled})}render(){var{startDate:De,endDate:Ae,relativeTimeRange:we}=this.props,Be=!we&&De&&Ae;return Be?this.renderCustomRange():this.renderTimeRangeOptionsList()}}se.propTypes={id:o().string,startDate:s().momentObj,endDate:s().momentObj,now:s().momentObj.isRequired,maxTimeRange:o().number.isRequired,maxPickableWindow:o().number.isRequired,minDays:o().number,defaultRelativeTimeRange:o().number.isRequired,relativeTimeRange:o().number,relativeTimeRangeOptions:o().arrayOf(o().shape({value:o().number,label:o().string})).isRequired,onChange:o().func.isRequired,allowCustom:o().bool,hideTimePicker:o().bool,translator:o().object.isRequired,isUtc:o().bool,compact:o().bool,disabled:o().bool},se.defaultProps={allowCustom:!0,isUtc:!1};var de=ye=>r().createElement(L.I18n,null,De=>r().createElement(se,Se({},ye,{translator:De}))),Ve=de,$e=f("../node_modules/@cloudflare/component-forms/es/Base.js"),Xe=["value","onChange"];function Ie(){return Ie=Object.assign?Object.assign.bind():function(ye){for(var De=1;De=0)&&(!Object.prototype.propertyIsEnumerable.call(ye,we)||(Ae[we]=ye[we]))}return Ae}function Te(ye,De){if(ye==null)return{};var Ae={},we=Object.keys(ye),Be,Ze;for(Ze=0;Ze=0)&&(Ae[Be]=ye[Be]);return Ae}function Re(ye){var{value:De,onChange:Ae}=ye,we=ke(ye,Xe);return r().createElement($e.XY,Ie({Component:Ve,startDate:(De==null?void 0:De.startDate)&&d()(De==null?void 0:De.startDate),endDate:(De==null?void 0:De.endDate)&&d()(De==null?void 0:De.endDate),relativeTimeRange:De==null?void 0:De.relativeTimeRange,onChange:Be=>Ae({relativeTimeRange:Be.relativeTimeRange,startDate:Be.startDate&&Be.startDate.utc().format(),endDate:Be.endDate&&Be.endDate.utc().format()})},we))}Re.formGridType="input"},"../node_modules/@cloudflare/component-forms/es/util.js":function(be,xe,f){"use strict";var t=f("../../../../node_modules/lodash.get/index.js"),r=f.n(t),a=(d,g)=>{var h=Object.entries(d);return h.reduce((T,w)=>{var[P,O]=w;return T[g.includes(P)?0:1][P]=O,T},[{},{}])},o=(d,g,h)=>{if(g.includes("__proto__"))throw`"path" parameter contains "__proto__" indicating an attempt to modifiy an object's prototype.`;var T=Array.isArray(g)?g:g.match(/([^[.\]])+/g);T.reduce((w,P,O)=>(w[P]===void 0&&(w[P]={}),O===T.length-1&&(w[P]=h),w[P]),d)},l=/\["(\d+)\"]/g,s=d=>d.replace(l,"[$1]"),v=d=>{var g={};if(d.inner){if(d.inner.length===0)return o(g,s(d.path),d.message);for(var h of d.inner)get(g,h.path)||o(g,s(h.path),h.message)}return g}},"../node_modules/@cloudflare/component-forms/node_modules/@cloudflare/component-button/es/index.js":function(be,xe,f){"use strict";f.d(xe,{zx:function(){return D},hE:function(){return k}});var t=f("webpack/sharing/consume/default/react/react"),r=f.n(t),a=f("../node_modules/@cloudflare/component-forms/node_modules/prop-types/index.js"),o=f.n(a),l=f("../../../../node_modules/@cloudflare/style-const/es/index.js"),s=f("../../../../node_modules/@cloudflare/style-container/es/index.js"),v=f("../../../../node_modules/@cloudflare/component-icon/es/index.js");function d(){return d=Object.assign?Object.assign.bind():function(x){for(var G=1;G{var oe,ae,S,K,ce,pe,ne,L=x.colors.gray[9];return{default:(0,l.Yc)()?L:x.colors.gray[1],success:L,warning:L,inverted:{danger:(oe=x.colors.button.plainDestructive[G])===null||oe===void 0?void 0:oe.text,primary:(ae=x.colors.button.plain[G])===null||ae===void 0?void 0:ae.text},primary:((S=x.colors.button.primary[G])===null||S===void 0?void 0:S.text)||L,danger:((K=x.colors.button.danger[G])===null||K===void 0?void 0:K.text)||L,plain:((ce=x.colors.button.plain[G])===null||ce===void 0?void 0:ce.text)||L,plainMono:((pe=x.colors.button.plainMono[G])===null||pe===void 0?void 0:pe.text)||L,plainDestructive:((ne=x.colors.button.plainDestructive[G])===null||ne===void 0?void 0:ne.text)||L}},O=x=>{var G=(0,l.Yc)()?3:4,oe=(0,l.Yc)()?1:2;return{normal:{backgroundColor:{default:(0,l.Yc)()?x.colors.gray[G]:x.colors.gray[8],primary:x.colors.button.primary.normal.background,success:x.colors.green[G],warning:x.colors.orange[G],danger:x.colors.button.danger.normal.background,inverted:{danger:x.colors.button.plainDestructive.normal.background,primary:x.colors.button.plain.normal.background},plain:"transparent",plainMono:"transparent",plainDestructive:"transparent"},color:P(x,"normal")},hover:{backgroundColor:{default:x.colors.gray[(0,l.Yc)()?2:7],primary:x.colors.button.primary.hover.background,success:x.colors.green[oe],warning:x.colors.orange[oe],danger:x.colors.button.danger.hover.background,inverted:{danger:x.colors.button.plainDestructive.hover.background,primary:x.colors.button.plain.hover.background},plain:x.colors.button.plain.hover.background,plainMono:x.colors.button.plainMono.hover.background,plainDestructive:x.colors.button.plainDestructive.hover.background},color:P(x,"hover")},active:{backgroundColor:{default:x.colors.gray[(0,l.Yc)()?3:6],primary:x.colors.button.primary.active.background,success:x.colors.green[G],warning:x.colors.orange[G],danger:x.colors.button.danger.active.background,inverted:{danger:x.colors.button.plainDestructive.active.background,primary:x.colors.button.plain.active.background},plain:x.colors.button.plain.active.background,plainMono:x.colors.button.plainMono.active.background,plainDestructive:x.colors.button.plainDestructive.active.background},color:P(x,"active")},focus:{backgroundColor:{default:x.colors.gray[(0,l.Yc)()?2:7],primary:x.colors.button.primary.focus.background,success:x.colors.green[G],warning:x.colors.orange[G],danger:x.colors.button.danger.focus.background,inverted:{danger:x.colors.button.plainDestructive.focus.background,primary:x.colors.button.plain.focus.background},plain:x.colors.button.plain.focus.background,plainMono:x.colors.button.plainMono.focus.background,plainDestructive:x.colors.button.plainDestructive.focus.background},color:P(x,"focus")}}},N=(x,G)=>{var{inverted:oe=!1,type:ae="default"}=G;return x?oe&&(ae==="danger"||ae==="primary")?x.inverted[ae]:x[ae]:void 0},V=(x,G)=>{var{theme:oe,loading:ae,disabled:S}=G,K=!(ae||S),ce=O(oe)[x],pe=N(ce.color,G),ne=N(ce.backgroundColor,G);return K?{backgroundColor:ne,color:pe,boxShadow:G.inverted?"inset 0px 0px 0px 1px ".concat(pe):void 0}:void 0},Y=x=>{var G,oe,{theme:ae,loading:S=!1,disabled:K,direction:ce,group:pe,spaced:ne,space:L=2,type:J="default",stretch:W,noWrapText:he,buttonState:le,compact:Q}=x,re={normal:O(ae).normal,hover:V("hover",x),active:V("active",x),focus:V("focus",x)},b=le&&re[le]?(G=re[le])===null||G===void 0?void 0:G.color:N(re.normal.color,x),q=le&&re[le]?(oe=re[le])===null||oe===void 0?void 0:oe.backgroundColor:N(re.normal.backgroundColor,x);return h(h(h({},le?{}:{"&:focus":re.focus,"&:hover":re.hover,"&:active":re.active,"&:focus:active":re.active}),{},{"&:focus-visible":{outlineOffset:2,outlineWidth:2,outlineStyle:"solid",outlineColor:J==="danger"||J==="plainDestructive"?ae.colors.red[(0,l.Yc)()?3:4]:ae.colors.focus},"&[title]":{pointerEvents:K?"auto":"none"},backgroundColor:q,color:S?"transparent":b,cursor:K||S?"default":"pointer",display:"inline-flex",flexGrow:W?1:void 0,alignItems:"center",justifyContent:"center",fontFamily:ae.fontFamily,fontSize:Q?1:2,fontWeight:400,lineHeight:1.2,border:"none"},x.inverted?{boxShadow:"inset 0px 0px 0px 1px ".concat(b)}:{}),{},{borderTopRightRadius:(pe==="first"||pe==="inbetween")&&!ne?0:w,borderTopLeftRadius:(pe==="last"||pe==="inbetween")&&!ne?0:w,borderBottomLeftRadius:(pe==="last"||pe==="inbetween")&&!ne?0:w,borderBottomRightRadius:(pe==="first"||pe==="inbetween")&&!ne?0:w,"&::before":S?{content:'"\u2022\u2022\u2022"',color:b,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",left:0,height:"100%",width:"100%",opacity:1,animationName:{"50%":{opacity:0}},animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}:{display:"none"},opacity:K?.5:"inherit",mt:ne&&ce==="column"&&pe!=="first"?L:0,mr:0,mb:0,ml:ne&&ce==="row"&&pe!=="first"?L:0,px:Q?"11px":3,py:Q?1:2,pointerEvents:K?"none":"auto",position:"relative",textAlign:"center",transitionProperty:"all",transitionDuration:"300ms",transitionTimingFunction:"ease",userSelect:"none",maxWidth:"initial",float:"none",whiteSpace:he?"nowrap":"normal",width:ce==="column"?"100%":"auto"})},U=r().forwardRef((x,G)=>{var{id:oe,name:ae,submit:S=!1,className:K,disabled:ce,loading:pe=!1,testId:ne,children:L,onClick:J,iconType:W,iconLabel:he,iconSize:le,iconPosition:Q="left",form:re,tabIndex:b,ariaLabel:q}=x,Z=Object.keys(x).filter(_e=>_e.startsWith("data-")||s.ariaAttributes.includes(_e)).reduce((_e,je)=>h(h({},_e),{},{[je]:x[je]}),{});return r().createElement("button",d({},Z,{id:oe,name:ae,type:S?"submit":"button","data-testid":ne,disabled:ce||pe,className:K,onClick:J,form:re,tabIndex:b,ref:G,"aria-label":q}),W&&Q==="left"&&r().createElement(v.J,{size:le,type:W,ariaLabel:he,mr:1}),L,W&&Q==="right"&&r().createElement(v.J,{size:le,type:W,ariaLabel:he,ml:1}))});U.propTypes={id:o().string,name:o().string,onClick:o().func,submit:o().bool,spaced:o().bool,space:o().number,direction:o().oneOf(["column","row"]),className:o().string,group:o().oneOf(["first","inbetween","last"]),type:o().oneOf(["default","primary","success","warning","danger","plain","plainMono","plainDestructive"]),testId:o().string,disabled:o().bool,loading:o().bool,inverted:o().bool,iconType:o().string,iconLabel:o().string,iconSize:o().number,form:o().string,tabIndex:o().number,ariaLabel:o().string,stretch:o().bool,noWrapText:o().bool,buttonState:o().oneOf(["hover","active","focus"]),compact:o().bool},U.displayName="Button";var D=(0,s.createStyledComponent)(Y,U),X=(x,G)=>x===G-1?"last":x===0?"first":"inbetween",ee=(x,G,oe,ae,S)=>r().Children.map(x,(K,ce)=>r().isValidElement(K)?r().cloneElement(K,{group:X(ce,r().Children.count(x)),spaced:G,space:oe,direction:ae,stretch:S}):K),I=x=>{var{className:G,children:oe,spaced:ae,space:S,direction:K="row",stretch:ce}=x;return r().createElement("div",{className:G},ee(oe,ae,S,K,ce))};I.propTypes={spaced:o().bool,space:o().number,stretch:o().bool,className:o().string.isRequired,direction:o().oneOf(["column","row"])},I.displayName="ButtonGroup";var k=(0,s.createStyledComponent)(x=>{var{direction:G="row"}=x;return{position:"relative",display:"inline-flex",width:G==="column"?"100%":"initial",flexDirection:G==="column"?"column":"row",flexWrap:"nowrap"}},I),R=(0,s.createStyledComponent)(x=>{var{theme:G}=x;return{background:"transparent",borderRadius:"none",color:G.colors.blue[4],cursor:"pointer",transitionProperty:"color",transitionDuration:"150ms",transitionTimingFunction:"ease",padding:"0px",display:"inline-block",alignItems:"center",lineHeight:"1.5",height:"fit-content",fontSize:2,fontWeight:400,outline:"none",overflow:"hidden",textUnderlineOffset:4,":hover":{color:(0,l.Yc)()?G.colors.orange[6]:G.colors.blue[2],textDecoration:"underline"},":focus-visible":{outline:"-webkit-focus-ring-color auto 1px",outlineOffset:"1px"}}},"button");R.displayName="TextButton";var j=null,y=(0,s.createStyledComponent)(()=>({display:"flex",alignItems:"center"}),"div"),_=x=>{var{onClick:G,iconType:oe,iconPosition:ae="left",children:S}=x;return React.createElement(TextButton,{type:"button",onClick:G},React.createElement(y,null,ae==="left"&&React.createElement(Icon,{type:oe,mr:1,ariaLabel:oe}),S,ae==="right"&&React.createElement(Icon,{type:oe,ml:1,ariaLabel:oe})))},$=null;function fe(x,G){var oe=Object.keys(x);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(x);G&&(ae=ae.filter(function(S){return Object.getOwnPropertyDescriptor(x,S).enumerable})),oe.push.apply(oe,ae)}return oe}function ge(x){for(var G=1;G{var{theme:G,focus:oe,disabled:ae}=x;return ge({background:"none",color:"inherit",border:"none",padding:0,opacity:ae?.5:void 0,font:"inherit",cursor:"pointer",outline:"inherit"},oe?G.mixins.focus():{})},"button"),z=null},"../node_modules/@cloudflare/component-forms/node_modules/@cloudflare/component-listbox/es/index.js":function(be,xe,f){"use strict";f.d(xe,{h:function(){return Se},R:function(){return W}});var t=f("webpack/sharing/consume/default/react/react"),r=f.n(t),a=f("../../../../node_modules/downshift/dist/downshift.esm.js"),o=f("webpack/sharing/consume/default/@cloudflare/intl-react/@cloudflare/intl-react"),l=f("../../../../node_modules/@cloudflare/style-container/es/index.js"),s=f("../node_modules/@cloudflare/component-forms/es/index.js"),v=f("../node_modules/@cloudflare/elements/es/index.js"),d=f("../../../../node_modules/@cloudflare/style-const/es/index.js");function g(Ee,ze){var Pe=Object.keys(Ee);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(Ee);ze&&(Ue=Ue.filter(function(et){return Object.getOwnPropertyDescriptor(Ee,et).enumerable})),Pe.push.apply(Pe,Ue)}return Pe}function h(Ee){for(var ze=1;ze{var{theme:ze,isOpen:Pe,hasSelectedItem:Ue,invalid:et,isHovered:at,disabled:bt,inline:xt,compact:Dt}=Ee;return h(h(h({position:"relative",display:xt?"inline-block":"block",width:xt?"auto":"100%",paddingTop:Dt?"4px":xt?"6px":"8px",paddingBottom:Dt?"4px":xt?"6px":"8px",paddingLeft:Dt?"6px":xt?"4px":"10px",paddingRight:xt?"18px":"24px",cursor:bt?"default":"pointer",textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},ze.mixins.input({invalid:et,disabled:bt,inline:xt,compact:Dt})),ze.mixins.focus({invalid:et,border:!0,focused:Pe||at})),{},{color:Ue?ze.colors.gray[1]:ze.colors.gray[(0,d.Yc)()?4:3]},xt?{marginLeft:"2px",marginRight:"2px","&:hover":{backgroundColor:ze.colors.button.plainMono.hover.background},"&:active":{backgroundColor:ze.colors.button.plainMono.active.background}}:{})},P=Ee=>{var{theme:ze,inline:Pe}=Ee;return{"&::after":{content:'""',display:"block",position:"absolute",borderRight:"5px solid transparent",borderLeft:"5px solid transparent",borderTop:"6px solid",borderTopColor:ze.colors.gray[4],top:"50%",right:Pe?"4px":"10px",transform:"translateY(-50%)",marginTop:"1px"}}};function O(Ee,ze){var Pe=Object.keys(Ee);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(Ee);ze&&(Ue=Ue.filter(function(et){return Object.getOwnPropertyDescriptor(Ee,et).enumerable})),Pe.push.apply(Pe,Ue)}return Pe}function N(Ee){for(var ze=1;ze{var{theme:ze,invalid:Pe}=Ee;return N(N({},P({theme:ze})),{},{position:"absolute",top:"1px",bottom:"1px",right:"1px",width:"32px",borderLeft:"1px solid ".concat(Pe?ze.colors.red[3]:ze.colors.gray[5]),backgroundColor:ze.colors.gray[9],borderTopRightRadius:ze.radii[2],borderBottomRightRadius:ze.radii[2],cursor:"pointer","&:disabled":{cursor:"not-allowed",opacity:.5}})},"button"),U=(0,l.createStyledComponent)(Ee=>{var{theme:ze}=Ee;return{display:"block",position:"absolute",top:"100%",padding:ze.space[2],fontSize:ze.fontSizes[2],color:ze.colors.gray[4],cursor:"default"}}),D=(0,l.createStyledComponent)(()=>({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),"label");function X(Ee,ze){var Pe=Object.keys(Ee);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(Ee);ze&&(Ue=Ue.filter(function(et){return Object.getOwnPropertyDescriptor(Ee,et).enumerable})),Pe.push.apply(Pe,Ue)}return Pe}function ee(Ee){for(var ze=1;ze{var{theme:ze,isOpen:Pe,hasSelectedItem:Ue,invalid:et,isHovered:at,disabled:bt,compact:xt}=Ee;return ee(ee({},w({theme:ze,isOpen:Pe,hasSelectedItem:Ue,invalid:et,isHovered:at,disabled:bt,compact:xt})),{},{cursor:bt?"default":"text"})},"input"),R=(0,l.createStyledComponent)(Ee=>{var{theme:ze,isOpen:Pe,hasItems:Ue=!0}=Ee;return{boxSizing:"border-box",display:Pe&&Ue?"block":"none",position:"absolute",top:"100%",marginLeft:"0px",marginTop:"7px",minWidth:"100%",maxWidth:"350px",maxHeight:"210px",overflow:"auto",backgroundColor:ze.colors.white,border:"1px solid ".concat(ze.colors.gray[5]),borderRadius:ze.borderRadius,listStyle:"none",webkitOverflowScrolling:"touch",fontSize:ze.fontSizes[2],zIndex:"1100",outline:"none"}},"ul"),j=Ee=>{var{theme:ze,isHighlighted:Pe,isSelected:Ue}=Ee;return Pe?ze.colors.gray[8]:Ue?ze.colors.gray[9]:ze.colors.white},y=(0,l.createStyledComponent)(Ee=>{var{theme:ze,isSelected:Pe,isHighlighted:Ue}=Ee;return{paddingTop:"8px",paddingBottom:"8px",paddingLeft:"10px",paddingRight:"10px",color:Ue||Pe?ze.colors.black:ze.colors.gray[4],background:j({theme:ze,isSelected:Pe,isHighlighted:Ue}),cursor:"pointer","& [data-selected-hidden]":{display:"none"}}},"li");function _(Ee,ze){var Pe=Object.keys(Ee);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(Ee);ze&&(Ue=Ue.filter(function(et){return Object.getOwnPropertyDescriptor(Ee,et).enumerable})),Pe.push.apply(Pe,Ue)}return Pe}function $(Ee){for(var ze=1;ze{var{theme:ze,isOpen:Pe,hasSelectedItem:Ue,invalid:et,disabled:at,inline:bt,compact:xt}=Ee;return $($({},w({theme:ze,isOpen:Pe,hasSelectedItem:Ue,invalid:et,disabled:at,inline:bt,compact:xt})),P({theme:ze,inline:bt}))},"button"),ie=f("../../../../node_modules/@cloudflare/component-icon/es/index.js"),H=Ee=>typeof Ee=="object"&&(Ee==null?void 0:Ee.label)!==void 0,z=Ee=>Ee?H(Ee)?Ee.label:String(Ee):"",x=(Ee,ze)=>{var Pe,Ue=ze==null||(Pe=ze.find)===null||Pe===void 0?void 0:Pe.call(ze,et=>et.value===Ee);return(Ue==null?void 0:Ue.label)||Ee||""},G=(Ee,ze)=>{var Pe;return ze==null||(Pe=ze.find)===null||Pe===void 0?void 0:Pe.call(ze,Ue=>Ue.value===Ee)},oe=["value","options","onChange","placeholder","optionRenderer","formatSelectedValue","disabled","invalid","testId","className","listboxProps","labelledBy","inline","compact","multi"];function ae(){return ae=Object.assign?Object.assign.bind():function(Ee){for(var ze=1;ze=0)&&(!Object.prototype.propertyIsEnumerable.call(Ee,Ue)||(Pe[Ue]=Ee[Ue]))}return Pe}function ne(Ee,ze){if(Ee==null)return{};var Pe={},Ue=Object.keys(Ee),et,at;for(at=0;at=0)&&(Pe[et]=Ee[et]);return Pe}var L=Ee=>{var{value:ze,options:Pe,onChange:Ue,placeholder:et,optionRenderer:at,formatSelectedValue:bt=z,disabled:xt,invalid:Dt,testId:jt,className:Zt,listboxProps:tt,labelledBy:ot,inline:Ce,compact:ve,multi:se}=Ee,de=pe(Ee,oe),{t:Ve}=(0,o.useI18n)(),$e=(tt==null?void 0:tt.itemToString)||z,Xe=se?ze||[]:void 0,Ie=(0,t.useRef)(null),{getToggleButtonProps:ke,getMenuProps:Te,getItemProps:Re,isOpen:ye,highlightedIndex:De}=(0,a.L7)(K({items:Pe,itemToString:$e,stateReducer:(dt,vt)=>{var{changes:Et,type:wt}=vt;if(se)switch(wt){case a.L7.stateChangeTypes.MenuKeyDownEnter:case a.L7.stateChangeTypes.MenuKeyDownSpaceButton:case a.L7.stateChangeTypes.ItemClick:return K(K({},Et),{},{highlightedIndex:dt.highlightedIndex,isOpen:se})}return Et},onSelectedItemChange:dt=>{var{selectedItem:vt}=dt;vt&&typeof Ue=="function"&&Ue(vt)}},tt)),Ae=(0,t.useCallback)(dt=>{if(typeof Ue=="function"&&Xe){var vt=Xe.indexOf(dt.value);if(vt>-1){var Et=[...Xe];Et.splice(vt,1),Ue(Et)}else Ue([...Xe,dt.value])}},[Ue,se]),we=ke(K(K({},de),{},{refKey:"innerRef",disabled:xt,type:"button"})),Be=Te({refKey:"innerRef",disabled:xt}),Ze=!se||(Xe==null?void 0:Xe.length)===1?bt(G((Xe==null?void 0:Xe[0])||ze,Pe)):Xe!=null&&Xe.length?r().createElement(o.Trans,{id:"common.items_selected",_:"%{count} items selected",values:{count:Xe.length}}):void 0;ot&&(Be["aria-labelledby"]+=" "+ot,we["aria-labelledby"]+=" "+ot);var nt=se?dt=>{var vt,Et;dt.stopPropagation(),Ue==null||Ue([]),(vt=Ie.current)===null||vt===void 0||(Et=vt.parentNode)===null||Et===void 0||Et.focus()}:void 0;return r().createElement(v.ZC,{className:Zt,"data-testid":jt,display:Ce?"inline-block":void 0},r().createElement(ge,ae({},we,{isOpen:ye,hasSelectedItem:!!ze,invalid:Dt,"aria-required":null,inline:Ce,compact:ve,display:"flex",alignItems:"center",justifyContent:"space-between"}),Ze||et||(se?r().createElement(o.Trans,{id:"common.multi_select_placeholder",_:"Select items..."}):r().createElement(o.Trans,{id:"common.select_placeholder",_:"Select item..."})),se&&!!(Xe!=null&&Xe.length)&&r().createElement(v.ZC,{role:"button",padding:"2px",ml:1,mr:"3px",onClick:nt,onKeyDown:dt=>{(dt.key===" "||dt.key==="Enter")&&(nt==null||nt(dt))},onBlur:dt=>dt.stopPropagation(),tabIndex:0,innerRef:Ie},r().createElement(ie.J,{ariaLabel:Ve("commmon.table.clear_selection",{_:"Clear selection"}),type:"remove",size:ve?10:12,display:"block"}))),r().createElement(R,ae({},Be,{isOpen:ye},se?{onKeyDown:dt=>{if(Ie.current&&dt.key==="Tab")Ie.current.focus(),dt.preventDefault();else if(dt.key===" "||dt.key==="Enter")Pe[De]&&(Ae==null||Ae(Pe[De]));else{var vt;Be==null||(vt=Be.onKeyDown)===null||vt===void 0||vt.call(Be,dt)}}}:{}),ye&&Pe.map((dt,vt)=>{var Et,wt=K(K({},dt),{},{isSelected:ze===dt.value,isHighlighted:De===vt}),Tt=(at==null?void 0:at(wt,vt))||$e(dt);return r().createElement(y,ae({key:"".concat(dt.label,"-").concat(vt)},Re({item:dt,index:vt,refKey:"innerRef"}),{isSelected:ze===dt.value,isHighlighted:De===vt},se?{onClick:()=>Ae(dt)}:{}),se?r().createElement(s.XZ,{label:Tt,checked:(Xe==null||(Et=Xe.includes)===null||Et===void 0?void 0:Et.call(Xe,dt.value))||!1,onChange:Mt=>{},componentStyleProps:{marginRight:2},labelProps:{pointerEvents:"none",userSelect:"none"},display:"flex",alignItems:"center",marginBottom:0,tabIndex:-1}):Tt)})))},J=(0,l.createStyledComponent)(Ee=>{var{theme:ze,inline:Pe,compact:Ue}=Ee;return{position:"relative",fontSize:ze.fontSizes[2],textAlign:"left",marginRight:Ue||Pe?0:2}},L);function W(Ee){return r().createElement(J,Ee)}var he=f("../../../../node_modules/@cloudflare/util-hooks/es/index.js"),le=f("../../../../node_modules/match-sorter/dist/match-sorter.esm.js"),Q=Ee=>typeof Ee.label=="string",re=Ee=>({value:Ee,label:Ee}),b=Ee=>{var{creatable:ze=!1,sortable:Pe=!0,initialOptions:Ue,value:et,newOptionCreator:at=re,isValidNewOption:bt=Q,formatSelectedValue:xt=z}=Ee,Dt=G(et,Ue)?xt(G(et,Ue)):x(et,Ue),[jt,Zt]=t.useState(Dt),[tt,ot]=t.useState(Ue);t.useEffect(()=>{Zt(Dt),ot(Ue)},[et,Ue]);var Ce=Ve=>{var $e=[...tt];if(Pe&&($e=(0,le.Lu)(Ue,Ve,{keys:["label"]})),ze){var Xe=at(Ve);bt(Xe)&&($e=[Xe,...$e])}Zt(Ve),ot($e)},ve=()=>{ot(Ue)},se=()=>{Zt(""),ve()},de=()=>{Zt(Dt),ve()};return{displayValue:jt,options:tt,clearInput:se,onComboboxInputChange:Ce,resetInitialOptions:ve,restorePreviousInput:de,setDisplayValue:Zt}},q=["value","options","onChange","placeholder","noResultsText","disabled","invalid","className","comboboxProps","labelledBy","creatable","sortable","isValidNewOption","newOptionCreator","formatSelectedValue","compact"];function Z(){return Z=Object.assign?Object.assign.bind():function(Ee){for(var ze=1;ze=0)&&(!Object.prototype.propertyIsEnumerable.call(Ee,Ue)||(Pe[Ue]=Ee[Ue]))}return Pe}function qe(Ee,ze){if(Ee==null)return{};var Pe={},Ue=Object.keys(Ee),et,at;for(at=0;at=0)&&(Pe[et]=Ee[et]);return Pe}var rt=Ee=>{var{value:ze,options:Pe,onChange:Ue,placeholder:et,noResultsText:at,disabled:bt,invalid:xt,className:Dt,comboboxProps:jt,labelledBy:Zt,creatable:tt=!1,sortable:ot=!0,isValidNewOption:Ce,newOptionCreator:ve,formatSelectedValue:se=z,compact:de}=Ee,Ve=Fe(Ee,q),{t:$e}=(0,o.useI18n)(),{displayValue:Xe,options:Ie,clearInput:ke,onComboboxInputChange:Te,restorePreviousInput:Re,resetInitialOptions:ye,setDisplayValue:De}=b({value:ze,initialOptions:Pe,creatable:tt,sortable:ot,newOptionCreator:ve,isValidNewOption:Ce,formatSelectedValue:se}),{isHovered:Ae,ref:we}=(0,he.XI)(),Be=(jt==null?void 0:jt.itemToString)||z,{getComboboxProps:Ze,getInputProps:nt,getToggleButtonProps:dt,getMenuProps:vt,getItemProps:Et,isOpen:wt,openMenu:Tt,closeMenu:Mt,highlightedIndex:At}=(0,a.Kb)(je({items:Ie,itemToString:Be,stateReducer:(It,Ht)=>{var{changes:ln}=Ht;return Ie.length?ln:je(je({},ln),{},{isOpen:!1})},onStateChange:It=>{var{type:Ht}=It;Ht===a.Kb.stateChangeTypes.InputBlur&&Re()},onSelectedItemChange:It=>{var{selectedItem:Ht}=It;Ht&&typeof Ue=="function"&&(Mt(),Ue(Ht),De(Ht.label),ye())}},jt)),ft=dt({refKey:"innerRef",ref:we,disabled:bt,type:"button"}),zt=vt({refKey:"innerRef",disabled:bt}),Wt=nt(je(je({},Ve),{},{refKey:"innerRef",value:Xe,disabled:bt,onChange:It=>{var Ht=It.target.value;Te(Ht)},onBlur:()=>{wt||Re()},onFocus:()=>{Tt()},onKeyDown:It=>{!wt&&It.key==="Escape"&&ke()}}));return Zt&&(zt["aria-labelledby"]+=" "+Zt,Wt["aria-labelledby"]+=" "+Zt),t.createElement(v.ZC,Z({className:Dt},Ze({refKey:"innerRef"})),t.createElement(k,Z({},Wt,{placeholder:et||$e("common.select",{_:"Select"}),isHovered:Ae,invalid:xt,disabled:bt,compact:de})),t.createElement(Y,Z({},ft,{invalid:xt})),Ie.length?t.createElement(R,Z({},zt,{isOpen:wt,hasItems:!!Ie.length}),wt&&Ie.map((It,Ht)=>t.createElement(y,Z({key:"".concat(It.label,"-").concat(Ht)},Et({item:It,index:Ht,refKey:"innerRef"}),{isSelected:ze===It.value,isHighlighted:At===Ht}),Be(It)))):t.createElement(U,zt,at||$e("common.no_results",{_:"No results"})))},Ye=(0,l.createStyledComponent)(Ee=>{var{compact:ze}=Ee;return{position:"relative",display:"flex",alignItems:"center",marginRight:ze?0:2}},rt);function Se(Ee){return t.createElement(Ye,Ee)}},"../node_modules/@cloudflare/component-forms/node_modules/@cloudflare/component-select-2/es/index.js":function(be,xe,f){"use strict";f.d(xe,{u:function(){return G}});var t=f("webpack/sharing/consume/default/react/react"),r=f.n(t),a=f("../node_modules/@cloudflare/component-forms/node_modules/@cloudflare/component-select-2/node_modules/prop-types/index.js"),o=f.n(a),l=f("../../../../node_modules/react-select/dist/react-select.esm.js"),s=f("../../../../node_modules/react-select/async/dist/react-select-async.esm.js"),v=f("../../../../node_modules/react-select/async-creatable/dist/react-select-async-creatable.esm.js"),d=f("../../../../node_modules/react-select/creatable/dist/react-select-creatable.esm.js"),g=f("../../../../node_modules/@cloudflare/style-container/es/index.js"),h=f("../../../../node_modules/@cloudflare/style-const/es/index.js"),T=f("../node_modules/@cloudflare/elements/es/index.js"),w=f("../../../../node_modules/react-select/dist/index-baa8dc4f.esm.js"),P=f("../../../../node_modules/@cloudflare/component-icon/es/index.js"),O=["ref"];function N(){return N=Object.assign?Object.assign.bind():function(oe){for(var ae=1;ae=0)&&(!Object.prototype.propertyIsEnumerable.call(oe,K)||(S[K]=oe[K]))}return S}function Y(oe,ae){if(oe==null)return{};var S={},K=Object.keys(oe),ce,pe;for(pe=0;pe=0)&&(S[ce]=oe[ce]);return S}var U=()=>r().createElement("div",null),D=()=>r().createElement("div",{style:{width:0,height:0,borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:"5px solid #72777b"}}),X=oe=>r().createElement(w.c.DropdownIndicator,oe,r().createElement(D,null)),ee=oe=>r().createElement(w.c.ClearIndicator,oe,r().createElement(P.J,{ariaLabel:"remove",type:"remove",color:"gray.4"})),I=oe=>r().createElement(w.c.MultiValueRemove,oe,r().createElement(P.J,{ariaLabel:"remove",type:"remove",color:"gray.4"})),k=oe=>{var{children:ae,getStyles:S,innerProps:{ref:K}}=oe,ce=V(oe.innerProps,O);return r().createElement("div",N({},ce,{ref:K,style:S("option",oe)}),ae)};k.propTypes={children:o().oneOfType([o().arrayOf(o().node),o().node]).isRequired,getStyles:o().func.isRequired,innerProps:o().object.isRequired};var R=["async","multi","creatable","searchable","clearable","disabled","cache","options","testId","theme","className","placeholder","label","value"];function j(){return j=Object.assign?Object.assign.bind():function(oe){for(var ae=1;ae=0)&&(!Object.prototype.propertyIsEnumerable.call(oe,K)||(S[K]=oe[K]))}return S}function ge(oe,ae){if(oe==null)return{};var S={},K=Object.keys(oe),ce,pe;for(pe=0;pe=0)&&(S[ce]=oe[ce]);return S}function ie(oe,ae){var S=oe.getBoundingClientRect(),K=ae.getBoundingClientRect(),ce=ae.offsetHeight/3;K.bottom+ce>S.bottom?oe.scrollTop=Math.min(ae.offsetTop+ae.clientHeight-oe.offsetHeight+ce,oe.scrollHeight):K.top-ce{var{theme:ae}=oe;return{display:"block",fontSize:ae.fontSizes[2],color:ae.colors.gray[1],marginBottom:ae.space[1]}},"label"),z=oe=>{var{async:ae,multi:S,creatable:K,searchable:ce,clearable:pe,disabled:ne,cache:L,options:J,testId:W,theme:he,className:le,placeholder:Q,label:re,value:b}=oe,q=fe(oe,R),Z=(0,t.useRef)(),_e=(0,t.useRef)(),je={control:(rt,Ye)=>{var{isDisabled:Se}=Ye;return _(_({},rt),{},{width:"100%",borderRadius:5,minHeight:35,height:S?"auto":35,backgroundColor:he.colors.white,opacity:Se?.5:1,borderWidth:"1px",borderStyle:"solid",borderColor:q.borderColor||he.colors.gray[(0,h.Yc)()?4:5]})},menu:rt=>_(_({},rt),{},{position:"absolute",zIndex:1e3,border:"1px solid ".concat(he.colors.gray[5])}),singleValue:rt=>_(_({},rt),{},{fontSize:he.fontSizes[2],position:"relative",maxWidth:"none",top:0,transform:"translateY(0)"}),option:(rt,Ye)=>{var{isDisabled:Se,isFocused:Ee,isSelected:ze}=Ye;return _(_({},rt),{},{backgroundColor:ze?he.colors.gray[9]:Ee?he.colors.gray[8]:he.colors.white,color:ze||Ee?he.colors.black:Se?he.colors.gray[7]:he.colors.gray[4],cursor:Se?"default":"pointer",fontSize:14})},multiValue:rt=>_(_({},rt),{},{backgroundColor:he.colors.gray[8]}),noOptionsMessage:rt=>_(_({},rt),{},{backgroundColor:he.colors.white}),valueContainer:rt=>_(_({},rt),{},{paddingTop:0,paddingBottom:0}),input:rt=>_(_({},rt),{},{paddingLeft:7})},Oe=b;if(J){var Fe;Array.isArray(b)?Fe=J.filter(rt=>b.includes(rt.value)):Fe=J.filter(rt=>rt.value===b)[0],Oe=Fe}ae&&(S?Array.isArray(b)&&b.length&&(Oe=b):Oe=[b]);var qe;return ae?qe=K?v.Z:s.Z:qe=K?d.Z:l.ZP,r().createElement(T.ZC,{width:"100%","data-testid":W,innerRef:_e},re&&r().createElement(H,null,re),r().createElement(qe,j({},q,{ref:Z,value:Oe,isOptionDisabled:rt=>!!rt.isDisabled,isMulti:!!S,isSearchable:!!ce,isClearable:pe||!!S,isDisabled:!!ne,cacheOptions:!!L,styles:je,options:ae?[]:J,components:{IndicatorSeparator:U,DropdownIndicator:X,Option:k,ClearIndicator:ee,MultiValueRemove:I},className:"react-select-container ".concat(le),classNamePrefix:"react-select",placeholder:Q||"Select...",onKeyDown:rt=>{var Ye,Se,Ee=(Ye=Z.current)===null||Ye===void 0?void 0:Ye.controlRef,ze=Ee==null||(Se=Ee.classList)===null||Se===void 0?void 0:Se.contains("react-select__control--menu-is-open");if(ze){rt.key==="Escape"&&(Z.current.inputRef.blur(),Z.current.inputRef.focus());var Pe=rt.key==="ArrowUp",Ue=rt.key==="ArrowDown";if(Pe||Ue){var et=Z.current.state.focusedOption.label,at=J.findIndex(ot=>ot.label===et),bt=_e.current.querySelector(".react-select__menu-list"),xt=at+(Pe?-1:1);xt<0?xt=J.length-1:xt>J.length-1&&(xt=0);var Dt=bt.children[xt];Dt&&ie(bt,Dt)}}else if(rt.key==="Enter"){var jt,Zt,tt=new KeyboardEvent("keydown",{bubbles:!0,key:" "});(jt=Z.current)===null||jt===void 0||(Zt=jt.inputRef)===null||Zt===void 0||Zt.dispatchEvent(tt),rt.preventDefault()}}})))};z.propTypes={disabled:o().bool,multi:o().bool,searchable:o().bool,clearable:o().bool,creatable:o().bool,cache:o().bool,options:o().array,value:o().any,async:o().bool,onChange:o().func,testId:o().string,placeholder:o().node,label:o().node,theme:o().object.isRequired,className:o().string.isRequired,borderColor:o().string};var x=(0,g.createComponent)(oe=>{var{theme:ae,disabled:S}=oe;return{"& input":{height:"auto",margin:0},"& .react-select__input":{marginLeft:4,fontSize:ae.fontSizes[2],marginBottom:3},"& .react-select__single-value + div > .react-select__input":{marginLeft:0},"& .react-select__single-value":{color:ae.colors.gray[1]},"& .react-select__single-value + div":{marginTop:0,marginBottom:0},"& .react-select__single-value [data-selected-hidden]":{display:"none"},"& .react-select__placeholder + div":{marginTop:0,marginBottom:0},"& .react-select__placeholder":{marginLeft:8,fontSize:ae.fontSizes[2]},"& .react-select__value-container.react-select__value-container--is-multi":{padding:"0px 0px 3px 0px"},"& .react-select__multi-value":{borderRadius:0,margin:"4px 0px 0px 4px",border:"1px solid ".concat(ae.colors.gray[5])},"& .react-select__multi-value__label":{borderRadius:0,fontSize:ae.fontSizes[2],color:ae.colors.gray[1]},"& .react-select__multi-value__remove":{width:19,padding:"0px 6px",borderRadius:0},"& .react-select__multi-value__remove:hover":{backgroundColor:ae.colors.gray[8],cursor:"pointer"},"& .react-select__control":{boxShadow:"none"},"& .react-select__control:hover":{borderColor:ae.colors.focus},"& .react-select__control:focus-within":{borderColor:ae.colors.focus,boxShadow:(0,h.Az)({disabled:S})},"& .react-select__clear-indicator":{width:26},"& .react-select__clear-indicator:hover":{cursor:"pointer"},"& .react-select__menu":{borderRadius:ae.borderRadius,boxShadow:"none",overflow:"hidden",marginTop:"7px"},"& .react-select__menu-list":{padding:0},"& .react-select__menu-list > div":{textAlign:"left"},"& .react-select__group":{backgroundColor:ae.colors.gray[9]}}},(0,g.withTheme)(z)),G=x},"../node_modules/@cloudflare/component-forms/node_modules/@cloudflare/util-responsive/es/index.js":function(be,xe,f){"use strict";f.d(xe,{Gc:function(){return ie}});var t=f("webpack/sharing/consume/default/react/react");function r(z){return typeof z=="object"&&z!==null&&"current"in z}function a(z){return typeof z=="object"&&z!==null&&"addEventListener"in z&&"removeEventListener"in z}function o(z,x){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{target:oe=document}=G,{passive:ae=!1,capture:S=!1}=G,K=(0,t.useMemo)(()=>({target:oe,passive:ae,capture:S}),[oe,ae,S]),ce=(0,t.useRef)(x);(0,t.useEffect)(()=>{ce.current=x},[x]),(0,t.useEffect)(()=>{r(oe)&&(oe=oe.current)}),(0,t.useEffect)(()=>{var pe=ne=>ce.current(ne);return a(oe)&&oe.addEventListener(z,pe,K),()=>{a(oe)&&oe.removeEventListener(z,pe,K)}},[z,oe,K])}var l=null,s=z=>{var{event:x,listener:G,target:oe,passive:ae,capture:S}=z;return useEventListener(x,G,{target:oe,passive:ae,capture:S}),null},v=null;function d(z){return z===""?"":"".concat(z[0].toUpperCase()).concat(z.slice(1))}var g=typeof window!="undefined"?/Mac/.test(navigator.platform):!1;function h(z,x){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{keyName:oe,shiftKey:ae=!1,altKey:S=!1,modKey:K=!1}=z,{ctrlKey:ce=!1,metaKey:pe=!1}=z;K&&(ce=!g,pe=g);var{event:ne="keydown",target:L,passive:J,capture:W}=G,he=useCallback(Q=>{Q instanceof KeyboardEvent&&oe.toLowerCase()===Q.key.toLowerCase()&&ae===Q.shiftKey&&S===Q.altKey&&ce===Q.ctrlKey&&pe===Q.metaKey&&(J||Q.preventDefault(),x(Q))},[x,J,oe,ae,S,ce,pe]),le=useMemo(()=>g?[ce&&"\u2303",S&&"\u2325",ae&&"\u21E7",pe&&"\u2318",d(oe)].filter(Boolean).join(""):[ce&&"Ctrl",S&&"Alt",ae&&"Shift",pe&&"\u229E",oe.toUpperCase()].filter(Boolean).join(" + "),[oe,ae,S,ce,pe]);return useEventListener(ne,he,{target:L,passive:J,capture:W}),le}var T=null,w=z=>{var{keyName:x,shiftKey:G,altKey:oe,ctrlKey:ae,metaKey:S,modKey:K,listener:ce,event:pe,target:ne,passive:L,capture:J,children:W}=z,he={keyName:x,shiftKey:G,altKey:oe,ctrlKey:ae,metaKey:S,modKey:K},le={event:pe,target:ne,passive:L,capture:J},Q=useKeyListener(he,ce,le);return typeof W=="function"?W(Q):W||null},P=null,O=f("../../../../node_modules/@cloudflare/style-const/es/index.js"),N=f("../node_modules/@cloudflare/component-forms/node_modules/prop-types/index.js"),V=f("../../../../node_modules/react-sizeme/dist/react-sizeme.js"),Y=f("../../../../node_modules/@cloudflare/component-box/es/index.js"),U=null;function D(){return D=Object.assign?Object.assign.bind():function(z){for(var x=1;x