PageSourceSearch

https://app.termly.io/dashboard/4149-4165df.js

js termly.io collected 2026-09-24 07:35:32 UTC 4,969 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_termly_web_dashboard=self.webpackChunk_termly_web_dashboard||[]).push([[4149],{25294(e,t,o){o.d(t,{A:()=>l});var n=o(84387),a=o(41242);const l=function(e,t){let{endpoint:o,queryKey:l}=e;const s=Array.from([l]).flat(),{data:r={},...c}=(0,n.I)(s,()=>a.A.get(o),t);return{...c,responseData:r?.data||{}}}},38153(e,t,o){o.d(t,{A:()=>D,h:()=>m});var n=o(53241),a=o(26826),l=o.n(a),s=o(14712),r=o.n(s),c=o(71451);function i(e){const{ariaLabel:t,children:o,handleClickOutside:a}=e,{formatMessage:l}=(0,c.A)(),{closedby:s,dialogRef:i,onCancel:f,onClose:p}=function(e){let{handleCancel:t}=e;const o=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{const e=o.current;return e.showModal(),()=>{e.close()}},[]),{closedby:t?"closerequest":"none",dialogRef:o,onCancel:()=>{t&&t()},onClose:()=>{if(t)return;const e=o.current;e&&e.showModal()}}}({handleCancel:a}),h=t?.id&&t?.defaultMessage?l(t,t.values):t,k=(0,n.useCallback)(e=>{a&&(e.stopPropagation(),a())},[a]),C=r()("styles-container-c40d76","t-container");return n.createElement("dialog",{"aria-label":h,className:"styles-root-d5607d",closedby:s,onCancel:f,onClick:k,onClose:p,ref:i},n.createElement("div",{className:"styles-viewport-d423a4"},n.createElement("div",{className:C,onClick:u,onKeyDown:d},o)))}function u(e){e.stopPropagation()}function d(e){e.stopPropagation()}i.propTypes={ariaLabel:l().oneOfType([l().string,l().shape({defaultMessage:l().string.isRequired,id:l().string.isRequired,values:l().shape({})})]),children:l().node,handleClickOutside:l().func};const f=i,p=o.p+"close-icon-b4c3f3.svg",h=(0,o(63510).YK)({ariaLabel:{defaultMessage:"Close modal",id:"modal-content.aria-label"}});function k(e){let{children:t,handleClose:o}=e;const{formatMessage:a}=(0,c.A)();return n.createElement("div",{className:"styles-root-f2cc1c"},function(e){let{formatMessage:t,handleClose:o}=e;if(!o)return null;const a=t(h.ariaLabel);return n.createElement("button",{"aria-label":a,className:"styles-closeButton-ff8bdc",onClick:e=>{e.stopPropagation(),o()},type:"button"},n.createElement("img",{alt:"","aria-hidden":"true",src:p}))}({formatMessage:a,handleClose:o}),t)}k.propTypes={children:l().node.isRequired,handleClose:l().func};const C=k,b=(0,n.createContext)();function m(){return(0,n.useContext)(b)}function g(e){let{children:t}=e;
1const o=(0,n.useRef)(null),[a,l]=(0,n.useState)(!1),[s,r]=(0,n.useState)(!0),[c,i]=(0,n.useState)({ariaLabel:void 0,content:null}),u=(0,n.useCallback)(()=>{l(!1),o.current?.focus(),o.current=null},[]),d=(0,n.useCallback)(()=>{o.current=document.activeElement,l(!0)},[]),p=(0,n.useCallback)(e=>{i(t=>({...t,handleClose:e}))},[]),h=(0,n.useCallback)(function(e){i({ariaLabel:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ariaLabel,content:e})},[]),k=(0,n.useMemo)(()=>({close:u,open:d,setDismissible:r,setHandleClose:p,setModalContent:h}),[u,d,p,h]);return n.createElement(b.Provider,{value:k},t,function(e){let{close:t,isDismissible:o,isOpen:a,modalState:l}=e;if(!a)return null;const s=(()=>{if(o)return()=>{l.handleClose?.(),t()}})();return n.createElement(f,{ariaLabel:l.ariaLabel,handleClickOutside:s},n.createElement(C,{handleClose:s},n.createElement(n.Suspense,{fallback:null},l.content)))}({close:u,isDismissible:s,isOpen:a,modalState:c}))}g.propTypes={children:l().node};const D=g},95543(e,t,o){o.r(t),o.d(t,{default:()=>h});var n=o(53241),a=o(41053),l=o(20797),s=o(80297),r=o(76891),c=o(80835),i=o(42870);const u=(0,o(63510).YK)({title:{id:"dashboard-content-layout.editCookieTitle",defaultMessage:"Edit Cookie"}});var d=o(38153);var f=o(8609),p=o(25294);const h=function(){const[e]=(0,a.ok)(),t=e.get("category"),h=(0,l.Zp)(),{id:k,cookieId:C,reportId:b}=(0,l.g)(),{cookie:m,isLoading:g}=function(e){let{cookieID:t,reportID:o}=e;const n=(0,f.Ri)(o,t),a=function(e){let{cookieID:t,reportID:o}=e;return["use-cookie-query",o,t]}({cookieID:t,reportID:o}),{responseData:l,...s}=(0,p.A)({endpoint:n,queryKey:a});return{...s,cookie:l}}({cookieID:C,reportID:b}),{refetchCookieReport:D}=(0,i.dB)(),y=(0,n.useCallback)(()=>{D(),h(s.A.COOKIE_REPORT(k)+`?category=${t}`)},[t,h,D,k]),I=function(e){let{cookieID:t,cookieName:a,handleDeleteSuccess:l,reportID:s}=e;const r=(0,d.h)();return(0,n.useCallback)(async()=>{const{default:e}=await o.e(476).then(o.bind(o,67695));r.setModalContent(n.createElement(e,{cookieID:t,cookieName:a,handleClose:r.close,handleSuccess:()=>{l(),r.close()},reportID:s})),r.open()},[t,a,l,r,s])}({cookieID:m.id,cookieName:m.name,handleDeleteSuccess:y,reportID:b}),E=(0,n.useCallback)(()=>{h(-1)},[h]);return n.createElement(r.A,{showBackButton:!0,handleBackButtonClick:E,title:u.title},function(e){const{category:t,cookie:o,handleDelete:a,isLoading:l,reportID:s,websiteID:r}=e;return l?null:n.createElement(c.A,{isEditing:!0,showDeleteButton:!0,category:t,cookie:o,handleDelete:a,reportID:s,websiteID:r})}({category:t,cookie:m,handleDelete:I,isLoading:g,reportID:b,websiteID:k}))}}}]);
2//# sourceMappingURL=4149-4165df.js.map

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