1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CAmYHD2h.js","./Cm2J8wJT.js","./Cw52Jb_b.js","./Dropzone.BkW6QGI3.css","./oPzPbeIq.js","./Dv5-W7ly.js","./entry.xg9melRb.css","./BCn1gcA2.js","./RegisterWidgetWithLogin.gLh_Bv0E.css"])))=>i.map(i=>d[i]); 2import{d as e,u as t,a as s,_ as n,e as o,x as a,c as r,y as i,i as l,j as c,k as m}from"./Cm2J8wJT.js";import d from"./CAmYHD2h.js";import{s as u}from"./C824MC9Q.js";import{ah as p,J as h,L as g,M as y,V as b,S as _,a4 as k,ak as v,$ as w,T as f,U as C,Q as z,a5 as M,al as x,O as I,aj as j,R as O,c as $}from"./Cw52Jb_b.js";import{u as T}from"./uLRyIPMZ.js";import{u as L}from"./vNA1_wLl.js";import{_ as P,a as A,b as S}from"./KA5JGK9n.js";import"./oPzPbeIq.js";import"./Dv5-W7ly.js";import"./BCn1gcA2.js";const U=e({mounted(){null!=this.$props.autoScrollSpeedMs&&u((()=>{this.scrollCarousel(1)}),this.$props.autoScrollSpeedMs)},methods:{scrollCarousel(e){switch(!0){case this.currentImageIndex+e>this.images.length-1:this.currentImageIndex=0;break;case this.currentImageIndex+e<0:this.currentImageIndex=this.images.length;break;default:this.currentImageIndex=this.currentImageIndex+e}var t=this.$refs.imagesWrapper,s=t.getBoundingClientRect().width;t.scrollLeft=this.currentImageIndex*s}},data:()=>({currentImageIndex:0}),props:{images:{type:Array},autoScrollSpeedMs:{type:Number,required:!1},showNavigation:{type:Boolean,required:!1}}},"$u4GTuekbmv"),N={key:0,class:"carousel"},Z={key:0,class:"navigation"},W={class:"images-wrapper",ref:"imagesWrapper"},B={class:"image"},R=["src","alt"],q=["src","alt"];const V=p(U,[["render",function(e,t,s,n,o,a){return e.images.length>0?(h(),g("div",N,[null==e.autoScrollSpeedMs||1==e.showNavigation?(h(),g("div",Z,[y("div",{class:"prev",onClick:t[0]||(t[0]=t=>e.scrollCarousel(-1))},t[2]||(t[2]=[y("svg",{class:"carousel_icon",viewBox:"0 0 24 24",role:"img","aria-label":"Arrow pointing to the left"},[y("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})],-1)])),y("div",{class:"next",onClick:t[1]||(t[1]=t=>e.scrollCarousel(1))},t[3]||(t[3]=[y("svg",{class:"carousel_icon",viewBox:"0 0 24 24",role:"img","aria-label":"Arrow pointing to the right"},[y("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})],-1)]))])):b("",!0),y("div",W,[(h(!0),g(_,null,k(e.images,((e,t)=>(h(),g("div",B,[y("img",{class:"web-image",src:e.imageUrl,alt:e.id},null,8,R),y("img",{class:"mobile-image",src:e.imageMobileUrl,alt:e.id},null,8,q)])))),256))],512)])):b("",!0)}],["__scopeId","data-v-985a4b36"]]),E=e({name:"ObituariesCommentsSingle",components:{},props:{content:{type:Array,default:()=>[{id:1,userId:null,author:"",content:"",vote_up:0,vote_down:0,replied_to:null,published_at:"",reported:!1,report_reason:null}]},obituaryId:{type:String,default:null},user:{type:Object,default:()=>null},settings:{type:Object,default:null},repliedTo:{type:Array,default:null},nestIndex:{type:Number,default:null},authComments:{type:Boolean,default:!1},token:{default:null}},data:()=>({helpers:{pending:!1,voted:[],reported:[],replyingTo:null,reportingId:null,isMobile:!1,nestedCommentsLimit:3,comment:{pending:!0,submitted:!1,error:!1,errorMessage:null,successMessage:null,reported:!1},report_content:{pending:!1,submitted:!1,error:!1,errorMessage:null,successMessage:null}},comment:{content:{value:null,required:!0,valid:!1,submitted:!1,condition(e){return this.value&&this.value.length>1},errorMessage:"Komentarz musi posiadaÄ co najmniej dwa znaki.",successMessage:"",reported:!1},author:{value:null,required:!0,valid:!1,submitted:!1,condition(e){return this.value&&this.value.length>1},errorMessage:"Podpis musi posiadaÄ co najmniej dwa znaki.",successMessage:""}},toggledComments:[],report_content:{content:{value:null,required:!0,valid:!1,submitted:!1,condition(e){return this.value&&this.value.length>9},errorMessage:"Uzasadnienie zgÅoszenia musi posiadaÄ co najmniej dziesiÄÄ znaków.",successMessage:"",reported:!1}}}),mounted(){const e=this;e.helpers.comment.pending=!1,e.user&&e.user.nick&&(e.comment.author.value=e.user.nick,e.comment.author.valid=!0),window&&(e.helpers.isMobile=window.innerWidth<1290),void 0!==window&&window.console.log("TOKEN: "+this.token)},methods:{handleCommentToggle(e){-1===this.toggledComments.indexOf(e)?this.toggledComments.push(e):this.toggledComments.splice(this.toggledComments.indexOf(e),1)},replyTo(e){!this.authComments||this.user&&this.user.id?this.helpers.replyingTo=e:location.replace(`/login?redirect=${location.href}`)},reportComment(e){this.helpers.reportingId=e},ifReplies(e,t){return this.content.find((s=>s.replied_to===e||s.replied_to===t))},getReplies(e,t){return this.content?this.content.filter((s=>s.replied_to===e||s.replied_to===t)):[]},clearSubmitted(){this.helpers.comment.submitted=!1,this.helpers.comment.error=!1},voteUp(e){const s=this,n=t(`mp_cv_${e}`);if(n.value)return;const o={commentId:e,obituaryId:s.obituaryId,type:"voteup"},a=s.content.findIndex((t=>t.id===e));s.request({method:"post",url:"/api/obituaries/comments/vote",headers:{"Content-Type":"application/json"},json:!0,data:JSON.stringify(o,null,2)},(e=>{s.content[a].vote_up+=1,n.value=1}),(t=>{s.helpers.voted.push(e)}))},voteDown(e){const s=t(`mp_cv_${e}`);if(s.value)return;const n=this,o={commentId:e,obituaryId:n.obituaryId,type:"votedown"},a=n.content.findIndex((t=>t.id===e));n.request({method:"post",url:"/api/obituaries/comments/vote",headers:{"Content-Type":"application/json"},json:!0,data:JSON.stringify(o,null,2)},(e=>{n.content[a].vote_down+=1,s.value=1}),(t=>{n.helpers.voted.push(e)}))},async submitComment(e){const t=this;try{const s=t.checkIfValid(t.comment),n=!(t.user&&!t.user.hasOwnProperty("marketing"))&&t.checkForLink(t.comment.content.value),o=!(t.user&&!t.user.hasOwnProperty("marketing"))&&t.checkForLink(t.comment.author.value);if(!s||n||o)return void(t.helpers.comment={pending:!1,submitted:!0,error:!0,errorMessage:"BÅÄ d dodawania komentarza. Komentarz nie może zawieraÄ adresów URL. Prosimy odÅwieżyÄ stronÄ i spróbowaÄ ponownie dodaÄ komentarz.",successMessage:null});{t.helpers.comment.pending=!0,t.helpers.comment.submitted=!0;const s={token:this.token};t.request({method:"post",url:"/api/captcha",headers:{"Content-Type":"application/json"},json:!0,data:JSON.stringify(s,null,2)},(s=>{if(s&&s.success){const s=t.comment.content.value,n=t.comment.author.value,o=t.user&&t.user.id||null,a=e||null,r={content:s,author:n,obituaryUid:t.obituaryId,userId:o,replied_to:a};t.request({method:"post",url:"/api/obituaries/comments/post",headers:{"Content-Type":"application/json"},json:!0,data:JSON.stringify(r,null,2)},(e=>{t.helpers.comment={pending:!1,submitted:!0,error:!1,errorMessage:null,successMessage:"Komentarz dodany! W ciÄ gu 30 sekund pojawi siÄ na liÅcie komentarzy."},setTimeout((()=>{location.reload()}),2e3)}),(e=>{t.helpers.comment={pending:!1,submitted:!0,error:!0,errorMessage:"BÅÄ d dodawania komentarza. Prosimy spróbowaÄ ponownie",successMessage:null}}))}else t.helpers.comment={pending:!1,submitted:!0,error:!0,errorMessage:"BÅÄ d dodawania komentarza (captcha). Prosimy spróbowaÄ ponownie",successMessage:null}}),(e=>{t.helpers.comment={pending:!1,submitted:!0,error:!0,successMessage:null},t.helpers.comment.errorMessage="Request failed with status code 405"===e?"Prosimy odÅwieżyÄ stronÄ i spróbowaÄ ponownie dodaÄ komentarz.":"BÅÄ d dodawania komentarza. Prosimy spróbowaÄ ponownie"}))}}catch(s){}},async report(e){const t=this;try{if(t.checkIfValid(t.report_content)){t.helpers.report_content.pending=!0,t.helpers.report_content.submitted=!0;let n=null;try{n=this.token}catch(s){return void(t.helpers.report_content={pending:!1,submitted:!0,error:!0,errorMessage:"BÅÄ d zgÅaszania komentarza do moderacji. Prosimy spróbowaÄ ponownie",successMessage:null})}const o={token:n};t.request({method:"post",url:"/api/captcha",headers:{"Content-Type":"application/json"},json:!0,data:JSON.stringify(o,null,2)},(s=>{{const s=t.report_content.content.value,n={commentId:e,content:s};t.request({method:"post",url:"/api/obituaries/comments/report",headers:{"Content-Type":"application/json"},json:!0,data:JSON.stringify(n,null,2)},(e=>{t.helpers.report_content={pending:!1,submitted:!0,error:!1,errorMessage:null,successMessage:"Komentarz zostaÅ pomyÅlnie zgÅoszony do moderacji."},setTimeout((()=>{location.reload()}),2e3)}),(e=>{t.helpers.report_content={pending:!1,submitted:!0,error:!0,errorMessage:"BÅÄ d zgÅaszania komentarza do moderacji. Prosimy spróbowaÄ ponownie",successMessage:null}}))}}),(e=>{t.helpers.report_content={pending:!1,submitted:!0,error:!0,errorMessage:"BÅÄ d zgÅaszania komentarza do moderacji. Prosimy spróbowaÄ ponownie",successMessage:null}}))}}catch(n){}},commentContentParsed(e,t,s){let n=this.censorContent(t);return-1===this.toggledComments.indexOf(e)&&(n=n.slice(0,350),n=t.length>350?n+"...":n),n},alreadyVoted:e=>t(`mp_cv_${e}`).value}},"$PdIqrFoRIZ"),J={key:0},D={class:"single-comment"}
2,F={key:0},K={class:"d-flex"},H={class:"single-comment__avatar mt-1 me-4"},G={key:0,class:"single-comment__avatar d-flex"},Q={key:1},X={class:"w-100"},Y={class:"single-comment__header mb-1"},ee={key:0},te={key:0},se={key:2,class:"single-comment__content text-body mb-2 pb-2 border-bottom"},ne={key:0},oe={key:1},ae=["onClick"],re={key:3,class:"single-comment__content text-body mb-2 pb-2 border-bottom"},ie={key:0},le={key:1},ce=["onClick"],me={key:4,class:"d-flex justify-content-center align-items-center"},de={key:5,class:"d-flex justify-content-center align-items-center"},ue={key:6,class:"d-flex justify-content-between align-items-center"},pe={class:"single-comment__footer text-right"},he=["onClick"],ge={key:1,class:"single-comment__report text-body fw-bold"},ye=["onClick"],be={key:1,class:"single-comment__footer fw-bold text-right mt-1"},_e={key:2,class:"single-comment__footer text-right d-flex align-items-center"},ke=["onClick"],ve=["onClick"],we={key:1,class:"ms-4 mt-2 pb-4 border-bottom"},fe=["disabled"],Ce={class:"d-flex mb-3"},ze=["disabled"],Me={key:0,class:"btn new-comment__submit ms-3"},xe=["onClick"],Ie=["onClick"],je=["onClick"],Oe={key:0,class:"new-comment__error mt-3"},$e={key:1,class:"new-comment__error mt-3"},Te={key:2,class:"mt-3"},Le={key:0,class:"new-comment__success"},Pe={key:1,class:"new-comment__error"},Ae={key:2,class:"ms-4 mt-2 pb-4 border-bottom"},Se=["disabled"],Ue={class:"d-flex mb-3"},Ne={key:0,class:"btn new-comment__submit ms-3"},Ze=["onClick"],We=["onClick"],Be=["onClick"],Re={key:0,class:"new-comment__error mt-3"},qe={key:1,class:"mt-3"},Ve={key:0,class:"new-comment__success"},Ee={key:1,class:"new-comment__error"};const Je=p(E,[["render",function(e,t,s,n,o,a){const r=v("font-awesome-icon"),i=Je;return e.content?(h(),g("ul",J,[(h(!0),g(_,null,k(e.content.filter((t=>e.repliedTo?t.replied_to===e.repliedTo[0]||t.replied_to===e.repliedTo[1]:!t.replied_to)),((s,n)=>(h(),g("li",D,[7===n&&e.content.length>15&&e.settings&&e.settings.programmatic?(h(),g("div",F)):b("",!0),y("div",K,[y("div",H,[s.userId?(h(),g("span",G,[w(r,{icon:["fas","user-circle"],style:{"font-size":"30px"}}),w(r,{icon:["fas","check-circle"],class:"single-comment__avatar--check"})])):(h(),g("span",Q,[w(r,{icon:["fas","user-circle"],style:{"font-size":"30px"}})]))]),y("div",X,[y("p",Y,[f(C(e.$datefns.format(s.published_at,"dd MMMM yyyy HH:mm"))+" ",1),t[7]||(t[7]=y("strong",null,"|",-1)),t[8]||(t[8]=f(" ocena ")),y("span",null,"+"+C(s.vote_up),1),t[9]||(t[9]=f()),t[10]||(t[10]=y("strong",null,"/",-1)),t[11]||(t[11]=f()),y("span",null,"-"+C(s.vote_down),1)]),e.settings?(h(),g("p",{key:0,class:z(`single-comment__author ${s.userId&&"single-comment__author-dark"}`)},[f(C(e.commentContentParsed(s.id,s.author,e.settings))+" ",1),s.userId?(h(),g("span",ee,t[12]||(t[12]=[y("strong",null,"â¢",-1),f(" zalogowany")]))):b("",!0)],2)):(h(),g("p",{key:1,class:z(`single-comment__author ${s.userId&&"single-comment__author-dark"}`)},[f(C(e.commentContentParsed(s.id,s.author,null))+" ",1),s.userId?(h(),g("span",te,t[13]||(t[13]=[y("strong",null,"â¢",-1),f(" zalogowany")]))):b("",!0)],2)),e.settings?(h(),g("p",se,[s.userId?(h(),g("span",ne,[y("strong",null,C(e.commentContentParsed(s.id,s.content,e.settings)),1)])):(h(),g("span",oe,C(e.commentContentParsed(s.id,s.content,e.settings)),1)),s.content.length>350?(h(),g("span",{key:2,class:"single-comment__toggle",onClick:t=>e.handleCommentToggle(s.id)},C(-1===e.toggledComments.indexOf(s.id)?"RozwiÅ":"ZwiÅ"),9,ae)):b("",!0)])):(h(),g("p",re,[s.userId?(h(),g("span",ie,[y("strong",null,C(e.commentContentParsed(s.id,s.content,null)),1)])):(h(),g("span",le,C(e.commentContentParsed(s.id,s.content,e.settings)),1)),s.content.length>350?(h(),g("span",{key:2,class:"single-comment__toggle",onClick:t=>e.handleCommentToggle(s.id)},C(-1===e.toggledComments.indexOf(s.id)?"RozwiÅ":"ZwiÅ"),9,ce)):b("",!0)])),e.helpers.replyingTo&&e.helpers.replyingTo===s.id?(h(),g("div",me,[y("p",{class:"single-comment__footer cursor-pointer fw-bold py-1",onClick:t[0]||(t[0]=t=>e.replyTo(null))}," Odpowiadasz na komentarz ")])):b("",!0),e.helpers.reportingId&&e.helpers.reportingId===s.id?(h(),g("div",de,[y("p",{class:"single-comment__footer cursor-pointer fw-bold py-1",onClick:t[1]||(t[1]=t=>e.replyTo(null))}," ZgÅaszasz komentarz do moderacji ")])):(h(),g("div",ue,[y("p",pe,[s.reported||e.helpers.reported.includes(s.id
2)?b("",!0):(h(),g("span",{key:0,class:"single-comment__report",onClick:t=>e.reportComment(s.id)},"ZgÅoÅ",8,he)),e.helpers.reported.includes(s.id)?(h(),g("span",ge,"Komentarz zgÅoszony")):b("",!0)]),e.settings&&!e.settings.disable_comments&&e.nestIndex<e.helpers.nestedCommentsLimit?(h(),g("p",{key:0,class:"single-comment__footer cursor-pointer fw-bold text-right ms-auto me-3",onClick:t=>e.replyTo(s.id)}," Odpowiedz ",8,ye)):b("",!0),e.helpers.voted.includes(s.id)||e.alreadyVoted(s.id)?(h(),g("p",be," Już oceniono ")):(h(),g("p",_e,[t[14]||(t[14]=f(" OceÅ ")),y("span",{class:"single-comment__vote ms-2",onClick:t=>e.voteUp(s.id)},[w(r,{icon:["fas","arrow-circle-up"],class:"single-comment__vote__icon"})],8,ke),t[15]||(t[15]=f()),y("span",{class:"single-comment__vote",onClick:t=>e.voteDown(s.id)},[w(r,{icon:["fas","arrow-circle-down"],class:"single-comment__vote__icon"})],8,ve)]))]))])]),e.helpers.replyingTo&&e.helpers.replyingTo===s.id?(h(),g("div",we,[M(y("textarea",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.comment.content.value=t),class:"new-comment__content form-control mb-3",name:"content",rows:"3",placeholder:"Napisz komentarz",disabled:e.helpers.comment.pending||e.helpers.comment.submitted,onChange:t[3]||(t[3]=t=>{e.unsetFieldSubmitted(e.comment.content),e.clearSubmitted()})},null,40,fe),[[x,e.comment.content.value]]),y("div",Ce,[M(y("input",{"onUpdate:modelValue":t[4]||(t[4]=t=>e.comment.author.value=t),type:"text",class:"new-comment__author form-control",placeholder:"Twój nick",disabled:e.helpers.comment.pending||e.helpers.comment.submitted||e.user&&e.user.nick,onChange:t[5]||(t[5]=t=>{e.unsetFieldSubmitted(e.comment.author),e.clearSubmitted()})},null,40,ze),[[x,e.comment.author.value]]),e.helpers.comment.pending?(h(),g("button",Me,t[16]||(t[16]=[y("div",{class:"new-comment__loader spinner-border text-light",role:"status"},[y("span",{class:"sr-only"},"Loading...")],-1)]))):e.helpers.comment.submitted&&!e.helpers.comment.pending&&e.helpers.comment.successMessage?(h(),g("button",{key:1,type:"submit",class:"btn new-comment__submit ms-3",onClick:t=>e.submitComment(s.id)}," WysÅano! ",8,xe)):!e.helpers.comment.submitted||e.helpers.comment.pending||e.helpers.comment.successMessage?(h(),g("button",{key:3,type:"submit",class:"btn new-comment__submit ms-3",onClick:t=>e.submitComment(s.id)}," WyÅlij ",8,je)):(h(),g("button",{key:2,type:"submit",class:"btn new-comment__submit ms-3",onClick:t=>e.submitComment(s.id)}," BÅÄ
d ",8,Ie))]),t[17]||(t[17]=y("p",{class:"new-comment__agreement text-muted"}," WysyÅajÄ
c komentarz akceptujesz regulamin serwisu. Zgodnie z art. 24 ust. 1 pkt 3 i 4 ustawy o ochronie danych osobowych, podanie danych jest dobrowolne, Użytkownikowi przysÅuguje prawo dostÄpu do treÅci swoich danych i ich poprawiania. Jak to zrobiÄ dowiesz siÄ w zakÅadce polityka prywatnoÅci. ",-1)),e.comment.content.submitted&&!e.comment.content.valid?(h(),g("small",Oe,C(e.comment.content.errorMessage),1)):b("",!0),e.comment.author.submitted&&!e.comment.author.valid?(h(),g("small",$e,C(e.comment.author.errorMessage),1)):b("",!0),e.helpers.comment.submitted&&!e.helpers.comment.pending?(h(),g("div",Te,[e.helpers.comment.successMessage?(h(),g("p",Le,C(e.helpers.comment.successMessage),1)):(h(),g("p",Pe,C(e.helpers.comment.errorMessage),1))])):b("",!0)])):b("",!0),e.helpers.reportingId&&e.helpers.reportingId===s.id?(h(),g("div",Ae,[M(y("textarea",{"onUpdate:modelValue":t[6]||(t[6]=t=>e.report_content.content.value=t),class:"new-comment__content form-control mb-3",name:"report_content",rows:"3",placeholder:"Napisz uzasadnienie zgÅoszenia",disabled:e.helpers.report_content.pending||e.helpers.report_content.submitted},null,8,Se),[[x,e.report_content.content.value]]),y("div",Ue,[e.helpers.report_content.pending?(h(),g("button",Ne,t[18]||(t[18]=[y("div",{class:"new-comment__loader spinner-border text-light",role:"status"},[y("span",{class:"sr-only"},"Loading...")],-1)]))):e.helpers.report_content.submitted&&!e.helpers.report_content.pending&&e.helpers.report_content.successMessage?(h(),g("button",{key:1,type:"submit",class:"btn new-comment__submit ms-3",onClick:t=>e.report(s.id)}," WysÅano! ",8,Ze)):!e.helpers.report_content.submitted||e.helpers.report_content.pending||e.helpers.report_content.successMessage?(h(),g("button",{key:3,type:"submit",class:"btn new-comment__submit ms-3",onClick:t=>e.report(s.id)}," WyÅlij ",8,Be)):(h(),g("button",{key:2,type:"submit",class:"btn new-comment__submit ms-3",onClick:t=>e.report(s.id)}," BÅÄ
d ",8,We))]),e.report_content.content.submitted&&!e.report_content.content.valid?(h(),g("small",Re,C(e.report_content.content.errorMessage),1)):b("",!0),e.helpers.report_content.submitted&&!e.helpers.report_content.pending?(h(),g("div",qe,[e.helpers.report_content.successMessage?(h(),g("p",Ve,C(e.helpers.report_content.successMessage),1)):(h(),g("p",Ee,C(e.helpers.report_content.errorMessage),1))])):b("",!0)])):b("",!0),e.ifReplies(s.id,s.originalCommentId)&&e.nestIndex<e.helpers.nestedCommentsLimit?(h(),I(i,{key:3,user:e.user,settings:e.settings,token:e.token,content:e.content,"obituary-id":e.obituaryId,"replied-to":[s.id,s.originalCommentId],class:z("ms-4 mt-4"),nestIndex:e.nestIndex+1},null,8,["user","settings","token","content","obituary-id","replied-to","nestIndex"])):b("",!0)])))),256))])):b("",!0)}]]),De=Object.freeze(Object.defineProperty({__proto__:null,default:Je},Symbol.toStringTag,{value:"Module"})),Fe=e({name:"ObituariesComments",setup:()=>({store:s()}),components:{ObituariesCommentsSingle:j((()=>n((()=>Promise.resolve().then((()=>De))),void 0,import.meta.url)))},props:{obituaryId:{type:String,default:null},authComments:{type:Boolean,default:null},user:{type:Object,default:()=>null},settings:{type:Object,default:null},nestIndex:{type:Number,default:1},forceComments:{default:()=>!1}},data:()=>({generateToken:null,token:null,helpers:{pending:!1,voted:[],reported:[],replyingTo:null,comment:{pending:!0,submitted:!1,error:!1,errorMessage:null,successMessage:null,reported:!1}},comments:{pending:!0,error:{status:!1,messageClient:"",messageTech:""},list:[]},comment:{content:{value:null,required:!0,valid:!1,submitted:!1,condition(e){return this.value&&this.value.length>1},errorMessage:"Komentarz musi posiadaÄ co najmniej dwa znaki.",successMessage:"",reported:!1},author:{value:null,required:!0,valid:!1,submitted:!1,condition(e){return this.value&&this.value.length>1},errorMessage:"Podpis musi posiadaÄ co najmniej dwa znaki.",successMessage:""}}}),mounted(){const e=this;e.helpers.comment.pending=!1,e.user&&e.user.nick&&(e.comment.author.value=e.user.nick,e.comment.author.valid=!0),e.forceComments?(e.comments.pending=!1,e.helpers.comment.pending=!1,e.comments.list=e.forceComments):(e.comments.pending=!1,e.helpers.comment.pending=!1),this.setUpRecaptcha().then((e=>{e().then((e=>{this.token=e}))}))},methods:{async setUpRecaptcha(){try{const{generateToken:e}=await T("comment");return this.generateToken=e,e}catch(e){}},clearSubmitted(){this.helpers.comment.submitted=!1,this.helpers.comment.error=!1},async submitComment(){const e=this;try{const s=e.checkIfValid(e.comment),n=!(e.user&&!e.user.hasOwnProperty("marketing"))&&e.checkForLink(e.comment.content.value),o=!(e.user&&!e.user.hasOwnProperty("marketing"))&&e.checkForLink(e.comment.author.value);if(!s||n||o)return void(e.helpers.comment={pending:!1,submitted:!0,error:!0,errorMessage:"BÅÄ
d dodawania komentarza. Komentarz nie może zawieraÄ adresów URL. Prosimy odÅwieżyÄ stronÄ i spróbowaÄ ponownie dodaÄ komentarz.",successMessage:null});{e.helpers.comment.pending=!0,e.helpers.comment.submitted=!0;let s=null;try{s=await this.generateToken()}catch(t){return void(e.helpers.comment={pending:!1,submitted:!0,error:!0,errorMessage:"BÅÄ
d dodawania komentarza (captcha). Prosimy spróbowaÄ ponownie",successMessage:null})}const n={token:s};e.request({method:"post",url:"/api/captcha",headers:{"Content-Type":"application/json"},json:!0,data:JSON.stringify(n,null,2)},(t=>
2{if(t&&t.success){const t=e.comment.content.value,s=e.comment.author.value,n=e.user&&e.user.id||null,o=e.helpers.replyingTo||null,a={content:t,author:s,obituaryUid:e.obituaryId,userId:n,replied_to:o};e.request({method:"post",url:"/api/obituaries/comments/post",headers:{"Content-Type":"application/json"},json:!0,data:JSON.stringify(a,null,2)},(t=>{e.helpers.comment={pending:!1,submitted:!0,error:!1,errorMessage:null,successMessage:"Komentarz dodany! W ciÄ
gu 30 sekund pojawi siÄ na liÅcie komentarzy."},setTimeout((()=>{location.reload()}),2e3)}),(t=>{e.helpers.comment={pending:!1,submitted:!0,error:!0,errorMessage:"BÅÄ
d dodawania komentarza. Prosimy spróbowaÄ ponownie",successMessage:null}}))}else e.helpers.comment={pending:!1,submitted:!0,error:!0,errorMessage:"BÅÄ
d dodawania komentarza (captcha). Prosimy spróbowaÄ ponownie",successMessage:null}}),(t=>{e.helpers.comment={pending:!1,submitted:!0,error:!0,successMessage:null},e.helpers.comment.errorMessage="Request failed with status code 405"===t?"Prosimy odÅwieżyÄ stronÄ i spróbowaÄ ponownie dodaÄ komentarz.":"BÅÄ
d dodawania komentarza. Prosimy spróbowaÄ ponownie"}))}}catch(s){}}}},"$qL0GVryKvO"),Ke={class:"comments"},He={class:"d-flex justify-content-between comments__header mb-3"},Ge={class:"comments__title"},Qe={key:0,class:"new-comment p-4 mb-4"},Xe=["placeholder","disabled"],Ye={class:"d-flex mb-3"},et=["disabled"],tt={key:0,class:"btn new-comment__submit ms-3"},st={key:1,type:"submit",class:"btn new-comment__submit ms-3"},nt={key:2,type:"submit",class:"btn new-comment__submit ms-3"},ot={key:0,class:"new-comment__error mt-3"},at={key:1,class:"new-comment__error mt-3"},rt={key:2,class:"mt-3"},it={key:0,class:"new-comment__success"},lt={key:1,class:"new-comment__error"},ct={key:1,class:"text-center comments__loader"};const mt=p(Fe,[["render",function(e,t,s,n,o,a){const r=Je;return h(),g("div",Ke,[y("div",He,[y("h6",Ge,[t[5]||(t[5]=y("strong",null,"Komentarze",-1)),f(" ("+C(e.comments.list?e.comments.list.length:0)+") ",1)])]),e.settings&&!e.settings.disable_comments?(h(),g("div",Qe,[M(y("textarea",{"onUpdate:modelValue":t[0]||(t[0]=t=>e.comment.content.value=t),class:"new-comment__content form-control mb-3",name:"content",rows:"3",placeholder:e.authComments&&!e.user?"Komentarze tylko dla zalogowanych użytkowników":"Napisz komentarz",disabled:e.helpers.comment.pending||e.helpers.comment.submitted||e.authComments&&!e.user,onChange:t[1]||(t[1]=t=>{e.unsetFieldSubmitted(e.comment.content),e.clearSubmitted()})},null,40,Xe),[[x,e.comment.content.value]]),y("div",Ye,[M(y("input",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.comment.author.value=t),type:"text",class:"new-comment__author form-control",placeholder:"Twój nick",disabled:e.helpers.comment.pending||e.helpers.comment.submitted||e.user&&e.user.nick||e.authComments&&!e.user,onChange:t[3]||(t[3]=t=>{e.unsetFieldSubmitted(e.comment.author),e.clearSubmitted()})},null,40,et),[[x,e.comment.author.value]]),e.helpers.comment.pending?(h(),g("button",tt,t[6]||(t[6]=[y("div",{class:"new-comment__loader spinner-border text-light",role:"status"},[y("span",{class:"sr-only"},"Loading...")],-1)]))):e.helpers.comment.submitted&&!e.helpers.comment.pending&&e.helpers.comment.successMessage?(h(),g("button",st," WysÅano! ")):!e.helpers.comment.submitted||e.helpers.comment.pending||e.helpers.comment.successMessage?(h(),g("button",{key:3,type:"submit",class:"btn new-comment__submit ms-3",onClick:t[4]||(t[4]=t=>e.submitComment())}," WyÅlij ")):(h(),g("button",nt," BÅÄ
d "))]),t[7]||(t[7]=y("p",{class:"new-comment__agreement text-muted"}," WysyÅajÄ
c komentarz akceptujesz regulamin serwisu. Zgodnie z art. 24 ust. 1 pkt 3 i 4 ustawy o ochronie danych osobowych, podanie danych jest dobrowolne, Użytkownikowi przysÅuguje prawo dostÄpu do treÅci swoich danych i ich poprawiania. Jak to zrobiÄ dowiesz siÄ w zakÅadce polityka prywatnoÅci. ",-1)),e.comment.content.submitted&&!e.comment.content.valid?(h(),g("small",ot,C(e.comment.content.errorMessage),1)):b("",!0),e.comment.author.submitted&&!e.comment.author.valid?(h(),g("small",at,C(e.comment.author.errorMessage),1)):b("",!0),e.helpers.comment.submitted&&!e.helpers.comment.pending?(h(),g("div",rt,[e.helpers.comment.successMessage?(h(),g("p",it,C(e.helpers.comment.successMessage),1)):(h(),g("p",lt,C(e.helpers.comment.errorMessage),1))])):b("",!0)])):b("",!0),!e.comments||e.comments.pending?(h(),g("div",ct,t[8]||(t[8]=[y("span",{class:"spinner-border"},null,-1),y("span",{class:"comments__loader-text text-muted"},"Wczytywanie komentarzy",-1)]))):(h(),g(_,{key:2},[e.comments&&e.comments.list&&e.comments.list.length>0?(h(),I(r,{key:0,content:e.comments.list,user:e.user,settings:e.settings,"obituary-id":e.obituaryId,"replied-to":null,"auth-comments":e.authComments,class:z("ms-0 ms-lg-3"),nestIndex:1,token:e.token},null,8,["content","user","settings","obituary-id","auth-comments","token"])):b("",!0)],64))])}]]),dt=j((()=>n((()=>import("./CAmYHD2h.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url).then((e=>e.default||e)))),ut=e({async setup(){let e,t;const n=s(),c=m(),d=$({header:"",title:"",under_surname_p:"",funeral_info:"",uid:"",slug:"",has_ads:"",can_logged_ignite:"",candles:"",author_id:"",author_name:"",person_name:"",person_photo:"",birth_date:"",death_date:"",published_at:"",updated_at:"",sp_prefix:!1}),u=$(!1),p=$([{imageUrl:"",imageMobileUrl:"",id:0}]),h=$(!1),g=e=>{const[t,s]=e.split(" "),[n,o,a]=t.split("-").map(Number),[r,i,l]=s.split(":").map(Number),c=new Date(Date.UTC(n,o-1,a,r,i,l));return c.setUTCMinutes(c.getUTCMinutes()-120),c.toISOString()},{shorttitle:y,title:b,logo:_}=n.settings,k=L().pathname;let v=`Nekrologi - ${y||b}`;const w=`${c.public.portalUrl}${k}`,f=n&&n.metaDefaults?n.metaDefaults:{};let C,z="";try{let s=k.split("/")[k.split("/").length-1];[e,t]=o((()=>(async e=>{try{const t=await $fetch(`/api/obituaries/${e}`);if(!t||!t.obituary)return;d.value={header:t.obituary.header||"",title:(t.obituary.sp_prefix?"Åp. ":"")+(t.obituary.title||""),under_surname_p:t.obituary.under_surname_p||"",funeral_info:t.obituary.funeral_info||"",uid:t.obituary.uid||"",slug:t.obituary.slug||"",has_ads:t.obituary.has_ads||"",can_logged_ignite:t.obituary.can_logged_ignite||"",candles:t.obituary.candles||0,author_id:t.obituary.author_id||"",author_name:t.obituary.author_name||"",person_name:t.obituary.person_name||"",person_photo:t.obituary.person_photo||"",birth_date:t.obituary.birth_date||"",death_date:t.obituary.death_date||"",published_at:t.obituary.published_at||"",updated_at:t.obituary.updated_at||"",creator:t.obituary.creator||"",sp_prefix:!!t.obituary.sp_prefix},p.value=t.obituary.attachments||[],u.value="slider"==t.obituary.condolences_type,h.value=1==d.value.has_ads}catch(t){d.value={header:"",title:"",under_surname_p:"",funeral_info:"",uid:"",slug:"",has_ads:"",can_logged_ignite:"",candles:"",author_id:"",author_name:"",person_name:"",person_photo:"",birth_date:"",death_date:"",published_at:"",updated_at:""}}})(s))),e=await e,t();v=`Nekrologi - ${d.value.title}`,z=d.value.header.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim()}catch(W){}if(a(d.value),d.value.author_id){C=([e,t]=o((()=>r(`author-details-${d.value.author_id}`,(()=>$fetch(`/api/author/${d.value.author_id}?page=1&limit=10`))))),e=await e,t(),e).data.value,C&&C.status&&200==C.status||(C=void 0)}const M=`https://${n.settings.url}/#organization`,x=`https://${n.settings.url}/#website`,I=`https://${n.settings.url}/#logo`,j=w,O=`${w}#article`,T=`${w}#author`,P=`${w}#deceased`,A=`${w}#primaryimage`;let S=([e,t]=o((()=>i(d.value.person_photo))),e=await e,t(),e),U=([e,t]=o((()=>i(n.settings.obituary||n.settings.ogimage||n.settings.logo))),e=await e,t(),e);var N,Z;return JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"NewsMediaOrganization","@id":M,url:`https://${n.settings.url}`,name:n.settings.title,legalName:n.settings.shorttitle,alternateName:"Lokalne WiadomoÅci",description:n.settings.description,logo:{"@type":"ImageObject","@id":I,url:n.settings.logo,width:n.settings.logo_width??1200,height:n.settings.logo_height??675},sameAs:["###"!==n.settings.facebook?n.settings.facebook:"https://www.facebook.com/"],address:{"@type":"PostalAddress",addressLocality:n.settings.city,addressRegion:n.settings.voivodeship,postalCode:n.settings.postalCode,addressCountry:"PL"}},{"@type":"WebSite","@id":x,url:`https://${n.settings.url}`,name:n.settings.title,publisher:{"@id":M}}
2,{"@type":"WebPage","@id":j,url:w,name:d.value.title,description:d.value.header,isPartOf:{"@id":x},primaryImageOfPage:{"@id":A}},{"@type":"ImageObject","@id":A,url:S.url,width:S.width,height:S.height},{"@type":"Person","@id":T,name:d.value.author_name},{"@type":"Person","@id":P,name:d.value.person_name??d.value.title,image:S.url,birthDate:d.value.birth_date??void 0,deathDate:d.value.death_date??void 0},{"@type":"NewsArticle","@id":O,mainEntityOfPage:{"@id":j},headline:d.value.title,description:(N=d.value.header,Z=160,Z-=3,N.length>Z?N.substring(0,Z)+"...":N),alternativeHeadline:d.value.title,articleSection:"obituaries",keywords:"",url:w,isAccessibleForFree:!0,identifier:{"@type":"PropertyValue",propertyID:"URL",value:w},image:{"@id":A,url:n.settings.obituary},datePublished:d.value.published_at?g(d.value.published_at):void 0,dateModified:d.value.published_at?g(d.value.published_at):void 0,author:{"@id":T},about:{"@id":P},publisher:{"@id":M}}]}),l({...f,title:v,meta:[{name:"name",content:v},{name:"author",content:d.value.author_name},{name:"article:byline",content:d.value.creator?d.value.creator.name:d.value.author_name},{name:"description",content:n.settings.seodesc_nekrologi??z},{property:"og:title",content:v},{property:"og:description",content:n.settings.seodesc_nekrologi??z},{property:"og:type",content:"website"},{property:"og:url",content:w},{property:"og:image",content:U.url},{property:"og:image:width",content:U.width},{property:"og:image:height",content:U.height},{property:"og:site_name",content:n.settings.title},{property:"article:author",content:`${w}#author`},{property:"article:section",content:"obituaries"},{property:"mrf:section",content:"obituaries"},{property:"article:tag",content:""},{property:"article:publisher",content:c.public.portalUrl},{property:"article:byline",content:d.value.author_name},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:v},{name:"twitter:image",content:U.url},{name:"robots",content:"index, follow,max-snippet:-1, max-image-preview:large, max-video-preview:-1"},{property:"mrf:canonical",content:w},{property:"mrf:authors",content:d.value.author_name},{property:"article:published_time",content:d.value.published_at?g(d.value.published_at):void 0},{property:"article:modified_time",content:d.value.updated_at?g(d.value.updated_at):void 0}],link:[...f.link,{rel:"canonical",href:w}],script:[]}),{store:n,config:c,obituary:d,condolences:p,condolences_slider:u,showAds:h}},components:{ObituariesComments:mt,ImagesCarousel:V,AdPlacement:c,RegisterWidgetWithLogin:d},async mounted(){a(this.obituary),this.getOtherObirtuaries();const e=L();this.redirectUrl=e.origin,this.userLitACandle(),this.getComments()},methods:{async getOtherObirtuaries(){try{const t=L().pathname;var e=t.split("/")[t.split("/").length-1];const s=await $fetch(`/api/obituaries/other_obituaries/${e}`);this.otherObituaries=s.obituaries}catch(t){return{obituaries:[]}}},async getComments(){try{const e=await $fetch(`/api/obituaries/comments/${this.obituary.uid}`);this.commentsList=e.comments,this.commentPropRefreshkey+=1}catch(e){return{obituaries:[]}}},getShareUrl(e){var t;return`https://${String((null==(t=this.settings)?void 0:t.url)||"").replace(/^https?:\/\//,"").replace(/\/+$/,"")}/nekrologi/${String((null==e?void 0:e.slug)||"").replace(/^\/+|\/+$/g,"")}/${String((null==e?void 0:e.uid)||"").replace(/^\/+|\/+$/g,"")}`},async lightACandle(){try{if(0==this.obituary.can_logged_ignite){if("true"==this.getCookieValue("lit_candle"))return;var e=this.obituary.uid;1==(await $fetch(`/api/obituaries/light_a_candle/${e}`,{method:"POST"})).success&&(this.obituary.candles++,document.cookie="lit_candle=true")}else if(this.user&&this.user.id){1==(await $fetch(`/api/obituaries/light_a_candle/${this.obituary.uid}?user_id=${this.user.id}`,{method:"POST"})).success&&(this.obituary.candles++,this.loggedInUserLitACandle=!0)}else this.$refs.registerWidgetWithLogin.style.display="block",this.$refs.lighTACandleButton.style.display="none",this.$refs.litCandlesWrapper.style.flexDirection="column",this.$refs.litCandlesWrapper.querySelectorAll(":scope > div").forEach((e=>{e.style.width="100%"}))}catch(t){return{obituaries:[]}}},getCookieValue(e){if(document&&document.cookie){const t=document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]*)`));return t?t[1]:null}return null},async userLitACandle(){if(null==this.user)return;const e=L().pathname;var t=e.split("/")[e.split("/").length-1];const s=await $fetch(`/api/obituaries/did_user_light_candle/${t}?user_id=${this.user.id}`,{method:"GET"});this.loggedInUserLitACandle=s.did_light},setColorOnAnchors:(e,t)=>e.replace("<a ",`<a style="color: ${t}"`)},data:()=>({otherObituaries:[],loggedInUserLitACandle:!1,commentsList:[]}),computed:{settings(){return this.store.settings},placements(){return this.store.placements},user(){return this.store.user}}},"$IXjLTy3lZg"),pt={class:"content-wrapper"},ht={class:"left"},gt={key:0,class:"slot-sky"},yt={class:"main"},bt={key:0},_t={class:"d-flex align-items-center my-2"},kt={class:"article__details"},vt={class:"text-muted fw-normal me-2"},wt={key:0},ft={class:"text-dark fw-bold"},Ct={class:"text-muted fw-normal"},zt={class:"text-dark fw-bold",itemprop:"author"},Mt={key:1,class:"obituary-item"},xt={class:"obituary-item-content"},It=["innerHTML"],jt={key:0,class:"cross",src:A},Ot={key:1,class:"cross",src:S},$t={class:"bottom"},Tt={class:"title"},Lt=["innerHTML"],Pt={key:0,class:"image"},At=["src"],St=["innerHTML"],Ut={key:2,class:"socials my-3 d-flex"},Nt={class:"socials-right"},Zt=["href"],Wt={class:"socials-icon"},Bt=["href"],Rt={class:"socials-icon"},qt={key:3,class:"lit_candles_wrapper",ref:"litCandlesWrapper"},Vt={class:"lit-candles"},Et={key:0,class:"light-a-candle-button"},Jt={key:1,class:"light-a-candle-button"},Dt={key:1},Ft={key:0,style:{display:"flex","justify-content":"end"}},Kt={key:0,class:"light-a-candle-button"},Ht={key:1,class:"light-a-candle-button"},Gt={key:1,style:{display:"flex","justify-content":"end"}},Qt={key:0,class:"light-a-candle-button"},Xt={key:1,class:"light-a-candle-button"},Yt={ref:"registerWidgetWithLogin",style:{display:"none"}},es={key:"overflow-message"},ts={key:5,class:"candles-container mobile_candles"},ss={key:0,class:"rest-counter"},ns={key:6,class:"slot-kondolencje"},os={key:1,class:"single_condolences"},as=["src"],rs={key:7,class:"comments-column-advert"},is={key:8,class:"mb-3"},ls={key:10,class:"comments-column-advert"},cs={class:"right"},ms={key:0,class:"slot-half"},ds={key:1,class:"slot-half-1"},us={class:"other-obituaries-container"},ps=["href"],hs={class:"other-obituary-item-content"}
2,gs={key:0,width:"112",height:"40",class:"cross",src:A},ys={key:1,class:"cross cross--rose",src:S},bs={class:"title"},_s={class:"p-below-name"};const ks=p(ut,[["render",function(e,t,s,n,o,a){const r=c,i=v("font-awesome-icon"),l=d,m=V,u=dt,p=mt;return h(),g("div",pt,[y("div",ht,[e.showAds?(h(),g("div",gt,[e.placements&&e.placements.obituary?(h(),I(r,{key:0,placement:e.placements.obituary.slot_sky},null,8,["placement"])):b("",!0)])):b("",!0)]),y("div",yt,[e.obituary?(h(),g("div",bt,[y("div",_t,[y("p",kt,[y("span",vt,[e.obituary.published_at?(h(),g("div",wt,[t[3]||(t[3]=f(" Opublikowano: ")),y("time",ft,C(e.$datefns.format(e.obituary.published_at,"EEEE, d MMM yyyy HH:mm")),1),t[4]||(t[4]=y("br",null,null,-1))])):b("",!0),y("span",Ct,[t[5]||(t[5]=f(" Autor: ")),y("strong",zt,C(e.obituary.author_name),1)])])])])])):b("",!0),e.obituary?(h(),g("div",Mt,[y("div",xt,[y("div",{class:"header",innerHTML:e.setColorOnAnchors(e.obituary.header,"#d1ab61")},null,8,It),e.obituary.sp_prefix?(h(),g("img",jt)):(h(),g("img",Ot)),y("div",$t,[y("h1",Tt,C(e.obituary.title),1),y("div",{class:"p-below-name",innerHTML:e.setColorOnAnchors(e.obituary.under_surname_p,"#d1ab61")},null,8,Lt),""!=e.obituary.person_photo?(h(),g("div",Pt,[y("img",{src:e.obituary.person_photo},null,8,At)])):b("",!0),y("div",{class:"funeral-info",innerHTML:e.setColorOnAnchors(e.obituary.funeral_info,"#d1ab61")},null,8,St)])])])):b("",!0),e.obituary?(h(),g("div",Ut,[t[8]||(t[8]=y("div",{class:"socials-info"},"UdostÄpnij na:",-1)),y("div",Nt,[y("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${e.getShareUrl(e.obituary)}`,class:"socials-btn socials--fb",target:"_blank"},[y("span",Wt,[w(i,{icon:["fab","facebook-f"]})]),t[6]||(t[6]=y("span",{class:"socials-text"},"Facebook",-1))],8,Zt),y("a",{href:`https://twitter.com/intent/tweet?text=${e.getShareUrl(e.obituary)}`,class:"socials-btn socials--twitter",target:"_blank"},[y("span",Rt,[w(i,{icon:["fab","twitter"]})]),t[7]||(t[7]=y("span",{class:"socials-text"},"Twitter",-1))],8,Bt)])])):b("",!0),e.obituary?(h(),g("div",qt,[y("div",Vt,"Zapalonych zniczy ("+C(e.obituary.candles)+")",1),0==e.obituary.can_logged_ignite?(h(),g("div",{key:0,class:z("true"==e.getCookieValue("lit_candle")?"light-a-candle already_lit_candle":"light-a-candle"),onClick:t[0]||(t[0]=t=>"true"!=e.getCookieValue("lit_candle")&&e.lightACandle())},[t[9]||(t[9]=y("img",{width:"25px",src:P},null,-1)),"true"!=e.getCookieValue("lit_candle")?(h(),g("div",Et,"ZAPAL ZNICZ")):(h(),g("div",Jt,"ZAPALONO ZNICZ"))],2)):(h(),g("div",Dt,[e.user?(h(),g("div",Ft,[y("div",{class:z(e.loggedInUserLitACandle?"light-a-candle already_lit_candle":"light-a-candle"),onClick:t[1]||(t[1]=t=>0==e.loggedInUserLitACandle&&e.lightACandle())},[t[10]||(t[10]=y("img",{width:"25px",src:P},null,-1)),0==e.loggedInUserLitACandle?(h(),g("div",Kt,"ZAPAL ZNICZ")):(h(),g("div",Ht,"ZAPALONO ZNICZ"))],2)])):(h(),g("div",Gt,[y("div",{ref:"lighTACandleButton",class:"light-a-candle",onClick:t[2]||(t[2]=t=>0==e.loggedInUserLitACandle&&e.lightACandle())},[t[11]||(t[11]=y("img",{width:"25px",src:P},null,-1)),0==e.loggedInUserLitACandle?(h(),g("div",Qt,"ZAPAL ZNICZ")):(h(),g("div",Xt,"ZAPALONO ZNICZ"))],512),y("div",Yt,[w(l)],512)]))]))],512)):b("",!0),e.obituary?(h(),g("div",{key:4,class:"candles-container web_candles",style:O(e.obituary.candles<15?{justifyContent:"start",gap:"5px"}:"")},[(h(!0),g(_,null,k(e.obituary.candles,((s,n)=>(h(),g(_,null,[n<15?(h(),g("div",{key:n,class:"candle"},t[12]||(t[12]=[y("img",{width:"30px",src:P},null,-1)]))):15===n?(h(),g("p",es,"+ "+C(e.obituary.candles-15)+" pozostaÅych",1)):b("",!0)],64)))),256))],4)):b("",!0),e.obituary?(h(),g("div",ts,[y("div",{class:"candles-row-1",style:O(Math.max(0,e.obituary.candles)<10?{justifyContent:"start",gap:"13.5px"}:"")},[(h(!0),g(_,null,k(e.obituary.candles,((e,s)=>(h(),g(_,null,[s<10?(h(),g("div",{key:s,class:"candle"},t[13]||(t[13]=[y("img",{src:P},null,-1)]))):b("",!0)],64)))),256))],4),Math.max(0,e.obituary.candles-10)?(h(),g("div",{key:0,class:"candles-row-2",style:O(Math.max(0,e.obituary.candles-19)<19?{justifyContent:"start",gap:"13.5px"}:"")}
2,[(h(!0),g(_,null,k(e.obituary.candles-10,((e,s)=>(h(),g(_,null,[s<9?(h(),g("div",{key:s,class:"candle"},t[14]||(t[14]=[y("img",{src:P},null,-1)]))):b("",!0)],64)))),256)),Math.max(0,e.obituary.candles-19)?(h(),g("div",ss,"+"+C(e.obituary.candles-19),1)):b("",!0)],4)):b("",!0)])):b("",!0),e.condolences.length>0?(h(),g("div",ns,[e.condolences_slider?(h(),I(m,{key:0,images:e.condolences,autoScrollSpeedMs:3e3,showNavigation:!0},null,8,["images"])):(h(),g("div",os,[y("img",{src:e.condolences[0].imageUrl,alt:""},null,8,as)]))])):b("",!0),e.showAds?(h(),g("div",rs,[e.placements&&e.placements.obituary?(h(),I(r,{key:0,placement:e.placements.obituary.above_comments},null,8,["placement"])):b("",!0)])):b("",!0),e.user?b("",!0):(h(),g("div",is,[w(u)])),e.obituary&&1==e.obituary.has_comments?(h(),I(p,{user:e.user,settings:e.settings,obituaryId:e.obituary?e.obituary.uid:null,"auth-comments":!!e.obituary&&1==e.obituary.has_logged_comments,forceComments:!!(e.commentsList&&e.commentsList.length>0)&&e.commentsList,key:e.commentPropRefreshkey},null,8,["user","settings","obituaryId","auth-comments","forceComments"])):b("",!0),e.showAds?(h(),g("div",ls,[e.placements&&e.placements.obituary?(h(),I(r,{key:0,placement:e.placements.obituary.slot_bottom},null,8,["placement"])):b("",!0)])):b("",!0)]),y("div",cs,[e.showAds?(h(),g("div",ms,[e.placements&&e.placements.obituary?(h(),I(r,{key:0,placement:e.placements.obituary.slot_half},null,8,["placement"])):b("",!0)])):b("",!0),e.showAds?(h(),g("div",ds,[e.placements&&e.placements.obituary?(h(),I(r,{key:0,placement:e.placements.obituary.slot_half_1},null,8,["placement"])):b("",!0)])):b("",!0),t[17]||(t[17]=y("h4",null,"PozostaÅe nekrologi",-1)),y("div",us,[(h(!0),g(_,null,k(e.otherObituaries,(e=>(h(),g("a",{class:"other-obituary",href:`/nekrologi/${e.slug}/${e.uid}`},[y("div",hs,[e.sp_prefix?(h(),g("img",gs)):(h(),g("img",ys)),y("p",bs,C(e.sp_prefix?"Åp. ":"")+C(e.title),1),y("p",_s,C(e.under_surname_p),1),t[15]||(t[15]=y("div",{class:"show-detail
2s"},"zobacz wiÄcej...",-1)),t[16]||(t[16]=y("p",{class:"light-a-candle"},[y("img",{width:"15px",src:P}),f(" zapal znicz")],-1))])],8,ps)))),256))])])])}],["__scopeId","data-v-c39495bc"]]);export{ks as default};
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.