PageSourceSearch

https://communaute.maif.fr/_nuxt/chunk/DW7HbfmE.js

js maif.fr collected 2026-10-02 02:43:19 UTC 25,189 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./85DIx5yB.js","../entry/CvOj14bM.js","./79eXbm6j.js","./CyZptx9T.js","../css/Cw8wwzH5.css","./C9F9XaXj.js","./C_uwkErf.js","../css/ZJGnYcO4.css","./C8cQM8HF.js","./MnpE2Aw6.js","./CYGtrTG9.js","../css/DqZiiLLn.css","../css/Du7Q3SEd.css","../css/DlofjD8-.css","./Dz2ttmSP.js","./B0s2JZZk.js","./CssAQtqy.js","../css/C9wlchkK.css","../css/x1fzkVuC.css","../css/BKBF43be.css","./CRTrpBzT.js","../css/DqsGZ9Eb.css","../css/CUCheLhY.css","./MbgbJGxV.js","./B5RRF-O3.js","../css/VvP2Tft8.css","./pEfTBITk.js","./CGiZAl_v.js","./BHejKjRt.js","../css/C5uUWUJU.css","./u8ct8HhC.js","../css/C-OFH2j0.css","./BQZUoKP-.js","./B0HU3hll.js","../css/BhERWSAo.css","../css/CP3XVIlA.css","./nOfLpEe8.js","../css/Cg1UlRUw.css","../css/C7aF_wWQ.css","./lLOq5S6-.js","../css/B76EETiD.css","../css/BltlYoS6.css","../css/DfmDDaSK.css","../css/CQRiuFrU.css","./DfK0Fulr.js","./C75ljDn-.js","../css/CIQdc7nh.css","./BKoWzbU3.js","../css/Bx00yiTk.css","../css/BiTVLV-x.css","./DX6vfA_C.js","./C3meeeJG.js","../css/B0qk9PmS.css","../css/drHUcV-f.css"])))=>i.map(i=>d[i]);
2import{_ as ie}from"../entry/CvOj14bM.js";import{_ as We}from"./79eXbm6j.js";import{A as Ze,b as He,M as de}from"./CGiZAl_v.js";import{b as me,e as Je}from"./B0s2JZZk.js";import{b as Ke}from"./CssAQtqy.js";import{_ as Me,a5 as Ve,N as Ie,a4 as Ne,y as Te,p as je,L as Ue,x as Ae,s as De,az as ze,a7 as Qe,o as c,c as f,f as o,e,a as I,n,F as G,C as Xe,k as R,b as v,m as T,i as m,Z as be,G as we,H as ce,a6 as Se,I as Ye,b2 as Le,j as xe,t as Oe,ag as et,d as tt,P as Ee,b5 as st,by as nt,l as ot,bl as at}from"./CyZptx9T.js";import{a as ye,A as lt}from"./DOp3H2-C.js";import{M as fe,a as ge,f as ve,b as Ce,c as ke,d as he,g as Fe}from"./pEfTBITk.js";import{_ as _e}from"./lLOq5S6-.js";const rt="AppBlogArticle_container",it="AppBlogArticle_content",ct="AppBlogArticle_section",ut="AppBlogArticle_attachmentsContainer",pt="AppBlogArticle_footer",dt="AppBlogArticle_commentContainer",mt="AppBlogArticle_commentInput",yt="AppBlogArticle_comments",ft={container:rt,content:it,section:ct,attachmentsContainer:ut,footer:pt,commentContainer:dt,commentInput:mt,comments:yt},gt={__name:"AppBlogArticle",props:{metapost:{type:Object,required:!0},showCommentInput:{type:Boolean,default:!0},showUserInfo:{type:Boolean,default:!0},hideCover:{default:!1,type:Boolean}},setup(r){const i=r,H=T(!1),$=T(!0),P=T(null),h=T(!1),_=T(!1),V=Ve(),{$bus:U,$toast:w,$analytics:B}=Ie(),{t:g}=Ne(),S=Te(),N=je(),M=Ue(),b=Ae(),a=De(),k=ze(),y=m(()=>i.metapost.componentId?a.getComponentById(i.metapost.componentId):a.getCurrentComponent),q=m(()=>!y.value||y.value.settings&&!y.value.settings.canHaveChildren?!1:!i.metapost.parentId&&M.isCurrentUserAllowedTo("MetapostComment",i.metapost.brandCategoryId,y.value.id)),L=m(()=>{if(!i.metapost.attachments)return[];const l=i.metapost.attachments.filter(C=>C.mimeType!=="application/pdf");return i.hideCover||l.shift(),l}),O=m(()=>!y.value||!i.metapost.semanticUri?null:{name:"details",params:{brandCategoryId:b.getCurrentBrandCategoryId,component:y.value.semanticUri,details:i.metapost.semanticUri}}),ue=m(()=>{if(!y.value||!i.metapost)return null;const l=V.resolve({name:"details",params:{brandCategoryId:b.getCurrentBrandCategoryId,component:y.value.semanticUri,details:i.metapost.semanticUri}});return"https://"+S.config.bepDomain+l.href}),D=m(()=>{if(!y.value)return null;const l=i.metapost.brandCategoryId,C=y.value.id;return{ReportUserContent:M.isCurrentUserAllowedTo("ReportUserContent",l,C),MetapostComment:M.isCurrentUserAllowedTo("MetapostComment",l,C),MetapostLike:M.isCurrentUserAllowedTo("MetapostLike",l,C),MetapostUpdateOwn:M.isCurrentUserAllowedTo("MetapostUpdateOwn",l,C),MetapostDeleteOwn:M.isCurrentUserAllowedTo("MetapostDeleteOwn",l,C),MetapostModerate:M.isCurrentUserAllowedTo("MetapostModerate",l,C)}}),d=m(()=>i.metapost&&i.metapost.attachments?i.metapost.attachments.filter(l=>l.mimeType==="application/pdf"):[]),K=m(()=>!S.isHeadless&&q.value&&($.value||i.metapost.children&&i.metapost.children.length>0)),t=m(()=>({id:i.metapost.id,parentId:i.metapost.parentId,ownerId:i.metapost.user.id,userId:N.currentUser.id,hostUserId:N.currentUser.externalId,categories:i.metapost.metapostCategories.map(l=>l.label)}));Qe(()=>{$.value=i.showCommentInput});async function p(){B.track("comment:metapost:click",{id:i.metapost.id,parentId:i.metapost.parentId}),$.value=!0,await be(),H.value=!1,await be(),H.value=!0}function Q(){V.currentRoute.value.name==="details"&&V.push({name:"component",params:{brandCategoryId:b.getCurrentBrandCategoryId,component:a.getCurrentComponent.semanticUri}}),w.success(g("blog.article_deleted"))}function X(){w.success(g("metapost.report_sent"))}function W(l){i.disableImageClick||U.$emit("popup_open","Slider",null,{items:L.value,defaultItemIndex:l})}async function Y(){B.track("metapost:like:click",t.value),await k.likeMetaPost(i.metapost.id)}async function Z(){B.track("metapost:unlike:click",t.value),await k.unlikeMetaPost(i.metapost.id)}function x(){U.$emit("popup_open","LikesDetails",g("popup_likes_details.liked_by"),{metapostId:i.metapost.id})}function pe(l){P.value=l.user}async function j(){if(!_.value)try{!h.value&&!i.metapost.isTranslated&&(_.value=!0,await k.translateMetapost(i.metapost.id)),h.value=!h.value}catch{w.error(g("general.an_error_occured"))}finally{_.value=!1}}return(l,C)=>{const ee=fe,te=ge,se=ve,ne=_e,oe=Ze,ae=Ce,le=ke,s=me,u=he,E=He,re=de,J=ye;return c(),f("div",{class:n(l.$style.container)},[o(ee,{metapost:r.metapost,component:e(y),"show-user-info":r.showUserInfo,"hide-cover":r.hideCover,link:e(O),"delete-wordings":{title:e(g)("blog.delete_article"),message:e(g)("blog.do_you_really_want_to_delete_your_article"),cancel:e(g)("blog.cancel"),confirm:e(g)("blog.delete")},"display-cropped-cover":"",onDeleted:Q,onReported:X},null,8,["metapost","component","show-user-info","hide-cover","link","delete-wordings"]),I("div",{class:n(l.$style.content)},[o(te,{metapost:r.metapost,"is-translated":e(h)},null,8,["metapost","is-translated"]),o(se,{metapost:r.metapost,class:n(l.$style.section),"is-translated":e(h)},null,8,["metapost","class","is-translated"]),o(ne,{metapost:r.metapost,class:n(l.$style.section),"is-translated":e(h)},null,8,["metapost","class","is-translated"]),r.metapost.visibility==="Accepted"&&e(L).length>0?(c(),f("div",{key:0,class:n(l.$style.attachmentsContainer)},[(c(!0),f(G,null,Xe(e(L),(A,F)=>(c(),R(oe,{key:A.id,attachment:A,"max-width":"100%",alt:`${l.$getMetapostMetaTitle(r.metapost)}${F>0?" - "+(F+1):""}`,onClicked:Re=>W(F)},null,8,["attachment","alt","onClicked"]))),128))],2)):v("",!0),o(ae,{products:r.metapost.products,class:n(l.$style.section)},null,8,["products","class"]),o(le,{"custom-fields":r.metapost.customFields,"show-full-text":"",class:n(l.$style.section),"is-translated":e(h)},null,8,["custom-fields","class","is-translated"]),o(s,{categories:r.metapost.metapostCategories,class:n(l.$style.section),"is-opened-by-default":!l.$device.isMobile,"is-translated":e(h)},null,8,["categories","class","is-opened-by-default","is-translated"]),o(u,{pdfs:e(d),class:n(l.$style.section),"metapost-id":r.metapost.id},null,8,["pdfs","class","metapost-id"])],2),I("div",{class:n(l.$style.footer)},[o(E,{"nb-likes":r.metapost.nbLikes,"nb-comments":r.metapost.nbComments,"current-user-has-liked":r.metapost.currentUserHasLiked,"share-url":e(ue),"metapost-categories":r.metapost.metapostCategories,"pinterest-source":r.metapost.attachments&&r.metapost.attachments.length>0?r.metapost.attachments[0].url:null,"display-likes-details":!0,"show-comment-button":e(q),"is-translated":e(h),onLike:Y,onUnlike:Z,onComment:p,onOpenLikesDetails:x,onTranslate:j},null,8,["nb-likes","nb-comments","current-user-has-liked","share-url","metapost-categories","pinterest-source","show-comment-button","is-translated"]),e(K)?(c(),f("div",{key:0,class:n(l.$style.commentContainer)},[C[1]||(C[1]=I("hr",null,null,-1)),o(re,{shape:"input",class:n(l.$style.commentInput),component:e(y),"meta-post-group-identifier":{componentId:e(y).id,parentId:r.metapost.id},settings:e(y).settings?e(y).settings.children:null,"button-text":e(g)("general.add_a_comment"),"user-to-reply":e(P),onResetUserToReply:C[0]||(C[0]=A=>P.value=null)},null,8,["class","component","meta-post-group-identifier","settings","button-text","user-to-reply"])],2)):v("",!0),o(J,{"cached-permissions":e(D),post:r.metapost,class:n(l.$style.comments),onReply:pe},null,8,["cached-permissions","post","class"])],2)],2)}}},vt={$style:ft},Ct=Me(gt,[["__cssModules",vt]]),kt="CMetapostDetails_container",ht="CMetapostDetails_content",_t="CMetapostDetails_section",bt="CMetapostDetails_footer",$t="CMetapostDetails_commentContainer",It="CMetapostDetails_commentInput",wt={container:kt,content:ht,section:_t,footer:bt,commentContainer:$t,commentInput:It},Mt={key:1},Tt={key:4},Ut={__name:"CMetapostDetails",props:{id:{type:Number,default:null},cachedMetapost:{type:Object,default:null},showUserInfo:{type:Boolean,default:!0},showCommentInput:{type:Boolean,default:!0},link:{type:[Object,String],default:""}},async setup(r){let i,H;const $=r;function P(s,u,E,re){const J=we(),{$getMetapostMetaTitle:A,$getMetapostMetaDescription:F,$getPageSocialData:Re}=Ie();if(J.name!=="details")return;const z={};z.meta=[];const Pe=A(s),$e=F(s);z.title=Pe,$e&&z.meta.push({property:"description",name:"description",content:$e}
2),(!u||!u.isIndexableByRobots||!s||!s.isIndexableByRobots)&&z.meta.push({name:"robots",content:"noindex"});const Be=E.find(qe=>qe.mimeType.split("/")[0]==="image");z.meta=z.meta.concat(Re(re,Pe,$e,Be?Be.url:null)),et(z)}const h=we(),_=Ve(),V=Te(),U=ze(),w=De(),B=je(),g=Ue(),S=Ae(),{config:N,isReadonly:M}=ce(V),{getCurrentComponentType:b}=ce(w),{t:a}=Ne(),{$analytics:k,$toast:y,$bus:q}=Ie(),L=T($.showCommentInput),O=T(!1),ue=T(!1),D=T(null),d=T(!1),K=T(!1),t=m(()=>U.getMetaPostWithChildren($.id)),p=m(()=>t.value?w.getComponentById(t.value.componentId):w.getCurrentComponent),Q=m(()=>B.currentUser),X=m(()=>t.value&&t.value.attachments?t.value.attachments.filter(s=>s.mimeType&&s.mimeType!=="application/pdf"):[]),W=m(()=>!p.value||p.value.settings&&!p.value.settings.canHaveChildren?!1:!t.value.parentId&&g.isCurrentUserAllowedTo("MetapostComment",t.value.brandCategoryId,p.value.id)),Y=m(()=>!M.value&&W.value&&(L.value||t.value.children&&t.value.children.length>0)),Z=m(()=>{if(!p.value||!t.value)return{ReportUserContent:!1,MetapostComment:!1,MetapostLike:!1,MetapostUpdateOwn:!1,MetapostDeleteOwn:!1,MetapostModerate:!1};const{brandCategoryId:s}=t.value,u=p.value.id;return{ReportUserContent:g.isCurrentUserAllowedTo("ReportUserContent",s,u),MetapostComment:g.isCurrentUserAllowedTo("MetapostComment",s,u),MetapostLike:g.isCurrentUserAllowedTo("MetapostLike",s,u),MetapostUpdateOwn:g.isCurrentUserAllowedTo("MetapostUpdateOwn",s,u),MetapostDeleteOwn:g.isCurrentUserAllowedTo("MetapostDeleteOwn",s,u),MetapostModerate:g.isCurrentUserAllowedTo("MetapostModerate",s,u)}}),x=m(()=>t.value&&t.value.attachments?t.value.attachments.filter(s=>s.mimeType==="application/pdf"):[]),pe=m(()=>t.value?{id:t.value.id,parentId:t.value.parentId,ownerId:t.value.user.id,userId:Q.value.id,hostUserId:Q.value.externalId,categories:t.value.metapostCategories.map(s=>s.label)}:null),j=m(()=>{if(!p.value||!t.value)return null;const s=_.resolve({name:"details",params:{brandCategoryId:S.getCurrentBrandCategoryId,component:p.value.semanticUri,details:t.value.semanticUri}});return`https://${N.value.bepDomain}${s.href}`});async function l(s=!1){if(O.value=!0,!t.value||s)try{await U.fetchMetaPost($.id,p.value)}catch(u){if((u.response?.status||u.statusCode)===410)throw Le({statusCode:410,fatal:!0})}O.value=!1}Se(()=>$.id,s=>{s==null||isNaN(s)||(l(),P(t.value,p.value,X.value,j.value))}),Se(Q,async(s,u)=>{if(!u&&s){await l(!0);return}$.cachedMetapost||await l()});async function C(){L.value=!0,await be(),ue.value=!1,await be(),ue.value=!0,k.track("comment:metapost:click",{id:t.value.id,parentId:t.value.parentId})}function ee(){_.push({name:"component",params:{brandCategoryId:S.getCurrentBrandCategoryId,component:w.getCurrentComponent.semanticUri,productPairingListType:h?.params?.productPairingListType}});let s;switch(b.value){case"Routine":s=a("routine.routine_deleted");break;case"Gallery":s=a("gallery.picture_deleted");break;case"ProductPairingFeed":s=a("product_pairing.look_deleted");break;case"Blog":s=a("blog.article_deleted");break;case"PostFeed":s=a("post_feed.post_deleted");break}setTimeout(()=>{y.success(s)},500)}function te(){y.success(a("metapost.report_sent"))}function se(s){D.value=s.user}async function ne(){k.track("metapost:like:click",pe.value),await U.likeMetaPost(t.value.id)}async function oe(){k.track("metapost:unlike:click",pe),await U.unlikeMetaPost(t.value.id)}function ae(){q.$emit("popup_open","LikesDetails",a("popup_likes_details.liked_by"),{metapostId:t.value.id})}async function le(){if(!K.value)try{!d.value&&!t.value.isTranslated&&(K.value=!0,await U.translateMetapost(t.value.id)),d.value=!d.value}catch{y.error(a("general.an_error_occured"))}finally{K.value=!1}}if(!$.cachedMetapost)try{[i,H]=Ye(()=>l()),await i,H()}catch{throw Le({statusCode:404,fatal:!0})}return P(t.value,p.value,X.value,j.value),(s,u)=>{const E=He,re=Je,J=Ke;return c(),f(G,null,[e(b)==="Routine"?(c(),f(G,{key:0},[e(t)?(c(),f("div",{key:0,class:n(s.$style.container)},[o(e(fe),{metapost:e(t),component:e(p),"show-user-info":r.showUserInfo,link:r.link,"delete-wordings":{title:e(a)("routine.delete_routine"),message:e(a)("routine.do_you_really_want_to_delete_your_routine"),cancel:e(a)("routine.cancel"),confirm:e(a)("routine.delete")},onDeleted:ee,onReported:te},null,8,["metapost","component","show-user-info","link","delete-wordings"]),I("div",{class:n(s.$style.content)},[o(e(ge),{metapost:e(t),class:n(s.$style.section),link:r.link,"is-translated":e(d)},null,8,["metapost","class","link","is-translated"]),o(e(ve),{metapost:e(t),class:n(s.$style.section),link:r.link,"is-translated":e(d)},null,8,["metapost","class","link","is-translated"]),o(e(_e),{metapost:e(t),class:n(s.$style.section),"is-translated":e(d)},null,8,["metapost","class","is-translated"]),o(e(Fe),{metapost:e(t),class:n(s.$style.section)},null,8,["metapost","class"]),o(e(Ce),{products:e(t).products,class:n(s.$style.section)},null,8,["products","class"]),o(e(ke),{"custom-fields":e(t).customFields,"show-full-text":"",class:n(s.$style.section),"is-translated":e(d)},null,8,["custom-fields","class","is-translated"]),o(e(me),{categories:e(t).metapostCategories,"is-opened-by-default":!s.$device.isMobile,class:n(s.$style.section),"is-translated":e(d)},null,8,["categories","is-opened-by-default","class","is-translated"]),o(e(he),{pdfs:e(x),class:n(s.$style.section),"metapost-id":e(t).id},null,8,["pdfs","class","metapost-id"])],2),I("div",{class:n(s.$style.footer)},[o(E,{"nb-likes":e(t).nbLikes,"nb-comments":e(t).nbComments,"current-user-has-liked":e(t).currentUserHasLiked,"share-url":e(j),"metapost-categories":e(t).metapostCategories,"display-likes-details":!0,"show-comment-button":e(W),"is-translated":e(d),onLike:ne,onUnlike:oe,onComment:C,onOpenLikesDetails:ae,onTranslate:le},null,8,["nb-likes","nb-comments","current-user-has-liked","share-url","metapost-categories","show-comment-button","is-translated"]),e(Y)?(c(),f("div",{key:0,class:n(s.$style.commentContainer)},[u[3]||(u[3]=I("hr",null,null,-1)),o(e(de),{shape:"input",class:n(s.$style.commentInput),component:e(p),"meta-post-group-identifier":{componentId:e(p).id,parentId:e(t).id},settings:e(p).settings?e(p).settings.children:null,"button-text":e(a)("general.add_a_comment"),"user-to-reply":e(D),onResetUserToReply:u[0]||(u[0]=A=>D.value=null)},null,8,["class","component","meta-post-group-identifier","settings","button-text","user-to-reply"])],2)):v("",!0),e(t).children&&e(t).children.length>0?(c(),R(e(ye),{key:1,"cached-permissions":e(Z),post:e(t),onReply:se},null,8,["cached-permissions","post"])):v("",!0)],2)],2)):v("",!0)],64)):v("",!0),e(b)==="Gallery"?(c(),f(G,{key:1},[!e(O)&&e(t)?(c(),f("div",{key:0,class:n(s.$style.container)},[e(t).visibility==="Accepted"||e(b)==="Moderation"?(c(),f(G,{key:0},[o(e(fe),{metapost:e(t),component:e(p),"show-user-info":r.showUserInfo,link:r.link,"delete-wordings":{title:e(a)("gallery.delete_picture"),message:e(a)("gallery.do_you_really_want_to_delete_your_picture"),cancel:e(a)("gallery.cancel"),confirm:e(a)("gallery.delete")},onDeleted:ee,onReported:te},null,8,["metapost","component","show-user-info","link","delete-wordings"]),o(re,{items:e(X).map((A,F)=>({...A,alt:`${s.$getMetapostMetaTitle(e(t))}${F>0?" - "+(F+1):""}`})),"display-dots":""},null,8,["items"]),I("div",{class:n(s.$style.content)},[o(e(ge),{metapost:e(t),class:n(s.$style.section),link:r.link,"is-translated":e(d)},null,8,["metapost","class","link","is-translated"]),o(e(ve),{metapost:e(t),class:n(s.$style.section),link:r.link,"is-translated":e(d)},null,8,["metapost","class","link","is-translated"]),o(e(_e),{metapost:e(t),class:n(s.$style.section),"is-translated":e(d)},null,8,["metapost","class","is-translated"]),o(e(Ce),{products:e(t).products,class:n(s.$style.section)},null,8,["products","class"]),o(e(ke),{"custom-fields":e(t).customFields,"show-full-text":"",class:n(s.$style.section),"is-translated":e(d)},null,8,["custom-fields","class","is-translated"]),o(e(me),{categories:e(t).metapostCategories,"is-opened-by-default":!s.$device.isMobile,class:n(s.$style.section),"is-translated":e(d)},null,8,["categories","is-opened-by-default","class","is-translated"]),o(e(he),{pdfs:e(x),class:n(s.$style.section),"metapost-id":e(t).id},null,8,["pdfs","class","metapost-id"])],2),I("div",{class:n(s.$style.footer)},[o(E,{"nb-likes":e(t).nbLikes,"nb-comments":e(t).nbComments,"current-user-has-liked":e(t).currentUserHasLiked,"share-url":e(j),"metapost-categories":e(t).metapostCategories,"pinterest-source":e(t).attachments&&e(t).attachments.length>0?e(t).attachments[0].url:null,"display-likes-details":!0,"show-comment-button":e(W),"is-translated":e(d),onLike:ne,onUnlike:oe,onComment:C,onOpenLikesDetails:ae,onTranslate:le},null,8,["nb-likes","nb-comments","current-user-has-liked","share-url","metapost-categories","pinterest-source","show-comment-button","is-translated"]),e(Y)?(c(),f("div",{key:0,class:n(s.$style.comment)},[u[4]||(u[4]=I("hr",null,null,-1)),o(e(de),{shape:"input",component:e(p),"meta-post-group-identifier":{componentId:e(p).id,parentId:e(t).id},settings:e(p).settings?e(p).settings.children:null,"button-text":e(a)("general.add_a_comment"),"user-to-reply":e(D),onResetUserToReply:u[1]||(u[1]=A=>D.value=null)},null,8,["component","meta-post-group-identifier","settings","button-text","user-to-reply"])],2)):v("",!0),o(e(ye),{"cached-permissions":e(Z),post:e(t),onReply:se},null,8,["cached-permissions","post"])],2)],64)):v("",!0),e(t).visibility==="DeletedByAuthor"?(c(),f(G,{key:1},[xe(Oe(e(a)("chatroom.this_message_has_been_deleted_by_its_author")),1)],64)):v("",!0)],2)):!e(O)&&!e(t)?(c(),f("div",Mt,Oe(e(a)("chatroom.this_message_has_been_deleted_by_its_author")),1)):(c(),R(J,{key:2}))],64)):v("",!0),e(b)==="ProductPairingFeed"?(c(),f(G,{key:2},[e(t)?(c(),f("div",{key:0,class:n(s.$style.container)},[o(e(fe),{metapost:e(t),component:e(p),"show-user-info":r.showUserInfo,link:r.link,"delete-wordings":{title:e(a)("product_pairing.delete_look"),message:e(a)("product_pairing.do_you_really_want_to_delete_your_look"),cancel:e(a)("product_pairing.cancel"),confirm:e(a)("product_pairing.delete")},onDeleted:ee,onReported:te},null,8,["metapost","component","show-user-info","link","delete-wordings"]),I("div",{class:n(s.$style.content)},[o(e(Ce),{products:e(t).products},null,8,["products"]),o(e(ge),{metapost:e(t),class:n(s.$style.section),link:r.link,"is-translated":e(d)},null,8,["metapost","class","link","is-translated"]),o(e(ve),{metapost:e(t),class:n(s.$style.section),link:r.link,"is-translated":e(d)},null,8,["metapost","class","link","is-translated"]),o(e(_e),{metapost:e(t),class:n(s.$style.section),"is-translated":e(d)},null,8,["metapost","class","is-translated"]),o(e(Fe),{metapost:e(t),class:n(s.$style.section)},null,8,["metapost","class"]),o(e(ke),{"custom-fields":e(t).customFields,"show-full-text":"",class:n(s.$style.section),"is-translated":e(d)},null,8,["custom-fields","class","is-translated"]),o(e(me),{categories:e(t).metapostCategories,"is-opened-by-default":!s.$device.isMobile,class:n(s.$style.section),"is-translated":e(d)},null,8,["categories","is-opened-by-default","class","is-translated"]),o(e(he),{pdfs:e(x),class:n(s.$style.section),"metapost-id":e(t).id},null,8,["pdfs","class","metapost-id"])],2),I("div",{class:n(s.$style.footer)},[o(E,{"nb-likes":e(t).nbLikes,"nb-comments":e(t).nbComments,"current-user-has-liked":e(t).currentUserHasLiked,"share-url":e(j),"metapost-categories":e(t).metapostCategories,"display-likes-details":!0,"show-comment-button":e(W),"is-translated":e(d),onLike:ne,onUnlike:oe,onComment:C,onOpenLikesDetails:ae,onTranslate:le},null,8,["nb-likes","nb-comments","current-user-has-liked","share-url","metapost-categories","show-comment-button","is-translated"]),e(Y)?(c(),f("div",{key:0,class:n(s.$style.commentContainer)}
2,[u[5]||(u[5]=I("hr",null,null,-1)),o(e(de),{shape:"input",class:n(s.$style.commentInput),component:e(p),"meta-post-group-identifier":{componentId:e(p).id,parentId:e(t).id},settings:e(p).settings?e(p).settings.children:null,"button-text":e(a)("general.add_a_comment"),"user-to-reply":e(D),onResetUserToReply:u[2]||(u[2]=A=>D.value=null)},null,8,["class","component","meta-post-group-identifier","settings","button-text","user-to-reply"])],2)):v("",!0),o(e(ye),{"cached-permissions":e(Z),post:e(t),onReply:se},null,8,["cached-permissions","post"])],2)],2)):v("",!0)],64)):v("",!0),e(b)==="Blog"&&e(t)?(c(),R(e(Ct),{key:3,metapost:e(t)},null,8,["metapost"])):v("",!0),e(b)==="PostFeed"?(c(),f("div",Tt,[!e(O)&&e(t)!==null?(c(),R(e(lt),{key:0,metapost:e(t),class:n(s.$style.post),"cached-permissions":e(Z),link:r.link},null,8,["metapost","class","cached-permissions","link"])):v("",!0),e(O)?(c(),R(J,{key:1})):v("",!0)])):v("",!0)],64)}}},At={$style:wt},Ge=Me(Ut,[["__cssModules",At]]),Jt=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"})),Dt="_details_container",Rt="_details_content",Pt="_details_loader",Bt="_details_error",St="_details_rebound",Lt={container:Dt,content:Rt,loader:Pt,error:Bt,rebound:St},Ot={__name:"[details]",setup(r){const i=De(),H=Ue(),$=Ae(),P=Te(),{getCurrentComponentId:h,getCurrentComponentType:_,getCurrentComponent:V,isMetapostChannel:U}=ce(i),{isHeadless:w}=ce(P),{getCurrentBrandCategoryId:B}=ce($),{isCurrentUserAllowedTo:g}=H;we();const S=m(()=>{const a=N.value;return a?g(a,B.value,h.value):!1}),N=m(()=>i.getPermissionTypeNeededForComponentType(_.value)),M=m(()=>{const a=_.value;return a?ot({loader:()=>at(Object.assign({
2"../../../../../../components/tokyComponents/CContestId.vue":()=>ie(()=>import("./85DIx5yB.js").then(k=>k.C),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43]),import.meta.url),
2"../../../../../../components/tokyComponents/CEventsId.vue":()=>ie(()=>import("./85DIx5yB.js").then(k=>k.a),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43]),import.meta.url),
2"../../../../../../components/tokyComponents/CProductFeedId.vue":()=>ie(()=>import("./MbgbJGxV.js").then(k=>k.c),__vite__mapDeps([23,3,1,4,24,16,8,6,7,9,10,11,12,17,25,15,18,26,27,28,29,30,31,32,33,34,5,13,35,36,37,38,39,40,41,42]),import.meta.url),
2"../../../../../../components/tokyComponents/CProductTestingCampaignId.vue":()=>ie(()=>import("./DfK0Fulr.js"),__vite__mapDeps([44,3,1,4,24,16,8,6,7,9,10,11,12,17,25,45,15,18,46,47,48,23,26,27,28,29,30,31,32,33,34,5,13,35,36,37,38,39,40,41,42,49]),import.meta.url),
2"../../../../../../components/tokyComponents/CRewardShopId.vue":()=>ie(()=>import("./DX6vfA_C.js").then(k=>k.a),__vite__mapDeps([50,3,1,4,51,52,8,6,7,9,10,11,12,30,15,16,17,18,28,29,31,53]),import.meta.url)
2}),`../../../../../../components/tokyComponents/C${a}Id.vue`,9)}):null}),b=m(()=>!w.value&&_.value!=="Events"&&_.value!=="ProductTestingCampaign"&&_.value!=="ProductTesting"&&_.value!=="Contest");return tt(async()=>{w.value||S.value||V.value||await i.fetchComponentsForBrandCategory({brandCategoryId:B.value})}),(a,k)=>{const y=We,q=Ge,L=nt;return c(),f("div",{class:n(a.$style.container)},[e(S)?(c(),f("div",{key:1,class:n(a.$style.content)},[e(U)(e(_))?(c(),R(q,{key:0,id:(a._.provides[Ee]||a.$route).meta.detailsId},null,8,["id"])):(c(),R(st(e(M)),{key:1,id:(a._.provides[Ee]||a.$route).meta.detailsId,class:n(a.$style.component)},null,8,["id","class"])),e(b)?(c(),R(L,{key:2,class:n(a.$style.rebound)},null,8,["class"])):v("",!0)],2)):(c(),f("div",{key:0,class:n(a.$style.error)},[o(y,{"component-id":e(h),"permission-type":e(N)},null,8,["component-id","permission-type"])],2))],2)}}},Et={$style:Lt},Ft=Me(Ot,[["__cssModules",Et]]),Kt=Object.freeze(Object.defineProperty({__proto__:null,default:Ft},Symbol.toStringTag,{value:"Module"}));export{Jt as C,Kt as _};

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.