1"use strict";(self.rspackChunk_jotta_webapp=self.rspackChunk_jotta_webapp||[]).push([[8649],{16096(e,n,t){t.d(n,{FaceGroupingConsentSection:()=>S});var i=t(68832),l=t.n(i);t(65946),t(81317),t(22146),t(72547);var a=t(54572),d=t(51760),r=t(84207),o=t(54206),s=t(23773),c=t(49155),u=t(52579),m=t(77108),p=t(32443);let h={ONLIME_WL:()=>t.e(9877).then(t.bind(t,87032)),ELGIGANTEN:()=>t.e(2769).then(t.bind(t,30812)),MEDIAMARKT:()=>t.e(6606).then(t.bind(t,90453)),PHONERO:()=>t.e(5954).then(t.bind(t,29813)),HALEBOP:()=>t.e(6876).then(t.bind(t,79479)),ELKO:()=>t.e(1422).then(t.bind(t,19941)),TELIA_CLOUD:()=>t.e(4889).then(t.bind(t,11084)),GIGANTTI:()=>t.e(3412).then(t.bind(t,55655)),LETS_GO:()=>t.e(7789).then(t.bind(t,77092)),OBOS:()=>t.e(4602).then(t.bind(t,12513)),TEST:()=>t.e(3105).then(t.bind(t,4048)),SATURN:()=>t.e(986).then(t.bind(t,6133)),ELKJOP:()=>t.e(9030).then(t.bind(t,27457)),GET:()=>t.e(6969).then(t.bind(t,56292)),TDC_NO:()=>t.e(2196).then(t.bind(t,39155)),COMHEM:()=>t.e(4627).then(t.bind(t,79630)),JOTTACLOUD:()=>t.e(8198).then(t.bind(t,45258))},b={ONLIME_WL:()=>t.e(9877).then(t.bind(t,68246)),ELGIGANTEN:()=>t.e(2769).then(t.bind(t,85658)),MEDIAMARKT:()=>t.e(6606).then(t.bind(t,60277)),PHONERO:()=>t.e(5954).then(t.bind(t,82805)),HALEBOP:()=>t.e(6876).then(t.bind(t,84227)),ELKO:()=>t.e(1422).then(t.bind(t,32837)),TELIA_CLOUD:()=>t.e(4889).then(t.bind(t,56938)),GIGANTTI:()=>t.e(3412).then(t.bind(t,75763)),LETS_GO:()=>t.e(7789).then(t.bind(t,38498)),OBOS:()=>t.e(4602).then(t.bind(t,63985)),TEST:()=>t.e(3105).then(t.bind(t,55918)),SATURN:()=>t.e(986).then(t.bind(t,30997)),ELKJOP:()=>t.e(9030).then(t.bind(t,42737)),GET:()=>t.e(6969).then(t.bind(t,29026)),TDC_NO:()=>t.e(2196).then(t.bind(t,6447)),COMHEM:()=>t.e(4627).then(t.bind(t,92296)),JOTTACLOUD:()=>t.e(8198).then(t.bind(t,29405))},f=e=>{let n=(0,m.s9)(),t=(0,a.useState)(null),i=l()(t,2),d=i[0],r=i[1];return((0,a.useEffect)(()=>{let e=!1;return r(null),(0,b[n])().then(n=>{e||r(()=>n.default)}),()=>{e=!0}},[n]),d)?(0,p.Y)(d,{...e}):null};var x=t(84776),g=t(4621),N=t(96220),w=t(96321);let y=[{id:"search",icon:x.A,title:(0,p.Y)(r.x6,{id:"lPTvr6"}),description:(0,p.Y)(r.x6,{id:"+UJFLQ"})},{id:"organized",icon:e=>{let n=(0,m.s9)(),t=(0,a.useState)(null),i=l()(t,2),d=i[0],r=i[1];return((0,a.useEffect)(()=>{let e=!1;return r(null),(0,h[n])().then(n=>{e||r(()=>n.default)}),()=>{e=!0}},[n]),d)?(0,p.Y)(d,{...e}):null},title:(0,p.Y)(r.x6,{id:"6dp6f8"}),description:(0,p.Y)(r.x6,{id:"OfFj34"})},{id:"private",icon:u.A,title:(0,p.Y)(r.x6,{id:"tVpe+Y"}),description:(0,p.Y)(r.x6,{id:"c4izuk"})}];function D(){return"u">typeof window&&!!window.localStorage}function Y(){if(!D())return{};let e=window.localStorage.getItem(g.SP);if(!e)return{};try{return JSON.parse(e)}catch{return{}}}function v(e){let n=e.icon;return(0,p.Y)("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-full bg-informative text-folder-element",children:(0,p.Y)(n,{className:"size-5"})})}function O(e){let n=e.className;return(0,p.Y)(f,{"aria-hidden":"true",className:(0,N.cn)("h-auto w-64",n),focusable:"false"})}function E(){return(0,p.Y)("span",{className:"absolute left-6 top-6 inline-flex min-h-5 items-center rounded-full bg-informative-fg px-2.5 py-1 text-xs font-bold leading-none text-always-w
1hite shadow-md",children:(0,p.Y)(r.x6,{id:"p6NueD"})})}function A(e){let n=e.onAllow,t=e.onDecline,i=e.isPending;return(0,p.Y)(c.lG,{open:!0,modal:!0,children:(0,p.FD)(c.Cf,{className:"max-h-dvh grid-rows-[minmax(0,1fr)_auto] overflow-hidden rounded-3xl bg-surface-container-lowest p-0 shadow-xl backdrop-blur-none sm:max-w-md",onEscapeKeyDown:e=>e.preventDefault(),onPointerDownOutside:e=>e.preventDefault(),onOpenAutoFocus:e=>e.preventDefault(),children:[(0,p.Y)(c.L3,{className:"sr-only",children:(0,p.Y)(r.x6,{id:"J2bZOC"})}),(0,p.FD)(c.R4,{className:"m-0 p-0",children:[(0,p.FD)("div",{className:"relative flex h-[220px] flex-row items-center justify-center overflow-hidden border-b border-light bg-informative",children:[(0,p.Y)(E,{}),(0,p.Y)(O,{})]}),(0,p.FD)("div",{className:"flex flex-col gap-7 px-8 py-8",children:[(0,p.FD)("div",{className:"flex flex-col gap-3",children:[(0,p.Y)("h2",{className:"text-2xl font-bold leading-6 text-primary","aria-hidden":!0,children:(0,p.Y)(r.x6,{id:"J2bZOC"})}),(0,p.Y)("p",{className:"text-base leading-6 text-grey3",children:(0,p.Y)(r.x6,{id:"GfIySA"})})]}),(0,p.Y)("div",{className:"flex flex-col gap-5",children:y.map(e=>{let n=e.id,t=e.icon,i=e.title,l=e.description;return(0,p.FD)("div",{className:"flex gap-4",children:[(0,p.Y)(v,{icon:t}),(0,p.FD)("div",{className:"min-w-0",children:[(0,p.Y)("h3",{className:"text-base font-bold leading-6 text-primary",children:i}),(0,p.Y)("p",{className:"text-base leading-4 text-grey3",children:l})]})]},n)})})]})]}),(0,p.FD)(c.Es,{className:"mt-0 flex-col gap-3 px-8 pb-8 sm:flex-col",children:[(0,p.FD)("div",{className:"grid w-full grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,p.Y)("button",{type:"button",className:"btn btn-outline min-h-10 w-full px-4 py-0 text-sm font-semibold leading-4 disabled:pointer-events-none disabled:opacity-60",disabled:i,onClick:t,children:(0,p.Y)(r.x6,{id:"zOxKTV"})}),(0,p.Y)("button",{type:"button",className:"btn btn-outline min-h-10 w-full px-4 py-0 text-sm font-semibold leading-4 disabled:pointer-events-none disabled:opacity-60",disabled:i,onClick:n,children:(0,p.Y)(r.x6,{id:"h7peZQ"})})]}),(0,p.Y)("p",{className:"text-center text-sm leading-5 text-grey3",children:(0,p.Y)(r.x6,{id:"zkbDQL"})})]})]})})}function F(e){let n=e.onAllow,t=e.onDecline,i=e.isPending;return(0,p.FD)("section",{className:"relative w-full","aria-label":d.Ru._({id:"1wdjme"}),children:[(0,p.Y)(w.F,{title:d.Ru._({id:"1wdjme"})}),(0,p.FD)("div",{className:"relative flex min-h-64 flex-col items-center justify-center overflow-hidden rounded-xl border border-light bg-informative px-6 py-9 text-center",children:[(0,p.Y)(E,{}),(0,p.FD)("div",{className:"flex w-full max-w-md flex-col items-center",children:[(0,p.Y)(O,{className:"w-36"}),(0,p.FD)("div",{className:"mt-5 flex w-full flex-col gap-2",children:[(0,p.Y)("h3",{className:"text-base font-bold leading-6 text-primary",children:(0,p.Y)(r.x6,{id:"J2bZOC"})}),(0,p.Y)("p",{className:"text-sm leading-5 text-grey3",children:(0,p.Y)(r.x6,{id:"UzOnnp"})})]}),(0,p.FD)("div",{className:"mt-5 flex flex-col gap-3 sm:flex-row",children:[(0,p.Y)("button",{type:"button",className:"btn btn-outline min-h-10 min-w-28 px-4 py-0 text-sm font-semibold leading-4 disabled:pointer-events-none disabled:opacity-60",disabled:i,onClick:t,children:(0,p.Y)(r.x6,{id:"zOxKTV"})}),(0,p.Y)("button",{type:"button",className:"btn btn-outline min-h-10 min-w-16 px-4 py-0 text-sm font-semibold leading-4 disabled:pointer-events-none disabled:opacity-60",disabled:i,onClick:n,children:(0,p.Y)(r.x6,{id:"h7peZQ"})})]})]})]})]})}function S(){var e;let n=(0,a.useState)(Y),t=l()(n,2),i=t[0],d=t[1],r=(0,s.W)(),c=(0,s.$)();if(!r.isSuccess)return null;function u(e){let n=e.allowFaceGrouping,t=e.source;c.mutate({allowFaceGrouping:n},{onSuccess:()=>{d(function(e){let n=e.allowFaceGrouping,t=e.source,i=e.now,l=void 0===i?Date.now():i,a=Y(),d=new Date(l).toISOString(),r={...a};"primary"===t&&(r.primaryPromptDismissedAt=d,r.secondaryPromptDismissedAt=n?d:void 0,r.secondaryPromptAvailableAt=n?void 0:function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6048e5;return new Date(e+n).toISOString()}(Date.parse(d))),"secondary"===t&&(r.secondaryPromptDismissedAt=d);if(D())try{window.localStorage.setItem(g.SP,JSON.stringify(r))}catch{console.warn("Failed to write face grouping prompt metadata to localStorage")}return r}({allowFaceGrouping:n,source:t}))}})}switch(function(e){let n=e.allowFaceGrouping,t=e.promptMetadata,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();return n?"hidden":t.primaryPromptDismissedAt?t.secondaryPromptDismissedAt?"hidden":(t.secondaryPromptAvailableAt?Date.parse(t.secondaryPromptAvailableAt):1/0)<=i?"secondaryPrompt":"hidden":"primaryPrompt"}({allowFaceGrouping:null==(e=r.data)?void 0:e.allowFaceGrouping,promptMetadata:i})){case"primaryPrompt":return(0,p.Y)(A,{isPending:c.isPending,onAllow:()=>{(0,o.s)("FG_FS_CONSENT_GRANTED"),u({allowFaceGrouping:!0,source:"primary"})},onDecline:()=>{(0,o.s)("FG_FS_CONSENT_DENIED"),u({allowFaceGrouping:!1,source:"primary"})}});case"secondaryPrompt":return(0,p.Y)(F,{isPending:c.isPending,onAllow:()=>{(0,o.s)("FG_SWIMLANE_GRANTED"),u({allowFaceGrouping:!0,source:"secondary"})},onDecline:()=>{(0,o.s)("FG_SWIMLANE_DENIED"),u({allowFaceGrouping:!1,source:"secondary"})}});case"hidden":return null}}}}]); 2//# sourceMappingURL=FaceGroupingConsentSection.b119d09e.chunk.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.