PageSourceSearch

https://app.cookieyes.com/assets/use-of-data.lazy-DR2SW2ui.js

js cookieyes.com collected 2026-10-01 07:37:22 UTC 3,057 bytes, 1 lines download raw bytes

1import{u as b,hj as S,a as M,r as g,j as t,bG as v,aU as T,E as D,dO as E,hk as V,hl as U,hm as z,d as B,hn as F,ho as K}from"./index-6AHMKm1b.js";import{M as q}from"./MultiSelection-CqwVV4hg.js";import{C as G}from"./CustomDataChip-mP2pQ5Vg.js";import"./popover-CZeHj8ru.js";import"./PremiumLockIcon-C7KRPvSB.js";function N(a,r){if(!r)return[];const n=U(a,r);return Array.isArray(n)?n:[]}const W=({step:a})=>{const{t:r}=b(),n=S(e=>e.payload),l=S(e=>e.setValue),u=M(e=>e.isPlanNudgeRequired),[o,m]=g.useState(""),[C,h]=g.useState(!1),[_,j]=g.useState(!1),f=500,P=a.value,i=a.custom_options_value,O=e=>(e==null?void 0:e.filter(s=>{var c;return s.visibility!=="conditional"?!0:(c=s.show_if)!=null&&c.length?z(n,s.show_if):!1}))??[],L=e=>{const s=O(e),c=(e??[]).filter(d=>d.plan&&u(d.plan)),y=new Set(s.map(d=>d.id)),I=c.filter(d=>!y.has(d.id));return[...s,...I]},x=N(n,P),p=N(n,i),k=(e,s)=>{const c=s?[...x,e]:x.filter(y=>y!==e);l(P,c)},w=()=>{const e=o.trim();if(!(!i||!e)){if(e.length>f){h(!0);return}p.includes(e)||(l(i,[...p,e]),m(""),h(!1))}},R=e=>{i&&l(i,p.filter(s=>s!==e))},A=L(a.options);return t.jsxs("div",{className:"w-full",children:[t.jsx("h5",{className:"text-4xl font-bold text-dark leading-[34px] mb-4",children:v(r,a.title)}),a.description&&t.jsx("p",{className:"text-xl text-secondary-dark font-medium mb-8",children:v(r,a.description)}),t.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[A.map(e=>{const s=u(e.plan??"");return t.jsx(q,{option:e,isSelected:x.includes(e.id),onChange:k,showPlanNudge:s,disabled:s,planLabel:e.plan??"Pro",className:"w-full whitespace-normal items-start",onUpgradeClick:s?()=>j(!0):void 0},e.id)}),a.allow_custom&&p.map(e=>t.jsx(G,{value:e,onRemove:()=>R(e),className:"w-full"},e))]}),a.allow_custom&&i&&t.jsxs("div",{className:"mt-6",children:[t.jsxs("div",{className:"flex gap-2 items-start",children:[t.jsx(T,{value:o,onChange:e=>{m(e.target.value),e.target.value.trim().length<=f&&h(!1)},onKeyDown:e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),w())},placeholder:v(r,"ppg.use_of_data.custom_placeholder")||"Type and press Enter or click Add",className:"max-w-xs min-h-20 resize-y text-lg border border-gray-light px-3 py-2"}),t.jsx(D,{type:"button",variant:o.trim()?"primary":"secondary",size:"icon",className:"h-8 w-8 shrink-0 rounded-lg p-[10px] disabled:opacity-100",onClick:w,disabled:!o.trim(),"aria-label":"Add",children:t.jsx(E,{className:"w-[14px] h-[14px] text-white",strokeWidth:2.5})})]}),C&&t.jsx("p",{className:"text-sm text-danger mt-1",children:`Please limit your response to ${f} characters.`})]}),t.jsx(V,{open:_,onOpenChange:j})]})},Z=B("/privacy-policy/use-of-data")({component:H});function H(){var o;const{t:a}=b(),n=F(m=>m.getPrivacyPolicyLayout)(),l=(o=n==null?void 0:n.steps)==null?void 0:o.use_of_data,{isLoading:u}=K(n?"use_of_data":null);return u&&!l?t.jsx("div",{className:"flex items-center justify-center min-h-[200px]",children:t.jsx("p",{className:"text-secondary-dark",children:a("common.loading","Loading...")})}):l?t.jsx(W,{step:l}):null}export{Z as Route};

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.