PageSourceSearch

https://app.cookieyes.com/assets/types-of-cookies.lazy-BMs5et3F.js

js cookieyes.com collected 2026-10-01 07:37:55 UTC 10,934 bytes, 6 lines download raw bytes

1import{Y as K,j as e,a0 as D,u as j,E as h,e as I,hR as d,a2 as Q,a3 as X,a5 as $,aw as q,ax as J,a as b,eM as ee,d as te,r as u,hX as se,hY as oe,aj as ae,a9 as ie,aa as ne,ab as re,ad as ce,h$ as le,aL as de,ak as me,bQ as xe,b4 as L,au as pe,a1 as ue,i0 as he,T as ye,bm as Ce,aP as S,e4 as ke,bl as fe}from"./index-6AHMKm1b.js";import{I as ge}from"./InputField-CDZ6eLf2.js";import{F as be}from"./FooterSection-BS5hKAI0.js";import{H as je}from"./HintArea-C4Og0Wp2.js";import{S as Ne}from"./search-CZvQtF9S.js";/**
2 * @license lucide-react v0.503.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 Te=[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]],O=K("move-right",Te),ve=({width:s=32,height:i=32,svgColor:n="currentColor",className:c})=>{const r=D[n]||n;return e.jsx("svg",{width:s,height:i,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:c,children:e.jsx("path",{d:"M10.6672 17.3332V17.3465M16.0005 22.6665V22.6799M16.0005 15.9999V16.0132M21.3339 18.6665V18.6799M14.6672 10.6665V10.6799M17.5312 4.63453L21.0872 6.10653C20.3824 7.03376 20.0006 8.16619 19.9999 9.33085C19.9993 10.4955 20.3799 11.6284 21.0836 12.5564C21.7873 13.4844 22.7755 14.1566 23.8971 14.4702C25.0187 14.7838 26.2122 14.7216 27.2952 14.2932L27.3659 14.4692C27.7718 15.4493 27.7718 16.5505 27.3659 17.5305C26.7036 18.5794 26.2485 19.4025 26.0005 19.9999C25.749 20.6079 25.4556 21.5928 25.1205 22.9545C24.7143 23.9345 23.9354 24.7129 22.9552 25.1185C21.5579 25.4688 20.573 25.7625 20.0005 25.9999C19.3676 26.2621 18.5445 26.7172 17.5312 27.3652C16.5511 27.7711 15.4499 27.7711 14.4699 27.3652C13.4005 26.695 12.5774 26.2399 12.0005 25.9999C11.3721 25.7403 10.3872 25.447 9.04587 25.1199C8.06595 24.7136 7.28754 23.9347 6.88187 22.9545C6.52898 21.5528 6.2352 20.5679 6.00054 19.9999C5.73565 19.3616 5.28054 18.5385 4.6352 17.5305C4.22926 16.5505 4.22926 15.4493 4.6352 14.4692C5.27431 13.4772 5.72943 12.6541 6.00054 11.9999C6.22898 11.4488 6.52231 10.4639 6.88054 9.0452C7.28681 8.06528 8.0657 7.28687 9.04587 6.8812C10.421 6.53987 11.4059 6.24609 12.0005 5.99987C12.6112 5.74653 13.4343 5.29142 14.4699 4.63453C15.4499 4.22859 16.5511 4.22859 17.5312 4.63453Z",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function we({onScanAgain:s}){const{t:i}=j();return e.jsxs("div",{className:"flex flex-col items-center gap-6 border-2 border-dashed border-border rounded-lg px-12.5 py-10.5","data-testid":"cookie-list-empty-state",children:[e.jsx("div",{className:"flex items-center justify-center w-20 h-20 rounded-full bg-primary-lightest","data-testid":"cookie-list-empty-state-icon-badge","aria-hidden":"true",children:e.jsx(ve,{width:32,height:32,svgColor:"secondary-dark",className:"shrink-0"})}),e.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[e.jsx("h3",{className:"text-xl font-medium text-dark","data-testid":"cookie-list-empty-state-heading",children:i("cookiePolicy.typesOfCookies.emptyState.title")}),e.jsx("p",{className:"text-md font-normal text-secondary-dark text-center max-w-md","data-testid":"cookie-list-empty-state-description",children:i("cookiePolicy.typesOfCookies.emptyState.description")})]}),e.jsxs(h,{variant:"primary",className:"gap-1.5",onClick:s,"data-testid":"cookie-list-empty-state-scan-again-button",children:[e.jsx(Ne,{className:"w-5 h-5",strokeWidth:2}),i("cookiePolicy.typesOfCookies.scanAgain")]})]})}const Pe=({width:s=16,height:i=16,svgColor:n="currentColor",className:c})=>{const r=D[n]||n;return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:i,viewBox:"0 0 16 16",fill:"none",className:c,children:[e.jsx("circle",{cx:"8",cy:"8",r:"8",fill:r,fillOpacity:.35}),e.jsx("path",{d:"M8.46667 6.23496C8.52889 6.75524 8.59111 7.29231 8.65333 7.84615C8.70667 8.40839 8.75111 8.96224 8.78667 9.50769C8.82222 10.0615 8.84 10.586 8.84 11.0811L8.84 12L7.10667 12L7.10667 11.0811C7.10667 10.5692 7.12445 10.0322 7.16 9.46993C7.18667 8.90769 7.23111 8.34965 7.29333 7.7958C7.34667 7.24196 7.40889 6.72168 7.48 6.23496L8.46667 6.23496ZM8 3C8.32 3 8.56889 3.08811 8.74667 3.26434C8.91556 3.44056 9 3.68811 9 4.00699C9 4.3007 8.91111 4.53986 8.73333 4.72447C8.54667 4.91748 8.30222 5.01399 8 5.01399C7.68 5.01399 7.43556 4.92587 7.26667 4.74965C7.08889 4.58182 7 4.33427 7 4.00699C7 3.71329 7.
609333 3.46993 7.28 3.27692C7.45778 3.09231 7.69778 3 8 3Z",fill:r})]})};function Le({ExitIntentPopupContent:s,onOpenChange:i}){const n=I(),c=d(y=>y.setIsContentEdited),r=()=>{c(!1),n({to:"/manage-cookies"})},p=()=>{i(!1)};return e.jsxs(Q,{children:[e.jsx(X,{children:e.jsx($,{className:"font-body",children:s.title})}),e.jsx(q,{className:"my-6 text-md",children:s.description}),e.jsxs(J,{className:"flex justify-end gap-2",children:[e.jsx(h,{variant:"outline-secondary-light",className:"font-semibold",onClick:r,children:s.discardButtonText}),e.jsx(h,{variant:"primary",className:"font-semibold",onClick:p,children:s.stayOnPageButtonText})]})]})}function Se({websiteCategories:s}){const{t:i}=j(),n=d(o=>o.defaultLanguage),c=b(o=>o.websiteDefaultLanguage),r=o=>{const a=c();return o[n]?n:o[a]?a:n},p=o=>o?ee.sanitize(o):"",g=(o=>(o==null?void 0:o.filter(a=>a.cookies&&a.cookies.length>0))??[])(s);return e.jsx("div",{className:"mb-16",children:g.map(o=>{var a;return e.jsxs("div",{children:[e.jsx("p",{className:"text-secondary-dark text-md font-semibold mb-2",children:o.name[r(o.name)]}),e.jsx("div",{"data-testid":"category-description",className:"text-secondary-dark text-md mb-2",dangerouslySetInnerHTML:{__html:p(o.description[r(o.description)])}}),e.jsxs("table",{className:"w-full mb-4 border border-audit-table-border rounded-md",children:[e.jsx("thead",{className:"bg-audit-table-header",children:e.jsxs("tr",{className:"text-secondary-dark text-md text-semibold border-b border-audit-table-border",children:[e.jsx("th",{className:"text-left px-4 py-3 border-r border-audit-table-border",children:i("cookiePolicy.typesOfCookies.auditTable.tableHeader.cookie")}),e.jsx("th",{className:"text-left px-4 py-3 border-r border-audit-table-border",children:i("cookiePolicy.typesOfCookies.auditTable.tableHeader.duration")}),e.jsx("th",{className:"text-left px-4 py-3 border-r border-audit-table-border",children:i("cookiePolicy.typesOfCookies.auditTable.tableHeader.description")})]})}),e.jsx("tbody",{children:(a=o.cookies)==null?void 0:a.map(l=>e.jsxs("tr",{className:"border-b border-audit-table-border even:bg-audit-table-even-row odd:bg-white",children:[e.jsx("td",{className:"text-left px-4 py-3 border-r border-audit-table-border text-secondary-dark text-md",children:l.cookie_id}),e.jsx("td",{className:"text-left px-4 py-3 border-r border-audit-table-border text-secondary-dark text-md",children:l.duration[r(l.duration)]}),e.jsx("td",{className:"text-left px-4 py-3 border-r border-audit-table-border text-secondary-dark text-md",children:l.description[r(l.description)]})]},l.id))})]})]},o.id)})})}const Ae=te("/cookie-policy/types-of-cookies")({component:Oe});function Oe(){const{t:s}=j(),i=I(),[n,c]=u.useState(!1),[r,p]=u.useState(!1),y=b(t=>{var x;return(x=t.website)==null?void 0:x.id}),g=b(t=>t.websiteLastSuccessfulScanDate),o=d(t=>t.defaultLanguage),a=d(t=>t.getContent(o)),l=d(t=>t.updateContentField),N=d(t=>t.setIsContentEdited),C=d(t=>t.setHasUnsavedChanges),_=d(t=>t.hasUnsavedChanges),M=d(t=>t.getTemplateType()),{mutate:E}=se(),{mutate:A}=oe(),{data:k,isLoading:T}=ae(y??0),v=k==null?void 0:k.some(t=>t.cookies&&t.cookies.length>0),m=g(),w=!T&&v===!1&&!!m,f=u.useCallback(t=>{const x=!(t!=null&&t.trim());p(x)},[]),B=u.useCallback(t=>{l(o,"types_of_cookies_title",t),N(!0),C(!0),f(t)},[o,l,N,C,f]);u.useEffect(()=>{f((a==null?void 0:a.types_of_cookies_title)||"")},[a==null?void 0:a.types_of_cookies_title,f]);const H={title:s("cookiePolicy.exitIntentPopup.title"),description:s("cookiePolicy.exitIntentPopup.description"),discardButtonText:s("cookiePolicy.exitIntentPopup.discardButtonText"),stayOnPageButtonText:s("cookiePolicy.exitIntentPopup.stayOnPageButtonText")},F=()=>m?e.jsx(L,{className:"w-4 h-4 cursor-pointer"}):e.jsx(Pe,{height:16,width:16,svgColor:"primary"}),W=()=>m?e.jsx(L,{height:20,width:20,svgColor:"primary-dark"}):e.jsx(pe,{className:"w-5 h-5 text-warning-dark",strokeWidth:1.8}),U=()=>m?e.jsx(ye,{i18nKey:"cookiePolicy.typesOfCookies.lastScanDate",components:{bold:e.jsx("span",{className:"font-semibold"})},values:{date:Ce(new Date(m),"UTC","MMMM dd, yyyy HH:mm:ss ('UTC')")}}):s("cookiePolicy.typesOfCookies.noCookiesToDisplay"),V=()=>s(m?"cookiePolicy.typesOfCookies.scanAgain":"cookiePolicy.typesOfCookies.scanWebsiteForCookies"),R=()=>{i({to:"/manage-cookies"})},z=()=>{const t={policy_type:"cpg",is_draft:!0};C(!1);const x=M==="template"?E:A;return new Promise(P=>{x(t,{onSuccess:()=>{S.success(s("cookiePolicy.saveDraftSuccess"),{className:"!bg-success-lighter !text-dark !border-success-lighter !rounded",icon:e.jsx(fe,{className:"w-5 h-5 text-success-dark"})}),i({to:"/manage-cookies"}),P()},onError:G=>{C(!0),S.error(ke(G,s("cookiePolicy.saveDraftError"))),P()}})})},Z=()=>{const t=V();return _?e.jsxs(ue,{open:n,onOpenChange:c,children:[e.jsx(he,{asChild:!0,children:e.jsxs(h,{variant:"link",className:"p-0 gap-1",onClick:()=>c(!0),children:[t," ",e.jsx(O,{className:"w-5 h-5",strokeWidth:1.5})]})}),e.jsx(Le,{ExitIntentPopupContent:H,onOpenChange:c})]}):e.jsxs(h,{variant:"link",className:"p-0 gap-1",onClick:R,children:[t," ",e.jsx(O,{className:"w-5 h-5",strokeWidth:1.5})]})},Y=()=>T?e.jsx("div",{className:"flex items-center justify-center h-50",children:e.jsx(de,{})}):e.jsxs(e.Fragment,{children:[e.jsxs(me,{variant:m?"primary":"warning",className:"flex items-center gap-2 mb-4",children:[W(),e.jsx(xe,{className:"text-sm",children:U()}),!w&&Z()]}),v&&e.jsx(Se,{websiteCategories:k??[]}),w&&e.jsx(we,{onScanAgain:z})]});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"gap-6 p-6 grid grid-cols-12 justify-between",children:[e.jsxs("div",{className:"col-span-9",children:[e.jsx("h6",{className:"text-2xl font-semibold font-heading text-secondary-dark mb-6",children:s("cookiePolicy.typesOfCookies.title")}),e.jsx(ge,{label:"cookiePolicy.heading",className:"text-md text-secondary-dark",value:a==null?void 0:a.types_of_cookies_title,onChange:B,error:r?"This field cannot be empty.":void 0}),e.jsxs("div",{className:"my-4",children:[e.jsxs("p",{className:"mb-4 text-secondary-dark font-medium text-md flex items-center gap-2",children:[s("cookiePolicy.typesOfCookies.cookieList"),e.jsx(ie,{delayDuration:0,
6children:e.jsxs(ne,{children:[e.jsx(re,{children:F()}),e.jsx(ce,{side:"right",sideOffset:5,className:"text-left",children:e.jsx("p",{className:"text-xs",children:s("cookiePolicy.typesOfCookies.cookieListTooltip")})})]})})]}),Y()]})]}),e.jsx(je,{hints:le.typesOfCookies})]}),e.jsx(be,{})]})}export{Ae as Route,Oe as RouteComponent};

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.