SC] limit: 10000 filter: { date_geq: $since, date_lt: $until } ) { dimensions { ts: date } uniq { uniques } } totals: httpRequests1dGroups( limit: 1000 filter: { date_geq: $since, date_lt: $until } ) { uniq { uniques } } zoneTag } } } `,variables:{zoneTags:Nt,since:We,until:Oe}})}).then(Gt=>Gt.json()).then(Gt=>Gt)})}const ht=(0,J.useQueries)(at),bt={data:[],errors:[],isLoading:!0};return ht.forEach((Ot,Nt)=>{var Gt,vn,kt,fn,ln;if(Ot==null||(Gt=Ot.data)===null||Gt===void 0||(vn=Gt.data)===null||vn===void 0||(kt=vn.viewer)===null||kt===void 0||(fn=kt.zones)===null||fn===void 0||fn.forEach(Io=>{bt.data.push({id:Io.zoneTag,byDay:Io.byDay,totals:Io.totals})}),Ot==null||(ln=Ot.data)===null||ln===void 0?void 0:ln.errors){var On;bt.errors.push(Ot==null||(On=Ot.data)===null||On===void 0?void 0:On.errors)}Nt===ht.length-1&&(bt.isLoading=ht[Nt].isLoading)}),bt};var Me=e("../node_modules/@cloudflare/component-link/es/index.js"),X=e("../../../../node_modules/@cloudflare/util-responsive/es/index.js"),q=e("../react/utils/translator.tsx"),Ce=e("../react/pages/security-center/common/hooks/useUpdateAccount.ts");const Ne=({accountId:ye,setActive:ve})=>{const{enableScans:Oe}=(0,Ce.Z)(ye),We=async()=>{const{data:at}=await Oe();ve(at.updateAccount.active)},Ye=(0,E.p4)(P.hI);return t().createElement(g.ZC,{display:(0,X.tq)()?"block":"flex",alignItems:"center"},t().createElement(Me.rU,{onClick:We,color:(0,M.Yc)()?"blue.2":"blue.4",disabled:!Ye,noUnderline:!0},t().createElement(q.cC,{id:"common.enable"})),!Ye&&t().createElement(p.u,{place:"bottom",message:t().createElement(q.cC,{id:"account.home.no_memberships.description"})},t().createElement(g.ZC,{display:"flex",alignItems:"center"},t().createElement(N.J,{type:"info-sign",color:"gray.5",label:"tooltip",ml:1}))))};var ze=e("../../../../node_modules/react-sparklines/build/index.js"),_e=e("../../../../node_modules/@cloudflare/style-container/es/index.js"),De=e("../react/common/utils/formatNumberForAnalytics.ts"),ie=e("../react/pages/zoneless-workers/components/_ui/SkeletonBlock.tsx");const oe=(0,_e.createStyledComponent)(()=>({display:"flex",alignItems:"center","& svg circle":{display:"none"}})),de=(0,_e.createStyledComponent)(({theme:ye})=>({"&:hover, &:visited, &:active, &:link":{textDecoration:"none",color:ye.colors.black}}),i.Link),ge=({zone:ye,data:ve,loading:Oe=!1})=>{var We,Ye,at;const yt=(0,M.Yc)(),ht=(0,X.Gc)(),bt=(0,X.RR)(ht,"tablet"),{t:Ot}=(0,T.useI18n)(),Nt=(0,r.useMemo)(()=>{var ln;return(ln=ve==null?void 0:ve.byDay)!==null&&ln!==void 0?ln:[]},[ve==null?void 0:ve.byDay]),Gt=(We=ve==null||(Ye=ve.totals[0])===null||Ye===void 0||(at=Ye.uniq)===null||at===void 0?void 0:at.uniques)!==null&&We!==void 0?We:0,vn=()=>Nt.length?{stroke:yt?M.rS.colors.categorical[1]:M.rS.colors.blue[6],fill:yt?M.rS.colors.categorical[13]:M.rS.colors.blue[6]}:{stroke:yt?M.rS.colors.categorical[1]:M.rS.colors.blue[6],fill:M.rS.colors.white},kt=(0,De.Z)(Gt),fn=(0,r.useMemo)(()=>{const ln=Nt.length>0?Nt.map(({uniq:On})=>On.uniques):[0,0];return ln.length===1?[ln[0],ln[0]]:ln},[Nt]);return t().createElement(t().Fragment,null,Oe?t().createElement(ie.q,{width:"100%"}):t().createElement(de,{to:`/${ye.account.id}/${encodeURIComponent(ye.name)}`},t().createElement(g.ZC,{tabIndex:0,onClick:()=>f().sendEvent(He,{component:"trafficChart"}),display:"grid",gridTemplateColumns:bt?"85% 15%":"80% 20%",gap:bt?0:1,transition:"opacity 100ms ease-out"},t().createElement(t().Fragment,null,t().createElement(oe,null,t().createElement(ze.Sparklines,{height:20,width:150,data:fn},t().createElement(ze.SparklinesLine,{style:vn()}))),t().createElement(g.Dr,{fontSize:"14px",marginTop:bt?"20%":"0","aria-label":`${kt} ${Ot("common.unique_visitors_30_days_mobile")}`},kt)))))};var ce=e("../react/common/components/AccessCheck/index.ts"),Pe=e("../flags.ts"),Xe=e("../react/common/components/ZonesInsightsTable/ZonePlan.tsx"),lt=e("../../../../node_modules/lodash/isEmpty.js"),Re=e.n(lt),Be=e("../../../../node_modules/redux-grim/dist/redux-grim.es.js"),ot=e("../react/pages/home/domain-registration/registrar.translations.ts"),Ue=e("../react/pages/home/domain-registration/store/index.ts"),ke=e("../react/pages/onboarding/components/guide/actions.ts"),Fe=e("../react/common/actions/notificationsActions.ts"),Dt=e("../react/common/components/billing/PlanChangeModal/index.ts"),Qe=e("../react/common/components/ConfirmModal.tsx"),et=e("../react/common/actions/settingsActions.ts"),ft=e("../react/pages/overview/tracking.ts");const Et="Cloudflare",Pt=({modal:ye,closeModal:ve,zone:Oe,mutateZones:We})=>{const Ye=(0,E.UM)(),at=(0,E.p4)(Ue.Wn.wl.domain),[yt,ht]=(0,r.useState)(""),{actions:{isZoneStarred:bt,starZone:Ot}}=(0,O.yZ)(),Nt=(0,i.useHistory)();return Oe?t().createElement(t().Fragment,null,t().createElement(Dt.Z,{isOpen:ye==="change",onClose:ve,zone:Oe}),t().createElement(Qe.Z,{isOpen:ye==="edit",title:t().createElement(q.cC,{id:"overview.advanced_actions.pause.title",values:{zoneName:Oe.name}}),description:t().createElement(t().Fragment,null,t().createElement(q.cC,{id:"overview.advanced_actions.pause.description",values:{zoneName:Oe.name},applyMarkdown:!0}),t().createElement("br",null),t().createElement(Me.rU,{href:"https://developers.cloudflare.com/fundamentals/get-started/basic-tasks/manage-domains/pause-cloudflare",target:"_"},t().createElement(g.ZC,{display:"flex",alignItems:"end"},t().createElement(g.ZC,{mr:1},t().createElement(q.cC,{id:"overview.advanced_actions.modal.pause.description.link"})),t().createElement(N.J,{label:"external-link",type:"external-link"})))),actionButtonText:(0,q.ZP)("overview.advanced_actions.pause.confirm"),onConfirm:async()=>{await Ye((0,I.Bf)(Oe.id,{paused:!0})),ve()},onCancel:ve}),t().createElement(Qe.Z,{isOpen:ye==="remove",title:t().createElement(q.cC,{id:"overview.advanced_actions.modal.remove_site.title",values:{zoneName:Oe.name}}),actionButtonText:(0,q.ZP)("overview.advanced_actions.modal.remove_site.confirm"),description:t().createElement(t().Fragment,null,t().createElement(q.cC,{id:"overview.advanced_actions.modal.remove_site.description",applyMarkdown:!0,values:{zoneName:Oe.name}}),t().createElement("br",null),t().createElement(Me.rU,{href:"https://developers.cloudflare.com/fundamentals/get-started/basic-tasks/manage-domains/remove-domain",target:"_"},t().createElement(g.ZC,{display:"flex",alignItems:"end"},t().createElement(g.ZC,{mr:1},t().createElement(q.cC,{id:"overview.advanced_actions.modal.remove_site.description.link"})),t().createElement(N.J,{label:"external-link",type:"external-link"})))),onConfirm:async()=>{try{if((at==null?void 0:at.registrar)===Et&&!Re()(at==null?void 0:at.contactIds.registrant)){Ye((0,Fe.error)((0,q.ZP)(ot.keys.cannot_delete_zone_cloudflare_registrar))),ve();return}bt(Oe.name,Oe.account.id)&&Ot(Oe.name,Oe.account.id),await Ye((0,ke.bf)(Oe.id)),await Ye((0,I.vp)(Oe.id)),Ye((0,Be.Ub)({includes:["zoneSubscription"]})),ve(),Nt.push((0,x.Nw)("/",Oe.account.id))}catch{Nt.push((0,x.Nw)("/",Oe.account.id))}},onCancel:ve}),t().createElement(Qe.Z,{isOpen:ye==="development_mode_enable",title:t().createElement(q.cC,{id:"overview.modal.development_mode.question"}),description:t().createElement(q.cC,{id:"overview.modal.dev_mode.description"}),onConfirm:async()=>{await Ye((0,et.o1)(Oe.id,"development_mode",{value:"on"})),f().sendEvent("Dev Mode change confirm",{category:ft.CJ,value:"on"}),We(),ht("development_mode_enable")},onCancel:ve}),t().createElement(Qe.Z,{isOpen:ye==="development_mode_disable",title:t().createElement(q.cC,{id:"overview.quick_actions.dev_mode"}),description:t().createElement(q.cC,{Components:[v.dL],componentProps:[{to:"https://developers.cloudflare.com/cache/reference/development-mode/",icon:14,mt:3}],id:"overview.modal.development_mode.disable.content",applyMarkdown:!0}),actionButtonText:t().createElement(q.cC,{id:"overview.modal.development_mode.disable.quick_actions.title"}),onConfirm:async()=>{await Ye((0,et.o1)(Oe.id,"development_mode",{value:"off"})),f().sendEvent("Dev Mode change confirm",{category:ft.CJ,value:"off"}),We(),ht("development_mode_enable")},onCancel:ve,hideCancelButton:!0}),t().createElement(Qe.Z,{isOpen:ye==="unpause",title:t().createElement(q.cC,{id:"overview.modal.paused.title"}),description:t().createElement(q.cC,{Components:[v.dL],values:{zoneName:Oe.name},componentProps:[{to:"https://developers.cloudflare.com/fundamentals/setup/manage-domains/pause-cloudflare/",icon:14,mt:3}],id:"overview.modal.paused.content",applyMarkdown:!0}),actionButtonText:t().createElement(q.cC,{id:"overview.modal.paused.action_button"}),onConfirm:async()=>{await Ye((0,I.Bf)(Oe.id,{paused:!1}))},onCancel:ve,hideCancelButton:!0}),t().createElement(Qe.Z,{isOpen:yt==="development_mode_enable",title:t().createElement(q.cC,{id:"overview.modal.development_mode_active_confirmation.title"}),description:t().createElement(q.cC,{id:"overview.modal.development_mode_active_confirmation.description",values:{zoneName:Oe.name},applyMarkdown:!0}),onConfirm:()=>{},onCancel:()=>{ht(""),ve()},cancelButtonText:"Close",hideActionButton:!0})):null};var Zt=e("../react/common/components/QuickActionsDisabledOption.tsx"),k=e("../react/common/hooks/useId.tsx"),ue=e("../react/app/components/Tooltip.tsx");const be=(0,_e.createStyledComponent)(()=>({display:"flex",alignItems:"center",gap:1,color:"newGray.0"})),Ge=({label:ye,tooltip:ve})=>{const Oe=`tooltip-${(0,k.M)()}`;return t().createElement(be,null,ye,t().createElement(g.ZC,{display:"flex",alignItems:"center","data-tooltip-id":Oe},t().createElement(N.J,{type:"info-sign",label:"tooltip"}),t().createElement(ue.u,{id:Oe,place:"top-start"},ve)))};var Ae=e("../../../../node_modules/@cloudflare/component-label/es/index.js");const le=(0,_e.createStyledComponent)(()=>({display:"flex",justifyContent:(0,X.tq)()?"flex-end":"flex-start",textDecoration:"none",":hover":{textDecoration:"none","& div :first-child":{textDecoration:"underline"}}}),Me.rU),rt=(0,_e.createStyledComponent)(()=>({display:"flex",justifyContent:"space-evenly",width:"50px"}),Ae._),_t=({accountId:ye,zone:ve,scores:Oe,loading:We,error:Ye})=>{const at=(0,M.Yc)();if(We)return t().createElement(ie.q,{width:"100%"});if(ve.status==="active"){if(Ye)return t().createElement(q.cC,{id:"common.fetch.error"});const yt=(Oe==null?void 0:Oe.critical)||0,ht=Object.keys(Oe||{}).reduce((Ot,Nt)=>Ot+(Oe==null?void 0:Oe[Nt])||0,Number(0)),bt=`tooltip-id-total-${ht}-critical-${yt}`;return t().createElement(le,{href:`/${ye}/security-center?subject=${ve.name}`,onClick:()=>f().sendEvent(He,{component:"securityInsights"}),tabIndex:0},t().createElement(ue.u,{id:bt},t().createElement(q.cC,{id:"common.total_insights",smartCount:ht}),yt>0&&t().createElement(q.cC,{id:"common.critical_insights",values:{count:yt}})),t().createElement(g.ZC,{"data-tooltip-id":bt,display:"flex",alignItems:"center",color:at?"blue.2":"blue.4"},t().createElement(g.Dr,null,(0,De.Z)(ht)),yt>0&&t().createElement(rt,{hue:"red",ml:2,px:2,py:1},t().createElement(N.J,{label:(0,q.ZP)("common.critical"),type:"exclamation-sign",color:at?"red.8":"red.3"}),(0,De.Z)(yt))))}return ve.status==="initializing"?t().createElement(d.x,{color:at?"newGray.3":"newGray.5"},t().createElement(q.cC,{id:"common.pending_setup"})):t().createElement(d.x,{color:at?"newGray.3":"newGray.5"},t().createElement(q.cC,{id:"common.no_data"}))};var en=e("../react/common/components/ZonesInsightsTable/ZoneTitle.tsx"),un=e("../react/common/components/ZoneSelector/components/StatusIcon.tsx");const sn=28,pn=1e3*60*60*24,ee=ye=>["active","pending","initializing"].includes(ye),Le=ye=>Math.round(sn-(new Date().getTime()-new Date(ye).getTime())/pn).toFixed(0);function Ve(ye){for(var ve=1;ve({fontSize:ye.fontSizes[2]}),g.ZC),Nn=(0,_e.createStyledComponent)(({theme:ye})=>({fontSize:ye.fontSizes[2],textDecoration:"underline",textDecorationColor:"black",textUnderlineOffset:"4px",":hover":{textDecorationColor:"black",cursor:"pointer"}}),g.Dr),yn=(0,_e.createStyledComponent)(({theme:ye,status:ve})=>({fontSize:ye.fontSizes[2],textDecorationColor:["pending","deactivated"].includes(ve)?ye.colors.red[5]:"black",":hover":{textDecorationColor:["pending","deactivated"].includes(ve)?ye.colors.red[4]:"black"}}),Me.rU),jn=({zone:ye,onClick:ve})=>{const{t:Oe}=(0,T.useI18n)(),We=Le(ye.created_on),Ye=()=>{if(ye.development_mode>0)return Oe("zone.status.development_mode.tooltip",{minutes:Math.floor(ye.development_mode/60)});if(ye.paused)return Oe("zone.status.paused.tooltip");switch(ye.status){case"active":return Oe("zone.status.active.tooltip");case"pending":return ye.type==="partial"?Oe("zone.status.pending_partial.tooltip"):ye.plan.legacy_id==="free"?Oe("zone.status.pending_free.tooltip",{daysUntilDeletion:We,daysText:`day${Number(We)>1?"s":""}`}):Oe("zone.status.pending_paid.tooltip");case"initializing":return Oe("zone.status.initializing.tooltip");default:return Oe("zone.status.common.tooltip")}},at=(0,M.Yc)(),yt=ee(ye.status)?p.u:t().Fragment,ht={message:Ye(),buttonProps:{cursor:"default"}},bt=Gt=>{if(Gt.development_mode>0||Gt.paused)return"black";switch(Gt.status){case"active":return"black";case"pending":return at?"red.3":"red.5";case"deactivated":return at?"red.3":"red.5";default:return"black"}},Ot=Gt=>Gt.onClick?t().createElement(Nn,Gt):ye.status==="active"?t().createElement(Tn,Gt):t().createElement(yn,Vt({},Gt,{status:ye.status})),Nt=ve?{}:{href:`/${ye.account.id}/${encodeURIComponent(ye.name)}`};return t().createElement(yt,ht,t().createElement(Ot,Vt({},Nt,{onClick:ve}),t().createElement(g.ZC,{display:"flex",alignItems:"center",gap:1},t().createElement(g.ZC,{display:"flex",alignItems:"center",flexShrink:0},t().createElement(un.Z,{label:Oe((0,u.ou)(ye)),status:ye.development_mode>0?"development_mode":ye.paused?"paused":ye.status})),t().createElement(g.Dr,{color:bt(ye),textAlign:"left",style:{textWrap:"wrap",textDecorationColor:"red.4"}},Oe((0,u.ou)(Ve({},ye)))))))},Yn=({children:ye})=>{const ve=(0,X.Gc)(),Oe=(0,X.RR)(ve,"tablet");return t().createElement(g.ZC,{textAlign:"left",display:"flex",height:"100%",alignItems:"center",justifyContent:Oe?"flex-end":"normal"},ye)},Ln=({zone:ye,onClick:ve})=>t().createElement(Yn,null,t().createElement(jn,{zone:ye,onClick:ve||(()=>{})}));function Sn(ye){for(var ve=1;ve{const ve=(0,x.e1)(),Oe=ye.reduce((bt,Ot)=>(bt.append("subject",encodeURIComponent(Ot.name)),bt),new URLSearchParams({group_by_domain:"true"})),We=async bt=>{if(!(ye==null?void 0:ye.length))return{result:[],messages:[],success:!0,errors:[]};const Ot=await fetch(bt);if(!Ot.ok)throw new Error(`An error occurred while fetching attack-surface-report: ${Ot.status}`);return Ot.json()},Ye=`/api/v4/accounts/${ve}/intel/attack-surface-report/issues/severity?${Oe.toString()}`,{data:at,isLoading:yt,error:ht}=(0,Y.ZP)(Ye,We,{revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1});return Sn({},at,{isLoading:yt,error:ht})};var Gn=e("../react/common/components/ClickToCopyMenuOption/ClickToCopyMenuOption.tsx");function wn(){return wn=Object.assign?Object.assign.bind():function(ye){for(var ve=1;ve{var ve;const{handleChangePaginationState:Oe,handleChangeToolbarState:We,paginationState:Ye,resetPagination:at,searchParams:yt,toolbarState:ht,sortState:bt,handleChangeSortState:Ot}=(0,j.z9)(Mt),Nt=(0,i.useLocation)(),Gt=(0,O.yZ)(),vn=(0,E.UM)(),kt=(0,E.ZS)(),fn=(0,P.D0)(kt),[ln,On]=(0,se.R)("show-starred-zones",{}),Io=!!(ye&&ln[ye]),[jo,Tr]=(0,r.useState)(new URLSearchParams(Nt.search).has(tt)||Io),Lr=(0,S.Z)("dx-account-zone-selector-table-view-v2-security")&&(0,P.hI)(kt),[ko,ir]=(0,r.useState)(""),lr=(0,E.ZS)(),Bo=(0,D.dd)(lr),Fn=(0,r.useMemo)(()=>Gt.favorites.filter(ct=>ct.type!=="zone"?!1:fn?ct.accountId===fn.id:!0),[Gt,fn]),oa=(0,r.useCallback)((ct,rn,Hn,To)=>{var $o,Ho,Ko;const Kn=rn.get(st),Yr=rn.get(je),gr=rn.get(we);let pr={page:Hn.page,perPage:Hn.perPage,order:($o=Yr)!==null&&$o!==void 0?$o:To.name,direction:(Ho=gr)!==null&&Ho!==void 0?Ho:To.direction};if(jo){const Pr=mo=>mo.map(Vn=>Vn.name).join(",")||" ";if(Kn){const mo=Fn.filter(({name:ca})=>ca.toLowerCase().includes(Kn.toLowerCase())),Vn=Pr(mo);return hn({},pr,{name:Vn})}const Po=Pr(Fn);return hn({},pr,{page:1,name:Po})}return hn({},pr,{name:(Ko=Kn)!==null&&Ko!==void 0?Ko:ct.search},!!Kn&&{nameFilter:"contains"})},[Fn,jo]),{isLoading:Br,zones:Wn,metadata:Wo,error:kr,mutate:Qo}=(0,b.HT)({accountId:ye,options:oa(ht,yt,Ye,bt)}),$n=Ee(Wn),{Table:cr,TextCell:Oo,TitleCell:ra,Pagination:Wr,MenuCell:aa}=(0,m.hC)(Wn),Nr=(0,E.p4)(l.yD),{active:ur,setActive:sa,loading:Un}=(0,te.Z)(ye),[ms,Yo]=(0,r.useState)(""),[gs,Go]=(0,r.useState)(null),{loading:ja}=G(ye),{result:ia,isLoading:Qr,error:ps}=qn(Wn||[]),Oa=(0,r.useMemo)(()=>ja&&Un,[ja,Un]),{members:Sr}=K(Wn),fs=(0,ce.xk)("zone"),Fo=(0,C.D)(),bn=(0,i.useHistory)(),{t:Jt}=(0,T.useI18n)(),Ms=(0,i.useRouteMatch)("/zones"),br=!!fn&&!Ms,Es=(0,Pe.QY)(kt),dr=((ve=(0,U.G)(kt))===null||ve===void 0?void 0:ve.isLocked)||!1,Ta=!fs.create||dr||Es,La=(0,M.Yc)(),la=new URLSearchParams(Nt.search),Ar=yt.get(st),mr=Lt({hasAccountColumn:!br,showSecurityInsightsColumn:Boolean(Lr)}),Na=async ct=>{ir(ct.id),await Gt.actions.starZone(ct.name,ct.account.id),ir("")},ys=(0,r.useCallback)(ct=>{at(),Ot(ct);const rn=new URLSearchParams(Nt.search);rn.set(je,ct.name),rn.set(we,ct.direction),bn.replace({pathname:bn.location.pathname,search:`?${rn.toString()}`})},[Ot,bn,Nt.search,at]),hs=(0,r.useCallback)(ct=>{const rn=new URLSearchParams(Nt.search);ct?rn.set(st,ct):rn.delete(st),bn.replace({pathname:bn.location.pathname,search:`?${rn.toString()}`})},[bn,Nt.search]),Mi=(0,r.useCallback)(()=>!Wn||(Wn==null?void 0:Wn.length)<=0?Ar?"search":kr?"error":"default":!1,[kr,Ar,Wn]),Ao=ct=>{f().sendEvent(He,{component:"menu",subcomponent:ct})},vs=(0,r.useCallback)(ct=>{var rn,Hn,To,$o,Ho,Ko;const Kn=Sr==null?void 0:Sr.find(Vo=>Vo.account.id===ct.account.id),Yr=Boolean(Kn==null||(rn=Kn.permissions)===null||rn===void 0||(Hn=rn.subscription)===null||Hn===void 0?void 0:Hn.edit),gr=Boolean(Kn==null||(To=Kn.permissions)===null||To===void 0||($o=To.zone_settings)===null||$o===void 0?void 0:$o.edit),pr=Boolean(Kn==null||(Ho=Kn.permissions)===null||Ho===void 0||(Ko=Ho.zone)===null||Ko===void 0?void 0:Ko.edit),Pr=Gt.favorites.find(Vo=>Vo.name===ct.name),Po=ct.development_mode>0,mo=ct.paused,Vn=ct.status==="initializing",ca=[{label:t().createElement(g.ZC,{color:"newGray.1"},t().createElement(T.Trans,{id:"zone_selector.quick_actions.configure_dns"})),to:`/${ct.account.id}/${encodeURIComponent(ct.name)}/dns`,onClick:()=>Ao("dns")},{label:t().createElement(g.ZC,{color:"newGray.1"},t().createElement(T.Trans,{id:"zone_selector.quick_actions.configure_ssl_tls"})),to:`/${ct.account.id}/${encodeURIComponent(ct.name)}/ssl-tls`,onClick:()=>Ao("ssl")},{label:t().createElement(Zt.k,{label:Jt("zone_selector.quick_actions.configure_caching"),disabled:Vn,disabledTooltip:Jt("error.setup.caching")}),to:`/${ct.account.id}/${encodeURIComponent(ct.name)}/caching/configuration`,disabled:Vn,onClick:()=>Ao("caching")},{label:t().createElement(Zt.k,{label:Jt("zone_selector.quick_actions.configure_web_application_firewall"),disabled:Vn,disabledTooltip:Jt("error.setup.waf")}),to:`/${ct.account.id}/${encodeURIComponent(ct.name)}/security/waf`,disabled:Vn,onClick:()=>Ao("waf")},{label:t().createElement(Zt.k,{label:Jt("zone_selector.quick_actions.configure_rules"),disabled:Vn,disabledTooltip:Jt("error.setup.rules"),activeTooltip:Jt("zone_selector.quick_actions.configure_rules_tooltip")}),to:`/${ct.account.id}/${encodeURIComponent(ct.name)}/rules/overview`,disabled:Vn,separator:!0,onClick:()=>Ao("rules")},Pr?{label:t().createElement(Ge,{label:Jt("zone_selector.quick_actions.unstar_domain"),tooltip:Jt("zone_selector.star_zone_under_max_limit.tooltip_message",{max:O.Wl})}),onClick:()=>Na(ct),disabled:ko===ct.id}:void 0,Pr?void 0:{label:Fn.length>=O.Wl||ko===ct.id?t().createElement(Zt.k,{label:Jt("zone_selector.quick_actions.star_domain"),disabled:!0,disabledTooltip:Jt("common.star_zone_max_limit_hit.tooltip_message",{maxStarZones:10})}):t().createElement(Ge,{label:Jt("zone_selector.quick_actions.star_domain"),tooltip:Jt("zone_selector.star_zone_under_max_limit.tooltip_message",{max:O.Wl})}),onClick:()=>Na(ct),disabled:Fn.length>=O.Wl||ko===ct.id},{label:t().createElement(Gn.w,{value:ct.id,displayText:Jt("zone_selector.quick_actions.copy_zone_id"),copiedDisplayText:Jt("zone_selector.quick_actions.copied_zone_id"),onClick:()=>Ao("zoneIdCopy")})}],Ds=[{label:t().createElement(Zt.k,{label:Jt("domain_overview.tooltip.change_plan"),disabled:!Yr,disabledTooltip:Jt("error.permission.account.action")}),disabled:!Yr,separator:!0,onClick:()=>{var Vo;Ao("planChange"),(0,V.hO)({plan:ct==null||(Vo=ct.plan)===null||Vo===void 0?void 0:Vo.legacy_id,zoneName:ct==null?void 0:ct.name,zone