PageSourceSearch

https://connect.cotemaison.fr/assets/scripts/containers_subscriptions_index_js.3e0cdc8d.0ef15b04.js

js cotemaison.fr collected 2026-09-24 17:12:15 UTC 18,540 bytes, 160 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["containers_subscriptions_index_js"],{5383:(e,t,n)=>{n.r(t),n.d(t,{default:()=>E});var o=n(2540),r=n(3696),a=n(2697),i=n(9208),s=n(9263),l=n(4658),d=n(6796),c=n(9503),u=n(9221),p=n(7593),m=n(9933),g=n(8710),f=n(8098),h=n(7730),b=n(7469),v=n(1815);const x=(0,c.Ay)(m.mO)`
2	button {
3		width: 160px;
4		@media (max-width: 768px) {
5			width: 130px;
6		}
7	}
8`,k=({type:e,displayToast:t})=>{const n=(0,g.A)(),[s,c]=(0,r.useState)([]),[k,y]=(0,r.useState)(9),[w,C]=(0,r.useState)(!1),j=n.formatMessage({id:"subscriptions.followed"}),A=n.formatMessage({id:"subscriptions.follow"}),{data:{config:S}}=(0,a.IT)(i.uD),{subscriptions:M}=S.config,{enablePushMail:F}=(0,v.b)({config:S.config}),T=(0,b.v)({type:e}),E=(0,b.t)({type:e,brand:S.config.trigram.toUpperCase()}),{allBmks:$,done:_,error:I}=T,{allTops:N,done:P,error:q}=E,[U,{data:B,error:D}]=(0,l.n)(d.j5,{refetchQueries:[i.AK,"GetBmk"]}),[z,{data:W,error:G}]=(0,l.n)(d.Y3,{refetchQueries:[i.AK,"GetBmk"]});(0,r.useEffect)((()=>{I&&t({text:"Une erreur est survenue lors de récupération de vos sujets suivis",type:"error",duration:1e3})}),[t,I]),(0,r.useEffect)((()=>{q&&t({text:"Une erreur est survenue lors de récupération des sujets recommandés",type:"error",duration:1e3})}),[t,q]),(0,r.useEffect)((()=>{(G||D)&&t({text:"une erreur est survenue",type:"error",duration:1e3})}),[t,G,D]),(0,r.useEffect)((()=>{W&&t({text:"Vous ne recevrez plus d‘alerte pour ce sujet.",type:"success",duration:1e3})}),[M.theme,t,W]),(0,r.useEffect)((()=>{var e;B&&t({text:`${M.theme||n.formatMessage({id:"subscriptions.theme"})} ${n.formatMessage({id:"subscriptions.addBookmark"},{addedBookmark:(null==(e=B.createBookmark.bookmark.targetContent)?void 0:e.title)||B.createBookmark.bookmark.content.title})}`,type:"success",duration:1e3})}),[B,M.theme,t,n]),(0,r.useEffect)((()=>{_&&P&&c((()=>{const e=$.filter((e=>null!==e.node.contentId&&null!==e.node.content)),t=e.map((e=>{var t,n;return(null==(t=e.node.targetContent)?void 0:t.fullName)||(null==(n=e.node.targetContent)?void 0:n.title)})),n=[...e.map((e=>{var t,n,o,r,a,i,s,l,d;return Object.assign({},{id:e.node.id,contentId:e.node.targetContent?(null==(t=e.node.targetContent)?void 0:t.tagId)||(null==(n=e.node.targetContent)?void 0:n.id):e.node.contentId,type:e.node.type,title:(null==(o=e.node.targetContent)?void 0:o.fullName)||(null==(r=e.node.targetContent)?void 0:r.title)||(null==(a=e.node.content)?void 0:a.title),path:null==(i=e.node.content)?void 0:i.path,image:(null==(l=null==(s=e.node.targetContent)?void 0:s.media)?void 0:l.url)||(null==(d=e.node.content)?void 0:d.image)},{status:!0})})),...N.filter((e=>{var n,o;return null!==e.node.contentId&&null!==e.node.content&&!t.includes((null==(n=e.node.targetContent)?void 0:n.fullName)||(null==(o=e.node.targetContent)?void 0:o.title))})).map((e=>{var t,n,o,r,a,i,s,l,d,c,u;return Object.assign({},{id:e.node.id,contentId:e.node.targetContent?(null==(t=e.node.targetContent)?void 0:t.tagId)||(null==(n=e.node.targetContent)?void 0:n.id):e.node.contentId,type:null==(o=e.node)?void 0:o.type,title:(null==(r=e.node.targetContent)?void 0:r.fullName)||(null==(a=e.node.targetContent)?void 0:a.title)||(null==(i=e.node.content)?void 0:i.title),path:null==(l=null==(s=e.node)?void 0:s.content)?void 0:l.path,image:(null==(c=null==(d=e.node.targetContent)?void 0:d.media)?void 0:c.url)||(null==(u=e.node.content)?void 0:u.image)},{status:!1})}))];return C(!0),n}))}),[$,N,_,P]);const O=!!(null==$?void 0:$.length);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(x,{children:[!w&&(0,o.jsx)(h.A,{text:n.formatMessage({id:"common.waitWhileLoading",defaultMessage:"Nous récupérons vos informations. Merci de patienter."})}),w&&0===s.length&&(0,o.jsx)("span",{children:n.formatMessage({id:"subscriptions.noResult"})}),w&&s.length>0&&s.slice(0,k).map((e=>(0,o.jsx)(p.W,{remove:t=>{t.stopPropagation(),window.dataLayer.push({event:"bookmark_click",bookmark_type:e.type,bookmark_content:e.contentId}),z({variables:{id:e.id}})},icon:u.A,add:t=>{t.stopPropagation(),O||F(),window.dataLayer.push({event:"bookmark_click",bookmark_type:e.type,bookmark_content:e.contentId}),U({variables:{data:{type:e.type,brand:{key:S.config.trigram.toUpperCase()},content:{id:e.contentId,path:e.path}}}})},imgSrc:M.cardImage?e.image:null,isFollowed:!!e.status,followedCta:j,followCta:A,children:e.title},e.contentId)))]}),(0,o.jsxs)(m.mO,{txtAlign:"center",margin:"20px 0",children:[" ",s.length>0&&k<s.length&&(0,o.jsx)(f.j,{w:"auto",onClick:()=>{y(k+9)},display:"inline-block",children:n.formatMessage({id:"subscriptions.continue"})}),k>=s.length&&s.length>9&&(0,o.jsx)("span",{children:n.formatMessage({id:"subscriptions.thatsAllFolks"})})]})]})};var y=n(4583),w=n(2642),C=n(5022),j=n(5648);var A=n(59);const S=c.Ay.div`
9	width: auto;
10	margin-bottom: calc(var(--spacing-unit) * 4);
11
12	div {
13		display: flex;
14		justify-content: space-between;
15		align-items: center;
16
17		@media (min-width: 768px) {
18			width: 50%;
19		}
20	}
21`,M=({brand:e})=>{var t;const n=null==(t=null==e?void 0:e.config)?void 0:t.mail_alert,{complete:a,data:s}=(0,w.I)({fragment:i.DG,fragmentName:"FragmentConsentStatus",from:{__typename:"Newsletter",id:n}}),c=a&&s&&s.status,{toggleSubscription:u}=(({config:e,isSubscribed:t=!1})=>{var n;const o=(0,g.A)(),a=(0,C.wA)(),[s,c]=(0,r.useState)(t),u=((null==(n=e.subscriptions)?void 0:n.filters)||["follow","follow:tag"]).filter((e=>"follow"!==e)),p=null==e?void 0:e.mail_alert,m=t=>{const n=[];return u.forEach((o=>{n.push({bookmarkType:o,brand:{key:{eq:e.trigram.toUpperCase()}},enable:t,notificationType:"email"})})),n},[f,{data:h,error:b}]=(0,l.n)(d.uj,{update:(e,{data:n})=>{var o;if("success"===(null==(o=null==n?void 0:n.newsletterSub)?void 0:o.status)){const n=p,o=!t;
21e.writeFragment({id:e.identify({__typename:"Newsletter",id:n}),fragment:i.DG,fragmentName:"FragmentConsentStatus",data:{__typename:"Newsletter",id:n,status:o,consent:p}}),c(o)}},refetchQueries:[i.sn,"GetProfileForLayout"]}),[v,{data:x,error:k}]=(0,l.n)(d.z8),y=()=>{const t=m(!0);f({variables:{subscribe:[p]}}),v({variables:{data:t,where:{brand:{key:{eq:e.trigram.toUpperCase()}}}},context:{apiName:"BMK"}})},w=()=>{const t=m(!1);f({variables:{unsubscribe:[p]}}),v({variables:{data:t,where:{brand:{key:{eq:e.trigram.toUpperCase()}}}},context:{apiName:"BMK"}})};return(0,r.useEffect)((()=>{h&&x&&a((0,j.P0)({text:o.formatMessage({id:"sessions.edited"})})),(b||k)&&a((0,j.P0)({text:o.formatMessage({id:"common.genericError"}),type:"error"}))}),[h,x,b,k,o,a,s]),(0,r.useEffect)((()=>{c(t)}),[t]),{isSubscribed:s,toggleSubscription:()=>{s?w():y()},subscribeToAlerts:y,unsubscribeFromAlerts:w,newsletterData:h,newsletterError:b,alertConfsSetted:x,errorAlertConfsSetted:k,isSubscribing:!h&&!b,isUnsubscribing:!h&&!b}})({config:e.config,isSubscribed:c});return(0,o.jsx)(S,{children:(0,o.jsxs)(A.T,{thinner:!0,children:[(0,o.jsx)("span",{children:"Recevoir les notifications par email"}),(0,o.jsx)(y.A,{name:"toggleAlerts",status:c,toggle:u})]})})};var F=n(1803),T=n(9949);const E=()=>{var e,t;const n=(0,g.A)(),{data:{config:l}}=(0,a.IT)(i.uD),d=(null==(t=null==(e=null==l?void 0:l.config.subscriptions)?void 0:e.filters)?void 0:t.join())||["follow","follow:tag"].join(),[c,u]=(0,r.useState)(l.config.subscriptions.selectedFilter||d),[p,m]=(0,r.useState)(l.config.subscriptions.selectedFilter||d),f=e=>{u(e),setTimeout((()=>{m(e)}),1e3)},{subscriptions:h}=l.config,b=[];return h.filters&&h.filters.forEach((e=>{b.push({value:"follow"===e?d:e,label:n.formatMessage({id:`subscriptions.filtersLabels.${e}`})})})),(0,o.jsx)(F.A,{children:({displayToast:e})=>(0,o.jsxs)(s.Wt,{className:"subscriptions",children:[(0,o.jsx)(M,{brand:l}),h.filters&&(0,o.jsxs)(T.A,{options:b,handleChange:f,selectedOption:c,children:[n.formatMessage({id:"subscriptions.filter"})," :"]}),c===p&&(0,o.jsx)(k,{displayToast:e,type:c})]})})}},5065:(e,t,n)=>{n.d(t,{C:()=>i});var o=n(2540);n(3696);const r=n(9503).Ay.button`
22	padding: 5px 30px;
23	border-radius: 4px;
24	font-size: var(--heading4-size);
25	font-weight: var(--heading4-weight);
26	color: var(${e=>e.variant.textColor});
27	border: 1px solid var(--color-darkgrey);
28	background: var(${e=>e.variant.backgroundColor});
29	cursor: pointer;
30	white-space: nowrap;
31	min-width: 130px;
32
33	${e=>e.icon&&`\n                span::after {\n                display: inline-block;\n                content: '';\n                width: 13px;\n                height: 9px;\n                mask: url(${e.icon}) no-repeat left top;\n                mask-size: 13px 9px;\n                background-color: var(${e.variant.textColor});\n                margin-left: 10px;\n            }\n        `}
34`,a={primary:{textColor:"--color-darkgrey",backgroundColor:"--color-white"},secondary:{textColor:"--color-white",backgroundColor:"--color-darkgrey"}},i=({children:e,type:t="button",variant:n="primary",icon:i,handleClick:s,className:l})=>(0,o.jsx)(r,{onClick:s,type:t,variant:a[n],icon:i,className:l,children:(0,o.jsx)("span",{children:e})})},7730:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(2540),r=(n(3696),n(3049)),a=n(8710);const i=n(9503).Ay.div`
35	text-align: center;
36	padding: calc(var(--spacing-unit) * 20) 0;
37
38	p {
39		width: 100%;
40		max-width: 300px;
41		margin: 0 auto;
42	}
43`,s=({text:e})=>{const t=(0,a.A)();return(0,o.jsxs)(i,{children:[(0,o.jsx)("p",{children:e||t.formatMessage({id:"common.pleaseWait",defaultMessage:"Please wait"})}),(0,o.jsx)("p",{children:(0,o.jsx)(r.A,{width:250,count:3})})]})}},9949:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(2540),r=(n(3696),n(9503)),a=n(6311);const i=(0,r.Ay)(a.u)`
44	label {
45		padding-right: calc(var(--spacing-unit) * 3);
46		font-weight: ${e=>e.theme.boldWeight?e.theme.boldWeight:"bold"};
47		font: var(--small1-sh) ${({theme:e})=>e.mainFontFamily};
48	}
49`,s=({options:e,handleChange:t,hasLabel:n=!0,selectedOption:r,children:a})=>(0,o.jsxs)(i,{children:[n&&(0,o.jsx)("label",{htmlFor:"filter",children:a||"Filtrer"}),(0,o.jsx)("select",{id:"filter",onChange:e=>{t(e.target.value)},value:r,children:e.map((e=>(0,o.jsx)("option",{value:e.value,children:e.label||e.name},e.value)))})]})}
49,4583:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(2540),r=n(3696);const a=n(9503).Ay.label`
50	display: inline-block;
51	position: relative;
52	width: 56px;
53	height: 28px;
54	cursor: pointer;
55	overflow: hidden;
56
57	& input {
58		position: absolute;
59		top: -30px;
60		top: -30px;
61		width: 0;
62		height: 0;
63	}
64	& input + span {
65		position: absolute;
66		top: 0;
67		bottom: 0;
68		left: 0;
69		right: 0;
70		background-color: var(--color-grey-3);
71		border-radius: 20px;
72	}
73	& input + span:before {
74		content: '';
75		display: inline-block;
76		position: absolute;
77		top: 50%;
78		left: 2px;
79		width: 24px;
80		height: 24px;
81		background-color: var(--color-white);
82		border-radius: 50%;
83		transform: translateY(-50%);
84		transition: all 0.5s;
85		box-shadow: 0px 0px 1.4px #646464;
86	}
87	& input[type='checkbox'][checked] + span {
88		background-color: var(--color-success);
89	}
90	& input[type='checkbox'][checked] + span:before {
91		left: 30px;
92		box-shadow: 0px 0px 1.4px rgba(25, 89, 42, 0.54);
93	}
94	& input:disabled + span {
95		background-color: var(--color-grey-2);
96	}
97	& input:disabled + span:before {
98		background-color: var(--color-grey-1);
99	}
100`,i=r.memo((({name:e,status:t=!1,toggle:n,disabled:i=!1})=>{const[s,l]=(0,r.useState)(!1);(0,r.useEffect)((()=>
100{l(t)}),[t]);const d=(0,r.useCallback)((()=>{const e=!s;l(e),n(e)}),[s,n]);return(0,o.jsxs)(a,{htmlFor:e,children:[(0,o.jsx)("input",{type:"checkbox",name:e,id:e,value:1,defaultChecked:s?"checked":"",onChange:d,disabled:!!i}),(0,o.jsx)("span",{})]})}))},7593:(e,t,n)=>{n.d(t,{W:()=>s});var o=n(2540),r=n(3696);const a=n(9503).Ay.div`
101	margin: 12px 10px;
102	display: flex;
103	align-items: center;
104	font-weight: var(--heading4-weight);
105	font-size: var(--heading4-size);
106	color: var(--color-darkgrey);
107	justify-content: space-between;
108	div {
109		display: flex;
110		align-items: center;
111		justify-content: center;
112	}
113	button {
114		margin-left: 16px;
115	}
116	picture {
117		width: 50px;
118		height: 50px;
119		flex-shrink: 0;
120		margin-right: 16px;
121
122		img {
123			height: 100%;
124			width: 100%;
125			object-fit: cover;
126			flex-grow: 0;
127		}
128	}
129`;var i=n(5065);const s=({children:e,imgSrc:t,icon:n,isFollowed:s,remove:l,add:d,followedCta:c="Suivi",followCta:u="Suivre"})=>{const[p,m]=(0,r.useState)(s),g=(e,t)=>((e,t)=>{const n=encodeURIComponent(e).replace(/[.]/g,".2E").replace(/[%]/g,".");return"https://tra.img.pmdstatic.net/"+t.operation+"/"+n+"/"+t.dimension+"/"+t.quality+t.extension})(e,{operation:"scale",dimension:`${t}xauto`,quality:"quality/40",extension:".jpg"});return(0,o.jsxs)(a,{children:[(0,o.jsxs)("div",{children:[t&&(0,o.jsx)("picture",{children:(0,o.jsx)("img",{srcSet:`${g(t,100)} 100w, ${g(t,400)} 400w`,sizes:"(max-width: 449px) 50px, 400px",src:g(t,400)})}),(0,o.jsx)("span",{children:e})]}),(0,o.jsx)(i.C,{handleClick:e=>{m((t=>(t?l(e):d(e),!t)))},variant:p?"secondary":"primary",icon:p?n:null,className:p?"":"follow-button",children:p?c:u})]})}},59:(e,t,n)=>{n.d(t,{T:()=>o});const o=n(9503).Ay.div`
130	background: var(--color-white);
131	border-radius: var(--radius-clickable-card);
132	text-decoration: none;
133	padding: calc(var(--spacing-unit) * ${({thinner:e})=>e?"4":"5"});
134	${({clickable:e})=>e?"cursor: pointer;\n\t  box-shadow: var(--shadow);":"border: 1px solid var(--color-grey-1);"}
135
136	&:hover {
137		${({clickable:e})=>e?"box-shadow: var(--shadow-hover);":""}
138	}
139`},6311:(e,t,n)=>{n.d(t,{u:()=>o});const o=n(9503).Ay.div`
140	display: block;
141	padding: var(--spacing-unit);
142	margin-bottom: calc(var(--spacing-unit) * 4);
143
144	label {
145		color: var(--color-grey-4);
146		${({labelPosition:e,theme:t})=>"left"===e?`padding-right: calc(var(--spacing-unit) *3);\n\t\t\tfont-weight: ${t.boldWeight?t.boldWeight:"bold"};\n\t\t\tfont: var(--small1-sh) ${t.mainFontFamily};`:""};
147		${({labelPosition:e,theme:t})=>"top"===e?`display: block;\n\t\tfont: var(--body2-sh) ${t.mainFontFamily};\n\t\tmargin-bottom: var(--spacing-unit);`:""};
148	}
149
150	select {
151		border: 1px solid var(--color-grey-1);
152		border-radius: var(--radius-card);
153		font: var(--small1-sh) ${({theme:e})=>e.mainFontFamily};
154
155		options {
156			font: inherit;
157		}
158	}
159`},7469:(e,t,n)=>{n.d(t,{t:()=>s,v:()=>i});var o=n(3696),r=n(2697),a=n(9208);function i({type:e}){const[t,n]=(0,o.useState)([]),[i,s]=(0,o.useState)(null),[l,d]=(0,o.useState)(!1),[c,u]=(0,o.useState)(0),{data:p,loading:m,error:g,fetchMore:f}=(0,r.IT)(a.AK,{variables:{where:{type:{in:{values:e.split(",")}}},offset:c,limit:30}});return(0,o.useEffect)((()=>{var e,o,r,a,d;if(!m&&!g&&!l)if((null==(r=null==(o=null==(e=null==p?void 0:p.me)?void 0:e.bookmarks)?void 0:o.edges)?void 0:r.length)>0){const e=p.me.bookmarks.edges,o=c+e.length;n([...t,...e]),null===i&&s(p.me.bookmarks.total),u(o)}else 0===(null==(d=null==(a=null==p?void 0:p.me)?void 0:a.bookmarks)?void 0:d.total)&&s(p.me.bookmarks.total)}),[p,m,g,t,l,c,i]),(0,o.useEffect)((()=>{null!==i&&c<i&&!l&&f({variables:{where:{type:{in:{values:e.split(",")}}},offset:c,limit:30}})}),[t,i,c,f,e,l]),(0,o.useEffect)((()=>{(null!==i&&t.length===i||p&&0===i||g)&&d(!0)}),[t,i,l,p,g]),{allBmks:t,done:l,error:g}}function s({type:e,brand:t}){const[n,i]=(0,o.useState)([]),[s,l]=(0,o.useState)(null),[d,c]=(0,o.useState)(!1),[u,p]=(0,o.useState)(0),{data:m,loading:g,error:f,fetchMore:h}=(0,r.IT)(a.Ud,{variables:{where:{brand:{key:{eq:t}},type:{in:{values:e.split(",")}},updatedAt:{gt:"P-30D"}},offset:u,limit:30},context:{fetchOptions:{method:"GET"}}});return(0,o.useEffect)((()=>{var e,t,o;if(!g&&!f&&!d)if((null==(t=null==(e=null==m?void 0:m.bookmarkTops)?void 0:e.edges)?void 0:t.length)>0){const e=m.bookmarkTops.edges,t=u+e.length;i([...n,...e]),null===s&&l(Math.min(m.bookmarkTops.total,30)),p(t)}else l(null==(o=null==m?void 0:m.bookmarkTops)?void 0:o.total)}),[m,g,f,n,d,u,s]),(0,o.useEffect)((()=>
159{null!==s&&u<30&&!d&&h({variables:{where:{brand:{key:{eq:t}},type:{in:{values:e.split(",")}},updatedAt:{gt:"P-30D"}},offset:u,limit:30},context:{fetchOptions:{method:"GET"}}})}),[n,s,u,h,e,t,d]),(0,o.useEffect)((()=>{(null!==s&&n.length>=s||0===s||f)&&c(!0)}),[n,s,d,f]),{allTops:n,done:d,error:f}}},1815:(e,t,n)=>{n.d(t,{b:()=>c});var o=n(3696),r=n(5022),a=n(5648),i=n(8710),s=n(4658),l=n(6796),d=n(9208);const c=({config:e})=>{var t;const n=(0,i.A)(),c=(0,r.wA)(),u=((null==(t=e.subscriptions)?void 0:t.filters)||["follow","follow:tag"]).filter((e=>"follow"!==e)),p=[],m=null==e?void 0:e.mail_alert;u.forEach((t=>{p.push({bookmarkType:t,brand:{key:{eq:e.trigram.toUpperCase()}},enable:!0,notificationType:"email"})}));const[g,{data:f,error:h}]=(0,s.n)(l.uj,{update:(e,{data:t})=>{var n;if("success"===(null==(n=null==t?void 0:t.newsletterSub)?void 0:n.status)){const t=m;e.writeFragment({id:e.identify({__typename:"Newsletter",id:t}),fragment:d.DG,fragmentName:"FragmentConsentStatus",data:{__typename:"Newsletter",id:t,status:!0,consent:m}})}},refetchQueries:[{query:d.sn,variables:{consents:[m]}}]}),[b,{data:v,error:x}]=(0,s.n)(l.z8);return(0,o.useEffect)((()=>{f&&v&&c((0,a.P0)({text:n.formatMessage({id:"sessions.edited"})})),(h||x)&&c((0,a.P0)({text:n.formatMessage({id:"common.errors.genericError"}),type:"error"}))}),[f,v,h,x,n,c]),{enablePushMail:()=>{g({variables:{subscribe:[m]}}),b({variables:{data:p,where:{brand:{key:{eq:e.trigram.toUpperCase()}}}},context:{apiName:"BMK"}})},alertSubscribed:f,errorAlertSubscribed:h,alertActivated:v,errorAlertActivated:x}}},2642:(e,t,n)=>{n.d(t,{I:()=>c});var o=n(4629),r=n(9295),a=n(1828),i=n(9093),s=n(1628),l=n(3495),d=n(4063);function c(e){return(0,l.Y)("useFragment",u,(0,i.m)(e.client))(e)}function u(e){var t,n,a,l=(0,i.m)(e.client).cache,c=e.from,u=(0,o.Tt)(e,["from"]),m=r.useMemo((function(){return"string"==typeof c?c:l.identify(c)}),[l,c]),g=(t=function(){return(0,o.Cl)((0,o.Cl)({},u),{from:m})},n=[u,m],(a=r.useRef()).current&&(0,d.L)(a.current.deps,n)||(a.current={value:t(),deps:n}),a.current.value),f=r.useMemo((function(){var e=g.fragment,t=g.fragmentName,n=g.from,r=g.optimistic,a=void 0===r||r;return{result:p(l.diff((0,o.Cl)((0,o.Cl)({},g),{returnPartialData:!0,id:n,query:l.getFragmentDoc(e,t),optimistic:a})))}}),[g,l]),h=r.useCallback((function(){return f.result}),[f]);return(0,s.r)(r.useCallback((function(e){var t=0,n=l.watchFragment(g).subscribe({next:function(n){(0,d.A)(n,f.result)||(f.result=n,clearTimeout(t),t=setTimeout(e))}});return function(){n.unsubscribe(),clearTimeout(t)}}),[l,g,f]),h,h)}function p(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=(0,a.IM)(e.missing.map((function(e){return e.missing})))),t}}}]);
160//# sourceMappingURL=containers_subscriptions_index_js.3e0cdc8d.0ef15b04.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.