import{_ as L,o as u,c as C,g as o,w as d,j as l,i as j,D as U,E as z,d as F,a as R,C as c,e as S,b as n,p as D,t as M,f as V,x as E,P as G,Q as H,X as J,Y as W,s as X,y as A,I as Q,Z as Y,z as Z,B as q,F as K,r as ee,H as te,G as oe}from"./C675psmf.js";import{h as se,i as ne,c as ae}from"./DryRtA_M.js";import{d as ie,e as ce,T as le,a as re}from"./CVYglXgY.js";import{u as T}from"./B2o8_NGR.js";import{V as de}from"./Bkg4I3Nu.js";const me={},pe={class:"projectServiceOverviewBanner w-md-100 overflow-y-hidden"},ue=l("p",{class:"projectServiceOverviewBanner__notation text--semantic-color-text-black-secondary font-text-label-10 lh-13"},[l("span",{class:"d-pc pr-2"},"※写真の「お花入れ」はよりそう火葬式には含まれません"),j("※1 対象期間2021年11月〜2022年1月(満足・やや満足の合計) 自社調べ ")],-1),_e=l("div",{class:"d-pc projectServiceOverviewBanner__bottomBackgroundBox w-100 h-100"},null,-1);function fe(g,m){const s=U,e=z;return u(),C("div",pe,[o(e,{width:"auto",class:"mx-auto pt-11 pt-md-24",style:{"max-width":"880px"}},{default:d(()=>[l("h2",null,[o(s,{width:"375",height:"216",widthMd:"818",heightMd:"259",class:"mx-auto",src:"/images/common/sp/service-overview-head-sp.svg",srcMd:"/images/common/pc/service-overview-head-pc.webp",alt:"よりそうお葬式は必要なものを厳選した良質なお葬式をご提供します"})]),o(s,{width:"180",height:"180",class:"projectServiceOverviewBanner__medalImage h-auto",src:"/images/common/service-overview-medal.webp",alt:"だから！総合満足度94% ※"}),o(s,{class:"mt-7 mx-auto",width:"100%",height:"auto",widthMd:"880",heightMd:"146",src:"/images/common/sp/service-overview-middle-sp.webp",srcMd:"/images/common/pc/service-overview-middle-pc.webp",alt:"お棺にお花を入れている様子の写真"}),o(e,{width:"100%",widthMd:"880",class:"px-5 py-2 pl-md-0 mx-auto d-flex flex-column align-center align-md-start bg--semantic-color-gen-brand-yellow-yellow-10-light1"},{default:d(()=>[ue]),_:1})]),_:1}),_e])}const Me=L(me,[["render",fe]]),he={class:"projectReviewArticleCard__imageContainer mt-3 mx-3"},ge={class:"projectReviewArticleCard__text overflow-hidden font-text-text-l font-weight-bold text--semantic-color-text-black-primary mx-3 mt-4 mb-5"},we={class:"bg--semantic-color-gen-component-bg-light-2 px-3 py-2 text-truncate font-text-text-s text--semantic-color-text-black-secondary"},ve=F({__name:"ReviewArticleCard",props:{post:{}},setup(g){const{post:m}=g,s=R(()=>{const t=document.createElement("div");return t.innerHTML=m.excerpt.rendered,t.textContent||t.innerText||""}),e=E(),{funeralFamilyMainPlans:i}=T(),{funeralFireMainPlans:_}=T(),f=R(()=>{var k,I,P,v,b,N;const t=Number(e.public.wordpressCategoryIdPlanIppanso),w=Number(e.public.wordpressCategoryIdPlanIchinichi),h=Number(e.public.wordpressCategoryIdPlanFtsuka),p=Number(e.public.wordpressCategoryIdPlanSimple),r=Number(e.public.wordpressCategoryIdPlanJitakuanchi),x=Number(e.public.wordpressCategoryIdPlanMenkai),B={[t]:{code:c.db.ending.funeralPlans.ippan.code,label:((k=i.find(a=>a.code===c.db.ending.funeralPlans.ippan.code))==null?void 0:k.label)??""},[w]:{code:c.db.ending.funeralPlans.ichinichi.code,label:((I=i.find(a=>a.code===c.db.ending.funeralPlans.ichinichi.code))==null?void 0:I.label)??""},[h]:{code:c.db.ending.funeralPlans.futsuka.code,label:((P=i.find(a=>a.code===c.db.ending.funeralPlans.futsuka.code))==null?void 0:P.label)??""},[p]:{code:c.db.ending.funeralPlans.simple.code,label:((v=_.find(a=>a.code===c.db.ending.funeralPlans.simple.code))==null?void 0:v.label)??""},[r]:{code:c.db.ending.funeralPlans.jitakuanchi.code,label:((b=_.find(a=>a.code===c.db.ending.funeralPlans.jitakuanchi.code))==null?void 0:b.label)??""},[x]:{code:c.db.ending.funeralPlans.menkai.code,label:((N=_.find(a=>a.code===c.db.ending.funeralPlans.menkai.code))==null?void 0:N.label)??""}},$=[t,w,h,p,r,x],y=m.categories.find(a=>$.includes(a));return y?B[y]:null});return(t,w)=>{const h=U,p=ie,r=ne;return u(),S(r,{width:"292",height:"322",variant:"elevatedOutlined",class:"projectReviewArticleCard d-flex flex-column bg--semantic-color-text-white",href:`/sogi/${t.post.slug}/`},{default:d(()=>[l("div",he,[o(h,{src:t.post.featured_image.eye_catch_img,width:"268",height:"179",cover:"",alt:t.post.title.rendered},null,8,["src","alt"]),n(f)?(u(),S(p,{key:0,class:D(["projectReviewArticleCard__planChip",`text--semantic-color-gen-${n(f).code}-primary`]),variant:"smallOutlined"},{default:d(()=>[j(M(n(f).label),1)]),_:1},8,["class"])):V("",!0)]),l("h4",ge,M(t.post.title.rendered),1),o(se),l("div",we,M(n(s)),1)]),_:1},8,["href"])}}}),be=G("posts",{state:()=>({posts:[]}),actions:{async getVoicePosts(){const{public:g}=E(),{data:m,error:s}=await H("/wp-json/wp/v2/posts/",{baseURL:g.wordpressApiUrl,params:{page:1,per_page:6,categories:g.wordpressCategoryIdVoice}});m.value&&(this.posts=m.value??[]),s!=null&&s.value&&(this.posts=[])}}}),xe={key:0,class:"projectAreaVoice w-100 overflow-visible"},ye={class:"projectAreaVoice__testimonials pt-8 pb-4 pb-md-8 bg--semantic-color-gen-brand-yellow-yellow-10-light1"},Ce={class:"d-flex flex-column justify-end align-center gapy-2"},ke=l("span",{class:"font-weight-300 lh-15 fz-14 fz-md-18"},"実際にご利用いただいた",-1),Ie={class:"d-flex align-center gapx-2"},Pe=["disabled"],Ae=["disabled"],O=1848,Ue=F({__name:"AreaVoice",setup(g){J(p=>({"779cf9cf":O}));const{mdAndUp:m}=W(),{posts:s}=X(be()),e=A(0),i=A(),_=A(!1),f=A(!1);function t(){var p,r;i.value&&(_.value=((p=i.value)==null?void 0:p.scrollOffset)!==0,f.value=((r=i.value)==null?void 0:r.scrollOffset)+window.innerWidth<O)}Q(()=>{window.addEventListener("resize",t),setTimeout(()=>{t()},300)}),Y(()=>{window.removeEventListener("resize",t)});function w(){m.value&&i.value?i.value.scrollTo("prev"):e.value>0&&e.value--,t()}function h(){m.value&&i.value?i.value.scrollTo("next"):e.value<s.value.length-1&&e.value++,t()}return(p,r)=>{const x=U,B=ae,$=ve,y=te,k=oe,I=z,P=re;return n(s)&&n(s).length>0?(u(),C("div",xe,[l("div",ye,[l("h3",Ce,[ke,l("span",Ie,[o(x,{class:"d-inline-block",src:"/images/common/rw/common-review-effect-line-left.svg",width:"31",height:"auto",alt:""}),o(B,{size:"s",class:"mb-1"},{default:d(()=>[j(" お客さまのお声です ")]),_:1}),o(x,{class:"d-inline-block",src:"/images/common/rw/common-review-effect-line-right.svg",width:"31",height:"auto",alt:""})])]),o(P,null,{default:d(()=>[Z((u(),S(de,{ref_key:"vSlideGroupRef",ref:i,modelValue:n(e),"onUpdate:modelValue":r[0]||(r[0]=v=>q(e)?e.value=v:null),"center-active":"",class:"projectAreaVoice__swiperSlide mx-auto"},{default:d(()=>[(u(!0),C(K,null,ee(n(s),(v,b)=>(u(),S(ce,{key:b},{default:d(()=>[o($,{class:D(["mx-2 my-7 my-md-8",[{"ml-10 ml-md-2":b===0},{"mr-10 mr-md-2":b===n(s).length-1}]]),post:v},null,8,["class","post"])]),_:2},1024))),128))]),_:1},8,["modelValue"])),[[le,{right:()=>w(),left:()=>h()}]]),o(I,{widthMd:"998",class:"d-flex mx-auto"},{default:d(()=>[n(f)||n(_)?(u(),C("button",{key:0,class:"projectAreaVoice__testimonialSwiperButton d-pc border-semantic-color-gen-component-bg-white border-1 border-solid rounded-pill d-flex align-center justify-center",disabled:!n(_),onClick:w},[o(y,{name:"arrowBackIos",theme:"outlined",size:"s",class:"projectAreaVoice__testimonialSwiperButtonIcon mr-1",color:"icon-white"})],8,Pe)):V("",!0),o(k,{class:"mx-auto",variant:"gray","append-icon":"keyboardArrowRight",iconTheme:"round",href:"/sogi/voice/"},{default:d(()=>[j(" 体験談をもっと見る ")]),_:1}),n(f)||n(_)?(u(),C("button",{key:1,class:"projectAreaVoice__testimonialSwiperButton d-pc border-semantic-color-gen-component-bg-white border-1 border-solid rounded-pill d-flex align-center justify-center",disabled:!n(f),onClick:h},[o(y,{name:"arrowForwardIos",theme:"outlined",size:"s",class:"projectAreaVoice__testimonialSwiperButtonIcon ml-1",color:"icon-white"})],8,Ae)):V("",!0)]),_:1})]),_:1})])])):V("",!0)}}});export{Me as _,Ue as a,be as u};
